/* Yokai Overdrive: sito. Colori e font presi dal gioco (index.html di neonronin-forge e kit social). */
@font-face { font-family: 'Exo2 Display'; src: url('font/exo2-black-italic.woff2') format('woff2'); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Exo2'; src: url('font/exo2-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #07060d; --bg-2: #0d0a19; --surface: #14122a; --line: #2c2650; --line-hi: #3b3366;
  --text: #ecebff; --soft: #c9c5e6; --muted: #9d97c2;
  --pink: #ff2bd6; --cyan: #00f0ff; --amber: #ffb02e;
  --display: 'Exo2 Display', 'Arial Black', Impact, sans-serif;
  --body: 'Exo2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  --wrap: 1160px; --gut: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ff8ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--cyan); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- navigazione ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; height: 64px; padding-inline: var(--gut);
  transition: background-color .25s var(--ease), border-color .25s var(--ease); border-bottom: 1px solid transparent; }
/* senza JS la barra resta piena e il logo visibile; con JS è trasparente sopra l'apertura */
.nav, .nav.solid { background: rgba(7, 6, 13, .88); border-color: var(--line); backdrop-filter: blur(10px); }
.js .nav:not(.solid) { background: transparent; border-color: transparent; backdrop-filter: none; }
.nav-logo img { height: 30px; width: auto; transition: opacity .25s var(--ease); }
.js .nav:not(.solid) .nav-logo { visibility: hidden; }
.js .nav:not(.solid) .nav-logo img { opacity: 0; }
.nav ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 auto 0 8px; }
.nav ul a { display: block; padding: 10px 12px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav ul a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: grid; place-items: center; min-width: 44px; min-height: 44px; font: 700 .85rem var(--mono); color: var(--text); text-decoration: none;
  border: 1px solid var(--line-hi); }
.lang:hover { border-color: var(--cyan); color: var(--cyan); }

.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; font: 600 .82rem/1 var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--text); text-decoration: none; border: 1px solid rgba(0, 240, 255, .5); background: rgba(0, 240, 255, .06); }
a.chip:hover { color: var(--text); background: rgba(0, 240, 255, .14); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- apertura ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; overflow: hidden; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-art img { object-fit: cover; object-position: 50% 62%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,6,13,.55) 0%, rgba(7,6,13,0) 22%, rgba(7,6,13,0) 46%, rgba(7,6,13,.82) 74%, var(--bg) 100%); }
.hero-top { padding-top: 84px; display: flex; justify-content: center; }
.logo img { width: min(640px, 84vw); filter: drop-shadow(0 0 24px rgba(255, 43, 214, .35)) drop-shadow(0 6px 18px rgba(0, 0, 0, .7)); }
.hero-bottom { padding: 0 var(--gut) clamp(36px, 7vh, 72px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.tagline { font: 900 italic clamp(1.9rem, 5.2vw, 3.6rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em;
  text-shadow: 0 0 18px rgba(255, 43, 214, .65), 0 0 46px rgba(255, 43, 214, .35), 0 3px 0 #000; }
.hero-sub { max-width: 58ch; color: var(--soft); font-size: clamp(1rem, 1.6vw, 1.15rem); text-shadow: 0 1px 8px #000; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.status { font: 500 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.btn { --cut: 14px; display: inline-grid; place-items: center; min-height: 52px; padding: 0 30px; font: 900 italic 1.05rem var(--display);
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform .18s var(--ease), filter .18s var(--ease), background-color .18s var(--ease); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: -6px; } /* dentro il bordo: il clip-path taglierebbe quello esterno */
.btn-main { background: var(--pink); color: #0b0614; filter: drop-shadow(0 0 14px rgba(255, 43, 214, .55)); }
.btn-main:hover { color: #0b0614; filter: drop-shadow(0 0 22px rgba(255, 43, 214, .85)); }
.btn-ghost { background: rgba(0, 240, 255, .12); color: var(--text); box-shadow: inset 0 0 0 2px var(--cyan); }
.btn-ghost:hover { background: rgba(0, 240, 255, .24); color: var(--text); }

/* ---------- storia ---------- */
.story { position: relative; isolation: isolate; padding: clamp(88px, 13vw, 180px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.story-art, .story-art img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.story-art img { object-fit: cover; object-position: 50% 40%; }
.story::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7,6,13,.55) 30%, rgba(7,6,13,.6) 70%, var(--bg) 100%),
              linear-gradient(90deg, rgba(7,6,13,.92) 0%, rgba(7,6,13,.35) 70%); }
.story-in { position: relative; max-width: 760px; margin-left: max(var(--gut), (100% - var(--wrap)) / 2); }
.kanji { position: absolute; right: max(var(--gut), (100% - var(--wrap)) / 2); top: 50%; translate: 0 -50%; writing-mode: vertical-rl;
  font: 900 clamp(3rem, 7vw, 5.5rem)/1 sans-serif; color: var(--pink); text-shadow: 0 0 18px rgba(255, 43, 214, .8), 0 0 50px rgba(255, 43, 214, .4); opacity: .85; }
.story h2 { font: 900 italic clamp(2.2rem, 6vw, 4.4rem)/1 var(--display); text-transform: uppercase; margin: 10px 0 22px; text-wrap: balance;
  text-shadow: 0 0 30px rgba(0, 0, 0, .9); }
.story-tone { margin-top: 18px; font: 600 .9rem var(--mono); color: var(--cyan); letter-spacing: .04em; }

/* ---------- sezioni ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.eyebrow { font: 600 .8rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: '// '; color: var(--pink); }
.section h2 { font: 900 italic clamp(2rem, 5vw, 3.4rem)/1.02 var(--display); text-transform: uppercase; margin-top: 10px; text-wrap: balance;
  background: linear-gradient(92deg, #8ff9ff 0%, #ffffff 42%, #ff8ae9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 16px; color: var(--soft); font-size: 1.125rem; max-width: 62ch; }

/* cornice da HUD: angoli accesi come i pannelli del gioco */
.frame { --c: var(--cyan); position: relative; background: #000; border: 1px solid var(--line-hi); box-shadow: 0 18px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0,0,0,.6); }
.frame::after { content: ''; position: absolute; inset: -7px; pointer-events: none;
  background:
    linear-gradient(var(--c) 0 0) top left / 22px 2px no-repeat, linear-gradient(var(--c) 0 0) top left / 2px 22px no-repeat,
    linear-gradient(var(--c) 0 0) top right / 22px 2px no-repeat, linear-gradient(var(--c) 0 0) top right / 2px 22px no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / 22px 2px no-repeat, linear-gradient(var(--c) 0 0) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / 22px 2px no-repeat, linear-gradient(var(--c) 0 0) bottom right / 2px 22px no-repeat;
  filter: drop-shadow(0 0 6px var(--c)); }
.frame img { width: 100%; }

.pillar { display: grid; gap: 28px; align-items: center; margin-bottom: clamp(64px, 9vw, 112px); }
.pillar:last-child { margin-bottom: 0; }
.pillar.alt .frame { --c: var(--pink); }
.num { font: 700 1rem var(--mono); color: var(--pink); letter-spacing: .08em; }
.num span { color: var(--muted); text-transform: uppercase; font-weight: 500; font-size: .8rem; letter-spacing: .16em; margin-left: 6px; }
.pillar h3 { font: 900 italic clamp(1.6rem, 3.4vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; margin: 8px 0 14px; text-wrap: balance; }
.pillar-txt p:last-child { color: var(--soft); max-width: 52ch; }
@media (min-width: 960px) {
  .pillar { grid-template-columns: 7fr 5fr; gap: 56px; }
  .pillar.alt { grid-template-columns: 5fr 7fr; }
  .pillar.alt .frame { order: 2; }
}

/* ---------- eroi ---------- */
.heroes-sec { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 43, 214, .08), transparent 70%), var(--bg-2);
  border-block: 1px solid var(--line); }
.heroes { display: grid; gap: 28px; }
.hc-malice { --hc: var(--cyan); } .hc-manga { --hc: var(--pink); } .hc-raffo { --hc: var(--amber); } /* classi e non style="": la CSP vieta gli stili in linea */
@media (min-width: 760px) { .heroes { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.hero-card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 16%, var(--surface)) 0%, var(--surface) 46%);
  border: 1px solid color-mix(in srgb, var(--hc) 40%, var(--line)); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--hc), 0 20px 50px -18px color-mix(in srgb, var(--hc) 55%, transparent); }
.hero-pic { height: 340px; display: flex; align-items: flex-end; justify-content: center; padding-top: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--hc) 30%, transparent), transparent 62%); }
.hero-pic img { max-height: 100%; width: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .7)); transition: transform .35s var(--ease); }
.hero-card:hover .hero-pic img { transform: scale(1.03); }
.hero-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hero-body .ult { margin-top: auto; } /* le tre schermate delle ultimate restano allineate in fondo */
.hero-body h3 { font: 900 italic 2.1rem/1 var(--display); text-transform: uppercase; color: var(--hc); text-shadow: 0 0 18px color-mix(in srgb, var(--hc) 60%, transparent); }
.epithet { font: 600 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-body > p:not(.epithet) { color: var(--soft); }
blockquote { font: italic 600 1.05rem/1.4 var(--body); color: var(--text); padding-left: 14px; border-left: 3px solid var(--hc); }
blockquote::before { content: '«'; } blockquote::after { content: '»'; }
:lang(en) blockquote::before { content: '“'; } :lang(en) blockquote::after { content: '”'; }
.ult { border: 1px solid var(--line-hi); background: #000; }
.ult figcaption { padding: 8px 12px; font: 700 .85rem var(--mono); background: var(--bg); border-top: 1px solid var(--line); }
.ult figcaption span { color: var(--hc); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin-right: 6px; }
.more { margin-top: 32px; text-align: center; font: 600 .9rem var(--mono); color: var(--muted); letter-spacing: .06em; }
.more::before { content: '+ '; color: var(--pink); }

/* ---------- galleria ---------- */
.gallery { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery a { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line-hi); background: #000; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease), filter .35s var(--ease); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); filter: brightness(1.12); }
.gallery a::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s var(--ease); }
.gallery a:hover::after { box-shadow: inset 0 0 0 2px var(--cyan); }

.lightbox { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-hi); background: #000; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(4, 3, 8, .9); }
.lightbox img { width: 100%; max-height: calc(94vh - 52px); object-fit: contain; }
.lb-cap { padding: 12px 16px; font-size: .95rem; color: var(--soft); background: var(--bg); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-hi); background: rgba(7, 6, 13, .85);
  color: var(--text); font: 400 1.6rem/1 var(--body); cursor: pointer; }
.lb-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.lb-close { top: 8px; right: 8px; font-size: 1.1rem; }
.lb-prev { left: 8px; top: 50%; translate: 0 -50%; }
.lb-next { right: 8px; top: 50%; translate: 0 -50%; }

/* ---------- accesso anticipato ---------- */
.plan { display: grid; gap: 20px; }
@media (min-width: 820px) { .plan { grid-template-columns: 1fr 1fr; } }
.plan-col { padding: 28px; background: var(--surface); border: 1px solid var(--line-hi); border-top: 3px solid var(--cyan); }
.plan-col.later { border-top-color: var(--pink); }
.plan-col h3 { font: 900 italic 1.45rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--soft); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; background: var(--cyan);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); box-shadow: 0 0 8px var(--cyan); }
.later .ticks li::before { background: var(--pink); }
.note { margin-top: 22px; font: 500 .92rem var(--mono); color: var(--muted); }

/* ---------- chiusura ---------- */
.final { position: relative; isolation: isolate; padding: clamp(96px, 14vw, 180px) 0; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(255, 43, 214, .18), transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 30%, rgba(0, 240, 255, .12), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.final-in { display: grid; justify-items: center; gap: 18px; }
.final-logo { width: min(360px, 70vw); filter: drop-shadow(0 0 22px rgba(255, 43, 214, .35)); }
.final h2 { font: 900 italic clamp(2.2rem, 6.4vw, 4.6rem)/1 var(--display); text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 0 22px rgba(255, 43, 214, .6), 0 0 60px rgba(255, 43, 214, .3); }
.final .lead { margin-inline: auto; }
.chip-big { font-size: .9rem; padding: 0 22px; min-height: 52px; margin-top: 8px; }
.steam-h { margin-top: 40px; font: 900 italic 1.4rem/1.1 var(--display); text-transform: uppercase; }
.steam-p { color: var(--muted); max-width: 56ch; }

/* ---------- preregistrazione ---------- */
.iscr { width: min(560px, 100%); display: grid; gap: 12px; text-align: left; margin-top: 8px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { font: 600 .8rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.iscr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.iscr input[type=email] { flex: 1 1 240px; min-height: 52px; padding: 0 16px; font: 500 1rem var(--body); color: var(--text);
  background: rgba(7, 6, 13, .7); border: 1px solid var(--line-hi); border-radius: 0; }
.iscr input[type=email]::placeholder { color: #8a84ad; }
.iscr input[type=email]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
.iscr .btn { flex: 0 0 auto; border: 0; }
.iscr .btn:disabled { opacity: .55; cursor: wait; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-size: .95rem; cursor: pointer; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pink); cursor: pointer; }
.iscr-msg { min-height: 1.5em; font-weight: 600; }
.iscr-msg.ok { color: #6dffb0; }
.iscr-msg.ko { color: #ff8a9a; }

/* ---------- informativa privacy e risposta del modulo senza JS ---------- */
.page-legal .nav { position: sticky; }
.legal { max-width: 760px; padding: 48px 0 80px; }
.legal h1 { font: 900 italic clamp(2rem, 5vw, 3rem)/1.05 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.legal h2 { font: 900 italic 1.3rem/1.2 var(--display); text-transform: uppercase; color: var(--cyan); margin: 32px 0 10px; }
.legal p { color: var(--soft); margin-top: 12px; }
.esito main { max-width: 34rem; margin: 18vh auto; padding: 0 20px; }
.esito h1 { font: 900 italic 2rem/1.1 var(--display); text-transform: uppercase; color: var(--pink); }
.esito p { margin-top: 14px; color: var(--soft); }

.foot { padding: 36px 0 44px; border-top: 1px solid var(--line); background: #050409; }
.foot-in { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); text-align: center; }

/* ---------- comparsa allo scorrimento (solo con JS e senza riduzione del movimento) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav-logo img { height: 26px; }
  .nav .chip { display: none; }
  .kanji { display: none; }
}
/* telefono in verticale: l'illustrazione si vede intera, il testo le sta sotto e copre solo il fondo */
@media (max-width: 600px) and (orientation: portrait) {
  .hero { min-height: 0; display: block; }
  .hero-art, .hero-art img { position: relative; height: auto; }
  .hero-top { position: absolute; inset: 0 0 auto; padding-top: 72px; }
  .hero-bottom { position: relative; margin-top: -30vw; }
  .hero::after { background: linear-gradient(180deg, rgba(7,6,13,.5) 0, rgba(7,6,13,0) 80px, rgba(7,6,13,0) 46%, rgba(7,6,13,.9) 62%, var(--bg) 70%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
