/* IL SITO DI LUNEKIN — la notte dell'eclissi e l'oro del Rito. Il colore viene dall'arte (key art, carte, dipinti degli
   elementi); la pagina gli fa da notte. Una forma sola per ciò che si disegna in codice: lo smusso delle placche del gioco. */

@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url(/fonts/cinzel-700-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url(/fonts/cinzel-700-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-weight: 500; font-display: swap; src: url(/fonts/alegreyasans-500-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-weight: 500; font-display: swap; src: url(/fonts/alegreyasans-500-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-weight: 800; font-display: swap; src: url(/fonts/alegreyasans-800-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-weight: 800; font-display: swap; src: url(/fonts/alegreyasans-800-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --night: #0a0712;
  --night-2: #120c1f;
  --deep: #1b1230;
  --ink: #f2ecfb;
  --ink-2: #cdc3de;
  --mute: #a99dbe;
  --gold: #e3bb66;
  --gold-hi: #f7dea0;
  --gold-lo: #9f722c;
  --gold-ink: #1e1307;
  --line: rgba(227, 187, 102, 0.26);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'Alegreya Sans', 'Gill Sans', system-ui, sans-serif;
  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --cut: 14px;
  --chamfer: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  --chamfer-in: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
  --plate: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  --gold-edge: linear-gradient(140deg, var(--gold-hi), var(--gold-lo) 28%, #5a3f1a 50%, var(--gold-lo) 72%, var(--gold-hi));
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--night); color: var(--ink); scrollbar-color: #3b2a5e var(--night); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: clip; background: var(--night); font: 500 1.125rem/1.62 var(--body); font-kerning: normal; }
::selection { background: rgba(227, 187, 102, 0.36); color: #fff; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: 0.01em; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 1.15rem + 3.1vw, 4.1rem); }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
section[id], [id^='h-'] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--gold-ink); font-weight: 800; border-radius: 2px; }
.skip:focus { top: 12px; }
.skip:hover { color: var(--gold-ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.wide { --wrap: 1380px; }
.sec { position: relative; padding-block: clamp(80px, 8.5vw, 140px); }
.ln { display: inline-block; }
.head { display: grid; gap: 22px; margin-bottom: clamp(44px, 5.2vw, 76px); }
.head.center { justify-items: center; text-align: center; }
.lede { max-width: 62ch; font-size: clamp(1.12rem, 1.02rem + 0.3vw, 1.3rem); color: var(--ink-2); }
.head.center .lede { margin-inline: auto; }
.sub { font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2.1rem); color: var(--gold-hi); }
/* il filetto d'oro del Rito: due linee e un rombo, sopra i titoli centrati */
.rule { position: relative; display: block; width: 200px; height: 13px; margin: 0 auto 4px; background: linear-gradient(90deg, transparent, var(--gold) 38%, transparent 38%, transparent 62%, var(--gold) 62%, transparent) center / 100% 1px no-repeat; }
.rule::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; translate: -50% -50%; rotate: 45deg; background: var(--gold); }
/* un dipinto del prologo sotto le teste di sezione: presente, sfumato ai bordi verso la notte */
.ground { position: absolute; inset: 0 0 auto; height: min(760px, 100%); z-index: 0; overflow: hidden; pointer-events: none; -webkit-mask: radial-gradient(ellipse 72% 62% at 50% 45%, #000 22%, transparent 74%), linear-gradient(transparent, #000 24%, #000 66%, transparent); -webkit-mask-composite: source-in; mask: radial-gradient(ellipse 72% 62% at 50% 45%, #000 22%, transparent 74%), linear-gradient(transparent, #000 24%, #000 66%, transparent); mask-composite: intersect; }
.ground-art { width: 100%; height: 100%; object-fit: cover; object-position: var(--gpos, 50% 40%); opacity: 0.3; }
.sec > .wrap, .sec > figure, .sec > .marquee, .sec > .els, .sec > .shelf { position: relative; z-index: 1; }
.caption { margin-top: 18px; font-size: 0.95rem; color: var(--mute); text-align: center; }
.caption-row { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* ---- i pulsanti: le placche del gioco ---------------------------------------------------------------------------------- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; height: 54px; padding: 0 30px; font: 700 0.92rem/1 var(--display); letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; white-space: nowrap; clip-path: var(--plate); transition: transform 160ms ease-out, filter 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn svg { flex: none; }
.btn-gold { color: var(--gold-ink); background: linear-gradient(180deg, #fbe6ac 0%, #e8c06a 46%, #c2903a 54%, #e2b45a 100%); text-shadow: 0 1px 0 rgba(255, 240, 200, 0.5); }
.btn-gold::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.06) drop-shadow(0 6px 14px rgba(227, 187, 102, 0.35)); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-line { color: var(--gold-hi); background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.btn-line::before { content: ''; position: absolute; inset: 1.5px; z-index: -1; clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%); background: rgba(12, 8, 22, 0.84); transition: background 200ms ease; }
.btn-line:hover { color: #fff; }
.btn-line:hover::before { background: rgba(40, 26, 66, 0.9); }
.btn-sm { height: 42px; padding: 0 22px; font-size: 0.76rem; }
.btn-lg { height: 62px; padding: 0 40px; font-size: 1.02rem; }

/* ---- la navigazione ---------------------------------------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); padding: 0 var(--gutter); background: rgba(10, 7, 18, 0.88); box-shadow: 0 1px 0 var(--line); transition: background 0.4s ease, box-shadow 0.4s ease; }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(10, 7, 18, 0.72); backdrop-filter: blur(14px) saturate(1.2); } }
.nav.is-top { background: transparent; box-shadow: none; backdrop-filter: none; }
.nav-logo { flex: none; transition: opacity 0.4s ease; }
.nav-logo img { width: 118px; }
.nav.is-top .nav-logo { opacity: 0; pointer-events: none; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--ink); font: 700 0.8rem/1 var(--display); letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); transition: color 200ms ease; }
.nav-links a:hover { color: var(--gold-hi); }
.nav-lang { display: grid; place-items: center; min-width: 40px; height: 40px; color: var(--ink); font: 700 0.78rem/1 var(--display); letter-spacing: 0.1em; text-decoration: none; border: 1px solid var(--line); border-radius: 2px; }
.nav-lang:hover { color: var(--gold-hi); border-color: var(--gold); }

/* ---- la prima schermata: la folla sotto l'eclissi ---------------------------------------------------------------------- */
/* L'hero mostra il dipinto intero (fino al tamer sul sentiero): è alto quanto la finestra o quanto il 95% del dipinto, il più alto dei due. */
.hero { position: relative; height: max(100svh, 76vw); min-height: 640px; overflow: hidden; background: var(--night); }
.hero-stage { --cx: 50.3%; --cy: 48.1%; --cw: 19.5%; position: absolute; left: 50%; top: 0; width: max(100%, 125svh); aspect-ratio: 2528 / 2022; translate: -50% 0; }
.hero-stage picture, .hero-art { width: 100%; height: 100%; }
.hero-art { object-fit: cover; }
.hero-corona { position: absolute; left: var(--cx); top: var(--cy); width: var(--cw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle, transparent 29%, rgba(222, 206, 255, 0.5) 33.5%, rgba(170, 130, 255, 0.24) 44%, transparent 68%); }
.hero::before, .hero::after { content: ''; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero::before { top: 0; height: 46%; background: linear-gradient(rgba(8, 5, 15, 0.62), rgba(8, 5, 15, 0.18) 70%, transparent); }
.hero::after { bottom: 0; height: 18%; background: linear-gradient(transparent, var(--night)); }
.hero-end { position: absolute; left: 0; bottom: var(--nav-h); width: 1px; height: 1px; }
.hero-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(10px, 1.5vh, 16px); padding: calc(var(--nav-h) + clamp(4px, 2vh, 26px)) var(--gutter) 0; text-align: center; }
.hero-title { line-height: 0; }
.hero-logo { width: clamp(280px, 30vw, 580px); filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.65)); }
.hero-tag { font: 800 clamp(1.08rem, 0.92rem + 0.5vw, 1.42rem)/1.3 var(--body); color: var(--ink); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 4px; }
.hero-status { max-width: 50ch; font-size: 1rem; color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
/* schermi larghi e bassi: il dipinto sale un poco (cielo in meno, folla in più) e il logo si misura sull'altezza */
@media (min-aspect-ratio: 17/10) {
  .hero { height: max(100svh, 70vw); }
  .hero-stage { top: -6vw; }
  .hero-logo { width: clamp(260px, min(30vw, 58svh), 580px); }
}
@media (min-aspect-ratio: 2/1) {
  .hero { height: max(100svh, 68vw); }
  .hero-stage { top: -8vw; }
  .hero-logo { width: clamp(240px, min(30vw, 50svh), 580px); }
}
@media (max-aspect-ratio: 4/5) {
  .hero { height: max(100svh, 170vw); }
  .hero-stage { --cx: 50.2%; --cy: 52.5%; --cw: 27%; width: max(100%, 55.8svh); aspect-ratio: 1536 / 2752; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: settle 2.8s var(--ease) both; }
  .hero-corona { animation: corona 6.5s ease-in-out 1.2s infinite alternate both; }
  .hero-title { animation: rise 1s var(--ease) 0.35s both; }
  .hero-tag { animation: rise 0.9s var(--ease) 0.6s both; }
  .hero-cta { animation: rise 0.9s var(--ease) 0.75s both; }
  .hero-status { animation: rise 0.9s var(--ease) 0.9s both; }
}
@keyframes settle { from { transform: scale(1.07); filter: brightness(0.45) saturate(0.7); } to { transform: none; filter: none; } }
@keyframes corona { from { opacity: 0.35; transform: scale(0.97); } to { opacity: 1; transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---- le carte vere, con la lamina ---------------------------------------------------------------------------------------- */
.tcg { position: relative; display: block; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.45s var(--ease); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.55)); }
.tcg img { width: 100%; }
.tcg .holo { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.5) 44%, rgba(255, 150, 225, 0.32) 49%, rgba(130, 225, 255, 0.34) 55%, transparent 68%); background-size: 260% 260%; background-position: calc(var(--mx, 0.5) * 100%) calc(var(--my, 0.5) * 100%); mix-blend-mode: color-dodge; opacity: 0; transition: opacity 0.35s ease; }
@media (hover: hover) and (pointer: fine) { .tcg:hover .holo { opacity: 0.7; } }

/* il ventaglio dei mitici */
.sec-cards { padding-bottom: clamp(56px, 6vw, 100px); overflow-x: clip; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(92, 58, 160, 0.22), transparent 70%); }
.sec-cards .head { justify-items: center; text-align: center; }
.sec-cards .lede { margin-inline: auto; }
.fan { display: flex; justify-content: center; margin: 0; padding: 36px var(--gutter) 0; list-style: none; }
.fan-card { --w: clamp(140px, 13vw, 232px); position: relative; flex: none; width: var(--w); margin-inline: calc(var(--w) * -0.15); transform-origin: 50% 130%; transform: translateY(calc(var(--i) * var(--i) * 6px)) rotate(calc(var(--i) * 4.2deg)); transition: transform 0.6s var(--ease); }
.fan-card:hover, .fan-card:focus-within { z-index: 5; transform: translateY(-30px) rotate(0deg) scale(1.07); }
.js .fan.will-dealt:not(.is-dealt) .fan-card { transform: translateX(calc(var(--i) * -78%)) translateY(40px) rotate(calc(var(--i) * 0.6deg)); }
.js .fan.is-dealt .fan-card { transition-delay: calc((var(--i) + 4) * 55ms); }
.js .fan.is-dealt .fan-card:hover { transition-delay: 0ms; }

/* ---- la battaglia vera ----------------------------------------------------------------------------------------------- */
/* il video entra intero nella finestra: largo al più quanto 1,83 volte (le sue proporzioni) l'altezza che resta sotto la navigazione */
.battle-figure { max-width: min(1380px, calc((100svh - var(--nav-h) - 110px) * 1.83)); }
.sec-battle .head { max-width: min(1380px, calc((100svh - var(--nav-h) - 110px) * 1.83)); }
.screen { position: relative; padding: 2px; background: var(--gold-edge); clip-path: var(--chamfer); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9); }
.screen-video { width: 100%; aspect-ratio: auto; object-fit: cover; background: #05030a; clip-path: var(--chamfer-in); }
/* la volpe di fuoco del prologo, seduta sul bordo del video: un Lunekin vero che guarda la battaglia */
.battle-figure { position: relative; }
.peek { position: absolute; z-index: 2; right: 7%; top: 0; width: clamp(96px, 10vw, 150px); translate: 0 -74%; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.vid-toggle { flex: none; display: grid; place-items: center; width: 46px; height: 46px; color: var(--gold-hi); background: rgba(10, 7, 18, 0.78); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: background 200ms ease, transform 160ms ease-out; }
.vid-toggle:hover { background: rgba(40, 26, 66, 0.92); }
.vid-toggle:active { transform: scale(0.95); }
.vid-toggle .i-pause, .vid-toggle.is-playing .i-play { display: none; }
.vid-toggle.is-playing .i-pause { display: block; }
.vid-toggle span { line-height: 0; }

/* ---- la corsa: i passi a sinistra, la scena ferma a destra --------------------------------------------------------------- */
.sec-rite { background: linear-gradient(180deg, transparent, rgba(27, 18, 48, 0.55) 30%, rgba(27, 18, 48, 0.55) 70%, transparent); }
.rite { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 84px); }
.step { position: relative; display: grid; align-content: center; gap: 16px; min-height: 76vh; padding: 40px 0 40px clamp(28px, 3vw, 44px); border-left: 1px solid var(--line); }
.step::before { content: ''; position: absolute; left: -7px; top: calc(50% - 7px); width: 13px; height: 13px; background: var(--night); border: 1px solid var(--gold); rotate: 45deg; transition: background 0.4s ease, box-shadow 0.4s ease; }
.step.is-on::before { background: var(--gold); }
.step h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); }
.step p { max-width: 46ch; color: var(--ink-2); }
.step-shot { display: none; }
.rite-sticky { position: sticky; top: calc(var(--nav-h) + 8vh); }
.frame { position: relative; padding: 2px; background: var(--gold-edge); clip-path: var(--chamfer); }
.frame > img { clip-path: var(--chamfer-in); }
.stage-frame { aspect-ratio: 16 / 10; background-color: #05030a; }
.stage-img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease), transform 1.4s var(--ease); }
.stage-img.is-on { opacity: 1; transform: none; }
.days { display: flex; justify-content: space-between; gap: 6px; margin: 22px 4px 0; padding: 0; list-style: none; }
.days li { display: grid; justify-items: center; gap: 8px; }
.days li::before { content: ''; width: 11px; height: 11px; border: 1px solid var(--line); rotate: 45deg; transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.days li.is-apex::before { width: 15px; height: 15px; border-color: rgba(205, 188, 255, 0.5); }
.days li span { color: var(--mute); font: 700 0.76rem/1 var(--display); transition: color 0.4s ease; }
.days li.is-lit::before { background: var(--gold); border-color: var(--gold-hi); }
.days li.is-lit span { color: var(--gold-hi); }

/* ---- l'evoluzione: quattro forme che salgono --------------------------------------------------------------------------- */
.evolve { display: grid; gap: clamp(44px, 5vw, 72px); }
.evolve-text { display: grid; gap: 18px; max-width: 64ch; margin-inline: auto; text-align: center; }
.evolve-text p { color: var(--ink-2); font-size: clamp(1.08rem, 1rem + 0.25vw, 1.24rem); }
.evolve-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 2vw, 32px); margin: 0; padding: 0; list-style: none; }
.evo { display: grid; justify-items: center; gap: 16px; transform: translateY(calc(var(--s) * -26px)); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.evo .tcg { width: calc((0.72 + var(--s) * 0.093) * 100%); }
.evo-stars { display: inline-flex; align-items: center; gap: 0; color: var(--gold); font: 700 1rem/1 var(--display); letter-spacing: 0.1em; }
/* le stelle della forma, come sulla carta: accese fino al suo stadio, spente le altre */
.evo-stars i { font-style: normal; color: rgba(227, 187, 102, 0.28); }
.js .evolve-cards.will-risen:not(.is-risen) .evo { opacity: 0; transform: translateY(40px); }
.js .evolve-cards.is-risen .evo { transition-delay: calc(var(--s) * 180ms); }

/* ---- gli otto elementi: le tavole dell'eclissi ------------------------------------------------------------------------- */
.els { display: flex; gap: 8px; height: clamp(540px, 78vh, 780px); max-width: 1720px; margin-inline: auto; padding-inline: var(--gutter); }
.el { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer; clip-path: var(--chamfer); background: var(--deep); transition: flex-grow 0.75s var(--ease); }
.el:focus-visible { outline: none; }
.el:focus-visible .el-tab, .el:focus-visible h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.el-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(1.06); filter: saturate(0.7) brightness(0.62); transition: transform 1.3s var(--ease), filter 0.7s ease; }
.el::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(6, 4, 12, 0.94), rgba(6, 4, 12, 0.4) 46%, transparent 72%), linear-gradient(to top, color-mix(in oklab, var(--el) 30%, transparent), transparent 46%); }
.el-tab { position: absolute; z-index: 2; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 14px; translate: -50% 0; writing-mode: vertical-rl; rotate: 180deg; color: var(--el); font: 700 1rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; transition: opacity 0.35s ease; }
.el-tab .el-icon { width: 34px; rotate: 180deg; }
.el-body { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(100%, 560px); display: grid; gap: 12px; padding: clamp(22px, 2.6vw, 40px); opacity: 0; translate: 0 18px; transition: opacity 0.35s ease, translate 0.6s var(--ease); }
.el-body h3 { display: flex; align-items: center; gap: 14px; color: var(--el); font-size: clamp(2rem, 1.3rem + 2vw, 3.3rem); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.el-body h3 .el-icon { width: 46px; }
.el-flavor { max-width: 36ch; font-size: clamp(1.1rem, 1rem + 0.3vw, 1.3rem); color: var(--ink); }
.el-effect { color: var(--mute); font: 700 0.82rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.el-effect b { margin-left: 0.4em; color: var(--el); }
.el-painted { color: var(--mute); font-size: 0.92rem; }
.el.is-open { flex-grow: 6.2; cursor: default; }
.el.is-open .el-art { transform: none; filter: none; }
.el.is-open .el-tab { opacity: 0; }
.el.is-open .el-body { opacity: 1; translate: 0 0; transition-delay: 0.22s, 0.18s; }

/* ---- la collezione ------------------------------------------------------------------------------------------------------ */
.collection { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(36px, 5vw, 84px); }
.collection-video { order: -1; }
.collection-text { display: grid; gap: 18px; }
.collection-text h2 { font-size: clamp(2rem, 1rem + 2.4vw, 3.4rem); }
.collection-text p { color: var(--ink-2); }
.sec-collection { overflow-x: clip; }
.shelf { display: flex; justify-content: center; margin: clamp(64px, 8vw, 112px) auto 0; padding: 0 var(--gutter); list-style: none; }
.shelf li { flex: none; width: clamp(92px, 8.6vw, 150px); margin-inline: -0.9%; transform: translateY(calc(var(--i) * var(--i) * 2.4px)) rotate(calc(var(--i) * 2.4deg)); transform-origin: 50% 120%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.5s var(--ease); }
.shelf li:hover { z-index: 3; transform: translateY(-22px) rotate(0deg) scale(1.1); }

/* ---- il bestiario: due file di carte che scorrono --------------------------------------------------------------------------- */
.marquee { display: grid; gap: 22px; overflow: hidden; padding-block: 34px; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq { display: flex; width: max-content; }
.mq-row { display: flex; gap: 20px; margin: 0; padding: 0 20px 0 0; list-style: none; }
.mq-row li { flex: none; width: clamp(140px, 12.5vw, 204px); }
@media (prefers-reduced-motion: no-preference) {
  .mq { animation: mq 110s linear infinite; }
  .mq-rev { animation-direction: reverse; animation-duration: 130s; }
  .marquee:hover .mq, .marquee:focus-within .mq { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .mq-row[aria-hidden] { display: none; } }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---- il mondo: gli occhi sopra la Guglia, gli Apex, i tamer ------------------------------------------------------------- */
.sec-world { padding-top: 0; }
.world-band { position: relative; display: grid; align-items: center; min-height: clamp(540px, 80vh, 860px); overflow: hidden; margin-bottom: clamp(64px, 8vw, 120px); }
.world-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.world-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10, 7, 18, 0.94), rgba(10, 7, 18, 0.62) 38%, transparent 66%), linear-gradient(to top, var(--night), transparent 24%), linear-gradient(to bottom, var(--night), transparent 18%); }
.world-text { position: relative; z-index: 1; display: grid; gap: 20px; padding-block: 80px; }
.world-text h2 { max-width: 15ch; }
.world-text p { max-width: 42ch; color: var(--ink-2); font-size: clamp(1.1rem, 1rem + 0.3vw, 1.28rem); }
.triptych { display: grid; grid-template-columns: 1fr 1.22fr 1fr; align-items: end; gap: clamp(12px, 1.6vw, 24px); margin: 30px 0 0; padding: 0; list-style: none; }
.apex { position: relative; aspect-ratio: 3 / 4; overflow: hidden; clip-path: var(--chamfer); background: var(--deep); }
.apex.is-centre { aspect-ratio: 3 / 4.4; }
.apex-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transition: transform 1.2s var(--ease); }
.apex:hover .apex-art { transform: scale(1.04); }
.apex::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(6, 4, 12, 0.95), rgba(6, 4, 12, 0.3) 45%, transparent 65%); }
.apex-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: clamp(18px, 2vw, 30px); }
.apex-text h4 { color: var(--el); font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.65rem); }
.apex-text p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.tamers-head { display: grid; gap: 12px; max-width: 62ch; margin-top: clamp(80px, 9vw, 136px); }
.tamers-head p { color: var(--ink-2); }
.tamers { --th: clamp(220px, 22vw, 360px); display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: start; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.tamers li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; text-align: center; }
.tamers li::before { content: ''; position: absolute; left: 6%; right: 6%; top: calc(var(--th) - 48px); height: 46px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--el) 55%, transparent), transparent); filter: blur(4px); }
.tamer-art { position: relative; height: var(--th); width: auto; max-width: 150%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.65)); transition: transform 0.5s var(--ease); }
.tamers li:hover .tamer-art { transform: translateY(-10px); }
.t-name { margin-top: 18px; font: 700 1.05rem/1.2 var(--display); }
.t-title { margin-top: 6px; color: var(--el); font: 700 0.72rem/1.25 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.t-blurb { margin-top: 10px; padding-inline: 4px; color: var(--mute); font-size: 0.9rem; line-height: 1.45; }

/* ---- press kit e domande -------------------------------------------------------------------------------------------------- */
.sec-info { background: linear-gradient(180deg, transparent, rgba(27, 18, 48, 0.5) 40%, transparent); }
.info { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 104px); align-items: start; }
.press { display: grid; gap: 22px; }
.press > p { color: var(--ink-2); max-width: 54ch; }
.factsheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 10px 0 18px; }
.factsheet dt { color: var(--gold); font: 700 0.72rem/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.factsheet dd { margin: 6px 0 0; color: var(--ink); font-size: 1.02rem; line-height: 1.45; }
.faq { display: grid; }
.faq h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.7rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; font: 800 1.08rem/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; margin-top: 3px; color: var(--gold); transition: rotate 0.3s var(--ease); }
.faq details[open] summary svg { rotate: 45deg; }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

/* ---- la chiusura: l'eclissi si rompe sopra la Guglia ----------------------------------------------------------------------- */
.final { position: relative; display: grid; place-items: center; min-height: clamp(560px, 88vh, 940px); overflow: hidden; text-align: center; }
.final-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.final::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 40% at 50% 50%, rgba(10, 7, 18, 0.78), rgba(10, 7, 18, 0.34) 62%, transparent 82%), linear-gradient(var(--night), transparent 22%, transparent 74%, var(--night)); }
.final-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; padding: 0 var(--gutter); }
.final h2 { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.4rem); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.final p { color: var(--ink); font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }

/* ---- il piede ------------------------------------------------------------------------------------------------------------ */
.foot { padding: 56px 0 44px; border-top: 1px solid var(--line); }
.foot-in { display: grid; justify-items: center; gap: 18px; text-align: center; }
.foot-logo { width: 140px; }
.foot-ai { max-width: 72ch; color: var(--mute); font-size: 0.88rem; line-height: 1.55; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--mute); font-size: 0.92rem; }
.foot-links a { color: var(--ink-2); }

/* ---- schermi stretti -------------------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tamers { --th: clamp(220px, 40vw, 340px); grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-lang { margin-left: auto; }
  .rite { grid-template-columns: 1fr; }
  .rite-stage { display: none; }
  .step { min-height: 0; padding-block: 28px 36px; }
  .step::before { top: 46px; }
  .step-shot { display: block; margin-top: 10px; }
  .collection, .info { grid-template-columns: 1fr; }
  .collection-video { order: 0; }
  .triptych { grid-template-columns: 1fr; gap: 16px; }
  .apex, .apex.is-centre { aspect-ratio: 4 / 3.2; }
  .els { height: auto; padding-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .el { flex: 0 0 82vw; height: min(76svh, 640px); scroll-snap-align: center; }
  .el .el-tab { opacity: 0; }
  .el .el-body { opacity: 1; translate: 0 0; }
  .el .el-art { transform: none; filter: none; }
  .fan { justify-content: flex-start; gap: 14px; padding-bottom: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fan-card, .js .fan.will-dealt:not(.is-dealt) .fan-card { --w: 62vw; margin: 0; transform: none; scroll-snap-align: center; }
  .shelf { justify-content: flex-start; overflow-x: auto; padding-block: 30px 10px; scrollbar-width: none; }
  .shelf li { width: 30vw; transform: none; }
  .evolve-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .evo { transform: none; }
  .evo .tcg { width: 100%; }
  .world-band { align-items: end; }
  .world-band::after { background: linear-gradient(to top, var(--night) 4%, rgba(10, 7, 18, 0.7) 44%, rgba(10, 7, 18, 0.2) 75%), linear-gradient(to bottom, var(--night), transparent 18%); }
  .world-art { object-position: 55% 30%; }
  .tamers { --th: min(64vw, 300px); display: flex; gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tamers li { flex: 0 0 46vw; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  :root { --nav-h: 62px; }
  .nav { gap: 12px; }
  .nav-logo img { width: 92px; }
  .nav .btn-sm { height: 38px; padding: 0 16px; font-size: 0.72rem; letter-spacing: 0.04em; }
  .hero { min-height: 600px; }
  .hero-logo { width: min(80vw, 340px); }
  .btn { height: 50px; padding: 0 22px; font-size: 0.84rem; }
  .factsheet { grid-template-columns: 1fr; }
  .final .btn-lg { height: 56px; padding: 0 28px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .tcg { transform: none; }
}
