:root {
  --bg: #0b0f19;
  --bg-2: #10172a;
  --card: #141c30;
  --line: #26314d;
  --text: #ece9e1;
  --muted: #9aa1b5;
  --gold: #d4b46a;
  --gold-hi: #f0d48f;
  --blue: #3fb6e8;
  --red: #e2615a;
  --ok: #5bd18b;
  --radius: 14px;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
}
a { color: var(--gold-hi); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.gold { color: var(--gold); }
.kicker {
  font: 600 .78rem/1.2 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

/* top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(11,15,25,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.05rem var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand-mark { width: 18px; height: 18px; border: 2px solid var(--gold); transform: rotate(45deg); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 9px var(--gold); }
.topbar-cta { font-weight: 600; font-size: .9rem; color: var(--bg); background: var(--gold); padding: 7px 14px; border-radius: 999px; text-decoration: none; }
.topbar-cta:hover { background: var(--gold-hi); color: var(--bg); }

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 48px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(63,182,232,.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(212,180,106,.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(212,180,106,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(212,180,106,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 700; text-transform: uppercase; }
.lede { font-size: 1.1rem; color: #d3d0c8; max-width: 36em; }

.facts { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 14px; background: rgba(20,28,48,.7); border: 1px solid var(--line); border-radius: 10px; }
.fact-k { font: 600 .75rem/1.9 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.fact-v { line-height: 1.45; }

/* seat meter */
.meter { margin-top: 8px; }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.meter-row strong { font: 600 1.15rem var(--head); letter-spacing: .03em; }
.bar { height: 10px; background: #1b2440; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); border-radius: 999px; }

/* cards & form */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.rsvp { border-top: 3px solid var(--gold); }
.rsvp h2 { font-size: 1.8rem; text-transform: uppercase; margin-bottom: .2em; }
.form-sub { color: var(--muted); font-size: .95rem; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input, select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* stops iOS zooming in */
  color: var(--text);
  background: #0d1322;
  border: 1px solid #33405f;
  border-radius: 9px;
  padding: 11px 12px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.sure { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.sure legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; padding: 0; }
.sure-note { font-size: .82rem; color: var(--muted); line-height: 1.45; margin: 0 0 10px; }
.sure-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; background: #0d1322; border: 1px solid #33405f; border-radius: 9px; cursor: pointer; }
.sure-opt input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--gold); }
.sure-opt:has(input:checked) { border-color: var(--gold); background: rgba(212,180,106,.1); }
td.sure-uncertain { color: var(--red); }
td.sure-probably { color: #e6d6a8; }
td.sure-definitely { color: var(--ok); }
.optional { margin: 4px 0 16px; border: 1px dashed #33405f; border-radius: 9px; padding: 10px 12px; }
.optional summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.optional[open] summary { margin-bottom: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 4px 0 14px; min-height: 65px; }
.form-err { background: rgba(226,97,90,.12); border: 1px solid rgba(226,97,90,.5); color: #ffd3cf; padding: 10px 12px; border-radius: 9px; font-size: .95rem; }
.fine { font-size: .78rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

.btn {
  display: inline-block;
  width: 100%;
  font: 600 1.1rem var(--head);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--bg);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.07); color: var(--bg); }
.btn[disabled] { opacity: .5; cursor: default; filter: none; }
.btn-ghost { width: auto; background: transparent; color: var(--gold-hi); border: 1px solid var(--gold); }
.btn-ghost:hover { background: rgba(212,180,106,.1); color: #fff; }
.btn-danger { width: auto; background: var(--red); color: #fff; }
.closed h2 { font-size: 1.7rem; text-transform: uppercase; }

/* sections */
section { padding: 52px 0; }
section.wrap { padding: 52px 16px; }
section.wrap + section.wrap { padding-top: 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(1.7rem, 5vw, 2.3rem); text-transform: uppercase; margin-bottom: 22px; }
.section-title::after { content: ""; display: block; width: 46px; height: 3px; background: var(--gold); margin-top: 12px; }

.perks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.perk-n { font: 700 2.4rem/1 var(--head); color: var(--gold); margin-bottom: 10px; }
.perk h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: .35em; }
.perk p { color: #c8c5bd; margin: 0; font-size: .95rem; }

.timeline { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--card); border-radius: 0 10px 10px 0; }
.timeline .t { font: 600 1.05rem var(--head); color: var(--gold-hi); letter-spacing: .04em; }

.teams { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.teams li { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.team { font-weight: 600; }
.team-n { font: 600 1.3rem var(--head); color: var(--gold); }

.faq details { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--head); color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #cfccc4; padding-right: 8px; }

.about-grid { display: grid; gap: 22px; align-items: start; }
.about h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); text-transform: uppercase; }
.about p { color: #d3d0c8; max-width: 44em; }
.about-badge { width: 96px; height: 96px; display: grid; place-items: center; border: 2px solid var(--gold); transform: rotate(45deg); border-radius: 12px; background: radial-gradient(circle at 30% 30%, #1d2a4a, var(--card)); margin: 14px 0 6px 16px; }
.about-badge span { transform: rotate(-45deg); font: 700 2.6rem var(--head); color: var(--gold); }

.final-grid { display: grid; gap: 26px; align-items: start; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: .8rem; color: var(--muted); }

/* message pages */
.message { padding-top: 40px; padding-bottom: 40px; max-width: 640px; }
.message h1 { font-size: clamp(2rem, 7vw, 2.6rem); text-transform: uppercase; }
.message form { margin: 18px 0; }
.message .btn-ghost { margin-top: 4px; }
.msg-event { margin: 20px 0; padding: 14px 16px; background: #0f1524; border-radius: 10px; font-size: .95rem; line-height: 1.6; color: #c9c6bd; }

/* admin */
.admin { padding-top: 24px; padding-bottom: 60px; }
.admin h1 { font-size: 2rem; }
.admin h2 { font-size: 1.3rem; margin-top: 30px; }
.flash { background: rgba(91,209,139,.1); border: 1px solid rgba(91,209,139,.4); padding: 10px 14px; border-radius: 9px; }
.flash.warn { background: rgba(226,97,90,.1); border-color: rgba(226,97,90,.45); }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 130px; }
.stats b { font: 600 1.6rem var(--head); color: var(--gold); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { background: var(--bg-2); font-weight: 600; color: var(--muted); }
tr.st-pending td { color: #e6d6a8; }
tr.st-cancelled td, tr.st-expired td { color: var(--muted); text-decoration: line-through; }
.acts form { display: inline; }
.acts button { font: inherit; font-size: .8rem; background: #1d2742; color: var(--text); border: 1px solid #33405f; border-radius: 6px; padding: 4px 8px; cursor: pointer; margin: 0 2px 2px 0; }
.acts button:hover { border-color: var(--gold); }
.wipe { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.wipe label { flex: 1 1 260px; }
.wipe input { margin-top: 6px; }
code { background: #0d1322; padding: 1px 5px; border-radius: 4px; }

@media (min-width: 640px) {
  .card { padding: 28px 26px; }
}
@media (min-width: 920px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
  .hero-form { position: relative; top: 0; }
  .about-grid { grid-template-columns: 120px 1fr; gap: 36px; }
  .final-grid { grid-template-columns: 1fr 420px; gap: 48px; }
  section { padding: 72px 0; }
  section.wrap { padding: 72px 16px; }
  section.wrap + section.wrap { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sure-opt input:focus { outline: none; }
.sure-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }
