/* ============================================================
   LE EMOZIONI — stile locale
   Carica prima css/kids-base.css (variabili, header, footer).
   Le convenzioni condivise sono in GUIDA-APP-KIDS.md.
   ============================================================ */

/* JS accende e spegne le aree con `hidden`: senza questa riga, i
   display:grid qui sotto lo scavalcherebbero. NON togliere. */
[hidden] { display: none !important; }

/* ---------- Layout principale ---------- */
.game-container {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 36px) 12px 48px;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--kids-font-body);
    background:
        radial-gradient(560px 300px at 3% -40px, rgba(244, 114, 182, .12), transparent 62%),
        radial-gradient(560px 320px at 99% 4%, rgba(129, 140, 248, .13), transparent 62%),
        linear-gradient(180deg, #fdf2f8 0%, #eef2ff 55%, #f0fdfa 100%);
}

.bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-decor span {
    position: absolute;
    opacity: .10;
    line-height: 1;
    animation: decorFloat 9s ease-in-out infinite alternate;
}

@keyframes decorFloat {
    from { transform: translateY(-12px) rotate(-8deg); }
    to   { transform: translateY(14px) rotate(10deg); }
}

/* ---------- Schermate ---------- */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 780px;
    padding: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.screen.active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Schermata iniziale ---------- */
.hero-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.5vw, 18px);
    margin-bottom: 0.9rem;
    min-height: 92px;
}

.hero-item {
    width: clamp(62px, 12vw, 88px);
    aspect-ratio: 1;
    border-radius: 20px;
    background: #fff;
    border: 3px solid #fbcfe8;
    box-shadow: 0 5px 0 rgba(190, 24, 93, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.9rem, 6vw, 2.6rem);
    line-height: 1;
    animation: heroBob 2.6s ease-in-out infinite;
}

.hero-item:nth-child(2) { animation-delay: .35s; border-color: #fed7aa; box-shadow: 0 5px 0 rgba(194, 65, 12, .15); }
.hero-item:nth-child(3) { animation-delay: .7s; border-color: #bbf7d0; box-shadow: 0 5px 0 rgba(21, 128, 61, .15); }
.hero-item:nth-child(4) { animation-delay: 1.05s; border-color: #bfdbfe; box-shadow: 0 5px 0 rgba(29, 78, 216, .15); }

@keyframes heroBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.game-title {
    font-family: var(--kids-font-title);
    font-size: clamp(2rem, 5.6vw, 3.2rem);
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 0.4rem;
    text-shadow: 0 3px 0 rgba(10, 91, 99, .12);
}

.game-subtitle {
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    color: var(--ink-2);
    font-weight: 700;
    margin: 0 0 1.8rem;
}

.choose-label {
    font-family: var(--kids-font-title);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* Card delle modalità */
.level-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 300px));
    gap: clamp(12px, 2.5vw, 22px);
    justify-content: center;
    width: 100%;
}

.level-card {
    --lvl: #22c55e;
    --lvl-dark: #15803d;
    --lvl-soft: #f0fdf4;
    appearance: none;
    border: 3px solid var(--lvl);
    background: #fff;
    border-radius: var(--kids-radius);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 7px 0 var(--lvl-dark), var(--kids-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-family: var(--kids-font-body);
}

.level-card:hover {
    transform: translateY(-4px);
    background: var(--lvl-soft);
    box-shadow: 0 11px 0 var(--lvl-dark), var(--kids-shadow);
}

.level-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--lvl-dark); }

.level-card.riconosci  { --lvl: #22c55e; --lvl-dark: #15803d; --lvl-soft: #f0fdf4; }
.level-card.termometro { --lvl: #f43f5e; --lvl-dark: #be123c; --lvl-soft: #fff1f2; }
.level-card.famiglia   { --lvl: #8b5cf6; --lvl-dark: #6d28d9; --lvl-soft: #f5f3ff; }
.level-card.etu        { --lvl: #0ea5e9; --lvl-dark: #0369a1; --lvl-soft: #f0f9ff; }

.level-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }

.level-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.level-name {
    font-family: var(--kids-font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.level-desc { font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }

/* ---------- Scheda per gli adulti ---------- */
.info-box {
    background: #fff;
    border: 2px dashed #cfe2e2;
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    margin-top: 2.2rem;
    width: 100%;
    text-align: left;
    color: #3b4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-box h2 {
    font-family: var(--kids-font-title);
    font-size: 1.15rem;
    color: var(--brand);
    margin: 0 0 0.7rem;
}

.info-box h3 {
    font-family: var(--kids-font-title);
    font-size: 1rem;
    color: var(--brand);
    margin: 1.1rem 0 0.4rem;
}

.info-box p { margin: 0 0 0.55rem; }
.info-box ul { margin: 0 0 0.55rem; padding-left: 1.2rem; }
.info-box li { margin-bottom: 0.35rem; }

.info-box .info-tip {
    margin-top: 0.9rem;
    background: #f0fdfa;
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
}

/* ---------- HUD ---------- */
.hud {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 1rem;
}

.hud-pill {
    background: #fff;
    border: 2px solid #ffe1a6;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-family: var(--kids-font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--kids-shadow-sm);
    white-space: nowrap;
}

.free-pill { border-color: #bae6fd; font-size: 1rem; margin-right: auto; }

.score-pill.bump { animation: scoreBump .45s ease; }

@keyframes scoreBump { 30% { transform: scale(1.22); } }

.hud-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.progress-track {
    flex: 1;
    height: 16px;
    background: #e4ece7;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(10, 91, 99, .12);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f472b6, #818cf8);
    transition: width .5s cubic-bezier(.22, 1, .36, 1);
}

.progress-label {
    font-family: var(--kids-font-title);
    font-weight: 600;
    color: var(--brand);
    font-size: 1rem;
    white-space: nowrap;
}

.hud-right { display: flex; gap: 8px; }

.hud-btn {
    appearance: none;
    border: 2px solid #d7efec;
    background: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--kids-shadow-sm);
    transition: transform .15s ease, background .15s ease;
    padding: 0;
    line-height: 1;
}

.hud-btn:hover { transform: translateY(-2px); background: #f0fdfa; }
.hud-btn.home { border-color: var(--brand); background: #f0fdfa; }

/* ---------- La scena e la consegna ---------- */
.prompt-card {
    position: relative;
    background: #fff;
    border: 3px solid #d7efec;
    border-radius: var(--kids-radius);
    box-shadow: var(--kids-shadow-sm);
    padding: 1rem 3.6rem 1rem 1.4rem;
    width: 100%;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* La scena viene prima della domanda: si impara dagli episodi, non
   dalle definizioni. Perciò è lei ad avere il corpo più grande. */
.scena {
    font-family: var(--kids-font-body);
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    font-style: italic;
}

.scena:empty { display: none; }

.parola-grande {
    font-family: var(--kids-font-title);
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700;
    font-style: normal;
    color: var(--brand);
}

.prompt-text {
    font-family: var(--kids-font-title);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.3;
}

.say-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ffe1a6;
    background: #fff8ec;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--kids-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: transform .15s ease;
}

.say-btn:hover { transform: scale(1.1); }
.say-btn:active { transform: scale(0.9); }

/* ---------- Le carte delle emozioni ---------- */
.scelte {
    display: grid;
    gap: clamp(8px, 2.2vw, 16px);
    justify-content: center;
    width: 100%;
    margin-bottom: 0.4rem;
}

.scelte.n4 { grid-template-columns: repeat(2, minmax(0, 200px)); }
.scelte.n6 { grid-template-columns: repeat(3, minmax(0, 170px)); }

.emo-btn {
    appearance: none;
    position: relative;
    background: #fff;
    border: 3px solid #e6f2f0;
    border-radius: var(--kids-radius);
    box-shadow: 0 5px 0 rgba(10, 91, 99, .10), var(--kids-shadow-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.8rem 0.5rem;
    min-height: 108px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease, opacity .3s ease;
    animation: cardIn .35s cubic-bezier(.34, 1.56, .64, 1) backwards;
    overflow: hidden;
}

@keyframes cardIn { from { opacity: 0; transform: scale(.6); } }

.emo-faccia { font-size: clamp(2rem, 7vw, 2.7rem); line-height: 1; }

.emo-parola {
    font-family: var(--kids-font-title);
    font-size: clamp(.85rem, 2.7vw, 1.05rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
}

.emo-btn:hover {
    transform: translateY(-5px);
    border-color: #bfe6e0;
    box-shadow: 0 10px 0 rgba(10, 91, 99, .10), var(--kids-shadow);
}

.emo-btn:active { transform: scale(.95); box-shadow: 0 2px 0 rgba(10, 91, 99, .10); }

.emo-btn.chosen {
    border-color: var(--accent);
    background: #fff8ec;
    transform: translateY(-5px);
    box-shadow: 0 10px 0 #b97b00, var(--kids-shadow);
    z-index: 2;
}

.emo-btn.dragging { opacity: .35; }

/* Stati della risposta: gli stessi in tutte le app kids */
.emo-btn.correct { border-color: #22c55e; background: #f0fdf4; animation: popCorrect .5s ease; }

@keyframes popCorrect {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.1) rotate(-3deg); }
    70%  { transform: scale(.97) rotate(2deg); }
    100% { transform: scale(1); }
}

.emo-btn.wrong { border-color: #ef4444; background: #fef2f2; animation: shakeCard .5s ease; }

@keyframes shakeCard {
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* `.reveal` e `.dim` sono stati tolti insieme al vecchio comportamento
   che, davanti a un errore, svelava la risposta giusta e chiudeva la
   domanda. Ora si ritenta, quindi non c'è più niente da svelare. */
.emo-btn.locked { pointer-events: none; }

/* Una risposta già provata e sbagliata. Resta al suo posto — sparire
   sposterebbe le altre sotto il dito — ma si spegne e non si tocca
   più. Niente rosso e niente croce: si è già capito, e il giro non è
   finito, si riprova. */
.emo-btn.fuori {
    opacity: .3;
    pointer-events: none;
    filter: grayscale(1);
    box-shadow: none;
    transform: none;
}

/* In «E tu?» non esiste risposta giusta: le carte non prendono mai
   né il verde né il rosso, solo l'evidenziazione della scelta. */
.scelte.libere .emo-btn:focus-visible { outline: 3px solid var(--accent); }

/* ---------- Il termometro ---------- */
.termo-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0.4rem;
}

/* Dal basso verso l'alto l'emozione cresce: il colore lo dice prima
   delle parole. */
.termometro {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    width: 100%;
    background: #fff;
    border: 3px solid #ffe4e6;
    border-radius: var(--kids-radius);
    box-shadow: var(--kids-shadow-sm);
    padding: 12px;
}

.gradino {
    --g: #fda4af;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 8px 12px;
    border: 3px dashed var(--g);
    border-radius: var(--kids-radius-sm);
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.gradino.g0 { --g: #fecdd3; }
.gradino.g1 { --g: #fb7185; }
.gradino.g2 { --g: #e11d48; }

.gradino-etichetta {
    font-family: var(--kids-font-title);
    font-size: .85rem;
    font-weight: 700;
    color: var(--g);
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 88px;
    text-align: left;
}

.gradino-posto {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gradino-posto .emo-faccia { font-size: clamp(1.7rem, 6vw, 2.2rem); }
.gradino-posto .emo-parola { font-size: clamp(.95rem, 3vw, 1.15rem); }

.gradino.pieno { border-style: solid; background: #fff; cursor: default; }
.gradino.waiting { animation: gradinoWait 1.4s ease-in-out infinite; }

@keyframes gradinoWait {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254, 168, 0, .45); }
    50%      { box-shadow: 0 0 0 9px rgba(254, 168, 0, 0); }
}

.gradino.over { transform: scale(1.02); background: #fff8ec; border-color: var(--accent); }
.gradino.wrong { border-color: #ef4444; background: #fef2f2; animation: shakeCard .5s ease; }

.carte-card {
    width: 100%;
    background: #fff;
    border: 3px solid #e6f2f0;
    border-radius: var(--kids-radius);
    box-shadow: var(--kids-shadow-sm);
    padding: 12px;
}

.carte {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.2vw, 14px);
    min-height: 110px;
}

.carte .emo-btn { width: clamp(96px, 27vw, 140px); }

/* Scintille sulla risposta giusta */
.sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFly .65s ease-out forwards;
    z-index: 3;
}

@keyframes sparkleFly {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to   { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.1); opacity: 0; }
}

/* ---------- Riscontro ---------- */
.feedback-msg {
    min-height: 3.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--kids-font-title);
    font-size: clamp(1rem, 3.1vw, 1.3rem);
    font-weight: 600;
    text-align: center;
    padding: 0.7rem 4px 0;
}

.feedback-msg span {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--kids-shadow-sm);
    animation: toastIn .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes toastIn { from { opacity: 0; transform: scale(.6) translateY(8px); } }

.feedback-msg.correct span { color: #15803d; border: 2px solid #bbf7d0; background: #f0fdf4; }
.feedback-msg.wrong span   { color: #b45309; border: 2px solid #fed7aa; background: #fffbeb; }

/* «E tu?»: il riscontro non è né verde né rosso, perché non c'è
   niente da valutare. Accoglie e basta. */
.feedback-msg.accolto span { color: #0369a1; border: 2px solid #bae6fd; background: #f0f9ff; }

/* Serie di risposte giuste */
.streak-badge {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316, #fbbf24);
    color: #fff;
    font-family: var(--kids-font-title);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1.6rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(249, 115, 22, .4);
    opacity: 0;
    pointer-events: none;
    z-index: 40;
}

.streak-badge.show { animation: badgePop 1.4s ease forwards; }

@keyframes badgePop {
    0%   { opacity: 0; transform: translateX(-50%) scale(.4); }
    15%  { opacity: 1; transform: translateX(-50%) scale(1.15); }
    25%  { transform: translateX(-50%) scale(1); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) scale(.9) translateY(-18px); }
}

/* ---------- Schermata finale ---------- */
.result-content {
    background: #fff;
    border: 3px solid #d7efec;
    color: var(--ink);
    padding: clamp(1.6rem, 5vw, 3rem);
    border-radius: 28px;
    text-align: center;
    width: min(480px, 94%);
    box-shadow: var(--kids-shadow);
}

.stars-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    margin-bottom: 0.4rem;
    min-height: 1.2em;
}

.stars-row .star { filter: grayscale(1) opacity(.35); }
.stars-row .star.earned { filter: none; animation: starPop .5s cubic-bezier(.34, 1.56, .64, 1) backwards; }

@keyframes starPop { from { transform: scale(0) rotate(-40deg); } }

.end-icon {
    font-size: clamp(3rem, 9vw, 4.2rem);
    margin-bottom: 0.6rem;
    animation: heroBob 2.4s ease-in-out infinite;
}

#end-title {
    font-family: var(--kids-font-title);
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--brand);
}

.final-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-2);
    margin: 0 0 1.6rem;
}

.final-score span {
    color: var(--accent);
    font-family: var(--kids-font-title);
    font-size: 1.45rem;
}

.action-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.btn-big {
    appearance: none;
    font-family: var(--kids-font-title);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-big.primary   { background: var(--brand); color: #fff; box-shadow: 0 5px 0 #063d42; }
.btn-big.secondary { background: var(--accent); color: #4a3200; box-shadow: 0 5px 0 #b97b00; }
.btn-big.ghost     { background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: 0 5px 0 rgba(10, 91, 99, .25); }

.btn-big:hover { transform: translateY(-2px); }
.btn-big:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }

/* ---------- Coriandoli ---------- */
.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -5vh;
    width: 10px;
    height: 15px;
    border-radius: 3px;
    animation: confettiFall linear forwards;
}

.confetti-piece.round { height: 10px; border-radius: 50%; }

@keyframes confettiFall {
    to { top: 108vh; transform: translateX(var(--drift)) rotate(var(--spin)); }
}

/* ---------- Header (bottone "Torna alle App") ---------- */
.site-header .btn {
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 14px;
    box-shadow: none;
}

/* ---------- Touch ----------
   kids-base.css impone min-height:44px a tutti i button sugli schermi
   touch: sui pulsanti tondi alzava solo l'altezza, schiacciandoli in
   ovali. Il minimo va imposto anche in larghezza. NON togliere. */
@media (pointer: coarse) {
    .hud-btn, .say-btn { min-width: 44px; min-height: 44px; }
}

/* ---------- Pulsante dell'audio ----------
   Sta nell'HUD accanto al 🏠: si spegne mentre si gioca. Da spento
   resta ben visibile che è spento, altrimenti un adulto pensa che
   l'app sia rotta. */
.hud-btn.audio-btn { border-color: #ffe1a6; background: #fff8ec; }
.hud-btn.audio-btn.spento { border-color: #fecaca; background: #fef2f2; opacity: .85; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .level-grid { grid-template-columns: minmax(200px, 340px); }

    .level-icon { font-size: 2rem; }
    .level-name { font-size: 1.15rem; }
    .level-desc { font-size: 0.85rem; }

    .hud { flex-wrap: wrap; gap: 8px; }
    .hud-progress { order: 3; width: 100%; flex-basis: 100%; }
    .hud-right { margin-left: auto; }
    .hud-pill { font-size: 1rem; padding: 0.4rem 0.8rem; }

    .prompt-card { padding: 0.9rem 3.2rem 0.9rem 1rem; }
    .say-btn { top: 0.6rem; right: 0.6rem; }

    .scelte.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scelte.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .gradino { min-height: 66px; gap: 8px; }
    .gradino-etichetta { min-width: 70px; font-size: .75rem; }
    .emo-btn { border-width: 2px; }
}

@media (max-width: 380px) {
    .gradino-etichetta { min-width: 58px; font-size: .68rem; }
    .emo-btn { min-height: 96px; }
}

/* Meno animazioni se richiesto dal sistema */
@media (prefers-reduced-motion: reduce) {
    .hero-item,
    .bg-decor span,
    .end-icon,
    .emo-btn,
    .gradino,
    .gradino.waiting,
    .screen.active {
        animation: none !important;
    }
    .confetti-piece { display: none; }
}
