/* Configurator */
.cfg { padding: 28px 0 120px; }
.cfg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.cfg-title { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 18px; }
.side-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.side-sticky .phone { width: 280px; height: 560px; aspect-ratio: auto; }
.preview-hint { margin: 4px 0 0; }
.price-box { width: 100%; padding: 18px 20px; }
.price-box .line { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; padding: 3px 0; }
.price-box .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2.5px solid var(--notte); margin-top: 10px; padding-top: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; }
.price-box .eta { font-size: 14px; font-weight: 700; margin-top: 8px; }
.mobile-bar { display: none; }
@media (max-width: 980px) {
  .cfg-layout { grid-template-columns: minmax(0, 1fr); }
  .cfg-side { display: none; }
  .cfg-side.as-modal { display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: rgba(36, 18, 74, .75); padding: 16px; }
  .cfg-side.as-modal .side-sticky { position: static; }
  .cfg-side.as-modal .price-box { display: none; }
  .cfg-side.as-modal .phone { height: min(78vh, 640px); width: auto; aspect-ratio: 9 / 18.5; }
  .cfg-side .close-preview { display: inline-flex; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); border-top: var(--line); padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); }
  .mobile-bar strong { display: block; font-family: var(--display); font-size: 20px; line-height: 1.1; }
}
.close-preview { display: none; }

/* stepper — a true sequence, so it is numbered */
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper button { font: inherit; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--white); color: var(--notte); border: 2.5px solid var(--notte); border-radius: 999px; padding: 7px 14px 7px 7px; cursor: pointer; }
.stepper .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--luna); border: 2px solid var(--notte); font-family: var(--pixel); font-size: 12px; }
.stepper [aria-current='step'] { background: var(--notte); color: var(--white); box-shadow: 3px 3px 0 var(--fragola); }
.stepper [aria-current='step'] .n { background: var(--fragola); color: var(--white); border-color: var(--white); }
.stepper .done .n { background: var(--menta); }

.step-body { outline: none; }
.step-body > h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.step-body > .intro { color: var(--notte-70); margin-bottom: 22px; max-width: 60ch; }
.block { background: var(--white); border: var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 20px; }
.block > h3 { font-size: 18px; margin-bottom: 4px; }
.block > .hint { color: var(--notte-70); font-size: 14.5px; margin: 0 0 14px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* option cards */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 18px; padding: 14px 16px; cursor: pointer; transition: transform .1s; }
.opt:hover { transform: translateY(-2px); }
.opt strong { font-family: var(--display); font-size: 16px; }
.opt span { font-size: 14px; font-weight: 600; color: var(--notte-70); }
.opt .price-tag { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--notte); }
.opt[aria-pressed='true'], .opt[aria-checked='true'] { background: var(--limone); box-shadow: 4px 4px 0 var(--notte); }
.opt[aria-pressed='true']::after, .opt[aria-checked='true']::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--notte); color: var(--white); font-weight: 800; font-size: 14px; }
.opt[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.opt .swatch-bar { height: 8px; border-radius: 4px; border: 2px solid var(--notte); margin-bottom: 6px; }

/* settings tiles */
.setting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.setting-tile { font: inherit; color: var(--notte); padding: 0; border: 2.5px solid var(--notte); border-radius: 18px; overflow: hidden; background: var(--white); cursor: pointer; text-align: left; }
.setting-tile canvas { display: block; width: 100%; height: 86px; border-bottom: 2.5px solid var(--notte); }
.setting-tile span { display: block; padding: 8px 12px; font-weight: 800; }
.setting-tile[aria-pressed='true'] { box-shadow: 4px 4px 0 var(--fragola), 4px 4px 0 2.5px var(--notte); transform: translate(-2px, -2px); }

/* characters */
.char { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.char + .char { border-top: 2.5px dashed var(--notte-10); margin-top: 20px; padding-top: 20px; }
.char-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.char-preview .stage { width: 120px; height: 140px; display: grid; place-items: end center; background: var(--luna); border: 2.5px solid var(--notte); border-radius: 18px; }
.char-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.char-head h3 { margin: 0; font-size: 17px; }
.row-label { font-weight: 800; font-size: 14px; margin: 12px 0 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--notte); cursor: pointer; padding: 0; }
.swatch[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--notte); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 700; font-size: 14px; color: var(--notte); background: var(--luna); border: 2px solid var(--notte); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--notte); color: var(--white); }
.chip.emoji { font-size: 22px; padding: 4px 10px; line-height: 1.2; }
.chip.emoji[aria-pressed='true'] { background: var(--limone); color: var(--notte); box-shadow: 2px 2px 0 var(--notte); }
.photo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.photo-row input[type='file'] { display: none; }
.ref-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 2px solid var(--notte); }
.locked { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700; background: var(--luna); border: 2px dashed var(--notte); border-radius: 12px; padding: 8px 12px; }
.icon-btn { font: inherit; font-weight: 800; font-size: 13px; color: var(--notte); background: var(--white); border: 2px solid var(--notte); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.icon-btn:hover { background: var(--luna); }
.add-btn { font: inherit; font-weight: 800; color: var(--notte); background: none; border: 2.5px dashed var(--notte); border-radius: 16px; padding: 12px 16px; width: 100%; cursor: pointer; margin-top: 14px; }
.add-btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .char { grid-template-columns: 1fr; } .char-preview { flex-direction: row; } }

/* lists (messages, quiz, memories) */
.list-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; margin-bottom: 10px; }
.list-item .idx { font-family: var(--pixel); font-size: 12px; background: var(--notte); color: var(--white); border-radius: 8px; padding: 4px 7px; margin-top: 14px; }
.quiz-item { border: 2.5px solid var(--notte); border-radius: 18px; padding: 14px; margin-bottom: 12px; background: var(--luna); }
.quiz-item .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.quiz-item .answers label { display: flex; align-items: center; gap: 8px; }
.quiz-item .answers input[type='radio'] { width: 20px; height: 20px; accent-color: var(--menta); flex: none; }
@media (max-width: 560px) { .quiz-item .answers { grid-template-columns: 1fr; } }
.mem-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.mem-thumb { width: 64px; height: 64px; border: 2.5px solid var(--notte); border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: var(--luna); overflow: hidden; cursor: pointer; padding: 0; }
.mem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.counter { font-size: 13px; font-weight: 800; color: var(--notte-70); }
.warn { background: #FFF6D6; border: 2.5px solid var(--limone); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14.5px; margin-bottom: 14px; }
.summary dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; }
.summary dt { font-weight: 800; }
.summary dd { margin: 0; }
@media (max-width: 560px) { .summary dl { grid-template-columns: 1fr; gap: 2px; } .summary dd { margin-bottom: 10px; } }
.addon { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 2px solid var(--notte-10); }
.addon:last-child { border-bottom: 0; }
.addon input { width: 22px; height: 22px; accent-color: var(--fragola); margin-top: 3px; flex: none; }
.addon .price { margin-left: auto; font-family: var(--display); font-weight: 800; white-space: nowrap; }
.opt:disabled { opacity: .5; cursor: not-allowed; }
.opt:disabled:hover { transform: none; }
.opt-hero { width: 100%; padding: 18px 20px; }
.opt-hero strong { font-size: 20px; }
.opt-hero .small { color: var(--notte); margin-top: 4px; }

/* ---------- guided path ---------- */
.gift-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; text-align: left; font: inherit; color: var(--notte); background: var(--white); border: var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 14px; cursor: pointer; transition: transform .1s; }
.gift-card:hover { transform: translateY(-2px); }
.gift-card strong { font-family: var(--display); font-size: 22px; }
.gift-card > span:last-child { color: var(--notte-70); font-weight: 600; }
.gift-card.on { background: var(--limone); box-shadow: 5px 5px 0 var(--notte); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -4px 0 18px; }
.seg-opt { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.seg-opt strong { font-family: var(--display); font-size: 16px; }
.seg-opt span { font-size: 13.5px; font-weight: 600; color: var(--notte-70); }
.seg-opt[aria-pressed='true'] { background: var(--notte); color: var(--white); box-shadow: 3px 3px 0 var(--fragola); }
.seg-opt[aria-pressed='true'] span { color: rgba(255,255,255,.8); }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }
.ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.idea { font: inherit; font-size: 13px; font-weight: 700; color: var(--notte); background: #FFF6D6; border: 2px dashed var(--notte); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.idea:hover { background: var(--limone); }
.q-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.q-head h2 { margin: 0; }
.link-btn { font: inherit; font-weight: 800; font-size: 14px; color: var(--notte); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.q-progress { display: flex; align-items: center; gap: 6px; margin: 14px 0 16px; flex-wrap: wrap; }
.q-dot { width: 22px; height: 8px; border-radius: 4px; border: 2px solid var(--notte); background: var(--white); padding: 0; cursor: pointer; }
.q-dot.done { background: var(--menta); }
.q-dot.on { background: var(--fragola); width: 34px; }
.q-progress .small { margin-left: 6px; }
.q-card { min-height: 280px; }
/* «Capitolo 1 di 4»: a pink pill like the ones of the site, easy to spot (22 nov 2026) */
.q-kicker { display: inline-block; font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--white); background: var(--fragola); border: 2.5px solid var(--notte); border-radius: 999px; padding: 4px 12px; box-shadow: 2px 2px 0 var(--notte); margin: 0 0 10px; }
.q-title, .block > .q-title { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.15; margin: 0 0 10px; } /* the chapter: clearly above the questions (.block > h3 made it 18px) */
.q-lead { font-size: 15px; margin-bottom: 18px; }
details.manual { margin-top: 14px; border-top: 2px dashed var(--notte-10); padding-top: 10px; }
details.manual > summary { cursor: pointer; font-weight: 800; font-size: 14px; }
.adv-promise { width: 100%; padding: 18px 20px; }
.adv-promise h3 { font-size: 18px; margin: 4px 0 10px; }
.adv-promise .lineup { display: flex; gap: 6px; align-items: flex-end; justify-content: center; background: var(--luna); border: 2px solid var(--notte); border-radius: 12px; padding: 8px; margin-bottom: 10px; }
.adv-promise ul { padding-left: 18px; margin: 0 0 10px; }
.mem-item input.mem-thumb { font-size: 28px; text-align: center; padding: 0; }
@media (max-width: 980px) {
  .step-nav { position: sticky; bottom: 70px; z-index: 6; background: var(--luna); padding: 10px 0; margin-top: 0; }
  .q-card { min-height: 0; }
}
.cfg-main { min-width: 0; }

/* protagonists: one-tap looks + create / describe */
.char { display: block; }
.char-top { display: flex; align-items: flex-end; gap: 12px; }
.char-top .field { flex: 1; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.preset-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-weight: 800; font-size: 13.5px; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 14px; padding: 8px 4px 8px; cursor: pointer; }
.preset-tile[aria-pressed='true'] { background: var(--limone); box-shadow: 3px 3px 0 var(--notte); }
.preset-pic { display: grid; place-items: end center; height: 58px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px 0 0; border: 2.5px solid var(--notte); border-radius: 12px; overflow: hidden; }
.tab { font: inherit; font-weight: 800; font-size: 14px; color: var(--notte); background: var(--white); border: 0; padding: 10px 8px; cursor: pointer; }
.tab + .tab { border-left: 2.5px solid var(--notte); }
.tab[aria-selected='true'] { background: var(--notte); color: var(--white); }
.char-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; margin-top: 14px; }
@media (max-width: 560px) { .char-body { grid-template-columns: 1fr; } .char-preview { justify-content: center; } .preset-tile { font-size: 12px; } }

/* story: prompts */
.spunti { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }

/* summary: gift ticket + editable rows */
.gift-ticket { position: relative; background: var(--limone); border: var(--line); border-radius: var(--r-md); box-shadow: 6px 6px 0 var(--notte); padding: 22px 22px 18px; margin-bottom: 20px; text-align: center; }
.gift-ticket::before, .gift-ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--luna); border: var(--line); }
.gift-ticket::before { left: -13px; } .gift-ticket::after { right: -13px; }
.gift-ticket-cast { display: flex; justify-content: center; align-items: flex-end; gap: 6px; min-height: 70px; }
.gift-ticket-kicker { font-family: var(--pixel); font-size: 12px; text-transform: uppercase; margin: 8px 0 2px; }
.gift-ticket h3 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 4px; }
.gift-ticket-to { margin: 0; font-weight: 600; }
.gift-ticket blockquote { margin: 12px auto 0; max-width: 46ch; background: var(--white); border: 2.5px solid var(--notte); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.summary-list { padding: 6px 22px; }
.sum-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 2px solid var(--notte-10); }
.sum-row:last-child { border-bottom: 0; }
.sum-row strong { display: block; }
.sum-row span { color: var(--notte-70); font-weight: 600; overflow-wrap: anywhere; }
.sum-row .link-btn { flex: none; }
.sum-occ { display: inline-block; vertical-align: -5px; margin-right: 7px; }
.sum-occ canvas { width: 24px; height: auto; display: block; image-rendering: pixelated; }
.addon.switch { align-items: center; cursor: pointer; }
.addon.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addon.switch .knob { flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--white); border: 2.5px solid var(--notte); position: relative; transition: background .15s; }
.addon.switch .knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--notte); transition: transform .15s; }
.addon.switch input:checked + .knob { background: var(--menta); }
.addon.switch input:checked + .knob::after { transform: translateX(18px); }
.addon.switch input:focus-visible + .knob { outline: 3px solid var(--cielo); outline-offset: 2px; }
.next-steps ol { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 24px; border-top: 2.5px solid var(--notte); padding-top: 12px; margin: 4px 0 18px; }
@media (max-width: 560px) { .step-nav .btn { flex: 1; padding-left: 12px; padding-right: 12px; font-size: 16px; white-space: nowrap; } }
.describe-box { margin-top: 14px; }
.char-preview .stage { position: sticky; top: 96px; }
.editor details.group { margin-top: 0; border-top: 0; padding-top: 0; margin-bottom: 10px; background: var(--luna); border: 2px solid var(--notte-10); border-radius: 12px; padding: 8px 12px 12px; }
.editor details.group > summary { font-family: var(--display); font-size: 15px; padding: 2px 0; }
.editor details.group .row-label:first-of-type { margin-top: 8px; }
.cast-ghost { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--white); border: 2px dashed var(--notte); border-radius: 10px; }
.cast-ghost span { font-size: 22px; line-height: 1; }
.cast-ghost small { font-weight: 800; font-size: 11px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* occasion: a line opens under the chips */
.occasion-note { margin-top: 12px; animation: note-in .22s ease-out; }
.occasion-note label { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 6px; }
@keyframes note-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .occasion-note { animation: none; } }

/* your world: icons or your own words */
.world-group { padding: 16px 0 4px; }
.world-group + .world-group { border-top: 2px dashed var(--notte-10); margin-top: 12px; }
.world-group .row-label { margin-top: 0; }
.world-group > .small { margin: -2px 0 10px; }
label.own { display: block; font-weight: 800; font-size: 14px; margin: 14px 0 6px; }

/* missing fields */
.invalid input[type='text'], .invalid textarea, input.invalid, textarea.invalid { border-color: var(--fragola) !important; box-shadow: 0 0 0 3px rgba(255, 61, 127, .22); }
.world-group.invalid, .quiz-item.invalid, .mem-item.invalid, .ml-mem.invalid, [data-err='occasion'].invalid > .chips, [data-err='occasion'].invalid > .occ-grid, [data-err='giftFor'].invalid > .chips, [data-err='giftFrom'].invalid > .chips { outline: 2.5px solid var(--fragola); outline-offset: 6px; border-radius: 12px; }
.quiz-item.invalid, .mem-item.invalid { outline-offset: 3px; }
.step-body .form-error { margin: 4px 0 18px; }
.adv-promise .lineup:empty { display: none; }

/* step 2: two blocks, one title each */
.block-title { font-family: var(--display); font-size: 19px; margin: 0 0 14px; }
.skip-row { text-align: right; margin: 10px 0 0; }
.skip-row .link-btn { color: var(--notte-70); font-weight: 700; }

/* ============ "Vedi anteprima": the whole screen becomes the game ============ */
html.pv-open, html.pv-open body { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 300; background: #1a1024; color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: contain; }
.pv[hidden] { display: none; }
.pv:focus { outline: none; }
.pv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
/* the real game in a frame: a thin bar on top (the note and «Esci»), the game fills the rest */
.pv.framed { --pvbar: 52px; }
.pv.framed .pv-canvas, .pv.framed .pv-hint, .pv.framed .pv-hud { display: none; }
.pv.framed .pv-layer { top: var(--pvbar); padding: 0; display: block; }
.pv.framed .pv-top { height: var(--pvbar); align-items: center; padding: max(0px, env(safe-area-inset-top)) 12px 0; background: #1a1024; border-bottom: 2px solid #2e2140; }
.pv.framed .pv-note { background: none; padding: 0; backdrop-filter: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pv-frame { display: block; width: 100%; height: 100%; border: 0; background: #1a1024; }
.pv.framed .pv-end { z-index: 2; }
.pv-layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 16px 84px; pointer-events: none; }
.pv-layer > * { pointer-events: auto; }
.pv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
.pv-note { margin: 0; max-width: 46ch; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: rgba(255, 255, 255, .88); background: rgba(26, 16, 36, .55); border-radius: 10px; padding: 7px 11px; backdrop-filter: blur(4px); }
.pv-exit { pointer-events: auto; flex: none; font: inherit; font-weight: 800; font-size: 14px; color: var(--notte); background: #fff; border: 2.5px solid var(--notte); border-radius: 999px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--notte); cursor: pointer; }
.pv-exit:hover { background: var(--limone); }
.pv-hud { position: absolute; left: 14px; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; font-family: var(--pixel); font-weight: 700; font-size: 16px; color: #fff; text-shadow: 2px 2px 0 var(--notte); background: rgba(26, 16, 36, .5); border-radius: 10px; padding: 6px 11px; pointer-events: none; }
.pv-hint { position: absolute; left: 50%; bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px)); transform: translateX(-50%); margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--notte); background: var(--limone); border: 2.5px solid var(--notte); border-radius: 999px; padding: 10px 18px; box-shadow: 3px 3px 0 var(--notte); pointer-events: none; animation: pv-bob 1.4s ease-in-out infinite; transition: opacity .4s; }
.pv-hint.gone { opacity: 0; }
.pv-hint:empty { display: none; }
@keyframes pv-bob { 50% { transform: translate(-50%, -4px); } }
.pv-toast { position: absolute; left: 50%; top: 22%; transform: translate(-50%, 8px); margin: 0; max-width: min(90vw, 460px); text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; background: var(--fragola); border: 2.5px solid var(--notte); border-radius: 16px; padding: 10px 18px; box-shadow: 4px 4px 0 var(--notte); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.pv-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* end card */
.pv-end { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(26, 16, 36, .55); animation: pv-fade .35s ease-out; }
.pv-end[hidden] { display: none; }
.pv-end-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--notte); background: #fff; border: var(--line); border-radius: var(--r-md); box-shadow: 6px 6px 0 var(--fragola); padding: 26px 26px 18px; max-width: 420px; width: 100%; animation: pv-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.pv-end-kicker { margin: 0; font-family: var(--pixel); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fragola); }
.pv-end-card h2 { margin: 0; font-size: clamp(24px, 6vw, 30px); }
.pv-end-card .btn { font-size: 17px; padding: 14px 22px; }
@media (max-width: 380px) { .pv-end-card .btn { white-space: normal; } }
@keyframes pv-fade { from { opacity: 0; } }
@keyframes pv-pop { from { transform: scale(.85); opacity: 0; } }

/* memory cards */
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2.2vw, 18px); width: min(92vw, 560px, calc((100vh - 170px) * 1.05)); }
.pv-card { aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; perspective: 800px; font: inherit; }
.pv-card-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.pv-card.up .pv-card-in { transform: rotateY(180deg); }
.pv-back, .pv-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 3px solid var(--notte); border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 4px 4px 0 var(--notte); }
.pv-back { background: var(--fragola); background-image: radial-gradient(rgba(255, 255, 255, .25) 2px, transparent 2px); background-size: 14px 14px; }
.pv-back img { width: 46%; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 var(--notte)); }
.pv-face { transform: rotateY(180deg); background: var(--luna); color: var(--notte); }
.pv-face canvas { width: 62%; height: auto; image-rendering: pixelated; }
.pv-face small { font-weight: 800; font-size: clamp(11px, 2.6vw, 14px); padding: 0 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pv-card.match .pv-face { background: var(--limone); animation: pv-match .5s ease-out; }
.pv-card:hover:not(.up) .pv-card-in { transform: translateY(-3px); }
@keyframes pv-match { 40% { transform: rotateY(180deg) scale(1.08); } }

/* quiz */
.pv-quiz { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(92vw, 520px); }
.pv-host canvas { display: block; width: clamp(84px, 16vh, 132px); height: auto; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .35)); }
.pv-qcard { width: 100%; text-align: center; color: var(--notte); background: #fff; border: var(--line); border-radius: var(--r-md); box-shadow: 5px 5px 0 var(--limone); padding: 18px 18px 14px; }
.pv-qcard.pop { animation: pv-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.pv-qcard.shake { animation: pv-shake .35s; }
@keyframes pv-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pv-qnum { margin: 0 0 4px; font-family: var(--pixel); font-size: 12px; text-transform: uppercase; color: var(--fragola); }
.pv-q { margin: 0 0 14px; font-family: var(--display); font-size: clamp(18px, 4.6vw, 22px); line-height: 1.2; }
.pv-ans { display: grid; gap: 9px; }
.pv-a { font: inherit; font-weight: 800; font-size: 16px; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: transform .1s; }
.pv-a:hover:not(:disabled) { background: var(--limone); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--notte); }
.pv-a.right { background: #22D3A6; color: var(--notte); }
.pv-a.wrong { background: var(--fragola); color: #fff; }
.pv-a:disabled { cursor: default; }
.pv-fb { min-height: 1.4em; margin: 10px 0 0; font-weight: 800; }
.pv-verdict { margin: 0 0 6px; font-weight: 700; }

@media (max-aspect-ratio: 4/5) { .pv-cards { grid-template-columns: repeat(2, 1fr); width: min(84vw, calc((100vh - 210px) * .5)); } }
@media (max-width: 560px) {
  .pv-note { font-size: 11.5px; }
  .pv-layer { padding-bottom: 110px; }
  .pv-hint { font-size: 14px; bottom: max(62px, calc(env(safe-area-inset-bottom) + 54px)); }
}
@media (prefers-reduced-motion: reduce) {
  .pv-hint, .pv-end, .pv-end-card, .pv-qcard.pop, .pv-qcard.shake, .pv-card.match .pv-face { animation: none; }
  .pv-card-in { transition: none; }
}

/* step 1: the three packages side by side, price in the card */
.plan-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 6px; padding-top: 12px; }
.plan-pick { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; font: inherit; color: var(--notte); background: var(--white); border: var(--line); border-radius: var(--r-md); padding: 18px 18px 16px; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.plan-pick:hover { transform: translateY(-2px); }
.plan-pick-badge { position: absolute; top: -14px; left: 16px; font-size: 12.5px; padding: 3px 10px; }
.plan-pick-what { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.15; }
.plan-pick-price { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; margin: 4px 0 6px; }
.plan-pick-price small { font-size: 20px; }
.plan-pick-desc { font-size: 14px; font-weight: 700; color: var(--notte-70); line-height: 1.35; }
.plan-pick ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.plan-pick li { position: relative; padding-left: 18px; }
.plan-pick li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; color: var(--fragola); }
.plan-pick[aria-pressed='true'] { background: var(--limone); box-shadow: 5px 5px 0 var(--notte); }
.plan-pick[aria-pressed='true']::after { content: '✓'; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--notte); color: var(--white); font-weight: 800; font-size: 14px; }
.plan-pick[aria-pressed='true'] .plan-pick-desc { color: var(--notte); }
.plan-pick .launch-top { margin: 2px 0 0; }
.plan-pick .launch-tag { font-size: 11.5px; }
.plan-pick .launch-cd { font-size: 13px; }
.plan-pick .launch-cd-lead { display: none; }
.plan-pick .launch-top { gap: 4px 8px; }
.plan-pick .launch-after { margin: 0 0 6px; font-size: 13px; }
@media (min-width: 721px) { .plan-picks:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-pick.is-soon { cursor: default; background: var(--luna); }
.plan-pick.is-soon:hover { transform: none; }
.plan-pick.is-soon .btn { margin-top: auto; width: 100%; white-space: normal; line-height: 1.2; }
.plan-pick.is-soon ul { margin-bottom: 12px; }
.plan-pick.is-soon li::before { color: var(--notte-70); }
.mini-block { margin: 18px 0 4px; animation: note-in .22s ease-out; }
.mini-block .hint { color: var(--notte-70); font-size: 14px; margin: -8px 0 10px; }
.mini-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; font: inherit; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.mini-opt i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--notte); }
.mini-opt strong { font-family: var(--display); font-size: 15px; }
.mini-opt span { grid-column: 2; font-size: 12.5px; font-weight: 600; color: var(--notte-70); line-height: 1.3; }
.mini-opt[aria-pressed='true'] { background: var(--notte); color: var(--white); box-shadow: 3px 3px 0 var(--fragola); }
.mini-opt[aria-pressed='true'] span { color: rgba(255, 255, 255, .8); }
@media (max-width: 720px) {
  .cfg { padding-top: 14px; }
  .stepper { margin-bottom: 14px; }
  .plan-picks { grid-template-columns: 1fr; gap: 14px; padding-top: 6px; margin-top: 10px; }
  .plan-pick { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; padding: 11px 14px; }
  .plan-pick-badge { top: -12px; left: 12px; font-size: 11.5px; padding: 2px 9px; }
  .plan-pick-what { font-size: 18px; }
  .plan-pick-price { grid-column: 2; grid-row: span 2; align-self: center; font-size: 28px; margin: 0; }
  .plan-pick-desc { grid-column: 1; font-size: 13.5px; }
  .plan-pick ul { display: none; }
  .plan-pick .launch-top { grid-column: 1 / -1; justify-self: start; margin: 4px 0 2px; }
  .plan-pick .launch-after { grid-column: 1; margin: 0; }
  .plan-pick.is-soon .btn { grid-column: 1 / -1; margin-top: 8px; width: auto; justify-self: start; }
  .plan-pick[aria-pressed='true']::after { top: auto; bottom: -11px; right: 14px; width: 22px; height: 22px; font-size: 12px; }
  .mini-pick { gap: 6px; }
  .mini-opt { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 4px; padding: 8px 4px; }
  .mini-opt strong { font-size: 13px; }
  .mini-opt span { display: none; }
  .mini-block { margin-top: 14px; }
  .mini-block .block-title { font-size: 17px; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .mini-block { animation: none; } }
/* low laptop screens: the whole of step 1, "Avanti" included, without scrolling */
@media (min-width: 981px) and (max-height: 820px) {
  .cfg { padding-top: 14px; }
  .cfg-title { font-size: 40px; margin-bottom: 10px; }
  .stepper { margin-bottom: 16px; }
  .plan-picks { margin-top: 10px; }
  .plan-pick { padding: 16px 16px 14px; }
  .plan-pick ul { margin-top: 8px; }
  .mini-block { margin-top: 12px; }
  .mini-opt { padding: 8px 12px; }
}
.mini-block.invalid .mini-pick { outline: 2.5px solid var(--fragola); outline-offset: 5px; border-radius: 14px; }

/* ============ step 2: one character at a time ============ */
.field-hint { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--notte-70); }
.cast-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cast-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 15px; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 999px; padding: 4px 16px 4px 6px; cursor: pointer; max-width: 100%; }
.cast-tab[aria-selected='true'] { background: var(--notte); color: var(--white); box-shadow: 3px 3px 0 var(--fragola); }
.cast-tab-pic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 2px solid var(--notte); overflow: hidden; }
.cast-tab-pic canvas { width: 26px !important; height: auto !important; margin-top: 8px; }
.cast-tab-pic .cast-ghost { transform: scale(.6); }
.cast-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.cast-tab.has-err::after { content: ''; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--fragola); border: 2px solid var(--white); }
.cast-add { background: none; border-style: dashed; padding: 10px 16px; font-size: 14px; }
.cast-add small { font-weight: 700; color: var(--notte-70); }

.char-panel .char-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.char-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.char-name strong { font-family: var(--display); font-size: 22px; }
.char-name .muted { font-size: 14px; font-weight: 600; }
.pencil { font: inherit; font-weight: 800; font-size: 13.5px; color: var(--notte); background: none; border: 0; padding: 2px 4px; text-decoration: underline; cursor: pointer; }
.char-name.invalid strong { color: var(--fragola); }
.char-name-field { flex: 1; margin-bottom: 0; }

.char-panel .char-body { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; margin-top: 16px; }
.char-panel .char-preview .stage { width: 180px; height: 210px; position: sticky; top: 92px; place-items: end center; padding-bottom: 14px; background: var(--luna); background-image: linear-gradient(transparent 72%, rgba(36, 18, 74, .07) 72%); }
.walker { width: 126px; height: 168px; image-rendering: pixelated; }
.start-label { margin-top: 0 !important; }
.char-panel .preset-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 6px 0 14px; }
.char-panel .preset-tile { font-size: 12.5px; padding: 6px 2px; }
.char-panel .preset-pic { height: 52px; }
.char-panel .editor details.group { padding: 0; margin-bottom: 8px; }
.char-panel .editor details.group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; }
.char-panel .editor details.group > summary::-webkit-details-marker { display: none; }
.char-panel .editor details.group > summary::after { content: '+'; font-family: var(--display); font-size: 20px; line-height: 1; }
.char-panel .editor details.group[open] > summary::after { content: '–'; }
.char-panel .editor details.group[open] { padding-bottom: 12px; background: var(--white); border-color: var(--notte); }
.char-panel .editor details.group > :not(summary) { margin-left: 14px; margin-right: 14px; }
@media (max-width: 1100px) and (min-width: 981px), (max-width: 760px) { .char-panel .preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .char-panel .char-body { grid-template-columns: 1fr; gap: 12px; }
  .char-panel .char-preview { position: sticky; top: 66px; z-index: 5; justify-content: center; }
  .char-panel .char-preview .stage { position: static; width: 100%; height: 120px; padding-bottom: 8px; border-radius: 16px; box-shadow: 0 6px 12px -8px rgba(36, 18, 74, .35); }
  .walker { width: 72px; height: 96px; }
  .char-name strong { font-size: 20px; }
}

/* ============ step 2 editor: full width, categories | character | pictures, bar with the price ============ */
.nav-mid { display: none; }
.studio-wide .cfg-layout { grid-template-columns: minmax(0, 1fr); }
.studio-wide .cfg-side { display: none; }
@media (min-width: 761px) {
  .studio-wide .who-block { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: start; }
  .studio-wide .who-block > .block-title { grid-column: 1 / -1; }
  .studio-wide .who-block > [data-err='recipient'] { grid-column: 1; grid-row: 2; }
  .studio-wide .who-block > .field:last-child { grid-column: 2; grid-row: 2; margin-bottom: 18px; }
  .studio-wide .who-block > [data-err='occasion'] { grid-column: 1 / -1; grid-row: 3; margin-bottom: 0; }
}

.av-wrap { display: grid; grid-template-columns: 220px 240px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 16px; }
.av-slots { display: flex; flex-direction: column; gap: 6px; }
.av-slot { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: var(--notte); background: none; border: 2.5px solid transparent; padding: 5px 10px 5px 5px; border-radius: 999px; cursor: pointer; min-width: 0; }
.av-slot:hover { background: var(--luna); }
.av-slot[aria-pressed='true'] { background: var(--limone); border-color: var(--notte); box-shadow: 3px 3px 0 var(--notte); }
.av-ring { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--luna); border: 2.5px solid var(--notte); overflow: hidden; }
.av-slot[aria-pressed='true'] .av-ring { background: var(--white); }
.av-ring [data-crop="face"] canvas { width: 48px; }
.av-ring [data-crop="shirt"] canvas { width: 46px; }
.av-ring [data-crop="fullc"] canvas { width: 30px; }
.av-slot-txt { display: flex; flex-direction: column; min-width: 0; }
.av-slot-txt small { font-size: 15.5px; font-weight: 800; color: var(--notte); }
.av-slot-txt em { display: none; }

.av-stage .stage { width: 240px; height: 300px; display: grid; place-items: end center; padding-bottom: 18px; border: 2.5px solid var(--notte); border-radius: 22px; background: var(--luna); background-image: radial-gradient(ellipse 60% 30% at 50% 88%, rgba(255, 210, 63, .45) 0 70%, transparent 71%), linear-gradient(transparent 78%, rgba(36, 18, 74, .07) 78%); }
.av-stage .walker { width: 162px; height: 216px; }
.av-stage { position: relative; }
/* computer and tablet: the character being made stays in view while the options on the right scroll (on the phone it sticks at the top) */
@media (min-width: 761px) {
  .av-stage, .av-slots { position: sticky; top: 92px; z-index: 3; }
}
/* «Sorprendimi», in the corner of the stage */
.av-dice { position: absolute; top: 10px; right: 10px; z-index: 2; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--notte); background: var(--white); border: 2px solid var(--notte); border-radius: 999px; padding: 4px 10px; cursor: pointer; box-shadow: 2px 2px 0 var(--notte); }
.av-dice:hover { background: var(--limone); }
.av-dice:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--notte); }
/* the characters at game size, feet on the same floor line */
.av-game { margin-top: 10px; padding: 6px 10px 8px; border: 2.5px solid var(--notte); border-radius: 16px; background: var(--white); }
.av-game-label { display: block; font-size: 12px; font-weight: 800; color: var(--notte-70); }
.av-game-row { display: flex; align-items: flex-end; justify-content: center; flex-wrap: nowrap; padding-top: 2px; background: linear-gradient(transparent calc(100% - 9px), rgba(36, 18, 74, .14) calc(100% - 9px) calc(100% - 6px), transparent calc(100% - 6px)); }
.av-game-pc { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.av-game-pc + .av-game-pc { margin-left: -2px; }
.av-game-pc canvas { display: block; width: 32px; height: 48px; image-rendering: pixelated; }
.av-game-pc::after { content: ''; display: block; width: 14px; height: 4px; margin-top: 2px; border-radius: 2px; background: transparent; }
.av-game-pc.is-on::after { background: var(--fragola); }
.av-pic { display: grid; place-items: center; }
.av-pic canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }

.av-picker { min-height: 300px; padding: 16px 16px 18px; border: 2.5px solid var(--notte); border-radius: 22px; background: var(--white); }
.av-picker-title { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.av-rows { display: grid; gap: 10px; }
.av-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 10px; }
.av-row + .av-row { padding-top: 10px; border-top: 2px dashed var(--notte-10); }
.av-row-label { font-weight: 800; font-size: 13.5px; color: var(--notte-70); }
.av-row-items { display: flex; flex-wrap: wrap; gap: 6px; }
.av-row .av-opt { width: 64px; padding: 5px 3px 4px; gap: 3px; border-width: 2px; border-radius: 11px; }
.av-row .av-opt .av-pic { width: 36px; }
.av-row .av-opt small { font-size: 10.5px; }
.av-row .av-opt.is-color { width: 48px; }
.av-row .av-opt.is-color .av-pic { width: 30px; }
.av-row .av-dot { width: 12px; height: 12px; }
.av-row .av-opt[aria-pressed='true'] { box-shadow: 2px 2px 0 var(--notte); }
.av-subs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.av-sub-tab { font: inherit; font-weight: 800; font-size: 13.5px; color: var(--notte); background: var(--luna); border: 2px solid var(--notte); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.av-sub-tab[aria-selected='true'] { background: var(--notte); color: var(--white); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.av-grid-colors { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.av-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 14px; padding: 10px 6px 8px; cursor: pointer; transition: transform .1s; }
.av-opt .av-pic { width: 54px; }
.av-opt small { font-size: 12.5px; font-weight: 800; text-align: center; line-height: 1.2; }
.av-dot { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--notte); }
.av-opt:hover { transform: translateY(-2px); }
.av-opt[aria-pressed='true'] { background: var(--limone); box-shadow: 3px 3px 0 var(--notte); }
.av-note { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: var(--notte-70); }

/* the bar at the bottom: back, the price, "Vedi anteprima" (always in view) */
.studio-wide .step-nav { position: sticky; bottom: 0; z-index: 20; align-items: center; background: var(--white); border: var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 12px 16px; margin-top: 20px; box-shadow: 0 -8px 20px -14px rgba(36, 18, 74, .4); }
.studio-wide .nav-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nav-total { font-family: var(--display); font-weight: 800; font-size: 20px; }
.nav-total small { font-family: var(--body, inherit); font-size: 13px; font-weight: 700; color: var(--notte-70); margin-right: 6px; }
.nav-mid .link-btn { font-size: 13px; color: var(--notte-70); padding: 0; }
.studio-wide .skip-row { display: none; }

@media (max-width: 1100px) and (min-width: 761px) {
  .av-wrap { grid-template-columns: 190px 200px minmax(0, 1fr); gap: 16px; }
  .av-stage .stage { width: 200px; height: 260px; }
  .av-stage .walker { width: 126px; height: 168px; }
  .av-slot-txt strong { font-size: 14px; }
}
@media (max-width: 980px) {
  .studio-wide .step-nav { bottom: 70px; flex-wrap: wrap; gap: 2px 12px; background: var(--luna); border: 0; border-radius: 0; box-shadow: none; padding: 8px 0 6px; margin-top: 12px; }
  .nav-mid .link-btn { font-size: 12.5px; }
  .studio-wide .nav-mid { order: 3; width: 100%; }
  .nav-total { display: none; }
}
@media (max-width: 760px) {
  .av-wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 2px; }
  .av-slots { display: contents; }
  .av-stage { grid-column: 1 / -1; grid-row: 1; position: sticky; top: 66px; z-index: 5; }
  .av-stage .stage { width: 100%; height: 124px; padding-bottom: 8px; box-shadow: 0 6px 12px -8px rgba(36, 18, 74, .35); }
  .av-stage .walker { width: 72px; height: 96px; }
  .av-dice { top: 8px; right: 8px; font-size: 11.5px; padding: 3px 8px; }
  .av-game { position: absolute; left: 8px; bottom: 6px; margin: 0; padding: 2px 6px 4px; border-width: 2px; border-radius: 12px; }
  .av-game-label { font-size: 10px; }
  .av-slot, .av-slot[aria-pressed='true'] { flex-direction: column; text-align: center; gap: 4px; padding: 2px; border: 0; background: none; box-shadow: none; border-radius: 12px; }
  .av-ring { width: 42px; height: 42px; }
  .av-slot[aria-pressed='true'] .av-ring { background: var(--limone); box-shadow: 2px 2px 0 var(--notte); }
  .av-ring [data-crop="face"] canvas { width: 38px; }
  .av-ring [data-crop="shirt"] canvas { width: 36px; }
  .av-ring [data-crop="fullc"] canvas { width: 24px; }
  .av-slot-txt small, .av-slot-txt strong { display: none; }
  .av-slot-txt em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: -.01em; }
  .av-slot[aria-pressed='true'] .av-slot-txt em { color: var(--fragola); }
  .av-picker { grid-column: 1 / -1; min-width: 0; min-height: 0; padding: 12px; border-radius: 18px; overflow: hidden; }
  .av-picker-head { min-width: 0; }
  .av-picker-head { display: block; margin-bottom: 10px; }
  .av-picker-title { margin-bottom: 8px; }
  .av-subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 10px; padding: 0 12px 2px; }
  .av-sub-tab { flex: none; }
  .av-grid, .av-grid-colors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .av-opt { padding: 7px 3px 6px; gap: 4px; border-width: 2px; border-radius: 12px; }
  .av-opt .av-pic { width: 38px; }
  .av-opt small { font-size: 11px; }
  .av-dot { width: 14px; height: 14px; }
}

/* computer: characters, name and "Crealo tu | Descrivilo" on one line, then the editor */
@media (min-width: 981px) {
  .studio-wide .cast-block { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(260px, 330px); align-items: center; column-gap: 18px; }
  .studio-wide .cast-block > .block-title { margin: 0; }
  .studio-wide .cast-block .cast-tabs { margin: 0; }
  .studio-wide .cast-block .char-panel { display: contents; }
  .studio-wide .cast-block .char-top { grid-column: 3; margin: 0; justify-content: flex-start; }
  .studio-wide .cast-block .tabs { grid-column: 4; margin: 0; }
  .studio-wide .cast-block .tab { padding: 8px 6px; font-size: 13.5px; }
  .studio-wide .cast-block .av-wrap, .studio-wide .cast-block .describe-box { grid-column: 1 / -1; }
  .studio-wide .cast-block .char-name strong { font-size: 20px; }
  /* Memory Lane: the title and the two tabs on one line that never squeezes the title, then name and nickname
     side by side in two equal halves, labels and boxes on the same line */
  .studio-wide .cast-block.ml-cast { display: block; }
  .studio-wide .cast-block.ml-cast > .block-title { display: inline-block; vertical-align: middle; margin: 0 18px 0 0; white-space: nowrap; }
  .studio-wide .cast-block.ml-cast > .cast-tabs { display: inline-flex; vertical-align: middle; flex-wrap: nowrap; margin: 0; }
  .studio-wide .cast-block.ml-cast .char-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; align-items: start; margin-top: 14px; }
  .studio-wide .cast-block.ml-cast .char-panel > * { grid-column: 1 / -1; }
  .studio-wide .cast-block.ml-cast .char-panel > .char-top { grid-column: 1; margin: 0; }
  .studio-wide .cast-block.ml-cast .char-panel > .char-nick { grid-column: 2; margin: 0; }
}


/* "Per quale occasione?": tiles with pixel icons, chosen = yellow like the rest of the configurator */
.occ-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.occ { display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; color: var(--notte); background: var(--luna); border: 2.5px solid var(--notte); border-radius: 14px; padding: 10px 4px 8px; cursor: pointer; transition: transform .1s; }
.occ:hover { transform: translateY(-2px); }
.occ[aria-pressed='true'] { background: var(--limone); box-shadow: 3px 3px 0 var(--notte); }
.occ-ico { display: grid; place-items: end center; height: 39px; }
.occ-ico canvas { width: 42px; height: auto; image-rendering: pixelated; }
.occ-name { font-weight: 800; font-size: 13.5px; }
@media (min-width: 761px) { .studio-wide .occ-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .occ-grid { gap: 6px; }
  .occ { padding: 8px 2px 6px; border-width: 2px; border-radius: 12px; gap: 4px; }
  .occ-ico { height: 30px; }
  .occ-ico canvas { width: 32px; }
  .occ-name { font-size: 10.5px; letter-spacing: -.01em; }
}

/* Memory Lane: the two memories of a place (22 November 2026) */
.ml-mem { margin-top: 24px; padding-top: 20px; border-top: 2px dashed var(--notte-20, rgba(36,18,74,.2)); }
.ml-mem-h { margin: 0 0 12px; font-size: 18px; color: var(--notte); display: flex; align-items: center; gap: 8px; } /* a memory: between the chapter title and the questions */
.ml-mem.invalid { outline-offset: 3px; }
.ml-mem-h { display: block; } .ml-mem-n { color: var(--fragola); } /* only «Ricordo 1» in pink */
/* «Di che tipo è?»: the buttons of the site (white, thick outline; chosen = yellow with the hard shadow, like occasions and the editor) */
.ml-types { gap: 8px; }
.ml-types .chip { background: var(--white); border-width: 2.5px; font-weight: 800; font-size: 14px; padding: 8px 14px; transition: transform .1s; }
.ml-types .chip:hover { transform: translateY(-2px); }
.ml-types .chip[aria-pressed='true'] { background: var(--limone); color: var(--notte); box-shadow: 3px 3px 0 var(--notte); }
.char-nick { margin: 4px 0 14px; } .char-nick .field-hint { margin-bottom: 0; }
/* Memory Lane: always two characters, their tabs stay side by side and a long name is cut with «…» instead of wrapping */
.cast-block.ml-cast .cast-tabs { flex-wrap: nowrap; }
.cast-block.ml-cast .cast-tab, .cast-block.ml-cast .cast-tab-name { min-width: 0; }
.cast-block.ml-cast .cast-tab-pic { flex: none; }
@media (max-width: 980px) { .cast-block.ml-cast .cast-tab { flex: 1 1 0; max-width: max-content; } }
/* «Per chi è il regalo?» and «Da parte di chi?»: the buttons, then the box to write any other name */
.gift-who .chips { margin-bottom: 8px; }
[data-err='giftFor'].invalid > input, [data-err='from'].invalid > input { border-color: var(--fragola); }
