/* La web app di MINDSET: lo stesso aspetto dell'app Android (docs/16 §16): fondo pieno con schede
   bianche senza bordi, titoli grandi, campi delle parole a gradiente, vetro solo sui controlli
   (capsula delle schede, SOS rotondo), copione come conversazione in un foglio. Colori solo da
   design/tokens.yaml; Nitido è la versione a contrasto alto. Movimento: molle di ArkUI
   (web/sito/molle.py); con «Ridotto» solo dissolvenze brevi. */

:root {
  --molla-sistema: linear(0, 0.0533, 0.1744, 0.3212, 0.468, 0.6005, 0.7124, 0.8019, 0.8705, 0.9209, 0.9564, 0.9802, 0.9952, 1.004, 1.0084, 1.0101, 1.01, 1.009, 1.0076, 1.006, 1.0046, 1.0034, 1.0024, 1.0016, 1);
  --molla-sistema-d: 757ms;
  --molla-dito: linear(0, 0.0541, 0.1755, 0.3211, 0.4652, 0.5945, 0.7032, 0.7903, 0.8573, 0.907, 0.9426, 0.9673, 0.9836, 0.994, 1.0001, 1.0033, 1.0047, 1.005, 1.0047, 1.004, 1.0033, 1.0026, 1.002, 1.0014, 1);
  --molla-dito-d: 209ms;
  --molla-contenitore: linear(0, 0.0556, 0.1754, 0.3136, 0.4468, 0.5645, 0.6632, 0.7431, 0.8063, 0.8554, 0.8928, 0.9211, 0.9423, 0.958, 0.9696, 0.9781, 0.9843, 0.9887, 0.992, 0.9943, 0.9959, 0.9971, 0.998, 0.9986, 1);
  --molla-contenitore-d: 500ms;
  --pad: 16px;
  --r-scheda: 24px;
  --vetro: color-mix(in srgb, var(--surface) 72%, transparent);
  --filtro: blur(24px) saturate(1.6);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --molla-sistema: cubic-bezier(.2, 0, .2, 1); --molla-sistema-d: 350ms; --molla-dito: cubic-bezier(.2, 0, .2, 1); --molla-dito-d: 200ms; --molla-contenitore: cubic-bezier(.2, 0, .2, 1); --molla-contenitore-d: 350ms; }
}
@property --g1 { syntax: "<color>"; inherits: true; initial-value: #5B3DF5; }
@property --g2 { syntax: "<color>"; inherits: true; initial-value: #5B3DF5; }

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-family); font-size: var(--type-body-size); line-height: var(--line-height); color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); overflow-wrap: break-word; }
[hidden] { display: none !important; }
p { margin: 0 0 10px; }
h1, h2, h3 { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus-ring) solid var(--focus); outline-offset: 2px; }
.salta { position: fixed; z-index: 100; top: -100px; left: 12px; padding: 12px 16px; border-radius: 14px; background: var(--tint); color: var(--on-tint); font-weight: 800; text-decoration: none; }
.salta:focus { top: 12px; }

/* ---------- Guscio: la capsula in basso sul telefono, la barra laterale sul desktop ---------- */
.guscio { min-height: 100svh; }
.principale { outline: none; padding: 0 var(--pad) 120px; }
.pagina { width: min(100%, 720px); margin: 0 auto; padding-top: max(18px, env(safe-area-inset-top)); }
.barra-schede { position: fixed; z-index: 30; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
.marchio-laterale { display: none; }
.capsula-schede { pointer-events: auto; display: flex; gap: 2px; padding: 4px; width: 248px; border-radius: 999px; background: var(--vetro); -webkit-backdrop-filter: var(--filtro); backdrop-filter: var(--filtro); box-shadow: 0 10px 34px -10px rgba(0, 0, 0, .3), inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.scheda-tasto { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-size: .78rem; font-weight: 800; color: var(--text); }
.scheda-tasto[aria-current="page"] { background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); }
.tasto-sos { pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 800; color: var(--danger); background: var(--vetro); -webkit-backdrop-filter: var(--filtro); backdrop-filter: var(--filtro); box-shadow: 0 10px 34px -10px rgba(0, 0, 0, .3), inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.icona { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (min-width: 1000px) {
  .guscio { display: grid; grid-template-columns: 260px 1fr; }
  .barra-schede { position: sticky; top: 0; height: 100svh; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; padding: 28px 18px; pointer-events: auto; border-right: 1px solid var(--divider); }
  .marchio-laterale { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -.04em; margin: 0 8px 12px; }
  .capsula-schede { flex-direction: column; width: auto; border-radius: 22px; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; gap: 4px; }
  .scheda-tasto { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 16px; font-size: 1rem; border-radius: 16px; }
  .tasto-sos { width: auto; height: 56px; border-radius: 16px; color: var(--on-danger); background: var(--danger); box-shadow: none; }
  .principale { padding: 0 40px 64px; }
}

/* ---------- Tipografia e mattoncini ---------- */
.testata { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 10px 4px 14px; }
.titolo-grande { font-size: clamp(2rem, 7vw, 2.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.titolo-sezione { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 28px 4px 10px; line-height: 1.2; }
.titolo-sezione.senza-margine { margin: 0; }
.titolo-riga { font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin: 0 0 6px; }
.etichetta { font-size: .9rem; color: var(--muted); margin: 0 0 2px; }
.introduzione { color: var(--muted); margin: 0 4px 16px; max-width: 60ch; }
.corpo { font-size: 1.05rem; line-height: 1.5; }
.nota { font-size: .92rem; color: var(--muted); line-height: 1.4; }
.nota.fuori { margin: 8px 4px 0; }
.nota.centrata { text-align: center; margin-top: 28px; }
.grassetto { font-weight: 700; }
.tre-righe { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.marchio-piccolo { font-weight: 800; letter-spacing: -.04em; margin: 8px 4px 16px; }

.scheda { background: var(--surface); border-radius: var(--r-scheda); overflow: hidden; margin: 0 0 12px; }
.scheda-dentro { padding: 18px; }
.scheda > .scheda-dentro + .scheda-dentro, .scheda > .riga + .riga, .scheda > .scheda-dentro + .riga, .scheda > .riga + .scheda-dentro { border-top: 1px solid var(--separator); }
.riga { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text); text-decoration: none; }
.riga-testo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.riga-titolo { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.riga-sotto { font-size: .95rem; color: var(--muted); line-height: 1.35; }
.riga > .icona:last-child { color: var(--muted); width: 20px; height: 20px; }
.riga-scelta input { width: 22px; height: 22px; accent-color: var(--tint); flex: none; margin: 0; }
.riga-scelta .icona { color: var(--tint); opacity: 0; }
.riga-scelta:has(input:checked) .icona { opacity: 1; }
.riga-scelta input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.riga-scelta:has(input:focus-visible) { outline: var(--focus-ring) solid var(--focus); outline-offset: -3px; }
.riga-intestazione { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cerchio-icona { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 12%, transparent); color: var(--tint); }

.distintivo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; }
.segno { display: block; }
.segno .traccia { fill: color-mix(in srgb, currentColor 24%, transparent); }
.segno .pieno, .segno .pausa { fill: currentColor; }
.segno .pausa { opacity: .6; }
.distintivo .segno { width: 22px; height: 22px; color: var(--on-field); }

/* I campi delle parole: gradiente, testo crema (Audace); tenui con testo d'inchiostro (Nitido). */
.campo { background: linear-gradient(155deg, var(--g1) 0%, var(--g2) 85%); color: var(--on-field); }
.campo-challenge { --g1: var(--challenge-field); --g2: var(--challenge-field-2); }
.campo-choice { --g1: var(--choice-field); --g2: var(--choice-field-2); }
.campo-change { --g1: var(--change-field); --g2: var(--change-field-2); }
.campo-chance { --g1: var(--chance-field-2); --g2: var(--chance-field); }
.campo-pause { --g1: var(--pause-field); --g2: var(--pause-field-2); }
.campo :focus-visible { outline-color: var(--on-field); }

.eroe { position: relative; border-radius: 28px; padding: 22px 20px 20px; margin: 0 0 12px; overflow: hidden; }
.eroe-etichetta { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; margin: 0 0 10px; }
.segno-etichetta { width: 20px; height: 20px; }
.eroe-titolo { font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin: 0 0 10px; }
.eroe-corpo { font-size: 1.05rem; line-height: 1.45; max-width: 52ch; }
.eroe-nota { font-size: .95rem; margin-bottom: 14px; }
.eroe-domanda { font-size: 1.1rem; font-weight: 800; margin: 14px 0 6px; }
.eroe-segno { width: 52px; height: 52px; margin-bottom: 18px; }
.esito { margin: 6px 0 12px; }
.esito-detto { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Tasti ---------- */
.tasto { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 22px; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.25; }
.tasto.largo { display: flex; width: 100%; margin-top: 10px; }
.tasto[disabled] { opacity: .45; cursor: default; }
.tasto-pieno { background: var(--tint); color: var(--on-tint); }
.tasto-tinto { background: color-mix(in srgb, var(--tint) 13%, transparent); color: var(--tint); }
.tasto-testo { background: none; color: var(--tint); }
.tasto-crema { background: var(--on-field); color: #111216; }
.tasto-vetro { background: color-mix(in srgb, var(--on-field) 20%, transparent); color: var(--on-field); }
.tasto-testo-crema { background: none; color: var(--on-field); text-decoration: underline; text-underline-offset: .2em; }
.tasto-pericolo { background: var(--danger); color: var(--on-danger); }
.tasto-pericolo-testo { background: none; color: var(--danger); }
.tasto-tondo { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.tasto-sos-piccolo { min-width: 56px; height: 48px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; color: var(--danger); background: color-mix(in srgb, var(--text) 7%, transparent); }
.collegamento { border: 0; background: none; color: var(--tint); font-weight: 800; cursor: pointer; min-height: 44px; padding: 0 6px; }
.tre-tasti { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.tre-tasti .tasto { padding: 10px 8px; }
.due-tasti { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 8px; }
.premi { transition: scale var(--molla-dito-d) var(--molla-dito), background-color 150ms linear, opacity 150ms linear; }
.premi:active { scale: .97; }
:root[data-motion="ridotto"] .premi:active { scale: none; }

/* Segmenti: radio veri dentro, così tastiera e lettori di schermo funzionano come sempre. */
.segmenti { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.segmento { flex: 1; position: relative; }
.segmento input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmento span { display: grid; place-items: center; min-height: 48px; padding: 4px 6px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-align: center; line-height: 1.2; color: var(--muted); }
.segmento input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.segmento input:focus-visible + span { outline: var(--focus-ring) solid var(--focus); outline-offset: 1px; }

/* Bordo d'inchiostro: un campo vuoto deve vedersi (WCAG 1.4.11). */
.campo-input, .campo-testo { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--text) 60%, transparent); background: var(--bg); color: var(--text); }
.campo-testo { resize: vertical; }
.etichetta-campo { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin: 10px 0; }
.casella { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 6px 4px; }
.casella input { width: 22px; height: 22px; accent-color: var(--tint); }

/* ---------- Oggi ---------- */
.avviso-nucleo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.avviso-nucleo p { margin: 0; }
.settimana { display: flex; gap: 18px; align-items: center; }
.rosa { width: 104px; height: 104px; flex: none; }
.rosa-fondo { fill: color-mix(in srgb, var(--text) 7%, transparent); }
.rosa-pieno.campo-challenge { fill: var(--challenge-field); } .rosa-pieno.campo-choice { fill: var(--choice-field); }
.rosa-pieno.campo-change { fill: var(--change-field); } .rosa-pieno.campo-chance { fill: var(--chance-field); }
.settimana-testo { flex: 1; min-width: 0; }
.settimana-elenco { list-style: none; margin: 0; padding: 0; }
.settimana-elenco li { display: flex; justify-content: space-between; color: var(--muted); font-size: .95rem; padding: 1px 0; }
.settimana-elenco b { color: var(--text); }
.barre { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin: 10px 0; }
.barre i, .barre span { flex: 1; }
.barre i { background: var(--tint); border-radius: 999px; }

/* ---------- Attrezzi ---------- */
.filtri { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 6px; margin: 0 -4px 6px; scrollbar-width: none; }
.filtro { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; background: var(--surface); color: var(--text); }
.filtro[aria-pressed="true"] { background: var(--tint); color: var(--on-tint); }
.gruppo-parola { margin-top: 22px; }
.gruppo-testa { display: flex; align-items: center; gap: 10px; margin: 0 4px 4px; }
.segno-gruppo { width: 28px; height: 28px; color: var(--tint); }
.gruppo-parola > .nota { margin: 0 4px 12px; }
.griglia-attrezzi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.attrezzo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 152px; padding: 16px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; justify-content: flex-end; position: relative; }
.segno-attrezzo { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; }
.attrezzo-titolo { font-weight: 800; font-size: 1.1rem; line-height: 1.15; letter-spacing: -.01em; }
.attrezzo-sotto { font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Fogli: salgono dal basso; sul desktop un pannello al centro ---------- */
.foglio { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; max-height: calc(100svh - 24px); height: calc(100svh - 24px); border-radius: 28px 28px 0 0; background: var(--bg); color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
.foglio::backdrop { background: rgba(0, 0, 0, .4); }
.foglio[open] { animation: sale var(--molla-contenitore-d) var(--molla-contenitore); }
@keyframes sale { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes appare { from { opacity: 0; } to { opacity: 1; } }
:root[data-motion="ridotto"] .foglio[open] { animation: appare 150ms linear; }
@media (min-width: 760px) { .foglio { margin: auto; width: min(760px, 92vw); height: auto; max-height: 90svh; border-radius: 28px; } }
.foglio-pagina { padding: 6px 18px 40px; max-width: 760px; margin: 0 auto; }
.foglio-maniglia { width: 40px; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--text) 20%, transparent); margin: 8px auto 4px; }

/* Il copione: una conversazione nel foglio, la domanda grande, le risposte in basso. */
.flusso { min-height: 100%; display: flex; flex-direction: column; padding: 4px 18px 24px; max-width: 760px; margin: 0 auto; background: linear-gradient(180deg, color-mix(in srgb, var(--tinta) 30%, var(--bg)) 0, var(--bg) 280px); }
.foglio-flusso { background: var(--bg); }
.tinta-challenge { --tinta: var(--challenge-field); } .tinta-choice { --tinta: var(--choice-field); } .tinta-change { --tinta: var(--change-field); }
.tinta-chance { --tinta: var(--chance-field); } .tinta-pause { --tinta: var(--pause-field); }
.flusso-testa { display: flex; align-items: center; gap: 8px; }
.flusso-titoli { flex: 1; text-align: center; min-width: 0; }
.flusso-titolo { font-size: 1.1rem; font-weight: 800; }
.flusso-passo { font-size: .9rem; color: var(--muted); margin: 0; }
.avanzamento { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); margin: 14px 4px 0; }
.avanzamento i { display: block; height: 100%; border-radius: inherit; background: var(--tinta); transition: width var(--molla-contenitore-d) var(--molla-contenitore); }
.conversazione { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 24px 4px 16px; }
.turno-domanda { color: var(--muted); white-space: pre-line; margin: 0 0 6px; }
.turno-risposta { display: inline-block; margin: 0; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: color-mix(in srgb, var(--tinta, var(--tint)) 16%, var(--surface)); font-weight: 700; float: right; max-width: 85%; }
.turno::after { content: ""; display: block; clear: both; }
.domanda-corrente { font-size: clamp(1.6rem, 5.6vw, 2rem); font-weight: 800; line-height: 1.22; letter-spacing: -.015em; white-space: pre-line; outline: none; animation: entra var(--molla-sistema-d) var(--molla-sistema) both; }
@keyframes entra { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
:root[data-motion="ridotto"] .domanda-corrente { animation: appare 150ms linear both; }
.suggerimento { color: var(--danger); font-weight: 700; }
.risposte { display: flex; flex-direction: column; gap: 8px; max-height: 50svh; overflow-y: auto; padding: 4px; }
.scelta { display: flex; justify-content: flex-start; min-height: 56px; padding: 12px 20px; border-radius: 22px; background: var(--surface); color: var(--text); font-weight: 700; text-align: left; box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent); }
.scala { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.numero { min-height: 52px; border-radius: 999px; border: 0; cursor: pointer; background: var(--surface); font-weight: 800; font-size: 1.15rem; }
.risposta-testo .campo-riga { display: flex; align-items: flex-end; gap: 8px; }
.risposta-testo .campo-testo { border-radius: 26px; padding: 14px 18px; min-height: 56px; }
.tasto-invia { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: var(--tint); color: var(--on-tint); }
.specchio-frase { font-size: 1.15rem; font-weight: 700; margin: 8px 0; }

/* ---------- Extra ---------- */
.voce-prova .titolo-riga { margin: 0; }
.tratto-scala { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); margin: 6px 0 10px; }
.tratto-linea { position: relative; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.tratto-linea i { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; translate: -50% -50%; }
.tratto-ora { background: var(--tint); }
.tratto-prima { border: 2px dashed var(--muted); background: var(--surface); }
.radar-scheda { margin: 0 0 12px; }
.radar { width: 100%; max-width: 360px; display: block; margin: 0 auto; overflow: visible; }
.radar-griglia { fill: none; stroke: var(--separator); stroke-width: 1; }
.radar-prima { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.radar-ora { fill: color-mix(in srgb, var(--tint) 22%, transparent); stroke: var(--tint); stroke-width: 2.5; }
.radar-nome { font-size: 11px; fill: var(--text); font-weight: 700; }
.mito summary { list-style: none; }
.mito summary::-webkit-details-marker { display: none; }
.mito[open] summary .icona { rotate: 90deg; }
.fonte { overflow-wrap: anywhere; }
.grado { font-weight: 700; color: var(--accent); }
.elenco { margin: 0 0 10px; padding-left: 1.2em; }
.citazione { margin: 8px 0; padding-left: 14px; border-left: 3px solid var(--tint); }
.codice { font-family: ui-monospace, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; margin: 4px 0; }
.codice-recupero { border: 2px solid var(--tint); }
.errore { color: var(--danger); font-weight: 700; }
.conversazione-diario { justify-content: flex-start; }

.conferma { border: 0; border-radius: 24px; padding: 0; width: min(420px, calc(100% - 32px)); background: var(--surface); color: var(--text); }
.conferma::backdrop { background: rgba(0, 0, 0, .4); }
.conferma-dentro { padding: 20px; }
.avviso { position: fixed; z-index: 50; left: 50%; bottom: 96px; translate: -50% 0; max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 16px; background: var(--night); color: var(--on-night); font-weight: 700; }
.errore-avvio { max-width: 640px; margin: 40px auto; padding: 20px; }
.benvenuto { padding: max(18px, env(safe-area-inset-top)) var(--pad) 40px; }

/* ---------- Superfici piene e Nitido ---------- */
:root[data-stile="nitido"] { --vetro: var(--surface); --filtro: none; }
:root[data-stile="nitido"] .scheda, :root[data-stile="nitido"] .capsula-schede, :root[data-stile="nitido"] .tasto-sos, :root[data-stile="nitido"] .scelta, :root[data-stile="nitido"] .numero, :root[data-stile="nitido"] .filtro { box-shadow: inset 0 0 0 2px var(--line); }
:root[data-stile="nitido"] .eroe, :root[data-stile="nitido"] .attrezzo { box-shadow: inset 0 0 0 2px var(--line); }
:root[data-stile="nitido"] .tasto-crema, :root[data-stile="nitido"] .tasto-vetro { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
:root[data-stile="nitido"] .flusso { background: var(--bg); }
@media print { .barra-schede { display: none; } }
