:root {
  --bg: #08090a;
  --panel: #0d0f11;
  --panel2: #111417;
  --rule: #2b2e31;
  --rule2: #3a3e42;
  --cream: #eee9dd;
  --dim: #c8c1b4;
  --muted: #868c91;
  --amber: #e8a31a;
  --green: #28bb68;
  --red: #e05c50;
  --blue: #1d4f91;
  --blue2: #14396a;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.boot { padding: 40px; color: var(--muted); font-size: 14px; font-weight: 900; letter-spacing: 0; }
.shell { max-width: 1180px; min-height: 100vh; margin: 0 auto; border-right: 1px solid var(--rule); border-left: 1px solid var(--rule); }

.mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 2px solid var(--cream);
}
.brandstack { min-width: 0; }
.brandmark { font-size: 15px; font-weight: 1000; letter-spacing: 0; }
.brandmark em { color: var(--amber); font-style: normal; }
.title {
  max-width: 820px;
  margin-top: 8px;
  font-size: 46px;
  font-weight: 1000;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}
.headeractions { display: flex; align-items: center; gap: 10px; }
.mobilenav { display: none; }

.accountwrap { position: relative; flex: 0 0 auto; }
.account {
  padding: 11px 13px;
  border: 1px solid var(--rule2);
  background: transparent;
  color: var(--cream);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
  white-space: nowrap;
}
.account.signed { border-color: var(--green); color: var(--green); }
.accountpanel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  border: 1px solid var(--cream);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.accountidentity { padding: 14px; border-bottom: 1px solid var(--rule); }
.accountidentity span { display: block; color: var(--muted); font-size: 11px; font-weight: 1000; letter-spacing: 0; }
.accountidentity b { display: block; margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.accountmenu-action {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--cream);
  text-align: left;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
}
.accountmenu-action:hover, .accountmenu-action:focus { background: var(--panel2); }
.accountmenu-action.signout { border-bottom: 0; color: var(--red); }

.nav { display: flex; overflow: auto; border-bottom: 1px solid var(--rule); }
.nav button {
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
  white-space: nowrap;
}
.nav button.active { background: var(--panel2); color: var(--cream); }

.chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  text-transform: uppercase;
}
.chrome-status { font-size: 14px; font-weight: 1000; line-height: 1.2; letter-spacing: 0; }
.chrome .votes { color: var(--green); }
.chrome-cutoff { display: flex; align-items: baseline; gap: 9px; text-align: right; white-space: nowrap; }
.chrome-cutoff strong { color: var(--dim); font-size: 13px; line-height: 1.2; letter-spacing: 0; }
.chrome-cutoff small { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0; }

.startpanel { padding: 30px 22px 26px; border-bottom: 2px solid var(--rule); }
.startlabel, .eyebrow { color: var(--amber); font-size: 12px; font-weight: 1000; letter-spacing: 0; text-transform: uppercase; }
.startlabel { display: flex; align-items: center; gap: 12px; }
.startstatus { display: none; }
.starttitle {
  max-width: 850px;
  margin: 11px 0 14px;
  font-size: 56px;
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}
.title-mobile { display: none; }
.startcopy { max-width: 760px; color: var(--dim); font-size: 18px; line-height: 1.45; }
.startcopy b { color: var(--cream); }
.startactions { display: grid; max-width: 860px; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.startbtn {
  min-height: 64px;
  padding: 14px 15px;
  border: 2px solid var(--cream);
  background: var(--cream);
  color: #111;
  text-align: left;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0;
}
.startbtn.alt { background: transparent; color: var(--cream); }
.startbtn small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: 0; opacity: 0.78; }
.startbtn:disabled { border-color: var(--rule2); background: transparent; color: var(--muted); cursor: not-allowed; }
.startmeta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0; }
.startmeta b { color: var(--cream); }

.champion {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-bottom: 2px solid var(--rule);
}
.champnum { font-size: 58px; font-weight: 1000; line-height: 0.8; }
.championbody { min-width: 0; }
.champlabel { color: var(--amber); font-size: 12px; font-weight: 1000; letter-spacing: 0; }
.champname { margin-top: 5px; font-size: 38px; font-weight: 1000; line-height: 0.98; text-transform: uppercase; }
.champmetric { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.champmetric b { font-size: 20px; }
.champmetric span { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.action {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
}
.action.primary { background: var(--cream); color: #111; }
.action.amber { border-color: var(--amber); color: var(--amber); }
.action:disabled { border-color: var(--rule2); background: transparent; color: var(--muted); cursor: not-allowed; }

.boardhead, .row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 126px 88px; align-items: center; }
.boardhead { padding: 11px 18px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 11px; font-weight: 1000; letter-spacing: 0; }
.row { min-height: 70px; padding: 0 18px; border-bottom: 1px solid var(--rule); }
.row:hover { background: #0c0e10; }
.rank { font-size: 18px; font-weight: 1000; }
.thingopen { padding: 12px 0; border: 0; background: transparent; color: inherit; text-align: left; }
.thing { font-size: 20px; font-weight: 1000; text-transform: uppercase; }
.thingmeta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.rowscore { text-align: right; }
.rowscore b { font-size: 19px; }
.rowscore small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: 0; }
.rowvote { justify-self: end; min-height: 38px; padding: 8px 10px; border: 1px solid var(--cream); background: transparent; color: var(--cream); font-size: 12px; font-weight: 1000; letter-spacing: 0; }
.rowvote:hover { background: var(--cream); color: #111; }
.rowvote:disabled { border-color: var(--rule2); background: transparent; color: var(--muted); cursor: default; }

.page { padding: 28px 22px; }
.page h2 { margin: 9px 0 17px; font-size: 58px; line-height: 0.92; letter-spacing: 0; text-transform: uppercase; }
.pagecopy { max-width: 760px; color: var(--dim); font-size: 17px; line-height: 1.55; }
.section { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--rule); }
.section h3 { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.statsgrid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border: 1px solid var(--rule); }
.stat { padding: 15px; border-right: 1px solid var(--rule); }
.stat:last-child { border: 0; }
.stat b { display: block; font-size: 25px; }
.stat span { color: var(--muted); font-size: 11px; letter-spacing: 0; }

.searchbox { display: flex; gap: 10px; margin: 18px 0; }
.searchbox input { min-width: 0; flex: 1; padding: 13px; border: 1px solid var(--rule2); background: #090b0c; color: var(--cream); font-size: 17px; }
.searchbox button { min-height: 46px; padding: 10px 16px; border: 1px solid var(--cream); background: var(--cream); color: #111; font-size: 12px; font-weight: 1000; }
.searchsummary { margin: 0 3px 10px; color: var(--muted); font-size: 12px; font-weight: 900; }
.searchresults { border-top: 1px solid var(--rule); }
.searchitem { display: flex; width: 100%; justify-content: space-between; gap: 14px; padding: 15px 3px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--cream); text-align: left; }
.searchitem b { font-size: 16px; text-transform: uppercase; }
.searchitem span { color: var(--muted); font-size: 12px; }
.searchnomination { padding-bottom: 14px; }
.searchnomination .notice { margin-bottom: 12px; }
.searchmore { display: block; margin: 16px auto 0; }

.notice, .error { margin: 12px 0; padding: 12px 13px; border: 1px solid var(--rule2); font-size: 14px; line-height: 1.45; }
.notice { color: var(--green); }
.error { color: var(--red); }

.emptyhistory { padding: 44px 10px; text-align: center; }
.plaque { position: relative; display: flex; width: min(330px, 78vw); aspect-ratio: 1; align-items: center; justify-content: center; margin: 0 auto; padding: 45px; border: 7px solid #e7e7df; border-radius: 50%; background: radial-gradient(circle at 42% 34%, #2a68b4 0, #1d4f91 38%, #14396a 73%, #0e2d57 100%); box-shadow: 0 0 0 3px #1d4f91, 0 0 0 7px #e7e7df, 0 14px 36px rgba(0, 0, 0, 0.42); color: white; text-align: center; }
.plaque::before, .plaque::after { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #d7d7d0; box-shadow: inset 0 0 0 2px #94948f; content: ""; }
.plaque::before { top: 28px; left: 50%; transform: translateX(-50%); }
.plaque::after { bottom: 28px; left: 50%; transform: translateX(-50%); }
.plaqueinner { font-family: Georgia, serif; }
.plaqueinner b { display: block; font-size: 25px; line-height: 1.08; text-transform: uppercase; }
.plaqueinner span { display: block; margin-top: 12px; font-size: 13px; line-height: 1.4; }
.historynote { max-width: 590px; margin: 28px auto 0; color: var(--dim); font-size: 16px; line-height: 1.5; }

.modalback { position: fixed; z-index: 50; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, 0.78); }
.modal { width: min(500px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 24px; border: 2px solid var(--cream); background: var(--panel); }
.modal h2 { margin: 0 0 11px; font-size: 38px; line-height: 0.94; text-transform: uppercase; }
.modal p { color: var(--dim); font-size: 16px; line-height: 1.5; }
.tabs { display: flex; margin: 18px 0; border: 1px solid var(--rule2); }
.tabs button { min-height: 42px; flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 1000; letter-spacing: 0; }
.tabs button.active { background: var(--cream); color: #111; }
.modal label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 11px; font-weight: 1000; letter-spacing: 0; }
.modal input { width: 100%; padding: 12px; border: 1px solid var(--rule2); background: #090b0c; color: var(--cream); font-size: 16px; }
.textbtn { display: block; margin: 11px 0 0 auto; border: 0; background: transparent; color: var(--dim); font-size: 12px; font-weight: 1000; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.modalactions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.modalactions button { min-height: 42px; padding: 10px 13px; border: 1px solid var(--cream); background: var(--cream); color: #111; font-size: 12px; font-weight: 1000; letter-spacing: 0; }
.modalactions button:disabled { border-color: var(--rule2); background: transparent; color: var(--muted); cursor: not-allowed; }
.modalactions .alt { background: transparent; color: var(--cream); }

.nominationmodal { width: min(560px, 100%); }
.nominationhistory { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.nominationhistory h3 { margin: 0 0 8px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.nominationrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.nominationrow > div { min-width: 0; }
.nominationrow b { display: block; font-size: 15px; text-transform: uppercase; overflow-wrap: anywhere; }
.nominationrow span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: 0; }
.nominationstatus { flex: 0 0 auto; color: var(--amber); font-size: 11px; letter-spacing: 0; }
.status-hold, .status-rejected { color: var(--red); }
.status-approved, .status-activated { color: var(--green); }
.nominationempty { padding: 12px 0; color: var(--muted); font-size: 14px; }

.toast { position: fixed; z-index: 60; right: 18px; bottom: 18px; padding: 12px 14px; background: var(--cream); color: #111; box-shadow: 0 7px 24px #000; font-size: 12px; font-weight: 1000; letter-spacing: 0; }
.footer { margin-top: 32px; padding: 28px 22px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; letter-spacing: 0; }

@media (max-width: 700px) {
  .shell { border: 0; }
  .mast { min-height: 58px; padding: 13px 16px; align-items: center; }
  .brandmark { font-size: 13px; }
  .title { display: none; }
  .headeractions { gap: 8px; }
  .desktopnav { display: none; }
  .mobilenav { position: relative; display: block; }
  .mobilenav summary { min-height: 38px; padding: 10px 9px; border: 1px solid var(--rule2); color: var(--cream); cursor: pointer; font-size: 11px; font-weight: 1000; letter-spacing: 0; list-style: none; }
  .mobilenav summary::-webkit-details-marker { display: none; }
  .mobilenav[open] summary { border-color: var(--amber); color: var(--amber); }
  .mobilemenu { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: min(280px, calc(100vw - 32px)); border: 1px solid var(--cream); background: var(--panel); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
  .mobilemenu button { display: block; width: 100%; min-height: 46px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--cream); text-align: left; font-size: 13px; font-weight: 1000; letter-spacing: 0; }
  .mobilemenu button:last-child { border-bottom: 0; }
  .mobilemenu button.active { background: var(--panel2); color: var(--amber); }
  .account { min-height: 38px; padding: 9px 10px; font-size: 11px; }
  .accountpanel { top: calc(100% + 7px); width: min(300px, calc(100vw - 32px)); }
  .chrome { display: none; }

  .startpanel { padding: 22px 16px 18px; }
  .startlabel { justify-content: space-between; gap: 8px; font-size: 12px; }
  .startstatus { display: inline; color: var(--green); font-size: 12px; }
  .starttitle { margin: 9px 0 12px; font-size: 30px; line-height: 1; }
  .title-desktop { display: none; }
  .title-mobile { display: inline; }
  .startcopy { font-size: 17px; line-height: 1.42; }
  .startactions { display: block; margin-top: 18px; }
  .startbtn { display: block; width: 100%; min-height: 52px; padding: 13px; font-size: 14px; }
  .startbtn small { display: none; }
  .startbtn.alt { min-height: 44px; padding: 13px 0 10px; border-width: 0 0 1px; text-align: left; font-size: 13px; }
  .startmeta { display: none; }

  .champion { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .champnum { font-size: 42px; }
  .champlabel { font-size: 12px; }
  .champname { font-size: 27px; line-height: 1; }
  .champmetric { margin-top: 7px; }
  .champmetric b { font-size: 18px; }
  .champmetric span { font-size: 11px; }
  .champion .actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 13px; }
  .champion .action { min-height: 44px; padding: 10px; font-size: 12px; }
  .championback { display: none; }

  .boardhead, .row { grid-template-columns: 28px minmax(0, 1fr) 58px 66px; }
  .boardhead { padding: 10px 16px; font-size: 11px; }
  .row { min-height: 76px; padding: 0 16px; }
  .rank { font-size: 16px; }
  .thingopen { padding: 12px 0; }
  .thing { font-size: 16px; }
  .thingmeta { margin-top: 4px; font-size: 12px; }
  .rowscore b { font-size: 16px; }
  .rowscore small { margin-top: 2px; font-size: 11px; }
  .rowvote { min-height: 42px; padding: 8px 7px; font-size: 11px; }

  .page { padding: 24px 16px; }
  .page h2 { margin-top: 8px; font-size: 38px; line-height: 0.98; }
  .pagecopy { font-size: 17px; }
  .section h3 { font-size: 12px; }
  .statsgrid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--rule); }
  .stat:nth-child(2) { border-right: 0; }
  .searchbox { flex-direction: column; }
  .searchbox button { width: 100%; font-size: 13px; }
  .searchitem { align-items: flex-start; flex-direction: column; gap: 5px; }
  .searchitem b { font-size: 16px; }
  .searchitem span { font-size: 13px; }

  .modalback { padding: 14px; }
  .modal { padding: 20px; }
  .modal h2 { font-size: 32px; }
  .modal p { font-size: 16px; }
  .tabs button, .modalactions button { font-size: 12px; }
  .modal label { font-size: 11px; }
  .textbtn { font-size: 12px; }
  .notice, .error { font-size: 14px; }
  .nominationrow b { font-size: 15px; }
  .nominationrow span, .nominationstatus { font-size: 11px; }
  .footer { padding: 24px 16px; font-size: 11px; }
}
