@font-face { font-family: Anton; src: url("fonts/anton-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Barlow; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Leonida at dusk: night sky, sunset pink, Vice teal, wanted-star gold. */
:root {
  --night: #140a26;
  --night-up: #1f1138;
  --line: #3b2763;
  --text: #fbeefb;
  --muted: #d2c0e0;
  --pink: #ff4fa3;
  --pink-hover: #ff74b8;
  --teal: #3de0d2;
  --gold: #ffc857;
  --dim: #7d68a3;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --body: Barlow, "Segoe UI", system-ui, sans-serif;
  --tone: var(--pink);
  color-scheme: dark;
}
:root[data-verdict="sortof"] { --tone: var(--gold); }
:root[data-verdict="yes"] { --tone: var(--teal); }

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* else a class's display (.pc-form, .card-list a) shows what the card search hid */
body { margin: 0; background: var(--night); color: var(--text); font: 18px/1.45 var(--body); -webkit-text-size-adjust: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 2; padding: 10px 16px; background: var(--gold); color: var(--night); font-weight: 600; }

/* Header, sitting over the sky */
.bar { position: absolute; inset: 0 0 auto; z-index: 1; }
.bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; text-decoration: none; }
.bar nav { display: flex; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; font-weight: 600; text-decoration: none; }
.bar nav a.nav-cta { margin-left: 6px; padding-inline: 14px; border-radius: 6px; background: var(--pink); color: var(--night); }
.bar nav a.nav-cta:hover { background: var(--pink-hover); color: var(--night); }

/* Hero: the answer, over a sunset */
.hero { position: relative; overflow: hidden; padding: 120px 0 clamp(190px, 25vw, max(310px, 21.6vw)); background: linear-gradient(180deg, #1c0a3a 0%, #3d1263 28%, #8f2470 55%, #e2456c 76%, #ff9a5c 100%); }
.hero h1 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 600; }
.verdict { margin-top: 6px; font-family: var(--display); font-size: clamp(4.75rem, 19vw, 12rem); line-height: .95; text-transform: uppercase; text-shadow: .055em .055em 0 var(--tone); }
.lede { max-width: 40ch; margin-top: 24px; font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 600; text-wrap: pretty; }
.stamp { margin-top: 12px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; font-weight: 600; }
/* Past 1440px wide the art (4.8:1) needs more than 300px tall, or "slice" chops the palm tops; 20.84vw keeps it whole. */
.hero { --sky: clamp(170px, 24vw, max(300px, 20.84vw)); }
.skyline { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--sky); }
/* Same height and 300-unit viewBox as the skyline, so the palms share its scale and ground line. */
.palms { position: absolute; left: 0; bottom: -1px; height: var(--sky); }
.palms-r { left: auto; right: 0; }

/* Sections */
.section { padding-block: 64px; }
h2 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 400; line-height: 1.05; text-transform: uppercase; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* Board */
.board { padding-top: 32px; }
.board-head { display: grid; gap: 14px; margin-bottom: 28px; }
.board-head p { max-width: 62ch; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend svg { width: 24px; height: 24px; }

.sort { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-self: start; padding: 4px; border-radius: 8px; background: var(--night-up); }
.sort button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 600 1rem var(--body); cursor: pointer; }
.sort button:hover { color: var(--text); }
.sort button[aria-pressed="true"] { background: var(--pink); color: var(--night); }
.opt-score { font-size: 1rem; font-weight: 600; color: var(--teal); }

.ports { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.port { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 6px 24px; padding: 20px 24px; border-radius: 14px; background: var(--night-up); }
.port:first-child { box-shadow: inset 0 0 0 2px var(--pink); } /* the leader */
.rank { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--pink); }
.port-main { display: grid; gap: 4px; align-content: start; }
.port-name { font-family: var(--display); font-size: 1.65rem; font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
.port-name a { text-decoration: none; }
.port-name a:hover { text-decoration: underline; }
.port-approach, .port-facts { color: var(--muted); }
.port-note { max-width: 62ch; }
.port-facts { font-size: 1rem; }
.port-level { display: grid; justify-items: end; align-content: start; gap: 6px; text-align: right; }
.port-level .stars { width: 140px; height: 28px; }
.level-text { font-size: 1rem; font-weight: 600; }
.level-src { font-size: .9rem; color: var(--muted); }
.level-src.measured { font-weight: 600; color: var(--teal); }
.proof-link { font-weight: 600; color: var(--teal); }
.run-link { font-size: 1rem; font-weight: 600; color: var(--pink); }
.tag { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--gold); color: var(--night); font-size: .8rem; font-weight: 600; }
.tag-down { background: var(--pink); }
.port.down { opacity: .7; }
.port.down .port-name { text-decoration: line-through; }
.empty { color: var(--muted); }

.earned { fill: var(--gold); }
.unreached { fill: var(--dim); }

/* Submit your run */
.submit { background: var(--night-up); }
.submit-intro { max-width: 62ch; margin-top: 14px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin: 28px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 12px; background: var(--night); counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--pink); }
.steps p { font-size: 1rem; color: var(--muted); }
.submit-note { max-width: 62ch; margin-top: 16px; font-size: 1rem; color: var(--muted); }

/* Can my PC run it */
.mypc { border-top: 1px solid var(--line); }
.mypc-intro { max-width: 62ch; margin-top: 14px; color: var(--muted); }
.mypc-intro a { color: var(--text); }
.pc-form { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.pc-form label { display: grid; gap: 6px; font-weight: 600; }
.pc-form select, .pc-form input { min-height: 48px; min-width: min(16rem, 100%); padding: 0 12px; border: 2px solid var(--line); border-radius: 6px; background: var(--night-up); color: var(--text); font: inherit; }
/* Chrome's own list flips upward whenever there's more room above; this opens it downward unless under 10rem fits. Other browsers keep their native list. */
.pc-form select, .pc-form select::picker(select) { appearance: base-select; }
.pc-form select::picker(select) { position-try-order: normal; min-block-size: min(10rem, 50vh); border: 2px solid var(--line); border-radius: 6px; background: var(--night-up); color: var(--text); }
.pc-detected { margin-top: 10px; font-size: 1rem; color: var(--muted); }
.pc-word { margin-top: 28px; font-family: var(--display); font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1; text-transform: uppercase; color: var(--pink); }
.pc-word[data-tone="sortof"] { color: var(--gold); }
.pc-word[data-tone="yes"] { color: var(--teal); }
.pc-word[data-tone="none"] { color: var(--muted); }
.pc-line { max-width: 56ch; margin-top: 12px; font-weight: 600; }
.pc-warn { max-width: 56ch; margin-top: 8px; color: var(--gold); }
.pc-warn:empty { display: none; }
.pc-page { margin-top: 8px; font-weight: 600; }
.pc-page:empty { display: none; }
.pc-page a { color: var(--teal); }
.pc-submit { margin-top: 16px; }
.pc-fastest { max-width: 56ch; margin-top: 12px; }
.pc-fastest:empty { display: none; }
.pc-fastest a { font-weight: 600; color: var(--teal); }
.pc-reports { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pc-reports li { padding: 12px 16px; border-radius: 10px; background: var(--night-up); font-size: 1rem; }
.pc-reports a { font-weight: 600; color: var(--teal); }

/* Card pages (scripts/build.mjs): the main hero without the skyline. */
.card-hero { padding-bottom: 72px; }
.card-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-weight: 600; }
.card-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--night-up); text-decoration: none; }
.card-list a:hover { border-color: var(--teal); }

/* The card list (gpu/): one tile per card, its top edge in the card page's verdict color. */
.gpu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 28px 0 24px; padding: 0; list-style: none; }
.gpu-tile { --tone: var(--dim); position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; gap: 2px; height: 100%; padding: 18px 20px 16px; border-top: 4px solid var(--tone); border-radius: 14px; background: linear-gradient(160deg, var(--night-up) 40%, var(--night)); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.gpu-tile[data-verdict="no"] { --tone: var(--pink); }
.gpu-tile[data-verdict="sortof"] { --tone: var(--gold); }
.gpu-tile[data-verdict="yes"] { --tone: var(--teal); }
.gpu-tile:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 12px 28px -14px var(--tone), inset 0 0 0 1px var(--tone); }
.gpu-num { position: absolute; z-index: -1; right: -4px; bottom: -18px; font-family: var(--display); font-size: 6.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.gpu-maker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gpu-name { font-family: var(--display); font-size: 1.9rem; line-height: 1.05; text-transform: uppercase; }
.gpu-runs { margin-top: 16px; color: var(--muted); }
.gpu-runs strong { margin-right: 4px; font-family: var(--display); font-size: 2.4rem; font-weight: 400; line-height: 1; color: var(--text); }
.gpu-word { font-weight: 600; color: var(--tone); }
.gpu-tile:not([data-verdict]) .gpu-word { color: var(--muted); } /* --dim is too faint for text */
@media (prefers-reduced-motion: reduce) { .gpu-tile { transition: none; } .gpu-tile:hover { transform: none; } }

/* Sponsored by nobody */
.sellout { padding-block: 88px; background: var(--night-up); }
.sellout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.sellout-text { display: grid; gap: 14px; }
.sellout-text p { max-width: 52ch; }
.billboard { display: grid; gap: 14px; padding: 36px 28px; border: 4px dashed var(--pink); border-radius: 6px; background: var(--night); text-align: center; transform: rotate(-2deg); }
.billboard span { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; text-transform: uppercase; color: var(--gold); }
.billboard small { font-size: 1rem; }

/* Rules */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 64px; margin-top: 28px; }
.ladder { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ladder li { display: grid; gap: 4px; }
.ladder .stars { width: 110px; height: 22px; }
.principles { display: grid; gap: 20px; align-content: start; }
.ladder p, .principles p { color: var(--muted); }

/* Send a video */
.send { border-top: 1px solid var(--line); }
.send p { max-width: 56ch; margin: 14px 0 26px; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 6px; background: var(--pink); color: var(--night); font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--pink-hover); color: var(--night); }
.text-link { display: inline-block; margin: 12px 0 0 20px; font-weight: 600; }

.foot { padding-block: 40px 56px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.foot p + p { margin-top: 8px; }

@media (max-width: 760px) {
  .sellout-grid { grid-template-columns: 1fr; }
  .billboard { margin-inline: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .logo { font-size: 1.15rem; }
  .bar nav a { padding-inline: 6px; font-size: .9rem; white-space: nowrap; }
  .bar nav a.nav-cta { display: none; } /* no room under the logo; the hero button is on the first screen */
  .bar nav a.nav-source { display: none; } /* the footer links it too */
  .hero { padding-top: 124px; }
  .palms { display: none; } /* too crowded at phone width */
  .port { grid-template-columns: 2rem minmax(0, 1fr); gap: 6px 12px; padding: 16px; }
  .port-level { grid-column: 2; justify-items: start; margin-top: 6px; text-align: left; }
  .rank { font-size: 1.6rem; }
  .text-link { margin-left: 0; display: block; }
  .gpu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } /* 49 tiles in one column is a long scroll */
  .gpu-tile { padding: 14px 14px 12px; }
  .gpu-name { font-size: 1.35rem; }
  .gpu-num { font-size: 4.5rem; bottom: -12px; }
  .gpu-runs strong { font-size: 1.9rem; }
  .gpu-word { font-size: .9rem; }
}
