:root {
  --bg: #05060f;
  --ink: #eaf6ff;
  --muted: #a9bad6;
  --gold: #ffd27a;
  --gold-hi: #ffe9b0;
  --cyan: #6fe7ff;
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025) 55%, rgba(111, 231, 255, 0.03));
  --glass-line: rgba(178, 228, 255, 0.16);
  --radius: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --bar: clamp(36px, 10.5vh, 120px);
  --scroll: 0;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.55;
  background: radial-gradient(120% 80% at 70% 20%, #0c1640 0%, #05060f 60%) fixed, var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- the sky canvas (fixed behind everything) ---------- */
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
#scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 15, 0.72) 0%, rgba(5, 6, 15, 0.25) 46%, rgba(5, 6, 15, 0) 70%),
    linear-gradient(180deg, rgba(5, 6, 15, 0) 55%, rgba(5, 6, 15, 0.6) 100%);
  transition: opacity 1.2s ease;
}
#scrim::after { content: ""; position: absolute; inset: 0; background: rgba(4, 6, 18, 0.42); opacity: var(--scroll); }
.no-gl #sky { display: none; }
.no-gl body {
  background:
    radial-gradient(60% 45% at 68% 42%, rgba(255, 210, 122, 0.22), transparent 70%),
    radial-gradient(90% 70% at 70% 40%, rgba(111, 231, 255, 0.16), transparent 70%),
    radial-gradient(120% 80% at 70% 20%, #0c1640 0%, #05060f 60%) fixed;
}

/* ---------- intro overlay ---------- */
#intro { position: fixed; inset: 0; z-index: 50; pointer-events: none; display: none; }
.intro #intro, #intro.leaving { display: block; }
#intro.leaving { opacity: 0; transition: opacity 1.1s ease 0.5s; }
#intro .bar { position: absolute; left: 0; right: 0; height: var(--bar); background: #000; transition: transform 1.2s cubic-bezier(.7, 0, .2, 1); }
#intro .bar-t { top: 0; }
#intro .bar-b { bottom: 0; }
#intro.leaving .bar-t { transform: translateY(-100%); }
#intro.leaving .bar-b { transform: translateY(100%); }
.intro body { overflow: hidden; }
#flash { position: absolute; inset: 0; background: #fff6e0; opacity: 0; mix-blend-mode: screen; }

.cards { position: absolute; inset: var(--bar) 0; display: grid; place-items: center; padding: 0 6vw; }
.card {
  grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; will-change: opacity, transform, filter;
  font-size: clamp(20px, 3.1vw, 40px); font-weight: 300; letter-spacing: 0.04em; line-height: 1.3;
  color: #f4f9ff; text-shadow: 0 0 24px rgba(111, 231, 255, 0.35), 0 2px 18px rgba(0, 0, 0, 0.8);
  max-width: 24ch; position: relative; align-self: end; margin-bottom: clamp(18px, 7vh, 90px);
}
.card::before { content: ""; position: absolute; inset: -70% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(2, 3, 10, 0.62), rgba(2, 3, 10, 0)); }
.lockup { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vw, 18px); max-width: none; align-self: start; margin: clamp(10px, 9vh, 110px) 0 0; }
.lockup::before, .now::before { inset: -40% -12%; }
.lockup .word, .now .name { text-shadow: none; }
.lockup .word {
  font-size: clamp(30px, 6.2vw, 92px); font-weight: 200; text-transform: uppercase;
  letter-spacing: calc(0.16em + var(--u, 0) * 0.08em); margin-right: calc(-0.16em - var(--u, 0) * 0.08em);
  line-height: 1.05; white-space: nowrap;
  background: linear-gradient(100deg, #fff 0%, #fff 30%, var(--gold-hi) 42%, #ffffff 50%, var(--cyan) 58%, #fff 70%, #fff 100%);
  background-size: 300% 100%; background-position: calc(100% - var(--u, 0) * 100%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 210, 122, 0.35));
}
.lockup .rule { width: clamp(120px, 26vw, 360px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(var(--u2, 0)); }
.lockup .tag { font-size: clamp(12px, 1.3vw, 16px); letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); margin-right: -0.5em; font-weight: 500; }
.now { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: none; align-self: start; margin: clamp(10px, 9vh, 110px) 0 0; }
.now .k { font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 0.42em; text-transform: uppercase; color: var(--cyan); margin-right: -0.42em; font-weight: 600; }
.now .name {
  font-size: clamp(34px, 6.4vw, 88px); font-weight: 900; letter-spacing: 0.16em; margin-right: -0.16em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 20%, #bdf1ff 60%, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(111, 231, 255, 0.45));
}
@media (max-aspect-ratio: 1/1) {
  .lockup, .now { align-self: end; margin: 0 0 clamp(24px, 12vh, 140px); }
}

.intro-ui {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(16px + var(--safe-r)) var(--safe-b) calc(16px + var(--safe-l));
}
.chip-btn {
  pointer-events: auto; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
  color: #e9f3ff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}
.chip-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.chip-btn svg { width: 18px; height: 18px; }
#skip { background: rgba(255, 210, 122, 0.14); border-color: rgba(255, 210, 122, 0.55); color: #fff3d6; }
#skip .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
#sound .mute { display: inline; }
#sound .waves { display: none; }
#sound[aria-pressed="true"] .mute { display: none; }
#sound[aria-pressed="true"] .waves { display: inline; }

/* page content hides while the intro plays */
.intro .top, .intro main, .intro .foot, .intro #scrim { opacity: 0; visibility: hidden; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + var(--safe-t)) calc(clamp(16px, 4vw, 48px) + var(--safe-r)) 14px calc(clamp(16px, 4vw, 48px) + var(--safe-l));
  transition: background 0.4s, border-color 0.4s, opacity 1s ease 0.2s, visibility 0s;
  border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(6, 9, 26, 0.6); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-color: var(--glass-line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(255, 210, 122, 0.45)); }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; transition: color 0.2s; }
.top nav a:not(.btn):hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; text-decoration: none; font-weight: 800; letter-spacing: 0.02em; cursor: pointer; border: 0;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s, background 0.2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  color: #1a1204; background: linear-gradient(180deg, #fff1c8 0%, #ffd27a 48%, #f6b54a 100%);
  box-shadow: 0 0 0 1px rgba(255, 226, 160, 0.7) inset, 0 10px 34px -8px rgba(255, 186, 72, 0.75), 0 0 60px -10px rgba(255, 210, 122, 0.5);
}
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(255, 236, 190, 0.9) inset, 0 14px 40px -6px rgba(255, 186, 72, 0.9), 0 0 80px -6px rgba(255, 210, 122, 0.65); }
.btn-glass { color: var(--ink); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1px rgba(190, 232, 255, 0.3) inset; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-xl { padding: 20px 38px; font-size: 21px; letter-spacing: 0.04em; }

/* ---------- hero ---------- */
main { position: relative; z-index: 2; transition: opacity 1s ease 0.35s, visibility 0s; }
.foot { transition: opacity 1s ease 0.35s, visibility 0s; }
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative;
  padding: calc(96px + var(--safe-t)) calc(clamp(20px, 6vw, 96px) + var(--safe-r)) 96px calc(clamp(20px, 6vw, 96px) + var(--safe-l));
}
.hero-inner { max-width: 680px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; }
.title {
  display: inline-block; margin: 0; font-size: clamp(44px, 7.6vw, 104px); line-height: 0.95; font-weight: 900; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #d9f6ff 45%, #9fe9ff 70%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(111, 231, 255, 0.25));
  padding-bottom: 0.06em;
}
.lede { margin: 20px 0 30px; font-size: clamp(17px, 1.6vw, 21px); color: #d6e4f7; max-width: 34em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.now-line { margin: 26px 0 0; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.now-line strong { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffb2; box-shadow: 0 0 0 4px rgba(125, 255, 178, 0.16), 0 0 12px #7dffb2; }
.scroll-cue { position: absolute; left: 50%; bottom: calc(26px + var(--safe-b)); width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* reveal: elements rise in when the intro hands over (and on scroll) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.hero .rv.in { transition-delay: 0.45s; }
.hero .scroll-cue.rv.in { transition-delay: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; transition: opacity 0.4s ease; }
  .scroll-cue span { animation: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }
.wrap { width: min(1180px, 100% - 2 * clamp(18px, 4vw, 40px)); margin: 0 auto; }
.sec-head { margin-bottom: clamp(26px, 4vw, 44px); max-width: 760px; }
.sec-head h2 { margin: 0; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.sec-head .sub { margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }

.glass {
  position: relative; border-radius: var(--radius); background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 80px -30px rgba(0, 0, 0, 0.75);
}
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(255, 210, 122, 0.55), rgba(255, 210, 122, 0) 30%, rgba(111, 231, 255, 0) 70%, rgba(111, 231, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* featured game */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 44px); padding: clamp(14px, 1.6vw, 20px); align-items: center; }
.media { position: relative; border-radius: calc(var(--radius) - 8px); overflow: visible; }
.shot { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--radius) - 8px); background: #0a1030; }
.shot.main { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px -20px rgba(0, 0, 0, 0.8); }
.inset { position: absolute; right: -14px; bottom: -18px; width: 40%; margin: 0; border-radius: 14px; padding: 6px; background: rgba(8, 12, 32, 0.72); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8); }
.inset .shot { border-radius: 9px; }
.inset figcaption { font-size: 12px; color: var(--muted); padding: 6px 4px 1px; letter-spacing: 0.06em; }
.live { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(5, 8, 20, 0.7); border: 1px solid rgba(125, 255, 178, 0.4); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #c9ffe0; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #7dffb2; box-shadow: 0 0 8px #7dffb2; }
.info { padding: clamp(8px, 1.5vw, 20px) clamp(8px, 1.6vw, 24px) clamp(12px, 1.6vw, 24px) 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(111, 231, 255, 0.1); border: 1px solid rgba(111, 231, 255, 0.3); color: #c8f5ff; }
.tags span:first-child { background: rgba(255, 210, 122, 0.12); border-color: rgba(255, 210, 122, 0.45); color: var(--gold-hi); }
.game-title {
  margin: 0 0 12px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff, #9fe9ff 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.info p { margin: 0 0 18px; color: #d3e1f4; }
.facts { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.facts li { flex: 1 1 0; min-width: 88px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.facts b { display: block; font-size: 28px; line-height: 1; color: var(--gold); }
.facts span { font-size: 13px; color: var(--muted); }
.info .btn-xl { width: 100%; }
.fine { margin: 12px 0 0 !important; font-size: 14px; color: var(--muted) !important; text-align: center; }

/* coming soon */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.soon { padding: 26px 24px 24px; }
.sealed { width: 116px; height: 116px; margin: -4px 0 14px -6px; overflow: visible; }
.sealed .shield { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sealed .shield { animation: none; } }
.chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); color: #dce8f8; }
.soon h3, .point h3 { margin: 12px 0 6px; font-size: 22px; }
.soon p, .point p { margin: 0; color: var(--muted); font-size: 16px; }
.point { padding: 24px; }
.point svg { width: 34px; height: 34px; }

/* footer */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--glass-line); background: rgba(4, 6, 18, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 34px 0 calc(30px + var(--safe-b)); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a, .linkish { color: var(--muted); text-decoration: none; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; }
.foot nav a:hover, .linkish:hover { color: #fff; }
.small { width: 100%; margin: 4px 0 0; color: #7f91b0; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .info { padding: 8px 8px 10px; }
  .inset { right: 10px; bottom: -22px; width: 42%; }
  .grid3 { grid-template-columns: 1fr; }
  .soon { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; align-items: start; }
  .soon .sealed { grid-row: span 3; width: 96px; height: 96px; margin: 0; }
  .soon h3 { margin-top: 8px; }
  .soon .chip { justify-self: start; }
}
@media (max-width: 720px) {
  #scrim { background: linear-gradient(180deg, rgba(5, 6, 15, 0) 30%, rgba(5, 6, 15, 0.78) 62%, rgba(5, 6, 15, 0.85) 100%); }
  .hero { justify-content: flex-end; padding-bottom: calc(84px + var(--safe-b)); }
  .top nav a:not(.btn) { display: none; }
  .brand span { font-size: 13px; letter-spacing: 0.1em; }
  .cta .btn { flex: 1 1 100%; }
  .now-line { font-size: 14px; }
  .eyebrow { letter-spacing: 0.22em; font-size: 12px; }
  .chip-btn { font-size: 12px; padding: 8px 12px; min-height: 38px; }
  .card { font-size: clamp(19px, 5.4vw, 26px); }
  .lockup .word { font-size: clamp(22px, 8.2vw, 44px); letter-spacing: calc(0.12em + var(--u, 0) * 0.06em); margin-right: calc(-0.12em - var(--u, 0) * 0.06em); }
  .lockup .tag { letter-spacing: 0.36em; margin-right: -0.36em; }
  .now .name { font-size: clamp(28px, 9.4vw, 54px); letter-spacing: 0.08em; margin-right: -0.08em; }
  .facts li { padding: 10px 12px; }
  .facts b { font-size: 24px; }
  .btn-xl { padding: 18px 26px; font-size: 19px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
