:root {
  --black: #080b09;
  --ink: #f5f7f0;
  --muted: #9ba39c;
  --line: #485149;
  --paper: #eef1e9;
  --paper-2: #f8faf5;
  --paper-ink: #111612;
  --acid: #c7ff45;
  --cyan: #5ce2e5;
  --coral: #ff7867;
  --yellow: #ffdc58;
  --max: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--yellow);
  color: #111;
  font-size: 12px;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 9, .96);
  backdrop-filter: blur(10px);
}
.brand { min-width: 0; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand strong { color: var(--acid); font-size: 15px; }
.brand span { overflow: hidden; color: #a9b1aa; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-left: 1px solid #3d453f;
  color: #c2c9c3;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.topbar nav a:hover { color: var(--acid); }

.hero {
  position: relative;
  min-height: min(790px, calc(100svh - 58px));
  display: grid;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero__media { position: absolute; z-index: -2; inset: 0; }
.hero__media img { width: 100%; height: 100%; display: block; object-fit: cover; filter: contrast(1.16) saturate(.85) brightness(.55); }
.hero::after { position: absolute; z-index: -1; inset: 0; background: rgba(2, 4, 3, .58); content: ""; }
.hero__inner {
  width: min(var(--max), calc(100% - 56px));
  min-height: 100%;
  display: grid;
  align-content: end;
  margin: auto;
  padding: 90px 0 36px;
}
.eyebrow { margin: 0; color: var(--cyan); font-size: 9px; font-weight: 800; line-height: 1.5; }
.hero h1 { max-width: 1120px; margin: 18px 0 0; font-size: clamp(46px, 6.2vw, 92px); line-height: .98; overflow-wrap: anywhere; }
.hero__body { max-width: 760px; margin: 27px 0 0; color: #d6dcd6; font: 500 14px/1.72 Arial, sans-serif; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.command {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid #aab2ab;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.command:hover { border-color: var(--acid); color: var(--acid); }
.command--primary { border-color: var(--acid); background: var(--acid); color: #11150f; }
.command--primary:hover { background: transparent; }
.command--dark { border-color: #111; background: #111; color: #f5f7ef; }
.command--dark:hover { background: transparent; color: #111; }
.command--light { border-color: #f4f7f0; background: #f4f7f0; color: #101411; }
.command--light:hover { background: transparent; color: #f4f7f0; }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 64px 0 0;
  border-top: 1px solid rgba(244, 247, 240, .4);
  border-left: 1px solid rgba(244, 247, 240, .4);
}
.hero__facts div { min-height: 82px; display: grid; align-content: center; gap: 8px; padding: 13px 16px; border-right: 1px solid rgba(244, 247, 240, .4); border-bottom: 1px solid rgba(244, 247, 240, .4); }
.hero__facts dt { color: #a7afa8; font-size: 8px; font-weight: 800; }
.hero__facts dd { margin: 0; color: var(--acid); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }

.section { padding: 96px max(28px, calc((100% - var(--max)) / 2)); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 390px); align-items: end; gap: 48px; margin-bottom: 40px; padding-bottom: 22px; border-bottom: 1px solid currentColor; }
.section-heading h2 { max-width: 940px; margin: 9px 0 0; font-size: 43px; line-height: 1.04; overflow-wrap: anywhere; }
.section-heading > p, .section-heading > .text-link { margin: 0; font-size: 10px; line-height: 1.65; }
.text-link { width: max-content; color: inherit; font-size: 9px; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--coral); }

.round { background: var(--yellow); color: var(--paper-ink); border-color: #756927; }
.round .eyebrow { color: #50470e; }
.round-clock { display: grid; grid-template-columns: 10px 1fr; align-items: center; gap: 8px 10px; justify-self: end; min-width: 210px; padding: 14px 16px; border: 1px solid #756927; }
.status-dot { width: 8px; height: 8px; display: block; background: #626b14; }
.round-clock > span:not(.status-dot) { font-size: 9px; font-weight: 800; }
.round-clock time { grid-column: 1 / -1; font-size: 24px; font-weight: 800; }
.round-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); border-top: 1px solid #756927; border-left: 1px solid #756927; }
.packet, .handoff { min-width: 0; padding: 30px; border-right: 1px solid #756927; border-bottom: 1px solid #756927; }
.packet { background: #f4df69; }
.packet__header, .handoff > header { display: flex; justify-content: space-between; gap: 18px; font-size: 8px; font-weight: 800; }
.packet__header code { max-width: 66%; overflow-wrap: anywhere; text-align: right; }
.packet h3, .handoff h3 { margin: 33px 0 14px; font-size: 31px; line-height: 1.06; overflow-wrap: anywhere; }
.packet__question { max-width: 760px; margin: 0; font: 600 16px/1.55 Arial, sans-serif; }
.policy { margin-top: 31px; padding: 18px; border: 1px solid #756927; background: #fff0a1; }
.policy span { font-size: 8px; font-weight: 800; }
.policy p { margin: 10px 0 0; font: 600 13px/1.55 Arial, sans-serif; }
.evidence { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid #8e813a; }
.evidence li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #8e813a; }
.evidence strong { color: #565005; font-size: 10px; }
.evidence p { margin: 0; font: 500 13px/1.5 Arial, sans-serif; }
.disclosure { margin: 20px 0 0; color: #5e5722; font-size: 9px; line-height: 1.5; }
.handoff { background: var(--paper); }
.handoff > header strong { color: #315d0b; }
.handoff > p { margin: 0; color: #3c443e; font: 500 13px/1.6 Arial, sans-serif; }
.handoff pre { min-height: 164px; margin: 25px 0 0; padding: 18px; border: 1px solid #747c75; background: #151a17; color: var(--acid); font: 700 11px/1.55 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.handoff__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 14px; }
.steps { list-style: none; margin: 31px 0 0; padding: 0; border-top: 1px solid #879088; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #879088; }
.steps span { color: #496300; font-size: 10px; font-weight: 800; }
.steps p { margin: 0; font: 600 12px/1.45 Arial, sans-serif; }

.deck { background: var(--paper); color: var(--paper-ink); border-color: #5c655e; }
.deck .eyebrow { color: #00686e; }
.deck .section-heading > p { color: #404941; }
.deck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #59625b; border-left: 1px solid #59625b; }
.deck-card { min-width: 0; min-height: 360px; display: grid; grid-template-rows: auto auto 1fr auto; padding: 23px; border-right: 1px solid #59625b; border-bottom: 1px solid #59625b; background: var(--paper-2); }
.deck-card:nth-child(3n + 1) { --card-accent: #00686e; }
.deck-card:nth-child(3n + 2) { --card-accent: #a93329; }
.deck-card:nth-child(3n) { --card-accent: #4e6100; }
.deck-card__meta { display: flex; justify-content: space-between; gap: 14px; color: #59615b; font-size: 8px; font-weight: 800; }
.deck-card__meta b { color: var(--card-accent); }
.deck-card h3 { margin: 31px 0 13px; font-size: 25px; line-height: 1.08; overflow-wrap: anywhere; }
.deck-card > p { margin: 0; color: #3c443e; font: 500 13px/1.58 Arial, sans-serif; }
.deck-card details { margin-top: 24px; border-top: 1px solid #969e97; }
.deck-card summary { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--card-accent); font-size: 9px; font-weight: 800; cursor: pointer; list-style: none; }
.deck-card summary::-webkit-details-marker { display: none; }
.deck-card summary::after { content: "+"; font-size: 18px; }
.deck-card details[open] summary::after { content: "-"; }
.deck-card pre { max-height: 240px; margin: 0; padding: 15px; overflow: auto; background: #111612; color: #e9ede7; font: 600 10px/1.55 Consolas, monospace; white-space: pre-wrap; }
.deck-card footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; }
.deck-card footer span { color: #687068; font-size: 8px; font-weight: 800; }
.deck-card button { min-height: 34px; padding: 0 11px; border: 1px solid var(--card-accent); border-radius: 0; background: transparent; color: var(--card-accent); font-size: 8px; font-weight: 800; cursor: pointer; }

.language { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); gap: 56px; background: #111612; }
.language__signal { display: grid; grid-template-columns: repeat(4, 1fr); align-self: stretch; border-top: 1px solid #4e5850; border-left: 1px solid #4e5850; }
.language__signal span { min-height: 92px; display: grid; place-items: center; border-right: 1px solid #4e5850; border-bottom: 1px solid #4e5850; color: var(--acid); font-size: 21px; font-weight: 800; }
.language__signal span:nth-child(3n + 2) { color: var(--cyan); }
.language__signal span:nth-child(3n) { color: var(--coral); }
.language__copy { align-self: center; }
.language__copy h2 { max-width: 850px; margin: 12px 0 17px; font-size: 43px; line-height: 1.04; }
.language__copy > p:not(.eyebrow) { max-width: 720px; margin: 0; color: #b5beb6; font: 500 13px/1.65 Arial, sans-serif; }
.language__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; border-top: 1px solid #4e5850; border-left: 1px solid #4e5850; }
.language__stats div { min-height: 72px; display: grid; align-content: center; gap: 7px; padding: 12px 15px; border-right: 1px solid #4e5850; border-bottom: 1px solid #4e5850; }
.language__stats span { color: #8f9991; font-size: 8px; font-weight: 800; }
.language__stats strong { color: var(--acid); font-size: 11px; overflow-wrap: anywhere; }
.language__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 23px; }

.results { background: var(--coral); color: #17100f; border-color: #742c24; }
.results .eyebrow { color: #54170f; }
.result-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid #742c24; border-left: 1px solid #742c24; }
.result-stats div { min-height: 100px; display: grid; align-content: center; gap: 7px; padding: 17px; border-right: 1px solid #742c24; border-bottom: 1px solid #742c24; }
.result-stats dt { font-size: 8px; font-weight: 800; }
.result-stats dd { margin: 0; font-size: 34px; font-weight: 800; }
.leaderboard { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid #742c24; }
.leaderboard li { min-height: 66px; display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(100px, auto) 82px; align-items: center; gap: 14px; border-bottom: 1px solid #742c24; }
.leaderboard li > span, .leaderboard li > b { font-size: 10px; }
.leaderboard li > div { min-width: 0; }
.leaderboard li strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard li small { font-size: 9px; }
.leaderboard li a { font-size: 8px; font-weight: 800; }
.leaderboard .leaderboard__empty { grid-template-columns: 1fr; justify-items: center; padding: 25px; font-size: 11px; text-align: center; }

.method { background: var(--paper); color: var(--paper-ink); border-color: #5c655e; }
.method .eyebrow { color: #315d0b; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #59625b; border-left: 1px solid #59625b; }
.method-grid article { min-height: 240px; display: grid; grid-template-rows: auto auto 1fr; padding: 24px; border-right: 1px solid #59625b; border-bottom: 1px solid #59625b; }
.method-grid span { color: #607300; font-size: 10px; font-weight: 800; }
.method-grid h3 { margin: 42px 0 12px; font-size: 24px; }
.method-grid p { margin: 0; color: #444d46; font: 500 13px/1.6 Arial, sans-serif; }

.footer { width: min(var(--max), calc(100% - 56px)); min-height: 140px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; margin: auto; }
.footer strong { color: var(--acid); font-size: 12px; }
.footer p { margin: 9px 0 0; color: #8f9890; font-size: 8px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 17px; }
.footer a { color: #bcc4bd; font-size: 9px; text-decoration: none; }
.noscript { margin: 0; padding: 18px; background: var(--yellow); color: #111; font-size: 12px; text-align: center; }

@media (max-width: 1040px) {
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .round-layout, .language { grid-template-columns: 1fr; }
  .language__signal { grid-template-columns: repeat(8, 1fr); }
  .language__signal span { min-height: 66px; }
}

@media (max-width: 720px) {
  .topbar { min-height: 54px; padding: 0 12px; }
  .brand span { max-width: 100px; }
  .topbar nav a { padding: 0 7px; }
  .topbar nav a:nth-child(2), .topbar nav a:nth-child(3) { display: none; }
  .hero { min-height: 700px; }
  .hero__inner { width: calc(100% - 30px); padding: 66px 0 22px; }
  .hero h1 { font-size: 46px; }
  .hero__body { font-size: 13px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; }
  .hero__facts div { min-height: 70px; }
  .section { padding: 68px 15px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .section-heading h2, .language__copy h2 { font-size: 32px; }
  .round-clock { width: 100%; justify-self: stretch; }
  .packet, .handoff { padding: 21px; }
  .packet h3, .handoff h3 { font-size: 26px; }
  .deck-grid, .method-grid { grid-template-columns: 1fr; }
  .deck-card { min-height: 330px; padding: 20px; }
  .language { gap: 36px; }
  .language__signal { grid-template-columns: repeat(4, 1fr); }
  .language__stats { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stats div { min-height: 76px; }
  .leaderboard li { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding: 12px 0; }
  .leaderboard li a { grid-column: 2 / -1; }
  .footer { width: calc(100% - 30px); grid-template-columns: 1fr; padding: 30px 0; }
  .footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
