:root {
  --bg: #08080a;
  --bg-2: #0e0e11;
  --surface: #131317;
  --line: #24242a;
  --ink: #f4f4f5;
  --muted: #9a9aa3;
  --dim: #5c5c66;
  --amber: #ffb547;
  --violet: #a78bfa;
  --grad: linear-gradient(100deg, var(--amber), #ff7a59 45%, var(--violet));
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: #111; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1100px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(16, 16, 19, .92); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #111; font-weight: 800; font-size: .85rem; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav-links a.pill { background: var(--ink); color: #111; font-weight: 600; }
.nav-links a.pill:hover { background: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; font-family: inherit; line-height: inherit; cursor: pointer;
}
.btn-primary { background: var(--ink); color: #0a0a0a; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: #3a3a42; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 120px 0 80px; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; width: 900px; height: 900px; left: 50%; top: 55%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(167,139,250,.16), rgba(255,181,71,.07) 35%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted);
  font-size: .85rem; font-weight: 500; margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(2.8rem, 9vw, 7.5rem); margin: 0 0 26px;
}
.hero h1 .line { display: block; }
.hero p.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 560px; margin: 0 auto 38px; min-height: 1.6em; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--dim); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint span.bar { width: 1px; height: 40px; background: linear-gradient(var(--dim), transparent); }

/* marquee */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--display); font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 600; white-space: nowrap; color: var(--dim); }
.marquee-group .star { color: var(--amber); font-size: .8em; }
.marquee-group b { color: var(--ink); font-weight: 600; }

/* sections */
section.block { padding: clamp(90px, 14vw, 160px) 0; position: relative; }
.kicker { display: inline-block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: 18px; }
.h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2.1rem, 5.5vw, 4rem); margin: 0 0 22px; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0; }

/* featured game */
.game { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.game-visual { position: relative; perspective: 1000px; }
.tilt { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); transform-style: preserve-3d; will-change: transform; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.tilt img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tilt .shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255,255,255,.18), transparent 50%); opacity: 0; transition: opacity .3s; }
.tilt:hover .shine { opacity: 1; }
.queen {
  position: absolute; width: clamp(80px, 11vw, 140px); right: -22px; bottom: -34px; z-index: 3;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.55));
  will-change: transform;
}
.shiny {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid #3a2f1c; margin-bottom: 20px;
  font-size: .85rem; font-weight: 600; color: rgba(255,181,71,.55);
  background: linear-gradient(110deg, rgba(255,181,71,.55) 35%, #fff2d6 50%, rgba(255,181,71,.55) 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 3.5s linear infinite;
}
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.game h3 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.game p { color: var(--muted); font-size: 1.08rem; margin: 0 0 30px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px; background: var(--surface); text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; }

/* features: spotlight cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.spot {
  position: relative; border-radius: 18px; padding: 24px 22px 22px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(255,181,71,.14), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.spot .num { font-family: var(--display); font-size: .8rem; color: var(--dim); margin-bottom: 18px; display: block; }
.spot h4 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 8px; font-weight: 600; }
.spot p { color: var(--muted); margin: 0; font-size: .98rem; }

/* each game is one block; later games get a divider */
.game-block + .game-block { margin-top: clamp(80px, 10vw, 120px); padding-top: clamp(80px, 10vw, 120px); border-top: 1px solid var(--line); }

/* per-game screenshot strip: swipe / scroll sideways, arrows on desktop */
.shots-strip { margin-top: clamp(48px, 6vw, 72px); }
.strip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.strip-head h4 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0; }
.strip-nav { display: flex; gap: 8px; }
.strip-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: border-color .2s, opacity .2s;
}
.strip-btn:hover { border-color: #3a3a42; }
.strip-btn:disabled { opacity: .35; cursor: default; }
.strip-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.strip-track::-webkit-scrollbar { display: none; }
.shot-card { flex: 0 0 clamp(240px, 30%, 360px); margin: 0; scroll-snap-align: start; }
.shot-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; transition: border-color .2s; }
.shot-card img:hover { border-color: #3a3a42; }
.shot-card figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }
@media (max-width: 600px) {
  .strip-nav { display: none; }
  .shot-card { flex-basis: 78%; }
}

/* studio: scroll reveal text */
.reveal-text { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.25; letter-spacing: -.015em; margin: 0; max-width: 1000px; }
.reveal-text .word { display: inline-block; }

/* contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact .h2 { font-size: clamp(2.6rem, 9vw, 7rem); }
.contact .sub { margin: 0 auto 40px; }
.contact-glow { position: absolute; inset: auto 0 -40% 0; height: 80%; background: radial-gradient(ellipse at center, rgba(255,181,71,.16), transparent 60%); pointer-events: none; }
.mail { font-size: clamp(1rem, 2.4vw, 1.25rem); padding: 20px 34px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--dim); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* click spark canvas */
#sparks { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,7,.95); display: none; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-btn { position: absolute; border: 1px solid rgba(255,255,255,.15); cursor: pointer; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; font-size: 1.8rem; line-height: 1; }
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* privacy / doc pages */
.doc { max-width: 760px; padding: 130px 0 80px; }
.doc h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 6px; letter-spacing: -.02em; }
.doc .updated { color: var(--dim); margin-top: 0; }
.doc h2 { font-family: var(--display); font-size: 1.15rem; margin: 40px 0 10px; font-weight: 600; }
.doc p, .doc li { color: #c9c9d0; }
.doc a { color: var(--amber); }
.doc strong { color: var(--ink); }

/* JS-driven initial states (only when animations will run) */
.anim .hero h1, .anim .hero .eyebrow, .anim .hero-cta, .anim .scroll-hint { visibility: hidden; }

@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .queen { right: -6px; bottom: -36px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { padding-left: 14px; }
  .nav-links a:not(.pill) { display: none; }
  /* on phones the feature cards become a swipeable row so each game stays short */
  .features { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-top: 28px; }
  .features::-webkit-scrollbar { display: none; }
  .spot { flex: 0 0 78%; scroll-snap-align: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-height: 760px) {
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shiny { animation: none; }
}
