/* PALIATA — sala giochi anni 90 + Tombola napoletana (cartelle di cartone, numerini di legno, fagioli). Realizzato da CGFA. */
@font-face { font-family: 'Arcade'; src: url(font/pressstart.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Insegna'; src: url(font/bungee.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra'; src: url(font/chakra-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Chakra'; src: url(font/chakra-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --notte: #0d0806;
  --notte-2: #1b120c;
  --vita: #f6c933;
  --vita-ombra: #b07a10;
  --danno: #d7341f;
  --furia: #3b8cf0;
  --furia-piena: #ffd34a;
  --legno: #d9a066;
  --legno-scuro: #8a5a2c;
  --bruciato: #2a140a;
  --cartella-1: #1f4fa3;
  --cartella-2: #c98a12;
  --cartella-3: #2f7d43;
  --cartella-4: #a8322a;
  --carta: #f2e7d0;
  --g1: #ff4f3b;
  --g2: #4fb0ff;
  --testo: #f6ecdc;
  --testo-2: #c9b79c;
  --fagiolo: #f1e6cf;
  --ombra-dolce: 0 6px 18px rgba(0, 0, 0, .55);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--notte); color: var(--testo); font-family: 'Chakra', system-ui, sans-serif; }
body { user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
::selection { background: var(--vita); color: var(--bruciato); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--vita); outline-offset: 3px; }
a { color: var(--vita); text-underline-offset: 3px; }
.nascosto { display: none !important; }
#tela { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; image-rendering: pixelated; background: #000; }

/* ---------------------------------------------------------------- HUD dell'incontro */
#hud { position: fixed; inset: 0; pointer-events: none; font-family: 'Arcade', monospace; }
.riga-alta { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 0 max(12px, env(safe-area-inset-left)); align-items: start; }
.giocatore { display: grid; gap: 5px; }
.g2 { direction: rtl; }
.g2 > * { direction: ltr; }
.nome { font-size: clamp(9px, 1.25vw, 15px); letter-spacing: .04em; color: var(--testo); text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, .8); }
.g2 .nome { text-align: right; }
.barra { position: relative; height: clamp(14px, 2.1vw, 24px); background: #2a0d08; border: 2px solid #fff3d6; box-shadow: 0 0 0 2px #000, var(--ombra-dolce); overflow: hidden; }
.barra > div { position: absolute; top: 0; bottom: 0; right: 0; width: 100%; }
.g1 .barra > div { right: 0; left: auto; transform-origin: right center; }
.g2 .barra > div { left: 0; right: auto; transform-origin: left center; }
.vita { background: linear-gradient(180deg, #fff2a0 0 18%, var(--vita) 18% 70%, var(--vita-ombra) 70%); transition: transform .08s linear; }
.scia { background: var(--danno); transition: transform .6s cubic-bezier(.2, .8, .2, 1) .35s; }
.barra.critica .vita { animation: critica .5s steps(2) infinite; }
@keyframes critica { 50% { filter: brightness(1.6) saturate(.6); } }
.vinti { display: flex; gap: 6px; min-height: 16px; }
.g2 .vinti { justify-content: flex-start; }
.fagiolo { width: 18px; height: 12px; border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 35% 30%, #fff 0 18%, var(--fagiolo) 30%, #c8b48e 100%); box-shadow: 0 2px 3px rgba(0, 0, 0, .6); transform: rotate(-12deg); }
.tempo { min-width: clamp(52px, 6vw, 78px); text-align: center; font-size: clamp(20px, 3.4vw, 40px); color: var(--testo); padding: 6px 4px 4px; background: rgba(13, 8, 6, .6); border: 2px solid rgba(255, 243, 214, .8); text-shadow: 0 3px 0 #000; }
.tempo.poco { color: var(--danno); }
.riga-bassa { position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 0 max(12px, env(safe-area-inset-left)); align-items: end; }
.furia { display: flex; align-items: center; gap: 8px; font-size: clamp(7px, .9vw, 11px); color: var(--testo-2); }
.f2 { flex-direction: row-reverse; }
.barra-f { flex: 0 1 260px; height: 10px; border: 2px solid #e8dcc4; background: #0c1a30; box-shadow: 0 0 0 2px #000; overflow: hidden; }
.barra-f > div { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(180deg, #9fd0ff, var(--furia)); transition: transform .15s; }
.f2 .barra-f > div { transform-origin: right center; }
.furia.piena .barra-f > div { background: linear-gradient(90deg, var(--furia-piena), #ff8a1a, var(--furia-piena)); background-size: 200% 100%; animation: scorri .6s linear infinite; }
.furia.piena span { color: var(--furia-piena); }
@keyframes scorri { to { background-position: -200% 0; } }
.punti { font-size: clamp(8px, 1vw, 12px); color: var(--testo-2); text-shadow: 0 2px 0 #000; }
.annuncio { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: 'Insegna', 'Arcade', sans-serif; font-size: clamp(38px, 9vw, 120px); line-height: 1; color: var(--vita); letter-spacing: .02em;
  -webkit-text-stroke: clamp(2px, .35vw, 5px) #2a0d06; paint-order: stroke fill; text-shadow: 0 .06em 0 #6b2a0a, 0 .1em .25em rgba(0, 0, 0, .7); opacity: 0; transform: scale(.6); }
.annuncio small { display: block; font-family: 'Arcade', monospace; font-size: .2em; -webkit-text-stroke: 0; color: var(--testo); margin-top: .5em; letter-spacing: .1em; }
.annuncio.vivo { animation: botto .9s cubic-bezier(.16, 1, .3, 1) both; }
.annuncio.rosso { color: #ff5a3a; }
@keyframes botto { 0% { opacity: 0; transform: scale(2.2); filter: blur(6px); } 22% { opacity: 1; transform: scale(.94); filter: none; } 34% { transform: scale(1.04); } 46%, 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
.combo { position: absolute; top: 22%; left: 4%; font-family: 'Insegna', sans-serif; font-size: clamp(18px, 3vw, 40px); color: var(--carta); opacity: 0; transform-origin: left center; }
.combo.destra { left: auto; right: 4%; text-align: right; transform-origin: right center; }
.combo b { display: block; font-family: 'Arcade', monospace; font-size: .38em; color: var(--testo-2); margin-top: .35em; font-weight: 400; }
.combo .chip { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .2em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3cf9c, var(--legno) 55%, var(--legno-scuro)); color: var(--bruciato); font-size: .8em; box-shadow: 0 4px 10px rgba(0, 0, 0, .5), inset 0 -3px 4px rgba(0, 0, 0, .25); }
.combo.destra .chip { margin: 0 0 0 .2em; }
.combo.vivo { animation: combo 1.4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes combo { 0% { opacity: 0; transform: translateX(-20px) scale(.8); } 14% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.tasto-pausa { pointer-events: auto; position: absolute; top: max(54px, calc(env(safe-area-inset-top) + 50px)); left: 50%; transform: translateX(-50%); width: 38px; height: 30px; border: 2px solid rgba(255, 243, 214, .5); background: rgba(13, 8, 6, .5); font-family: 'Arcade', monospace; font-size: 11px; }

/* ---------------------------------------------------------------- tasti sullo schermo (telefono) */
.tocco { position: fixed; inset: auto 0 0 0; height: 46vh; pointer-events: none; z-index: 5; }
.levetta { pointer-events: auto; position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom)); width: min(36vw, 170px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 243, 214, .06) 0 45%, rgba(255, 243, 214, .14) 46% 100%); border: 2px solid rgba(255, 243, 214, .35); touch-action: none; }
.pomello { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; margin: -21% 0 0 -21%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a6e, #c22a16 60%, #6a1208); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.pulsanti { pointer-events: auto; position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, min(15vw, 66px)); gap: 10px; }
.pulsanti button { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 243, 214, .45); background: radial-gradient(circle at 35% 30%, rgba(246, 201, 51, .55), rgba(120, 70, 10, .55)); font-family: 'Arcade', monospace; font-size: 12px; color: #fff8e6; text-shadow: 0 2px 0 #000; touch-action: none; }
.pulsanti button:nth-child(n+4) { background: radial-gradient(circle at 35% 30%, rgba(79, 176, 255, .55), rgba(16, 60, 120, .55)); }
.pulsanti button small { font-size: 7px; vertical-align: super; }
.pulsanti .speciale { grid-column: 1 / -1; aspect-ratio: auto; height: 40px; border-radius: 22px; background: radial-gradient(circle at 50% 30%, rgba(255, 140, 60, .65), rgba(140, 30, 10, .65)); }
.pulsanti button.premuto { transform: scale(.9); filter: brightness(1.5); }

/* ---------------------------------------------------------------- schermate */
.schermo { position: fixed; inset: 0; z-index: 10; overflow-y: auto; display: grid; place-items: center; align-content: center; gap: 22px; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); text-align: center; }
.velo { background: rgba(10, 6, 4, .78); backdrop-filter: blur(3px); }
#sTitolo { background: linear-gradient(180deg, rgba(13, 8, 6, .1), rgba(13, 8, 6, .55) 70%, rgba(13, 8, 6, .9)); }
.logo-titolo .p { display: block; font-family: 'Insegna', sans-serif; font-size: clamp(64px, 15vw, 210px); line-height: .9; color: var(--vita); -webkit-text-stroke: clamp(3px, .5vw, 8px) #2a0d06; paint-order: stroke fill;
  text-shadow: 0 .035em 0 #e0731c, 0 .07em 0 #a83a12, 0 .1em 0 #5a1606, 0 .16em .3em rgba(0, 0, 0, .6); letter-spacing: .01em; animation: arriva 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.logo-titolo small { display: block; margin-top: 14px; font-family: 'Arcade', monospace; font-size: clamp(9px, 1.6vw, 16px); letter-spacing: .3em; color: var(--testo); text-shadow: 0 2px 0 #000; }
@keyframes arriva { from { transform: scale(1.6) translateY(-10%); opacity: 0; filter: blur(10px); } }
.premi { font-family: 'Arcade', monospace; font-size: clamp(11px, 1.8vw, 18px); color: var(--testo); animation: lampeggia 1.1s steps(2) infinite; text-shadow: 0 2px 0 #000; }
@keyframes lampeggia { 50% { opacity: 0; } }
.piede { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 0; right: 0; font-size: 13px; color: var(--testo-2); }
.link { background: none; border: 0; padding: 4px; color: var(--testo-2); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--testo); }
.logo-piccolo { font-family: 'Insegna', sans-serif; font-size: clamp(34px, 6vw, 64px); color: var(--vita); -webkit-text-stroke: 3px #2a0d06; paint-order: stroke fill; text-shadow: 0 .06em 0 #a83a12, 0 .12em .3em rgba(0, 0, 0, .6); }
#sMenu { background: radial-gradient(ellipse at 50% 40%, rgba(27, 18, 12, .45), rgba(13, 8, 6, .92)); }

/* le voci del menu: una cartella di tombola */
.voci { display: grid; gap: 0; width: min(520px, 92vw); background: var(--cartella-1); padding: 12px; border-radius: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(255, 255, 255, .15);
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 100% 25%, 12.5% 100%; }
.voci button { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; text-align: left; padding: 10px 12px; background: var(--carta); color: #26160c; border: 0; border-bottom: 2px solid rgba(31, 79, 163, .35); font-weight: 700; font-size: clamp(16px, 2.1vw, 21px); letter-spacing: .01em; position: relative; }
.voci button:first-child { border-radius: 3px 3px 0 0; } .voci button:last-child { border-radius: 0 0 3px 3px; border-bottom: 0; }
.voci button::before { content: attr(data-n); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: 'Arcade', monospace; font-size: 13px; color: var(--bruciato);
  background: radial-gradient(circle at 35% 30%, #f6d6a8, var(--legno) 55%, var(--legno-scuro)); box-shadow: 0 3px 6px rgba(0, 0, 0, .35), inset 0 -3px 5px rgba(0, 0, 0, .2); }
.voci button small { display: block; font-weight: 500; font-size: 13px; color: #6a5440; margin-top: 2px; }
.voci button:hover, .voci button.su { background: #fff7e4; }
.voci button.su::after { content: ''; position: absolute; right: 14px; top: 50%; width: 22px; height: 15px; margin-top: -7px; border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 35% 30%, #fff 0 18%, var(--fagiolo) 30%, #b89c70 100%); transform: rotate(-14deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.voci.corte { width: min(380px, 90vw); }
h2 { margin: 0; font-family: 'Insegna', sans-serif; font-weight: 400; font-size: clamp(24px, 4vw, 44px); color: var(--vita); -webkit-text-stroke: 2px #2a0d06; paint-order: stroke fill; text-shadow: 0 .08em 0 #a83a12; }

/* scelta del lottatore: cartella 4 × 2 */
#sScelta { background: radial-gradient(ellipse at 50% 30%, #2a1a10, var(--notte) 75%); }
.scelta { display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; gap: 18px; align-items: center; width: min(1200px, 100%); }
.griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; background: var(--cartella-2); border-radius: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(255, 255, 255, .18); }
.casella { position: relative; aspect-ratio: 3 / 4; background: var(--carta); border: 0; padding: 0; overflow: hidden; border-radius: 2px; }
.casella img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; image-rendering: pixelated; }
.casella .num { position: absolute; left: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: 'Arcade', monospace; font-size: 10px; color: var(--bruciato); background: radial-gradient(circle at 35% 30%, #f6d6a8, var(--legno) 55%, var(--legno-scuro)); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); z-index: 2; }
.casella .lucchetto { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 12, 8, .82); font-family: 'Arcade', monospace; font-size: 9px; line-height: 1.6; color: var(--testo-2); z-index: 3; padding: 6px; }
.casella.c1::after, .casella.c2::after { content: ''; position: absolute; inset: 0; border: 4px solid var(--g1); z-index: 4; animation: cornice .5s steps(2) infinite; }
.casella.c2::after { border-color: var(--g2); inset: 4px; }
.casella.c1.c2::after { border-image: linear-gradient(90deg, var(--g1) 50%, var(--g2) 50%) 1; inset: 0; }
@keyframes cornice { 50% { opacity: .55; } }
.casella .tag { position: absolute; bottom: 4px; z-index: 5; font-family: 'Arcade', monospace; font-size: 9px; padding: 3px 4px; color: #fff; }
.casella .tag.t1 { left: 4px; background: var(--g1); } .casella .tag.t2 { right: 4px; background: var(--g2); }
.anteprima { display: grid; gap: 8px; align-content: end; min-height: 320px; text-align: left; }
.anteprima.a2 { text-align: right; }
.anteprima .grande { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; image-rendering: pixelated; justify-self: start; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .7)); }
.anteprima.a2 .grande { justify-self: end; transform: scaleX(-1); }
.anteprima .nomeL { font-family: 'Insegna', sans-serif; font-size: clamp(18px, 2.4vw, 30px); color: var(--testo); -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.anteprima .titoloL { font-size: 14px; color: var(--testo-2); }
.anteprima .stat { font-family: 'Arcade', monospace; font-size: 8px; color: var(--testo-2); line-height: 1.9; }
.aiuto-scelta { font-family: 'Arcade', monospace; font-size: 11px; color: var(--testo-2); }
.aiuto-scelta button { margin: 0 6px; padding: 8px 12px; background: var(--cartella-4); border: 2px solid rgba(255, 255, 255, .3); font-family: 'Arcade', monospace; font-size: 9px; color: #fff; }

/* VS */
.vs { grid-template-columns: 1fr auto 1fr; background: linear-gradient(100deg, #6a120a 0 49.6%, #0a2a5a 50.4% 100%); overflow: hidden; }
.vs-lato { display: grid; justify-items: center; gap: 10px; font-family: 'Insegna', sans-serif; font-size: clamp(18px, 3vw, 38px); color: var(--testo); -webkit-text-stroke: 1px #000; paint-order: stroke fill; }
.vs-lato img { width: min(36vw, 420px); aspect-ratio: 3 / 4; object-fit: cover; image-rendering: pixelated; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .7)); }
.v1 { animation: daSx .6s cubic-bezier(.16, 1, .3, 1) both; } .v2 { animation: daDx .6s cubic-bezier(.16, 1, .3, 1) both; }
.v2 img { transform: scaleX(-1); }
@keyframes daSx { from { transform: translateX(-60vw); } } @keyframes daDx { from { transform: translateX(60vw); } }
.vs-centro { font-family: 'Insegna', sans-serif; font-size: clamp(60px, 12vw, 160px); color: var(--vita); -webkit-text-stroke: 5px #2a0d06; paint-order: stroke fill; text-shadow: 0 .06em 0 #a83a12; animation: arriva .7s .35s cubic-bezier(.16, 1, .3, 1) both; }
.vs-centro small { display: block; font-family: 'Arcade', monospace; font-size: 11px; -webkit-text-stroke: 0; color: var(--testo); margin-top: 10px; }

/* finestre: opzioni, aiuto, privacy, classifica, online */
.finestra { position: relative; width: min(720px, 94vw); max-height: 86vh; overflow: auto; text-align: left; background: var(--carta); color: #24150b; border-radius: 6px; padding: 26px 26px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); scrollbar-color: var(--legno-scuro) transparent; }
.finestra h3 { margin: 0 0 12px; font-family: 'Insegna', sans-serif; font-weight: 400; font-size: 26px; color: var(--cartella-4); }
.finestra h4 { margin: 18px 0 6px; font-size: 17px; }
.finestra p, .finestra li { font-size: 15px; line-height: 1.55; max-width: 68ch; }
.finestra .chiudi { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; color: #6a5440; }
.finestra table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.finestra td, .finestra th { padding: 6px 8px; border-bottom: 1px solid rgba(36, 21, 11, .15); text-align: left; }
.finestra .riga { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(36, 21, 11, .12); }
.finestra select, .finestra input[type=text] { font: inherit; padding: 8px 10px; border: 2px solid #8a6a4a; border-radius: 4px; background: #fffaf0; color: #24150b; }
.finestra input[type=range] { width: 160px; accent-color: var(--cartella-4); }
.bottone { display: inline-block; padding: 12px 18px; border: 0; border-radius: 4px; background: var(--cartella-4); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.bottone.blu { background: var(--cartella-1); }
.bottone:hover { filter: brightness(1.1); }
.codice { font-family: 'Arcade', monospace; font-size: 28px; letter-spacing: .2em; color: var(--cartella-1); }
.lista-mosse { width: min(640px, 94vw); max-height: 52vh; overflow: auto; text-align: left; background: var(--carta); color: #24150b; border-radius: 6px; padding: 16px 20px; }
.lista-mosse td:first-child { font-weight: 700; } .lista-mosse td { padding: 5px 6px; font-size: 14px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
kbd, .freccia { font-family: 'Arcade', monospace; font-size: 10px; padding: 2px 5px; border-radius: 3px; background: #24150b; color: var(--carta); }
#sFine p { max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--testo); }
#finePunti { font-family: 'Arcade', monospace; font-size: 12px; line-height: 2; color: var(--vita); }

/* caricamento */
#caricamento { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; align-content: center; gap: 16px; background: rgba(13, 8, 6, .86); font-family: 'Arcade', monospace; font-size: 11px; color: var(--testo-2); }
.giro { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d6a8, var(--legno) 55%, var(--legno-scuro)); animation: rimbalza .6s cubic-bezier(.3, 0, .7, 1) infinite alternate; box-shadow: 0 10px 14px rgba(0, 0, 0, .5); }
@keyframes rimbalza { to { transform: translateY(-24px) rotate(180deg); } }

/* allenamento: riquadri e storia dei tasti */
#allenamento { position: fixed; left: max(10px, env(safe-area-inset-left)); top: 30%; z-index: 4; font-family: 'Arcade', monospace; font-size: 9px; line-height: 1.9; color: var(--testo); text-shadow: 0 2px 0 #000; pointer-events: none; }

@media (max-width: 760px) {
  .scelta { grid-template-columns: 1fr 1fr; }
  .griglia { grid-column: 1 / -1; order: -1; }
  .anteprima { min-height: 0; }
  .anteprima .grande { max-width: 120px; }
}
@media (max-height: 820px) {
  .voci button { padding: 7px 12px; font-size: 18px; } .voci button small { font-size: 12px; }
  .voci button::before { width: 34px; height: 34px; font-size: 11px; }
  #sMenu { gap: 12px; }
  .logo-piccolo { font-size: 44px; }
}
@media (max-height: 460px) {
  .voci button { padding: 6px 10px; font-size: 15px; } .voci button small { display: none; }
  .voci button::before { width: 30px; height: 30px; font-size: 10px; }
  .logo-piccolo { font-size: 30px; }
  .scelta { gap: 8px; } .anteprima .grande { max-width: 110px; }
  .casella { aspect-ratio: 4 / 3.4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
