/* ══════════════════════════════════════════════════════════════════
   project-boardgames.com · sito di Artalis (2026-10-01)
   Identità del gioco (regolamento + simulatore): fondo teal dipinto, Cinzel Decorative per i titoli,
   Quicksand per testo e numeri, avorio. Due accenti come la pagina Gamefound: oro (Favore, azioni) e
   viola (GYO, notte, corruzione).
══════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'Cinzel Decorative'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/cinzel-decorative-400.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel Decorative'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cinzel-decorative-700.woff2') format('woff2'); }
@font-face { font-family: 'Artalis Dadi'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dadi.woff2') format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/quicksand.woff2') format('woff2'); }

:root {
  --ink: #0b1415;
  --deep: #0f1b1c;
  --teal-8: #162527;
  --teal-7: #1e3133;
  --teal-6: #2b4446;
  --panel: rgba(22, 37, 39, .78);
  --panel-solid: #172829;
  --frame: #9fb8b8;
  --line: rgba(159, 184, 184, .22);
  --line-soft: rgba(159, 184, 184, .12);
  --ivory: #efe8d6;
  --ivory-2: #cdd3cc;
  --ivory-3: #93a4a0;
  --gold: #e2aa52;
  --gold-2: #f5cd82;
  --gold-deep: #a8762f;
  --gyo: #b78cda;
  --gyo-2: #d9bff2;
  --f-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --f-text: 'Quicksand', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r-card: 10px;
  --shadow-card: 0 16px 30px -14px rgba(0, 0, 0, .85), 0 3px 8px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .4, 1);
  --gutter: clamp(16px, 4.2vw, 44px);
  --maxw: 1180px;
  --head-h: 68px;
  --card-ratio: 1654 / 2220;
  --card-k: 1.3422;   /* altezza = larghezza × 2220/1654 (per i calcoli) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--f-text); font-size: 17px; font-weight: 500; line-height: 1.62;
  color: var(--ivory); background: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
/* Fondo su un livello fisso: background-attachment: fixed non funziona sui telefoni */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(5, 10, 11, 0) 35%, rgba(5, 10, 11, .66) 100%),
    url('/img/fondo-1600.webp') center / cover no-repeat, var(--ink);
}
@media (max-width: 760px) { body::before { background-image: radial-gradient(120% 90% at 50% 30%, rgba(5, 10, 11, 0) 35%, rgba(5, 10, 11, .66) 100%), url('/img/fondo-900.webp'); } }
/* Tinta del cielo: dall'alba alla notte mentre si scende (la imposta lo script, --sky da 0 a 1) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 70% 0%, rgba(226, 170, 82, calc(.16 * (1 - var(--sky, 0)))), transparent 70%),
    radial-gradient(90% 70% at 20% 100%, rgba(183, 140, 218, calc(.05 + .16 * var(--sky, 0))), transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
em.fv, .fv { font-style: italic; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: #1d1408; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.center { text-align: center; }

/* ── tipografia ── */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(14px, 1.5vw, 16px); letter-spacing: .04em;
  color: var(--ivory-3);
}
.lz { display: inline-block; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; box-shadow: 0 0 10px rgba(226, 170, 82, .6); }
.title {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08;
  letter-spacing: .005em; color: var(--ivory); text-wrap: balance; margin-top: 14px;
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ivory-2); max-width: 62ch; margin: 18px auto 0; text-wrap: pretty; }
.chapter-head { margin-bottom: clamp(36px, 5vw, 64px); }
.chapter { position: relative; padding: clamp(64px, 8vw, 112px) 0; }

/* ── pulsanti ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--f-text); font-size: 16.5px; font-weight: 700; line-height: 1.1; letter-spacing: .01em;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background-color .25s, border-color .25s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { color: #1d1408; background: linear-gradient(180deg, #f2c87c, #d99a43); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .55), 0 12px 30px -10px rgba(226, 170, 82, .65); }
.btn-gold:hover { color: #1d1408; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .7), 0 0 0 5px rgba(226, 170, 82, .16), 0 18px 36px -12px rgba(226, 170, 82, .75); }
.btn-ghost { color: var(--ivory); background: rgba(12, 21, 22, .42); border: 1px solid rgba(239, 232, 214, .36); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--ivory); border-color: var(--gyo-2); box-shadow: 0 0 0 4px rgba(183, 140, 218, .16), 0 0 28px rgba(183, 140, 218, .32); transform: translateY(-2px); }
/* R01: Gamefound ha il suo colore, il viola della campagna. Oro = gioca, viola = segui. Prima era un pulsante "vuoto"
   che nella heatmap spiccava meno dello sfondo intorno (risalto 0,9). */
.btn-gyo { color: #fff; background: linear-gradient(180deg, #8f61bd, #64398c); box-shadow: inset 0 0 0 1px rgba(232, 212, 255, .45), 0 12px 30px -10px rgba(150, 100, 205, .7); }
.btn-gyo:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(232, 212, 255, .65), 0 0 0 5px rgba(183, 140, 218, .18), 0 18px 36px -12px rgba(160, 110, 215, .85); }
.btn .gf { height: 17px; width: auto; flex: none; }
.btn-big { min-height: 62px; padding: 0 34px; font-size: 18.5px; }
.btn svg { flex: none; }

/* ══ INTESTAZIONE ══ */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--head-h);
  display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter);
  transition: background-color .3s, box-shadow .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
}
.site-head.scrolled { background: rgba(11, 20, 21, .78); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -18px rgba(0, 0, 0, .9); }
.brand { display: block; flex: none; border-radius: 12px; }
.brand img { width: 50px; height: 50px; transition: transform .3s var(--spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); margin: 0 auto; }
.nav a { color: var(--ivory-2); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 8px 2px; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.on { color: var(--ivory); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.head-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .head-tools { margin-left: 0; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ivory-2); transition: color .2s, background-color .2s; }
.icon-link:hover { color: var(--ivory); background: rgba(239, 232, 214, .08); }
.icon-link svg { width: 20px; height: 20px; }
.head-cta { min-height: 42px; padding: 0 18px; font-size: 15px; margin-left: 6px; }
.head-segui { min-height: 42px; padding: 0 16px; font-size: 15px; margin-left: 6px; gap: 8px; }
.head-segui .gf { height: 15px; }
.head-segui + .head-cta { margin-left: 0; }
/* sul computer Gioca gratis e Gamefound sono pulsanti: nel menu in riga non si ripetono (nel menu a tendina sì) */
@media (min-width: 1081px) { .nav a[href$="#play"], .nav a[href$="#follow"] { display: none; } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--ivory); }
.menu-btn svg { width: 24px; height: 24px; }

/* lingua: bandiera + sigla come nel simulatore */
.lang { position: relative; }
.lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 21, 22, .5); cursor: pointer; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; color: var(--ivory); }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; opacity: .7; }
.lang[open] > summary { border-color: rgba(226, 170, 82, .6); }
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 190px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8); z-index: 5; }
.lang li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ivory-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang li a b { font-size: 12px; letter-spacing: .05em; color: var(--ivory-3); margin-left: auto; }
.lang li a:hover, .lang li a[aria-current] { background: rgba(239, 232, 214, .07); color: var(--ivory); }

/* ══ HERO ══ */
.hero {
  position: relative; min-height: min(100svh, 980px); padding: calc(var(--head-h) + clamp(20px, 4vw, 48px)) var(--gutter) clamp(40px, 6vw, 70px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "head deck" "body deck";
  align-content: center; column-gap: clamp(20px, 4vw, 60px); max-width: 1320px; margin: 0 auto; overflow: hidden; overflow: clip;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-hare {
  position: absolute; left: 50%; top: -34%; width: min(620px, 118%); max-width: none;
  transform: translate(calc(-50% + var(--px, 0) * -26px), calc(var(--py, 0) * -18px));
  opacity: .42; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent);
}
.hero-glow { position: absolute; width: 460px; max-width: none; opacity: .32; mix-blend-mode: screen; transform: translate(calc(var(--px, 0) * -44px), calc(var(--py, 0) * -30px)); }
.hero-glow.g1 { left: 2%; top: -18%; }
.hero-glow.g2 { right: -6%; top: 22%; opacity: .5; }
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; align-self: start; }
.hero-title { margin: 0; }
.hero-title img { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 5px); width: min(480px, 100%); height: auto; margin-left: -1.5%; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
.hero-tag { font-family: var(--f-display); font-size: clamp(15px, 1.5vw, 18px); color: var(--ivory-2); margin-top: 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-tag .lz { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.hero-hook { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin-top: clamp(20px, 3vw, 34px); }
.hero-hook span { display: block; }
.hero-hook .win { color: var(--gold-2); }
.hero-lede { margin-top: 16px; font-size: clamp(17px, 1.45vw, 19px); color: var(--ivory-2); max-width: 46ch; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.launch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 15px; color: var(--ivory-2); }
.launch .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(226, 170, 82, .6); animation: pulse 2.4s ease-out infinite; flex: none; }
.launch b { color: var(--ivory); font-weight: 700; }
.t-corto { display: none; }
.nw { white-space: nowrap; }
/* R01: il regalo per chi segue si vede già nell'apertura (prima solo a 11 schermi di distanza); porta alla sezione Gamefound */
.launch-gift { display: inline-flex; align-items: center; gap: 9px; padding: 4px 13px 4px 6px; border-radius: 999px; border: 1px solid rgba(183, 140, 218, .5); background: rgba(183, 140, 218, .13); color: var(--ivory); font-weight: 600; font-size: 14px; line-height: 1.25; text-decoration: none; transition: border-color .2s, background-color .2s; }
.launch-gift img { width: 50px; height: auto; flex: none; border-radius: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .55); transform: rotate(-5deg); transition: transform .35s var(--spring); }
.launch-gift:hover { border-color: var(--gyo-2); background: rgba(183, 140, 218, .22); color: var(--ivory); }
.launch-gift:hover img { transform: rotate(0deg) scale(1.1); }
/* R01: schermi bassi (portatili 1366×768): l'apertura si stringe perché data di lancio e regalo restino nel primo schermo */
@media (min-width: 761px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--head-h) + 10px); padding-bottom: 28px; }
  .hero-title img { width: min(360px, 100%); }
  .hero-tag { margin-top: 2px; }
  .hero-hook { margin-top: 14px; font-size: clamp(26px, 2.9vw, 38px); }
  .hero-lede { margin-top: 10px; }
  .hero .cta-row { margin-top: 20px; }
  .hero .launch { margin-top: 12px; }
  .facts { margin-top: 16px; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 170, 82, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(226, 170, 82, 0); } }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 10px 26px; justify-content: start; }
.facts li { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--ivory); font-variant-numeric: tabular-nums; }
.facts span { font-size: 13.5px; color: var(--ivory-3); font-weight: 600; }

/* il mazzo dell'apertura: si mescola, si apre a ventaglio, le carte si girano */
.hero-deck { grid-area: deck; align-self: center; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding-top: clamp(80px, 11vw, 160px); }
.deck-stage { position: relative; width: 100%; translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 9px); height: calc(var(--cw) * var(--card-k) + 70px); --cw: clamp(116px, 11.2vw, 164px); perspective: 1400px; }
.deck-stage .card { position: absolute; left: calc(50% - var(--cw) / 2); top: calc(50% - var(--cw) * var(--card-k) / 2); width: var(--cw);
  transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.deck-stage.intro .card { transition: none; }
.deck-stage.stacked .card { transform: translate(calc(var(--i) * -1.5px), calc(var(--i) * -2px)) rotate(calc((var(--i) - 1.5) * 1.5deg)); transition-delay: 0s; }
.deck-stage .card:nth-child(1) { --i: 0; --fx: calc(var(--cw) * -1.5); --fy: 20px;  --fr: -13deg; z-index: 1; }
.deck-stage .card:nth-child(2) { --i: 1; --fx: calc(var(--cw) * -.5); --fy: -8px; --fr: -4.5deg; z-index: 2; }
.deck-stage .card:nth-child(3) { --i: 2; --fx: calc(var(--cw) * .5);  --fy: -8px; --fr: 4.5deg; z-index: 3; }
.deck-stage .card:nth-child(4) { --i: 3; --fx: calc(var(--cw) * 1.5); --fy: 20px;  --fr: 13deg; z-index: 4; }
.deck-stage.ready .card:hover, .deck-stage.ready .card:focus-visible { transform: translate(var(--fx), calc(var(--fy) - 18px)) rotate(calc(var(--fr) * .6)) scale(1.05); z-index: 9; transition-delay: 0s; transition-duration: .45s; }
.deck-hint { margin-top: 26px; font-size: 14px; color: var(--ivory-3); display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .6s .3s; }
.deck-stage.ready + .deck-hint { opacity: 1; }
.deck-hint svg { width: 18px; height: 18px; color: var(--gold); }

/* carta generica con due facce. Il giro lo fa lo script (giraCarta in site.js): ruota, si solleva, la luce cambia sulla
   faccia e a metà giro (quando la carta è di taglio e non si vede) passa all'altra faccia. --k = quanto è di taglio (0-1).
   R01: la carta è "piatta" e ha una prospettiva sua; il 3D vive solo dentro .inner. Così l'ombra e le due facce non si
   incrociano mai nello spazio (prima il browser le tagliava lungo una linea al centro della carta durante il giro) e le
   facce stanno a 1 px l'una dall'altra invece che sullo stesso piano. Tolto il filo di spessore al centro (era lui la linea). */
.card { display: block; aspect-ratio: var(--card-ratio); border-radius: var(--r-card); position: relative; perspective: 1000px; --k: 0; }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; border-radius: inherit; will-change: transform; }
.card .face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: var(--teal-8); }
.card .face img { width: 100%; height: 100%; object-fit: cover; }
.card .face::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(226, 170, 82, .32);
  background: linear-gradient(100deg, rgba(255, 246, 225, calc(var(--k) * .28)) 0%, rgba(255, 246, 225, 0) 38%, rgba(0, 0, 0, calc(var(--k) * .55)) 100%); }
.card .back { transform: translateZ(.5px); }
.card .front { transform: rotateY(180deg) translateZ(.5px); visibility: hidden; }
.card.mostra-fronte .front { visibility: visible; }
.card.mostra-fronte .back { visibility: hidden; }
/* ombra sul tavolo: si allarga e si sfuma quando la carta si alza (è fuori dal 3D: sta sempre sotto la carta) */
.card::before { content: ''; position: absolute; left: 5%; right: 5%; top: 7%; bottom: -2%; border-radius: var(--r-card); pointer-events: none;
  background: rgba(0, 0, 0, .62); filter: blur(calc(8px + var(--k) * 12px)); opacity: calc(.8 - var(--k) * .35);
  transform: translateY(calc(7px + var(--k) * 16px)) scale(calc(1 - var(--k) * .12), calc(1 - var(--k) * .06)); }
html.no-js .card.flipped .inner { transform: rotateY(180deg); }
html.no-js .card.flipped .front { visibility: visible; }
html.no-js .card.flipped .back { visibility: hidden; }

/* ══ CAPITOLO I · LA FAGLIA ══ */
.rift .wrap { display: flex; flex-direction: column; align-items: center; }
.rift-art { margin: clamp(26px, 4vw, 44px) 0 0; width: min(620px, 92vw); position: relative; }
.rift-art img { width: 100%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 60%, transparent 100%); }
.rift-art::before { content: ''; position: absolute; inset: 12% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(183, 140, 218, .28), transparent); filter: blur(30px); animation: breathe 7s ease-in-out infinite; z-index: -1; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
.rift-quote { margin: clamp(10px, 2vw, 20px) 0 0; font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; color: var(--ivory); max-width: 30ch; text-wrap: balance; }
.rift-quote .ln { display: inline; }
.rift .title { font-size: clamp(24px, 3vw, 36px); color: var(--gold-2); margin-top: clamp(26px, 3vw, 36px); font-weight: 400; }
.rift-body { margin-top: 18px; color: var(--ivory-2); max-width: 60ch; font-size: clamp(17px, 1.45vw, 19px); text-wrap: pretty; }
.rift-goal { margin-top: 26px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); max-width: 58ch; color: var(--ivory); font-weight: 600; }

/* ══ CAPITOLO II · LA GIORNATA ══ */
.phases { position: relative; }
.phase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 6vw, 80px); }
.thread { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--line), var(--line)); border-radius: 2px; }
.thread::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--gold), #d79b56 45%, var(--gyo)); border-radius: inherit; box-shadow: 0 0 12px rgba(226, 170, 82, .5); }
.thread .orb { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 18px; height: 18px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #fff6dd, var(--gold) 55%, #a8762f); box-shadow: 0 0 0 5px rgba(226, 170, 82, .18), 0 0 26px 6px rgba(226, 170, 82, .55); transition: background .4s, box-shadow .4s; }
.phases.late .thread .orb { background: radial-gradient(circle at 35% 35%, #fff, #e5d6f3 50%, var(--gyo)); box-shadow: 0 0 0 5px rgba(183, 140, 218, .2), 0 0 26px 6px rgba(183, 140, 218, .55); }
.phase { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; column-gap: clamp(18px, 3vw, 40px); }
.phase-glyph { grid-column: 2; grid-row: 1; justify-self: center; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); border: 1px solid var(--line); color: var(--ivory-3); position: relative; z-index: 1; transition: color .5s, border-color .5s, box-shadow .5s; }
.phase-glyph svg { width: 54px; height: 54px; }
.phase.lit .phase-glyph { color: var(--ivory); border-color: rgba(226, 170, 82, .7); box-shadow: 0 0 0 6px rgba(226, 170, 82, .1), 0 0 30px rgba(226, 170, 82, .3); }
.phase[data-phase="night"].lit .phase-glyph { border-color: rgba(183, 140, 218, .8); box-shadow: 0 0 0 6px rgba(183, 140, 218, .12), 0 0 30px rgba(183, 140, 218, .35); }
.phase-text { grid-row: 1; }
.phase:nth-child(odd) .phase-text { grid-column: 1; text-align: right; justify-self: end; }
.phase:nth-child(odd) .phase-scene { grid-column: 3; }
.phase:nth-child(even) .phase-text { grid-column: 3; }
.phase:nth-child(even) .phase-scene { grid-column: 1; justify-self: end; }
.phase-text { max-width: 440px; }
.phase-name { font-family: var(--f-display); color: var(--gold); font-size: 15px; letter-spacing: .05em; }
.phase[data-phase="night"] .phase-name { color: var(--gyo-2); }
.phase h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; margin-top: 6px; }
.phase-text p:last-child { margin-top: 10px; color: var(--ivory-2); }
.phase-scene { grid-row: 1; position: relative; width: min(100%, 360px); height: 260px; }
.day-close { margin: clamp(40px, 6vw, 70px) auto 0; text-align: center; max-width: 54ch; font-family: var(--f-display); font-size: clamp(18px, 2vw, 23px); line-height: 1.4; color: var(--ivory); text-wrap: balance; }

/* scene animate delle quattro fasi (partono quando la fase si accende) */
.sc-card { position: absolute; width: 150px; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow-card), 0 0 0 1px rgba(226, 170, 82, .3); }
.sc-card img { width: 100%; aspect-ratio: var(--card-ratio); object-fit: cover; }
[data-dadi] { position: relative; }
.dado-ancora { display: inline-block; position: relative; flex: none; }
.dado-ancora img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.d3 .dado-ancora img { visibility: hidden; }
.dadi-canvas { position: absolute; left: -110px; top: -130px; width: calc(100% + 220px); height: calc(100% + 200px); pointer-events: none; z-index: 4; }
.pop { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(12, 21, 22, .88); border: 1px solid var(--line); font-weight: 700; font-size: 15px; white-space: nowrap; opacity: 0; }
.pop img { width: 22px; height: 22px; }
.pop.gold { border-color: rgba(226, 170, 82, .7); color: var(--gold-2); }
.pop.karma { border-color: rgba(239, 232, 214, .5); }
.res { position: absolute; font-weight: 700; font-size: 26px; color: var(--ivory); text-shadow: 0 2px 10px rgba(0, 0, 0, .8); opacity: 0; font-variant-numeric: tabular-nums; }

.scene-morning .sc-card { left: 50%; top: 8px; transform: translateX(-50%) rotate(-2deg); }
.scene-morning .dado-ancora { position: absolute; width: 50px; height: 50px; z-index: 2; }
.scene-morning .m1 { left: calc(50% - 56px); top: 138px; }
.scene-morning .m2 { left: calc(50% + 4px); top: 150px; }
.phase.lit .scene-morning:not(.d3) .dado-ancora { animation: drop .7s var(--spring) both; }
.phase.lit .scene-morning:not(.d3) .m2 { animation-delay: .45s; }
@keyframes drop { from { opacity: 0; transform: translateY(-120px) scale(1.4); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }

/* R02: tre righe per parte, allineate: dadi, risultato, esito. Chi vince (17) prende la carta, chi perde (13) prende il
   Karma della carta (+2). Dadi e distanze si stringono con la larghezza della scena (telefoni stretti, tablet). */
.scene-afternoon { display: flex; flex-direction: column; align-items: center; justify-content: center; --dz: 64px; --gap: 22px; }
.duel { display: flex; align-items: flex-start; justify-content: center; gap: var(--gap); }
.side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.side .dset { display: flex; gap: 6px; align-items: center; }
.scene-afternoon .dado-ancora { width: var(--dz); height: var(--dz); }
.strike .dado-ancora { width: 60px; height: 60px; }
.side .res, .strike .res { position: relative; font-size: 19px; }
.side .res { line-height: 30px; white-space: nowrap; }
.side.win::before { content: ''; position: absolute; inset: -26px -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 170, 82, .32), transparent); opacity: 0; z-index: -1; }
.scene-afternoon .vs { font-family: var(--f-display); font-size: 22px; line-height: 1; color: var(--ivory-3); margin-top: calc(var(--dz) / 2 - .5em); }
.scene-afternoon .pop, .scene-evening .pop { position: relative; }
/* la carta contesa, in piccolo, a chi vince: arriva dal centro e si posa sotto il suo risultato */
.sc-mini { --cw: calc(var(--dz) * .9); display: block; width: var(--cw); border-radius: 5px; overflow: hidden; opacity: 0; transform: rotate(-5deg);
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .9), 0 0 0 1px rgba(226, 170, 82, .7), 0 0 18px rgba(226, 170, 82, .35); }
.sc-mini img { width: 100%; aspect-ratio: var(--card-ratio); object-fit: cover; }
/* il Karma a chi perde, alla stessa altezza della carta */
.side.lose .pop { margin-top: calc(var(--dz) * .6 - 16px); padding: 5px 11px 5px 7px; font-size: 15px; gap: 5px; }
.side.lose .pop img { width: 1.3em; height: 1.3em; }
/* scena stretta (telefoni piccoli, tablet in verticale): dadi, distanze e scritte si stringono con la larghezza della scena,
   così l'esito di chi perde non esce mai dal bordo (provato da 320 a 1440 px) */
@supports (width: 1cqw) {
  .scene-afternoon { container-type: inline-size; --dz: clamp(40px, calc(27cqw - 22px), 64px); --gap: clamp(6px, calc(6cqw - 2px), 26px); }
  .scene-afternoon .side .res { font-size: clamp(15px, 7cqw, 19px); }
  .scene-afternoon .vs { font-size: clamp(16px, 7.8cqw, 22px); }
  .side.lose .pop { font-size: clamp(12px, 5cqw, 15px); }
}
.phase.lit .scene-afternoon:not(.d3) .dado-ancora img { animation: shake .9s ease-in-out both; }
.phase.lit .scene-afternoon:not(.d3) .side.lose .dado-ancora img { animation-delay: .12s; }
.phase-scene.fatto .res { animation: fadeUp .5s var(--ease) both; }
.phase-scene.fatto .side.win::before { animation: glowIn .6s ease .25s both; }
.phase-scene.fatto .pop { animation: fadeUp .5s var(--spring) .55s both; }
.phase-scene.fatto .sc-mini { animation: prendi .7s var(--spring) .35s both; }
.phase-scene.fatto .side.lose .pop { animation-delay: .95s; }
@keyframes prendi { from { opacity: 0; transform: translate(calc(var(--dz) * .75), -14px) rotate(16deg) scale(.55); } 55% { opacity: 1; } to { opacity: 1; transform: rotate(-5deg); } }
@keyframes shake { 0% { transform: rotate(0) translate(0, 0); } 15% { transform: rotate(-40deg) translate(-6px, -10px); } 35% { transform: rotate(70deg) translate(6px, -14px); } 55% { transform: rotate(-20deg) translate(-4px, 2px); } 75% { transform: rotate(10deg) translate(2px, -2px); } 100% { transform: rotate(0) translate(0, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes glowIn { to { opacity: 1; } }

.scene-evening .warrior { position: absolute; right: -4%; bottom: -6px; width: 150px; opacity: .9; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); z-index: 0; }
.scene-evening .sc-card { left: 2%; top: 14px; transform: rotate(-3deg); z-index: 1; }
.scene-afternoon, .scene-evening { cursor: pointer; }
.strike { position: absolute; left: calc(2% + 168px); top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; z-index: 2; }
.phase.lit .scene-evening:not(.d3) .dado-ancora img { animation: shake .9s ease-in-out .2s both; }

.scene-night .sc-card { left: 50%; top: 4px; transform: translateX(-50%) rotate(2deg); }
.scene-night .cube { position: absolute; width: 24px; left: calc(50% - 46px); top: 140px; opacity: 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7)); }
.scene-night .moon-glow { position: absolute; inset: -10% 10%; background: radial-gradient(closest-side, rgba(183, 140, 218, .3), transparent); z-index: -1; opacity: 0; }
.scene-night .pop { right: 2%; top: 200px; }
.phase.lit .scene-night .cube { animation: cubeIn 1s var(--ease) .4s both; }
.phase.lit .scene-night .moon-glow { animation: glowIn 1.2s ease both; }
.phase.lit .scene-night .pop { animation: fadeUp .5s var(--spring) 1.3s both; }
@keyframes cubeIn { from { opacity: 0; transform: translate(-90px, 80px) rotate(-80deg) scale(1.4); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ══ CAPITOLO III · IL MERCATO ══ */
.market-table { display: grid; gap: clamp(22px, 3vw, 34px); }
.mrow { display: grid; grid-template-columns: 210px auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.4vw, 30px); padding: clamp(14px, 2vw, 22px); border-radius: 20px; background: linear-gradient(90deg, rgba(22, 37, 39, .82), rgba(22, 37, 39, .35)); border: 1px solid var(--line-soft); --cw: clamp(96px, 11.6vw, 156px); }
.mrow-label h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; }
.mrow-kind { font-family: var(--f-display); color: var(--gold-2); font-size: 15px; margin-top: 4px; }
.mrow-desc { color: var(--ivory-2); font-size: 15px; line-height: 1.5; margin-top: 8px; }
.deck { position: relative; width: var(--cw); aspect-ratio: var(--card-ratio); border-radius: var(--r-card); }
.deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(226, 170, 82, .3); }
.deck img:nth-child(1) { transform: translate(4px, 4px); }
.deck img:nth-child(2) { transform: translate(2px, 2px); }
.deck:hover img:nth-child(3) { transform: translateY(-4px) rotate(-1.5deg); }
.deck img { transition: transform .3s var(--ease); }
.deck .deck-tip { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(12, 21, 22, .9); border: 1px solid var(--line); color: var(--ivory-2); }
.slots { display: grid; grid-template-columns: repeat(4, var(--cw)); gap: clamp(10px, 1.4vw, 18px); perspective: 1200px; }
.slot { aspect-ratio: var(--card-ratio); border-radius: var(--r-card); border: 1px dashed rgba(159, 184, 184, .2); position: relative; }
.slot .card { position: absolute; inset: 0; width: 100%; transition: transform .35s var(--ease); }
.slot .card .face { cursor: zoom-in; }
.slot .card.flipped:hover { transform: translateY(-6px); }
.market-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: clamp(26px, 3vw, 40px); }
.market-actions .hint { color: var(--ivory-3); font-size: 14.5px; }

/* finestra della carta ingrandita */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 460px); width: 100%; color: var(--ivory); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 10, 11, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open]::backdrop { animation: lbFade .3s ease; }
.lightbox[open] .lb-bar { animation: fadeUp .4s var(--ease) .25s both; }
@keyframes lbFade { from { opacity: 0; } }
.lightbox img { width: 100%; border-radius: 16px; transform-origin: 0 0; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(226, 170, 82, .4); }
.lightbox .lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.lightbox .lb-name { font-family: var(--f-display); font-size: 22px; }
.lightbox .lb-close { min-height: 44px; padding: 0 18px; }

/* ══ CAPITOLO IV · LE REGOLE ══ */
.golden { text-align: center; padding: clamp(26px, 4vw, 48px) clamp(16px, 3vw, 40px); border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(70% 90% at 50% 0%, rgba(226, 170, 82, .1), transparent 70%), var(--panel); }
.golden h3 { font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 34px); color: var(--gold-2); }
.golden > p { max-width: 54ch; margin: 12px auto 0; color: var(--ivory-2); }
.golden .rule { color: var(--ivory); font-weight: 700; }
.dice-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 2vw, 26px); max-width: 760px; margin: clamp(22px, 3vw, 36px) auto 0; }
.die { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; border-radius: 16px; transition: background-color .2s; }
.die:hover { background: rgba(239, 232, 214, .05); }
.die-slot { width: min(96px, 100%); aspect-ratio: 1; display: block; }
.die-slot img { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(226, 170, 82, .18)); }
.die.rolling .die-slot img { animation: tumble .75s cubic-bezier(.3, .7, .3, 1) both; }
.dice-row { position: relative; }
.dice-row .dadi-canvas { left: -18%; top: -60%; width: 136%; height: 190%; }
@keyframes tumble { 0% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-46px) rotate(160deg) scale(1.08); } 55% { transform: translateY(0) rotate(300deg); } 72% { transform: translateY(-12px) rotate(340deg); } 100% { transform: translateY(0) rotate(360deg); } }
.die-name { font-weight: 700; font-size: 14px; color: var(--ivory-3); letter-spacing: .03em; }
.die-val { min-width: 46px; height: 34px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 21, 22, .6); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ivory-3); transition: color .3s, border-color .3s, transform .3s var(--spring); }
.die-val.show { color: var(--ivory); border-color: rgba(226, 170, 82, .6); transform: scale(1.08); }
.dice-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 26px; }
.total { font-weight: 700; font-size: 18px; color: var(--ivory-2); min-width: 9ch; }
.total b { color: var(--gold-2); font-size: 26px; font-variant-numeric: tabular-nums; margin-left: 6px; }

.currencies { list-style: none; padding: 0; margin: clamp(30px, 4vw, 54px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.cur { padding: 28px 24px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.cur::before { content: ''; position: absolute; left: 50%; top: -60px; width: 240px; height: 200px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); opacity: .5; pointer-events: none; }
.cur.karma { --glow: rgba(239, 232, 214, .2); }
.cur.gyo { --glow: rgba(183, 140, 218, .3); }
.cur.favore { --glow: rgba(226, 170, 82, .3); }
.cur-icon { width: 84px; height: 84px; margin: 0 auto; position: relative; }
.cur-icon img { width: 100%; height: 100%; object-fit: contain; }
.cur h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 2.6vw, 34px); margin-top: 12px; }
.cur.gyo h3 { color: var(--gyo-2); }
.cur.favore h3 { color: var(--gold-2); font-style: italic; }
.cur-motto { font-family: var(--f-display); font-size: 15px; color: var(--ivory-3); margin-top: 2px; }
.cur p:last-child { margin-top: 12px; color: var(--ivory-2); font-size: 16px; }
.cur.karma .cur-icon img { transform-origin: 50% 90%; }
.cur.karma:hover .cur-icon img, .cur.karma.in .cur-icon img { animation: flicker 2.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) skewX(0); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .3)); } 30% { transform: scale(1.04, .97) skewX(-2deg); } 60% { transform: scale(.98, 1.05) skewX(2deg); filter: drop-shadow(0 0 14px rgba(255, 255, 255, .55)); } }
.cur.favore .cur-icon { perspective: 400px; }
.cur.favore:hover .cur-icon img, .cur.favore.in .cur-icon img { animation: coin 2.6s ease-in-out both; }
@keyframes coin { 0% { transform: rotateY(0); } 50% { transform: rotateY(540deg); } 100% { transform: rotateY(720deg); } }
.gyo-track { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.gyo-track i { width: 14px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 1.5px solid var(--gyo); position: relative; overflow: hidden; }
.gyo-track i::after { content: ''; position: absolute; inset: 0; background: var(--gyo); transform: translateY(100%); transition: transform .4s var(--ease); }
.cur.gyo.in .gyo-track i::after { transform: none; }
.cur.gyo.in .gyo-track i:nth-child(1)::after { transition-delay: .2s; }
.cur.gyo.in .gyo-track i:nth-child(2)::after { transition-delay: .5s; }
.cur.gyo.in .gyo-track i:nth-child(3)::after { transition-delay: .8s; }
.cur.gyo.in .gyo-track i:nth-child(4)::after { transition-delay: 1.1s; }
.cur.gyo.in .gyo-track i:nth-child(5)::after { transition-delay: 1.4s; }
.gyo-track .mark { width: auto; height: auto; border: 0; font-size: 13px; font-weight: 700; color: var(--gyo-2); margin-left: 6px; opacity: 0; transition: opacity .4s 1.8s; }
.gyo-track .mark::after { display: none; }
.cur.gyo.in .gyo-track .mark { opacity: 1; }

.ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(24px, 5vw, 64px); margin: clamp(34px, 4vw, 54px) 0 0; }
.rating { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rating dt { font-family: var(--f-display); font-size: 15px; color: var(--ivory-2); }
.rating dd { margin: 0; }
.drops { display: block; width: 210px; height: 38px; overflow: visible; }
.drops path.thr { fill: none; stroke: rgba(239, 232, 214, .55); stroke-width: 1.4; }
.drops .dp { fill: #0f1b1c; stroke: rgba(239, 232, 214, .7); stroke-width: 1.4; transition: fill .4s; }
.ratings.in .drops .dp.on { fill: #cbbf9f; }
.ratings.in .drops .dp.on:nth-of-type(2) { transition-delay: .15s; }
.ratings.in .drops .dp.on:nth-of-type(3) { transition-delay: .3s; }
.ratings.in .drops .dp.on:nth-of-type(4) { transition-delay: .45s; }
.ratings.in .drops .dp.on:nth-of-type(5) { transition-delay: .6s; }
.ratings.in .drops .dp.on:nth-of-type(6) { transition-delay: .75s; }

/* ══ GIOCA ORA · SIMULATORE ══ */
.play { padding-top: clamp(70px, 9vw, 120px); }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(30px, 5vw, 70px); align-items: start; }
.play-copy .title { margin-top: 12px; }
.play-copy .lead { margin-left: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ivory); font-size: 16px; line-height: 1.4; }
.ticks li::before { content: ''; flex: none; width: 9px; height: 9px; margin-top: 6px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 8px rgba(226, 170, 82, .6); }
.devices { position: relative; margin-top: clamp(30px, 4vw, 46px); padding-right: 70px; }
.laptop { position: relative; border-radius: 14px; padding: 10px 10px 12px; background: linear-gradient(#22292a, #151b1c); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.laptop img { border-radius: 6px; width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; }
.laptop::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: -14px; height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(#2b3233, #101415); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .8); }
.phone { position: absolute; right: 0; bottom: -30px; width: 150px; border-radius: 26px; padding: 7px; background: #111718; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .1); animation: float 6s ease-in-out infinite; }
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.form-card { border-radius: 24px; padding: 18px 18px 8px; background: radial-gradient(90% 60% at 50% 0%, rgba(226, 170, 82, .12), transparent 70%), var(--panel-solid); border: 1px solid rgba(226, 170, 82, .35); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); position: relative; }
.form-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(245, 205, 130, .7), transparent 40%, transparent 60%, rgba(183, 140, 218, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.form-head { font-family: var(--f-display); font-weight: 700; font-size: 22px; text-align: center; padding: 6px 0 4px; }
.form-sub { text-align: center; color: var(--ivory-3); font-size: 14.5px; }
.form-card iframe { display: block; width: 100%; height: var(--ifh, 760px); border: 0; border-radius: 14px; margin-top: 10px; background: transparent; color-scheme: dark; }
.already { text-align: center; margin-top: 14px; color: var(--ivory-2); font-size: 15.5px; }

/* ══ SEGUI IL FESTIVAL · GAMEFOUND ══ */
.follow { overflow: hidden; }
.follow::before { content: ''; position: absolute; left: 50%; top: 18%; width: min(1100px, 140vw); height: 70%; transform: translateX(-50%); background: url('/img/alone-viola.webp') center / contain no-repeat; opacity: .5; z-index: -1; pointer-events: none; }
.follow .title { font-size: clamp(36px, 6vw, 76px); color: var(--gold-2); text-shadow: 0 0 40px rgba(226, 170, 82, .35); }
.follow .lead { margin-top: 20px; }
.ticket { margin: clamp(30px, 4vw, 50px) auto 0; width: min(640px, 100%); perspective: 1000px; }
.ticket-in { position: relative; border-radius: 16px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; box-shadow: 0 40px 70px -26px rgba(0, 0, 0, .95), 0 0 0 1px rgba(226, 170, 82, .45), 0 0 60px rgba(183, 140, 218, .25); }
.ticket.live .ticket-in { transition: transform .08s linear; }
.ticket img { width: 100%; border-radius: 16px; aspect-ratio: 2400 / 859; object-fit: cover; }
.ticket-in::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 120% at var(--mx, 30%) var(--my, 20%), rgba(255, 245, 220, .55), transparent 60%); opacity: .8; }
.ticket-in::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 210, .28) 48%, transparent 60%); background-size: 260% 100%; animation: sheen 5.5s ease-in-out infinite; z-index: 1; }
@keyframes sheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
.gift-label { font-family: var(--f-display); color: var(--ivory-2); font-size: 16px; margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; }
.gift-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; }
.gift-body { margin: 10px auto 0; max-width: 52ch; color: var(--ivory-2); }
.follow .btn-big { margin-top: 30px; }
.proof { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; font-weight: 700; color: var(--ivory); }
.proof .faces { display: flex; }
.proof .faces i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--deep); margin-left: -8px; background: var(--c); }
.proof .faces i:first-child { margin-left: 0; }
.micro { margin-top: 8px; font-size: 14px; color: var(--ivory-3); }

/* ══ TRAILER (si mostra solo quando c'è il link) ══ */
.trailer { padding-top: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video button { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ivory); }
.video button span { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: rgba(226, 170, 82, .92); color: #1d1408; box-shadow: 0 0 0 10px rgba(226, 170, 82, .2); transition: transform .3s var(--spring); }
.video button:hover span { transform: scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { text-align: center; font-size: 13.5px; color: var(--ivory-3); margin-top: 10px; }

/* ══ SIGILLO TRA I CAPITOLI ══ */
.sigillo { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(560px, 100% - 2 * var(--gutter)); margin: 0 auto; opacity: .9; }
.sigillo::before, .sigillo::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 170, 82, .5)); }
.sigillo::after { transform: scaleX(-1); }
.sigillo img { width: 58px; height: 58px; filter: drop-shadow(0 0 14px rgba(226, 170, 82, .35)); }

/* ══ IL TAVOLO ══ */
.tavolo-band { position: relative; margin: clamp(10px, 3vw, 40px) 0 0; min-height: clamp(420px, 62vw, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.tavolo-img { position: absolute; inset: 0; z-index: -1; }
.tavolo-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.1); transform-origin: 50% 60%; will-change: transform; }
.tavolo-band::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 20, 21, 0) 22%, rgba(11, 20, 21, 0) 52%, rgba(11, 20, 21, .9) 86%, var(--ink) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 50%, rgba(11, 20, 21, .7)); }
.tavolo-testo { position: relative; z-index: 1; padding-bottom: clamp(30px, 5vw, 70px); text-align: center; }
.tavolo-testo .title { text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.tavolo-testo p { margin: 14px auto 0; max-width: 58ch; color: var(--ivory); font-size: clamp(16.5px, 1.4vw, 19px); text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }

/* ══ VOCI DEI GIOCATORI (compare solo quando ci sono citazioni in sito.json) ══ */
.voci-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.voce { margin: 0; padding: 24px 24px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); position: relative; }
.voce::before { content: '“'; position: absolute; top: -6px; left: 16px; font-family: var(--f-display); font-size: 70px; line-height: 1; color: var(--gold); opacity: .55; }
.voce blockquote { margin: 18px 0 0; color: var(--ivory); font-size: 17px; line-height: 1.55; }
.voce figcaption { margin-top: 14px; display: flex; flex-direction: column; font-size: 14px; color: var(--ivory-3); }
.voce figcaption b { color: var(--gold-2); font-size: 15px; }

/* ══ DOMANDE FREQUENTI ══ */
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, background-color .25s; }
.faq details[open] { border-color: rgba(226, 170, 82, .45); background: rgba(30, 49, 51, .85); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 17px; color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(226, 170, 82, .6); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--gold-2); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover { color: var(--gold-2); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 20px 20px; color: var(--ivory-2); max-width: 68ch; }

/* ══ HAI GIOCATO? · QUESTIONARIO ══ */
.fb-band { padding: clamp(50px, 7vw, 90px) 0; }
.fb-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 50px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(30, 49, 51, .9), rgba(22, 37, 39, .6)); }
.fb-fan { position: relative; width: 200px; height: 170px; }
.fb-fan img { position: absolute; width: 104px; border-radius: 8px; box-shadow: var(--shadow-card), 0 0 0 1px rgba(226, 170, 82, .3); transition: transform .5s var(--spring); }
.fb-fan img:nth-child(1) { left: 0; top: 18px; transform: rotate(-12deg); }
.fb-fan img:nth-child(2) { left: 48px; top: 0; transform: rotate(-1deg); z-index: 1; }
.fb-fan img:nth-child(3) { left: 96px; top: 16px; transform: rotate(11deg); }
.fb-box:hover .fb-fan img:nth-child(1) { transform: rotate(-20deg) translate(-8px, -4px); }
.fb-box:hover .fb-fan img:nth-child(3) { transform: rotate(19deg) translate(8px, -4px); }
.fb-box h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.fb-box p { color: var(--ivory-2); margin-top: 10px; max-width: 56ch; }
.fb-box .btn { margin-top: 20px; }

/* ══ CHI SIAMO ══ */
.makers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 70px); max-width: 920px; margin: 0 auto; }
.maker { text-align: center; }
.maker-art { position: relative; width: min(230px, 62%); margin: 0 auto; padding-top: 70px; }
.maker-art .drop { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); transition: transform .5s var(--spring); }
.maker-art .creature { position: absolute; z-index: 1; width: 70%; right: -26%; top: 0; transform: rotate(10deg); transition: transform .7s var(--spring); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.maker:nth-child(1) .maker-art .creature { right: auto; left: -28%; transform: rotate(-10deg); }
.maker:hover .creature, .maker:focus-within .creature { transform: translateY(-22px) rotate(4deg) scale(1.06); }
.maker:nth-child(1):hover .creature, .maker:nth-child(1):focus-within .creature { transform: translateY(-22px) rotate(-4deg) scale(1.06); }
.maker:hover .drop { transform: translateY(6px); }
.maker h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); margin-top: 20px; }
.maker .role { font-family: var(--f-display); color: var(--gold-2); font-size: 16px; }
.maker .aka { margin-top: 10px; color: var(--ivory); font-weight: 600; }
.maker .aka i { color: var(--gyo-2); }
.maker .line { color: var(--ivory-2); margin-top: 4px; font-size: 16px; }
.boxed { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 50px); align-items: center; max-width: 860px; margin: clamp(50px, 7vw, 90px) auto 0; }
.boxed img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .75)); animation: float2 8s ease-in-out infinite; }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.boxed h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.boxed p { color: var(--ivory-2); margin-top: 10px; }
.others { text-align: center; margin-top: clamp(50px, 6vw, 80px); padding-top: 30px; border-top: 1px solid var(--line-soft); max-width: 760px; margin-inline: auto; }
.others p { font-family: var(--f-display); color: var(--ivory-3); font-size: 15px; }
.others ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.others li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 21, 22, .45); font-weight: 700; letter-spacing: .03em; color: var(--ivory-2); }
.others li small { font-weight: 600; color: var(--ivory-3); margin-left: 6px; font-size: 12.5px; letter-spacing: 0; }

/* ══ PIÈ DI PAGINA ══ */
.site-foot { position: relative; padding: 30px 0 calc(40px + env(safe-area-inset-bottom)); margin-top: clamp(40px, 6vw, 80px); }
.lotus { display: block; width: 180px; height: 70px; margin: 0 auto 30px; color: var(--frame); opacity: .75; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.foot-brand { display: flex; gap: 16px; align-items: center; }
.foot-brand img { width: 72px; height: 72px; flex: none; }
.foot-brand p { color: var(--ivory-2); font-size: 15px; line-height: 1.5; }
.foot-title { font-family: var(--f-display); font-size: 15px; color: var(--ivory-3); margin-bottom: 10px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-links a { color: var(--ivory-2); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }   /* R01: l'indirizzo email allargava la pagina sui tablet */
.foot-links a:hover { color: var(--gold-2); }
.foot-social { display: flex; gap: 6px; margin: 0 0 10px -8px; }
.legal { margin-top: 34px; color: var(--ivory-3); font-size: 13.5px; text-align: center; }

/* barra in basso sul telefono: appare dopo l'apertura */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 20, 21, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); transform: translateY(110%); transition: transform .4s var(--ease); }
.sticky-cta .btn { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: 15px; }
.sticky-cta.show { transform: none; }

/* ══ PAGINE INTERNE (privacy, questionario) ══ */
.page-doc main { padding: calc(var(--head-h) + clamp(30px, 5vw, 60px)) 0 40px; }
.doc-head { text-align: center; margin-bottom: clamp(30px, 4vw, 50px); }
.doc-head .title { margin-top: 10px; }
.doc-head .updated { color: var(--ivory-3); font-size: 14.5px; margin-top: 12px; }
.doc { width: min(860px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.in-short { padding: clamp(20px, 3vw, 30px); border-radius: 22px; background: radial-gradient(80% 100% at 0% 0%, rgba(226, 170, 82, .1), transparent 60%), var(--panel); border: 1px solid rgba(226, 170, 82, .3); }
.in-short h2 { font-family: var(--f-display); font-size: 22px; color: var(--gold-2); }
.in-short ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.in-short li { position: relative; padding-left: 22px; color: var(--ivory); overflow-wrap: anywhere; }
.in-short li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.toc { margin: 30px 0; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(12, 21, 22, .4); }
.toc p { font-family: var(--f-display); color: var(--ivory-3); font-size: 15px; }
.toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2; column-gap: 30px; }
.toc li { margin: 3px 0; break-inside: avoid; color: var(--ivory-3); }
.toc a { color: var(--ivory-2); text-decoration: none; }
.toc a:hover { color: var(--gold-2); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 30px; font-size: 15px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.data-table th { font-weight: 700; color: var(--ivory); background: rgba(30, 49, 51, .8); font-size: 14px; }
.data-table td { color: var(--ivory-2); background: rgba(12, 21, 22, .35); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ivory); font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sec { margin-top: 38px; scroll-margin-top: calc(var(--head-h) + 20px); }
.sec h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(21px, 2.2vw, 26px); display: flex; gap: 14px; align-items: baseline; }
.sec h2 .n { font-family: var(--f-text); font-weight: 700; color: var(--gold); font-size: .8em; min-width: 1.6em; }
.sec h3 { font-size: 17px; font-weight: 700; margin-top: 18px; color: var(--ivory); }
.sec p, .sec li { color: var(--ivory-2); }
.sec p { margin-top: 10px; }
.sec ul { margin: 10px 0 0; padding-left: 22px; }
.sec li { margin: 6px 0; }
.sec li::marker { color: var(--gold); }
.contact-card { margin-top: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(12, 21, 22, .4); }
.contact-card p { margin-top: 2px; }
.doc a { overflow-wrap: anywhere; }
.doc-note { margin-top: 40px; color: var(--ivory-3); font-size: 14px; text-align: center; }

/* questionario */
.fb-form { display: grid; gap: 18px; }
.q { padding: clamp(18px, 2.6vw, 26px); border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.q legend, .q > label, .q .ql { font-weight: 700; font-size: 17.5px; color: var(--ivory); padding: 0; line-height: 1.35; display: block; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q .help { color: var(--ivory-3); font-size: 14.5px; margin-top: 4px; }
.q .req { color: var(--gold); margin-left: 4px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 21, 22, .5); font-weight: 600; color: var(--ivory-2); transition: all .2s; }
.choices input:checked + span { background: rgba(226, 170, 82, .16); border-color: var(--gold); color: var(--ivory); box-shadow: 0 0 0 3px rgba(226, 170, 82, .14); }
.choices input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; max-width: 420px; }
.scale label { position: relative; }
.scale input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.scale span { display: grid; place-items: center; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 21, 22, .5); font-weight: 700; font-size: 18px; color: var(--ivory-2); transition: all .2s; }
.scale input:checked + span { background: linear-gradient(180deg, #f2c87c, #d99a43); color: #1d1408; border-color: transparent; transform: translateY(-2px); }
.scale input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; max-width: 420px; color: var(--ivory-3); font-size: 13.5px; margin-top: 6px; }
.q textarea, .q input[type=text], .q input[type=email] { width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 14, 15, .6); color: var(--ivory); font: inherit; font-weight: 500; }
.q textarea { min-height: 110px; resize: vertical; }
.q textarea:focus, .q input:focus { outline: 2px solid rgba(226, 170, 82, .7); outline-offset: 1px; border-color: transparent; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; color: var(--ivory-2); font-size: 15.5px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-msg { font-weight: 700; }
.form-msg.bad { color: #ff9f9f; }
.thanks { text-align: center; padding: clamp(30px, 5vw, 60px) clamp(16px, 3vw, 40px); border-radius: 26px; border: 1px solid rgba(226, 170, 82, .4); background: radial-gradient(70% 90% at 50% 0%, rgba(226, 170, 82, .14), transparent 70%), var(--panel); }
.thanks h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); }
.thanks p { color: var(--ivory-2); margin: 12px auto 0; max-width: 52ch; }
.thanks .cta-row { justify-content: center; }
[hidden] { display: none !important; }

/* ══ ANIMAZIONI DI COMPARSA (solo dove servono) ══ */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rift-quote .ln { opacity: 0; transition: opacity 1s var(--ease); }
.rift-quote.in .ln { opacity: 1; }
.rift-quote.in .ln:nth-child(2) { transition-delay: .5s; }
.rift-quote.in .ln:nth-child(3) { transition-delay: 1s; }

/* ══ TABLET ══ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .head-tools, .nav + .head-tools { margin-left: auto; }
  .nav.open { display: flex; position: fixed; top: var(--head-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px var(--gutter) 22px; background: rgba(11, 20, 21, .97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9); }
  .nav.open a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
  .nav.open a::after { display: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label deck" "slots slots"; }
  .mrow-label { grid-area: label; }
  .mrow .deck { grid-area: deck; --cw: 84px; width: 84px; }
  .mrow .slots { grid-area: slots; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .play-grid { grid-template-columns: minmax(0, 1fr); }
  .play-form { max-width: 560px; width: 100%; margin: 0 auto; }
  .devices { max-width: 640px; }
}

/* R01: tablet in verticale (761-960 px): apertura su una colonna, come sul telefono ma più grande. Prima il testo stava
   stretto in mezza pagina e l'ultima carta del ventaglio usciva dal bordo destro. */
@media (min-width: 761px) and (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "deck" "body"; text-align: center; min-height: 0; }
  .hero-title img { width: min(400px, 68%); margin: 0 auto; }
  .hero-tag { justify-content: center; }
  .hero-deck { padding-top: 64px; }
  .deck-stage { --cw: 150px; }
  .hero-lede { margin-inline: auto; }
  .hero .cta-row, .hero .launch, .facts { justify-content: center; }
}

/* ══ TELEFONO ══ */
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  body { font-size: 16.5px; }
  .brand img { width: 42px; height: 42px; }
  .head-tools .icon-link, .head-cta, .head-segui { display: none; }
  /* R01: sul telefono i due pulsanti stanno nel primo schermo (iPhone 13: 664 px utili; prima erano a 1,4 schermi).
     Logo e spazio sopra le carte più piccoli, pulsanti affiancati subito sotto il motto, la descrizione scende sotto. */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "deck" "body"; text-align: center; min-height: 0; padding-top: calc(var(--head-h) + 6px); }
  .hero-title img { width: min(250px, 66vw); margin: 0 auto; }
  .hero-tag { justify-content: center; font-size: 12.5px; margin-top: 2px; gap: 10px; }
  .hero-deck { padding-top: 44px; margin-top: 0; }
  .hero-hare { width: min(400px, 104vw); top: -26%; opacity: .4; }
  .hero-glow { width: 300px; }
  .deck-stage { --cw: min(24vw, 112px); height: calc(var(--cw) * var(--card-k) + 62px); }
  .deck-stage .card:nth-child(1) { --fx: calc(var(--cw) * -1.42); --fy: 16px; }
  .deck-stage .card:nth-child(2) { --fx: calc(var(--cw) * -.48); --fy: -6px; }
  .deck-stage .card:nth-child(3) { --fx: calc(var(--cw) * .48); --fy: -6px; }
  .deck-stage .card:nth-child(4) { --fx: calc(var(--cw) * 1.42); --fy: 16px; }
  .deck-hint { margin-top: 0; font-size: 13px; }
  .hero-body { display: flex; flex-direction: column; }
  .hero-hook { margin-top: 10px; font-size: min(23px, 5.9vw); }   /* 23 px: il motto sta su 2 righe anche in francese e tedesco */
  .hero .cta-row { order: 1; flex-direction: row; margin-top: 14px; gap: 10px; }
  .hero .cta-row .btn { flex: 1 1 0; width: auto; min-width: 0; min-height: 50px; padding: 0 10px; font-size: 15.5px; gap: 7px; flex-wrap: wrap; row-gap: 3px; align-content: center; }
  .hero .cta-row .btn .gf { height: 14px; }
  .t-lungo { display: none; }
  .t-corto { display: inline; }
  .hero .launch { order: 2; margin-top: 12px; row-gap: 8px; }
  .hero-lede { order: 3; margin: 18px auto 0; }
  .facts { order: 4; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .launch { justify-content: center; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; justify-content: stretch; }
  .facts li, .facts li:first-child { padding: 10px 6px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(12, 21, 22, .35); align-items: center; }
  .chapter { padding: 74px 0; }
  .thread { left: 30px; }
  .phase { grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto auto; row-gap: 14px; column-gap: 16px; }
  .phase-glyph { grid-column: 1 !important; grid-row: 1; width: 60px; height: 60px; align-self: start; }
  .phase-glyph svg { width: 40px; height: 40px; }
  .phase .phase-text, .phase:nth-child(odd) .phase-text, .phase:nth-child(even) .phase-text { grid-column: 2; grid-row: 1; text-align: left; justify-self: start; }
  .phase .phase-scene, .phase:nth-child(odd) .phase-scene, .phase:nth-child(even) .phase-scene { grid-column: 2; grid-row: 2; justify-self: start; width: 100%; max-width: 320px; height: 240px; }
  .scene-evening .warrior { width: 130px; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 14px 18px; }
  .mrow .slots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 10px; margin: 0 -14px; padding-inline: 14px; scrollbar-width: none; }
  .mrow .slots::-webkit-scrollbar { display: none; }
  .mrow .slot { flex: 0 0 40%; scroll-snap-align: start; }
  .mrow .deck { --cw: 70px; width: 70px; }
  .mrow-desc { font-size: 14.5px; }
  .dice-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .currencies { grid-template-columns: minmax(0, 1fr); }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .devices { padding-right: 40px; }
  .phone { width: 104px; bottom: -24px; border-radius: 20px; padding: 5px; }
  .phone img { border-radius: 16px; }
  .form-card { padding: 12px 8px 6px; border-radius: 20px; }
  .form-card iframe { height: var(--ifh, 860px); }
  .fb-box { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .fb-fan { margin: 0 auto; }
  .makers-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .boxed { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .boxed img { width: min(240px, 70%); margin: 0 auto; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sticky-cta { display: flex; }
  .site-foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .toc ol { columns: 1; }
  .doc-head .title { font-size: clamp(24px, 7.4vw, 30px); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table tr { border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { border: 0; padding: 4px 14px; background: transparent; }
  .data-table td:first-child { padding-top: 14px; }
  .data-table td:last-child { padding-bottom: 14px; }
  .data-table td[data-l]::before { content: attr(data-l) ": "; color: var(--ivory-3); font-weight: 600; }
  .data-table { background: rgba(12, 21, 22, .35); }
  .btn { white-space: normal; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .lang ul { right: -50px; }
}
@media (max-width: 380px) {
  .lang > summary .code { display: none; }
  .sticky-cta .btn, .hero .cta-row .btn { font-size: 14px; }
  .hero .cta-row .btn { padding: 0 8px; gap: 6px; }
  .hero .cta-row .btn .gf { height: 12px; }
  /* telefoni piccoli (iPhone SE 320×568): logo e spazio sopra le carte ancora un po' più piccoli, così i pulsanti
     restano nel primo schermo in tutte le lingue */
  .hero-tag { font-size: 11.5px; gap: 7px; }
  .hero-title img { width: 60vw; }
  .hero-deck { padding-top: 30px; }
}

/* meno movimento per chi lo chiede: tutto fermo, nessuna informazione persa */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .rv, .rift-quote .ln { opacity: 1; transform: none; }
  .pop, .res, .sc-mini, .scene-night .cube, .scene-night .moon-glow { opacity: 1; }
}
/* senza JavaScript le scene restano ferme: almeno risultati ed esiti si vedono */
html.no-js .phase-scene .res, html.no-js .phase-scene .pop, html.no-js .phase-scene .sc-mini { opacity: 1; }

/* i canvas dei dadi debordano apposta (i dadi arrivano da fuori): mai però oltre i bordi della pagina */
.chapter.day, .chapter.rules { overflow-x: hidden; overflow-x: clip; }
