:root {
  --ink:#150f1c; --panel:#1f1830; --slot:#33294d; --button:#5c4585;
  --green:#8ce666; --gold:#ffd147; --start:#ffbd29; --text:#f4f0fa; --muted:#c9c0dc;
  --edge:4px solid var(--ink); --gutter:16px;
}
@font-face { font-family:"Lilita One"; src:url("/assets/LilitaOne.ttf") format("truetype"); font-display:swap; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; background:var(--ink); color:var(--text); font:18px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x:hidden; }
img { max-width:100%; height:auto; display:block; }
section { padding:72px var(--gutter); }
h1, h2, h3, .eyebrow, .tagline, .cta, .badge, .big, .node, figcaption, .tiers, .tabs button, dt, small { font-family:"Lilita One", system-ui, sans-serif; font-weight:400; }
h1 { margin:0; }
h2, h3 { line-height:1.12; margin:0 0 12px; text-shadow:0 3px 0 var(--ink); }
h2 { font-size:clamp(34px, 6vw, 58px); color:var(--green); }
h3 { font-size:clamp(30px, 4.6vw, 44px); color:var(--gold); }
p { margin:0 0 14px; }
.eyebrow { color:var(--gold); font-size:20px; letter-spacing:.03em; margin-bottom:6px; text-shadow:0 2px 0 var(--ink); }
.shot { width:100%; border:var(--edge); border-radius:18px; box-shadow:0 8px 0 rgba(0,0,0,.35); }
.note { color:var(--gold); font-weight:600; }

/* Landing zone */
.hero { min-height:100svh; padding:24px var(--gutter) 0; display:flex; flex-direction:column; align-items:center; justify-content:space-between; text-align:center; gap:12px;
  background:url("/assets/art/menu_bg.png") center bottom / cover no-repeat, #1c1432; overflow:hidden; }
.hero-copy { width:100%; max-width:720px; }
.hero h1 img { width:min(100%, 620px); margin:0 auto -8px; }
.tagline { font-size:clamp(24px, 4.4vw, 36px); line-height:1.2; color:var(--text); text-shadow:0 3px 0 var(--ink); margin-bottom:18px; }
.actions { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; align-items:stretch; }
.cta { display:flex; align-items:center; justify-content:center; min-height:72px; padding:0 40px; font-size:30px; color:#fff; text-decoration:none; text-shadow:0 3px 0 #a86a00;
  background:linear-gradient(#ffd147, #ffb31a); border:var(--edge); border-radius:18px; box-shadow:0 7px 0 #b27400, 0 11px 0 var(--ink); transition:transform .08s, box-shadow .08s; }
.cta:hover { transform:translateY(2px); box-shadow:0 5px 0 #b27400, 0 9px 0 var(--ink); }
.cta:active { transform:translateY(6px); box-shadow:0 1px 0 #b27400, 0 5px 0 var(--ink); }
.badge { display:flex; flex-direction:column; justify-content:center; min-height:72px; padding:0 22px; color:#fff; text-decoration:none; font:400 24px/1.1 "Lilita One", sans-serif; text-align:left;
  background:#0e0a13; border:3px solid var(--muted); border-radius:14px; }
.badge small { font-size:13px; color:var(--muted); }
.fine { font-size:15px; color:var(--muted); margin:22px 0 0; }
:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.hero-party { display:flex; justify-content:center; align-items:flex-end; width:100%; max-width:760px; margin-bottom:-2px; }
.hero-party img { flex:1 1 0; min-width:0; width:25%; margin:0 -3%; }

/* Why */
.why { background:linear-gradient(#1c1432, var(--ink)); }
.hexed { background:radial-gradient(ellipse at 75% 40%, #7c1520, #2a0b16 60%, #1c1432); }
.split { max-width:1140px; margin:0 auto; display:grid; gap:32px; align-items:center; }
.hexes { list-style:none; display:flex; gap:10px; padding:0; margin:18px 0 0; }
.hexes li { flex:1 1 0; max-width:92px; }
.cards { max-width:1140px; margin:0 auto; display:grid; gap:24px; }
.card { background:var(--panel); border:var(--edge); outline:3px solid var(--slot); border-radius:22px; padding:16px; }
.card h2 { font-size:clamp(28px, 4vw, 36px); margin-top:18px; }
cite { display:block; margin-top:4px; font-size:15px; font-style:normal; color:var(--muted); }
blockquote { margin:12px 0 0; padding-left:12px; border-left:5px solid var(--gold); color:var(--gold); font-style:italic; }

/* Heroes */
.heroes { background:url("/assets/art/menu_bg.png") center / cover no-repeat, #1c1432; text-align:center; }
.tabs { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; max-width:760px; margin:20px auto; }
.tabs button { padding:6px 4px 8px; background:var(--button); color:#fff; border:var(--edge); border-radius:14px; font-size:clamp(11px, 2.7vw, 18px); cursor:pointer; box-shadow:0 5px 0 var(--ink); }
.tabs button img { width:100%; max-width:96px; margin:0 auto 4px; }
.tabs [aria-selected="true"] { background:var(--start); color:var(--ink); }
.hero-panel { max-width:1140px; margin:0 auto 20px; padding:20px; display:grid; gap:16px; text-align:left; border:var(--edge); border-radius:24px; }
.hero-panel[hidden] { display:none; }
.barbarian { background:linear-gradient(135deg, #8a3a2a, #40190f); }
.sorceress { background:linear-gradient(135deg, #5a2aa8, #27104f); }
.paladin { background:linear-gradient(135deg, #3f6ad0, #1b2c5c); }
.necromancer { background:linear-gradient(135deg, #1f7a5a, #0d3528); }
.figure { width:min(70%, 280px); margin:0 auto; filter:drop-shadow(0 8px 0 rgba(0,0,0,.35)); }
.line { font:400 clamp(22px, 3.4vw, 30px)/1.2 "Lilita One", sans-serif; }
dl { margin:0; display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
dt { color:var(--gold); font-size:15px; }
dd { margin:0; font-size:16px; }
.hero-panel .shot { grid-column:1 / -1; }

/* Descent */
.descent { padding:0; background:var(--ink); }
.descent-intro { max-width:860px; margin:0 auto; padding:72px var(--gutter) 48px; text-align:center; }
.act { padding:64px var(--gutter); position:relative; display:grid; gap:24px; align-items:center; }
.act > * { max-width:1140px; }
.node { position:absolute; top:-30px; left:50%; margin-left:-30px; width:60px; height:60px; display:grid; place-items:center; font-size:28px; color:var(--ink); background:var(--gold); border:var(--edge); border-radius:50%; z-index:1; }
.boss { display:flex; align-items:center; gap:12px; margin:14px 0 0; font:400 24px/1.1 "Lilita One", sans-serif; }
.boss img { width:88px; height:88px; object-fit:contain; }
.boss small { display:block; font-size:14px; color:var(--gold); }
.forest { background:linear-gradient(#2f7d46, #123f27); }
.kingdom { background:linear-gradient(#123f27, #5e4422 28%, #4a3419); }
.crypt { background:linear-gradient(#4a3419, #3a3748 28%, #23222f); }
.desert { background:linear-gradient(#23222f, #96601f 28%, #7a4c17); }
.peaks { background:linear-gradient(#7a4c17, #3f6a96 28%, #2b4f76); }
.infernal { background:linear-gradient(#2b4f76, #7a1d12 28%, #4b0f0a); }
.celestial { background:linear-gradient(#4b0f0a, #5f54ad 28%, #443a8c); }

/* Endless */
.endless { background:linear-gradient(#443a8c, #0b0810 22%, #050307); text-align:center; }
.endless > * { max-width:720px; margin-left:auto; margin-right:auto; }
.endless .tile { width:min(66%, 280px); margin-bottom:24px; }
.big { font-size:clamp(26px, 4.4vw, 38px); line-height:1.15; color:var(--gold); }
.tiers { list-style:none; padding:0; display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:20px; }
.tiers li { padding:6px 16px; font-size:20px; background:var(--slot); border-radius:12px; }

/* Asides */
.aside { display:grid; gap:20px; background:#1c1432; }
.aside article { max-width:560px; margin:0 auto; display:flex; gap:14px; align-items:center; background:var(--panel); border:var(--edge); border-radius:20px; padding:16px; }
.aside img { width:96px; flex:none; }
.aside h3 { font-size:26px; }
.aside p { margin:0; }

/* Gallery */
.gallery { background:#1c1432; text-align:center; padding-left:0; padding-right:0; }
.track { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; padding:18px var(--gutter) 12px; scrollbar-width:thin; scroll-padding:0 var(--gutter); }
.track figure { flex:0 0 min(92vw, 980px); margin:0; scroll-snap-align:center; }
.track img { width:100%; border:var(--edge); border-radius:18px; }
figcaption { margin-top:8px; color:var(--gold); font-size:20px; }
.arrows { display:flex; justify-content:center; gap:14px; margin-top:6px; }
.arrows button { width:56px; height:56px; font:400 32px/1 "Lilita One", sans-serif; color:#fff; background:var(--button); border:var(--edge); border-radius:14px; cursor:pointer; box-shadow:0 5px 0 var(--ink); }

/* Closing */
.closing { background:url("/assets/art/menu_bg.png") center bottom / cover no-repeat, #1c1432; text-align:center; }
.closing .logo { width:min(100%, 480px); margin:0 auto; }
footer { margin-top:40px; }
footer a { color:var(--green); margin:0 10px; }

.toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%, 90px); max-width:calc(100vw - 32px); padding:12px 20px; background:var(--panel); color:var(--gold); border:var(--edge); outline:3px solid var(--slot); border-radius:14px; font:400 19px/1.2 "Lilita One", sans-serif; opacity:0; transition:transform .2s, opacity .2s; pointer-events:none; z-index:5; }
.toast.show { transform:translate(-50%, 0); opacity:1; }

@media (min-width:860px) {
  :root { --gutter:32px; }
  .split { grid-template-columns:5fr 6fr; }
  .cards { grid-template-columns:repeat(3, 1fr); }
  .hero-panel { grid-template-columns:280px 1fr; align-items:center; padding:28px; }
  .act { grid-template-columns:minmax(0, 4fr) minmax(0, 7fr); justify-content:center; padding-left:max(var(--gutter), calc(50vw - 570px)); padding-right:max(var(--gutter), calc(50vw - 570px)); }
  .act:nth-of-type(even) { grid-template-columns:minmax(0, 7fr) minmax(0, 4fr); }
  .act:nth-of-type(even) .act-copy { order:2; }
  .aside { grid-template-columns:1fr 1fr; }
  .aside article { margin:0 0 0 auto; }
  .aside article + article { margin:0 auto 0 0; }
}
@media (max-height:640px) and (orientation:landscape) {
  .hero h1 img { width:320px; }
  .hero-party { display:none; }
  .hero { justify-content:center; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .cta, .toast { transition:none; }
}
