:root {
  --bg: #070504;
  --bg-2: #100b08;
  --bg-3: #1a120e;
  --ember: #ff7a18;
  --ember-2: #ffb347;
  --gold: #ffc14a;
  --blood: #e23b2c;
  --cream: #f7efe2;
  --muted: #b7a392;
  --line: rgba(255, 193, 74, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --max: 1160px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}
body:has(.install-bar) { padding-bottom: 76px; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ember-2); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 90;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max);
  padding-inline: 16px;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 5, 4, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 1.4rem;
}
.brand > img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.app-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1c110c;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px var(--line);
}
.app-icon img { width: 36px; height: 36px; }
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--cream); background: rgba(255, 255, 255, 0.04); }
.nav-play {
  background: var(--cream) !important;
  color: #140c08 !important;
  font-weight: 800 !important;
}
.nav-play:hover { filter: brightness(1.05); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(calc(100svh - 72px), 860px);
  display: grid;
  align-items: center;
  padding: 36px 0 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.1);
  transform: scale(1.06);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 4, 0.94) 0%, rgba(7, 5, 4, 0.78) 42%, rgba(7, 5, 4, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 5, 4, 0.2), rgba(7, 5, 4, 0.88));
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tags span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
}
.kicker {
  display: inline-block;
  color: var(--ember);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin: 0;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.03em; }
h1 {
  font-size: clamp(4rem, 10vw, 7.4rem);
  line-height: 0.82;
  margin: 8px 0 16px;
}
h1 span { color: var(--gold); display: block; }
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: min(38ch, 100%);
  margin: 0 0 24px;
  overflow-wrap: break-word;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(180deg, var(--ember-2), var(--ember));
  color: #1a0d06;
  box-shadow: 0 10px 28px rgba(255, 122, 24, 0.32);
}
.btn-primary:hover { color: #1a0d06; filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 60px; width: auto; }
.play-badge:hover { filter: brightness(1.08); }

.hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}
.hud div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
}
.hud dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.device {
  width: min(290px, 72vw);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(180deg, #2a211c, #0c0908);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 193, 74, 0.18);
  animation: float 5.6s ease-in-out infinite;
}
.device-bezel {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/19.5;
}
.device-bezel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.device-sm { width: 210px; animation: none; }
.float-card {
  position: absolute;
  background: rgba(12, 8, 6, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.float-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ember);
}
.float-card strong {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.float-card-a { left: 0; top: 18%; }
.float-card-b { right: 0; bottom: 16%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section h2 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  margin: 8px 0 12px;
  line-height: 0.92;
}
.intro { color: var(--muted); margin: 0; max-width: 54ch; }

.icon-kit {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.icon-kit li { text-align: center; }
.icon-kit img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #1a120e;
}
.icon-kit span {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mode {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.mode img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.mode::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 4, 0.2), rgba(7, 5, 4, 0.88) 52%, rgba(7, 5, 4, 0.96));
}
.mode div {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.mode h3 { margin: 8px 0; font-size: 2rem; }
.mode p { margin: 0; color: var(--muted); }

.section-roster {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(226, 59, 44, 0.12), transparent 45%),
    var(--bg-2);
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.art-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.art-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.roster {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.roster li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 0.88rem;
}
.roster span {
  display: block;
  color: var(--cream);
  font-weight: 700;
}

.rail-wrap {
  width: 100%;
  overflow-x: auto;
}
.rail {
  display: flex;
  gap: 16px;
  padding: 4px 16px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ember) transparent;
  width: max-content;
}
.shot {
  margin: 0;
  flex: 0 0 220px;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  aspect-ratio: 9/19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}
.shot figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.cta-band {
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255, 122, 24, 0.16), transparent 50%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}

.lost-page { min-height: 100svh; }
.lost {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  text-align: center;
  min-height: calc(100svh - 160px);
  display: grid;
  align-items: center;
}
.lost-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lost-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.15) saturate(1.05);
}
.lost-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 5, 4, 0.72), rgba(7, 5, 4, 0.92) 55%, var(--bg));
}
.lost-inner { position: relative; max-width: 720px; }
.lost-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lost h1 { font-size: clamp(3.6rem, 10vw, 7rem); margin: 8px 0 12px; }
.lost-lede { margin-inline: auto; }
.lost-hud { max-width: 520px; margin: 22px auto 0; }
.lost-log {
  list-style: none;
  padding: 16px 18px;
  margin: 24px auto 0;
  max-width: 520px;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.lost-log li {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 193, 74, 0.08);
}
.lost-log li:last-child { border-bottom: 0; }
.lost-log b { color: var(--gold); font-weight: 700; margin-right: 6px; }
.lost-cta { justify-content: center; margin-top: 28px; }

.legal { padding: 80px 0 120px; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 8px 0 12px; }
.legal h2 { margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); max-width: min(68ch, 100%); overflow-wrap: break-word; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner, .footer-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 18px;
  background: rgba(16, 11, 8, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.install-bar div { flex: 1; min-width: 0; }
.install-bar strong { display: block; }
.install-bar span {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-bar .btn {
  padding: 10px 16px;
  flex-shrink: 0;
  min-width: 88px;
}

.lightbox {
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.9);
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox img {
  max-height: 92vh;
  max-width: min(420px, 92vw);
  margin: 4vh auto;
  border-radius: 18px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-3);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 72px 16px auto;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .hero-grid, .modes, .split, .cta-grid, .hud, .roster { grid-template-columns: 1fr; }
  .icon-kit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { min-height: auto; padding-top: 24px; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(7, 5, 4, 0.82) 0%, rgba(7, 5, 4, 0.88) 48%, rgba(7, 5, 4, 0.96) 100%);
  }
  .hero-copy {
    background: rgba(7, 5, 4, 0.42);
    border-radius: 20px;
    padding: 18px 16px 8px;
    backdrop-filter: blur(6px);
  }
  .float-card { display: none; }
  .device { width: min(230px, 68vw); }
  h1 { font-size: 3.6rem; }
  .hud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .hud dd { font-size: 0.95rem; }
  .hud div { padding: 8px 6px; }
  .lede, .intro { max-width: 100%; }
}

@media (min-width: 861px) {
  .install-bar { display: none; }
  body:has(.install-bar) { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .device { animation: none; }
  html { scroll-behavior: auto; }
}
