/* Stile comune: allegro, leggibile, stabile. Nessun font o risorsa esterna. */
:root {
  --ink: #3a2a4d; --carta: #fff8e6; --bianco: #ffffff; --sole: #ffd84d; --sole-scuro: #c99a00; --cielo: #4dabf7; --prato: #40c057;
  --corallo: #ff6b6b; --lilla: #9775fa; --rosa: #f783ac; --grigio: #e9e4f0; --ombra: rgba(58, 42, 77, 0.22);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --raggio: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--carta); font-size: 18px; line-height: 1.35; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; }
button { font: inherit; color: inherit; }
a { color: #5f3dc4; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.emo { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; line-height: 1; }
.emo-alt { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; border: 2px solid var(--ink); font-weight: 800; font-size: .8em; }
.avviso { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; max-width: 92vw; text-align: center; opacity: 0; pointer-events: none; z-index: 90; box-shadow: 0 6px 20px var(--ombra); }
.avviso.mostra { opacity: 1; transform: translate(-50%, 0); }
.avviso.ok { background: #2b8a3e; } .avviso.errore { background: #c92a2a; } .avviso.nota { background: #5f3dc4; }
.fermo, .scelta { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px; }
.codice { font-size: clamp(44px, 12vw, 96px); font-weight: 900; letter-spacing: .08em; background: var(--bianco); border: 5px solid var(--ink); border-radius: 24px; padding: 10px 28px; box-shadow: 0 8px 0 var(--ombra); font-variant-numeric: tabular-nums; }
.piccolo { font-size: 15px; opacity: .85; }
.grande-emo, .cancello-emo { font-size: clamp(56px, 14vw, 120px); line-height: 1; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
