:root {
  --bg: #08110c;
  --bg-2: #102117;
  --ink: #f6f1e4;
  --muted: #c5d0c4;
  --gold: #e6b84c;
  --green: #1f9d55;
  --line: rgba(230, 184, 76, 0.38);
  --cell: rgba(140, 190, 150, 0.08);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--cell) 1px, transparent 1px),
    linear-gradient(90deg, var(--cell) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: var(--gold); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: #142016;
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(8, 17, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  min-height: 56px;
  padding: 12px 0;
}

.topbar strong {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.topbar span { color: var(--muted); font-size: 0.95rem; }

.hero {
  display: grid;
  gap: 28px;
  padding: 28px 0 12px;
}

.portrait {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
}

.portrait img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 168px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.portrait figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 10px 6px 4px;
}

.visuals { display: grid; gap: 12px; }

.story { margin: 0; }

.story-frame {
  position: relative;
  width: min(168px, 42vw);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #050a07;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  cursor: pointer;
}

.story-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #172116;
  font: inherit;
  font-weight: 700;
}

.story-frame.is-open {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
}

.story-frame.is-open .story-close { display: inline-flex; align-items: center; }

body.story-lock { overflow: hidden; }

.story-frame video,
.story-frame iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }

.story-frame .slate p { font-size: 1.35rem; }

.story figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding-top: 8px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1, h2, .card b, .cell b, .mark b {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(4.6rem, 18vw, 8.4rem);
  line-height: 0.84;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 0.9;
}

h3 { margin: 0; font-size: 1.15rem; }

.lede, .section-head p, .when, .fx { color: var(--muted); }

.lede { font-size: 1.2rem; }

.when { font-size: 0.95rem; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 84px;
}

.cell {
  background: rgba(8, 20, 14, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 10px 4px;
}

.cell b {
  display: block;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  color: var(--gold);
}

.cell span {
  color: var(--muted);
  font-size: 0.8rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: #172116;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.btn:disabled { opacity: 0.6; }

section.wrap, .hero + section { margin-top: 28px; }

.wrap > .section-head,
.wrap > .score,
.wrap > .track,
.wrap > .stages,
.wrap > .split,
.wrap > .form,
.wrap > .cards,
.wrap > .marks,
.wrap > .wall,
.wrap > .prose,
.wrap > .faq,
.wrap > .screen { margin-top: 0; }

section.wrap { padding: 28px 0; }

.hero-score { margin: 4px 0 8px; }

.score {
  font-size: 1.15rem;
}

.score strong {
  font-size: 1.8rem;
  color: var(--gold);
}

.track {
  position: relative;
  height: 22px;
  margin: 18px 0 22px;
  background: #07140e;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: visible;
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.track i {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 34px;
  background: var(--gold);
}

.stages, .cards, .split, .wall {
  display: grid;
  gap: 14px;
}

.stage, .panel, .card, .mark, .note, details {
  background: rgba(16, 33, 23, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stage, .panel, .card, .note, details { padding: 16px; }

.stage header, .mark {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stage header h3 { flex: 1; }

.stage header b, .mark b { color: var(--gold); font-size: 1.5rem; }

.check {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: #102117;
  background: transparent;
}

.stage.is-funded .check { background: var(--green); border-color: var(--green); color: #f6f1e4; }

.stage p, .card p, .panel p, details p { margin: 10px 0 0; }

.parts {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.parts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(230, 184, 76, 0.2);
}

.math summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.filled { color: var(--muted); font-size: 0.92rem; }

.news { display: grid; gap: 10px; }

.news article {
  background: rgba(16, 33, 23, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.news time { color: var(--gold); font-weight: 700; }

.news p { margin: 6px 0 0; }

.fx { font-size: 0.92rem; }

.pix {
  font-size: 1.25rem;
  font-weight: 700;
  word-break: break-all;
}

.warn {
  background: rgba(230, 184, 76, 0.1);
  border-left: 3px solid var(--gold);
  padding: 8px 10px;
}

.qr {
  display: block;
  width: min(220px, 100%);
  margin-top: 14px;
  background: #f4f0e4;
  border-radius: 12px;
  padding: 8px;
}

.choices { display: grid; gap: 8px; }

.choice {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.choice b { color: var(--gold); }

.or {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.form { display: grid; gap: 12px; }

.form label { display: grid; gap: 6px; font-weight: 600; }

.form input, .form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b1610;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.checkline {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checkline input { width: 1.2rem; height: 1.2rem; min-height: 0; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.cards { grid-template-columns: 1fr; }

.card b {
  display: block;
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 1;
}

.marks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.mark { padding: 14px 16px; }

.mark small { margin-left: auto; color: var(--muted); }

.mark.is-on { outline: 1px solid var(--green); }

.wall { grid-template-columns: 1fr; }

.note span { display: block; margin-top: 8px; color: var(--gold); }

.empty { color: var(--muted); }

.promise {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--gold);
  color: #172116;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.faq { display: grid; gap: 10px; }

details summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.screen {
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  background: #050a07;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
}

.screen iframe, .slate { width: 100%; height: 100%; border: 0; }

.slate {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 20px;
  gap: 6px;
}

.slate p {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.03em;
}

.slate span { color: var(--muted); }

.countdown.compact { margin-bottom: 8px; }

.foot {
  padding: 12px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 799px) {
  .visuals { grid-template-columns: 1.35fr 0.75fr; align-items: start; }
  .story-frame { width: 100%; }
}

@media (min-width: 800px) {
  .story-frame { width: 220px; }
  .portrait img { max-height: none; width: 100%; }
  .hero { grid-template-columns: 0.86fr 1.14fr; align-items: center; gap: 40px; }
  .split, .cards, .wall { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: 1fr 1fr; }
}
