/* Sala giochi del TotoMorte: struttura dei giochi (dal mockup) e, sotto, il tema Requiem. */
.view[hidden] { display:none !important; }
/* ===== Struttura dei giochi ===== */
.view[hidden] { display:none !important; }
.lumi-pill { display:inline-flex; align-items:center; gap:.3rem; min-height:40px; padding:0 .75rem; border:2px solid var(--line); border-radius:99px; background:var(--marigold); color:#121212; font-weight:800; }
.lumi-pill b { font-variant-numeric: tabular-nums; }
.nav .only-sm { display:none; }
@media (max-width: 520px) { .lumi-pill { display:none; } .nav .only-sm { display:flex; } .ar-intro .stat b { font-size: 1.9rem; } }

.ar-hero { display:grid; grid-template-columns: 1.25fr 1fr; gap:1.25rem; align-items:stretch; }
@media (max-width: 900px) { .ar-hero { grid-template-columns: 1fr; } }
.ar-intro { padding: 1.6rem 1.5rem; }
.ar-intro .epitaph { margin:.6rem 0 1rem; font-size:1.45rem; }
.ar-intro .stat-strip { margin-top: 1.2rem; }
.daily { padding: 1.4rem 1.4rem 1.3rem; background: var(--lime); color:#121212; display:flex; flex-direction:column; gap:.9rem; }
.daily .kicker { align-self:flex-start; background:#121212; color:#fff; }
.daily h2 { font: 900 2.2rem/1 var(--display); font-stretch: 70%; text-transform: uppercase; margin:0; }
.daily p { margin:0; font-weight:600; }
.faces { display:grid; grid-template-columns: repeat(5, 1fr); gap:.5rem; }
.faces span { aspect-ratio: 3/4; border: 2px solid #121212; border-radius: 8px; background: repeating-linear-gradient(-45deg, #ffffff88 0 6px, transparent 6px 12px), var(--card); display:grid; place-items:center; font: 900 1.8rem var(--display); color: var(--ink); }
.daily .row { display:flex; align-items:center; justify-content:space-between; gap:.8rem; flex-wrap:wrap; }
.daily .clock { font: 800 .9rem var(--body); display:inline-flex; gap:.35rem; align-items:center; }
.played { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; font-weight:700; font-size:.9rem; }
.played .av { width:30px; height:30px; border-radius:50%; border:2px solid #121212; overflow:hidden; display:inline-block; }

.games { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.game { padding: 1.2rem; display:flex; flex-direction:column; gap:.6rem; position:relative; }
.game .ico { width:56px; height:56px; border:var(--bw) solid var(--line); border-radius: 12px; display:grid; place-items:center; background: var(--g, var(--marigold)); color:#121212; }
.game .ico .i { width:30px; height:30px; }
.game h3 { font: 900 1.45rem/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin:0; }
.game p { margin:0; color:var(--muted); font-weight:600; }
.game .acts { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:auto; padding-top:.4rem; }
.game.soon { border-style: dashed; box-shadow:none; opacity:.85; }
.game .tag { position:absolute; top:1rem; right:1rem; font: 800 .7rem var(--body); letter-spacing:.1em; text-transform:uppercase; padding:.2rem .5rem; border:2px solid var(--line); border-radius: 6px; background: var(--card); }
.game.star { background: var(--card); outline: 4px solid var(--marigold); outline-offset: -10px; }

.two { display:grid; grid-template-columns: 1.4fr 1fr; gap:1.25rem; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.mini-rank { padding: 1.1rem 1.2rem; }
.mini-rank h3, .box h3.t { font: 900 1.05rem var(--display); text-transform: uppercase; font-stretch: 80%; margin: 0 0 .7rem; display:flex; align-items:center; gap:.4rem; }
.mini-rank ol { list-style:none; margin:0; padding:0; display:grid; gap:.4rem; }
.mini-rank li { display:grid; grid-template-columns: 2rem 32px 1fr auto; align-items:center; gap:.55rem; font-weight:700; padding:.3rem .2rem; border-radius:8px; }
.mini-rank li.me { background: var(--lime); color:#121212; }
.mini-rank li > b:first-child { font: 900 1.3rem var(--display); font-stretch:65%; text-align:center; }
.mini-rank .av { width:32px; height:32px; border-radius:50%; border:2px solid var(--line); overflow:hidden; }
.mini-rank .sc { font: 900 1.3rem var(--display); font-stretch:65%; font-variant-numeric: tabular-nums; }
.medals { display:flex; flex-wrap:wrap; gap:.5rem; }
.medal { display:inline-flex; align-items:center; gap:.35rem; padding:.35rem .7rem; border:2px solid var(--line); border-radius:99px; font-weight:800; font-size:.85rem; background: var(--card); }
.medal.off { opacity:.45; border-style:dashed; }
.medal i { width: 18px; height:18px; border-radius:50%; border:2px solid var(--line); background: var(--m, var(--marigold)); display:inline-block; }

/* ===== Partita ===== */
.g-top { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1rem; }
.g-top h1 { font: 900 clamp(1.8rem,4vw,2.6rem)/1 var(--display); font-stretch:70%; text-transform:uppercase; margin:.3rem 0 0; }
.dots { display:flex; gap:.4rem; }
.dots span { width:38px; height:38px; border:2px solid var(--line); border-radius:8px; display:grid; place-items:center; font: 900 1rem var(--display); background:var(--card); }
.dots span.now { background: var(--ink); color: var(--paper); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.dots span.e0 { background:#3BD16F; color:#121212; } .dots span.e1 { background: var(--marigold); color:#121212; } .dots span.e2 { background:#FF9F43; color:#121212; } .dots span.e3 { background: var(--tomato); color:#121212; }
.total { text-align:right; }
.total small { display:block; font-weight:800; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.total b { font: 900 2.4rem/1 var(--display); font-stretch:60%; font-variant-numeric: tabular-nums; }
.board { display:grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 1.4rem; align-items:start; }
@media (max-width: 820px) { .board { grid-template-columns: 1fr; } }
.shot-card { overflow:hidden; padding:0; }
.shot-card .ph { position:relative; aspect-ratio: 3/4; background: var(--paper); border-bottom: var(--bw) solid var(--line); overflow:hidden; }
.shot-card .ph > svg { position:absolute; inset:0; width:100%; height:100%; }
.shot-card .cap { padding: .9rem 1rem 1rem; }
.shot-card .cap b { display:block; font: 900 1.7rem/1 var(--display); font-stretch: 70%; text-transform: uppercase; }
.shot-card .cap small { font-weight:700; color:var(--muted); }
.shot-card .badge-dead { position:absolute; top:.8rem; left:.8rem; z-index:2; background:#121212; color:#fff; font: 800 .72rem var(--body); letter-spacing:.1em; text-transform:uppercase; padding:.3rem .55rem; border-radius:6px; }
@media (max-width: 820px) { .shot-card { display:grid; grid-template-columns: 130px 1fr; } .shot-card .ph { border-bottom:0; border-right: var(--bw) solid var(--line); } .shot-card .cap { align-self:center; } }
.panel { padding: 1.4rem 1.5rem; }
.panel .q { font: 900 clamp(1.6rem,3.4vw,2.4rem)/1.05 var(--display); font-stretch: 72%; text-transform: uppercase; margin: 0 0 .3rem; }
.panel .hint { margin:0 0 1rem; color: var(--muted); font-weight:600; }
.guess { display:flex; align-items:center; justify-content:center; gap:1rem; margin: .6rem 0 1rem; }
.guess output { font: 900 clamp(5rem,14vw,8.5rem)/.85 var(--display); font-stretch: 55%; font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align:center; }
.guess output + small { font: 800 1rem var(--body); text-transform: uppercase; letter-spacing:.1em; }
.step { width:56px; height:56px; border:var(--bw) solid var(--line); border-radius: 50%; background: var(--card); display:grid; place-items:center; cursor:pointer; box-shadow: var(--sh-sm); transition: transform .15s, box-shadow .15s; color: var(--ink); }
.step:active { transform: translate(3px,3px); box-shadow:none; }
.step .i { width: 26px; height: 26px; }
input.age { -webkit-appearance:none; appearance:none; width:100%; height:22px; border: var(--bw) solid var(--line); border-radius:99px; background: linear-gradient(90deg, var(--mint), var(--marigold) 55%, var(--tomato)); padding:0; min-height:0; cursor:pointer; }
input.age::-webkit-slider-thumb { -webkit-appearance:none; width:44px; height:44px; border-radius:50%; background: var(--card); border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--line); }
input.age::-moz-range-thumb { width:38px; height:38px; border-radius:50%; background: var(--card); border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--line); }
input.age:focus-visible { outline: 3px solid var(--lilac); outline-offset: 4px; }
.scale { position:relative; height:1.2rem; font: 800 .78rem var(--body); color: var(--muted); margin: .45rem 20px 0; }
.scale span { position:absolute; transform:translateX(-50%); }
.ph-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 22%; }
.ph-ini { position:absolute; inset:0; display:grid; place-items:center; font: 900 4rem var(--display); color: var(--muted); }
.recap .ph-ini { font-size: 1.2rem; }
.ph-dead .ph-img { filter: grayscale(1) contrast(1.1); }
#avpool { display:none; }
.panel .go { width:100%; justify-content:center; margin-top: 1.3rem; min-height: 58px; font-size: 1.15rem; }
.reveal[hidden], .ask[hidden] { display:none; }
.reveal .truth { display:flex; align-items:baseline; gap:.8rem; flex-wrap:wrap; }
.reveal .truth b { font: 900 clamp(4rem,11vw,6.5rem)/.85 var(--display); font-stretch:55%; }
.reveal .truth span { font-weight:800; font-size:1.1rem; }
.ruler { width:100%; height:auto; margin: 1rem 0 .4rem; overflow:visible; }
.pts-big { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: .8rem 1rem; border: var(--bw) solid var(--line); border-radius: var(--r); margin-top: .6rem; color:#121212; }
.pts-big b { font: 900 3rem/1 var(--display); font-stretch:60%; font-variant-numeric: tabular-nums; }
.pts-big small { font-weight:800; text-transform: uppercase; letter-spacing:.08em; }
.pts-big.e0 { background:#3BD16F; } .pts-big.e1 { background: var(--marigold); } .pts-big.e2 { background:#FF9F43; } .pts-big.e3 { background: var(--tomato); }
.quip { margin: .8rem 0 0; }

/* ===== Fine partita ===== */
.end { display:grid; grid-template-columns: 1.1fr 1fr; gap:1.25rem; }
@media (max-width: 900px) { .end { grid-template-columns: 1fr; } }
.score-card { padding: 1.6rem 1.5rem; text-align:center; background: var(--marigold); color:#121212; }
.score-card .big { font: 900 clamp(5rem,16vw,9rem)/.85 var(--display); font-stretch: 55%; font-variant-numeric: tabular-nums; }
.score-card .of { font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.score-card .title { display:inline-block; margin-top: .9rem; font: 900 1.5rem var(--display); font-stretch:75%; text-transform:uppercase; background:#121212; color:#fff; padding:.35rem .8rem; border-radius:8px; }
.score-card .emo { font-size: 2.2rem; letter-spacing:.2rem; margin: .8rem 0 .2rem; }
.score-card .lumi { display:inline-flex; gap:.35rem; align-items:center; font-weight:800; margin-top:.4rem; }
.share { padding: 1.2rem 1.3rem; }
.share pre { white-space: pre-wrap; font: 600 .95rem/1.45 var(--mono, ui-monospace, monospace); background: var(--paper); border: 2px dashed var(--line); border-radius: 8px; padding: .8rem 1rem; margin: 0 0 .9rem; }
.share .acts { display:flex; gap:.6rem; flex-wrap:wrap; }
.btn.wa { background:#25D366; }
.recap { list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.recap li { display:grid; grid-template-columns: 52px 1fr auto auto; gap:.8rem; align-items:center; padding:.5rem .7rem; }
.recap .av { width:52px; height:52px; border-radius:8px; border:2px solid var(--line); overflow:hidden; position:relative; }
.recap .nums { text-align:right; font-weight:700; font-size:.9rem; }
.recap .p { font: 900 1.5rem var(--display); font-stretch:60%; min-width: 3.2ch; text-align:right; }
.recap .e { width: 26px; height: 26px; border-radius: 6px; border:2px solid var(--line); }
.e0b { background:#3BD16F; } .e1b { background: var(--marigold); } .e2b { background:#FF9F43; } .e3b { background: var(--tomato); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(250%); visibility: hidden; background: var(--ink); color: var(--paper); padding: .8rem 1.2rem; border-radius: 10px; font-weight: 800; transition: transform .3s var(--bounce), visibility .3s; z-index: 50; }
.toast.on { transform: translateX(-50%) translateY(0); visibility: visible; }

/* ===== Classifiche e regole ===== */
.rk-tools { display:flex; gap:.8rem; flex-wrap:wrap; align-items:center; margin-bottom: 1rem; }
.rules { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:1.1rem; }
.rules .box { padding: 1.1rem 1.3rem; }
.rules ul { margin: .3rem 0 0; padding-left: 1.2rem; } .rules li { margin: .3rem 0; }
.ptab { width:100%; border-collapse: collapse; font-weight:700; }
.ptab td, .ptab th { padding: .35rem .5rem; border-bottom: 2px solid var(--line); text-align:left; }
@media (max-width: 600px) { #v-classifiche .rank th:nth-child(3), #v-classifiche .rank td:nth-child(3), #v-classifiche .rank th:nth-child(4), #v-classifiche .rank td:nth-child(4) { display:none; } #v-classifiche .rank td { padding:.5rem .45rem; } #v-classifiche .rank .who { overflow-wrap:anywhere; font-size:.9rem; } #v-classifiche .rank .who .av { width:32px; height:32px; } }
.ptab td:last-child, .ptab th:last-child { text-align:right; font-variant-numeric: tabular-nums; }
/* ===== Altri giochi ===== */
.chips-row { display:flex; flex-wrap:wrap; gap:.4rem; }
.sg-end { padding: 1.6rem 1.4rem; text-align:center; background: var(--marigold); color:#121212; border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--sh); max-width: 620px; margin: 1rem auto 0; }
.sg-end .kicker { background:#121212; color:#fff; }
.sg-end .big { font: 900 clamp(4.5rem,14vw,7.5rem)/.85 var(--display); font-stretch:55%; margin-top:.6rem; font-variant-numeric: tabular-nums; }
.sg-end .of { font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.sg-end .emo { font-size: 1.8rem; letter-spacing:.15rem; margin:.7rem 0 .2rem; }
.sg-end .title { display:inline-block; margin-top:.5rem; font: 900 1.3rem var(--display); font-stretch:75%; text-transform:uppercase; background:#121212; color:#fff; padding:.3rem .7rem; border-radius:8px; }
.sg-end pre { text-align:left; white-space:pre-wrap; font: 600 .9rem/1.45 ui-monospace, monospace; background:#FFFDF7; color:#121212; border:2px dashed #121212; border-radius:8px; padding:.7rem .9rem; margin:1rem 0 .9rem; }
.sg-end .acts { display:flex; gap:.5rem; flex-wrap:wrap; justify-content:center; }
.sg-end .btn.alt { background:#FFFDF7; color:#121212; border-color:#121212; }

/* Lapide */
@media (min-width: 821px) { .lp-board { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); } }
.board > * { min-width: 0; }
.lp-stone { width:100%; max-width:400px; justify-self:center; text-align:center; padding: 1.6rem 1.2rem 1.4rem; border-radius: 190px 190px 14px 14px; }
.oval { width: 150px; height: 190px; margin: 0 auto .8rem; border-radius: 50%; border: var(--bw) solid var(--line); overflow:hidden; position:relative; background: var(--paper); }
.oval .ph-img { filter: blur(var(--blur, 20px)) grayscale(1) !important; transform: scale(1.15); transition: filter .7s; }
.oval .ph-ini { opacity:0; }
.lp-stone > small { font: 800 .75rem var(--body); letter-spacing:.25em; text-transform:uppercase; color: var(--muted); }
.lp-stone > b { display:block; font: 900 1.9rem/1 var(--display); font-stretch:70%; text-transform:uppercase; margin:.3rem 0 .9rem; letter-spacing:.04em; }
.clues { list-style:none; margin:0; padding:0; display:grid; gap:.35rem; text-align:left; }
.clues li { padding:.45rem .7rem; border:2px solid var(--line); border-radius:8px; font-weight:800; background: var(--card); }
.clues li small { display:inline-block; min-width: 7.5em; font: 800 .68rem var(--body); letter-spacing:.08em; text-transform:uppercase; color: var(--muted); }
.clues li.off { border-style:dashed; color: var(--muted); background: transparent; font-weight:600; font-size:.9rem; }
.clues li.new { animation: lp-pop .5s var(--bounce); background: var(--lime); color:#121212; }
.clues li.new small { color:#121212; }
@keyframes lp-pop { from { transform: scale(.85); opacity:0; } }
.lp-form { display:flex; gap:.5rem; }
.lp-form input { flex:1; min-width:0; min-height:52px; padding:0 .9rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font: 700 1.05rem var(--body); }
.lp-scroll { overflow-x:auto; margin: 1rem 0 .4rem; }
.lp-tries { width:100%; min-width: 440px; border-collapse: separate; border-spacing: 0 .35rem; font-size:.88rem; }
.lp-tries th { text-align:left; font: 800 .66rem var(--body); text-transform:uppercase; letter-spacing:.08em; color:var(--muted); padding: 0 .45rem; }
.lp-tries td { padding:.45rem; border-top:2px solid var(--line); border-bottom:2px solid var(--line); font-weight:800; background: var(--card); }
.lp-tries td:first-child { border-left:2px solid var(--line); border-radius:8px 0 0 8px; }
.lp-tries td:last-child { border-right:2px solid var(--line); border-radius:0 8px 8px 0; }
.lp-tries td.y { background:#3BD16F; color:#121212; } .lp-tries td.n { background: var(--tomato); color:#121212; } .lp-tries td.c { background: var(--marigold); color:#121212; }
.lp-legend { font-size:.82rem; color: var(--muted); font-weight:600; margin: 0 0 .9rem; }

/* Vivo o morto */
.vm-stage { max-width: 380px; margin: 0 auto; text-align:center; }
.vm-card { position:relative; text-align:left; }
.vm-card .ph { aspect-ratio: 1/1 !important; }
.timer { height: 12px; background: var(--paper); border-top: var(--bw) solid var(--line); }
.timer i { display:block; height:100%; width:100%; background: var(--marigold); }
.vm-card.flash-ok { outline: 6px solid #3BD16F; outline-offset: 3px; }
.vm-card.flash-ko { outline: 6px solid var(--tomato); outline-offset: 3px; }
.vm-btns { display:grid; grid-template-columns: 1fr 1fr; gap:.8rem; margin-top: 1.1rem; }
.vm-btns .btn { justify-content:center; flex-direction:column; gap:0; min-height: 76px; font-size: 1.5rem; }
.vm-btns .btn small { font-size:.68rem; opacity:.75; letter-spacing:.1em; }
.vm-yes { background: var(--mint) !important; } .vm-no { background: var(--tomato) !important; }
.vm-msg { min-height: 3em; font-weight:800; margin: .9rem 0 0; }
.vm-msg.ok b { background:#3BD16F; color:#121212; padding: 0 .3rem; border-radius:4px; } .vm-msg.ko b { background: var(--tomato); color:#121212; padding: 0 .3rem; border-radius:4px; }
.lives { display:flex; gap:.25rem; } .lives span { display:grid; place-items:center; width:40px; height:40px; border:2px solid var(--line); border-radius:8px; background: var(--marigold); color:#121212; }
.lives span.off { background: transparent; color: var(--muted); border-style: dashed; opacity:.6; }
@media (max-width: 820px) { .vm-card, .cv-card { display:block !important; } .vm-card .ph { border-right:0 !important; border-bottom: var(--bw) solid var(--line) !important; } }

/* Chi è più vecchio */
.q-line { font: 900 clamp(1.2rem,3vw,1.6rem) var(--display); text-transform: uppercase; font-stretch:75%; margin: 0 0 1rem; text-align:center; }
.cv-duel { display:grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items:center; max-width: 820px; margin: 0 auto; }
.cv-card { padding:0; overflow:hidden; cursor:pointer; text-align:left; color: var(--ink); font: inherit; transition: transform .15s, box-shadow .15s, opacity .3s; }
.cv-card:hover { transform: translate(-2px,-2px); }
.cv-card:focus-visible { outline: 3px solid var(--lilac); outline-offset: 4px; }
.cv-card .ph { display:block; position:relative; aspect-ratio: 1/1; border-bottom: var(--bw) solid var(--line); overflow:hidden; background: var(--paper); }
.cv-card .cap { padding: .8rem 1rem; display:block; }
.cv-card .cap b { display:block; font: 900 1.4rem/1 var(--display); font-stretch:70%; text-transform:uppercase; }
.cv-born { display:block; margin-top:.45rem; font-weight:800; font-size:.92rem; }
.cv-card.ok { background:#3BD16F; color:#121212; } .cv-card.ok small { color:#121212; }
.cv-card.ko { background: var(--tomato); color:#121212; } .cv-card.ko small { color:#121212; }
.cv-vs { width:64px; height:64px; border-radius:50%; border: var(--bw) solid var(--line); background: var(--marigold); color:#121212; display:grid; place-items:center; font: 900 1.4rem var(--display); box-shadow: var(--sh-sm); }
@media (max-width: 600px) { .cv-duel { gap:.4rem; } .cv-vs { width:38px; height:38px; font-size:.85rem; } .cv-card .cap { padding:.5rem; } .cv-card .cap b { font-size:1rem; } .cv-born { font-size:.78rem; } }

/* In che anno */
#an-ask .guess output.an-out { display:block; min-width:0; white-space:nowrap; font: 900 clamp(1.7rem,6vw,3.4rem)/1 var(--display); font-stretch: 58%; text-transform: uppercase; }
#an-ask .guess { gap:.5rem; } #an-ask .guess > div { flex:1; min-width:0; }
@media (max-width: 480px) { #an-ask .step { width:46px; height:46px; } }
.truth .an-true { font-size: clamp(2.6rem,8vw,4.2rem) !important; text-transform: uppercase; }

/* Fila dal Becchino */
.fl-wrap { max-width: 560px; margin: 0 auto; }
.fl-cap { display:flex; align-items:center; gap:.4rem; font: 800 .75rem var(--body); letter-spacing:.12em; text-transform:uppercase; color: var(--muted); margin: .4rem 0; }
.fila { list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.fl-item { display:grid; grid-template-columns: 2.2rem 64px 1fr auto; gap:.7rem; align-items:center; padding:.5rem .6rem; cursor: grab; transition: transform .2s var(--bounce), background .3s; user-select:none; }
.fl-item.drag { opacity:.5; } .fl-item.over { outline: 3px dashed var(--lilac); outline-offset: 2px; }
.fl-item .pos { font: 900 1.6rem var(--display); font-stretch:60%; text-align:center; }
.fl-item .ph { position:relative; width:64px; height:64px; border-radius:10px; border:2px solid var(--line); overflow:hidden; background: var(--paper); display:block; }
.fl-item .ph .ph-ini { font-size: 1.3rem; }
.fl-item b { display:block; font: 900 1.25rem/1 var(--display); font-stretch:72%; text-transform:uppercase; }
.fl-item small { font-weight:700; color: var(--muted); }
.fl-item .fl-born { display:block; color: inherit; font-weight:800; margin-top:.2rem; }
.fl-item .mv { display:flex; flex-direction:column; gap:.3rem; }
.fl-item .mv button { width:44px; height:38px; border:2px solid var(--line); border-radius:8px; background: var(--card); color: var(--ink); cursor:pointer; display:grid; place-items:center; }
.fl-item .mv button:disabled { opacity:.3; cursor: default; }
.fl-item .mv .i { width:20px; height:20px; }
.fl-item.ok { background:#3BD16F; color:#121212; cursor: default; } .fl-item.ok small { color:#121212; }
.fl-item.ko { background: var(--tomato); color:#121212; } .fl-item.ko small { color:#121212; }
.fl-acts { margin-top: 1rem; }
.fl-hist { display:flex; flex-direction:column; align-items:center; gap:.2rem; margin-top:.9rem; font-size: 1.4rem; letter-spacing:.15rem; }
@media (max-width: 480px) { .fl-item { grid-template-columns: 1.6rem 52px 1fr auto; gap:.5rem; } .fl-item .ph { width:52px; height:52px; } .fl-item b { font-size:1.05rem; } }

/* Termometro */
#tm-ask .guess output { min-width: 3ch; }
.tm-big { display:flex; align-items:baseline; gap:.2rem; }

/* Barra «prossima scheda» con pausa */
.nx { margin: 1.1rem auto 0; max-width: 720px; text-align:center; }
.nx-bar { height: 12px; border: 2px solid var(--line); border-radius: 99px; overflow:hidden; background: var(--card); }
.nx-bar i { display:block; height:100%; width:100%; background: var(--lilac); }
.nx.paused .nx-bar i { background: var(--muted); }
.nx-lab { display:block; font: 800 .72rem var(--body); letter-spacing:.1em; text-transform:uppercase; color: var(--muted); margin:.35rem 0 0; }
.nx-acts { display:flex; gap:.5rem; justify-content:center; flex-wrap:wrap; margin-top:.5rem; }
.nx-info { display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap:.6rem; margin-top:.9rem; text-align:left; }
.sch { display:grid; grid-template-columns: 64px 1fr; gap:.75rem; padding:.7rem; align-items:start; }
.sch .ph { position:relative; width:64px; height:80px; border-radius:8px; border:2px solid var(--line); overflow:hidden; background: var(--paper); display:block; }
.sch .ph .ph-ini { font-size:1.2rem; }
.sch b { display:block; font: 900 1.15rem/1 var(--display); font-stretch:72%; text-transform:uppercase; }
.sch dl { display:grid; grid-template-columns:auto 1fr; gap:.1rem .6rem; margin:.45rem 0; font-size:.85rem; }
.sch dt { font-weight:800; color: var(--muted); } .sch dd { margin:0; font-weight:700; }
.sch a { font-weight:800; font-size:.85rem; color: inherit; }

/* Quiz */
.qz-start { max-width: 640px; margin: 0 auto; padding: 1.4rem; display:grid; gap:.8rem; }
.qz-mode { display:grid; grid-template-columns: 56px 1fr; gap:.9rem; align-items:center; text-align:left; padding:1rem; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); cursor:pointer; box-shadow: var(--sh-sm); font: inherit; transition: transform .15s, box-shadow .15s; }
.qz-mode:hover { transform: translate(-2px,-2px); box-shadow: var(--sh); }
.qz-mode b { display:block; font: 900 1.4rem/1 var(--display); font-stretch:72%; text-transform:uppercase; margin-bottom:.25rem; }
.qz-mode .ico { width:56px; height:56px; border: var(--bw) solid var(--line); border-radius:12px; display:grid; place-items:center; background: var(--g); color:#121212; }
.qz-mode .ico .i { width:28px; height:28px; }
.at { display:flex; align-items:center; gap:.7rem; max-width: 720px; margin: 0 auto 1rem; }
.at-bar { flex:1; height: 18px; border: var(--bw) solid var(--line); border-radius:99px; overflow:hidden; background: var(--card); }
.at-bar i { display:block; height:100%; width:100%; background: var(--mint); transition: background .3s; }
.at.low .at-bar i { background: var(--tomato); }
.at-s { min-width: 3.2rem; text-align:center; font: 900 1.6rem/1 var(--display); font-stretch:60%; font-variant-numeric: tabular-nums; padding:.25rem .4rem; border: var(--bw) solid var(--line); border-radius: 10px; background: var(--card); }
.at.low .at-s { background: var(--tomato); color:#121212; animation: at-pulse .5s ease-in-out infinite alternate; }
.at.stop .at-bar i { background: var(--muted); } .at.stop .at-s { animation:none; }
@keyframes at-pulse { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .at.low .at-s { animation:none; } }
.qz-timer { height: 12px; border:2px solid var(--line); border-radius:99px; overflow:hidden; background: var(--card); max-width: 720px; margin: 0 auto 1rem; }
.qz-timer i { display:block; height:100%; width:100%; background: var(--marigold); }
.qz-photo { width: min(280px, 64vw); margin: 0 auto 1rem; overflow:hidden; padding:0; }
.qz-photo[hidden] { display:none; }
.qz-photo .ph { position:relative; aspect-ratio: 3/4; display:block; }
.qz-opts { display:grid; gap:.7rem; max-width: 720px; margin: 0 auto; }
.qz-opts.txt { grid-template-columns: 1fr 1fr; }
.qz-opts.cards { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 920px; }
@media (max-width: 700px) { .qz-opts.cards { grid-template-columns: 1fr 1fr; } .qz-opts.txt { grid-template-columns: 1fr; } }
.qz-opt { padding:0; overflow:hidden; cursor:pointer; text-align:left; color: var(--ink); font: inherit; transition: transform .15s, opacity .3s; }
.qz-opt:hover:not(:disabled) { transform: translate(-2px,-2px); }
.qz-opt:disabled { cursor: default; }
.qz-opt .ph { position:relative; display:block; aspect-ratio: 1/1; border-bottom: var(--bw) solid var(--line); background: var(--paper); overflow:hidden; }
.qz-opt .cap { display:block; padding: .6rem .7rem; }
.qz-opt .cap b { display:block; font: 900 1.1rem/1 var(--display); font-stretch:72%; text-transform:uppercase; }
.qz-opt .k { display:inline-grid; place-items:center; width:1.7rem; height:1.7rem; flex:none; border:2px solid currentColor; border-radius:6px; font-weight:900; font-size:.85rem; margin-right:.6rem; }
.qz-opts.txt .qz-opt { padding:.9rem 1rem; min-height:62px; display:flex; align-items:center; font-weight:800; font-size:1.1rem; }
.qz-opt .fact { display:block; font-weight:700; font-size:.8rem; margin-top:.3rem; }
.qz-opt.ok { background:#3BD16F; color:#121212; } .qz-opt.ko { background: var(--tomato); color:#121212; }
.qz-opt.ok small, .qz-opt.ko small { color:#121212; } .qz-opt.dim { opacity:.55; }

@media (prefers-reduced-motion: reduce) { .fl-item { transition:none; } .toast, .dots span, .oval .ph-img, .clues li.new { transition:none; animation:none; } }

/* ===================== TEMA REQUIEM ===================== */
/* =====================================================================
   Sala giochi — tema REQUIEM
   Eleganza alla Apple (Liquid Glass, Inter, grafite) con toni da obitorio.
   Si carica DOPO style.css e dopo gli stili in pagina: tutto è sotto html.rq.
   Design system: design-system/totomorte/pages/sala-giochi.md
   ===================================================================== */

/* ---------- token ---------- */
html.rq:root {
  --paper: #000; --card: rgba(30,30,34,.62); --ink: #F5F5F7; --muted: #8E8E93; --line: rgba(255,255,255,.12);
  --tomato: #FF453A; --marigold: #FFD60A; --lime: #30D158; --lilac: #BF5AF2; --mint: #64D2FF; --good: #30D158;
  --orange: #FF9F0A; --glass: rgba(255,255,255,.07); --glass-2: rgba(255,255,255,.04); --hair: rgba(255,255,255,.12);
  --bw: 1px; --r: 20px; --sh: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 50px rgba(0,0,0,.5); --sh-sm: 0 8px 20px rgba(0,0,0,.4);
  --display: 'Inter', -apple-system, 'SF Pro Display', system-ui, sans-serif; --body: 'Inter', -apple-system, 'SF Pro Text', system-ui, sans-serif; --serif: 'Inter', system-ui, sans-serif;
  --il-ink: rgba(245,245,247,.85); --il-a: #FF453A; --il-b: #3A3A3C; --il-c: #1C1C1E; --il-paper: #2C2C2E; --il-skin: #636366; --il-sw: 2;
  color-scheme: dark; font-synthesis: none;
}
.rq body { background: #000; background-image: none; color: var(--ink); font-weight: 400; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
.rq body::before { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 18% 28%, rgba(120,10,22,.55), transparent 40%), radial-gradient(circle at 82% 18%, rgba(70,24,120,.42), transparent 42%), radial-gradient(circle at 60% 92%, rgba(90,6,16,.4), transparent 45%);
  filter: blur(40px); animation: rq-breathe 14s ease-in-out infinite alternate; }
@keyframes rq-breathe { from { transform: scale(1); opacity: .8; } to { transform: scale(1.12) translate(-3%, 2%); opacity: 1; } }
.rq :focus-visible { outline: 2px solid #0A84FF; outline-offset: 3px; }
.rq .garland, .rq .style-menu, .rq #theme { display: none !important; }

/* ---------- tipografia ---------- */
.rq .display, .rq h1, .rq h2, .rq h3, .rq .g-top h1, .rq .logo b { font-family: var(--display); font-stretch: normal; text-transform: none; text-shadow: none; }
.rq .display, .rq .g-top h1 { font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.rq .stretch:hover { font-stretch: normal; letter-spacing: -.04em; }
.rq .h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); letter-spacing: -.055em; background: linear-gradient(180deg, #fff 30%, #6E6E73); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rq .h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.rq .epitaph { font-family: var(--body); font-style: normal; font-weight: 400; color: var(--muted); letter-spacing: -.01em; }
.rq .kicker { background: none; color: var(--muted); padding: 0; font: 600 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; border-radius: 0; }
.rq .muted { color: var(--muted); }
.rq .small { font-size: .85rem; }

/* ---------- vetro ---------- */
.rq .box { background: var(--card); -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); color: var(--ink); }

/* ---------- testata ---------- */
.rq .top { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line); }
.rq .top-in { min-height: 64px; }
.rq .logo .skull path:first-child { fill: #1C1C1E; stroke: #F5F5F7; }
.rq .logo .skull circle { fill: #FF453A; stroke: none; }
.rq .logo .skull circle + circle { fill: #F5F5F7; }
.rq .logo b { font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.rq .logo b em { color: var(--tomato); -webkit-text-stroke: 0; text-shadow: none; margin-left: .22em; }
.rq .nav a { font-weight: 500; font-size: .9rem; text-transform: none; letter-spacing: -.01em; border: 0; border-radius: 999px; color: rgba(245,245,247,.8); }
.rq .nav a:hover { background: var(--glass); color: #fff; }
.rq .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }
.rq .icon-btn { background: var(--glass); border: 1px solid var(--line); color: var(--ink); }
.rq .icon-btn:hover { transform: none; background: rgba(255,255,255,.12); }
.rq .lumi-pill { background: var(--glass); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.rq .lumi-pill .i { color: var(--tomato); }

/* ---------- pulsanti, chip, segmenti ---------- */
.rq .btn { border-radius: 999px; background: #F5F5F7; color: #000; border: 0; box-shadow: none; text-transform: none; letter-spacing: -.01em; font: 600 1rem var(--body); transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, opacity .2s; }
.rq .btn:hover { transform: scale(1.02); background: #fff; box-shadow: none; }
.rq .btn:active { transform: scale(.97); box-shadow: none; }
.rq .btn.alt { background: var(--glass); color: #fff; border: 1px solid var(--line); }
.rq .btn.alt:hover { background: rgba(255,255,255,.12); }
.rq .btn.gold { background: #F5F5F7; color: #000; }
.rq .btn.wa { background: #30D158; color: #000; }
.rq .btn.sm { font-size: .88rem; }
.rq .chip { background: var(--glass); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.rq .chip:hover { transform: none; background: rgba(255,255,255,.12); }
.rq .chip[aria-pressed="true"] { background: #F5F5F7; color: #000; border-color: transparent; }
.rq .seg { border: 1px solid var(--line); border-radius: 999px; background: var(--glass-2); padding: 3px; gap: 2px; }
.rq .seg button { border: 0 !important; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; min-height: 38px; }
.rq .seg button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- numeri ---------- */
.rq .stat { background: var(--glass-2); border-radius: 16px; box-shadow: none; }
.rq .stat b { font: 600 1.9rem/1.1 var(--display); font-stretch: normal; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rq .stat small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.rq .total b { font: 300 2.6rem/1 var(--display); font-stretch: normal; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rq .total small { letter-spacing: .06em; font-weight: 600; }

/* ---------- home ---------- */
.rq .ar-intro .stat-strip { gap: .6rem; }
.rq .daily { background: var(--card); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 90px rgba(255,69,58,.18), 0 30px 60px rgba(0,0,0,.55); }
.rq .daily .kicker { background: none; color: var(--muted); }
.rq .daily h2 { font: 700 2.4rem/1 var(--display); letter-spacing: -.04em; }
.rq .daily p { color: var(--muted); font-weight: 400; }
.rq .faces span { background: var(--glass-2); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font: 300 1.8rem var(--display); }
.rq .daily .clock b { font-variant-numeric: tabular-nums; }
.rq .played .av { border: 1px solid var(--line); }
.rq .played { font-weight: 500; color: var(--muted); }
.rq .games { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.rq .game { background: var(--card); padding: .7rem .7rem 1.1rem; gap: .45rem; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.rq .game:hover { transform: translateY(-4px); }
.rq .game.star { outline: 0; box-shadow: inset 0 0 0 1px rgba(255,69,58,.35), 0 0 50px rgba(255,69,58,.14), var(--sh); }
.rq .game .ico { display: none; }
.rq .game .scr { display: block; aspect-ratio: 16/10; border-radius: 15px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--g) 26%, transparent), transparent 70%), rgba(0,0,0,.25); }
.rq .game .scr .ill { width: 100%; height: 100%; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.rq .game:hover .scr .ill { transform: scale(1.05); }
.rq .game .ill text { font-family: var(--display); font-weight: 700; }
.rq .game h3 { font: 700 1.2rem/1.1 var(--display); letter-spacing: -.02em; padding: 0 .35rem; }
.rq .game p { color: var(--muted); font-weight: 400; font-size: .9rem; padding: 0 .35rem; }
.rq .game .acts { padding: 0 .35rem; }
.rq .game .tag { top: 1.2rem; right: 1.2rem; z-index: 1; border: 0; border-radius: 999px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #F5F5F7; font: 600 .66rem var(--body); letter-spacing: .06em; padding: .3rem .6rem; }
.rq .mini-rank h3, .rq .box h3.t { font: 600 1.1rem var(--display); text-transform: none; letter-spacing: -.02em; }
.rq .mini-rank li { border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 500; }
.rq .mini-rank li:last-child { border-bottom: 0; }
.rq .mini-rank li.me { background: rgba(255,69,58,.14); color: var(--ink); border-radius: 12px; border-bottom-color: transparent; }
.rq .mini-rank li > b:first-child, .rq .mini-rank .sc { font: 600 1rem var(--display); font-stretch: normal; font-variant-numeric: tabular-nums; }
.rq .mini-rank li > b:first-child { color: var(--muted); }
.rq .mini-rank .av, .rq .rank .who .av { border: 1px solid var(--line); }
.rq .medal { background: var(--glass); border: 1px solid var(--line); font-weight: 500; }
.rq .medal i { border: 0; }
.rq .medal.off { border-style: solid; opacity: .45; }

/* ---------- classifiche e regole ---------- */
.rq table.rank { border-spacing: 0 .35rem; }
.rq .rank th { color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.rq .rank td { background: var(--glass-2); border-color: transparent !important; font-weight: 500; }
.rq .rank td:first-child, .rq .rank td:last-child { font: 600 1.1rem var(--display); font-stretch: normal; font-variant-numeric: tabular-nums; }
.rq .rank td:first-child { color: var(--muted); }
.rq .rank tr.me td { background: rgba(255,69,58,.14); color: var(--ink); }
.rq .rules .box { padding: 1.2rem 1.3rem; }
.rq .ptab td, .rq .ptab th { border-bottom: 1px solid var(--line); font-weight: 500; }

/* ---------- partita: testata, round, foto ---------- */
.rq .g-top h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rq .dots span { border: 1px solid var(--line); border-radius: 50%; background: var(--glass); color: var(--muted); font: 600 .85rem var(--display); box-shadow: none; }
.rq .dots span.now { background: #F5F5F7; color: #000; transform: none; box-shadow: none; }
.rq .dots span.e0 { background: #30D158; color: #000; border-color: transparent; }
.rq .dots span.e1 { background: #FFD60A; color: #000; border-color: transparent; }
.rq .dots span.e2 { background: #FF9F0A; color: #000; border-color: transparent; }
.rq .dots span.e3 { background: #FF453A; color: #fff; border-color: transparent; }
.rq .shot-card .ph { background: #0B0B0D; border-color: var(--line); }
.rq .ph-img { filter: grayscale(.4) contrast(1.06) brightness(.95); }
.rq .shot-card .ph::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0,0,0,.65)); }
.rq .shot-card .cap b { font: 700 1.5rem/1.05 var(--display); letter-spacing: -.03em; text-transform: none; font-stretch: normal; }
.rq .shot-card .cap small { font-weight: 500; }
.rq .badge-dead { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; letter-spacing: .04em; }
.rq .panel .q, .rq .q-line { font: 700 clamp(1.5rem, 3.2vw, 2.1rem)/1.08 var(--display); letter-spacing: -.035em; text-transform: none; font-stretch: normal; }
.rq .q-line { font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--muted); font-weight: 600; }
.rq .panel .hint { font-weight: 400; }

/* ---------- risposta numerica ---------- */
.rq .guess output { font: 200 clamp(5rem, 15vw, 8rem)/.85 var(--display); font-stretch: normal; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.rq #an-ask .guess output.an-out { font: 300 clamp(1.8rem, 6vw, 3rem)/1 var(--display); letter-spacing: -.03em; text-transform: none; }
.rq .guess output + small, .rq .guess small { font-weight: 500; letter-spacing: .04em; color: var(--muted); text-transform: none; }
.rq .step { background: var(--glass); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.rq .step:active { transform: scale(.94); }
.rq input.age { height: 30px; border: 0; background: transparent; }
.rq input.age::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,69,58,.85)); }
.rq input.age::-moz-range-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,69,58,.85)); }
.rq input.age::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -13px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.08); }
.rq input.age::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.rq .scale { font-weight: 500; }
.rq .panel .go { min-height: 54px; font-size: 1.05rem; }
.rq .reveal .truth b { font: 200 clamp(4rem, 11vw, 6rem)/.9 var(--display); letter-spacing: -.06em; font-stretch: normal; }
.rq .reveal .truth span { font-weight: 500; color: var(--muted); }
.rq .ruler line { stroke: rgba(255,255,255,.35); }
.rq .ruler text { fill: var(--muted); font-family: var(--body); }
.rq .ruler circle { stroke: #000; }
.rq .ruler rect { fill: #FF453A; }
.rq .pts-big { border: 0; border-radius: 16px; color: var(--ink); }
.rq .pts-big b { font: 300 2.6rem/1 var(--display); letter-spacing: -.04em; font-stretch: normal; font-variant-numeric: tabular-nums; }
.rq .pts-big small { letter-spacing: .02em; text-transform: none; font-weight: 600; }
.rq .pts-big.e0 { background: rgba(48,209,88,.14); color: #30D158; }
.rq .pts-big.e1 { background: rgba(255,214,10,.12); color: #FFD60A; }
.rq .pts-big.e2 { background: rgba(255,159,10,.13); color: #FF9F0A; }
.rq .pts-big.e3 { background: rgba(255,69,58,.14); color: #FF453A; }
.rq .quip { color: var(--muted); }

/* ---------- barra del tempo e barra «prossima scheda» ---------- */
.rq .at-bar { height: 6px; border: 0; border-radius: 99px; background: rgba(255,255,255,.1); }
.rq .at-bar i { background: #F5F5F7; box-shadow: 0 0 12px rgba(255,255,255,.45); border-radius: 99px; }
.rq .at.low .at-bar i { background: #FF453A; box-shadow: 0 0 18px rgba(255,69,58,.9); }
.rq .at.stop .at-bar i { background: #636366; box-shadow: none; }
.rq .at-s { border: 1px solid var(--line); border-radius: 999px; background: var(--glass); font: 600 1.1rem var(--display); font-stretch: normal; font-variant-numeric: tabular-nums; min-width: 3.2rem; }
.rq .at.low .at-s { background: rgba(255,69,58,.15); color: #FF453A; border-color: rgba(255,69,58,.5); }
.rq .nx-bar { height: 3px; border: 0; background: rgba(255,255,255,.1); }
.rq .nx-bar i { background: rgba(255,255,255,.7); }
.rq .nx-lab { letter-spacing: .06em; font-weight: 600; }
.rq .sch .ph { border: 0; border-radius: 12px; }
.rq .sch b { font: 700 1.1rem var(--display); letter-spacing: -.02em; text-transform: none; font-stretch: normal; }
.rq .sch dt { font-weight: 500; }
.rq .sch a { color: #0A84FF; }

/* ---------- fine partita ---------- */
.rq .score-card, .rq .sg-end { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 120px rgba(255,69,58,.2), 0 30px 60px rgba(0,0,0,.55); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); }
.rq .score-card .big, .rq .sg-end .big { font: 200 clamp(4.5rem, 15vw, 8.5rem)/.85 var(--display); letter-spacing: -.07em; font-stretch: normal; background: linear-gradient(180deg, #fff 35%, #FF453A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rq .score-card .of, .rq .sg-end .of { color: var(--muted); text-transform: none; letter-spacing: .01em; font-weight: 500; }
.rq .score-card .title, .rq .sg-end .title { background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font: 600 1rem var(--body); text-transform: none; letter-spacing: -.01em; }
.rq .score-card .lumi { color: var(--muted); font-weight: 500; }
.rq .score-card .kicker, .rq .sg-end .kicker { background: none; color: var(--muted); }
.rq .share pre, .rq .sg-end pre { background: rgba(0,0,0,.35); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
.rq .sg-end .btn.alt { background: var(--glass); color: #fff; border: 1px solid var(--line); }
.rq .recap li { font-weight: 500; }
.rq .recap .av { border: 0; border-radius: 12px; }
.rq .recap .e { border: 0; border-radius: 50%; width: 12px; height: 12px; }
.rq .recap .p { font: 600 1.1rem var(--display); font-stretch: normal; font-variant-numeric: tabular-nums; }
.rq .e0b { background: #30D158; } .rq .e1b { background: #FFD60A; } .rq .e2b { background: #FF9F0A; } .rq .e3b { background: #FF453A; }
.rq .toast { background: rgba(28,28,30,.85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--line); color: var(--ink); border-radius: 14px; font-weight: 500; }

/* ---------- Lapide ---------- */
.rq .lp-stone { background: linear-gradient(180deg, rgba(44,44,48,.7), rgba(20,20,22,.7)); }
.rq .oval { border: 1px solid var(--line); background: #0B0B0D; box-shadow: 0 0 40px rgba(255,69,58,.12); }
.rq .lp-stone > small { color: var(--muted); letter-spacing: .3em; font-weight: 500; }
.rq .lp-stone > b { font: 700 1.7rem/1.05 var(--display); letter-spacing: -.02em; text-transform: none; font-stretch: normal; }
.rq .clues li { background: var(--glass-2); border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
.rq .clues li small { color: var(--muted); font-weight: 600; }
.rq .clues li.off { border-style: dashed; color: #636366; }
.rq .clues li.new { background: rgba(255,69,58,.16); color: var(--ink); border-color: rgba(255,69,58,.45); }
.rq .clues li.new small { color: #FF8A80; }
.rq .lp-form input { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 500; }
.rq .lp-form input::placeholder { color: #636366; }
.rq .lp-tries th { font-weight: 600; }
.rq .lp-tries td { background: var(--glass-2); border-color: transparent !important; font-weight: 500; }
.rq .lp-tries td.y { background: rgba(48,209,88,.18); color: #30D158; }
.rq .lp-tries td.n { background: rgba(255,69,58,.15); color: #FF6961; }
.rq .lp-tries td.c { background: rgba(255,214,10,.14); color: #FFD60A; }
.rq .lp-legend { font-weight: 400; }

/* ---------- Vivo o morto ---------- */
.rq .vm-card.flash-ok { outline: 2px solid #30D158; box-shadow: 0 0 40px rgba(48,209,88,.35), var(--sh); }
.rq .vm-card.flash-ko { outline: 2px solid #FF453A; box-shadow: 0 0 40px rgba(255,69,58,.45), var(--sh); }
.rq .vm-btns .btn { font: 600 1.3rem var(--body); }
.rq .vm-yes { background: var(--glass) !important; color: #fff !important; border: 1px solid var(--line) !important; }
.rq .vm-no { background: #FF453A !important; color: #fff !important; }
.rq .vm-msg { font-weight: 500; }
.rq .vm-msg.ok b { background: none; color: #30D158; padding: 0; }
.rq .vm-msg.ko b { background: none; color: #FF453A; padding: 0; }
.rq .lives span { background: var(--glass); border: 1px solid var(--line); border-radius: 50%; color: #FF453A; filter: drop-shadow(0 0 6px rgba(255,69,58,.5)); }
.rq .lives span.off { color: #48484A; filter: none; border-style: solid; opacity: .6; }

/* ---------- Chi è più vecchio ---------- */
.rq .cv-card { background: var(--card); }
.rq .cv-card .ph { border-color: var(--line); }
.rq .cv-card .cap b { font: 700 1.3rem/1.05 var(--display); letter-spacing: -.02em; text-transform: none; font-stretch: normal; }
.rq .cv-card.ok { background: rgba(48,209,88,.16); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(48,209,88,.6), 0 0 40px rgba(48,209,88,.2); }
.rq .cv-card.ko { background: rgba(255,69,58,.14); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,69,58,.55); }
.rq .cv-card.ok small, .rq .cv-card.ko small { color: var(--muted); }
.rq .cv-vs { background: var(--glass); border: 1px solid var(--line); color: var(--muted); font: 600 1rem var(--display); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---------- Fila dal Becchino ---------- */
.rq .fl-cap { color: var(--muted); font-weight: 600; }
.rq .fl-item .pos { font: 300 1.6rem var(--display); color: var(--muted); font-stretch: normal; }
.rq .fl-item .ph { border: 0; border-radius: 12px; }
.rq .fl-item b { font: 700 1.15rem/1.1 var(--display); letter-spacing: -.02em; text-transform: none; font-stretch: normal; }
.rq .fl-item .mv button { background: var(--glass); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.rq .fl-item.ok { background: rgba(48,209,88,.15); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(48,209,88,.55); }
.rq .fl-item.ko { background: rgba(255,69,58,.13); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,69,58,.5); }
.rq .fl-item.ok small, .rq .fl-item.ko small { color: var(--muted); }
.rq .fl-item.over { outline: 1px dashed #0A84FF; }

/* ---------- Quiz ---------- */
.rq .qz-mode { background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.rq .qz-mode:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.rq .qz-mode b { font: 700 1.25rem var(--display); letter-spacing: -.02em; text-transform: none; font-stretch: normal; }
.rq .qz-mode .ico { border: 0; border-radius: 14px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--g) 85%, #000), color-mix(in srgb, var(--g) 30%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.rq .qz-photo { border-radius: 20px; }
.rq .qz-opt { background: var(--card); }
.rq .qz-opt .cap b { font: 700 1.05rem/1.1 var(--display); letter-spacing: -.02em; text-transform: none; font-stretch: normal; }
.rq .qz-opts.txt .qz-opt { font-weight: 600; }
.rq .qz-opt .k { border: 1px solid var(--line); background: var(--glass); color: var(--muted); }
.rq .qz-opt.ok { background: rgba(48,209,88,.16); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(48,209,88,.6); }
.rq .qz-opt.ko { background: rgba(255,69,58,.14); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,69,58,.55); }
.rq .qz-opt.ok small, .rq .qz-opt.ko small { color: var(--muted); }

/* ---------- piè di pagina ---------- */
.rq .foot { background: transparent; border-top: 1px solid var(--line); color: var(--muted); }
.rq .foot a { color: var(--ink); }
.rq .foot .epitaph { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) { .rq body::before { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .rq .box, .rq .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1C1C1E; } }

/* riga punti sala / Lumini nelle schede di fine partita */
.rq .sg-end .lumi { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: .6rem; color: var(--muted); font-weight: 500; }
.rq .sg-end .lumi .i, .rq .score-card .lumi .i { color: var(--tomato); }

/* ===================== AGGIUNTE DEL SITO VERO ===================== */
.rq .game .tag.done { background: rgba(48,209,88,.16); color: var(--lime); border-color: transparent; }
.rq .game .acts .btn[disabled] { opacity: .45; }
.rq .ar-note { margin: 0 0 1.2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--muted); }
.rq .ar-note a { color: #0A84FF; }
.rq .loading { opacity: .5; pointer-events: none; }
.rq .rank .empty td { text-align: center; color: var(--muted); padding: 1.4rem; }
.rq .medal.off { opacity: .4; }
