/* Eden: The Last Wanderer, the pre-launch site. "Cathedral at Night": ink, gold and the red moon. */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --night0: #07060a;
  --night1: #0c0a11;
  --night2: #14101b;
  --panel: rgba(20, 15, 28, 0.72);
  --panel-solid: #15111d;
  --line: rgba(201, 168, 106, 0.28);
  --gold: #e2c88e;
  --gold-hot: #ffe3a6;
  --gold-line: #c9a86a;
  --gold-deep: #8a6b37;
  --ink: #ede6da;
  --ink2: #c9c1b6;
  --dim: #958da0;
  --moon: #b3262e;
  --moon-hot: #e0474e;
  --steel: #cfd9ff; --curse: #c07bff; --hymn: #ffd97f; --grave: #8cf29a; --storm: #73bfff; --flame: #ff8a3d;
  --radius: 14px;
  --max: 1200px;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--night0); }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(179, 38, 46, 0.22), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(84, 52, 140, 0.12), transparent 60%),
    var(--night0);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: 0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12; color: var(--ink); }
h3 { font-size: 20px; }
p { margin: 0 0 14px; color: var(--ink2); }
button { font: inherit; color: inherit; }

#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
main, .footer, .nav { position: relative; z-index: 2; }

/* --- Buttons and chips ------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, #f6dfa8 0%, #e2c88e 45%, #b98f4c 100%);
  border-color: #f7e4b5;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset, 0 8px 30px rgba(226, 200, 142, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset, 0 12px 40px rgba(255, 214, 140, 0.45); }
.btn-ghost { color: var(--gold); border-color: var(--gold-line); background: rgba(12, 9, 16, 0.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(226, 200, 142, 0.12); transform: translateY(-2px); }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2);
  border: 1px solid var(--line); background: rgba(12, 9, 16, 0.6);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-line); background: rgba(40, 24, 18, 0.55);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moon-hot); box-shadow: 0 0 0 0 rgba(224, 71, 78, .7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(224, 71, 78, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(224, 71, 78, 0); } }

/* --- Navigation ------------------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(7, 6, 10, 0.86); backdrop-filter: blur(10px); padding-top: 10px; padding-bottom: 10px; border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-moon {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 34%, #f07a7e 0%, var(--moon-hot) 25%, var(--moon) 60%, #5c0d13 100%);
  box-shadow: 0 0 18px rgba(224, 71, 78, 0.65);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--serif); font-size: 22px; letter-spacing: 0.18em; }
.brand-text small { font-size: 10px; letter-spacing: 0.34em; color: var(--gold); margin-top: 4px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; font-size: 15px; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12,9,16,.7); flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.nav-burger span { width: 20px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s ease, opacity .2s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ------------------------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-rows: 1fr auto; padding: 120px clamp(16px, 5vw, 72px) 40px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-painting {
  position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
  opacity: 0.9; transform: scale(1.04); transform-origin: 70% 30%; animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(1.03); } to { transform: scale(1.08); } }
.hero-moon {
  position: absolute; width: 300px; height: 300px; right: 6%; top: 8%; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(255, 130, 130, .9) 0%, rgba(224, 71, 78, .85) 20%, rgba(150, 20, 28, .9) 55%, rgba(60, 5, 10, .95) 80%, transparent 82%);
  box-shadow: 0 0 120px 40px rgba(179, 38, 46, 0.35);
  mix-blend-mode: screen; opacity: 0.55; filter: blur(0.5px); animation: moon 9s ease-in-out infinite alternate;
}
@keyframes moon { from { box-shadow: 0 0 100px 30px rgba(179, 38, 46, 0.3); } to { box-shadow: 0 0 160px 60px rgba(179, 38, 46, 0.45); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,6,10,.96) 0%, rgba(7,6,10,.82) 32%, rgba(7,6,10,.15) 62%, rgba(7,6,10,.35) 100%); z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 640px; align-self: center; }
.title { margin: 22px 0 6px; line-height: 0.9; }
.title-eden {
  display: block; font-size: clamp(84px, 13vw, 168px); letter-spacing: 0.08em; font-weight: 800;
  background: linear-gradient(180deg, #fff6e4 0%, #f0d9a8 45%, #b88d4a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(226, 200, 142, 0.25));
}
.title-sub { display: block; font-size: clamp(18px, 2.4vw, 28px); letter-spacing: 0.42em; color: var(--gold); text-transform: uppercase; margin-top: 10px; font-weight: 600; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); margin: 18px 0 12px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(8px);
  max-width: 1040px;
}
.stat { padding: 18px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); color: var(--gold-hot); line-height: 1.1; }
.stat span { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- Ticker ----------------------------------------------------------------------------------------- */
.ticker { position: relative; z-index: 2; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(60, 12, 18, .5), rgba(20, 14, 28, .8), rgba(60, 12, 18, .5)); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-track span { white-space: nowrap; padding: 14px 34px; font-weight: 700; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); position: relative; }
.ticker-track span::after { content: "◆"; position: absolute; right: -6px; color: var(--moon-hot); font-size: 10px; top: 50%; transform: translateY(-50%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Sections --------------------------------------------------------------------------------------- */
.section { max-width: var(--max); margin: 0 auto; padding: 92px clamp(16px, 4vw, 40px) 30px; }
.kicker { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: 14px; color: var(--gold); margin-bottom: 18px; }
.kicker i { font-style: normal; font-family: var(--serif); font-size: 15px; color: #1a1206; background: var(--gold); padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em; }
.kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-lead { font-size: 19px; max-width: 760px; margin: 16px 0 34px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.story-copy h2 { margin-bottom: 24px; }
.story-hook { font-family: var(--serif); font-size: 22px; color: var(--gold-hot); margin: 22px 0 28px; }
.lore-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lore-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.lore-card h3 { font-size: 16px; color: var(--gold); margin-bottom: 8px; letter-spacing: 0.06em; }
.lore-card p { font-size: 15px; margin: 0; }
.wanderer { position: sticky; top: 100px; }
.wanderer-frame {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--gold-line);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(179, 38, 46, .15);
  aspect-ratio: 2 / 3; background: var(--night2);
}
.wanderer-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; }
.wanderer-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7,6,10,.85)); }
.wanderer-caption { margin-top: 16px; display: grid; gap: 6px; }
.wanderer-caption b { font-family: var(--serif); font-size: 22px; color: var(--gold-hot); }
.wanderer-caption span { color: var(--ink2); font-size: 16px; }
.toggle { display: inline-flex; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; }
.toggle button { background: transparent; border: 0; padding: 8px 18px; cursor: pointer; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--dim); }
.toggle button.on { background: var(--gold); color: #1a1206; }

/* Heroes: the spotlight beside a compact roster of faces */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head .section-lead { margin-bottom: 26px; }
.pact-btn { flex: none; margin-bottom: 30px; position: relative; overflow: hidden; }
.pact-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); animation: sheen 3.6s ease-in-out infinite; }
@keyframes sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.pact-spark { width: 14px; height: 14px; background: #1a1206; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.roster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.spotlight { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); position: relative; min-height: 470px; }
.spot-art { position: relative; overflow: hidden; background: var(--night2); }
.spot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; transition: opacity .4s ease, transform .5s ease; transform: scale(1.05) translate(var(--ix, 0px), var(--iy, 0px)); }
.spotlight.swap .spot-art img { opacity: 0; transform: scale(1.08) translateX(14px); }
.spot-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 64%, var(--panel-solid)); pointer-events: none; }
.spot-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 236, 200, .22), transparent 60%); mix-blend-mode: screen; }
.spot-art:hover .spot-shine { opacity: 1; }
.spot-info { padding: 28px 28px 22px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.spot-info > * { transition: opacity .3s ease, transform .3s ease; }
.spotlight.swap .spot-tags, .spotlight.swap .spot-info h3, .spotlight.swap .spot-title, .spotlight.swap .spot-info p, .spotlight.swap .spot-ult { opacity: 0; transform: translateX(10px); }
.spot-info h3 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1; margin: 12px 0 4px; color: var(--ink); }
.spot-title { font-family: var(--serif); color: var(--gold); font-size: 18px; margin-bottom: 12px; font-style: italic; }
.spot-info p { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.spot-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 3px 9px; border-radius: 6px; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink2); background: rgba(0,0,0,.3); }
.tag.rar { color: #1a1206; border-color: transparent; background: linear-gradient(180deg, #ffe7b0, #d4a85c); }
.tag.rar.S { background: linear-gradient(180deg, #e9d2ff, #a873e8); }
.tag.rar.SR { background: linear-gradient(180deg, #cfe2ff, #6f9ee8); }
.tag.rar.R { background: linear-gradient(180deg, #e3e3e3, #9a9a9a); }
.tag.tone { border-color: currentColor; }
.spot-ult { margin-top: 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.spot-ult span { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.spot-ult b { font-family: var(--serif); color: var(--gold-hot); font-size: 18px; }
.spot-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--dim); font-weight: 700; letter-spacing: .14em; }
.spot-timer { height: 2px; background: var(--line); margin-top: 14px; border-radius: 2px; overflow: hidden; }
.spot-timer span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hot)); }
.round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-line); background: rgba(0,0,0,.35); color: var(--gold); font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.round:hover { background: rgba(226, 200, 142, .15); transform: scale(1.06); }
.roster-side { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.rfilters { display: flex; flex-wrap: wrap; gap: 6px; }
.rfilters button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12,9,16,.6); color: var(--ink2); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rfilters.small button { padding: 3px 10px; font-size: 11.5px; }
.rfilters button i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.rfilters button:hover { border-color: var(--gold-line); color: var(--gold); }
.rfilters button.on { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 9px 8px; margin-top: 8px; }
.hchip { position: relative; aspect-ratio: 1; border-radius: 50%; padding: 0; border: 2px solid var(--rc); background: var(--night2); cursor: pointer; transition: transform .2s, opacity .25s, box-shadow .2s, filter .25s; }
.hchip img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hchip:hover, .hchip:focus-visible { transform: translateY(-3px) scale(1.07); box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 16px var(--rc); z-index: 3; outline: none; }
.hchip.on { box-shadow: 0 0 0 2px var(--night0), 0 0 0 4px var(--gold-hot), 0 0 22px rgba(255, 214, 140, .45); z-index: 2; }
.hchip.dim { opacity: .14; filter: grayscale(1); }
.hchip .hc-r { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 0 5px; border-radius: 4px; background: var(--rc); color: #120d06; line-height: 1.5; }
.hchip .hc-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; padding: 4px 10px; border-radius: 6px; background: rgba(7,6,10,.95); border: 1px solid var(--gold-line); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.hchip:hover .hc-tip, .hchip:focus-visible .hc-tip { opacity: 1; transform: translate(-50%, 0); }
.roster-note { margin: auto 0 0; padding-top: 10px; font-size: 14px; color: var(--dim); }
.roster-note b { color: var(--gold-hot); font-family: var(--serif); }
.r-SSR { --rc: #f0c35a; } .r-SR { --rc: #6f9ee8; } .r-S { --rc: #a873e8; } .r-R { --rc: #a6a6a6; }

/* Features: eight tiles; the big ones play the game, the rest draw their own little scene */
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 196px; gap: 12px; margin-top: 30px;
  grid-template-areas: "a a b c" "a a d c" "e f g g" "h h g g";
}
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; } .t-d { grid-area: d; }
.t-e { grid-area: e; } .t-f { grid-area: f; } .t-g { grid-area: g; } .t-h { grid-area: h; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); isolation: isolate; cursor: default;
  background: radial-gradient(120% 90% at 100% 0%, rgba(179, 38, 46, .2), transparent 60%), var(--panel-solid);
  transition: transform .25s ease, border-color .25s, box-shadow .25s, opacity .9s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: 0 20px 50px rgba(0,0,0,.5); outline: none; }
.tile-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; transition: opacity .35s, transform .8s ease; }
.tile-media.still { object-position: center 20%; }
.tile-media.map-tile { object-position: 45% 45%; }
.t-b .tile-media { object-position: 92% 25%; }
.tile:hover .tile-media, .tile.playing .tile-media { opacity: .92; transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,6,10,0) 20%, rgba(7,6,10,.72) 58%, rgba(7,6,10,.97) 100%); pointer-events: none; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; }
.tile-stat { display: inline-block; font-family: var(--serif); font-weight: 800; font-size: 32px; line-height: 1; margin-bottom: 4px;
  background: linear-gradient(180deg, #fff2d6, #d6ad64); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-a .tile-stat { font-size: 64px; }
.tile h3 { font-size: 19px; color: var(--ink); }
.t-a h3 { font-size: 28px; }
.tile p { font-size: 15px; line-height: 1.4; margin: 0; color: var(--ink2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .35s, margin .35s; }
.tile:hover p, .tile:focus-within p, .t-a p { max-height: 130px; opacity: 1; margin-top: 4px; }
.t-a p { max-width: 520px; }
.tile-seats { position: absolute; top: 18px; left: 18px; display: flex; gap: 8px; }
.tile-seats i { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold-line); background: radial-gradient(circle at 36% 32%, #fff0c8, #d6ad64 45%, #6d4c1c); box-shadow: 0 0 14px rgba(255, 214, 140, .3); }
.tile-seats i.bot { background: transparent; border-style: dashed; animation: seat 2.4s ease-in-out infinite; }
@keyframes seat { 50% { background: rgba(226, 200, 142, .3); } }
.t-e { background: radial-gradient(70% 80% at 80% 15%, rgba(179, 38, 46, .5), transparent 70%), var(--panel-solid); }
.tile-boss { position: absolute; right: 4px; top: -6px; filter: drop-shadow(0 0 16px rgba(224, 71, 78, .6)); transition: transform .4s; }
.tile:hover .tile-boss { transform: scale(1.08) translateY(4px); }
.tile-keep { position: absolute; top: 16px; right: 16px; width: 128px; height: 74px; background: linear-gradient(180deg, #4a3346, #1c1422); filter: drop-shadow(0 0 14px rgba(224, 71, 78, .35));
  clip-path: polygon(0 100%, 0 34%, 8% 34%, 8% 22%, 16% 22%, 16% 34%, 24% 34%, 24% 22%, 32% 22%, 32% 34%, 38% 34%, 38% 10%, 44% 10%, 44% 0, 56% 0, 56% 10%, 62% 10%, 62% 34%, 68% 34%, 68% 22%, 76% 22%, 76% 34%, 84% 34%, 84% 22%, 92% 22%, 92% 34%, 100% 34%, 100% 100%); }
.tile-keep::after { content: ""; position: absolute; left: 47%; top: 44%; width: 6%; height: 22%; background: #ffb25a; box-shadow: 0 0 10px #ffb25a; animation: flicker 2.2s steps(2) infinite; }
@keyframes flicker { 50% { opacity: .55; } }
.tile-glass { position: absolute; top: 16px; right: 22px; width: 52px; height: 84px; }
.tile-glass .sand-fall { animation: sand .9s linear infinite; }
@keyframes sand { to { stroke-dashoffset: -14; } }
.t-h { background: radial-gradient(60% 90% at 90% 10%, rgba(255, 196, 90, .16), transparent 70%), var(--panel-solid); }
@media (hover: none) { .tile p { max-height: 160px; opacity: 1; margin-top: 4px; } }

/* World: the painted chart of the known lands, every place on it, and the night clouds the chosen chapter pushes back */
.map { position: relative; }
.map-view { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1721 / 1434; background: #070910; box-shadow: 0 40px 90px rgba(0,0,0,.6); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-view::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 90px 20px rgba(5, 4, 9, .85); }
.map-roads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.map-roads path { fill: none; stroke: rgba(255, 227, 166, .7); stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(255, 214, 140, .7));
  opacity: 0; transition: opacity .8s ease; }
.map-roads path.on { opacity: 1; }
.map-fog { position: absolute; inset: -2%; pointer-events: none; background: url("/assets/img/world_fog.webp?v=be5f7b67a3") 0 0 / 52% auto repeat, rgba(16, 11, 22, .55);
  animation: fogdrift 80s linear infinite; }
@keyframes fogdrift { to { background-position: 520px 140px, 0 0; } }
.map-moon { position: absolute; right: -8%; top: -14%; width: 46%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(224, 71, 78, .38), rgba(179, 38, 46, .12) 55%, transparent); }
.map-pins { position: absolute; inset: 0; z-index: 2; }
.pin { position: absolute; transform: translate(-50%, -50%) scale(.3); width: 16px; height: 16px; padding: 0; border-radius: 50%; cursor: pointer; opacity: 0; pointer-events: none;
  border: 2px solid var(--moon-hot); background: rgba(7, 6, 10, .92); transition: transform .45s cubic-bezier(.2, 1.6, .4, 1), opacity .35s; }
.pin.open { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.pin.town { width: 24px; height: 24px; border-color: var(--gold-hot); background: radial-gradient(circle, #ffe3a6 0 28%, rgba(7, 6, 10, .92) 32%); box-shadow: 0 0 14px rgba(255, 227, 166, .55); }
.pin.village { border-color: #9fc2ff; }
.pin.dungeon { border-color: var(--moon-hot); }
.pin.open:hover, .pin.on { transform: translate(-50%, -50%) scale(1.35); z-index: 3; }
.pin.on { animation: pinpulse 1.6s infinite; }
@keyframes pinpulse { 0% { box-shadow: 0 0 0 0 rgba(226, 200, 142, .7); } 100% { box-shadow: 0 0 0 14px rgba(226, 200, 142, 0); } }
.pin-label { position: absolute; z-index: 2; transform: translate(-50%, 15px); white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 2px 9px; border-radius: 999px;
  background: rgba(7, 6, 10, .8); color: var(--ink); pointer-events: none; opacity: 0; transition: opacity .4s; }
.pin-label.open { opacity: 1; }
.pin-label.edge-l { transform: translate(-14px, 15px); }
.pin-label.edge-r { transform: translate(calc(-100% + 14px), 15px); }
.pin-tip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; padding: 4px 10px; border-radius: 6px; pointer-events: none;
  background: rgba(7, 6, 10, .95); border: 1px solid var(--gold-line); font-size: 13px; font-weight: 700; color: var(--ink); opacity: 0; transition: opacity .15s; }
.pin-tip.show { opacity: 1; }
.map-side { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.map-chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.map-chapters button { padding: 8px 0 7px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12, 9, 16, .6); cursor: pointer; color: var(--ink2); display: grid; gap: 1px; transition: all .2s; }
.map-chapters button small { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.map-chapters button b { font-family: var(--serif); font-size: 22px; line-height: 1; }
.map-chapters button:hover { border-color: var(--gold-line); color: var(--gold); }
.map-chapters button.lit { border-color: rgba(226, 200, 142, .5); color: var(--gold); background: rgba(226, 200, 142, .08); }
.map-chapters button.on { background: var(--gold); border-color: var(--gold); color: #1a1206; }
.map-chapters button.on small { color: #4a3a1c; }
.map-count { font-size: 14px; color: var(--dim); font-weight: 600; letter-spacing: .04em; }
.map-count b { font-family: var(--serif); color: var(--gold-hot); font-size: 18px; }
.map-card { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--gold-line); background: linear-gradient(160deg, rgba(226, 200, 142, .08), rgba(10, 8, 14, .6)); }
.map-chlist { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.map-chlist::before { content: attr(data-head); width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.map-chlist button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 9, 16, .6);
  color: var(--ink2); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.map-chlist button i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--kc); }
.map-chlist button.town i { background: var(--kc); }
.map-chlist button:hover { border-color: var(--gold-line); color: var(--gold); }
.map-chlist button.on { border-color: var(--gold); color: var(--gold-hot); background: rgba(226, 200, 142, .1); }
.map-card-ch { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--moon-hot); margin-bottom: 6px; }
.map-kind { padding: 1px 8px; border-radius: 4px; color: #120d06; letter-spacing: .1em; background: var(--kc, var(--gold)); }
.map-card h3 { color: var(--gold-hot); font-size: 22px; margin-bottom: 6px; }
.map-card p { font-size: 15px; margin: 0; }
.map-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; font-size: 13px; font-weight: 600; color: var(--dim); }
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--moon-hot); }
.map-legend i.town { border-color: var(--gold-hot); background: var(--gold-hot); }
.map-legend i.village { border-color: #9fc2ff; }
@media (prefers-reduced-motion: reduce) { .map-fog { animation: none; } }
html.shot .map-fog { animation: none; }

.world-wrap { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

/* Pre-register */
.prereg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.prereg-form h2 { margin-bottom: 8px; }
form { display: grid; gap: 18px; margin-top: 10px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
input[type=email] {
  width: 100%; padding: 15px 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12, 9, 16, .8);
  color: var(--ink); font: 600 18px var(--sans); letter-spacing: .03em; outline: none; transition: border-color .2s, box-shadow .2s;
}
input[type=email]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 200, 142, .15); }
input.bad { border-color: var(--moon-hot); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 22px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--dim); }
.seg input:checked + span { background: var(--gold); color: #1a1206; }
.seg input:focus-visible + span { outline: 2px solid var(--gold-hot); outline-offset: -2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 14px; color: var(--dim); margin: 0; }
.founding {
  display: flex; gap: 16px; align-items: center; padding: 16px 18px; margin: 6px 0 8px; border-radius: 14px;
  border: 1px solid var(--gold-line); background: linear-gradient(100deg, rgba(226, 200, 142, .14), rgba(179, 38, 46, .1) 60%, transparent);
}
.founding-seal { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--gold);
  background: radial-gradient(circle at 36% 34%, #fff0c8, #d6ad64 45%, #7a5520); box-shadow: 0 0 22px rgba(255, 214, 140, .45); }
.founding b { display: block; font-family: var(--serif); color: var(--gold-hot); font-size: 19px; }
.founding span { display: block; color: var(--ink2); font-size: 15px; }
.founding em { color: var(--gold); font-style: normal; font-weight: 700; }
.founding i { display: block; font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--moon-hot); margin-top: 4px; }
.form-note.err { color: #ff8f93; }
.prereg-done { text-align: center; padding: 40px 24px; border: 1px solid var(--gold-line); border-radius: 18px; background: var(--panel); margin-top: 18px; }
.prereg-done h3 { font-size: 28px; color: var(--gold-hot); margin: 18px 0 10px; }
.done-seal { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #f07a7e, var(--moon) 55%, #4a0a10); box-shadow: 0 0 40px rgba(224, 71, 78, .6); animation: seal .8s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes seal { from { transform: scale(.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.milestones { padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.ms-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.ms-head > span { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--dim); }
.ms-head b { font-family: var(--serif); color: var(--gold-hot); font-size: 22px; white-space: nowrap; }
.ms-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; margin-bottom: 22px; }
.ms-bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--moon), var(--moon-hot), var(--gold)); transition: width 1.6s ease; }
.ms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ms-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); position: relative; }
.ms-list li b { font-family: var(--serif); color: var(--dim); font-size: 18px; }
.ms-list li span { color: var(--ink2); font-weight: 600; }
.ms-list li.got { border-color: var(--gold-line); background: linear-gradient(90deg, rgba(226, 200, 142, .12), transparent); }
.ms-list li.got b { color: var(--gold-hot); }
.ms-list li.got::after { content: "Unlocked"; position: absolute; right: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ms-note { font-size: 14px; color: var(--dim); margin: 16px 0 0; }

/* Roadmap */
.road { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.road::before { content: ""; position: absolute; top: 22px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--moon-hot), var(--gold-line), var(--line)); }
.road li { position: relative; padding: 58px 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.road li::before { content: ""; position: absolute; top: 14px; left: 20px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold-line); background: var(--night0); }
.road li.now::before { background: var(--moon-hot); border-color: #ffb3b6; box-shadow: 0 0 16px rgba(224, 71, 78, .8); }
.road li i { position: absolute; top: 12px; left: 48px; font-style: normal; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--gold); }
.road li.now i { color: var(--moon-hot); }
.road h3 { font-size: 20px; margin-bottom: 8px; }
.road p { font-size: 15px; margin: 0; }

/* Testers */
.tester-box { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px 40px; align-items: start; padding: 34px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.tester-copy h2 { margin-bottom: 4px; }
.tester-copy .section-lead { margin: 12px 0 0; }
.tester-copy a, details p a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.tester-form { display: grid; gap: 14px; margin: 0; }
.tester-form input[type=text] {
  width: 100%; padding: 15px 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12, 9, 16, .8);
  color: var(--ink); font: 600 18px var(--sans); letter-spacing: .04em; outline: none;
}
.tester-form input[type=text]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 200, 142, .15); }
.tester-links { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-card { display: grid; gap: 4px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--gold-line);
  background: linear-gradient(120deg, rgba(226, 200, 142, .14), rgba(20, 15, 28, .6)); transition: transform .2s, box-shadow .2s; }
.dl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 24px rgba(226, 200, 142, .2); }
.dl-card b { font-family: var(--serif); font-size: 24px; color: var(--gold-hot); }
.dl-card span { font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.dl-card i { font-style: normal; color: var(--dim); font-size: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-top: 26px; max-width: 860px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; font-size: 19px; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--gold); transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 22px 18px; margin: 0; }

/* Final */
.final { position: relative; z-index: 2; text-align: center; padding: 140px 20px 120px; overflow: hidden; }
.final-moon { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 38, 46, .35), transparent 65%); filter: blur(10px); animation: moon 9s ease-in-out infinite alternate; }
.final h2 { position: relative; font-size: clamp(32px, 5vw, 64px); }
.final p { position: relative; font-size: 20px; margin: 14px 0 30px; }
.final .btn { position: relative; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; background: rgba(5, 4, 8, .9); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { font-family: var(--serif); letter-spacing: .18em; font-size: 20px; display: block; }
.foot-brand small { letter-spacing: .3em; font-size: 10px; color: var(--gold); text-transform: uppercase; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { color: var(--dim); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.foot-links a:hover { color: var(--gold); }
.foot-small { grid-column: 1 / -1; font-size: 13px; color: var(--dim); margin: 0; }

/* Modal */
.modal-back { position: absolute; inset: 0; background: rgba(4, 3, 6, .82); backdrop-filter: blur(6px); }
.modal-x { position: absolute; top: 12px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-line); background: rgba(0,0,0,.5); color: var(--gold); font-size: 26px; cursor: pointer; }

/* --- Phones and narrow screens ---------------------------------------------------------------------- */
@media (max-width: 980px) {
  .nav-links { position: fixed; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 0; padding: 10px; border-radius: 14px; background: rgba(10, 8, 14, .97); border: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s; }
  .nav-links a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.04); }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .story-grid, .prereg-grid, .roster, .world-wrap { grid-template-columns: minmax(0, 1fr); }
  .wanderer { position: relative; top: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .pact-btn { margin: -10px 0 22px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; grid-template-areas: "a a" "a a" "b c" "d c" "e f" "g g" "h h"; }
  .wanderer { max-width: 420px; }
  .lore-cards { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); min-height: 380px; }
  .road { grid-template-columns: 1fr 1fr; }
  .road::before { display: none; }
  .tester-box { grid-template-columns: 1fr; padding: 24px 20px; }
  .tester-links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding-top: 100px; }
  .hero::after { background: linear-gradient(180deg, rgba(7,6,10,.55) 0%, rgba(7,6,10,.85) 45%, rgba(7,6,10,.96) 100%); }
  .hero-painting { opacity: .55; }
  .hero-moon { width: 180px; height: 180px; right: -30px; top: 70px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding-top: 80px; }
  .spotlight { grid-template-columns: 1fr; }
  .spot-art { height: 340px; }
  .spot-art::after { background: linear-gradient(180deg, transparent 62%, var(--panel-solid)); }
  .spot-info { padding: 18px 18px 16px; }
  .chip-grid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; grid-template-areas: "a" "a" "b" "c" "c" "d" "e" "f" "g" "h"; }
  .road { grid-template-columns: 1fr; }
  .pin-label { font-size: 10px; padding: 1px 6px; }
  .pin { width: 11px; height: 11px; border-width: 2px; }
  .pin.town { width: 17px; height: 17px; }
  .map-view::after { box-shadow: inset 0 0 40px 8px rgba(5, 4, 9, .8); }
  .footer { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .seg span { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ?shot: one long frame for review screenshots (the first screen at a fixed height, everything shown at once). */
.shot .hero { min-height: 900px; }
.shot .reveal { opacity: 1; transform: none; transition: none; }
.shot .wanderer { position: relative; top: 0; }

.form-note a, .foot-small a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* --- Pixel sprites (frames side by side, square cells), animated by steps --------------------------------- */
.px {
  width: var(--w); height: var(--w);
  background-repeat: no-repeat; background-size: calc(var(--w) * var(--n)) var(--w);
  image-rendering: pixelated; image-rendering: crisp-edges;
  animation: px-strip var(--t, 1.1s) steps(var(--n)) infinite;
}
@keyframes px-strip { from { background-position: 0 0; } to { background-position: calc(var(--w) * var(--n) * -1) 0; } }
.px.flip { transform: scaleX(-1); }
.hz-stage.swap .hz-mini.flip { transform: scaleX(-1) translateY(8px); }

/* --- The hero spotlight's battle sprite ---------------------------------------------------------------- */
.spot-art { position: relative; }
.spot-sprite {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px 8px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.2), rgba(7, 6, 10, 0.85)); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.spot-sprite span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* --- The horrors ----------------------------------------------------------------------------------------- */
.hz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 18px; }
.hz-tabs button {
  border: 1px solid var(--line); background: rgba(20, 15, 28, 0.6); border-radius: 999px; padding: 7px 16px; cursor: pointer;
  font-family: var(--sans); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: var(--ink2);
}
.hz-tabs button.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.hz { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.hz-stage {
  position: relative; min-height: 430px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(60% 40% at 50% 92%, rgba(179, 38, 46, 0.35), transparent 70%),
    radial-gradient(80% 60% at 50% 30%, rgba(84, 52, 140, 0.25), transparent 70%),
    linear-gradient(180deg, #120e19 0%, #0a0810 100%);
}
.hz-stage::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 58px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); pointer-events: none;
}
.hz-fog {
  position: absolute; inset: auto -20% 30px -20%; height: 120px; opacity: 0.55; pointer-events: none;
  background: radial-gradient(40% 60% at 30% 50%, rgba(200, 190, 230, 0.18), transparent 70%), radial-gradient(40% 60% at 75% 50%, rgba(200, 190, 230, 0.14), transparent 70%);
  animation: hz-fog 14s ease-in-out infinite alternate;
}
@keyframes hz-fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.hz-boss, .hz-mini { position: absolute; bottom: 64px; transition: opacity 0.35s, transform 0.35s; }
.hz-boss { right: 3%; }
.hz-mini { left: 3%; }
.hz-glow { position: absolute; bottom: 40px; width: 46%; height: 70%; pointer-events: none; border-radius: 50%; }
.hz-glow.boss { right: 0; background: radial-gradient(closest-side, rgba(224, 71, 78, 0.28), transparent); }
.hz-glow.mini { left: 0; background: radial-gradient(closest-side, rgba(226, 200, 142, 0.18), transparent); }
.hz-pack { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; align-items: flex-end; }
.hz-pack .px { animation-duration: 1.2s; }
.hz-stage.swap .hz-boss, .hz-stage.swap .hz-mini, .hz-stage.swap .hz-pack { opacity: 0; transform: translateY(8px); }
.hz-label {
  position: absolute; bottom: 34px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 2px #000;
}
.hz-card {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: 26px 28px; display: flex; flex-direction: column;
}
.hz-ch { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--moon-hot); font-weight: 700; margin-bottom: 6px; }
.hz-card h3 { font-size: 30px; margin-bottom: 10px; }
.hz-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 10px; }
.hz-row span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); min-width: 92px; }
.hz-row b { font-family: var(--serif); color: var(--gold-hot); font-size: 18px; }
.hz-row i { color: var(--ink2); font-size: 15px; }
.hz-row em { font-style: normal; color: var(--ink2); font-size: 16px; flex: 1; }
.hz-mech { margin: 6px 0 0 102px; font-size: 16px; color: var(--ink); border-left: 2px solid var(--moon); padding-left: 12px; }
.hz-nav { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 14px; color: var(--dim); font-weight: 700; letter-spacing: 0.1em; }
.ghoul {
  position: relative; margin-top: 22px; border-radius: var(--radius); border: 1px solid rgba(255, 210, 120, 0.4); overflow: hidden;
  background: linear-gradient(90deg, rgba(40, 28, 8, 0.85), rgba(20, 15, 28, 0.85)); display: grid; grid-template-columns: 1fr minmax(0, 1.2fr); align-items: center;
}
.ghoul-run { position: relative; height: 220px; overflow: hidden; }
.ghoul-run::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 70%, rgba(255, 196, 90, 0.3), transparent);
}
.ghoul-run .px { position: absolute; bottom: 10px; animation: px-strip 0.6s steps(var(--n)) infinite, ghoul-dash 6s linear infinite; }
@keyframes ghoul-dash { from { left: 105%; } to { left: -40%; } }
.ghoul-text { padding: 20px 28px; }
.ghoul-tag { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffcf70; font-weight: 700; }
.ghoul-text h3 { color: #ffdf9a; font-size: 26px; margin: 4px 0 8px; }
@media (max-width: 900px) {
  .hz, .ghoul { grid-template-columns: 1fr; }
  .hz-stage { min-height: 340px; }
  .hz-mech { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .px, .hz-fog, .ghoul-run .px { animation: none; } }
html.shot .px, html.shot .hz-fog, html.shot .ghoul-run .px { animation: none; }
html.shot .ghoul-run .px { left: 40%; }

/* --- Gameplay: in-game loops ------------------------------------------------------------------------------- */
.play-tri { display: inline-block; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent;
  border-bottom: 6px solid transparent; margin-right: 2px; }
.gp { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 18px; margin-top: 28px; align-items: start; }
.gp-main { margin: 0; }
.gp-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(226, 200, 142, 0.08); aspect-ratio: 16 / 9; background: #000; }
.gp-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.gp-live { align-self: flex-start; margin-bottom: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px;
  border-radius: 999px; background: rgba(7, 6, 10, 0.72); border: 1px solid rgba(224, 71, 78, 0.5); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #ffd0d2; font-size: 11px; }
.gp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--moon-hot); box-shadow: 0 0 10px var(--moon-hot);
  animation: gp-blink 1.6s ease-in-out infinite; }
@keyframes gp-blink { 50% { opacity: 0.25; } }
.gp-main figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 0; }
.gp-main figcaption b { font-family: var(--serif); font-size: 24px; color: var(--gold-hot); }
.gp-main figcaption span { color: var(--ink2); }
.gp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gp-item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer;
  background: #000; aspect-ratio: 16 / 9; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.gp-item video { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0.82; transition: opacity 0.2s; }
.gp-item:hover { transform: translateY(-2px); border-color: var(--gold-line); }
.gp-item:hover video, .gp-item.on video { opacity: 1; }
.gp-item.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px rgba(226, 200, 142, 0.18); }
.gp-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; text-align: left; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: linear-gradient(180deg, transparent, rgba(7, 6, 10, 0.92)); }
.gp-hype { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.gp-hype li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-left: 1px solid var(--line); }
.gp-hype li:first-child { border-left: 0; }
.gp-hype b { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold-hot); text-shadow: 0 0 24px rgba(255, 210, 120, 0.35); flex: none; }
.gp-hype span { font-size: 14px; line-height: 1.25; color: var(--ink2); }
@media (max-width: 900px) {
  .gp { grid-template-columns: 1fr; }
  .gp-grid { grid-template-columns: 1fr 1fr 1fr; }
  .gp-hype { grid-template-columns: 1fr 1fr; }
  .gp-hype li:nth-child(3) { border-left: 0; }
  .gp-hype li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .gp-grid { grid-template-columns: 1fr 1fr; } }

/* --- Interaction layer (Lead, 2026-12-02; Steve: "make website more interactive and hype too ... think about ui ux") ------ */
/* The scroll line under the nav, and the link of the section in view. */
.nav-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav-prog span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--moon), var(--moon-hot), var(--gold)); box-shadow: 0 0 10px rgba(224, 71, 78, .6); }
.nav-links a.on { color: var(--gold); }
.nav-links a.on::after { transform: scaleX(1); }

/* A soft light follows the cursor over panels. */
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 214, 140, .13), transparent 60%); }
.glow:hover::before { opacity: 1; }

/* Headings arrive word by word. */
.reveal .w, .final h2 .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(4px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1), filter .6s; transition-delay: calc(var(--i, 0) * 55ms); }
.reveal.in .w, .reveal .in .w, .final h2.in .w { opacity: 1; transform: none; filter: none; }

/* The key art and the moon lean with the mouse. */
.hero-art { transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .5s ease-out; }
.hero-moon { transform: translate3d(var(--mx2, 0), var(--my2, 0), 0); transition: transform .6s ease-out; }

/* The floating pre-register button. */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #f6dfa8, #e2c88e 45%, #b98f4c); color: #1a1206; border: 1px solid #f7e4b5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 214, 140, .3);
  transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .4s cubic-bezier(.2, 1.2, .4, 1), opacity .3s, box-shadow .25s; }
.float-cta.show { transform: none; opacity: 1; pointer-events: auto; }
.float-cta:hover { box-shadow: 0 12px 36px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 214, 140, .5); }
.fc-text b { display: block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; line-height: 1.1; }
.fc-text small { display: block; font-size: 12px; font-weight: 600; opacity: .8; }

/* The Pact: the Chapel's door, then the cards. */
.pact { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 14px; }
.pact[hidden] { display: none; }
.pact-box { position: relative; width: min(900px, 100%); max-height: calc(100vh - 28px); overflow-y: auto; border-radius: 20px; border: 1px solid var(--gold-line);
  background: radial-gradient(80% 50% at 50% 0%, rgba(179, 38, 46, .28), transparent 70%), var(--panel-solid); padding: 24px 24px 20px; animation: pop .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.pact-kick { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--moon-hot); }
.pact-head h3 { font-size: clamp(24px, 3vw, 32px); margin: 4px 0 6px; color: var(--gold-hot); }
.pact-head { padding-right: 46px; }
.pact-head p { font-size: 15px; color: var(--dim); margin: 0; }
.pact-stage { --pc: #e2c88e; position: relative; display: grid; place-items: center; min-height: 360px; margin: 16px 0 14px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(45% 60% at 50% 58%, color-mix(in srgb, var(--pc) 20%, transparent), transparent 72%), linear-gradient(180deg, #0d0a12, #07060a); }
.pact-stage > * { grid-area: 1 / 1; }
.door { position: relative; width: 160px; height: 240px; border-radius: 80px 80px 6px 6px; border: 2px solid var(--gold-line); overflow: hidden; background: #0b0910;
  box-shadow: 0 0 70px rgba(0, 0, 0, .8), 0 0 0 6px rgba(201, 168, 106, .08), 0 0 40px color-mix(in srgb, var(--pc) 25%, transparent); transition: opacity .45s, transform .45s; }
.door::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(closest-side, var(--pc), transparent); opacity: 0; transition: opacity .5s; }
.door::after { content: ""; position: absolute; left: 50%; top: 8px; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 2; background: var(--pc); box-shadow: 0 0 16px 4px var(--pc);
  transform: scaleY(0); transform-origin: bottom; transition: transform .8s ease; }
.door-l, .door-r { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; transition: transform .7s cubic-bezier(.6, 0, .2, 1);
  background: repeating-linear-gradient(180deg, #1d1524 0 22px, #17111d 22px 24px); }
.door-l { left: 0; transform-origin: left center; border-right: 1px solid rgba(0, 0, 0, .6); }
.door-r { right: 0; transform-origin: right center; }
.pact-stage.charge .door::after { transform: scaleY(1); }
.pact-stage.charge .door { animation: dshake .1s linear infinite; }
.pact-stage.charge.calm .door { animation: none; }
@keyframes dshake { 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }
.pact-stage.open .door-l { transform: perspective(500px) rotateY(82deg); }
.pact-stage.open .door-r { transform: perspective(500px) rotateY(-82deg); }
.pact-stage.open .door::before { opacity: 1; }
.pact-stage.done .door { opacity: 0; transform: scale(1.35); pointer-events: none; }
.pact-stage.flash::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 240, 200, .9), transparent 70%); animation: pflash .8s ease-out forwards; }
@keyframes pflash { from { opacity: 1; } to { opacity: 0; } }
.pgrid { width: 100%; padding: 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-self: center; }
.pgrid.one { grid-template-columns: minmax(0, 190px); justify-content: center; }
.pgrid:empty { display: none; }
.pcard { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; perspective: 800px; }
.pc-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg) scale(.9); opacity: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.pcard.flip .pc-in { transform: none; opacity: 1; }
.pc-back, .pc-front { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.pc-back { transform: rotateY(180deg); border: 1px solid var(--line); background: repeating-linear-gradient(45deg, #1b1424 0 8px, #140f1b 8px 16px); }
.pc-front { border: 2px solid var(--rc); background: #000; box-shadow: 0 0 18px color-mix(in srgb, var(--rc) 45%, transparent); }
.pc-front img { width: 100%; height: 100%; object-fit: cover; }
.pc-front b { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; font-family: var(--serif); font-size: 14px; text-align: center; color: var(--ink); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .92)); }
.pc-front i { position: absolute; top: 6px; left: 6px; font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: var(--rc); color: #120d06; }
.pcard.r-SSR.flip .pc-front { animation: ssr 1.6s ease-out; }
@keyframes ssr { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 120, .95); } 100% { box-shadow: 0 0 18px 0 rgba(240, 195, 90, .45); } }
.pcard.r-SSR .pc-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); background-size: 260% 100%; animation: foil 2.6s ease-in-out infinite; }
@keyframes foil { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.pcard:hover .pc-in { transform: translateY(-4px); }
.pact-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); pointer-events: none; }
.pact-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pact-pity { margin-right: auto; font-size: 14px; color: var(--ink2); }
.pact-pity b { color: var(--gold-hot); }
.pact-cta { margin: 12px 0 0; font-size: 15px; }
.pact-cta a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .float-cta { left: 12px; right: 12px; bottom: 12px; justify-content: center; border-radius: 14px; }
  .pact-box { padding: 18px 14px 14px; }
  .pact-stage { min-height: 300px; }
  .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  .pc-front b { font-size: 10px; padding: 12px 2px 4px; }
  .pc-front i { font-size: 9px; }
  .pact-foot .btn { flex: 1; padding: 12px 10px; }
  .pact-pity { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero-moon { transform: none !important; }
  .reveal .w { opacity: 1; transform: none; filter: none; }
}
.shot .reveal .w, .shot .final h2 .w { opacity: 1; transform: none; filter: none; transition: none; }
.shot .pact-btn::after { animation: none; }
