/* ============================================================
   SEQUENZA COLORI — stile locale
   Carica prima css/kids-base.css (variabili, header, footer).
   Le convenzioni condivise sono in GUIDA-APP-KIDS.md.

   Struttura standard delle app kids: <main class="game-container">
   con dentro le .screen. La versione precedente usava un
   .app-container con un <main> annidato, e per quello il footer non
   si allineava con quello delle altre app.
   ============================================================ */

/* ---------- 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(236, 72, 153, .12), transparent 62%),
        radial-gradient(560px 320px at 99% 4%, rgba(250, 204, 21, .14), transparent 62%),
        radial-gradient(620px 380px at 104% 104%, rgba(59, 130, 246, .14), transparent 62%),
        linear-gradient(180deg, #fdf4ff 0%, #fefce8 45%, #eff6ff 100%);
}

.bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Lo sfondo di quest'app va tenuto molto più basso delle altre: qui
   il gioco È fatto di cerchi colorati, e dei cerchi decorativi troppo
   visibili si confondono con quelli da toccare. Sfocati e quasi
   trasparenti restano un'atmosfera, non degli elementi. */
.bg-decor span {
    position: absolute;
    border-radius: 50%;
    opacity: .07;
    filter: blur(6px);
    animation: decorFloat 9s ease-in-out infinite alternate;
}

@keyframes decorFloat {
    from { transform: translateY(-12px); }
    to   { transform: translateY(14px); }
}

/* ---------- 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); }
}

/* ---------- Selettore della lingua ---------- */
.lang-switch {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-btn {
    appearance: none;
    border: 2px solid #d7efec;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-family: var(--kids-font-body);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink-2);
    cursor: pointer;
    box-shadow: var(--kids-shadow-sm);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.lang-btn:hover { transform: translateY(-2px); }
.lang-btn.active { border-color: var(--brand); background: #f0fdfa; color: var(--brand); }

/* ---------- 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;
}

/* L'insegna è un AB: il ritmo più semplice che esista */
.hero-item {
    width: clamp(56px, 11vw, 78px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 6px 0 rgba(0, 0, 0, .18), var(--kids-shadow-sm);
    animation: heroBob 2.6s ease-in-out infinite;
}

.hero-item:nth-child(2) { animation-delay: .2s; }
.hero-item:nth-child(3) { animation-delay: .4s; }
.hero-item:nth-child(4) { animation-delay: .6s; }

@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.continua { --lvl: #22c55e; --lvl-dark: #15803d; --lvl-soft: #f0fdf4; }
.level-card.buco     { --lvl: #f59e0b; --lvl-dark: #b45309; --lvl-soft: #fffbeb; }
.level-card.memoria  { --lvl: #8b5cf6; --lvl-dark: #6d28d9; --lvl-soft: #f5f3ff; }
.level-card.inventa  { --lvl: #ec4899; --lvl-dark: #be185d; --lvl-soft: #fdf2f8; }

.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: #fbcfe8; font-size: 1.05rem; 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, #ec4899, #f59e0b, #22c55e, #3b82f6);
    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; }

/* ---------- 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;
    align-items: center;
    justify-content: center;
}

/* Il ▶ riascolta il ritmo: qui è il vero pulsante didattico */
.say-btn {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ffe1a6;
    background: #fff8ec;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--kids-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    color: #8a5a00;
    transition: transform .15s ease;
}

.say-btn:hover { transform: translateY(-50%) scale(1.1); }
.say-btn:active { transform: translateY(-50%) scale(0.9); }

.prompt-text {
    font-family: var(--kids-font-title);
    font-size: clamp(1.1rem, 3.4vw, 1.5rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

/* ---------- LA FILA DEL RITMO ---------- */
.ritmo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(6px, 1.6vw, 12px);
    justify-content: center;
    width: 100%;
    margin-bottom: 1.2rem;
}

.casella {
    --c: #e2e8f0;
    --cs: #cbd5e1;
    width: clamp(46px, 11vw, 62px);
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
    animation: cardIn .35s cubic-bezier(.34, 1.56, .64, 1) backwards;
}

@keyframes cardIn {
    from { opacity: 0; transform: scale(.6); }
}

.casella.vuota {
    background: rgba(255, 255, 255, .7);
    border: 3px dashed #cbd5e1;
}

.casella.piena {
    background: var(--c);
    box-shadow: 0 5px 0 var(--cs), var(--kids-shadow-sm);
}

/* Il modello, cioè la parte già data: leggermente più sobria, così
   si distingue da quello che ha messo il bambino */
.casella.modello { opacity: .92; }

.casella.waiting { animation: casellaWait 1.4s ease-in-out infinite; border-color: var(--accent); }

@keyframes casellaWait {
    0%, 100% { box-shadow: 0 0 0 0 rgba(254, 168, 0, .5); }
    50%      { box-shadow: 0 0 0 9px rgba(254, 168, 0, 0); }
}

.casella.over { transform: scale(1.12); border-color: var(--accent); }

/* Il momento in cui la nota di quella casella sta suonando */
.casella.suona {
    transform: scale(1.22);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, .85), 0 6px 0 var(--cs), var(--kids-shadow);
    z-index: 2;
}

.casella.ok { animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1); }

/* Qui c'era `.casella.reveal`, il lampeggio verde con cui l'app
   riempiva da sola la casella dopo un errore, mostrando la risposta.
   Non serve piu': sbagliando si ritenta, e la casella resta vuota
   finche' non e' il bambino a metterci il colore giusto. */

.casella.wrong {
    border-color: #ef4444;
    animation: shakeCard .5s ease;
}

@keyframes shakeCard {
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
}

/* Quando il ritmo si nasconde, in «a memoria» */
.ritmo.nascosto .casella.vuota { border-style: solid; border-color: #e2e8f0; background: #f8fafc; }

/* ---------- La tavolozza ---------- */
.palette-card {
    width: 100%;
    background: #fff;
    border: 3px solid #e6f2f0;
    border-radius: var(--kids-radius);
    box-shadow: var(--kids-shadow-sm);
    padding: 12px;
}

/* `align-items: center` NON è decorativo: senza, il flex di default
   stira i figli (`stretch`) fino al min-height del contenitore e le
   pastiglie tonde diventano ovali. È il tranello del capitolo 7 della
   guida, in una forma nuova: qui non c'entra il min-height dei button,
   c'entra l'allineamento del contenitore. */
.palette {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.4vw, 16px);
    min-height: 66px;
}

.pastiglia {
    appearance: none;
    --c: #94a3b8;
    --cs: #64748b;
    width: clamp(52px, 14vw, 70px);
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 6px 0 var(--cs), var(--kids-shadow-sm);
    cursor: grab;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    transition: transform .15s ease, box-shadow .15s ease;
    animation: cardIn .35s cubic-bezier(.34, 1.56, .64, 1) backwards;
}

.pastiglia:hover { transform: translateY(-5px) scale(1.05); }
.pastiglia:active { transform: scale(.93); box-shadow: 0 2px 0 var(--cs); }

.pastiglia.chosen {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 0 var(--cs), 0 0 0 4px var(--accent);
    z-index: 2;
}

.pastiglia.dragging { opacity: .35; }
.pastiglia.wrong { animation: shakeCard .5s ease; }

/* In «Inventa» i colori sono tutti e sei: un filo più stretti, così
   stanno su una riga sola anche a 390px invece di andare a capo 5+1,
   che risultava sbilanciato. Restano comunque sopra i 44px. */
#palette-libera { gap: clamp(6px, 1.6vw, 12px); }
#palette-libera .pastiglia { width: clamp(46px, 12.4vw, 62px); }

/* Scintille sulla risposta giusta */
.sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    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; }
}

/* ---------- Inventa ---------- */
.free-hint {
    font-family: var(--kids-font-title);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 600;
    color: var(--ink-2);
    margin: 0 0 1rem;
}

.free-hint.piccolo { font-size: .95rem; margin: 1.2rem 0 0.6rem; }

.ritmo.libero { min-height: 62px; }

.free-ritmi {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ritmo-pronto {
    appearance: none;
    border: 3px solid #fbcfe8;
    background: #fff;
    border-radius: 999px;
    padding: 0.5rem 1.3rem;
    font-family: var(--kids-font-title);
    font-size: 1.05rem;
    font-weight: 700;
    color: #be185d;
    cursor: pointer;
    box-shadow: 0 4px 0 #f9a8d4;
    transition: transform .15s ease;
}

.ritmo-pronto:hover { transform: translateY(-3px); }
.ritmo-pronto:active { transform: translateY(3px); box-shadow: 0 1px 0 #f9a8d4; }

/* ---------- Riscontro ---------- */
.feedback-msg {
    min-height: 3.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--kids-font-title);
    font-size: clamp(1rem, 3.2vw, 1.3rem);
    font-weight: 600;
    text-align: center;
    padding: 0.6rem 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; }

/* 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, .pastiglia { min-width: 44px; min-height: 44px; }
}

/* ---------- 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 { right: 0.6rem; }
}

/* Le file lunghe (ABCD ripetuto tre volte fa 12 pallini) vanno a capo
   da sole: il ritmo si legge lo stesso, riga dopo riga. */
@media (max-width: 380px) {
    .casella { width: clamp(44px, 12vw, 52px); }
    .pastiglia { width: clamp(46px, 13vw, 60px); }
    .ritmo { gap: 5px; }
}

/* Meno animazioni se richiesto dal sistema */
@media (prefers-reduced-motion: reduce) {
    .hero-item,
    .bg-decor span,
    .end-icon,
    .casella,
    .casella.waiting,
    .pastiglia,
    .screen.active {
        animation: none !important;
    }
    .confetti-piece { display: none; }
}

/* ---------- 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; }
