:root {
  font-family: "Open Sans", sans-serif;
  color: #eeefe9;
  background: #111310;
  color-scheme: dark;
  --navy: #eeefe9;
  --blue: #d2f85a;
  --blue-dark: #b7de43;
  --orange: #d2f85a;
  --line: #34382f;
  --muted: #a1a69a;
  --surface: #1a1d17;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: #d2f85a; color: #111310; }
[hidden] { display: none !important; }
.topbar {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px max(28px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; }
.brand-word { font-size: 1.4rem; font-weight: 750; letter-spacing: -.055em; }
.brand-word span { color: var(--blue); }
.topbar nav { display: flex; align-items: center; gap: 5px; }
.topbar nav a, .nav-form button {
  display: inline-flex; align-items: center; min-height: 42px; padding: 10px 15px;
  border: 0; border-radius: 0; background: transparent; color: var(--muted);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.topbar nav a:hover, .nav-form button:hover, .topbar nav a[aria-current="page"] { color: #eeefe9; background: #24281f; }
.topbar nav .nav-join { margin-left: 12px; background: var(--blue); color: #171b0f; }
.topbar nav .nav-join:hover { background: #e0ff85; color: #171b0f; }
.nav-form { margin: 0; }
main { width: min(1200px, calc(100% - 56px)); min-height: calc(100vh - 169px); margin: 0 auto; padding: 55px 0 72px; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; padding: 28px max(28px, calc((100vw - 1200px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer > span { margin-right: auto; color: #eeefe9; font-weight: 650; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
h1 { margin: 8px 0 16px; font-size: clamp(2.4rem, 5.7vw, 4.8rem); line-height: 1.04; letter-spacing: -.065em; font-weight: 650; }
.page-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--blue); font: 11px "Open Sans", sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.text-link { padding-bottom: 6px; border-bottom: 1px solid #74796b; font-size: .86rem; white-space: nowrap; }
.category-rail { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 18px; margin-bottom: 9px; scrollbar-color: #555d48 transparent; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; flex: none; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 0; color: #bcc2b2; font-size: .78rem; }
.chip:hover { border-color: #7e886c; color: #fff; }
.chip.selected { background: #272f1b; border-color: #8aa63d; color: #e2f7b4; }
.pill { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 0; background: #323c22; color: #d2f85a; font: 9px "Open Sans", sans-serif; letter-spacing: .07em; }
.pill.chaos { background: #3c2e22; color: #f5b878; }
.pill.unhinged { background: #332d3e; color: #c9b9e9; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr); gap: 20px; }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; margin-bottom: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.card h2 { margin: 0 0 24px; font-size: 1.05rem; font-weight: 600; letter-spacing: -.025em; }
.card p { color: var(--muted); line-height: 1.65; }
.join-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; min-height: 0; padding: 38px; background: #d2f85a; color: #18200c; border-color: #d2f85a; }
.join-card h2 { max-width: 440px; margin: 0; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.02; font-weight: 650; letter-spacing: -.06em; }
.join-card p { max-width: 380px; margin: 19px 0 26px; color: #404d25; font-size: .95rem; }
.join-card .button.primary { background: #18200c; border-color: #18200c; color: #efffc9; }
.join-card .button.primary:hover { background: #303e19; }
.scoring-card { padding: 28px; }
.scoring-card h2 { color: var(--muted); font: 11px "Open Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.lane { display: grid; grid-template-columns: 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.lane b { font-size: .92rem; font-weight: 600; }
.lane span { margin-top: 5px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.arena-card h2 { font-size: 1.8rem; }
.question { margin: 0 0 22px; }
.duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.candidate { min-width: 0; margin: 0; text-align: center; }
.candidate button { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; min-height: 260px; padding: 18px; border: 1px solid #49503e; border-radius: 0; background: #22271d; color: #eeefe9; transition: border-color .15s, background .15s; }
.candidate button:hover { border-color: var(--blue); background: #2b3420; }
.candidate strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.candidate small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.candidate small:last-child { margin-top: auto; color: var(--blue); }
.candidate-photo { width: 100%; aspect-ratio: 1; max-height: 220px; object-fit: cover; border-radius: 0; }
.candidate .report-link { display: inline-block; margin-top: 10px; }
.report-link { color: var(--muted); font-size: .7rem; }
.profile-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.profile-gallery img { width: 150px; height: 180px; object-fit: cover; border-radius: 0; }
.field-hint { color: var(--muted); font-size: .8rem; font-weight: normal; }
.avatar { display: grid; place-items: center; width: 90px; height: 110px; border-radius: 0; background: #39452a; color: #d2f85a; font-size: 3rem; font-weight: 600; }
.versus { color: var(--muted); font: 11px "Open Sans", sans-serif; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid #525a46; border-radius: 0; background: #292f22; color: #eeefe9; font-size: .85rem; font-weight: 600; }
.button:hover { background: #363f2b; color: #fff; }
.button.primary { background: var(--blue); border-color: var(--blue); color: #18200c; }
.button.primary:hover { background: #e0ff85; color: #18200c; }
.button.quiet { background: transparent; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.big-score { color: var(--blue); font-size: 5rem; font-weight: 600; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.state { color: var(--blue) !important; }
.badge { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.badge small { margin-right: auto; color: var(--muted); }
.badge a { font-size: .85rem; }
.leaderboard { margin: 0; padding: 0; list-style: none; }
.leaderboard li { display: flex; align-items: center; gap: 15px; padding: 19px 0; border-top: 1px solid var(--line); }
.leaderboard strong { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; font-weight: 550; }
.leaderboard small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.rank { min-width: 28px; color: var(--muted); font: 12px "Open Sans", sans-serif; }
.leaderboard li:first-child .rank { color: var(--blue); }
.score { margin-left: auto; color: var(--blue); font: 1.2rem "Open Sans", sans-serif; }
.leaderboard small + .score { margin-left: 10px; }
.empty { padding: 22px 0; color: var(--muted); }
.category-row, .drop-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.category-row strong, .drop-row strong { flex: 1; font-weight: 550; }
.category-row span:last-child, .drop-row span:nth-child(3) { color: var(--blue); font: .8rem "Open Sans", sans-serif; }
.drop-row small { width: 100%; color: var(--muted); }
.auth-wrap { display: grid; place-items: center; min-height: 65vh; }
.auth-card { width: min(560px, 100%); padding: 36px; }
.auth-card h1 { margin-bottom: 30px; font-size: 2.5rem; }
.auth-card form, .admin-form, .edit-form { display: grid; gap: 20px; }
.auth-card label, .admin-form label, .edit-form label { display: grid; gap: 9px; color: #d0d5c7; font-size: .85rem; font-weight: 500; }
.auth-card input, .auth-card select, .admin-form input, .admin-form select, .admin-form textarea, .edit-form input, .edit-form select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid #4a5141; border-radius: 0; background: #11150e; color: #eeefe9; }
textarea { resize: vertical; }
.auth-card .fineprint { font-size: .8rem; }
.signup-notice { margin: 0 0 20px; font-size: .87rem; line-height: 1.65; }
.signup-notice a, .check a, .legal-page a, .card p a { text-decoration: underline; text-underline-offset: 3px; }
.check { display: block !important; line-height: 1.6; }
.check input { width: 16px !important; min-height: 16px !important; margin: 0 7px 0 0; vertical-align: middle; accent-color: var(--blue); }
.account-actions { display: grid; justify-items: start; gap: 12px; }
.legal-page { max-width: 780px; margin: 0 auto; padding: 36px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.legal-page h1 { margin-top: 0; font-size: 3rem; }
.legal-page h2 { margin: 32px 0 9px; font-size: 1.2rem; }
.legal-page p, .legal-page li { color: #b9bfb0; line-height: 1.75; }
.legal-date { color: var(--muted); font-size: .85rem; }
.admin-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.admin-row strong { flex: 1; }
.admin-row form:not(.edit-form) { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-row button, .edit-form button { border: 1px solid #525a46; border-radius: 0; background: #292f22; color: #eeefe9; padding: 9px 12px; }
.admin-row details { width: 100%; }
.admin-row summary { color: var(--blue); cursor: pointer; }
.edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 0; }
.share-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 700px; min-height: 460px; margin: 30px auto; padding: 42px; border: 1px solid #d2f85a; border-radius: 0; background: #d2f85a; color: #18200c; }
.share-card .eyebrow { color: #405024; }
.share-card h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.share-card h2 { margin: 12px 0; font-size: 1.7rem; }
.share-card p { letter-spacing: .1em; }
@media (max-width: 850px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 16px; padding: 20px 28px; }
  .topbar nav { width: 100%; overflow-x: auto; }
  .main-grid, .board-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
}
@media (max-width: 520px) {
  main { width: calc(100% - 32px); padding: 32px 0 44px; }
  .topbar { padding: 18px 16px 12px; gap: 14px; }
  .topbar nav { gap: 1px; }
  .topbar nav a, .nav-form button { padding: 10px; font-size: .76rem; }
  .topbar nav .nav-join { margin-left: 3px; }
  .brand-word { font-size: 1.3rem; }
  .page-head { flex-direction: column; margin-bottom: 26px; gap: 14px; }
  h1 { font-size: 2.8rem; }
  .page-head p { font-size: .85rem; }
  .card { padding: 22px; }
  .join-card { padding: 26px; }
  .join-card h2 { font-size: 2.65rem; }
  .duel { gap: 7px; }
  .candidate button { min-height: 220px; padding: 10px; gap: 10px; }
  .candidate strong { font-size: .9rem; }
  .candidate small { font-size: .73rem; }
  .candidate-photo { max-height: 145px; }
  .avatar { width: 65px; height: 85px; }
  .report-link { font-size: .65rem; }
  .edit-form { grid-template-columns: 1fr; }
  .share-card { min-height: 400px; padding: 27px; }
  .legal-page { padding: 22px; }
  footer { gap: 18px; padding: 24px 16px; }
  footer > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

ul { list-style: none; padding-left: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Display typography uses the font's native 400 weight. */
h1, h2, h3, .brand-word, footer > span, .card h2, .join-card h2,
.scoring-card h2, .auth-card h1, .legal-page h1, .legal-page h2 {
  font-family: "Special Gothic Expanded One", sans-serif;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.brand-word { font-size: 1.1rem; letter-spacing: -.04em; }
h1 { font-size: clamp(2rem, 4.5vw, 4rem); }
.join-card h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.score, .rank, .big-score { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  h1, .auth-card h1, .legal-page h1 { font-size: 2rem; }
  .join-card h2 { font-size: 1.75rem; }
  .brand-word { font-size: 1rem; }
}

.vote-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.vote-feedback { color: var(--blue); font-weight: 700; }
.vote-meta span:only-child { margin-left: auto; }
.standings-card .leaderboard { margin-bottom: 24px; }
.standings-card .leaderboard li { gap: 12px; }
.standings-card .leaderboard a { min-width: 0; }
.standings-card .text-link { display: inline-block; margin-top: 10px; }

.home-main { padding-top: 26px; }
.home-main .page-head { margin-bottom: 18px; }
.home-main .page-head h1 { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3.3rem); }
.home-main .page-head p { margin: 0; }
.home-main .category-rail { padding-bottom: 9px; margin-bottom: 3px; }
.home-main .card { padding: 22px; }
.home-main .card h2 { margin-bottom: 14px; }
.home-main .join-card { padding: 38px; }
.home-main .vote-meta { padding-bottom: 9px; margin-bottom: 13px; }
.home-main .question { margin-bottom: 13px; }
.home-main .candidate button { min-height: 215px; gap: 8px; }
.home-main .candidate-photo { max-height: 150px; }
.home-main .avatar { width: 76px; height: 96px; }
@media (max-width: 520px) {
  .home-main { padding-top: 25px; }
  .home-main .page-head { margin-bottom: 18px; }
  .home-main .card { padding: 18px; }
  .home-main .join-card { padding: 26px; }
  .home-main .candidate button { min-height: 195px; }
  .home-main .candidate-photo { max-height: 110px; }
}
