:root {
  --navy: #1c3d5a;
  --navy-2: #152c42;
  --gold: #c4a35a;
  --paper: #f4efe6;
  --ink: #1a1a1a;
  --muted: #5c6670;
  --card: #fff;
  --line: #d7d0c4;
  --danger: #8b1e1e;
  --ok: #1f6b3a;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100dvh;
}
a { color: var(--navy); }
.top {
  background: var(--navy);
  color: #fff;
  padding: 14px 16px calc(10px + env(safe-area-inset-top));
}
.top h1 { margin: 0; font-size: 1.05rem; letter-spacing: .02em; }
.top p { margin: 4px 0 0; opacity: .8; font-size: .82rem; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(88px + var(--safe-b)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 12px;
}
.card h2, .card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.muted { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label { display: block; font-size: .82rem; font-weight: 600; margin: 10px 0 4px; }
input, textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
textarea { min-height: 88px; }
.btn {
  appearance: none; border: 0; background: var(--navy); color: #fff;
  padding: 11px 16px; border-radius: 999px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.danger { background: var(--danger); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.ok { color: var(--ok); }
.err { color: var(--danger); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { margin: 0 0 10px; padding-left: 2rem; position: relative; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}
.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--navy-2); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + var(--safe-b));
  border-top: 3px solid var(--gold);
}
.nav a {
  color: #fff; text-decoration: none; text-align: center; font-size: .78rem; font-weight: 600;
  padding: 8px 4px; border-radius: 10px; opacity: .75;
}
.nav a.on { background: rgba(255,255,255,.12); opacity: 1; }
.hero {
  background: linear-gradient(160deg, var(--navy), #2b5a7a);
  color: #fff; border-radius: 16px; padding: 20px; margin-bottom: 14px;
}
.hero h2 { margin: 0 0 6px; font-size: 1.4rem; }
.list-item {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; margin-bottom: 10px; text-decoration: none; color: inherit;
}
.list-item strong { display: block; margin-bottom: 4px; }
.gate {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate .card { max-width: 420px; width: 100%; }
code { background: #ece6da; padding: 1px 6px; border-radius: 4px; font-size: .88em; }
.checklist { background: #eef3f7; border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.hidden { display: none !important; }
.splash {
  position: fixed; inset: 0; z-index: 80;
  background: var(--navy-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px;
  transition: opacity .35s ease;
}
.splash.off { opacity: 0; pointer-events: none; }
.splash img {
  max-width: min(72vw, 320px);
  max-height: 46vh;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.splash-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  z-index: 0 !important;
}
.splash.full-photo .wordmark,
.splash.full-photo .season,
.splash.full-photo .coming {
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  z-index: 1;
}
.splash.full-photo #splashImg {
  max-width: min(48vw, 180px);
  max-height: 22vh;
}
.splash .wordmark { color: #fff; font-weight: 700; letter-spacing: .06em; margin-top: 16px; }
.splash .season { color: var(--gold); margin-top: 8px; font-size: .9rem; }
.splash .coming {
  color: #f4efe6; max-width: 22rem; text-align: center; line-height: 1.45;
  margin: 18px 0 0; font-size: .98rem;
}
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mod-grid a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 12px; text-decoration: none; color: inherit; min-height: 88px;
}
.mod-grid a strong { display: block; margin-bottom: 4px; }
.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
body.blocked .nav, body.blocked .top { display: none; }
body.blocked .wrap { padding-bottom: 24px; }
.scan-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3/4; }
.scan-wrap video, .scan-wrap canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-wrap canvas { position: absolute; inset: 0; pointer-events: none; }
.scan-frame {
  position: absolute; inset: 18% 14%; border: 2px solid var(--gold); border-radius: 12px; pointer-events: none;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.chip {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 600;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.hp {
  position: absolute; left: -9999px; height: 0; width: 0; opacity: 0;
}
.ticket {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.ticket .row { margin-top: 8px; }
.badge {
  display: inline-block; background: var(--gold); color: var(--navy-2);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; margin-right: 6px;
}
.badge.far { background: #ece6da; color: var(--muted); }
.map-embed {
  width: 100%; height: 240px; border: 0; border-radius: 14px; background: #d7d0c4;
}
.dist { float: right; color: var(--muted); font-size: .82rem; font-weight: 600; }
body.highball .top { background: #142536; }
body.highball .nav { border-top-color: #e2b84a; }
.hero.highball-hero {
  background: linear-gradient(165deg, #142536 0%, #1c3d5a 55%, #3a2e12 100%);
  border: 1px solid #c4a35a;
}
.eyebrow {
  margin: 0 0 4px; color: var(--gold); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.highball-score {
  margin: 12px 0 0; font-weight: 700; color: var(--gold);
}
@media (min-width: 1100px) {
  .wrap { padding-bottom: 32px; }
  .nav { left: auto; right: 16px; top: 16px; bottom: auto; grid-template-columns: 1fr; border-radius: 14px; width: 140px; border: 0; }
  .map-embed { height: 360px; }
  body.admin .wrap { max-width: 1080px; padding-bottom: 48px; }
}
body.admin .wrap { max-width: 1080px; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px;
}
.stats.compact { margin-top: 10px; }
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.stat b { display: block; font-size: 1.25rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .82rem; }
.split { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.bar-row { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: .86rem; }
.bar-row .k { flex: 0 0 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar { flex: 1; height: 8px; background: #ece6da; border-radius: 99px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.bar-row .v { width: 42px; text-align: right; color: var(--muted); }
table.grid { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.grid th, table.grid td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th { color: var(--muted); font-weight: 600; }
.range-row { margin-top: 10px; }
.highball-insights { border-color: var(--gold); }
.choices { display: grid; gap: 8px; margin: 12px 0; }
.choice {
  appearance: none; width: 100%; text-align: left; font: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer;
}
.choice.good { border-color: var(--ok); background: #e8f4ec; }
.choice.bad { border-color: var(--danger); background: #f7e8e8; }
