@font-face { font-family: 'Builder Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/BuilderSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Builder Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/BuilderSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Builder Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/BuilderSans-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/SplineSansMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/SplineSansMono-SemiBold.woff2') format('woff2'); }

:root {
  --bg: #F4F2ED;
  --surface: #FDFCFA;
  --surface2: #ECE9E1;
  --ink: #161B24;
  --ink-soft: #3A4150;
  --muted: #5B6472;
  --line: rgba(22, 27, 36, 0.14);
  --line-strong: rgba(22, 27, 36, 0.32);
  --accent: #FFBE3D;
  --accent-ink: #7A5200;
  --accent-on: #1A1200;
  --beam: rgba(255, 190, 61, 0.16);
  --shadow: 0 2px 16px rgba(22, 27, 36, 0.07);
  --ok: #1E7A4C;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141C;
    --surface: #181E29;
    --surface2: #1F2633;
    --ink: #F2EFE8;
    --ink-soft: #C6CBD6;
    --muted: #99A1B3;
    --line: rgba(242, 239, 232, 0.13);
    --line-strong: rgba(242, 239, 232, 0.34);
    --accent: #FFBE3D;
    --accent-ink: #FFC95E;
    --accent-on: #1A1200;
    --beam: rgba(255, 190, 61, 0.09);
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    --ok: #5BC98D;
  }
}
:root[data-theme="dark"] {
  --bg: #10141C;
  --surface: #181E29;
  --surface2: #1F2633;
  --ink: #F2EFE8;
  --ink-soft: #C6CBD6;
  --muted: #99A1B3;
  --line: rgba(242, 239, 232, 0.13);
  --line-strong: rgba(242, 239, 232, 0.34);
  --accent: #FFBE3D;
  --accent-ink: #FFC95E;
  --accent-on: #1A1200;
  --beam: rgba(255, 190, 61, 0.09);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  --ok: #5BC98D;
}
:root[data-theme="light"] {
  --bg: #F4F2ED;
  --surface: #FDFCFA;
  --surface2: #ECE9E1;
  --ink: #161B24;
  --ink-soft: #3A4150;
  --muted: #5B6472;
  --line: rgba(22, 27, 36, 0.14);
  --line-strong: rgba(22, 27, 36, 0.32);
  --accent: #FFBE3D;
  --accent-ink: #7A5200;
  --accent-on: #1A1200;
  --beam: rgba(255, 190, 61, 0.16);
  --shadow: 0 2px 16px rgba(22, 27, 36, 0.07);
  --ok: #1E7A4C;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Builder Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'Spline Sans Mono', ui-monospace, 'Cascadia Mono', monospace;
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent-ink); }

button { font: inherit; cursor: pointer; }
:is(button, a, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.stud {
  display: inline-block;
  width: 0.55em; height: 0.55em;
  background: var(--accent);
  flex: none;
}

.uplift-logo { display: block; flex: none; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

.draft-note {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  border-bottom: 1px solid var(--line);
  color: var(--accent-ink);
  font-size: 12px; letter-spacing: 0.06em;
  text-align: center; padding: 7px 16px;
}

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink); text-decoration: none;
}
.brand .uplift-logo { height: 32px; width: 74px; }
.brand-divider { width: 1px; height: 26px; background: var(--line-strong); }
.brand-word {
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a {
  color: var(--muted); text-decoration: none;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em;
}
.topnav a:hover { color: var(--ink); }
@media (max-width: 800px) { .topnav { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  padding: 10px 18px; border-radius: 3px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-on);
}
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.06); }
.btn-small { padding: 7px 14px; font-size: 14px; }

.userchip {
  display: none; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 6px 12px 6px 6px; font-size: 14px; font-weight: 600;
}
.userchip.on { display: inline-flex; }
.avatar {
  width: 26px; height: 26px; border-radius: 2px;
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; text-transform: uppercase;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.userchip .logout {
  color: var(--muted); text-decoration: none;
  font-size: 12.5px; font-weight: 600; margin-left: 4px;
}
.userchip .logout:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto;
  height: 130%;
  background: radial-gradient(ellipse 46% 62% at 50% 0%, var(--beam), transparent 70%);
  transform-origin: 50% 0%;
  animation: sweep 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes sweep {
  from { transform: rotate(-7deg); }
  to   { transform: rotate(7deg); }
}
.hero-inner { position: relative; padding: 84px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; font-weight: 600;
  text-transform: uppercase; color: var(--muted);
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(64px, 13vw, 158px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 .dot { color: var(--accent); }
/* Uplift Games brand pink, same value as the logo fills; constant across themes */
.hero h1 .brand-pink { color: #E81F76; }
.hero-thesis {
  max-width: 34em;
  margin: 26px 0 0;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }

.statstrip {
  display: flex; flex-wrap: wrap;
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
}
.stat {
  flex: 1 1 150px;
  padding: 22px 26px 30px 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat + .stat { padding-left: 26px; }
.stat .n {
  display: block;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stat .l {
  display: block; margin-top: 4px;
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
@media (max-width: 640px) {
  .stat { flex-basis: 40%; border-right: none; padding-left: 0; }
  .stat + .stat { padding-left: 0; }
}

/* ---------- sections ---------- */
section { padding: 84px 0 0; }
.sec-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 8px;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800; letter-spacing: -0.01em;
  text-wrap: balance;
}
.sec-head .count {
  font-size: 14px; color: var(--muted); letter-spacing: 0.08em;
}
.sec-sub { max-width: 42em; color: var(--muted); margin: 0 0 40px; text-wrap: pretty; }

.manifesto {
  max-width: 36em;
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.45;
  font-weight: 600;
  text-wrap: pretty;
}
.manifesto em { font-style: normal; color: var(--accent-ink); }
.manifesto-note { max-width: 40em; color: var(--muted); margin-top: 18px; }

/* ---------- category ledger ---------- */
.ledger { border-top: 1px solid var(--line-strong); }
.cat {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 10px 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cat .idx {
  font-size: 15px; color: var(--muted); padding-top: 7px;
}
.cat h3 {
  margin: 0; font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 800; letter-spacing: -0.005em; line-height: 1.15;
  text-wrap: balance;
}
.cat .desc { margin: 8px 0 0; color: var(--ink-soft); max-width: 38em; text-wrap: pretty; }
.cat .crit {
  margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.crit span {
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 3px 9px;
}
.cat .side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  padding-top: 4px;
}
.cat .prize { font-size: 21px; font-weight: 600; }
.cat .prize small {
  display: block; font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); text-align: right;
  font-family: 'Builder Sans', system-ui, sans-serif; font-weight: 600;
}
@media (max-width: 720px) {
  .cat { grid-template-columns: 1fr; gap: 6px; }
  .cat .idx { padding: 0; }
  .cat .side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; margin-top: 10px; }
}

/* ---------- how it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--line-strong);
  padding-top: 18px;
  counter-increment: step;
}
.step::before {
  content: "Step " counter(step);
  font-family: 'Spline Sans Mono', ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600;
}
.step h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 800; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink-soft); text-wrap: pretty; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- ballot ---------- */
.ballot {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ballot-head {
  display: flex; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  background: var(--surface2);
}
.tab {
  border: none; background: none; color: var(--muted);
  padding: 15px 18px; font-weight: 600; font-size: 15.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.demo-flag {
  margin-left: auto;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.ballot-body { padding: 28px; }
@media (max-width: 560px) { .ballot-body { padding: 20px 16px; } }

.locked { text-align: center; padding: 30px 20px; }
.locked p { color: var(--muted); max-width: 30em; margin: 0 auto 20px; }
.locked p:last-child { margin-bottom: 0; }

.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; color: var(--muted);
  margin-bottom: 8px;
}
.field input[type="text"], .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  padding: 11px 13px;
  font: inherit;
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 12px; }
.hint .err { color: var(--accent-ink); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.check input { margin-top: 4px; accent-color: var(--accent); }

.noms-list { margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 6px; }
.nom-row {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.nom-row .who { font-weight: 600; }
.nom-row .cat-tag { color: var(--muted); font-size: 13px; margin-left: auto; text-align: right; }
.nom-status {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--line); border-radius: 2px; padding: 2px 8px; color: var(--muted);
}
.nom-status.approved { color: var(--ok); border-color: var(--ok); }
.nom-status.rejected { color: var(--accent-ink); border-color: var(--accent-ink); }

/* vote tab */
.vote-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.vc-chip {
  border: 1px solid var(--line-strong); background: none; color: var(--ink-soft);
  border-radius: 3px; padding: 7px 13px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.vc-chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vc-chip .done { color: var(--ok); font-weight: 800; }
.vc-chip[aria-selected="true"] .done { color: inherit; }

.finalist {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center;
  border: 1px solid var(--line); border-radius: 3px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--bg);
}
.finalist .fa {
  width: 38px; height: 38px; border-radius: 2px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; text-transform: uppercase;
  background: var(--surface2); color: var(--ink);
  border: 1px solid var(--line);
}
.finalist .fn { font-weight: 600; font-size: 16px; }
.finalist .fd { font-size: 14px; color: var(--muted); margin-top: 1px; text-wrap: pretty; }
.finalist.chosen { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
.finalist.chosen .fa { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.finalist.matched { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink); }
.vote-btn { white-space: nowrap; }
.fin-actions { display: flex; gap: 6px; align-items: center; }
.share-btn { color: var(--muted); white-space: nowrap; }
.mini-chip {
  display: inline-block; margin-left: 8px;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 1px 6px;
}
.finalist.matched .mini-chip { color: var(--accent-ink); border-color: var(--accent-ink); }
.focus-divider {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 16px 0 8px;
}
.vote-progress {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted);
}

/* ---------- judges ---------- */
.judges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.judge {
  border: 1px solid var(--line); border-radius: 4px;
  padding: 22px; min-height: 132px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.judge .uplift-logo { height: 28px; width: 64px; margin-bottom: 4px; }
.judge .jn { font-weight: 800; font-size: 17px; }
.judge .jr { font-size: 13.5px; color: var(--muted); }
.judge.tba { border-style: dashed; background: none; }
.judge.tba .jn { color: var(--muted); }
@media (max-width: 900px) { .judges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .judges { grid-template-columns: 1fr; } }
.judge-note { color: var(--muted); font-size: 15px; max-width: 44em; margin-top: 22px; text-wrap: pretty; }

/* ---------- timeline ---------- */
.timeline { border-top: 1px solid var(--line-strong); }
.tl-row {
  display: grid; grid-template-columns: 150px auto 1fr; gap: 20px;
  align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.tl-row .d { font-size: 15px; color: var(--accent-ink); font-weight: 600; }
.tl-row .stud { align-self: center; }
.tl-row .e { font-weight: 600; }
.tl-row .e small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .tl-row { grid-template-columns: 96px auto 1fr; gap: 12px; } }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent-ink); font-weight: 600; font-family: 'Spline Sans Mono', monospace; }
.faq details[open] summary::before { content: "–"; }
.faq .a { padding: 0 0 22px 30px; color: var(--ink-soft); max-width: 46em; text-wrap: pretty; }
.faq .a p { margin: 0 0 10px; }

/* ---------- footer ---------- */
footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  font-size: 14px; color: var(--muted);
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.foot-inner p { margin: 0; max-width: 46em; text-wrap: pretty; }
.foot-brand { display: flex; align-items: flex-start; gap: 18px; }
.foot-brand .uplift-logo { height: 42px; width: 97px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 4px;
  font-size: 15px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
