/* Pitch · "Prima serata": teatro di notte, fasci di luce azzurri, ambra della "virgola",
   biglietti con tagliando e lampadine da insegna. Display Bricolage, accenti in corsivo con grazie. */
:root {
  --display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --radius: 18px;
  --fs-2xs: .68rem;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: .94rem;
  --fs-lg: 1.12rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.85rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* lo spazio della barra di scorrimento è sempre riservato: cambiando pagina, con o senza barra, nulla si sposta.
   Il palco, sulla TV, non scorre e non deve avere la striscia vuota a destra. */
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html:has(> body.on-stage) { scrollbar-gutter: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--body); min-height: 100vh;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Due occhi di bue dall'alto e un velo di grana: restano dietro a tutto.
   Le origini restano ferme; i fasci oscillano lentamente in direzioni opposte: prima si allontanano, poi si avvicinano e si incrociano (ciclo di 2 minuti). */
@property --beam-a { syntax: "<angle>"; inherits: false; initial-value: 146deg; }
@property --beam-b { syntax: "<angle>"; inherits: false; initial-value: 190deg; }
@keyframes beam-sweep {
  0%, 50%, 100% { --beam-a: 146deg; --beam-b: 190deg; }
  25% { --beam-a: 180deg; --beam-b: 160deg; }
  75% { --beam-a: 112deg; --beam-b: 232deg; }
}
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  animation: beam-sweep 120s ease-in-out infinite;
  background:
    conic-gradient(from var(--beam-a) at 14% -12%, transparent 0deg, color-mix(in srgb, var(--azure-2) 0%, transparent) 4deg, color-mix(in srgb, var(--azure-2) 17%, transparent) 13deg, color-mix(in srgb, var(--azure-2) 5%, transparent) 22deg, transparent 28deg),
    conic-gradient(from var(--beam-b) at 88% -12%, transparent 0deg, color-mix(in srgb, var(--gold) 0%, transparent) 3deg, color-mix(in srgb, var(--gold) 9%, transparent) 10deg, color-mix(in srgb, var(--gold) 2%, transparent) 18deg, transparent 22deg),
    radial-gradient(ellipse 70% 34% at 30% -4%, color-mix(in srgb, var(--wine) 32%, transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.7) 45%, transparent 92%);
          mask-image: linear-gradient(#000 0%, rgba(0,0,0,.7) 45%, transparent 92%);
}
body::after {
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold); text-underline-offset: 3px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--bg-deep); }

/* ---------- intestazione: insegna con lampadine ---------- */
header.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 12px; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft); }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 5px; pointer-events: none; opacity: .75;
  background:
    radial-gradient(circle, var(--gold-pale) 0 1.3px, color-mix(in srgb, var(--gold) 55%, transparent) 1.9px, transparent 2.8px) 0 50% / 42px 5px repeat-x,
    radial-gradient(circle, color-mix(in srgb, var(--gold) 38%, transparent) 0 1.2px, transparent 2.2px) 14px 50% / 14px 5px repeat-x;
  animation: chase 1.5s steps(3) infinite; }
@keyframes chase { to { background-position: 42px 50%, 14px 50%; } }
.brand { letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 800 1.3rem var(--display); }
.brand i { font: italic 400 1.38rem var(--serif); letter-spacing: 0; color: var(--gold); margin-left: 1px; }
.logo { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 6px 16px -6px rgba(0,0,0,.75); transition: transform .4s var(--ease); }
.brand:hover .logo { transform: rotate(-6deg) scale(1.04); }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a { position: relative; color: var(--muted); text-decoration: none; font: 500 var(--fs-md) var(--body); padding: 7px 12px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
nav a:hover:not(.on) { color: var(--fg); background: rgba(255,255,255,.04); }
nav a.on { color: var(--bg-deep); background: var(--gold); box-shadow: none; font-weight: 600; }
nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* quante cose da fare e notifiche nuove: un gettone ambra sull'angolo della campanella */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--bg-deep); font: 700 var(--fs-xs)/1 var(--body); }

/* a destra dell'intestazione: campanella delle notifiche, poi il ritratto del profilo */
.top-actions { order: 3; display: flex; align-items: center; gap: 10px; }
.bell-link { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease); }
.bell-link:hover { color: var(--fg); border-color: var(--line-hover); transform: translateY(-1px); }
.bell-link.has-new { color: var(--gold-2); border-color: var(--gold-line); }
.bell-link.on { color: var(--bg-deep); background: var(--gold); border-color: var(--gold); box-shadow: none; }
.bell-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bell-link .nav-count { position: absolute; top: -5px; right: -7px; box-shadow: 0 0 0 2px var(--bg-deep); }
.bell-link.on .nav-count { background: var(--bg-deep); color: var(--gold-hi); box-shadow: 0 0 0 2px var(--gold); }

.me-link { order: 3; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; text-decoration: none; border: 2px solid var(--wine); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); background: var(--panel-2); font: 800 1rem var(--display); color: var(--gold); transition: box-shadow .2s, transform .2s var(--ease); }
.me-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-link:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--gold-2); }
.me-link.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-2), 0 0 14px -2px var(--gold-glow); }
.me-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
header.top > nav { order: 2; }
/* menu centrato davvero, con o senza Regia: marchio e comandi in due colonne uguali ai lati, il menu in mezzo */
@media (min-width: 760px) {
  header.top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  header.top > .brand { grid-column: 1; justify-self: start; }
  header.top > nav { grid-column: 2; justify-self: center; flex-wrap: nowrap; }
  header.top > .top-actions { grid-column: 3; justify-self: end; }
}
.profile-exit { justify-content: flex-end; }

/* ---------- impaginazione ---------- */
.wrap { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 34px 20px calc(72px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 26px; }
.kicker { margin: 0; display: inline-flex; align-items: center; gap: 9px; font: 600 var(--fs-sm)/1.35 var(--body); color: var(--gold); justify-self: start; }
.kicker::before { content: none; }
a.kicker:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; margin: 0; text-wrap: balance; line-height: 1.08; overflow-wrap: break-word; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
h1 { font-size: clamp(2.15rem, 7vw, 3.3rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.35rem, 4vw, 1.6rem); }
h3 { font-size: var(--fs-lg); }
em { font: italic 400 1.1em/1 var(--serif); letter-spacing: -.005em; color: var(--gold); padding-right: .05em; }
h1 em { text-shadow: 0 0 34px color-mix(in srgb, var(--gold) 35%, transparent); }
strong { font-weight: 600; }
p { margin: 0; max-width: 54ch; }
.muted, .hint { color: var(--muted); }
.hint { font-size: var(--fs-md); }
.status { color: var(--muted); font: 500 var(--fs-sm) var(--body); }
.stack { display: grid; gap: 14px; }
.wrap > .stack:first-child { gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* accesso, registrazione e recupero: una colonna stretta con la "virgola" del marchio sullo sfondo */
body:is([data-route="login"], [data-route="registrati"], [data-route="recupero"]) .wrap { max-width: 500px; padding-top: clamp(36px, 9vh, 100px); overflow: clip; }
body:is([data-route="login"], [data-route="registrati"], [data-route="recupero"]) .wrap::before { content: ","; position: absolute; z-index: -1; top: -.22em; right: .02em; pointer-events: none;
  font: italic 400 clamp(16rem, 60vw, 26rem)/1 var(--serif); color: var(--gold); opacity: .07; text-shadow: 0 0 80px var(--gold); }
body:is([data-route="login"], [data-route="registrati"], [data-route="recupero"]) .wrap > .row { justify-content: flex-start; gap: 8px; }

/* i bottoni piccoli non si allungano per tutta la scheda */
.card > .btn.sm, .stack > .btn.sm, .card > label.btn { justify-self: start; }

/* cambio pagina: mentre la nuova carica resta la vecchia, attenuata solo se l'attesa dura; poi la nuova entra in scena */
#app { transition: opacity .15s ease; }
#app[aria-busy="true"] { opacity: .55; transition: opacity .2s ease .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#app.enter > * { animation: rise .55s var(--ease) both; }
#app.enter > :nth-child(2) { animation-delay: .06s; }
#app.enter > :nth-child(3) { animation-delay: .12s; }
#app.enter > :nth-child(4) { animation-delay: .18s; }
#app.enter > :nth-child(5) { animation-delay: .24s; }
#app.enter > :nth-child(n+6) { animation-delay: .3s; }

/* ---------- schede ---------- */
.card { position: relative; background: var(--panel); border: 1px solid transparent; border-radius: var(--radius);
  box-shadow: none; padding: 22px; display: grid; gap: 16px; min-width: 0; }
.card.hot { border-color: transparent; background: var(--panel-2); box-shadow: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 var(--fs-xs) var(--body); color: var(--muted); }

/* pillole */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--fs-xs)/1.4 var(--body); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); white-space: normal; overflow-wrap: anywhere; max-width: 100%; text-decoration: none; }
a.pill:hover { color: var(--fg); border-color: var(--gold-deep); }
.pill.date { color: var(--gold-2); border-color: var(--gold-line); background: var(--gold-soft); }
.pill.kind { color: var(--azure-pale); border-color: color-mix(in srgb, var(--azure-2) 45%, transparent); background: color-mix(in srgb, var(--wine) 22%, transparent); }
.pill.aperta { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pill.votazione, .pill.scena { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.pill.chiusa { color: var(--muted); }
.pill.aperta::before, .pill.votazione::before, .pill.scena::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
/* pulsa solo quello che è davvero dal vivo: la scena e le votazioni. Le iscrizioni durano giorni e restano ferme. */
.pill.votazione::before, .pill.scena::before { animation: onair 2s ease-in-out infinite; }
@keyframes onair { 0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 50% { box-shadow: 0 0 0 4px transparent; opacity: .55; } }

/* ---------- biglietto della serata ---------- */
.ev-head { display: flex; gap: 18px; align-items: center; min-width: 0; }
.ev-title { display: grid; gap: 10px; min-width: 0; flex: 1; }
.ev-head h2 { font-size: clamp(1.45rem, 4.4vw, 1.85rem); }
/* il gruppo della serata, sopra il titolo: logo nel cerchio azzurro come nel selettore, nome in Geist Mono fumo */
.ev-group-tag { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font: 600 var(--fs-xs) var(--body); }
.ev-group-tag img { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--wine); background: #fff; }
.stub { flex: none; position: relative; width: 82px; min-height: 96px; display: grid; align-content: center; justify-items: center; padding: 10px 8px 10px 6px; border-radius: 12px 6px 6px 12px; text-align: center;
  color: var(--ink); background: linear-gradient(165deg, var(--gold-pale) 0%, var(--gold) 52%, var(--gold-lo) 100%);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--gold) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.55);
  -webkit-mask: radial-gradient(circle 3.2px at 100% 50%, #0000 95%, #000) 0 0 / 100% 10px repeat-y;
          mask: radial-gradient(circle 3.2px at 100% 50%, #0000 95%, #000) 0 0 / 100% 10px repeat-y;
  transform: rotate(-2.5deg); transition: transform .5s var(--ease); }
.card:hover .stub { transform: rotate(0deg) translateY(-1px); }
.stub b { font: 800 2.3rem/.95 var(--display); letter-spacing: -.04em; }
.stub-wd, .stub-mo { font: 600 var(--fs-2xs)/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.stub-mo { margin-top: 2px; }
.stub-time { margin-top: 6px; font: 600 var(--fs-2xs) var(--mono); padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
/* lampo sul biglietto d'oro: una passata di luce in diagonale ogni 10 secondi (circa 3,5 secondi di corsa), poi silenzio */
.stub:not(.used)::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.1) 46%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.1) 54%, transparent 58%);
  transform: translate(-70%, -40%) rotate(0deg); animation: stub-glint 10s var(--ease) infinite; }
@keyframes stub-glint {
  0% { opacity: 0; transform: translate(-70%, -40%); }
  4% { opacity: 1; }
  38% { opacity: 1; transform: translate(70%, 40%); }
  39%, 100% { opacity: 0; transform: translate(70%, 40%); }
}
.stub.used { color: var(--muted); background: linear-gradient(165deg, var(--panel-2), var(--panel-2)); box-shadow: inset 0 0 0 1px var(--line); transform: rotate(-1.5deg); }
.stub.used b { color: var(--fg); }
.ev-head.big .stub { width: 96px; min-height: 112px; }
.ev-head.big .stub b { font-size: 2.8rem; }
.ticket { padding-top: 24px; }
.ticket .ev-head { padding-bottom: 18px; margin-bottom: 2px; border-bottom: 1px dashed color-mix(in srgb, var(--muted) 25%, transparent); }
.ticket.past .ev-head { border-bottom: 0; padding-bottom: 0; }

/* conto alla rovescia: tabellone */
.countdown-event { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0; font-variant-numeric: tabular-nums; color: var(--accent); }
.countdown-event:empty { display: none; }
.cd-lab { flex-basis: 100%; font: 500 var(--fs-xs) var(--body); color: var(--muted); }
.cd-u { position: relative; display: grid; justify-items: center; min-width: 66px; padding: 10px 10px 7px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2) 0 50%, var(--panel) 50% 100%); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px -12px #000; }
.cd-u::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 1px; background: rgba(0,0,0,.65); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.cd-u b { font: 600 var(--fs-3xl)/1 var(--mono); color: var(--gold-2); letter-spacing: -.02em;  }
.cd-u i { font: 500 var(--fs-xs)/1 var(--body); font-style: normal; color: var(--muted); margin-top: 6px; }
.cd-done { font: italic 400 2rem var(--serif); color: var(--gold); text-shadow: 0 0 24px var(--gold-glow); }

/* ---------- avvisi in home ---------- */
.notices { display: grid; gap: 10px; }
.notices:not(:has(> :not([hidden]))) { display: none; }
.card.reminder { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; }
/* avviso urgente: bordo ambra (dalla scheda calda) e una lampadina accesa davanti al testo, come nei kicker */
.card.reminder.hot > p::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: .14em; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 10px var(--gold); }
.reminder p { line-height: 1.45; font-size: var(--fs-md); }
.reminder .btn { justify-self: end; }
.card.reminder > .pills { grid-column: 1 / -1; }
/* Notifiche · Recenti: righe come i file; le nuove hanno il bordo ambra e un punto acceso */
.file.notif { grid-template-columns: minmax(0, 1fr) auto; text-decoration: none; color: inherit; }
.file.notif .hint { margin: 2px 0 4px; }
.file.notif.unread { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.file.notif.unread .t::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: .14em; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-glow); }
.file.notif:hover { border-color: var(--line-hover); }
.install-bar { gap: 10px; padding: 12px 16px; border-radius: 14px; box-shadow: none; background: var(--panel); }
.install-bar img { width: 36px; height: 36px; }

/* ---------- ritratti ---------- */
.badge { display: inline-grid; justify-items: center; gap: 6px; text-align: center; width: 72px; }
.badge .ph { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 3px solid var(--wine); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 75%, transparent), 0 6px 14px -6px #000; background: var(--panel-2);
  display: grid; place-items: center; font: 800 var(--fs-2xl) var(--display); color: var(--gold); transition: box-shadow .25s, transform .25s var(--ease); }
.badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge .nm { font: 500 var(--fs-sm)/1.15 var(--body); color: var(--fg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge .sub { font: 500 var(--fs-xs) var(--body); color: var(--muted); }
.badge.lg { width: 120px; }
.badge.lg .ph { width: 110px; height: 110px; border-width: 4px; font-size: 2.4rem; }
.badge.sm { width: 64px; }
.badge.sm .nm { font-size: var(--fs-xs); }
.badge.bare { width: auto; }
.badge.sm .ph { width: 44px; height: 44px; border-width: 2px; font-size: 1rem; }
.badges { display: flex; flex-wrap: wrap; gap: 12px 8px; }
a.badge { text-decoration: none; color: inherit; border-radius: 14px; }
a.badge:hover .ph { box-shadow: 0 0 0 2px var(--gold-2), 0 0 18px -2px var(--gold-glow); transform: translateY(-2px); }
a.badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.badge.xl { width: 160px; }
.badge.xl .ph { width: 150px; height: 150px; border-width: 5px; font-size: 3.2rem; }
.badge.xl .nm { font: 800 var(--fs-2xl) var(--display); letter-spacing: -.02em; }

/* scelta con ritratti (partecipanti in regia) */
.pick { display: flex; flex-wrap: wrap; gap: 12px 8px; }
.pick button { all: unset; cursor: pointer; border-radius: 14px; padding: 6px 4px; }
.pick button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* partecipanti e maestri: spento chi non partecipa, ambra chi partecipa, azzurro con il ciak il maestro della serata */
.pick button[data-state="out"] .ph { filter: saturate(.35) brightness(.8); }
.pick button[data-state="in"] .ph { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-2), 0 0 18px color-mix(in srgb, var(--gold) 50%, transparent); filter: none; }
.pick button[data-state="in"] .nm { color: var(--gold); font-weight: 600; }
.pick button[data-state="maestro"] .ph { border-color: var(--azure-2); box-shadow: 0 0 0 3px var(--azure-pale), 0 0 20px color-mix(in srgb, var(--azure-2) 55%, transparent); }
.pick button[data-state="maestro"] .nm { color: var(--azure-pale); font-weight: 600; }
.pick button[data-state="maestro"] .portrait::after { content: "🎬"; position: absolute; top: -5px; left: calc(50% + 10px); width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 11px; line-height: 1; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--azure-2); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.pick .badge .sub { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.pick button[data-state="maestro"] .badge .sub { color: var(--azure-pale); }
.cast-key { white-space: nowrap; color: var(--fg); }
.cast-key::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: .05em; background: var(--line-hover); }
.cast-key.in::before { background: var(--gold); box-shadow: 0 0 6px var(--gold-glow); }
.cast-key.maestro::before { display: none; }
.cast-key.maestro { color: var(--azure-pale); }

/* ---------- bottoni e moduli ---------- */
.btn { font: 600 var(--fs-md) var(--body); letter-spacing: .005em; color: var(--ink); border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold);
  box-shadow: none;
  transition: transform .18s var(--ease), box-shadow .2s, filter .2s, background .2s, border-color .2s, color .2s; }
.btn:hover:not(:disabled) { background: var(--gold-hi); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn:disabled, .btn.disabled { opacity: .38; cursor: not-allowed; filter: saturate(.5); }
.btn.ghost { background: rgba(255,255,255,.025); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold-line-strong); color: var(--gold-2); background: var(--gold-soft); box-shadow: none; filter: none; }
.btn.danger { background: transparent; color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 60%, transparent); box-shadow: none; }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--error) 12%, transparent); box-shadow: none; filter: none; }
.btn.sm { padding: 7px 14px; font-size: var(--fs-sm); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
label { font: 500 var(--fs-sm) var(--body); color: var(--muted); display: grid; gap: 7px; min-width: 0; }
input[type="text"], input[type="password"], input[type="date"], input[type="datetime-local"], input[type="url"], input[type="number"], input:not([type]), select, textarea {
  font: 1rem var(--body); color: var(--fg); background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%; min-width: 0;
  box-shadow: inset 0 2px 6px -2px rgba(0,0,0,.6); transition: border-color .2s, box-shadow .2s; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--line-hover); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: inset 0 2px 6px -2px rgba(0,0,0,.6), 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
/* caselle, radio e file non hanno un bordo che si accende: da tastiera ricevono il contorno ambra pieno */
input:is([type="checkbox"], [type="radio"], [type="file"]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input[type="file"] { font: var(--fs-md) var(--body); color: var(--muted); width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
input[type="file"]::file-selector-button { font: 600 var(--fs-sm) var(--body); color: var(--fg); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--gold-deep); color: var(--gold-2); }
input[type="radio"] { accent-color: var(--gold); }
/* Interruttore: ogni scelta sì/no dell'app. Le checkbox native (con role="switch") diventano una pillola
   incassata nella fossa con una pallina che scorre: spenta fumo, accesa ambra con la pallina d'inchiostro. */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; min-height: 26px; margin: 0; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-hover); background: var(--bg-deep); box-shadow: inset 0 2px 6px -2px rgba(0,0,0,.6); cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s; }
input[type="checkbox"]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted);
  box-shadow: 0 1px 3px rgba(0,0,0,.5); transition: transform .2s var(--ease), background .2s; }
input[type="checkbox"]:hover:not(:disabled) { border-color: var(--gold-deep); }
input[type="checkbox"]:focus { border-color: var(--line-hover); box-shadow: inset 0 2px 6px -2px rgba(0,0,0,.6); }
input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 14px -4px var(--gold-glow); }
input[type="checkbox"]:checked::before { transform: translateX(18px); background: var(--ink); }
input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
/* Cerchio di scelta: scegliere un tema in un elenco (voto e scelta dei temi). Un cerchio incassato che si riempie d'ambra
   con un punto d'inchiostro, come un pulsante di scelta; resta una checkbox perché si può sceglierne più d'uno. */
input[type="checkbox"].pick-dot { width: 22px; height: 22px; min-height: 22px; border-radius: 50%; border: 2px solid var(--line-hover); }
input[type="checkbox"].pick-dot::before { top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--ink); box-shadow: none; transform: scale(0); }
input[type="checkbox"].pick-dot:checked { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px -2px var(--gold-glow); }
input[type="checkbox"].pick-dot:checked::before { transform: scale(1); }
/* Misuratore da 1 a 6 (quanti temi): sei tacche in una pillola incassata, accese d'ambra fino al numero scelto */
fieldset.meter { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.meter legend { padding: 0; margin-bottom: 7px; font: 500 var(--fs-sm) var(--body); color: var(--muted); }
.meter-track { --n: 6; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; max-width: calc(var(--n) * 56px + 8px); padding: 4px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-deep); box-shadow: inset 0 2px 6px -2px rgba(0,0,0,.6); }
.meter-track label { position: relative; display: block; cursor: pointer; }
.meter-track input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.meter-track span { display: grid; place-items: center; height: 36px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font: 600 var(--fs-sm) var(--mono);
  font-variant-numeric: tabular-nums; transition: background .2s, color .2s, box-shadow .2s; }
.meter-track label:first-child span { border-radius: 999px 6px 6px 999px; }
.meter-track label:last-child span { border-radius: 6px 999px 999px 6px; }
.meter-track label:hover span { color: var(--fg); }
.meter-track label:has(~ label input:checked) span, .meter-track label:has(input:checked) span { background: var(--gold); color: var(--ink); }
.meter-track label:has(input:checked) span { font-weight: 700; box-shadow: 0 0 14px -4px var(--gold-glow); }
.meter-track label:has(input:focus-visible) span { outline: 2px solid var(--fg); outline-offset: 2px; }
.meter-track label:has(input:disabled) { cursor: not-allowed; opacity: .45; }
select { cursor: pointer; }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.error { color: var(--error); min-height: 1.3em; font-size: var(--fs-md); }
.error:empty { min-height: 0; }
form.card, form.card + * { scroll-margin-top: 90px; }

/* ---------- temi: cartellini ---------- */
.themes { display: grid; gap: 10px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.theme { max-width: 100%; overflow-wrap: anywhere; font: italic 400 var(--fs-xl)/1.2 var(--serif); color: var(--gold-2); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 999px; padding: 7px 15px 8px; display: inline-flex; gap: 8px; align-items: center; cursor: default; transition: background .2s, color .2s, box-shadow .2s, border-color .2s; }
button.theme { cursor: pointer; }
button.theme:hover { border-color: var(--gold); box-shadow: 0 0 16px -4px var(--gold-glow); }
button.theme span { font: 600 var(--fs-sm) var(--body); font-style: normal; opacity: .6; }
button.theme[aria-expanded="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in srgb, var(--gold-2) 60%, transparent); }
button.theme:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.themes.compact .theme { font-size: 1rem; padding: 4px 12px 5px; }
.theme-info { position: relative; background: var(--panel-2); border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; animation: rise .3s var(--ease); }
.theme-info strong { font: italic 400 var(--fs-xl) var(--serif); color: var(--gold-2); }
.theme-info ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 2px; }

/* ---------- vincitori nello storico ---------- */
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.wrow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 7%, transparent), transparent 60%), var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.wrow .ph { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 0 0 1px var(--gold-deep), 0 0 16px -4px var(--gold-glow); display: grid; place-items: center; background: var(--panel); font: 800 var(--fs-xl) var(--display); color: var(--gold); }
.wrow img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wrow a.ph { text-decoration: none; }
.wtxt { display: grid; gap: 1px; min-width: 0; }
.wn { font: 700 var(--fs-lg) var(--body); overflow-wrap: anywhere; }
.wa { font: italic 400 var(--fs-lg) var(--serif); color: var(--gold); }
.wc { font: 500 var(--fs-xs)/1.4 var(--body); color: var(--muted); }

/* ---------- risultati: tre statuette ---------- */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: aw; }
.award { position: relative; counter-increment: aw; overflow: hidden; background: radial-gradient(ellipse 80% 140px at 50% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 12px; justify-items: center; text-align: center; align-content: start; }
.award::before { content: counter(aw, upper-roman); position: absolute; top: 8px; left: 14px; font: italic 400 var(--fs-3xl)/1 var(--serif); color: var(--gold); opacity: .55; }
.award::after { content: ""; position: absolute; left: 22%; right: 22%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.award .cat { font: 500 var(--fs-xs)/1.4 var(--body); color: var(--muted); min-height: 2.4em; display: grid; align-items: center; padding: 0 22px; }
.award h3 { color: var(--gold-2); font-size: var(--fs-lg); min-height: 2.5em; display: grid; align-items: center; }
.award .win .ph { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-2), 0 0 32px color-mix(in srgb, var(--gold) 50%, transparent); }
.bars { display: grid; gap: 7px; width: 100%; }
.bar { display: grid; grid-template-columns: 28px minmax(0, 1fr) 1fr 22px; gap: 8px; align-items: center; font-size: var(--fs-sm); text-align: left; }
.bar img, .bar .mini { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--wine); }
.bar .mini { display: grid; place-items: center; background: var(--panel); color: var(--gold); font: 700 var(--fs-xs) var(--display); }
.bar .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .t { height: 6px; border-radius: 3px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar .t i { display: block; height: 100%; background: var(--bar); border-radius: 3px; }
.bar.leading .t i { background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2)); box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 60%, transparent); }
.bar.leading .n { color: var(--gold-2); font-weight: 600; }
.bar .v { font: 500 var(--fs-xs) var(--mono); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- la busta: voto un premio alla volta ---------- */
.ballot { display: grid; gap: 14px; }
.ballot-head { display: flex; align-items: center; gap: 14px; }
.ballot-medal { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent), 0 0 18px -4px var(--gold-glow); }
.ballot-head .ballot-medal { width: 58px; height: 58px; }
.ballot-head h2 { color: var(--gold-2); }
.ballot-head .hint { font-size: var(--fs-sm); }
.vote-of { font: 500 var(--fs-xs)/1.3 var(--body); color: var(--muted); margin-bottom: 4px; }

/* indicatore dei passi: I · II · III · busta */
.vote-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vote-steps button { all: unset; box-sizing: border-box; width: 100%; min-height: 64px; display: grid; align-content: center; justify-items: center; gap: 1px; padding: 8px 4px; text-align: center; cursor: pointer; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.vote-steps button:hover { border-color: var(--line-hover); color: var(--fg); }
.vote-steps button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.vote-steps .vs-n { font: italic 400 var(--fs-xl)/1 var(--serif); color: var(--gold); }
.vote-steps .vs-l { font: 600 var(--fs-xs)/1.2 var(--body); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-steps .vs-pick { font: 500 var(--fs-xs)/1.2 var(--body); color: var(--gold-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-steps button.done { border-color: var(--gold-line); }
.vote-steps button[aria-current="step"] { color: var(--fg); border-color: var(--gold); background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), var(--panel-2); box-shadow: 0 0 22px -8px var(--gold-glow); }

/* candidati: righe grandi da toccare con il pollice */
.vote-stage { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 24px 48px -32px rgba(0,0,0,.9); }
.vote-list { display: grid; gap: 8px; }
.vote-row { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 10px 46px 10px 10px; cursor: pointer; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.vote-row:hover { border-color: var(--line-hover); transform: translateX(2px); }
/* il focus da tastiera è bianco, la scelta è ambra: non si confondono */
.vote-row:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.vote-row .portrait { width: 48px; }
.vote-row .portrait > .ph { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid var(--wine); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 75%, transparent); display: grid; place-items: center; background: var(--panel); font: 800 1.1rem var(--display); color: var(--gold); }
.vote-row-txt { display: grid; gap: 2px; min-width: 0; }
.vote-row-name { font: 600 var(--fs-lg)/1.2 var(--body); overflow-wrap: anywhere; }
.vote-row-title { font: italic 400 var(--fs-md)/1.25 var(--serif); color: var(--gold-2); overflow-wrap: anywhere; }
.vote-row-none { color: var(--muted); }
.vote-thumb { width: 96px; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--bg-deep); }
.vote-thumb-title { display: grid; place-items: center; padding: 6px; font: 500 var(--fs-xs)/1.2 var(--body); color: var(--muted); text-align: center; overflow: hidden; }
.vote-row::after { content: ""; position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--line-hover); transition: background .2s, border-color .2s; }
.vote-row[aria-checked="true"] { border-color: var(--gold); background: radial-gradient(ellipse at 0% 50%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), var(--panel-2); box-shadow: 0 0 0 1px var(--gold), 0 10px 24px -14px var(--gold-glow); }
.vote-row[aria-checked="true"] .portrait > .ph { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-2), 0 0 18px color-mix(in srgb, var(--gold) 50%, transparent); }
.vote-row[aria-checked="true"]::after { content: "✓"; display: grid; place-items: center; font: 700 var(--fs-xs) var(--body); color: var(--ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px var(--gold-glow); animation: pop .3s var(--ease); }

/* la busta: riepilogo e voto sigillato */
.envelope { position: relative; display: grid; gap: 16px; padding: 26px 22px 22px; border-radius: var(--radius); border: 1px dashed var(--gold-line); background: radial-gradient(ellipse 80% 160px at 50% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%), var(--panel); }
.envelope::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 26px; pointer-events: none; background: linear-gradient(170deg, transparent 49%, var(--gold-line) 50%, transparent 51%) left / 50% 100% no-repeat, linear-gradient(10deg, transparent 49%, var(--gold-line) 50%, transparent 51%) right / 50% 100% no-repeat; opacity: .6; }
.envelope.sealed { border-style: solid; border-color: var(--gold-line); text-align: center; justify-items: center; }
.envelope.sealed .vote-sum { width: 100%; text-align: left; }
.env-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: var(--ink); background: radial-gradient(circle at 35% 30%, var(--gold-pale), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent), 0 0 30px -6px var(--gold-glow); animation: pop .5s var(--ease); }
.vote-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vote-sum-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.vote-sum-row .ballot-medal { width: 40px; height: 40px; }
.vote-sum-txt { display: grid; gap: 1px; min-width: 0; }
.vote-sum-award { font: 500 var(--fs-xs)/1.3 var(--body); color: var(--muted); }
.vote-sum-txt strong { font: 700 var(--fs-lg)/1.2 var(--body); color: var(--gold-2); }
.vote-missing { font: italic 400 var(--fs-lg)/1.2 var(--serif); color: var(--muted); }
.envelope > .btn { justify-self: start; min-width: 200px; }

/* riepilogo del voto dentro la scheda della serata */
.vote-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--gold-line); background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%), var(--panel-2); }
.vote-cta.done { border-color: var(--line); background: var(--panel-2); }

/* ---------- presentazioni ---------- */
.files { display: grid; gap: 10px; }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; transition: border-color .2s; }
.file .t { font-weight: 600; overflow-wrap: anywhere; }
.file .s { font: 500 var(--fs-xs) var(--body); color: var(--muted); }
.file > .row:empty { display: none; }
.secret-row { grid-template-columns: auto minmax(0, 1fr); background: repeating-linear-gradient(-45deg, rgba(255,255,255,.015) 0 10px, transparent 10px 20px), var(--panel-2); }
.file.with-thumb { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
.thumb { width: 120px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); display: grid; place-items: center; position: relative; text-decoration: none; box-shadow: 0 8px 18px -10px #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ext { font: 700 var(--fs-md) var(--mono); color: var(--gold); letter-spacing: .08em; }
.progress { height: 6px; border-radius: 3px; background: var(--bg-deep); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2)); box-shadow: 0 0 10px var(--gold-glow); transition: width .2s; }
#up { border-top: 1px dashed color-mix(in srgb, var(--muted) 25%, transparent) !important; }

/* ---------- regia ---------- */
.table { display: grid; gap: 8px; }
.urow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.urow .pw { font: 500 var(--fs-md) var(--mono); color: var(--gold-2); }
.confirm { color: var(--error); font-size: var(--fs-md); }
[data-aev] { border-color: var(--line) !important; }
details { min-width: 0; }
details > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-md); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; color: var(--gold); transition: transform .2s; display: inline-block; }
details[open] > summary::before { transform: rotate(90deg); }
details > summary:hover { color: var(--fg); }
.pending-themes { background: var(--gold-soft); border: 1px dashed var(--gold-line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }

/* regia: la serata di stasera in cima, con un percorso a fasi e un solo bottone ambra */
.tonight { gap: 18px; }
.phase-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: ph; }
.phase-track li { counter-increment: ph; position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); font: 600 var(--fs-xs)/1.2 var(--body); text-align: center; }
.phase-track li::before { content: counter(ph, upper-roman); position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: italic 400 var(--fs-lg)/1 var(--serif); color: var(--muted); background: var(--bg-deep); border: 1px solid var(--line); }
.phase-track li + li::after { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.phase-track li.done, .phase-track li.now { color: var(--fg); }
.phase-track li.done::before { color: var(--gold-2); border-color: var(--gold-line); }
.phase-track li.done + li::after, .phase-track li.now::after { background: linear-gradient(90deg, var(--gold-line), var(--gold)); }
.phase-track li.now::before { color: var(--ink); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px -4px var(--gold-glow); }
/* azioni di una serata (palco, voto, quinte…, e i bottoni delle schede in Serate): distribuite in parti uguali sulla riga,
   tutte alte uguali, poi a capo, su desktop e telefono */
.aev-actions, .ev-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.aev-actions > .btn, .ev-actions > .btn { width: 100%; justify-content: center; text-align: center; }
/* serate in regia: righe riassuntive che si aprono */
.aev-list { gap: 8px; }
details.aev { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
details.aev[open] { border-color: var(--line-hover); }
details.aev > summary.aev-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 14px; padding: 12px 14px; min-height: 56px; color: var(--fg); }
details.aev > summary.aev-sum::before { display: none; }
.aev-name { display: grid; gap: 1px; min-width: 0; }
.aev-name strong { font: 700 var(--fs-lg)/1.2 var(--body); overflow-wrap: anywhere; }
.aev-edit { font: 600 var(--fs-sm) var(--body); color: var(--gold-2); }
details.aev[open] .aev-edit { color: var(--muted); }
details.aev > [data-aev] { border: 0; border-top: 1px dashed color-mix(in srgb, var(--muted) 25%, transparent); border-radius: 0 0 14px 14px; box-shadow: none; background: transparent !important; }
details.aev .aev-head { display: none; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.new-event-btn { min-height: 48px; padding: 12px 22px; border-color: var(--gold-line-strong); color: var(--gold-2); font-size: var(--fs-md); }
form.new-event { padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.ev-group { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.ev-group > legend { padding: 0; margin-bottom: 8px; font: 600 var(--fs-md) var(--body); color: var(--gold-2); }
.mode-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.mode-opt { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer; }
.mode-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mode-opt:has(input:checked) { border-color: var(--gold-line-strong); background: var(--gold-soft); }
.mode-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
/* serata pubblica: le modalità a tema si spengono */
.mode-opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.mode-opt input:disabled { cursor: not-allowed; }
.mode-name { font-weight: 600; color: var(--fg); }
.mode-how { font-size: var(--fs-sm); color: var(--muted); }
.theme-pick { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.theme-opt { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.35; }
.theme-opt input { margin-top: 0; }
.theme-opt small { color: var(--muted); font-weight: 400; }
.theme-opt:has(input:checked) { border-color: var(--gold-line-strong); background: var(--gold-soft); }
.settings-head { margin-top: 10px; }
@media (max-width: 600px) { details.aev > summary.aev-sum { grid-template-columns: minmax(0, 1fr) auto; } .aev-edit { display: none; } .phase-track li { font-size: var(--fs-xs); } }

/* avvisi oltre il secondo: a scomparsa */
/* proposta di un tema: il titolo è il sommario */
details.propose > summary { display: flex; }
details.propose > summary h2 { display: inline; }
details.propose > summary::before { font-size: 1.1rem; align-self: center; }
/* nelle righe delle presentazioni "Elimina" è leggero e sta in fondo, lontano da "Apri" */
.file .row > .btn.danger { margin-left: auto; border-color: transparent; }
.file .row > .btn.danger:hover:not(:disabled) { border-color: color-mix(in srgb, var(--error) 60%, transparent); }

/* accesso: la promessa per chi è nuovo sopra la scheda per chi torna */
.welcome { gap: 14px; }
#login > h2 { margin-bottom: 2px; }
input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 2px 6px -2px rgba(0,0,0,.6), 0 0 0 3px color-mix(in srgb, var(--error) 20%, transparent); }
/* gettoni del palco: il ritratto non schiaccia il nome */

/* tagliando piccolo nelle righe di elenco */
.stub.mini { width: 58px; min-height: 64px; padding: 6px 6px 6px 4px; transform: rotate(-1.5deg); }
.stub.mini b { font-size: 1.6rem; }
.stub.mini .stub-time { display: none; }
.stub.mini .stub-mo.long { font-size: .6rem; letter-spacing: .04em; }
.ev-line { align-items: center; }
a.evrow.ev-line, a.evrow.ev-line:is(*) { grid-template-columns: auto minmax(0, 1fr) auto; }
/* profilo: le sezioni respirano come il resto della pagina */
#userSections { display: grid; gap: 26px; }
/* risultati: oltre il terzo, a richiesta */
details.more-bars { width: 100%; text-align: left; }
details.more-bars > summary { font-size: var(--fs-sm); padding: 6px 0; }
details.more-bars .bars { margin-top: 6px; }

/* salto al contenuto: invisibile finché non arriva il focus da tastiera */
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; min-height: 44px; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 600 var(--fs-md) var(--body); text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: 12px; outline: 2px solid var(--fg); outline-offset: 2px; }
/* pannello della serata in regia: azioni secondarie a scomparsa, conferma del salvataggio accanto al campo */
details.more-actions > summary { color: var(--gold-2); font-weight: 600; }
/* altre azioni: bottoni, riquadro di eliminazione e note ben distanziati */
details.more-actions > .more-body { gap: 12px; margin-top: 12px; }
details.more-actions .more-body > .row > .btn.danger { margin-left: auto; }
details.more-actions .more-body > .danger-confirm, details.more-actions .more-body > p { margin: 0; }
/* dettagli della serata: il modulo come "+ Nuova serata", poi «Esegui modifiche» */
form.ev-edit { margin-top: 12px; }
.ev-voting { margin-top: 14px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--muted) 25%, transparent); }
details.aev[open] .aev-edit { font-size: 0; }
details.aev[open] .aev-edit::after { content: "Chiudi"; font-size: var(--fs-sm); }
/* campi obbligatori: il messaggio sotto il campo */
.field-error { color: var(--error); font: 500 var(--fs-sm) var(--body); }
.login-reason { color: var(--gold-2); }
/* temi: righe compatte che si aprono al tocco */
.trow { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .2s; }
.trow:hover { border-color: var(--line-hover); }
.trow-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; }
.trow-toggle { all: unset; box-sizing: border-box; display: grid; gap: 2px; min-height: 48px; padding: 6px 10px; border-radius: 10px; cursor: pointer; min-width: 0; }
.trow-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.trow-toggle .ttl { font: italic 400 var(--fs-xl)/1.15 var(--serif); color: var(--gold-2); }
.trow-hint { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-toggle[aria-expanded="true"] .trow-hint { display: none; }
.trow-body { display: grid; gap: 10px; padding: 0 16px 14px; }
.themes-list { display: grid; gap: 8px; }
/* gruppi: membri come griglia di ritratti; per l'admin il ritratto aperto prende tutta la riga */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 6px; }
.mtile { display: grid; justify-items: center; align-content: start; min-width: 0; }
.mtile .badge { width: 100%; padding: 4px 2px; border-radius: 14px; text-decoration: none; }
.mtile > a.badge:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* numero e parola restano insieme */
.nb { white-space: nowrap; }

/* titoli di sezione con la forza di un titolo di pagina, senza essere un secondo h1 */
.section-title { font-size: clamp(1.5rem, 4.5vw, 2.1rem); letter-spacing: -.03em; }
/* passaggi di stato: la nota dice cosa succede alla seconda pressione */
.confirm-note { color: var(--gold-2); font-size: var(--fs-sm); animation: rise .25s var(--ease); }
.pick button.sure .ph { box-shadow: 0 0 0 3px var(--error), 0 0 16px color-mix(in srgb, var(--error) 50%, transparent); }

/* conferma forte per eliminazioni irreversibili: si scrive il nome */
.danger-confirm { display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--error) 55%, transparent); background: color-mix(in srgb, var(--error) 7%, transparent); animation: rise .25s var(--ease); }
.danger-confirm p strong { color: var(--error); }
.danger-confirm label { color: var(--fg); }
.event-actions { gap: 10px 12px; }

/* il turno passato dalla regia (v0.0.162): niente barra fissa, la campanella si accende d'oro e pulsa finché il turno è tuo;
   l'avviso con il nome della serata è il primo di «Da fare» nelle Notifiche */
.bell-link.turn { color: var(--ink); background: var(--gold); border-color: var(--gold); animation: bell-turn 2s var(--ease) infinite; }
@keyframes bell-turn { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 60% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .bell-link.turn { animation: none; } }

/* avviso a comparsa */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: rgba(14,24,40,.96); color: var(--fg); padding: 11px 18px 11px 16px; border-radius: 14px; font-weight: 600; font-size: var(--fs-md); z-index: 50; max-width: calc(100vw - 32px);
  border: 1px solid var(--gold-line); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 18px 40px -12px #000, 0 0 30px -12px var(--gold-glow); display: flex; align-items: center; gap: 10px; animation: toastin .35s var(--ease); }
.toast::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.toast.err { border-color: color-mix(in srgb, var(--error) 60%, transparent); box-shadow: 0 18px 40px -12px #000; }
.toast.err::before { background: var(--error); box-shadow: 0 0 10px var(--error); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- profilo e statistiche ---------- */
.trophies { display: flex; flex-wrap: wrap; gap: 8px; }
.trophy { font: 500 var(--fs-xs) var(--body); padding: 6px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--gold-line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.trophy:hover { border-color: var(--gold); box-shadow: 0 0 14px -4px var(--gold-glow); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 12px; display: grid; gap: 4px; text-align: center; }
.stat b { font: 800 2.1rem/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.03em; text-shadow: 0 0 22px color-mix(in srgb, var(--gold) 30%, transparent); }
.stat span { font: 500 var(--fs-xs) var(--body); color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }
a.evrow { grid-template-columns: minmax(0, 1fr) auto; text-decoration: none; color: inherit; }
a.evrow:hover { border-color: var(--gold-deep); }
a.evrow > span[aria-hidden] { color: var(--gold); font-size: var(--fs-xl); transition: transform .2s var(--ease); }
a.evrow:hover > span[aria-hidden] { transform: translateX(3px); }
a.evrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* righe del profilo che aprono una pagina (Calendario, Presentazioni): icona su ambra, titolo, riepilogo in mono e freccia ambra */
.go-list { gap: 10px; }
a.evrow.go-row, a.evrow.go-row:is(*) { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px 14px 14px; }
.go-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 1.3rem; }
.go-row .t { font: 700 var(--fs-lg)/1.2 var(--display); letter-spacing: -.01em; }
.go-row .s { margin-top: 4px; overflow-wrap: anywhere; }

/* ---------- calendario ---------- */
/* oro pieno: la persona partecipa; cerchio tratteggiato: no. Vale per legenda, giorni, pillole e righe dell'elenco */
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: var(--fs-sm); }
.cal-key { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.cal-key::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; box-sizing: border-box; }
.cal-key.in::before { background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.cal-key.out::before { border: 2px dashed var(--muted); background: color-mix(in srgb, var(--muted) 10%, transparent); }
.cal-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.cal-title { text-align: center; }
.cal-title::first-letter { text-transform: uppercase; }
.cal-title span { color: var(--muted); font-weight: 500; }
.btn.cal-nav { width: 44px; height: 44px; padding: 0; font-size: 1.35rem; line-height: 1; }
.cal-grid { width: calc(100% + 8px); margin: -4px -4px 0; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal-grid th { padding: 2px 0 4px; font: 500 var(--fs-2xs) var(--body); color: var(--muted); text-align: center; }
.cal-grid abbr { text-decoration: none; }
.cal-grid td { height: 50px; padding: 0; text-align: center; vertical-align: middle; border-radius: 10px; }
.cal-d { background: rgba(255,255,255,.025); }
.cal-d > a, .cal-d > button { width: 100%; height: 100%; min-height: 50px; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 0; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; transition: background .2s; }
.cal-d > a:hover, .cal-d > button:hover { background: var(--panel-2); }
.cal-d > a:focus-visible, .cal-d > button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.cal-n { width: 34px; height: 34px; display: inline-grid; place-items: center; box-sizing: border-box; border-radius: 50%; font: 500 var(--fs-sm)/1 var(--mono); font-variant-numeric: tabular-nums; }
.cal-d.past .cal-n { color: var(--muted); }
.cal-d.today .cal-n { color: var(--azure-pale); font-weight: 700; outline: 2px solid var(--azure-2); outline-offset: 2px; }
.cal-d.in .cal-n { background: var(--gold); color: var(--ink); font-weight: 700; box-shadow: 0 0 14px -3px var(--gold-glow); }
.cal-d.out .cal-n { border: 2px dashed var(--muted); background: color-mix(in srgb, var(--muted) 10%, transparent); color: var(--fg); font-weight: 700; }
.cal-dots { display: flex; justify-content: center; gap: 3px; }
.cal-dots i { width: 6px; height: 6px; box-sizing: border-box; border-radius: 50%; }
.cal-dots i.in { background: var(--gold); }
.cal-dots i.out { border: 1px solid var(--muted); }
.cal-foot { align-items: center; }
.cal-foot .hint { flex: 1 1 200px; margin: 0; }
.pill.cal-part::before { content: ""; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%; flex: none; }
.pill.cal-part.in { color: var(--gold-2); border-color: var(--gold-line); background: var(--gold-soft); }
.pill.cal-part.in::before { background: var(--gold); }
.pill.cal-part.out { border-style: dashed; border-color: var(--line-hover); }
.pill.cal-part.out::before { border: 1px dashed var(--muted); }
a.evrow.cal-row.in { border-color: var(--gold-line); background: linear-gradient(90deg, var(--gold-soft), transparent 70%), var(--panel-2); }
a.evrow.cal-row.out { border-style: dashed; border-color: var(--line-hover); }
a.evrow.cal-row:hover { border-color: var(--gold); }
.cal-row.flash { animation: cal-flash 1.4s var(--ease); }
@keyframes cal-flash { 0%, 35% { box-shadow: 0 0 0 2px var(--gold), 0 0 22px -4px var(--gold-glow); } 100% { box-shadow: 0 0 0 2px transparent; } }
/* presentazioni di una persona, con più gruppi divise per gruppo */
.pres-group { flex-wrap: nowrap; gap: 14px; }
.pres-group .glogo { width: 44px; height: 44px; border-width: 2px; }
.pres-group h2 { min-width: 0; overflow-wrap: anywhere; }
/* sono tutte della stessa persona: il ritratto su ogni riga non dice niente */
.pres-own .file .row > .badge { display: none; }
.recovery-code { margin: 0; font: 600 clamp(1.15rem, 5vw, 1.7rem)/1.3 var(--mono); letter-spacing: .1em; color: var(--gold-2); overflow-wrap: anywhere; user-select: all; padding: 16px 18px; border-radius: 12px; background: var(--bg-deep); border: 1px dashed var(--gold-line); text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent); }
.share-choice { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: var(--fs-md); }
.password-field { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.password-field input { flex: 1; min-width: 0; width: 0; }
.password-field button { flex: none; min-width: 84px; }
/* occhio per mostrare o nascondere la password: tondo alto quanto il campo (v0.0.158) */
.password-field .pw-eye { min-width: 48px; width: 48px; padding: 0; display: grid; place-items: center; }
.password-field .pw-eye .ico { width: 20px; height: 20px; margin: 0; }
/* comandi del profilo (v0.0.158): tondi con icona e una parola corta sotto, come i comandi sul tagliando del biglietto */
.prof-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; }
.act-btn { display: grid; justify-items: center; gap: 6px; min-width: 64px; padding: 4px 2px; border: 0; background: none; color: var(--fg); font: inherit; font-size: var(--fs-xs); font-weight: 600; text-decoration: none; cursor: pointer; }
.act-btn[hidden] { display: none; }
.act-ring { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-hover); background: var(--panel-2); transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease); }
.act-ring .ico { width: 22px; height: 22px; margin: 0; stroke-width: 2; }
.act-cap { color: var(--muted); }
.act-btn:hover .act-ring { border-color: var(--gold); }
.act-btn:active .act-ring { transform: scale(.93); }
.act-btn:focus-visible { outline: none; }
.act-btn:focus-visible .act-ring { outline: 2px solid var(--fg); outline-offset: 2px; }
.act-btn.on .act-ring { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.act-btn.on .act-cap { color: var(--gold); }
.account-delete { border-color: color-mix(in srgb, var(--error) 45%, transparent); }
.account-delete summary { font-weight: 600; color: var(--error); }

/* ---------- albo d'oro: podio sotto l'occhio di bue ---------- */
.podium { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto auto auto; column-gap: 10px; row-gap: 0; padding-top: 30px; }
.podium::before { content: ""; position: absolute; left: 50%; top: -30px; width: 70%; height: calc(100% + 30px); transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-2) 0%, transparent), color-mix(in srgb, var(--gold-2) 10%, transparent) 70%, color-mix(in srgb, var(--gold-2) 0%, transparent)); clip-path: polygon(44% 0, 56% 0, 78% 100%, 22% 100%); }
/* le tre colonne condividono le righe (foto, nome, posto, pari merito, numeri, base): il testo sta sulla stessa linea; l'altezza del gradino la dà solo la base */
.podium .step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-row: 1 / -1; grid-template-rows: subgrid; row-gap: 0; justify-items: center; text-align: center; padding: 18px 6px 0; border-radius: 18px 18px 4px 4px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel) 70%, var(--bg-deep)); border: 1px solid var(--line); border-bottom: 0; min-width: 0; overflow: hidden; }
.podium .p1 { border-color: var(--gold-line); background: radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel) 70%, var(--bg-deep)); box-shadow: 0 0 50px -20px var(--gold-glow); }
.podium .step::after { content: ""; align-self: end; justify-self: stretch; margin-top: 14px; height: 28px; background: color-mix(in srgb, var(--gold-2) 6%, transparent); border-top: 1px solid var(--line); }
.podium .p1::after { height: 64px; background: color-mix(in srgb, var(--gold) 10%, transparent); border-top-color: var(--gold-line); }
.podium .step:not(.p1)[data-pos="2"]::after { height: 46px; }
.podium .step .badge { grid-row: 1 / 3; display: grid; grid-template-rows: subgrid; justify-items: center; align-content: start; width: 100%; max-width: 100%; min-width: 0; row-gap: 6px; }
.podium .badge .ph { width: min(110px, 100%); max-width: 100%; height: auto; aspect-ratio: 1; align-self: end; }
.podium .p1 .badge .ph { width: min(150px, 100%); }
.podium .step .badge .nm { width: 100%; max-width: 100%; text-align: center; overflow-wrap: break-word; font: 800 clamp(0.95rem, 3.8vw, 1.25rem)/1.15 var(--display); min-height: 2.3em; display: grid; align-items: start; justify-items: center; }
.podium .p1 .badge .nm { font-size: clamp(1.05rem, 4.5vw, 1.5rem); }
.podium .place { grid-row: 3; margin-top: 4px; font: italic 400 clamp(2.4rem, 8vw, 3.6rem)/.9 var(--serif); color: var(--gold); text-shadow: 0 0 24px var(--gold-glow); }
.podium .tie { grid-row: 4; min-height: 1.4em; padding-top: 4px; font: 500 var(--fs-xs) var(--body); color: var(--gold-2); }
.podium .pstats { grid-row: 5; display: grid; gap: 2px; justify-items: center; text-wrap: balance; }
.podium .p2 .place, .podium .p3 .place { color: var(--gold-2); opacity: .75; text-shadow: none; }
.ranking { display: grid; gap: 8px; }
.rank { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; grid-template-areas: "pos ph name tot" "pos ph aw aw"; gap: 2px 12px; align-items: center; text-decoration: none; color: inherit; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; transition: border-color .2s, transform .2s var(--ease); }
.rank:hover { border-color: var(--gold-deep); transform: translateX(2px); }
.rank .pos { grid-area: pos; font: italic 400 var(--fs-3xl)/1 var(--serif); color: var(--gold); text-align: center; }
.rank .badge { grid-area: ph; }
.rank .rn { grid-area: name; font-weight: 700; }
.rank .rs { grid-area: aw; display: flex; flex-wrap: wrap; gap: 6px; font: 600 var(--fs-sm) var(--body); color: var(--gold-2); }
.rank .rt { grid-area: tot; font: 500 var(--fs-sm) var(--body); color: var(--muted); white-space: nowrap; }
.rank .rt b { font-family: var(--mono); color: var(--fg); font-weight: 600; }
.rank .rt b:first-child { color: var(--gold); }

/* ---------- pagina temi ---------- */
.explain .modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.explain .modes > div { display: grid; gap: 6px; align-content: start; }
/* temi selezionabili: una raccolta per gruppo (più i Globali) che si apre sulle righe dei temi */
.tcoll-list { display: grid; gap: 10px; }
details.tcoll { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); transition: border-color .2s; }
details.tcoll:hover, details.tcoll[open] { border-color: var(--line-hover); }
details.tcoll > summary.tcoll-sum { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; color: var(--fg); border-radius: var(--radius); }
details.tcoll > summary.tcoll-sum:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tcoll-sum img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--wine); box-shadow: 0 0 0 1px var(--gold-line); background: #fff; }
.tcoll-name { min-width: 0; font: 700 var(--fs-lg)/1.2 var(--body); overflow-wrap: anywhere; }
.tcoll-body { display: grid; gap: 8px; padding: 0 12px 12px; }
.tcoll-body > .hint { padding: 0 4px; }
.tcoll .trow { background: var(--panel-2); }
button.vote { font: 600 var(--fs-sm) var(--body); color: var(--fg); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-variant-numeric: tabular-nums; text-align: left; max-width: 100%; transition: border-color .2s, background .2s; }
button.vote:hover { border-color: var(--gold-deep); }
button.vote.on { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); box-shadow: 0 0 16px -4px var(--gold-glow); }
button.vote:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-ballot-options { display: grid; gap: 8px; }
.theme-ballot-option { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--fg); transition: border-color .2s, background .2s; }
.theme-ballot-option:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.theme-ballot-option small { display: block; color: var(--muted); font-weight: 400; }
#serataTemi { scroll-margin-top: 140px; }
.event-theme-vote { border-top: 1px solid var(--line); padding-top: 16px; }
[data-theme-tab][aria-current="page"] { pointer-events: none; }

/* ---------- gruppi ---------- */
/* scheda del gruppo chiusa: freccetta ambra, logo, nome e pillole; aperta mostra il resto sotto */
details.gcard { display: block; transition: border-color .2s; }
details.gcard:hover, details.gcard[open] { border-color: var(--line-hover); }
details.gcard > summary.gcard-sum { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: center; color: var(--fg); border-radius: 12px; }
details.gcard > summary.gcard-sum::before { grid-row: 1 / span 2; }
details.gcard > summary.gcard-sum .glogo { grid-row: 1 / span 2; }
details.gcard > summary.gcard-sum h2 { grid-column: 3; align-self: end; min-width: 0; overflow-wrap: anywhere; }
details.gcard > summary.gcard-sum .pills { grid-column: 3; align-self: start; }
details.gcard > summary.gcard-sum:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.gcard-body { display: grid; gap: 16px; margin-top: 18px; }
/* Gestisci: logo e immagini dei premi sono bottoni. Il velo "Cambia" si accende con il puntatore o la tastiera; sui
   telefoni, dove il passaggio del mouse non esiste, un bollino con la fotocamera dice che si può toccare. */
.pic-edit { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--fg); }
.pic-edit .glogo { width: 88px; height: 88px; display: block; }
.pic-edit .award-pic { width: 76px; height: 76px; display: block; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent), 0 0 18px -4px var(--gold-glow); }
.pic-edit-veil { position: absolute; inset: 3px; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 2px;
  background: rgb(8 12 24 / .68); color: #fff; font-size: .78rem; line-height: 1.1; opacity: 0; transition: opacity .2s var(--ease); }
.pic-edit-badge { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--bg); background: var(--gold); box-shadow: 0 0 0 3px var(--bg); }
.pic-edit-badge svg { width: 17px; height: 17px; }
.pic-edit:is(:hover, :focus-visible) .pic-edit-veil, .pic-edit.busy .pic-edit-veil { opacity: 1; }
.pic-edit:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pic-edit.busy { cursor: progress; }
@media (hover: hover) { .pic-edit-badge { display: none; } }
/* I premi del gruppo: un premio per riga, immagine a sinistra e nome a destra, separati da un filo */
.award-edits { display: grid; }
.award-edit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 16px; border-top: 1px solid var(--line-soft); }
.award-edit:first-child { border-top: 0; padding-top: 4px; }
.award-edit-body { gap: 8px; min-width: 0; }
.award-edit .kicker { margin: 0; }
@media (max-width: 520px) { .award-edit { gap: 12px; } .pic-edit .award-pic { width: 60px; height: 60px; } }
.glogo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--wine); box-shadow: 0 0 0 1px var(--gold), 0 8px 20px -8px #000; background: #fff; flex: none; }
.invite { position: relative; background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%), var(--bg-deep); border: 1px dashed var(--gold-line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; }
.invite .code { font: 600 clamp(1.6rem, 7vw, 2.2rem) var(--mono); letter-spacing: .14em; color: var(--gold-2); text-shadow: 0 0 20px color-mix(in srgb, var(--gold) 40%, transparent); }
.pw { font-family: var(--mono); color: var(--gold-2); }

/* ---------- modalità palco: occhio di bue ---------- */
body.on-stage header.top { display: none; }
body.on-stage::before { opacity: .35; }
body.on-stage .wrap { max-width: none; min-height: 100vh; padding: 20px; }
.stage { position: relative; isolation: isolate; min-height: calc(100vh - 40px); display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.stage::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 163deg at 50% -6%, transparent 0deg, color-mix(in srgb, var(--gold-pale) 0%, transparent) 3deg, color-mix(in srgb, var(--gold-pale) 13%, transparent) 12deg, color-mix(in srgb, var(--gold-pale) 16%, transparent) 17deg, color-mix(in srgb, var(--gold-pale) 13%, transparent) 22deg, color-mix(in srgb, var(--gold-pale) 0%, transparent) 31deg, transparent 34deg),
    radial-gradient(ellipse 30% 6% at 50% 77%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(#000 0 84%, transparent 96%); mask-image: linear-gradient(#000 0 84%, transparent 96%);
  animation: lampon 1.2s var(--ease) both; }
@keyframes lampon { 0% { opacity: 0; } 30% { opacity: .7; } 40% { opacity: .3; } 100% { opacity: 1; } }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-main { display: grid; justify-items: center; align-content: center; align-items: center; gap: 16px; text-align: center; }
.stage-main h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.stage-main .kicker { justify-self: center; }
.badge.huge { width: auto; gap: 14px; display: flex; flex-direction: column; align-items: center; }
/* il ritratto è 30vh, ma su uno schermo basso (TV 1366×768) cede spazio a scelte e barra: 100vh - 600px lascia il resto della scena */
.badge.huge .ph { width: min(30vh, max(120px, calc(100vh - 600px)), 60vw); height: min(30vh, max(120px, calc(100vh - 600px)), 60vw); border-width: 8px; font-size: 8rem; box-shadow: 0 0 0 3px var(--gold), 0 0 0 14px color-mix(in srgb, var(--gold) 7%, transparent), 0 0 80px color-mix(in srgb, var(--gold) 35%, transparent), 0 40px 60px -30px #000; }
.badge.huge .nm { font: 800 clamp(2rem, 6.5vh, 4.4rem)/1 var(--display); letter-spacing: -.035em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.next { font: italic 400 var(--fs-2xl) var(--serif); color: var(--muted); }
.next strong { font: 700 var(--fs-xl) var(--body); font-style: normal; color: var(--fg); }
.stage-ctrl { justify-content: center; }
.stage-ctrl .btn:not(.sm) { min-width: 150px; padding: 13px 24px; font-size: var(--fs-lg); }
.stage-decks { display: grid; gap: 10px; justify-items: center; }
/* scheda del turno: tre modi di presentare (da qui sul palco, da qui nell'app del PC, il telefono di chi presenta) */
.stage-choice { justify-content: center; gap: 8px; }
.stage-choice .btn { padding: 10px 16px; font-size: var(--fs-sm); }
.stage-invited { margin: 0; max-width: min(96ch, 92vw); text-align: center; }
/* «Prepara sul palco» dalle quinte: le scelte restano visibili e in evidenza finché qualcuno al PC sceglie */
.stage-decks.cued { padding: 14px 18px; border: 1px solid var(--gold-line); border-radius: 18px; background: var(--gold-soft); }
body.stage-idle .stage-decks.cued { opacity: 1; pointer-events: auto; }
/* chiavetta Speetch nella barra del palco: verde se pronta, ambra se manca il Bluetooth */
.pill.key { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pill.key::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.key.warn { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
/* comandi di regia: visibili a chi muove il mouse, nascosti alla sala quando la scena è ferma */
.stage-ui { transition: opacity .25s var(--ease); }
body.stage-idle .stage-ui { opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
body.on-stage.stage-idle { cursor: none; }
.stage-tip { text-align: center; font-size: var(--fs-sm); max-width: none; margin: 0; }
.stage-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; padding: 22px 20px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 92%, transparent) 36%); }
.stage-dock .stage-ctrl .btn:not(.sm) { min-width: 130px; padding: 11px 20px; }
.stage-dock .stage-tip { flex-basis: 100%; font-size: var(--fs-xs); }
/* ordine di presentazione: riga di profili; i prossimi si trascinano, chi ha presentato e chi presenta restano fermi */
.run-wrap { flex-basis: 100%; display: grid; gap: 6px; justify-items: center; min-width: 0; }
.run-head { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; align-items: baseline; }
.run-head .hint { font-size: var(--fs-xs); }
.run-order { position: relative; list-style: none; margin: 0; padding: 4px 6px 6px; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.run-item { position: relative; flex: 0 0 auto; display: grid; grid-template-columns: auto auto; grid-template-areas: "num ph" "name name" "steps steps"; align-items: center; justify-items: center; gap: 4px 6px; width: 104px; padding: 8px 6px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); user-select: none; }
.run-item .run-num { grid-area: num; font: 500 var(--fs-xs) var(--body); color: var(--muted); }
.run-item .badge { grid-area: ph; }
.run-item .badge .ph { width: 36px; height: 36px; }
.run-name { grid-area: name; max-width: 100%; font: 600 var(--fs-sm)/1.2 var(--body); color: var(--fg); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-steps { grid-area: steps; display: flex; gap: 4px; }
.run-steps button { width: 44px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--gold-2); font: 600 var(--fs-sm) var(--body); cursor: pointer; }
.run-steps button:hover:not(:disabled) { background: var(--gold-soft); border-color: var(--gold-line); }
.run-steps button:disabled { opacity: .25; cursor: default; }
.run-steps button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.run-item.next { cursor: grab; touch-action: none; }
.run-item.done { opacity: .4; }
.run-item.done .run-name { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.run-item.now { border-color: var(--gold-line); background: var(--gold-soft); }
.run-item.now .run-num { color: var(--gold-2); }
.run-item.dragging { z-index: 2; cursor: grabbing; border-color: var(--gold-line-strong); box-shadow: 0 16px 30px -12px rgba(0,0,0,.75); }
/* la scena tiene sempre libero lo spazio della barra: i comandi che compaiono non coprono il relatore */
body.on-stage .stage-main { padding-bottom: 96px; }
/* in scena c'è anche la riga dell'ordine: più spazio sotto il relatore */
body.on-stage .stage:has(.run-wrap) .stage-main { padding-bottom: 264px; }
/* TV basse (768 e 720 px): spazi più stretti, così scelte e avvisi della regia non fanno scorrere la scena */
@media (max-height: 800px) { body.on-stage .stage-main { gap: 10px; } body.on-stage .stage-decks { gap: 6px; } }
.stage-upload { position: relative; }
.stage-upload > summary::before { display: none; }
.stage-upload-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; width: min(480px, 92vw); padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 48px -20px #000; text-align: left; }
.stage-upload-panel #up { border-top: 0 !important; padding-top: 0 !important; }
.stage details { max-width: 720px; margin: 16px auto; text-align: left; }

/* «Si vota!» sul palco: i ritratti di chi ha già votato si accendono, i voti restano segreti */
.stage-vote .tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; }
.tally-face .portrait { width: 64px; }
.tally-face .portrait > .ph { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid var(--wine); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 75%, transparent); display: grid; place-items: center; background: var(--panel-2); font: 800 1.5rem var(--display); color: var(--gold); }
.tally-face { opacity: .3; filter: grayscale(.8); transition: opacity .6s var(--ease), filter .6s var(--ease); }
.tally-face.in { opacity: 1; filter: none; }
.tally-face.in .ph { box-shadow: 0 0 0 3px var(--gold-2), 0 0 28px var(--gold-glow); }
.vote-count { margin: 0; font: 600 var(--fs-3xl) var(--mono); color: var(--gold-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent); }
.stage-music { max-width: 420px; margin: 0 auto; text-align: center; }
.stage-music input { margin-top: 10px; }
.stage-music .row { justify-content: center; margin-top: 10px; }
/* i voti nel pannello della serata in Regia: chi manca, classifiche da non proiettare, svela e azzera */
details[data-votes] > .more-body { gap: 12px; margin-top: 12px; }
/* a fine premiazione, sotto le opzioni: «Chiudi la serata e pubblica», con la riga che dice cosa succede */
.stage-end { display: grid; gap: 6px; justify-items: center; max-width: 420px; margin: 8px auto 0; text-align: center; }
.deck-viewer .deck-fallback { margin: auto; max-width: 520px; }
/* sul palco, la presentazione aperta nell'app del PC (PowerPoint, Keynote): cosa fare, leggibile dalla sala come dalla regia */
.deck-viewer .deck-native { margin: auto; max-width: 600px; display: grid; gap: 14px; padding: 28px 30px; }
.deck-native h2 { margin: 0; font: 600 var(--fs-2xl)/1.2 var(--display); overflow-wrap: anywhere; }
.deck-native ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--muted); }
.deck-native .row { flex-wrap: wrap; }
.deck-native kbd { font: 600 .9em var(--mono); color: var(--fg); padding: 1px 7px; border: 1px solid var(--line-hover); border-radius: 6px; background: var(--panel-2); white-space: nowrap; }
/* Sipario: la presentazione è nell'app del PC, che passa davanti al palco. Prima si chiude il sipario sul nome di chi
   presenta; quando il palco torna davanti si riapre su «Grazie». Teli quinta con le pieghe (un gradiente ripetuto in
   larghezza), filo ambra dove si toccano, mantovana in alto e lo stesso fascio del palco. */
.deck-viewer .remote-screen:has(.deck-curtain) { position: relative; overflow: hidden; }
.deck-curtain { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: var(--bg-deep); }
.deck-curtain::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    conic-gradient(from 163deg at 50% -6%, transparent 0deg, color-mix(in srgb, var(--gold-pale) 0%, transparent) 3deg, color-mix(in srgb, var(--gold-pale) 13%, transparent) 12deg, color-mix(in srgb, var(--gold-pale) 16%, transparent) 17deg, color-mix(in srgb, var(--gold-pale) 13%, transparent) 22deg, color-mix(in srgb, var(--gold-pale) 0%, transparent) 31deg, transparent 34deg),
    radial-gradient(ellipse 30% 6% at 50% 84%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 72%); }
.curtain-side { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 1;
  background:
    radial-gradient(ellipse 90% 26% at 50% 100%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%),
    linear-gradient(90deg, rgba(0,0,0,.5), rgba(255,255,255,.04) 30%, rgba(0,0,0,.16) 55%, rgba(255,255,255,.025) 78%, rgba(0,0,0,.5)) 0 0 / max(48px, 6vw) 100%,
    linear-gradient(180deg, var(--panel-2), var(--panel) 55%, var(--bg)); }
.curtain-side.l { left: 0; box-shadow: inset -2px 0 0 var(--gold-line), inset -70px 0 70px -60px color-mix(in srgb, var(--gold) 40%, transparent); }
.curtain-side.r { right: 0; box-shadow: inset 2px 0 0 var(--gold-line), inset 70px 0 70px -60px color-mix(in srgb, var(--gold) 40%, transparent); }
.curtain-valance { position: absolute; top: 0; left: 0; right: 0; height: 7vh; z-index: 2; border-bottom: 2px solid var(--gold-line); box-shadow: 0 12px 30px rgba(0,0,0,.6);
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.05) 50%, rgba(0,0,0,.45)) 0 0 / max(28px, 3vw) 100%, linear-gradient(180deg, var(--panel), var(--panel-2)); }
.curtain-scene { position: relative; z-index: 3; display: grid; justify-items: center; gap: 12px; padding: 0 24px; max-width: min(1100px, 94vw); text-align: center; }
.curtain-scene .kicker { justify-self: center; }
.curtain-scene h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.curtain-scene h2 { font: 800 clamp(2rem, 6.5vh, 4.4rem)/1 var(--display); letter-spacing: -.035em; text-shadow: 0 4px 30px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.curtain-scene .next { margin: 0; overflow-wrap: anywhere; }
.curtain-scene .badge.huge .ph { width: min(24vh, 220px); height: min(24vh, 220px); font-size: 5rem; }
/* chiuso: il nome sta in alto sul sipario, i passi per la regia in basso, larghi e senza titolo (è già sul sipario) */
.deck-curtain[data-state="closed"] .curtain-scene { align-self: start; margin-top: max(10vh, 72px); }
.deck-viewer .deck-curtain ~ .deck-native { position: relative; z-index: 3; margin: auto auto 24px; max-width: min(920px, 94vw); padding: 18px 24px; gap: 10px; font-size: var(--fs-sm); }
.deck-curtain ~ .deck-native h2 { display: none; }
.deck-curtain ~ .deck-native ol { gap: 4px; }
/* aperto: «Grazie» sotto il fascio, dietro i teli che si aprono; i comandi della regia spariscono come gli altri */
.deck-curtain[data-state="open"] .curtain-scene { z-index: 0; }
.deck-viewer .curtain-cmds.deck-ui { bottom: 28px; z-index: 3; justify-content: center; flex-wrap: wrap; }
.deck-curtain[data-state="closed"] .curtain-side.l { animation: curtain-in-l 1.1s var(--ease) both; }
.deck-curtain[data-state="closed"] .curtain-side.r { animation: curtain-in-r 1.1s var(--ease) both; }
.deck-curtain[data-state="closed"] .curtain-scene { animation: curtain-scene .6s .8s var(--ease) both; }
.deck-curtain[data-state="open"] .curtain-side.l { animation: curtain-in-l 1.8s .4s var(--ease) reverse both; }
.deck-curtain[data-state="open"] .curtain-side.r { animation: curtain-in-r 1.8s .4s var(--ease) reverse both; }
.deck-curtain[data-state="open"]::before { animation: lampon 1.2s 1.2s var(--ease) both; }
.deck-curtain[data-state="open"] .curtain-scene { animation: curtain-scene .8s 1s var(--ease) both; }
@keyframes curtain-in-l { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes curtain-in-r { from { transform: translateX(100%); } to { transform: none; } }
@keyframes curtain-scene { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .deck-curtain .curtain-side, .deck-curtain .curtain-scene, .deck-curtain::before { animation: none; }
  .deck-curtain[data-state="open"] .curtain-side { display: none; }
}

/* dietro le quinte: la serata dal telefono */
.quinte { gap: 14px; }
.quinte h2 { margin: 0; }
.quinte-now { display: grid; justify-items: center; gap: 10px; text-align: center; }
.quinte-now .kicker { justify-self: center; }
.quinte-live { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--fg); font-size: var(--fs-md); }
.quinte-live .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
/* l'ordine, gestito anche dal telefono: la stessa riga del palco, «Rimescola» e chi arriva tardi */
.quinte-run { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.quinte-run .row { justify-content: center; }
.quinte-run details { justify-self: stretch; }
.quinte-late { flex-wrap: wrap; justify-content: center; margin-top: 8px; }
/* premi svelati dal telefono di chi conduce, sulla Sala: l'ultimo in cima, acceso, con un ingresso breve */
.reveal-list .award.fresh { border-color: var(--gold-line-strong); box-shadow: 0 0 40px color-mix(in srgb, var(--gold) 18%, transparent); animation: reveal-in .9s var(--ease) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal-list .award.fresh { animation: none; } }
.quinte-nav { max-width: 680px; width: 100%; margin: 0 auto; }

/* schede dei temi: due viste della stessa pagina, con le frecce da tastiera */
fieldset.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
fieldset.choice input[type="radio"] { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--gold); }
fieldset.choice legend { padding: 0; margin-bottom: 4px; font: 500 var(--fs-sm) var(--body); color: var(--muted); }
details.secret-results > summary { color: var(--gold-2); }

/* ---------- guida: "Teatro d'opera" ---------- */
.guide { --g-bg: var(--panel); --g-panel: var(--panel-2); --g-line: var(--line); --g-acc: var(--gold); --g-acc2: var(--gold-2); --g-fg: var(--fg); --g-muted: var(--muted); --g-wine: var(--gold-deep); --g-danger: var(--error);
  display: grid; gap: 18px; color: var(--g-fg); }
.guide > section, .g-panels > section { background: radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--gold) 6%, transparent), transparent 70%), var(--g-bg);
  border: 1px solid var(--g-line); border-radius: var(--radius); padding: 28px 34px; display: grid; gap: 16px; }
.guide h1, .guide h2, .guide h3 { color: var(--g-fg); }
.guide h1 { font-size: clamp(2.15rem, 7vw, 3.3rem); font-weight: 800; }
.guide h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.guide em { color: var(--gold); }
.guide p { color: var(--g-muted); }
.g-kicker, .guide p.g-kicker { margin: 0; font: 500 var(--fs-xs)/1.35 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--g-acc); }
.g-lead { font-size: var(--fs-lg); max-width: 46ch; }
.g-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
.g-seal { justify-self: center; width: min(190px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid var(--g-wine); box-shadow: 0 0 0 3px var(--g-acc), 0 0 0 12px color-mix(in srgb, var(--gold) 8%, transparent), 0 0 60px -10px var(--gold-glow), 0 20px 50px rgba(0,0,0,.5); }
.g-seal img { width: 100%; height: 100%; display: block; }
.g-cards, .g-modes, .g-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.g-card, .g-mode, .g-level { background: var(--g-panel); border: 1px solid var(--g-line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.g-tag { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g-acc); }
.g-note { border-top: 1px solid var(--g-line); padding-top: 12px; color: var(--g-fg) !important; }
.g-sub { margin-top: 6px; font-size: var(--fs-xl); }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.g-steps li { counter-increment: s; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; background: var(--g-panel); border: 1px solid var(--g-line); border-radius: 14px; padding: 12px 14px; }
.g-steps li::before { content: counter(s); grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: italic 400 var(--fs-2xl) var(--serif); color: var(--g-bg); background: linear-gradient(135deg, var(--g-acc2), var(--g-acc)); box-shadow: 0 0 14px -4px var(--gold-glow); }
.g-steps b { color: var(--g-fg); font: 700 var(--fs-lg) var(--display); }
.g-steps span { color: var(--g-muted); }
.g-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.g-award { display: grid; justify-items: center; text-align: center; gap: 6px; background: var(--g-panel); border: 1px solid var(--g-line); border-radius: 14px; padding: 16px 14px; }
.g-award svg { width: 130px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
.g-award h3 { font-size: var(--fs-lg); }
.g-cat { font: italic 400 var(--fs-lg)/1.3 var(--serif); color: var(--g-acc); }
.g-level.l2 { border-color: var(--g-acc); }
.g-level.l3 { background: var(--g-panel); border-color: var(--g-danger); }
.g-level.l3 .g-tag { color: var(--g-danger); }
.g-level h3 { font-size: var(--fs-lg); }
.g-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--g-muted), var(--g-acc) 50%, var(--g-danger)); }
.g-track-labels { display: flex; justify-content: space-between; font: 500 var(--fs-xs) var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--g-muted); }

/* ---------- visori a schermo intero, palco e telecomando ---------- */
/* Il contenuto occupa tutto lo schermo; i comandi galleggiano sopra e spariscono dopo 3 secondi, come sul palco. */
.deck-viewer { position: fixed; inset: 0; z-index: 1000; background: var(--bg-deep); display: flex; flex-direction: column; }
.deck-viewer.idle { cursor: none; }
.deck-viewer:focus { outline: none; }
.deck-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.deck-tools strong { min-width: 0; overflow-wrap: anywhere; }
.deck-viewer .deck-ui { position: absolute; left: 0; right: 0; z-index: 2; transition: opacity .25s var(--ease); }
.deck-viewer .deck-tools.deck-ui { top: 0; border: 0; padding: 12px 18px 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 55%, transparent); }
.deck-viewer .remote-host-controls.deck-ui { bottom: 0; padding: 26px 18px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent) 55%, transparent); }
.deck-viewer.idle .deck-ui { opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
/* sopra un iframe il mouse non arriva alla pagina: due strisce sui bordi risvegliano i comandi */
.deck-wake { position: absolute; left: 0; right: 0; top: 0; height: 28px; z-index: 1; }
.deck-wake.bottom { top: auto; bottom: 0; }
.winners-player .winners-player-tools.deck-ui { top: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 55%, transparent); }
.deck-viewer > iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: white; }
/* lo stato del telecomando, ridotto a un punto quando i comandi sono nascosti */
.deck-dot { position: absolute; top: 14px; right: 14px; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 60%, transparent); }
.deck-dot[data-state="ready"] { background: var(--ok); }
.deck-dot[data-state="lost"] { background: var(--error); }
/* microfono o fotocamera accesi per la presentazione: la spia ambra pulsa come ciò che è dal vivo, e resta anche a comandi nascosti */
.deck-live { position: absolute; top: 14px; right: 30px; z-index: 1; width: 8px; height: 8px; border-radius: 50%; color: var(--gold); background: currentColor; animation: onair 2s ease-in-out infinite; }
/* la fotocamera disegnata da Pitch sopra la presentazione HTML, nei riquadri che lei indica: la sala non entra mai nell'iframe */
.stage-cams { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
/* «Schermo nero» dal telefono: nero vero sopra slide e fotocamere, come il tasto B di un telecomando; i comandi della regia restano sopra */
.deck-black { position: absolute; inset: 0; z-index: 1; background: #000; }
.stage-cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; }
.stage-cam > video, .stage-cam > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
/* «Presento dal mio computer»: sulla TV lo schermo ricevuto intero, senza tagli; sul portatile l'anteprima di ciò che vede la sala */
.stage-stream { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen-preview { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.screen-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.screen-preview .pill { position: absolute; top: 10px; left: 10px; }
.screen-tips { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.remote-screen { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; background: var(--bg-deep); }
.deck-viewer .remote-screen { height: 100dvh; }
.remote-screen iframe { width: 100%; height: 100%; border: 0; }
.remote-pdf { max-width: 100%; max-height: 100%; object-fit: contain; }
/* il focus serve a tastiera e chiavetta, non si mostra davanti alla sala */
.remote-pdf:focus { outline: none; }
/* slide già pronte (ODP disegnato da Pitch, anteprime del Keynote), una alla volta */
.remote-slides { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.remote-slides:focus { outline: none; }
/* ODP: la slide tiene le misure del file (cm, pollici) e si scala intera; i colori sono quelli della presentazione, non del sito */
.odp-page { position: absolute; left: 50%; top: 50%; flex: none; overflow: hidden; transform-origin: center; font: 18pt/1.17 Arial, sans-serif; color: #000; text-align: left; }
.odp-shape { position: absolute; transform-origin: 0 0; }
.odp-fill, .odp-text, .odp-img, .odp-line { position: absolute; inset: 0; box-sizing: border-box; }
.odp-fill, .odp-img, .odp-line { width: 100%; height: 100%; }
.odp-img { object-fit: fill; }
.odp-line { overflow: visible; pointer-events: none; }
.odp-text { display: flex; flex-direction: column; overflow: visible; }
/* le regole generali del sito (paragrafi a 54ch, immagini al 100%) non valgono dentro la slide */
.odp-p { margin: 0; max-width: none; white-space: pre-wrap; overflow-wrap: break-word; }
.odp-page img { max-width: none; }
.odp-bullet { display: inline-block; text-indent: 0; }
.remote-host-controls { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 6px; }
.remote-host-controls [data-page] { font: 500 var(--fs-sm) var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
/* domanda dentro la pagina al posto del riquadro del browser */
.stage-ask { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg-deep) 80%, transparent); }
.stage-ask .card { max-width: 460px; }
.stage-ask .hint { font-weight: 400; }

/* Telecomando: niente menu (un tocco sbagliato chiuderebbe la sessione), tasti in basso nella zona del pollice. */
body[data-route="telecomando"] header.top { display: none; }
body[data-route="telecomando"] .wrap { padding-bottom: 0; }
.remote-phone { max-width: 680px; width: 100%; margin: 0 auto; min-height: calc(100dvh - 48px); display: flex; flex-direction: column; gap: 14px; }
.remote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.remote-head .kicker { margin: 0; }
.remote-phone h1 { margin: 0; }
/* invitato dal palco: dove presentare, due tasti grandi nella zona del pollice */
.remote-choice .btn { flex: 1 1 140px; min-height: 64px; font-size: var(--fs-lg); }
.remote-count { margin: 0; font: 600 var(--fs-3xl)/1 var(--mono); color: var(--gold-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent); }
.remote-more > summary { color: var(--muted); }
.remote-more .stack { margin-top: 12px; gap: 12px; }
.remote-buttons { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, var(--bg) 28%); }
.remote-buttons button { min-height: 130px; font-size: var(--fs-xl); border-radius: 22px; padding-inline: 12px; white-space: nowrap; }
.remote-buttons button.sent { box-shadow: 0 0 0 3px var(--gold-2), 0 0 40px -6px var(--gold-glow); }
/* Telecomando: un joypad da una mano (17 novembre 2026). Lo schermo incassato in alto, i tre tasti accessori come
   Start/Select, i due tasti tondi A/B in diagonale nella zona del pollice, ognuno seduto nella sua sede scavata nel corpo. */
.pad { gap: 16px; }
.pad .remote-head { justify-content: flex-start; }
.pad .remote-head h1 { font-size: clamp(1.35rem, 5.4vw, 1.6rem); }
.pad-screen { display: grid; align-content: start; gap: 6px; min-height: 128px; padding: 14px 16px 16px; border-radius: 18px; background: var(--bg-deep); border: 1px solid var(--line); box-shadow: inset 0 2px 6px -2px rgba(0,0,0,.6); }
.pad-where { margin: 0; display: flex; align-items: center; gap: 9px; font: 600 var(--fs-sm)/1.3 var(--body); color: var(--gold-2); }
.pad-led { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--muted); }
.pad-led[data-state="on"] { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pad-led[data-state="wait"] { color: var(--gold); background: var(--gold); animation: onair 2s ease-in-out infinite; }
.pad-led[data-state="lost"] { background: var(--error); }
.pad-count { margin: 0; font: 600 var(--fs-3xl)/1 var(--mono); color: var(--gold-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent); }
.pad-note { margin: 0; font-size: var(--fs-md); line-height: 1.45; color: var(--fg); }
/* tutti i comandi nella metà bassa, dove arriva il pollice: il vuoto resta fra lo schermo e i tasti */
.pad-keys { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pad-key { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 80px; padding: 10px 6px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); font: 600 var(--fs-sm)/1.2 var(--body); text-align: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .14s var(--ease), border-color .2s, background .2s, color .2s, box-shadow .2s; }
.pad-key .ico { width: 22px; height: 22px; margin: 0 0 2px; }
.pad-key small { min-height: 1.2em; font: 400 var(--fs-xs)/1.2 var(--body); color: var(--muted); }
.pad-key:hover:not(:disabled) { border-color: var(--gold-line-strong); color: var(--gold-2); background: var(--gold-soft); }
.pad-key:active:not(:disabled) { transform: scale(.96); }
.pad-key:disabled { cursor: not-allowed; }
.pad-key:disabled > .ico, .pad-key:disabled > span { opacity: .38; }
.pad-key[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold-line), 0 10px 26px -12px var(--gold-glow); }
.pad-key[aria-pressed="true"] small::before { content: "acceso"; }
.pad-face { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(204px, 30dvh, 260px); padding: 14px 4px calc(20px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, var(--bg) 22%); }
.pad-a, .pad-b { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 4px; padding: 0; font: 600 var(--fs-xl)/1 var(--body); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .14s var(--ease), box-shadow .2s, background .2s, color .2s; }
.pad-a .ico, .pad-b .ico { width: 30px; height: 30px; margin: 0; }
/* B: Indietro, più piccolo e più alto, a sinistra */
.pad-b { width: clamp(100px, min(31vw, 15dvh), 128px); justify-self: center; align-self: start; border: 1px solid var(--line); background: var(--panel-2); color: var(--fg); box-shadow: 0 0 0 7px var(--bg-deep), 0 0 0 8px var(--line); }
/* A: Avanti, il tasto grande ambra, più basso e a destra, sotto il pollice */
.pad-a { width: clamp(140px, min(45vw, 22dvh), 184px); justify-self: center; align-self: end; border: 0; background: var(--gold); color: var(--ink); box-shadow: 0 0 0 9px var(--bg-deep), 0 0 0 10px var(--line); }
.pad-a:active:not(:disabled), .pad-b:active:not(:disabled) { transform: scale(.95); }
.pad-a.sent { box-shadow: 0 0 0 9px var(--bg-deep), 0 0 0 12px var(--gold-2), 0 0 44px -4px var(--gold-glow); }
.pad-b.sent { box-shadow: 0 0 0 7px var(--bg-deep), 0 0 0 10px var(--gold-2), 0 0 36px -6px var(--gold-glow); }
.pad-key.sent { border-color: var(--gold-2); }
/* spenti: la luce si spegne, il tasto resta nella sua sede */
.pad-a:disabled, .pad-b:disabled { background: var(--panel-2); color: var(--muted); opacity: .6; cursor: not-allowed; }
.pad-a:focus-visible, .pad-b:focus-visible, .pad-key:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .pad-led[data-state="wait"] { animation: none; } .pad-a, .pad-b, .pad-key { transition: none; } }
.remote-office { width: 100%; height: 100%; min-height: 0; position: relative; }
.winners-player { position: fixed; inset: 0; z-index: 3000; background: var(--bg-deep); display: flex; flex-direction: column; }
.winners-player-tools { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: 12px 18px 26px; color: var(--muted); font-size: var(--fs-sm); }
.winners-player iframe { border: 0; width: 100%; flex: 1; min-height: 0; background: var(--bg-deep); }
.winners-player:fullscreen { width: 100vw; height: 100vh; }

/* ---------- premi correnti sulle foto ---------- */
.portrait { position: relative; display: inline-grid; place-items: center; vertical-align: middle; max-width: 100%; --winner-medal-size: 18px; }
.badge .portrait { width: 100%; }
.portrait > .ph > img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.winner-medals { position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; gap: 1px; z-index: 1; pointer-events: auto; }
.winner-medal { display: block; width: var(--winner-medal-size); height: var(--winner-medal-size); flex: none; border: 2px solid var(--gold); border-radius: 50%; overflow: hidden; background: var(--panel); box-shadow: 0 1px 3px #0009, 0 0 8px -2px var(--gold-glow); }
.winner-medal img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 50%; }
.badge.sm .portrait { --winner-medal-size: 13px; }
.badge.lg .portrait, .badge.xl .portrait { --winner-medal-size: 24px; }
.badge.huge .portrait { --winner-medal-size: 34px; }
.bar .portrait { width: 28px; height: 28px; --winner-medal-size: 9px; }
.bar .portrait > .ph { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--wine); border-radius: 50%; overflow: hidden; background: var(--panel); font-size: var(--fs-xs); }
.bar .winner-medal { border-width: 1px; }
.winner-portrait-link { display: inline-grid; text-decoration: none; }

/* ---------- dita: bersagli da 44px dove si tocca (telefono durante la serata) ---------- */
@media (pointer: coarse) {
  .btn, .btn.sm, button.vote, button.theme, nav a, details > summary, a.kicker { min-height: 44px; }
  .btn.sm { padding-block: 9px; }
  nav a { display: inline-flex; align-items: center; }
  details > summary { padding-block: 10px; }
  a.kicker { padding-block: 12px; }
  .brand, .trophy { min-height: 44px; display: inline-flex; align-items: center; }
  .me-link, .bell-link { width: 44px; height: 44px; }
  .password-field button:not(.pw-eye) { min-width: 88px; }
}

/* ---------- intestazione su due righe: marchio e comandi sopra, menu centrato sotto ----------
   fino a 759px, dove marchio, menu con Regia e comandi non stanno su una riga sola */
@media (max-width: 759px) {
  header.top { padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px; gap: 8px; }
  .brand { padding-left: 16px; font-size: 1.15rem; }
  .brand i { font-size: 1.24rem; }
  .logo { width: 38px; height: 38px; }
  .top-actions { order: 2; margin-left: auto; margin-right: 16px; gap: 8px; }
  nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 7px 13px; }
  /* voci centrate nella loro riga; se un giorno non ci stessero, il menu scorre senza tagliare la prima */
  nav::before, nav::after { content: ""; margin: auto; }
}

/* ---------- telefono ---------- */
@media (max-width: 600px) {
  .wrap { padding: 24px 16px calc(64px + env(safe-area-inset-bottom, 0px)); gap: 22px; }
  .card { padding: 18px 16px; }
  .guide > section { padding: 22px 20px; }
  .g-hero { grid-template-columns: 1fr; }
  .g-seal { width: 140px; grid-row: 1; }
  .deck-tools [data-remote-status] { display: none; }
  .remote-buttons button { min-height: 110px; }
  .remote-phone { min-height: calc(100dvh - 24px); }
  .card.reminder { grid-template-columns: 1fr; }
  .vote-stage, .envelope { padding: 18px 14px; }
  .vote-row { gap: 10px; padding-right: 42px; }
  .vote-row .portrait, .vote-row .portrait > .ph { width: 42px; height: 42px; }
  .vote-thumb { width: 64px; }
  .vote-cta { grid-template-columns: 1fr; }
  .vote-cta .btn, .envelope > .btn { width: 100%; }
  .vote-steps .vs-l { font-size: var(--fs-xs); }
  .reminder .btn { justify-self: start; }
  .ev-head { gap: 14px; align-items: flex-start; }
  .ev-title h1, .ev-title h2 { order: -1; }
  /* con le pillole: titolo e gruppo accanto al biglietto, centrati sulla sua altezza; le pillole sotto, su tutta la larghezza
     della scheda e allineate al bordo sinistro del biglietto (in colonna andrebbero una per riga) */
  .ev-head:has(> .ev-title > .pills) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; }
  .ev-head:has(> .ev-title > .pills) > .stub { grid-row: 1 / span 2; }
  .ev-head:has(> .ev-title > .pills) > .ev-title { display: contents; }
  .ev-head:has(> .ev-title > .pills) > .ev-title > :is(h1, h2) { grid-column: 2; grid-row: 1; align-self: end; }
  .ev-head:has(> .ev-title > .pills) > .ev-title > .ev-group-tag { grid-column: 2; grid-row: 2; align-self: start; }
  /* nello storico di un gruppo il gruppo non si ripete: il titolo da solo, centrato sul tagliando */
  .ev-head:has(> .ev-title > .pills):not(:has(.ev-group-tag)) > .ev-title > :is(h1, h2) { grid-row: 1 / span 2; align-self: center; }
  .ev-head:has(> .ev-title > .pills) > .ev-title > .pills { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
  .stub { width: 70px; min-height: 86px; }
  .stub b { font-size: 2rem; }
  .ev-head.big .stub { width: 78px; min-height: 96px; }
  .ev-head.big .stub b { font-size: 2.3rem; }
  .cd-u { min-width: 0; flex: 1; padding: 9px 4px 6px; }
  .cd-u b { font-size: var(--fs-2xl); }
}
@media (max-width: 520px) {
  .file, .urow { grid-template-columns: auto minmax(0, 1fr); }
  .file > :last-child, .urow > :last-child { grid-column: 1 / -1; }
  .file.notif > :last-child { grid-column: auto; }
  a.evrow { grid-template-columns: minmax(0, 1fr) auto; }
  a.evrow > :last-child { grid-column: auto; }
  .file.with-thumb { grid-template-columns: 90px minmax(0, 1fr); }
  .thumb { width: 90px; }
  .podium { column-gap: 6px; }
  .podium .step { padding: 14px 4px 0; }
  .podium .badge .ph { border-width: 3px; }
  .rank { grid-template-columns: 26px auto minmax(0, 1fr); grid-template-areas: "pos ph name" "pos ph tot" "pos ph aw"; }
  .rank .rt { white-space: normal; }
}

/* albo d'oro: lampo a turno per posto (oro, argento, bronzo), uno ogni 5 secondi, ciclo di 15. Colore e tempo seguono il
   posto in classifica (data-pos), non la colonna: chi è a pari merito luccica uguale e nello stesso istante. */
.podium .step::before { content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 42%, var(--glint) 47%, #fff 50%, var(--glint) 53%, transparent 58%);
  transform: translate(-70%, -40%); animation: medal-glint 15s var(--ease) infinite; }
.podium [data-pos="1"] { --glint: rgba(255,217,120,.7); }
.podium [data-pos="2"] { --glint: rgba(214,224,238,.6); }
.podium [data-pos="3"] { --glint: rgba(230,156,96,.6); }
.podium [data-pos="2"]::before { animation-delay: 5s; }
.podium [data-pos="3"]::before { animation-delay: 10s; }
@keyframes medal-glint {
  0% { opacity: 0; transform: translate(-70%, -40%); }
  4% { opacity: 1; }
  23% { opacity: 1; transform: translate(70%, 40%); }
  24%, 100% { opacity: 0; transform: translate(70%, 40%); }
}
/* selettore del gruppo: anello di luce che gira lentamente attorno al logo */
.gsel { position: relative; }
.gsel::after { content: ""; position: absolute; left: 2px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, var(--gold), transparent 35%, var(--gold-2) 50%, transparent 70%, var(--gold));
  -webkit-mask: radial-gradient(circle, transparent 15.5px, #000 16.5px); mask: radial-gradient(circle, transparent 15.5px, #000 16.5px);
  animation: ring-spin 8s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
/* pulsante Partecipa con posti liberi: un riflesso ogni 10 secondi */
.btn.sheen { position: relative; overflow: hidden; }
.btn.sheen::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.1) 46%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.1) 54%, transparent 58%);
  transform: translate(-70%, -40%); animation: stub-glint 10s var(--ease) infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* senza il ritardo della transizione l'attenuazione lampeggerebbe a ogni cambio di pagina */
  #app[aria-busy="true"] { opacity: 1; }
  .stub { transform: none; }
  .stub::after { animation: none !important; display: none; }
  h1 em { animation: none !important; }
  .podium .step::before, .gsel::after, .btn.sheen::after { animation: none !important; display: none; }
}

/* cinque voci e il gettone delle Notifiche devono stare nei 390px senza scorrere */
@media (max-width: 420px) { nav a { padding: 7px 9px; } }
/* telefoni stretti (360px): con Regia le cinque voci stanno ancora in riga senza scorrere */
@media (max-width: 374px) { nav a { padding: 7px 7px; } }
/* sul telefono la mappa sta sopra il nome del luogo, larga quanto la scheda */

/* serate in zona */
.zona-range { display: grid; gap: 8px; }
.zona-range input[type="range"] { width: 100%; accent-color: var(--gold); }

/* chicca: l'accento ambra del titolo principale attraversato da un riflesso ogni 10 secondi */
h1 em { background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 38%, var(--gold-pale) 47%, var(--gold) 56%, var(--gold) 100%) no-repeat;
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: title-shine 10s ease-in-out infinite; }
@keyframes title-shine { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }

/* data e ora: il campo nativo non deve uscire dalla colonna sul telefono */
.grid2 > *, label:has(> input[type="datetime-local"]) { min-width: 0; }
input[type="datetime-local"] { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }

/* partecipanti minimi e massimi: un contatore − / + invece di due campi numerici */
.count-grid { align-items: start; }
.count-field { display: grid; gap: 8px; min-width: 0; }
.count-label { font: 600 var(--fs-sm) var(--body); color: var(--fg); }
.count-ctl { display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); }
.count-field:focus-within .count-ctl { border-color: var(--gold-line-strong); }
.count-btn { width: 52px; height: 48px; border: 0; border-radius: 999px; background: transparent; color: var(--gold-2); font: 600 1.5rem/1 var(--body); cursor: pointer; }
.count-btn:hover:not(:disabled) { background: var(--gold-soft); }
.count-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.count-val { min-width: 6.5em; text-align: center; font: 700 var(--fs-md) var(--display); font-variant-numeric: tabular-nums; color: var(--fg); }
.count-clear { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font: var(--fs-sm) var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.count-clear[hidden] { display: none; }

/* ingresso alle serate pubbliche dalla home */

/* ingresso alle serate pubbliche da Serate */
.zona-entry { margin: 14px 0 6px; }
.zona-cta { justify-self: start; min-height: 48px; border-color: var(--gold-line-strong); color: var(--gold-2); }
@media (max-width: 420px) { .zona-cta { width: 100%; } }

/* temi disponibili per la serata: in rosso quando non bastano */
.pool-count { margin: 0; font: 600 var(--fs-sm) var(--body); color: var(--gold-2); }
.pool-count.short { color: var(--error); }

/* ruota dei temi: estrazione casuale alla creazione della serata */
.reel-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(4px); overflow-y: auto; }
.reel-box { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; width: min(960px, 100%); }
.reel-box h2 { margin: 0; }
.reel-cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.reel { display: grid; gap: 8px; justify-items: center; width: min(240px, 100%); }
.reel-label { font: 500 var(--fs-xs) var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.reel-window { position: relative; width: 100%; height: 168px; overflow: hidden; border: 1px solid var(--gold-line); border-radius: 16px; background: var(--panel);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.reel-window::after { content: ""; position: absolute; inset: 56px 0 auto; height: 56px; border-block: 1px solid var(--gold-line-strong); background: var(--gold-soft); pointer-events: none; }
.reel-strip { will-change: transform; }
.reel-row { height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 14px; font: 600 var(--fs-md)/1.2 var(--body); color: var(--fg); text-align: center; }
.reel-row > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.reel-status { margin: 0; max-width: 60ch; color: var(--muted); }
.reel-actions { justify-content: center; }
.reel-cancel { position: absolute; top: -6px; right: 0; }
@media (max-width: 520px) { .reel { width: 100%; } .reel-cancel { position: static; } }

/* durata del voto dei temi: tre scelte in riga */
.ev-sub { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.ev-sub > legend { padding: 0; margin-bottom: 6px; font: 600 var(--fs-sm) var(--body); color: var(--fg); }
.hours-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hours-pick .mode-opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }

/* versione dell'app, in fondo alla Guida */
.app-version { margin: 8px 0 0; text-align: center; font: 500 var(--fs-xs) var(--mono); letter-spacing: .08em; color: var(--muted); }

/* nuova versione pronta: avviso in alto, la ricarica la decide chi usa l'app */
.update-bar { position: fixed; z-index: 60; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--panel); box-shadow: 0 16px 36px -16px rgba(0,0,0,.8); font: 600 var(--fs-sm) var(--body); color: var(--fg); }

/* bio del profilo: testo semplice, a capo rispettati */
.bio { margin: 4px 0 0; max-width: 48ch; white-space: pre-line; overflow-wrap: anywhere; color: var(--fg); }

/* la sala: la serata vista da chi partecipa, dal telefono. Un riflettore su chi presenta, la fila sotto. */
.sala { display: grid; gap: 16px; max-width: 620px; margin: 0 auto; }
.sala-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sala-head .kicker { margin: 0; text-align: right; }
.sala-stage { position: relative; display: grid; justify-items: center; gap: 10px; padding: 30px 18px 34px; text-align: center; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse 70% 40% at 50% 100%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%), var(--panel); }
.sala-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(from 160deg at 50% -10%, transparent 0deg, color-mix(in srgb, var(--gold-2) 14%, transparent) 14deg, color-mix(in srgb, var(--gold-2) 20%, transparent) 20deg, color-mix(in srgb, var(--gold-2) 14%, transparent) 26deg, transparent 40deg); }
.sala-stage.dark::before { opacity: .25; }
.sala-stage > * { position: relative; }
.sala-stage h1 { margin: 0; }
.sala-stage .badge.xl .ph { width: min(150px, 42vw); height: min(150px, 42vw); }
.sala-stage .next { margin: 0; font: italic 400 var(--fs-xl) var(--serif); color: var(--fg-2, var(--muted)); }
.sala-stage .next strong { font: 700 var(--fs-md) var(--display); font-style: normal; color: var(--fg); }
.sala-wait { margin: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.sala-wait .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); animation: sala-pulse 1.6s ease-in-out infinite; }
.sala-stage.dark .sala-wait .dot { background: var(--muted); box-shadow: none; }
@keyframes sala-pulse { 50% { opacity: .35; } }
.sala-you h2 { margin: 0; }
.sala-upload > summary { list-style: none; cursor: pointer; }
.sala-upload > summary::-webkit-details-marker { display: none; }
.sala-upload > summary::before { display: none; }
.sala-upload[open] > summary { margin-bottom: 8px; }
.sala-order { justify-content: flex-start; }
.sala-order .run-item.later { opacity: .9; }
.sala-order .run-item.you { border-color: var(--gold-line-strong); }
.sala-order .run-item.you .run-name { color: var(--gold-2); }
.sala-done { text-align: center; }
@media (prefers-reduced-motion: reduce) { .sala-wait .dot { animation: none; } }

/* invito alla sala: un biglietto acceso largo quanto la scheda, con un lampo che passa ogni tanto */
.sala-invite { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--gold); box-shadow: none; }
.sala-invite::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 48%, transparent 60%); transform: translateX(-120%); animation: sala-glint 6s ease-in-out infinite; }
@keyframes sala-glint { 0%, 70% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
.sala-invite:hover { filter: brightness(1.05); }
.sala-invite:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sala-invite-mask { font-size: 1.8rem; line-height: 1; }
.sala-invite-text { display: grid; gap: 2px; min-width: 0; }
.sala-invite-text strong { font: 800 var(--fs-md) var(--display); }
.sala-invite-text span { font: 500 var(--fs-sm) var(--body); opacity: .85; }
.sala-invite-go { font: 700 var(--fs-sm) var(--body); white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--gold-2); }
@media (max-width: 420px) { .sala-invite { grid-template-columns: auto minmax(0, 1fr); } .sala-invite-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .sala-invite::after { animation: none; display: none; } }
/* presenta dal tuo computer: i passi numerati */
.screen-step-head { margin: 14px 0 6px; font: 700 var(--fs-sm) var(--body); color: var(--gold-2); }
.screen-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--fg); line-height: 1.5; }
.screen-steps strong { color: var(--fg); }

/* icone: tratto unico sul colore del testo; accanto alla parola, con un respiro fisso */
.ico { width: 1.05em; height: 1.05em; flex: none; vertical-align: -.17em; margin-right: .38em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .f { fill: currentColor; stroke: none; }
.btn .ico, .go-ico .ico, .sala-invite-mask .ico, .vote .ico { margin-right: 0; }
.go-ico .ico { width: 1.4em; height: 1.4em; }
.sala-invite-mask .ico { width: 1.9rem; height: 1.9rem; stroke-width: 1.6; }

/* centro notifiche: da fare in righe con una sola azione, ricevute divise per giorno. Superfici a gradini di tono, niente righe. */
.notif-page { display: grid; gap: 20px; min-width: 0; }
.notif-head h1 { margin: 0; }
.notif-sum { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-md); }
.notif-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.nf-chip { flex: none; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--panel); color: var(--fg); font: 600 var(--fs-sm) var(--body); cursor: pointer; }
.nf-chip:hover { background: var(--panel-2); }
.nf-chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.nf-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.notif-todo, .notif-inbox { display: grid; gap: 12px; }
.todo-list, .inbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--panel); }
.todo-item.first { background: var(--panel-2); }
.todo-ico, .inbox-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--gold-2); }
.todo-ico .ico, .inbox-ico .ico { width: 20px; height: 20px; margin: 0; }
.todo-item.first .todo-ico { background: var(--gold); color: var(--ink); }
.todo-text { display: grid; gap: 4px; min-width: 0; }
.todo-text p { margin: 0; font-size: var(--fs-md); line-height: 1.45; color: var(--fg); }
.todo-meta, .inbox-meta { font-size: var(--fs-sm); color: var(--muted); }
.notif-inbox h3 { margin: 16px 0 6px; font: 600 var(--fs-sm) var(--body); color: var(--muted); }
.inbox-day:first-of-type h3 { margin-top: 4px; }
.inbox-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 10px; gap: 12px; align-items: start; padding: 12px; border-radius: 16px; color: var(--fg); text-decoration: none; transition: background .15s; }
.inbox-row .inbox-ico { width: 40px; height: 40px; color: var(--muted); }
.inbox-row.unread { background: var(--panel); }
.inbox-row.unread .inbox-ico { color: var(--gold-2); }
.inbox-row:hover { background: var(--panel-2); }
.inbox-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.inbox-main { display: grid; gap: 3px; min-width: 0; }
.inbox-main strong { font-weight: 650; overflow-wrap: anywhere; }
.inbox-body { color: var(--fg); opacity: .82; line-height: 1.45; overflow-wrap: anywhere; }
.inbox-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--gold); }
.notif-empty { margin: 0; padding: 20px; border-radius: 18px; background: var(--panel); color: var(--fg); }
/* Da fare / Ricevute come slider (v0.0.160): binario quinta con il cursore oro di Prossime / In zona; su ogni voce un
   contatore (oro pieno quando c'è qualcosa di nuovo, inchiostro su oro sulla voce scelta). */
.nt-tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 440px); padding: 4px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.nt-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--gold); transition: transform .34s var(--ease); }
.nt-tabs[data-on="inbox"] .nt-thumb { transform: translateX(100%); }
.nt-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 600 var(--fs-sm) var(--body); cursor: pointer; transition: color .34s var(--ease); }
.nt-tab .ico { width: 16px; height: 16px; margin: 0; }
.nt-tab:hover:not([aria-selected="true"]) { color: var(--fg); }
.nt-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.nt-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nt-count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--panel-2); color: var(--fg); font: 700 var(--fs-2xs)/1 var(--mono); }
.nt-count.fresh { background: var(--gold); color: var(--ink); }
.nt-tab[aria-selected="true"] .nt-count { background: var(--ink); color: var(--gold-2); }
.nt-panels > [role="tabpanel"] { display: grid; gap: 12px; border-radius: 18px; animation: rise .25s var(--ease); }
.nt-panels > [role="tabpanel"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.notif-empty:has(> .ico) { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.notif-empty > .ico { width: 44px; height: 44px; margin: 0; padding: 11px; border-radius: 50%; background: var(--panel-2); color: var(--gold-2); }
.notif-empty > p { margin: 0; line-height: 1.5; }
.notif-empty.filtered { color: var(--muted); }
.inbox-n { margin-left: 6px; color: var(--muted); font: 600 var(--fs-2xs) var(--mono); }
.inbox-day.older > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; }
.inbox-day.older > summary::-webkit-details-marker { display: none; }
.inbox-day.older > summary::after { content: ""; width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.inbox-day.older[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.inbox-day.older > summary h3 { margin: 0; }
.push-card { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .nt-thumb, .nt-tab, .nt-panels > [role="tabpanel"] { transition: none; animation: none; } }
@media (max-width: 560px) {
  .todo-item { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .todo-item > .btn, .todo-item > .row { grid-column: 2; justify-self: start; }
  .todo-ico { width: 40px; height: 40px; }
}

/* achievement e punti slide: medaglia del metallo del livello, barre piatte, achievement non raggiunti spenti */
.ach { gap: 20px; }
.ach-rank { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; }
.ach-rank h2 { margin: 0; font-size: clamp(1.3rem, 4.2vw, 1.7rem); }
.ach-ps { margin: 4px 0 8px; color: var(--fg); }
.ach-ps b { font-size: 1.25em; }
.ach-medal { width: 64px; height: 75px; }
.ach-medal .rib { fill: var(--panel-2); }
.ach-medal .disc { fill: var(--metal); }
.ach-medal .ring { fill: none; stroke: rgba(0,0,0,.18); stroke-width: 2; }
.ach-medal .star { fill: rgba(0,0,0,.22); }
.tier-bronzo { --metal: #C9875A; }
.tier-argento { --metal: #C9D3E0; }
.tier-oro { --metal: var(--gold); }
.tier-platino { --metal: #A9E4EE; }
.ach-bar { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.ach-bar i { display: block; height: 100%; border-radius: inherit; background: var(--metal, var(--gold)); }
.ach-bar.sm { height: 6px; }
.ach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ach-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 16px; background: var(--panel-2); }
.ach-item .ach-bar.sm i { background: var(--gold); }
.ach-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--gold-2); }
.ach-ico .ico { width: 20px; height: 20px; margin: 0; }
.ach-item.on .ach-ico { background: var(--gold); color: var(--ink); }
.ach-item.off { opacity: .6; }
.ach-main { display: grid; gap: 5px; min-width: 0; }
.ach-main strong { font-weight: 650; }
.ach-roman { color: var(--gold-2); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em; }
.ach-desc { color: var(--fg); opacity: .85; font-size: var(--fs-sm); line-height: 1.4; }
.ach-meta { color: var(--muted); font-size: var(--fs-sm); }

.ach-toggle > summary { list-style: none; cursor: pointer; border-radius: 16px; }
.ach-toggle > summary::-webkit-details-marker { display: none; }
.ach-toggle > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.ach-toggle .ach-rank { grid-template-columns: 64px minmax(0, 1fr) 20px; }
.ach-caret { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease-out; }
.ach-toggle[open] .ach-caret { transform: rotate(-135deg); }
.ach-toggle[open] .ach-list { margin-top: 20px; }
.ach-range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.badge .ph.tier-bronzo { border-color: #C9875A; }
.badge .ph.tier-argento { border-color: #C9D3E0; }
.badge .ph.tier-oro { border-color: var(--gold); }
.badge .ph.tier-platino { border-color: #A9E4EE; }
.ach-toggle > summary::marker { content: ""; }
.ach-item .ach-bar { background: var(--panel); }

.ach-toggle > summary { display: block; }
.ach-toggle > summary::before { display: none; }
.ach-ps-def { color: var(--muted); }

.ach-bar.tall { position: relative; height: 18px; }
.ach-item .ach-bar.tall i { background: var(--gold); }
.ach-now { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; left: calc(var(--w) + 6px); font-size: 12px; font-weight: 700; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.ach-now.in { left: auto; right: calc(100% - var(--w) + 6px); color: var(--ink); }
.ach-range { grid-template-columns: minmax(0, 1fr) auto; }
/* platino: il ritratto e il box del livello luccicano come i biglietti d'oro, una passata di luce ogni 10 secondi */
.badge .ph.tier-platino { position: relative; box-shadow: 0 0 0 1px rgba(169,228,238,.85), 0 6px 14px -6px #000; }
.badge .ph.tier-platino::after, .ach-rank.tier-platino::after { content: ""; position: absolute; inset: -20% -60%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(169,228,238,.15) 46%, rgba(255,255,255,.85) 50%, rgba(169,228,238,.15) 54%, transparent 58%);
  transform: translate(-70%, -40%); animation: stub-glint 10s var(--ease) infinite; }
.ach-rank.tier-platino { position: relative; overflow: hidden; border-radius: 16px; }

/* marchio Speetch: S oro lucida col riflesso dei titoli, le due «e» ribaltate a specchio, il resto nel carattere del marchio */
.wm { height: 2.1rem; width: auto; overflow: visible; display: block; }
.wm text, .wm-s-clip { font: 800 64px var(--display); }
.wm-s { fill: url(#wmGold); }
.wm-s-sweep { fill: color-mix(in srgb, var(--gold-pale) 75%, transparent); transform: skewX(-20deg); animation: wm-sweep 10s ease-in-out infinite; }
@keyframes wm-sweep { 0% { transform: skewX(-20deg) translateX(0); } 30%, 100% { transform: skewX(-20deg) translateX(90px); } }
.wm-rest text { fill: var(--fg); }
@media (max-width: 720px) { .wm { height: 1.8rem; } }
/* pari merito: nello storico le foto dei vincitori si sovrappongono un po', nei risultati i badge stanno affiancati */
.wfaces { display: flex; align-items: center; }
.wrow.tie { grid-template-columns: auto minmax(0, 1fr); }
.wrow.tie .wfaces .winner-portrait-link + .winner-portrait-link { margin-left: -14px; }
.award .win.tie { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }

/* partecipante che admin e maestri possono togliere dalla serata, prima del palco */
.cast-rm { display: grid; justify-items: center; gap: 6px; }
/* estrazione dell'ordine di uscita: facce al posto dei titoli, righe più alte, colonne strette */
.order-reel .reel { width: 132px; }
.order-reel .reel-window { height: calc(92px * 3); }
.order-reel .reel-window::after { inset: 92px 0 auto; height: 92px; }
.order-reel .reel-row { height: 92px; flex-direction: column; gap: 4px; padding: 0 8px; font-size: var(--fs-sm); }
.order-reel .reel-row > span { -webkit-line-clamp: 1; max-width: 100%; }
.order-reel .portrait .ph { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid var(--gold-line-strong); background: var(--panel-2); font: 800 var(--fs-lg) var(--display); color: var(--gold); }
.order-reel .portrait .ph img { width: 100%; height: 100%; object-fit: cover; }
.order-reel .winner-medals { display: none; }
@media (max-width: 720px) { .order-reel .reel { width: 104px; } }


/* =====================================================================================================
   Speetch · nuova grafica (v0.0.141, dai mockup ispirati a DICE): notte da palco, blu e oro dalla v0.0.145.
   Titoli enormi in maiuscolo condensato (Anton), testo in Inter, pulsanti a pillola, un solo accento:
   l'oro della S, per azioni e premi. Dalla v0.0.143 vale anche sul palco.
   ===================================================================================================== */
:root {
  --poster: "Anton", Impact, "Arial Narrow", sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 24px;
}
/* sfondo blu pulito: niente fasci di luce né insegna di lampadine. Sul palco restano due occhi di bue dall'alto,
   in luce calda (bianca e oro) invece che blu */
body:not(.on-stage)::before { display: none; }
body.on-stage::before {
  background:
    conic-gradient(from var(--beam-a) at 14% -12%, transparent 0deg, color-mix(in srgb, var(--gold-pale) 0%, transparent) 4deg, color-mix(in srgb, var(--gold-pale) 10%, transparent) 13deg, color-mix(in srgb, var(--gold-pale) 3%, transparent) 22deg, transparent 28deg),
    conic-gradient(from var(--beam-b) at 88% -12%, transparent 0deg, color-mix(in srgb, var(--gold) 0%, transparent) 3deg, color-mix(in srgb, var(--gold) 9%, transparent) 10deg, color-mix(in srgb, var(--gold) 2%, transparent) 18deg, transparent 22deg); }
header.top { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: var(--line); }
header.top::after { display: none; }
/* titoli da manifesto */
body h1, body h2 { font-family: var(--poster); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
body h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
body h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
body h3 { font-family: var(--body); font-weight: 700; letter-spacing: -.01em; }
body h1 em, body h2 em { font-family: inherit; font-style: normal; font-weight: inherit; text-shadow: none; }
/* pulsanti: pillole; quelli pieni in maiuscolo */
.btn { font-family: var(--body); }
.btn:not(.ghost):not(.danger) { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.btn:not(.sm) { min-height: 48px; padding-inline: 24px; }
.btn.ghost { background: transparent; border-color: var(--line-hover); }
.btn.ghost:hover:not(:disabled) { border-color: var(--fg); color: var(--fg); background: rgba(255,255,255,.04); }
/* schede piatte con bordo sottile */
.card { border: 1px solid var(--line); }
.card.hot { border-color: var(--gold-line); }

/* intestazione: menu a sinistra, la scritta Speetch al centro, notifiche e profilo a destra */
.wm { display: inline-flex; align-items: baseline; font: 400 2.5rem/1 var(--poster); letter-spacing: .01em; color: var(--fg); }
.wm-m { display: inline-block; transform: scaleX(-1); }
.wm-s { background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 38%, var(--gold-pale) 47%, var(--gold) 56%, var(--gold) 100%) no-repeat;
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: title-shine 10s ease-in-out infinite; }
.brand { padding: 0; gap: 0; }
.brand:hover .wm { color: var(--fg); }
nav a.on { color: var(--ink); background: var(--gold); font-weight: 700; }
.me-link { border-color: var(--line-hover); box-shadow: none; }
@media (min-width: 760px) {
  header.top { padding-inline: 4%; }
  header.top > nav { grid-column: 1; grid-row: 1; justify-self: start; }
  header.top > .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  header.top > .top-actions { grid-column: 3; grid-row: 1; }
}
/* telefono: scritta al centro in alto, profilo a destra, menu in una barra fissa in basso */
@media (max-width: 759px) {
  /* niente backdrop-filter: farebbe da riferimento al menu fisso, che finirebbe in cima invece che in fondo allo schermo */
  header.top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  header.top > .brand { grid-column: 2; justify-self: center; padding: 0; }
  header.top > .top-actions { grid-column: 3; justify-self: end; margin: 0; }
  .wm { font-size: 2.1rem; }
  header.top > nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    gap: 4px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: none; mask-image: none; overflow: visible; }
  header.top > nav::before, header.top > nav::after { content: none; }
  header.top > nav a { display: grid; place-items: center; min-height: 48px; padding: 6px 4px; font-size: var(--fs-sm); text-align: center; }
  .wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
/* gli accenti in corsivo con grazie della vecchia grafica (temi, numeri romani, podio, conteggi) diventano Anton:
   fuori dal palco «--serif» punta al carattere dei titoli e il corsivo finto è spento (Anton non ha corsivo) */
body { --serif: var(--poster); font-synthesis: none; }
body .cd-done, body .theme, body .theme-info strong, body .trow-toggle .ttl { letter-spacing: .01em; }
body .cd-done { text-shadow: none; text-transform: uppercase; }
/* avvisi e barra del turno sopra il menu in basso, quando c'è */
.toast { background: color-mix(in srgb, var(--panel-2) 97%, transparent); border-color: var(--line); }
@media (max-width: 759px) {
  body:has(#nav:not([hidden])) .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

/* schede delle serate, come nei mockup: data in un blocco oro piatto, etichette e temi a pillola, titolo da manifesto */
body .stub { transform: none; border-radius: 16px; box-shadow: none; padding: 10px 8px; }
body .stub b { font: 400 2.5rem/1 var(--poster); letter-spacing: 0; }
body .stub-wd, body .stub-mo, body .stub-time { font-family: var(--body); font-weight: 700; letter-spacing: .1em; }
body .stub.used { transform: none; background: var(--panel-2); }
body .stub.mini { transform: none; }
body .ev-head h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
/* stato della serata: pillola chiara piena, come «Iscrizioni aperte» nei mockup; il resto a contorno grigio */
.pill { font: 600 var(--fs-xs)/1.4 var(--body); padding: 5px 12px; border-color: var(--line-hover); color: var(--fg); background: transparent; }
.pill.aperta { color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.pill.aperta::before { background: currentColor; }
.pill.votazione, .pill.scena { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.pill.kind { color: var(--azure-pale); border-color: var(--line); background: var(--panel-2); }
/* temi: pillole a contorno nel carattere del testo */
body .theme { font: 500 var(--fs-md)/1.3 var(--body); color: var(--fg); background: transparent; border-color: var(--line-hover); padding: 9px 16px; }
body .themes.compact .theme { font-size: var(--fs-sm); padding: 6px 12px; }
/* etichette piccole: maiuscolo grigio spaziato, come nei mockup; i link di ritorno («← Serate») restano oro */
body .kicker:not(a) { font: 700 var(--fs-xs)/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body a.kicker { font-weight: 600; }
/* campi dei moduli: più alti e arrotondati, sfondo dei pannelli */
body input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), body select, body textarea {
  border-radius: 14px; border-color: var(--line-hover); background: var(--panel); min-height: 48px; }
body label { font-weight: 600; }
/* numeri grandi (statistiche del profilo) nel carattere dei titoli */
body .stat b { font-family: var(--poster); font-weight: 400; letter-spacing: .01em; }
/* accesso: niente virgola gigante sullo sfondo, solo testo come nel mockup */
body:is([data-route="login"], [data-route="registrati"], [data-route="recupero"]) .wrap::before { content: none; }
/* palco: le frasi lunghe (sottotitoli, «poi tocca a…») restano leggibili in Inter, non nel carattere dei titoli */
body .next, body .sala-stage .next { font: 400 var(--fs-xl)/1.4 var(--body); color: var(--muted); }
/* chi è sul palco: nome da manifesto, come i titoli */
.badge.huge .nm { font-family: var(--poster); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; }

/* home come il mockup del telefono: pillole Prossime / In zona, schede minimal, serate precedenti in righe compatte */
.home-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.home-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-hover);
  color: var(--fg); text-decoration: none; font: 600 var(--fs-md) var(--body); }
.home-tab .ico { width: 16px; height: 16px; margin: 0; }
.home-tab:hover:not(.on) { border-color: var(--fg); }
.home-tab.on { background: var(--panel-2); color: var(--fg); border-color: var(--line-hover); font-weight: 700; }
.home-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.home-ev { gap: 16px; }
.home-ev .ev-title { display: grid; gap: 6px; min-width: 0; }
.ev-details { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.home-past { gap: 12px; margin-top: 8px; }
.past-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.past-row:hover { border-color: var(--line-hover); }
.past-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.past-text { display: grid; gap: 3px; min-width: 0; }
.past-text strong { font-size: var(--fs-lg); font-weight: 700; overflow-wrap: anywhere; }
.past-text span { color: var(--muted); font-size: var(--fs-sm); }
.past-go { color: var(--gold); font-size: 1.5rem; line-height: 1; padding-inline: 6px; transition: transform .2s var(--ease); }
.past-row:hover .past-go { transform: translateX(3px); }
/* telefono: nella griglia dell'intestazione la riga dei dettagli va sotto le pillole, a tutta larghezza */
@media (max-width: 640px) {
  .home-ev .ev-head:has(> .ev-title > .pills) > .ev-title > .ev-details { grid-column: 1 / -1; grid-row: 4; }
}

/* Biglietto esteso: il tagliando accompagna tutto il corpo, le azioni restano fuori. */
.home-event { display: grid; gap: 14px; min-width: 0; }
.home-event [data-remote-entry]:empty { display: none; }
.event-ticket { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-width: 0; overflow: hidden;
  border: 1px solid var(--gold-line); border-radius: 22px; background: var(--panel); }
.event-ticket > .stub { width: 100%; height: 100%; min-height: 150px; border-radius: 0; transform: none; padding: 22px 6px;
  align-content: center; gap: 3px; background: var(--gold); box-shadow: none;
  -webkit-mask: radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 12px repeat-y;
  mask: radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 12px repeat-y; }
.event-ticket > .stub { position: relative; overflow: hidden; }
.event-ticket > .stub b { font: 400 3.6rem/1 var(--poster); }
.event-ticket > .stub .stub-time { font-size: var(--fs-sm); margin-top: 10px; padding: 10px 0 0; border-radius: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: none; letter-spacing: 0; }
.ticket-body { min-width: 0; display: grid; gap: 14px; align-content: center; padding: 22px 20px; }
.ticket-name { min-width: 0; display: grid; gap: 8px; }
.ticket-body :is(h1,h2) { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.02; overflow-wrap: anywhere; text-wrap: auto; }
.ticket-info { display: grid; gap: 4px; color: var(--muted); font-size: var(--fs-sm); }
.ticket-info p { overflow-wrap: anywhere; }
.ticket-info a { color: var(--fg); text-decoration-color: var(--line-hover); }
.ticket-body .ev-group-tag { text-transform: uppercase; letter-spacing: .06em; }
.ticket-body .themes { border-top: 1px solid var(--line-soft); padding-top: 14px; margin: 0; }
.ticket-body .themes.compact .theme { color: var(--fg); border-color: var(--gold-line); background: transparent; }
.ticket-body .countdown-event { margin: 0; padding: 0; border: 0; flex-wrap: wrap; gap: 6px; }
.ticket-body .countdown-event .cd-lab { flex-basis: 100%; }
.ticket-body .countdown-event .cd-u { min-width: 38px; padding: 5px; background: var(--panel-2); }
.ticket-body .countdown-event .cd-u b { font-size: var(--fs-xl); }
.delivery-strip { display: grid; gap: 9px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.delivery-strip > p { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: none;
  color: var(--muted); font-size: var(--fs-sm); }
.delivery-strip strong { flex: none; color: var(--gold-2); font: 400 1.7rem/1 var(--poster); white-space: nowrap; }
.delivery-strip strong span { color: var(--muted); }
.delivery-meter { height: 6px; overflow: hidden; background: var(--line-soft); border-radius: 3px; }
.delivery-meter > i { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
  font: 500 var(--fs-sm) var(--body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.home-event:has([data-remote-entry] .btn) .stub-btn.home-main { color: var(--ink); background: transparent; border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
  gap: 14px; min-height: 80px; padding: 14px; list-style: none; cursor: pointer; }
/* Détails: temi leggibili e consegne senza titolo, file né anteprima segreta. */
.event-actions { gap: 10px; }
.event-actions > .btn { min-height: 48px; }
.upload-safe { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-sm); }
.assigned-themes { display: grid; gap: 14px; }
.theme-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.theme-card { display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: 18px; background: var(--gold); color: var(--ink); min-width: 0; }
body .theme-card h3 { color: var(--ink); font: 400 1.7rem/1.08 var(--poster); text-transform: uppercase; overflow-wrap: anywhere; }
.theme-card p, .theme-card li { color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; }
.theme-examples { border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-top: 12px; }
.theme-examples strong { display: block; margin-bottom: 6px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.theme-examples ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.slide-vault { min-width: 0; display: grid; gap: 18px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.vault-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.vault-heading h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.vault-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-xs); }
/* «Chi presenta» (v0.0.159): presentazioni e partecipanti insieme. Prima del voto i ritratti con lo stato delle consegne
   (anello oro e lucchetto: consegnate; anello tratteggiato: mancano), dopo il voto le schede delle presentazioni col nome
   di chi le ha portate e in fondo, più piccoli, i ritratti di chi è rimasto senza slide. */
.lineup > .delivery-strip { border-top: 0; padding-top: 0; }
.cast-group { display: grid; gap: 12px; min-width: 0; }
.cast-group + .cast-group { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.cast-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 18px 6px; }
.cast-tile { min-width: 0; display: grid; justify-items: center; align-content: start; gap: 6px; }
.cast-tile .badge { width: 100%; max-width: 88px; }
.cast-tile .badge .ph { width: 56px; height: 56px; border-width: 2px; font-size: 1.2rem; }
.cast-tile.miss .badge .ph { border: 2px dashed var(--line-hover); box-shadow: none; }
.cast-tile.ready .badge .ph { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-deep), 0 0 16px -4px var(--gold-glow); }
.cast-tile.ready .badge .sub { color: var(--gold-2); }
.cast-tile.self .badge .ph { outline: 2px solid var(--azure-2); outline-offset: 3px; }
.cast-tile.self .badge .nm { font-weight: 700; }
.cast-rm-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--line-hover); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.cast-rm-btn .ico { width: 16px; height: 16px; margin: 0; }
.cast-rm-btn { position: relative; }
.cast-rm-btn::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.cast-rm-btn:hover { color: var(--error); border-color: color-mix(in srgb, var(--error) 60%, transparent); }
.cast-rm-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.cast-rm-btn.sure { background: var(--error); border-color: var(--error); color: var(--ink); }
.cast-grid.compact { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.cast-grid.compact .badge .ph { width: 44px; height: 44px; }
.portrait > .coin { position: absolute; top: -4px; right: calc(50% - 34px); z-index: 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); border: 1px solid var(--gold-line); color: var(--gold-2); }
.portrait > .coin .ico { width: 13px; height: 13px; margin: 0; }
.lineup-cards + .cast-group { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.lineup-mine { display: grid; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.file .who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 600 var(--fs-xs)/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.who-tag { padding: 1px 7px; border: 1px solid var(--line-hover); border-radius: 999px; font-size: var(--fs-2xs); letter-spacing: .06em; }
.lineup-cards .t { font: 700 var(--fs-lg)/1.2 var(--display); letter-spacing: -.01em; }
.upload-panel { padding: 16px; min-width: 0; border: 1px dashed var(--line-hover); border-radius: 16px; background: var(--bg); scroll-margin-top: 100px; }
.upload-panel > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--fg); font-weight: 600; }
.upload-panel #up { border: 0 !important; padding-top: 14px !important; }
body:not(.on-stage) h1 em, .home-past h2 em { color: inherit; }
.stat b { color: var(--fg); text-shadow: none; }
nav a.on { color: var(--fg); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-hover); }
@media (min-width: 760px) {
  .event-ticket { grid-template-columns: 120px minmax(0,1fr); }
  .event-ticket > .stub b { font-size: 4.4rem; }
  .ticket-body { padding: 26px 28px; }
}
@media (max-width: 599px) {
  .event-ticket { grid-template-columns: 78px minmax(0,1fr); }
  .event-ticket > .stub b { font-size: 3.2rem; }
  .ticket-body { padding: 18px 14px; }
  .ticket-body .pill { padding: 4px 8px; }
  .theme-cards { grid-template-columns: 1fr; }
  .slide-vault { padding: 20px 16px; }
  .event-actions > .btn { flex: 1 1 160px; justify-content: center; }
}

/* Biglietto in due parti: sopra gruppo e titolo a sinistra, stato e tipo a destra; un filo oro sottile; sotto Maps,
   omini dei partecipanti, conto alla rovescia e slide consegnate. */
.ticket-body { gap: 0; padding: 0; align-content: stretch; }
.ticket-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 20px 20px 18px; }
.ticket-top .ticket-name :is(h1,h2) { font-size: clamp(2.7rem, 8.1vw, 4.32rem); line-height: .98; overflow-wrap: normal; hyphens: none; }
.ticket-bottom { display: grid; gap: 14px; padding: 16px 20px 20px; border-top: 1px solid var(--gold-line); }
.ticket-bottom .delivery-strip { border-top: 0; padding-top: 0; }
@media (max-width: 520px) {
  .event-ticket { grid-template-columns: 64px minmax(0, 1fr); }
  .event-ticket > .stub b { font-size: 2.6rem; }
  .ticket-top { gap: 8px; padding: 14px 10px 12px 12px; }
  .ticket-top .ticket-name :is(h1,h2) { font-size: 2.7rem; }
  .ticket-bottom { padding: 14px 16px 16px; }
}
/* Pulsante Maps: tutta la larghezza, basso e lungo nella home, alto il doppio nei dettagli */
.venue-btn { position: relative; }
.venue-link { position: relative; display: block; height: 56px; border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel-2); transition: border-color .2s; }
.venue-btn.tall .venue-link { height: 112px; }
a.venue-link:hover { border-color: var(--gold-line); }
a.venue-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.venue-map { position: absolute; inset: 0; isolation: isolate; }
.venue-map img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none;
  filter: invert(1) hue-rotate(195deg) saturate(.5) brightness(.85) contrast(.95); }
.venue-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg-deep) 72%, transparent) 0%, color-mix(in srgb, var(--bg-deep) 20%, transparent) 50%, transparent 100%); }
/* senza coordinate: il disegno di una mappa (isolati e due strade) */
.venue-map.drawn { background:
  linear-gradient(115deg, transparent 46%, color-mix(in srgb, var(--muted) 22%, transparent) 46.5% 49%, transparent 49.5%),
  linear-gradient(15deg, transparent 58%, color-mix(in srgb, var(--muted) 16%, transparent) 58.5% 60%, transparent 60.5%),
  repeating-linear-gradient(0deg, transparent 0 21px, color-mix(in srgb, var(--line) 70%, transparent) 21px 22px),
  repeating-linear-gradient(90deg, transparent 0 33px, color-mix(in srgb, var(--line) 70%, transparent) 33px 34px), var(--panel-2); }
.venue-pin { position: absolute; z-index: 1; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg-deep); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 22%, transparent), 0 0 16px var(--gold-glow); }
.venue-label { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; }
.venue-btn.tall .venue-label { align-items: flex-end; padding-bottom: 14px; }
.venue-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--fg-strong); text-shadow: 0 1px 6px var(--bg-deep);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.venue-name svg { flex: none; color: var(--gold); }
.venue-go { flex: none; font: 600 var(--fs-xs) var(--body); color: var(--ink); background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.venue-credit { position: absolute; z-index: 3; right: 6px; bottom: 2px; padding: 0 5px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--muted); font: 500 .62rem var(--body); text-decoration: none; }
.venue-credit:hover { color: var(--fg); }
@media (max-width: 520px) { .venue-go-w { display: none; } .venue-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: var(--fs-sm); line-height: 1.2; } .venue-name svg { display: none; } .venue-label { padding: 0 10px; } .venue-credit { font-size: .55rem; } }

/* Home (19 novembre 2026): schede larghe quanto le serate precedenti, Prossime / In zona come slider,
   biglietto con nome su una riga, stato e tipo in icone, comandi sul tagliando, conto alla rovescia accanto ai partecipanti. */
.home-tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: min(100%, 360px); padding: 4px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.home-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--gold);
  transition: transform .34s var(--ease); }
.home-tabs[data-on="zona"] .home-thumb { transform: translateX(100%); }
.home-tab, .home-tab.on { justify-content: center; border: 0; background: transparent; color: var(--muted); transition: color .34s var(--ease); }
.home-tab:hover:not(.on) { color: var(--fg); }
.home-tabs[data-on="prossime"] .home-tab:first-of-type, .home-tabs[data-on="zona"] .home-tab:last-of-type { color: var(--ink); }
.home-tab:focus-visible { outline-offset: 3px; }

/* nome della serata su una riga sola: la misura scende con la lunghezza del nome (--n lettere, Anton ≈ 0,47 em a lettera) */
.event-ticket.oneline .ticket-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.event-ticket.oneline .ticket-name { container-type: inline-size; }
.event-ticket.oneline .ticket-name :is(h1, h2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.04;
  font-size: clamp(1.35rem, calc(100cqi / (var(--n) * .47)), 4.32rem); }
.ticket-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tbadge { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: help;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--azure-pale); transition: border-color .2s; }
.tbadge .ico { width: 19px; height: 19px; margin: 0; }
.tbadge:hover { border-color: var(--line-hover); }
.tbadge:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tbadge.aperta { color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.tbadge.votazione, .tbadge.scena { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.tbadge.chiusa { color: var(--muted); }

/* tagliando con i comandi: uno sopra la data, uno sotto */
.event-ticket > .stub.acts { grid-template-rows: auto 1fr auto; align-content: stretch; gap: 12px; padding: 14px 6px; }
.stub-date { display: grid; justify-items: center; align-content: center; gap: 3px; }
.stub-slot { width: 48px; height: 48px; }
.stub-btn { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ink) 55%, transparent); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s var(--ease); }
.stub-btn .ico { width: 22px; height: 22px; margin: 0; stroke-width: 2; }
.stub-btn:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.stub-btn.home-main { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.stub-btn.home-main:hover { background: color-mix(in srgb, var(--ink) 82%, var(--gold)); }
.stub-btn:active { transform: scale(.93); }
.stub-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.stub-btn.sure { background: var(--error); border-color: var(--error); color: var(--ink); }
.home-event .confirm-note { margin: 0; }

/* conto alla rovescia grande a sinistra, partecipanti a destra, divisi da un filo oro */
.ticket-pulse { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ticket-pulse > .countdown-event { container-type: inline-size; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: none; padding-right: 16px; }
.ticket-pulse > .countdown-event:empty { display: none; }
.ticket-pulse .countdown-event .cd-u { min-width: 0; padding: 9px 2px 7px; }
.ticket-pulse .countdown-event .cd-u b { font-size: clamp(1.4rem, 10.5cqi, 2.8rem); }
.ticket-pulse .countdown-event .cd-u i { margin-top: 5px; font-size: var(--fs-2xs); }
.ticket-pulse .cd-done { grid-column: 1 / -1; }
.cast-count { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 76px; padding-left: 16px; border-left: 1px solid var(--gold-line);
  color: var(--muted); font-size: var(--fs-xs); line-height: 1.25; text-align: center; }
.cast-count b { font: 400 2.8rem/1 var(--poster); color: var(--fg-strong); }
.ticket-pulse.solo { grid-template-columns: minmax(0, 1fr); }
.ticket-pulse.solo .cast-count span { font-size: var(--fs-sm); }
.ticket-pulse.solo .cast-count { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding-left: 0; border-left: 0; text-align: left; }
@media (max-width: 520px) {
  .event-ticket > .stub.acts { padding: 12px 4px; gap: 10px; }
  .stub-btn, .stub-slot { width: 46px; height: 46px; }
  .event-ticket.oneline .ticket-bottom { padding-inline: 12px; }
  .ticket-pulse > .countdown-event { gap: 3px; padding-right: 10px; }
  .ticket-pulse .countdown-event .cd-u { padding: 8px 0 6px; }
  .ticket-pulse .countdown-event .cd-u b { font-size: clamp(1.4rem, 15cqi, 2.2rem); letter-spacing: -.04em; }
  .cast-count { min-width: 0; padding-left: 10px; font-size: var(--fs-2xs); }
  .cast-count b { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) { .home-thumb, .home-tab { transition: none; } }

/* Tabellone con una parola al posto delle cifre: SOON (data da fissare), NOW! (conto a zero o serata cominciata).
   Stesse caselle del conto alla rovescia, senza etichetta sotto: l'altezza si pareggia col padding. */
.ticket-pulse .countdown-event.word .cd-u { padding: 16px 2px 15px; }
.ticket-pulse .countdown-event.word .cd-u b { text-transform: uppercase; }

/* Sezioni centrate dei dettagli (temi della serata, vincitori): titolo e riga al centro. Su computer le schede sono affiancate;
   su telefono, se sono più di una, scorrono di lato una alla volta (.swipe.many) con i puntini sotto. */
.centred { justify-items: center; text-align: center; }
.centred > .swipe { justify-self: stretch; width: 100%; }
.centred > .awards { text-align: start; }
.assigned-themes .theme-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.assigned-themes .theme-card { flex: 1 1 220px; max-width: 340px; justify-items: center; text-align: center; }
.assigned-themes .theme-examples { width: 100%; }
.assigned-themes .theme-examples ul { list-style: none; padding: 0; gap: 8px; }
.swipe-dots { display: none; }
@media (max-width: 599px) {
  .swipe.many { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; min-width: 0; width: auto; margin-inline: -16px; padding: 2px 16px 4px; gap: 12px; }
  .swipe.many::-webkit-scrollbar { display: none; }
  .swipe.many > * { flex: 0 0 84%; max-width: none; min-width: 0; scroll-snap-align: center; }
  .swipe.many:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
  .swipe-dots { display: flex; justify-content: center; gap: 2px; margin-top: -4px; }
  .swipe-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .swipe-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-hover); transition: width .25s var(--ease), background-color .25s; }
  .swipe-dots button[aria-current]::before { width: 22px; background: var(--gold); }
  .swipe-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) { .swipe-dots button::before { transition: none; } }
/* storico: i vincitori in fondo al biglietto */
.event-ticket .ticket-bottom .winners { margin: 0; }
.slide-vault .upload-safe { margin: 0; }
/* sul tagliando spento delle serate chiuse i comandi sono chiari, non inchiostro */
.stub.used .stub-btn { color: var(--fg); border-color: var(--line-hover); }
.stub.used .stub-btn:hover { background: var(--panel); border-color: var(--fg); }
.stub.used .stub-btn:focus-visible { outline-color: var(--fg); }
@media (max-width: 520px) {
  .ticket-bottom .wrow { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 8px 10px; }
  .ticket-bottom .wrow.tie { grid-template-columns: auto minmax(0, 1fr); }
  .ticket-bottom .wrow .ph { width: 44px; height: 44px; border-width: 2px; }
  .ticket-bottom .wrow.tie .wfaces .winner-portrait-link + .winner-portrait-link { margin-left: -18px; }
}

/* Fascia di Speetch e menu in basso nel blu più scuro delle schede (dalla v0.0.152) */
header.top { background: color-mix(in srgb, var(--chrome) 94%, transparent); }
@media (max-width: 759px) {
  header.top { background: var(--chrome); }
  header.top > nav { background: color-mix(in srgb, var(--chrome) 96%, transparent); }
}
/* Menu Serate / Temi / Gruppi / Regia come slider: cursore oro che scivola sotto la voce attiva (moveNavThumb in app.js) */
#nav { position: relative; isolation: isolate; }
@media (max-width: 759px) { header.top > #nav { position: fixed; } }
.nav-thumb { position: absolute; z-index: -1; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; background: var(--gold); opacity: 0; pointer-events: none;
  transition: transform .34s var(--ease), width .34s var(--ease), height .34s var(--ease), opacity .2s; }
#nav a.on, #nav a.on:hover { color: var(--ink); background: transparent; box-shadow: none; font-weight: 700; transition: color .34s var(--ease); }
@media (prefers-reduced-motion: reduce) { .nav-thumb, #nav a.on { transition: none; } }
/* «Le tue serate precedenti» più piccolo di «Le tue serate», e «precedenti» della stessa misura del resto del titolo */
.home-past h2 { font-size: clamp(1.4rem, 4.2vw, 1.9rem); }
.home-past h2 em { font-size: 1em; color: var(--gold); }
/* I due comandi tondi sul tagliando oro non sono mai del colore del tagliando: oro molto più scuro, icona oro chiaro (dalla v0.0.152) */
.stub:not(.used) .stub-btn, .stub:not(.used) .stub-btn.home-main { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--gold-pale); }
.stub:not(.used) .stub-btn:hover, .stub:not(.used) .stub-btn.home-main:hover { background: color-mix(in srgb, var(--gold-dark) 82%, var(--ink)); }
.stub:not(.used) .stub-btn.sure { background: var(--error); border-color: var(--error); color: var(--ink); }

/* Intestazione (dalla v0.0.155): il logo torna in alto a sinistra. Su computer accanto al logo la scritta Speetch e il menu
   slider in alto al centro; su telefono la scritta resta al centro e il menu resta in basso, con la fascia trasparente al 50%
   (solo il cursore oro è pieno). */
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-link .logo { width: 40px; height: 40px; display: block; }
.logo-link:hover .logo { transform: rotate(-6deg) scale(1.04); }
@media (min-width: 760px) {
  /* nella fascia: logo a sinistra, Speetch al centro, notifiche e profilo a destra */
  header.top > .logo-link { grid-column: 1; grid-row: 1; justify-self: start; }
  header.top > .brand { grid-column: 2; grid-row: 1; justify-self: center; margin-left: 0; }
  header.top > .top-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  /* sotto la fascia, fuori dal suo riquadro: il menu slider al centro, una pillola a sé che resta in vista scorrendo */
  header.top > #nav { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); grid-column: auto; grid-row: auto;
    display: flex; flex-wrap: nowrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
    box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); }
  header.top > nav a { padding: 8px 18px; }
  .wrap { padding-top: 92px; }
}
@media (max-width: 759px) {
  header.top > .logo-link { grid-column: 1; grid-row: 1; justify-self: start; }
  .logo-link .logo { width: 36px; height: 36px; }
  header.top > nav { background: color-mix(in srgb, var(--chrome) 75%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
}


/* Home (v0.0.161, scelta del maintainer): sotto il biglietto della serata, attaccate come parti dello stesso biglietto, le
   strisce del turno («È il tuo turno!»), della sala e di «Vota i temi». Il biglietto perde gli angoli in basso, l'ultima
   striscia li prende. Niente più righe di testo tra biglietto e strisce. */
.ticket-stack { display: grid; min-width: 0; border-radius: 22px; overflow: hidden; }
.ticket-stack:has(> .sala-invite, > .ticket-strip, > [data-remote-entry]:not(:empty)) > .event-ticket { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ticket-stack > .sala-invite { border-radius: 0; border-top: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.ticket-stack > .sala-invite:focus-visible { outline-offset: -4px; }
.ticket-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px;
  background: var(--panel-2); border: 1px solid var(--gold-line); border-top: 1px dashed var(--gold-line); color: var(--fg); text-decoration: none; }
.ticket-strip:focus-visible { outline: 2px solid var(--fg); outline-offset: -4px; }
.strip-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.strip-ico .ico { width: 20px; height: 20px; margin: 0; stroke-width: 2; }
.strip-text { display: grid; gap: 2px; min-width: 0; }
.strip-text strong { font: 800 var(--fs-md) var(--display); color: var(--fg); }
.strip-text span { font: 500 var(--fs-sm) var(--body); color: var(--muted); }
.turn-strip { background: color-mix(in srgb, var(--gold) 12%, var(--panel)); }
.turn-strip .strip-text strong { color: var(--gold-2); }
.turn-strip .strip-ico { animation: turn-pulse 2.4s var(--ease) infinite; }
@keyframes turn-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 60% { box-shadow: 0 0 0 10px transparent; } }
.themes-strip .strip-ico { background: var(--panel); color: var(--gold-2); border: 1px solid var(--gold-line); }
.themes-strip:hover { background: color-mix(in srgb, var(--gold) 8%, var(--panel-2)); }
.strip-go { color: var(--gold-2); font-weight: 700; }
@media (max-width: 420px) { .turn-strip { grid-template-columns: auto minmax(0, 1fr); } .turn-strip > .btn { grid-column: 1 / -1; justify-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .turn-strip .strip-ico { animation: none; } }

/* Biglietto compatto su una riga (v0.0.163), nel profilo in «Puoi ancora aggiungerti a»: il tagliando oro pieno del biglietto
   grande con il bordo forato, gruppo, nome in Anton su una riga (porta ai dettagli) e una riga di dettagli con le icone;
   a destra il tondo oro «Partecipo». */
.ticket-rows { display: grid; gap: 10px; }
.ticket-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: stretch; min-width: 0; overflow: hidden;
  border: 1px solid var(--gold-line); border-radius: 18px; background: var(--panel-2); }
.ticket-row > .stub { width: 100%; height: 100%; min-height: 96px; border-radius: 0; transform: none; padding: 10px 4px; gap: 2px; background: var(--gold); box-shadow: none;
  -webkit-mask: radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 12px repeat-y;
          mask: radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 12px repeat-y; }
.ticket-row > .stub b { font: 400 2.2rem/1 var(--poster); }
.ticket-row > .stub .stub-time { margin-top: 6px; padding: 5px 0 0; border-radius: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: none; letter-spacing: 0; }
.ticket-row-body { min-width: 0; display: grid; gap: 5px; align-content: center; padding: 12px 8px 12px 16px; }
.ticket-row-body h3 { margin: 0; min-width: 0; font: 400 clamp(1.3rem, 4vw, 1.7rem)/1.05 var(--poster); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-row-body h3 a { color: var(--fg); text-decoration: none; }
.ticket-row-body h3 a:hover { color: var(--gold-2); }
.ticket-row-body h3 a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.ticket-row-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: var(--fs-xs); }
.ticket-row-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ticket-row-meta .ico { width: 14px; height: 14px; margin: 0; }
.ticket-row-meta a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.ticket-row-meta a:hover { color: var(--fg); }
.row-join { align-self: center; margin-right: 16px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--gold); color: var(--ink); cursor: pointer; transition: background-color .2s, transform .15s var(--ease); }
.row-join .ico { width: 22px; height: 22px; margin: 0; stroke-width: 2; }
.row-join:hover { background: var(--gold-2); }
.row-join:active { transform: scale(.93); }
.row-join:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (max-width: 520px) {
  .ticket-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .ticket-row > .stub b { font-size: 1.9rem; }
  .ticket-row-body { padding: 10px 6px 10px 12px; }
  .row-join { margin-right: 10px; width: 44px; height: 44px; }
}

/* Slider a schede (v0.0.165): come Prossime / In zona e le Notifiche, per 2-5 voci. --n voci, --i quella scelta. */
.tab-slider { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); width: 100%; max-width: calc(var(--n) * 150px);
  padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.tab-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 999px; background: var(--gold);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .34s var(--ease); }
.tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 600 var(--fs-sm) var(--body); cursor: pointer; transition: color .34s var(--ease); }
.tab-btn .ico { flex: none; width: 16px; height: 16px; margin: 0; }
.tab-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-btn:hover:not([aria-selected="true"]) { color: var(--fg); }
.tab-btn[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tab-btn[aria-selected="true"] .nt-count { background: var(--ink); color: var(--gold-2); }
@media (max-width: 420px) { .tab-btn { gap: 5px; padding: 0 6px; } .tab-slider[style*="--n:4"] .tab-btn > .ico, .tab-slider[style*="--n:5"] .tab-btn > .ico { display: none; } }
@media (prefers-reduced-motion: reduce) { .tab-thumb, .tab-btn { transition: none; } }

/* Guida (v0.0.165): presentazione, slider per momenti (Prima · Durante · Dopo · Conduci) con le illustrazioni fatte dei pezzi
   veri dell'app, domande frequenti in fondo. */
.g-panels > [role="tabpanel"] { animation: rise .25s var(--ease); }
.g-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 18px; }
.g-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.g-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--g-panel); border: 1px solid var(--gold-line); color: var(--gold-2); }
.g-ico .ico { width: 19px; height: 19px; margin: 0; }
.g-item h3 { margin: 6px 0 4px; font: 700 var(--fs-lg)/1.2 var(--display); }
.g-item p { margin: 0; line-height: 1.5; }
.g-demo { margin: 4px 0; display: grid; gap: 10px; }
.g-demo-art { pointer-events: none; user-select: none; }
.g-demo-art .ticket-stack, .g-demo-art .slide-vault, .g-demo-art .todo-list { box-shadow: 0 24px 50px -28px #000; }
.g-demo figcaption { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; padding-left: 12px; border-left: 2px solid var(--gold-line); }
.g-next { justify-self: end; }
.g-tiers { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.g-tier { display: grid; justify-items: center; gap: 4px; font: 600 var(--fs-xs) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.g-tier .ach-medal { width: 48px; height: 56px; }
.g-faq { gap: 8px !important; }
.g-q { border-top: 1px solid var(--g-line); }
.g-q > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; list-style: none; cursor: pointer; font-weight: 700; color: var(--fg); }
.g-q > summary::-webkit-details-marker { display: none; }
.g-q > summary::before, .inbox-day.older > summary::before { display: none; }
.g-q > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.g-q[open] > summary::after { transform: rotate(225deg) translateY(-3px); }
.g-q > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.g-q p { margin: 0 0 14px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .g-panels > [role="tabpanel"] { animation: none; } }
/* oltre 4 voci il binario scorre di lato: niente cursore, la voce scelta si accende d'oro da sola */
.tab-slider.many { display: flex; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tab-slider.many .tab-thumb { display: none; }
.tab-slider.many .tab-btn { flex: none; padding: 0 16px; }
.tab-slider.many .tab-btn[aria-selected="true"] { background: var(--gold); }

/* Temi (v0.0.166): slider tra le raccolte, una scheda per raccolta con riepilogo, «Proponi un tema» pieno, ordine e righe
   dei temi con «tuo» e il mi piace a tondo; «Come funziona» è un rimando alla guida. */
.tpanels > .tpanel { display: grid; gap: 14px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; animation: rise .25s var(--ease); }
.tpanel-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.tpanel-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--wine); box-shadow: 0 0 0 1px var(--gold-line); background: #fff; }
.tpanel-head h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.75rem); overflow-wrap: anywhere; }
.tpanel-sum { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.tpropose > summary { justify-self: start; display: inline-flex; list-style: none; }
.tpropose > summary::before, .tpropose > summary::-webkit-details-marker { display: none; }
.tpropose > summary .ico { margin-right: .45em; }
.tpropose[open] > summary { background: transparent; color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-line); }
.tpropose > summary[aria-disabled="true"] { opacity: .75; }
.tpropose > form, .tpropose > .hint { margin-top: 14px; padding: 16px; border: 1px dashed var(--line-hover); border-radius: 16px; background: var(--bg); }
.tsort { display: flex; gap: 8px; flex-wrap: wrap; }
.tsort .nf-chip { min-height: 36px; padding: 6px 14px; }
.tlist { display: grid; gap: 8px; }
.tlist .trow { background: var(--panel-2); }
.t-mine { display: inline-block; margin-left: 8px; padding: 1px 8px; vertical-align: .2em; border: 1px solid var(--gold-line); border-radius: 999px; font: 600 var(--fs-2xs) var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); font-style: normal; }
.tlike { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 0; border: 0; background: none; color: var(--muted); font: 700 var(--fs-sm) var(--mono); cursor: pointer; }
.tlike-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-hover); background: var(--panel); color: var(--fg); transition: background-color .2s, border-color .2s, transform .15s var(--ease); }
.tlike-ico .ico { width: 18px; height: 18px; margin: 0; }
.tlike:hover .tlike-ico { border-color: var(--gold); }
.tlike:active .tlike-ico { transform: scale(.92); }
.tlike.on { color: var(--gold-2); }
.tlike.on .tlike-ico { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tlike:focus-visible { outline: none; }
.tlike:focus-visible .tlike-ico { outline: 2px solid var(--gold); outline-offset: 2px; }
a.evrow.tguide { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
a.evrow.tguide:hover { border-color: var(--line-hover); }
.tguide > span:nth-child(2) { display: grid; gap: 2px; }
@media (max-width: 520px) { .tpanels > .tpanel { padding: 18px 14px; } }
@media (prefers-reduced-motion: reduce) { .tpanels > .tpanel { animation: none; } }

/* Gruppi (v0.0.167): comandi a tondo come nel profilo, invito come biglietto, Esci ed Elimina in fondo a scomparsa,
   Entra / Crea in una scheda sola con lo slider. */
.gacts, .invite-acts { justify-content: flex-start; }
.act-btn.sure .act-ring { background: var(--error); border-color: var(--error); color: var(--ink); }
.invite-ticket { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--gold-line); border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 60%), var(--bg-deep); }
.invite-stub { display: grid; place-items: center; align-content: center; gap: 8px; padding: 14px 4px; background: var(--gold); color: var(--ink);
  -webkit-mask: radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 12px repeat-y;
          mask: radial-gradient(circle 4px at 100% 50%, #0000 95%, #000) 0 0 / 100% 12px repeat-y; }
.invite-stub .ico { width: 26px; height: 26px; margin: 0; stroke-width: 2; }
.invite-stub span { font: 700 var(--fs-2xs) var(--mono); letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.invite-body { display: grid; gap: 8px; min-width: 0; padding: 16px 16px 12px 18px; }
.invite-body .kicker { margin: 0; }
.invite-ticket .code { font: 600 clamp(1.6rem, 7vw, 2.2rem) var(--mono); letter-spacing: .14em; color: var(--gold-2); text-shadow: 0 0 20px color-mix(in srgb, var(--gold) 40%, transparent); }
.invite-ticket .hint { margin: 0; }
.invite-ticket.closed .invite-stub { background: var(--panel-2); color: var(--muted); }
.invite-ticket.closed .code { color: var(--muted); text-shadow: none; text-decoration: line-through; text-decoration-thickness: 2px; }
.invite-acts { margin-top: 4px; }
.gdanger { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.gdanger > summary { font-size: var(--fs-sm); }
.gdanger[open] > summary { color: var(--fg); }
.gdanger > .row { margin-top: 12px; }
.gnew { display: grid; gap: 14px; }
.gnew .tab-slider { max-width: 460px; }
/* su telefono i tondi del gruppo e dell'invito si centrano: quello che va a capo (Nuovo codice) cade sotto il tondo centrale */
@media (max-width: 520px) { .gacts, .invite-acts { justify-content: center; } }
@media (max-width: 420px) { .invite-ticket { grid-template-columns: 56px minmax(0, 1fr); } .invite-body { padding: 14px 12px 10px 14px; } .gnew .tab-btn > .ico { display: none; } }

/* «Indietro» in alto a sinistra (v0.0.168): un tondo quinta con la freccia oro e accanto, in fumo, dove si torna; uguale
   in ogni pagina (serata, voto, storico, albo, Gestisci, calendario, presentazioni, profili, Trophy Room, Sala, Conduci).
   Al passaggio il tondo prende il bordo oro e la freccia si sposta di 3px verso sinistra. */
.back-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; align-self: start; max-width: 100%; min-height: 44px;
  padding: 2px 14px 2px 2px; border-radius: 999px; color: var(--muted); font: 600 var(--fs-sm) var(--body); text-decoration: none; transition: color .2s; }
.back-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-hover); color: var(--gold-2);
  transition: border-color .2s, transform .2s var(--ease); }
.back-ico .ico { width: 18px; height: 18px; margin: 0; stroke-width: 2.2; }
.back-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-link:hover { color: var(--fg); }
.back-link:hover .back-ico { border-color: var(--gold); transform: translateX(-3px); }
.back-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sala-head .back-link { min-height: 40px; }
@media (prefers-reduced-motion: reduce) { .back-link:hover .back-ico { transform: none; } }

/* Trophy Room (v0.0.168): #/profilo/premi e #/utente/N/premi. In cima i numeri in Anton oro su una quinta con l'alone; poi la
   vetrina: ogni statuetta è la medaglia del premio del suo gruppo sotto un occhio di bue, su un piedistallo, con ×N, nome,
   categoria e le ultime serate in cui è stata vinta (con più gruppi, una vetrina per gruppo con la firma); infine «Sul podio»,
   i secondi posti in righe con l'anello d'argento. Su telefono due statuette per riga. */
.trophy-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 20px; border-radius: 22px; border: 1px solid var(--gold-line);
  background: radial-gradient(ellipse 80% 120% at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%), var(--panel); }
.trophy-hero > div { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; }
.trophy-hero b { font: 400 clamp(2.2rem, 7vw, 3rem)/1 var(--poster); color: var(--gold-2); }
.trophy-hero span { font: 600 var(--fs-2xs)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trophy-shelf { display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.trophy-group { display: flex; align-items: center; gap: 10px; font: 600 var(--fs-xs) var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trophy-group img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--wine); background: #fff; }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 16px; }
.tr-item { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; text-align: center; }
.trophy-stage { position: relative; display: grid; justify-items: center; padding-top: 8px; }
.trophy-stage::before { content: ""; position: absolute; inset: -12px 6% 18px; background: radial-gradient(ellipse 60% 90% at 50% 0%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 72%); pointer-events: none; }
.trophy-stage svg { position: relative; width: 112px; height: auto; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .55)); }
.trophy-plinth { position: relative; display: block; width: 124px; height: 14px; margin-top: -6px; border-radius: 4px 4px 10px 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-deep)); border-top: 2px solid var(--gold-line); box-shadow: 0 12px 20px -12px #000; }
.trophy-n { margin: 8px 0 0; font: 400 1.6rem/1 var(--poster); color: var(--gold-2); }
.tr-item h3 { margin: 0; font: 700 var(--fs-lg)/1.2 var(--display); overflow-wrap: anywhere; }
.trophy-cat { font: 600 var(--fs-2xs) var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trophy-nights { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; width: 100%; }
.trophy-nights li { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 8px; font-size: var(--fs-xs); color: var(--muted); }
.trophy-nights a { color: var(--fg); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; overflow-wrap: anywhere; }
.trophy-nights a:hover { color: var(--gold-2); }
.trophy-nights .more { font-style: italic; }
.podium-card { gap: 12px; }
.podium-card h2, .podium-card > .hint { margin: 0; }
.podium-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.podium-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: border-color .2s; }
.podium-list a:hover { border-color: var(--line-hover); }
.podium-list a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.podium-img { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--panel); border: 2px solid #C9D3E0; color: #C9D3E0; }
.podium-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); }
.podium-img .ico { width: 20px; height: 20px; margin: 0; }
.podium-text { display: grid; gap: 2px; min-width: 0; }
.podium-text strong { font-weight: 650; overflow-wrap: anywhere; }
.podium-text span { color: var(--muted); font-size: var(--fs-sm); }
.podium-n { font: 700 var(--fs-md) var(--mono); color: #C9D3E0; }
@media (max-width: 520px) {
  .trophy-hero { padding: 16px 8px; }
  .trophy-shelf { padding: 18px 12px; }
  .trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .trophy-stage svg { width: 88px; }
  .trophy-plinth { width: 98px; }
}
