/* AI Wars: black, mint and green. */
:root {
  color-scheme: dark;
  --bg: #090d0b; --panel: #111a14; --ink: #edf6ee; --muted: #a4b6a8;
  --line: #304437; --anti: #b8e9c3; --pro: #53df83;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button, a, input, summary { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:is(button,a,input,summary):focus-visible { outline: 2px solid var(--pro); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: var(--bg); z-index: 5; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
header, main, footer { width: min(100% - 80px, 960px); margin: auto; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 28px 0 23px; border-bottom: 2px solid var(--ink); }
.brand { font: normal 30px/1.1 Georgia, serif; letter-spacing: -1px; text-decoration: none; }
.domain { font: 11px Arial, sans-serif; color: var(--muted); margin-left: 18px; letter-spacing: 0; }
header > a:last-child { font-size: 13px; }
.arena { padding-top: 23px; }
.eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.issue { margin-left: 8px; }
.status { font-size: 11px; letter-spacing: 0; text-transform: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h1 { font: normal clamp(39px, 6vw, 66px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -2.2px; margin: 32px 0 20px; }
.intro { font-size: 16px; line-height: 1.75; max-width: 700px; color: var(--muted); margin: 0; }
.intro strong { font-weight: normal; color: var(--ink); }
.pot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 24px; padding: 24px 0 27px; margin-top: 30px; border-top: 1px solid var(--line); }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); grid-column: 1/-1; }
.pot > strong { font: normal clamp(44px,5vw,56px)/1.15 Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -1.8px; }
.pot > .muted { font-size: 12px; padding-bottom: 8px; text-align: right; color: var(--muted); }
.score-labels { display: flex; justify-content: space-between; margin-bottom: 11px; gap: 12px; }
.score-labels > div { display: flex; align-items: baseline; gap: 12px; }
.score-labels > div:last-child { flex-direction: row-reverse; }
.score-labels span { font-size: 13px; }
.score-labels strong { font-size: 16px; font-weight: normal; font-variant-numeric: tabular-nums; }
.anti-text { color: var(--anti); } .pro-text { color: var(--pro); }
.meter { display: flex; position: relative; height: 15px; overflow: hidden; }
.anti-fill { background: var(--anti); width: 50%; transition: width .4s; }
.pro-fill { background: var(--pro); flex: 1; }
.needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: var(--bg); transition: left .4s; }
.meter-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin: 10px 0 28px; font-variant-numeric: tabular-nums; }
.meter-foot > :nth-child(2) { text-align: center; }
.causes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cause { display: flex; flex-direction: column; border-top: 1px solid var(--anti); padding-top: 17px; }
.cause.pro { border-color: var(--pro); }
.cause-heading { display: flex; justify-content: space-between; align-items: baseline; }
.cause-heading > span { font: 11px/1 monospace; color: var(--muted); }
.cause h2 { font: normal 27px/1.2 Georgia, serif; margin: 0; color: var(--anti); }
.cause.pro h2 { color: var(--pro); }
.cause p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 12px 0 19px; }
.cause p a { color: var(--ink); }
.choose { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--anti); background: transparent; color: var(--anti); border-radius: 0; padding: 12px 15px; font-size: 13px; min-height: 46px; transition: background .15s; text-align: left; }
.choose::after { content: '\2192'; font-size: 20px; line-height: 1; }
.pro .choose { color: var(--pro); border-color: var(--pro); }
.choose:hover { background: #1d3425; } .pro .choose:hover { background: #153b24; }
.affiliation { font-size: 11px; color: var(--muted); margin: 17px 0 26px; }
.countdown { border-top: 1px solid var(--line); padding: 18px 0; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.countdown > span, .countdown small { font-size: 12px; color: var(--muted); }
.countdown strong { font-size: 21px; font-weight: normal; font-variant-numeric: tabular-nums; }
.countdown small { margin-left: auto; }
.round-line { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 13px; }
.round-line span:last-child { text-align: right; }
.notice { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.section-heading { margin: 39px 0 17px; }
.section-heading h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: normal 25px/1.3 Georgia, serif; margin: 0; }
.section-heading h2 span { font: 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
th { text-align: left; font-size: 11px; font-weight: normal; color: var(--muted); padding: 11px 8px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
th:first-child { width: 10%; } th:nth-child(2) { width: 39%; } th:nth-child(3) { width: 21%; }
td { padding: 16px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
td:first-child { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
th:last-child, td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
td.empty { text-align: center; padding: 32px 8px; color: var(--muted); font-size: 13px; }
.badge { font-size: 12px; }
.rules { margin-top: 31px; scroll-margin-top: 20px; }
details { border-block: 1px solid var(--line); padding: 19px 0; }
summary { font-size: 13px; cursor: pointer; }
.details-body { padding-top: 25px; max-width: 720px; }
.rules p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; }
.details-body strong { color: var(--ink); }
#contact-line:empty { display: none; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 36px; font-size: 11px; color: var(--muted); }
dialog { width: min(100% - 28px, 510px); max-height: 90dvh; background: var(--panel); color: var(--ink); border: 1px solid var(--ink); border-top-width: 3px; border-radius: 0; padding: 28px 30px; }
dialog::backdrop { background: #000000b3; }
body:has(dialog[open]) { overflow: hidden; }
dialog h2 { font: normal 30px/1.15 Georgia, serif; margin: 17px 20px 27px 0; letter-spacing: -.6px; }
.close { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; background: none; border: 0; color: var(--muted); font-size: 28px; }
fieldset { padding: 0; border: 0; margin: 0 0 21px; min-width: 0; }
legend { width: 100%; font-size: 13px; margin-bottom: 10px; padding: 0; }
.side-options { display: flex; gap: 8px; }
.side-options label { flex: 1; border: 1px solid var(--line); padding: 12px 8px; font-size: 12px; cursor: pointer; }
.side-options label:has(:checked) { border-color: var(--ink); background: #203b29; }
input[type=radio], input[type=checkbox] { accent-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; font-size: 13px; }
.field small { color: var(--muted); font-size: 11px; }
input:not([type=radio]):not([type=checkbox]) { width: 100%; border: 1px solid #627969; border-radius: 0; padding: 12px; background: var(--panel); color: var(--ink); font-size: 16px; }
.amount-range { float: right; color: var(--muted); font-size: 11px; }
.amounts { display: flex; gap: 9px; margin-bottom: 11px; }
.amounts button { flex: 1; border: 1px solid #627969; border-radius: 0; background: transparent; color: var(--ink); padding: 11px 5px; }
.amounts button.selected { border-color: var(--ink); background: var(--ink); color: var(--panel); }
.amount-label { position: relative; margin: 0; }
.amount-label span { position: absolute; left: 13px; top: 13px; }
.amount-label input { padding-left: 29px!important; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.consent input { margin-top: 5px; flex-shrink: 0; width: 16px; height: 16px; }
.pay { width: 100%; min-height: 48px; padding: 13px; background: var(--ink); color: var(--panel); border: 0; border-radius: 0; font-size: 14px; }
.fine { font-size: 11px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-message { font-size: 12px; color: var(--muted); line-height: 1.6; }
.sandbox-banner { padding: 12px 16px; border: 1px solid var(--line); background: #253a20; font-size: 14px; }
.sandbox-banner[hidden] { display: none; }
@media(max-width:640px) {
  header,main,footer { width: calc(100% - 36px); }
  header { padding: 22px 0 18px; } .brand { font-size: 27px; } .domain { display: none; }
  .arena { padding-top: 20px; } .eyebrow { font-size: 10px; gap: 8px; } .issue { display: none; }
  h1 { margin: 28px 0 18px; letter-spacing: -1.6px; }
  .intro { font-size: 14px; line-height: 1.8; }
  .pot { margin-top: 25px; padding: 21px 0 23px; gap: 5px; }
  .pot > .muted { grid-column: 1/-1; text-align: left; padding: 0; font-size: 11px; }
  .causes { gap: 18px; } .cause h2 { font-size: 24px; } .cause p { font-size: 12px; min-height: 66px; }
  .choose { font-size: 12px; padding: 11px 9px; } .choose::after { display: none; }
  .meter-foot { font-size: 10px; gap: 8px; } .score-labels > div { gap: 7px; }
  .countdown { gap: 6px 14px; } .countdown small { width: 100%; margin: 0; }
  .round-line { font-size: 10px; } .section-heading h2 { font-size: 22px; }
  th,td { padding-inline: 4px; } th:first-child { width: 12%; } th:nth-child(2) { width: 35%; }
  dialog { padding: 26px 20px; } .side-options { flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }

.brand, .status, .pot > strong { color: var(--pro); }
.pay, .amounts button.selected { background: var(--pro); color: #08130c; }
.pay:hover:not(:disabled) { background: #86efa8; }
input::placeholder { color: #93a497; opacity: 1; }
::selection { background: #53df83; color: #08130c; }

.meter-foot { justify-content: center; }
.round-line { justify-content: flex-end; }
.notice:empty { display: none; }
.details-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.causes .cause p { min-height: 0; }
