@import url("/brand.css");

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
::selection {
  color: var(--ink);
  background: var(--yellow);
}
:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 6px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.96;
}
p {
  line-height: 1.65;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 20px;
  top: -100px;
  background: var(--yellow);
  color: var(--ink);
  padding: 14px 22px;
}
.skip-link:focus {
  top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  min-height: 76px;
  padding: 12px var(--page);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.wordmark img {
  width: 110px;
  height: auto;
  object-fit: contain;
  filter: var(--logo-filter);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
}
.site-header .desktop-nav {
  margin-left: auto;
}
.site-header a,
.mobile-menu summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mobile-menu {
  display: none;
}
.inline-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-header nav a:not(.button) {
  transition: color 0.2s;
}
.site-header nav a:not(.button):hover {
  color: var(--accent-text);
}
.site-header nav a span {
  margin-left: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 19px 24px;
  border: 1px solid var(--yellow);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  line-height: 1.2;
}
.button:hover {
  background: #ffd11c;
  box-shadow: 4px 4px 0 #974809;
  transform: translate(-2px, -2px);
}
.button span {
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}
.button-small {
  padding: 13px 17px;
  font-size: 13px;
  gap: 24px;
}
.button-small span {
  font-size: 19px;
}
.button-large {
  min-height: 61px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}
.text-link:hover {
  color: var(--accent-text);
}
.hero {
  position: relative;
  isolation: isolate;
  padding: 43px var(--page) 0;
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  column-gap: 30px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
}
.hero:after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  top: 50px;
  right: -140px;
  background: radial-gradient(ellipse, #4aa8b823, transparent 66%);
  z-index: -1;
  pointer-events: none;
}
.eyebrow,
.section-kicker,
.step-foot,
.step-index,
.art-coordinate,
.art-tag,
.inspection-hint,
.hero-bottom,
.choice-index,
.result-topline,
.risk-level,
.gain-number small,
.attack-meter,
.funding-footer,
.gallery-caption > span,
.inspect-label,
.os-stamp,
.terminal-header,
.terminal-label,
.opensource-team,
.last-startup,
.battle-line,
.friends-photo figcaption,
.pdf-note,
.final-topline,
.final-meta,
.final-art-label,
.footer-signoff,
.dialog-type {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.6;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px #feb51166;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(76px, 7.6vw, 116px);
  margin: 23px 0 24px;
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.hero h1 span {
  color: var(--accent-text);
}
.hero-description {
  font-size: 14px;
  max-width: 345px;
  color: var(--text-muted);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 19px;
  margin-top: 24px;
}
.hero-actions .text-link {
  font-size: 12px;
  border-bottom: 0;
  color: var(--fg);
  padding: 0;
}
.hero-actions .text-link:hover {
  color: var(--accent-text);
}
.game-meta {
  display: flex;
  gap: 0;
  margin-top: 27px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.game-meta > span {
  padding: 0 18px;
  border-right: 1px solid var(--border);
}
.game-meta > span:first-child {
  padding-left: 0;
}
.game-meta > span:last-child {
  border: 0;
}
.game-meta b {
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
}
.hero-art {
  position: relative;
  align-self: stretch;
  min-width: 0;
  --stage: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-coordinate {
  position: absolute;
  top: 7px;
  right: 0;
  color: var(--text-muted);
  text-align: right;
  font-size: 9px;
}
.arena-orbit {
  width: 510px;
  height: 510px;
  position: absolute;
  border: 1px solid #4aa8b828;
  border-radius: 50%;
  pointer-events: none;
  top: calc(50% - 255px);
}
.orbit-two {
  width: 630px;
  height: 630px;
  top: calc(50% - 315px);
  border-style: dashed;
  opacity: 0.7;
}
.arena-orbit:before,
.arena-orbit:after {
  position: absolute;
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  top: 15%;
  left: 14%;
  opacity: 0.6;
}
.arena-orbit:after {
  top: 85%;
  left: 85%;
  width: 4px;
  height: 4px;
}
.card-fan {
  position: relative;
  width: 100%;
  height: 550px;
  max-width: 620px;
  margin-top: -15px;
  perspective: 1000px;
}
.hero-card {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  position: absolute;
  width: clamp(195px, 20.3vw, 310px);
  top: 60px;
  left: calc(50% - clamp(97px, 10.15vw, 155px));
  border-radius: 11px;
  box-shadow: 0 26px 42px #0008;
  transition:
    filter 0.3s,
    box-shadow 0.3s;
  will-change: transform;
}
.hero-card img {
  width: 100%;
  border-radius: 10px;
}
.hero-card:hover {
  filter: brightness(1.09);
  box-shadow:
    0 22px 48px #000b,
    0 0 0 2px var(--yellow);
}
.hero-card:focus-visible {
  outline-offset: 7px;
  z-index: 6;
}
.fan-back {
  z-index: 0;
  transform: translate(
      calc(-105px - var(--stage) * 12px),
      calc(-16px + var(--stage) * 22px)
    )
    rotate(-23deg);
}
.fan-left {
  z-index: 1;
  transform: translate(
      calc(-112px - var(--stage) * 25px),
      calc(28px + var(--stage) * 20px)
    )
    rotate(-17deg);
}
.fan-right {
  z-index: 2;
  transform: translate(
      calc(109px + var(--stage) * 25px),
      calc(-16px + var(--stage) * 18px)
    )
    rotate(18deg);
}
.fan-front {
  z-index: 3;
  transform: translate(8px, calc(24px - var(--stage) * 10px)) rotate(-4deg);
}
.art-tag {
  position: absolute;
  left: 20%;
  bottom: 52px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  color: var(--accent-text);
}
.art-tag span:not(.crosshair) {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0;
}
.crosshair {
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
}
.inspection-hint {
  position: absolute;
  right: 0;
  bottom: 25px;
  font-size: 9px;
  color: var(--text-muted);
}
.inspection-hint span {
  color: var(--accent-text);
  margin-right: 7px;
}
.hero-bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 43px;
  padding: 19px 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.hero-bottom a {
  color: var(--accent-text);
}
.hero-bottom a span {
  margin-left: 16px;
}
.section-shell {
  padding: 80px var(--page);
}
.section-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-muted);
}
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 80px;
  margin: 40px 0 48px;
}
.section-heading h2 {
  font-size: clamp(48px, 5.8vw, 86px);
}
.section-heading > p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  padding-bottom: 3px;
}
.section-heading strong {
  color: var(--fg);
  font-weight: 500;
}
.play-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.play-steps li {
  position: relative;
  padding: 25px 28px 23px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.play-steps li:last-child {
  border: 0;
}
.step-index {
  color: var(--text-muted);
}
.step-symbol {
  width: 150px;
  height: 100px;
  color: var(--blue);
  margin: 23px 0 25px;
  display: flex;
  align-items: center;
}
.step-symbol svg {
  width: 86px;
  height: 100%;
}
.step-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
  border-radius: 3px;
}
.play-steps li:last-child .step-symbol {
  color: light-dark(var(--orange), var(--orange-light));
}
.play-steps h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.play-steps p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  margin-bottom: 30px;
}
.play-steps .turn-choices {
  grid-column: 2;
  margin: 0 0 24px;
}
.play-steps .turn-choices div {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.turn-choices dt {
  font-size: 13px;
  font-weight: 700;
}
.turn-choices dt span {
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 10px;
  margin-right: 8px;
}
.turn-choices dd {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.play-steps li:has(.turn-choices) > p {
  margin-bottom: 16px;
}
.step-foot {
  margin-top: auto;
  letter-spacing: 0;
  font-size: 9px;
  color: var(--text-muted);
}
a.step-foot {
  color: var(--accent-text);
}
a.step-foot:hover {
  text-decoration: underline;
}
.funding-section {
  --accent-text: var(--ink);
  color-scheme: light;
  background: var(--yellow);
  color: var(--ink);
  padding-top: 48px;
  padding-bottom: 28px;
}
.funding-section .section-kicker {
  border-color: #1d1d1b45;
  color: var(--ink);
}
.funding-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin: 42px 0 38px;
  align-items: end;
}
.funding-heading h2 {
  font-size: clamp(62px, 6.7vw, 100px);
}
.funding-heading h2 span {
  color: #7c3b0b;
}
.funding-heading p {
  font-size: 14px;
  max-width: 360px;
  padding-bottom: 6px;
}
.demo-note {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  margin-top: 17px;
  color: #7c3b0b;
}
.funding-console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  background: #ffd11c;
}
.funding-choices {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
}
.funding-choice {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 35px 27px;
  flex: 1;
  transition:
    color 0.2s,
    background 0.2s;
}
.funding-choice:last-child {
  border-bottom: 0;
}
.choice-index {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 9px;
}
.choice-name {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.1;
  flex: 1;
  text-transform: uppercase;
}
.choice-name small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: none;
  margin-top: 11px;
  letter-spacing: -0.03em;
}
.choice-gain {
  font-family: var(--display);
  font-size: 53px;
  font-weight: 700;
  line-height: 1;
}
.funding-choice:hover {
  background: #ffe346;
}
.funding-choice.is-selected {
  background: var(--ink);
  color: var(--yellow);
}
.funding-choice:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -7px;
}
.funding-choice.is-selected:focus-visible {
  outline-color: var(--yellow);
}
.funding-result {
  padding: 24px 30px 28px;
  overflow: hidden;
}
.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  align-items: center;
}
.risk-level {
  border: 1px solid currentColor;
  padding: 3px 8px;
  font-size: 8px;
}
.funding-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.gain-number > span {
  display: inline-block;
  font-family: var(--display);
  font-size: 128px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}
.gain-number small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.drawn-cards {
  position: relative;
  width: 160px;
  height: 180px;
  margin-right: 27px;
}
.draw-card {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 116px;
  border-radius: 6px;
  box-shadow: 0 8px 15px #1d1d1b40;
}
.draw-one {
  transform: translate(-18px, 4px) rotate(-15deg);
}
.draw-two {
  transform: translate(10px, 0) rotate(0deg);
}
.draw-three {
  transform: translate(39px, -2px) rotate(15deg);
}
.funding-result[data-gain="1"] .draw-one {
  transform: translate(10px, 0) rotate(-4deg);
}
.funding-result[data-gain="1"] .draw-two,
.funding-result[data-gain="1"] .draw-three {
  opacity: 0;
  transform: translate(10px, 35px) rotate(0deg);
}
.funding-result[data-gain="2"] .draw-one {
  transform: translate(-5px, 3px) rotate(-8deg);
}
.funding-result[data-gain="2"] .draw-two {
  transform: translate(25px, 0) rotate(8deg);
}
.funding-result[data-gain="2"] .draw-three {
  opacity: 0;
  transform: translate(10px, 35px) rotate(0deg);
}
.attack-meter {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  margin: 24px 0;
}
.attack-meter > span:not(.attack-line) {
  padding: 5px 9px;
  border: 1px solid #1d1d1b66;
}
.attack-meter .you-player {
  background: var(--ink);
  color: var(--yellow);
}
.attack-line {
  height: 1px;
  background: #1d1d1b66;
  flex: 1;
  min-width: 12px;
}
.attack-meter .opponent {
  opacity: 0.4;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.attack-meter .is-threat {
  opacity: 1;
  background: #1d1d1b;
  color: var(--yellow);
  border-color: var(--ink);
}
.funding-result h3 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 9px;
}
.funding-result > p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 370px;
}
.funding-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  margin-top: 23px;
}
.funding-footer a:hover {
  text-decoration: underline;
}
.funding-footer a span {
  margin-left: 10px;
}
.noscript-note {
  margin-top: 20px;
  font-size: 12px;
}
.cards-section {
  padding-top: 76px;
}
.card-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}
.fight-section {
  border-top: 1px solid var(--border);
}
.fight-label {
  display: block;
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: light-dark(#28717d, var(--blue-light));
}
.fight-triggers,
.fight-layout,
.fight-stakes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.fight-triggers {
  margin-bottom: 40px;
}
.fight-triggers > div {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.fight-section h3 {
  margin: 12px 0;
  font: 700 28px/1.1 var(--display);
  text-transform: uppercase;
}
.fight-triggers p,
.fight-sequence p,
.fight-bluff {
  color: var(--text-muted);
  font-size: 13px;
}
.fight-example {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.fight-matchup {
  display: grid;
  grid-template-columns: 1fr 35px 1fr;
  align-items: center;
  gap: 15px;
}
.fight-matchup figure {
  min-width: 0;
  text-align: center;
}
.fight-matchup figure:first-child .fight-label {
  color: light-dark(var(--orange), var(--orange-light));
}
.fight-matchup figure:last-child .fight-label {
  color: light-dark(var(--green), var(--green-light));
}
.fight-card {
  width: min(100%, 130px);
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  transition: transform 0.25s;
}
.fight-card:hover:enabled,
.fight-card:focus-visible {
  transform: translateY(-6px);
}
.fight-card img {
  width: 100%;
  border-radius: 6px;
}
.fight-matchup figure p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.fight-matchup figure p strong {
  font: 700 38px/1 var(--display);
  color: var(--fg);
  margin-right: 5px;
}
.fight-versus {
  text-align: center;
  color: var(--text-muted);
  font: 600 17px/1 var(--mono);
}
.fight-result {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}
.fight-result strong {
  color: var(--accent-text);
  font-size: 16px;
}
.fight-sequence {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fight-step;
}
.fight-sequence li {
  counter-increment: fight-step;
  padding: 20px 0 20px 40px;
  border-top: 1px solid var(--border);
  position: relative;
}
.fight-sequence li::before {
  content: "0" counter(fight-step);
  position: absolute;
  left: 0;
  top: 32px;
  color: var(--accent-text);
  font: 10px var(--mono);
}
.fight-sequence h3 {
  margin-top: 6px;
}
.fight-stakes {
  margin-top: 30px;
}
.fight-stakes p {
  padding: 20px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.fight-stakes .fight-label {
  margin-bottom: 9px;
}
.fight-stakes p:last-child .fight-label {
  color: light-dark(var(--orange), var(--orange-light));
}
.fight-bluff {
  margin-top: 24px;
  max-width: 820px;
}
.fight-bluff strong {
  color: var(--fg);
}
@media (max-width: 760px) {
  .fight-triggers,
  .fight-layout,
  .fight-stakes {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fight-triggers {
    gap: 0;
    margin-bottom: 24px;
  }
  .fight-example {
    padding: 18px;
  }
  .fight-matchup {
    gap: 9px;
    grid-template-columns: 1fr 25px 1fr;
  }
  .fight-card {
    max-width: 96px;
  }
  .fight-label {
    font-size: 7px;
  }
  .fight-section h3 {
    font-size: 26px;
  }
}
.gallery-card {
  width: 100%;
  color: inherit;
  text-align: left;
  display: block;
  position: relative;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    background 0.25s,
    transform 0.25s;
}
.gallery-card:hover {
  background: light-dark(#e9e9e6, #3e3e3d);
  transform: translateY(-7px);
}
.gallery-card img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 9px 16px #0005;
}
.inspect-label {
  display: flex;
  justify-content: space-between;
  color: light-dark(#28717d, var(--blue-light));
  font-size: 8px;
  margin-top: 15px;
}
.gallery-caption {
  padding-top: 20px;
}
.gallery-caption > span {
  color: light-dark(#28717d, var(--blue-light));
  font-size: 8px;
}
.gallery-caption h3 {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 7px 0 8px;
  font-weight: 600;
}
.gallery-caption p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
}
.gallery-refresh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 35px;
  text-align: center;
}
.gallery-refresh p:not(.sr-only) {
  color: var(--text-muted);
  font-size: 12px;
}
.gallery-refresh [hidden] {
  display: none;
}
.gallery-refresh button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.7;
}
.gallery-item:nth-child(3) {
  --category-accent: light-dark(var(--orange), var(--orange-light));
}
.gallery-item {
  --category-accent: light-dark(#28717d, var(--blue-light));
}
.gallery-caption > span,
.inspect-label {
  color: var(--category-accent);
}
.gallery-card {
  border-top: 3px solid var(--category-accent);
}
.opensource-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.opensource-copy {
  padding: 70px 55px 74px var(--page);
}
.opensource-copy > .eyebrow {
  color: var(--text-muted);
}
.opensource-copy h2 {
  font-size: clamp(75px, 8.3vw, 126px);
  margin: 27px 0 25px;
}
.opensource-copy h2 span {
  color: light-dark(var(--green), var(--green-light));
}
.opensource-copy p:not(.eyebrow) {
  max-width: 385px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.opensource-copy .opensource-lead {
  font-size: 22px !important;
  line-height: 1.35;
  color: var(--fg) !important;
}
.opensource-copy strong {
  color: var(--fg);
  font-weight: 500;
}
.opensource-copy .text-link {
  margin-top: 14px;
  color: light-dark(var(--green), var(--green-light));
}
.opensource-art {
  /* The illustrated terminal remains a dark, mint-green scene in both themes. */
  color-scheme: dark;
  color: var(--green-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 46px;
  background: #0b2813;
  background-image:
    linear-gradient(#287d3b22 1px, transparent 1px),
    linear-gradient(90deg, #287d3b22 1px, transparent 1px);
  background-size: 40px 40px;
}
.os-stamp {
  position: absolute;
  right: 24px;
  top: 26px;
  color: var(--green-light);
  border: 1px solid #287d3b;
  padding: 7px 10px;
  font-size: 9px;
  transform: rotate(5deg);
}
.source-terminal {
  width: 100%;
  max-width: 385px;
  border: 1px solid #39ae52;
  box-shadow: 15px 15px 0 #287d3b22;
  background: var(--ink);
  transform: rotate(-3deg);
}
.terminal-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #215a2e;
  padding: 14px;
  color: #95e0a5;
  font-size: 9px;
}
.terminal-lights {
  color: #5fc976;
  letter-spacing: 3px;
  font-size: 9px;
}
.terminal-body {
  padding: 28px 30px 23px;
  text-align: center;
}
.terminal-label {
  color: #95e0a5;
  font-size: 9px;
}
.fallen-founders {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 17px;
}
.fallen-founders img {
  width: 42px;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  border: 1px solid var(--green);
}
.failed-startup {
  position: relative;
  display: inline-block;
}
.failed-startup .bankrupt-mark {
  position: absolute;
  width: 28px;
  height: 28px;
  top: -9px;
  right: -11px;
  padding: 3px;
  color: #ef6464;
  background: var(--ink);
  border: 1px solid currentColor;
  border-radius: 50%;
}
.merge-arrow {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 34px;
  letter-spacing: 21px;
  color: #5fc976;
  margin: 16px 0 14px;
  padding-left: 22px;
}
.opensource-team {
  padding: 14px 7px;
  border: 1px solid var(--green-light);
  background: #287d3b33;
  color: var(--green-light);
  font-size: 14px;
}
.opensource-team > svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 12px;
}
.battle-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #95e0a5;
  font-size: 8px;
  margin: 18px 0;
}
.battle-line b {
  font-size: 48px;
  line-height: 1;
  color: var(--green-light);
  font-family: Arial, sans-serif;
  font-weight: 400;
}
.last-startup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px;
  color: var(--ink);
  background: var(--green-light);
  font-size: 13px;
}
.last-startup > span {
  font-size: 28px;
  line-height: 1;
}
.terminal-bottom {
  display: block;
  margin-top: 26px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.human-section {
  padding-top: 64px;
  padding-bottom: 78px;
}
.human-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.friends-photo {
  position: relative;
  padding: 10px;
  border: 1px solid var(--border);
  transform: rotate(-2deg);
}
.friends-photo img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  filter: saturate(0.8);
}
.friends-photo figcaption {
  font-size: 7px;
  display: flex;
  justify-content: space-between;
  padding: 13px 0 3px;
  gap: 10px;
  color: var(--text-muted);
}
.human-copy h2 {
  font-size: clamp(45px, 4.7vw, 70px);
  margin-bottom: 25px;
}
.human-copy p {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 375px;
  margin-bottom: 15px;
}
.human-copy .print-play-button {
  margin-top: 13px;
  width: 100%;
  max-width: 420px;
  gap: 16px;
  line-height: 1.4;
}
.pdf-note {
  display: block;
  font-size: 9px;
  margin-top: 10px;
  color: var(--text-muted);
  letter-spacing: 0;
}
.human-copy .pdf-note {
  font-size: 12px;
  line-height: 1.6;
}
.final-section {
  --accent-text: var(--ink);
  color-scheme: light;
  padding: 35px var(--page) 58px;
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
}
.final-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1d1d1b44;
  padding-bottom: 23px;
  font-size: 9px;
}
.final-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  padding-top: 45px;
  align-items: center;
}
.final-layout h2 {
  font-size: clamp(73px, 8.4vw, 126px);
  margin-bottom: 25px;
}
.final-layout p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.button-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
  min-width: 280px;
}
.button-dark:hover {
  background: #262626;
  box-shadow: 4px 4px 0 #974809;
}
.final-meta {
  font-size: 9px;
  margin-top: 23px;
  letter-spacing: 0;
}
.final-meta span {
  margin: 0 8px;
}
.final-art {
  position: relative;
  height: 390px;
}
.final-card {
  position: absolute;
  width: 220px;
  border-radius: 8px;
  box-shadow: 0 20px 30px #1d1d1b30;
  left: calc(50% - 110px);
  top: 7px;
}
.final-card-back {
  transform: translate(-53px, 2px) rotate(-16deg);
}
.final-card-front {
  transform: translate(40px, -8px) rotate(10deg);
}
.final-art-label {
  position: absolute;
  right: -12px;
  bottom: 0;
  font-size: 9px;
  transform: rotate(-8deg);
  border-left: 1px solid var(--ink);
  padding-left: 12px;
}
.site-footer {
  padding: 44px var(--page) 40px;
  display: grid;
  grid-template-columns: 0.65fr 1fr 1.15fr 1fr;
  gap: 25px;
  align-items: start;
}
.site-footer > .built-with-credit {
  grid-column: 1 / -1;
}
.site-footer > .wordmark {
  width: fit-content;
}
.site-footer > p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 11px;
}
.site-footer nav a:hover {
  color: var(--accent-text);
}
.footer-signoff {
  font-size: 8px;
  color: var(--text-muted);
  text-align: right;
}
.card-dialog {
  padding: 0;
  border: 1px solid var(--border);
  max-width: 890px;
  width: calc(100% - 48px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
}
.card-dialog::backdrop {
  background: #1d1d1bde;
  backdrop-filter: blur(9px);
}
.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.dialog-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.dialog-art {
  background: var(--surface);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dialog-art img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 112px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 15px 25px #0006;
}
.dialog-copy {
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.dialog-copy > .eyebrow {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 23px;
}
.dialog-copy h2 {
  font-size: 48px;
  margin-bottom: 22px;
}
.dialog-type {
  color: var(--accent-text);
  font-size: 9px;
  margin-bottom: 16px;
}
.dialog-copy > p:not(.eyebrow):not(.dialog-type) {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.dialog-copy .dialog-aside {
  color: var(--text-muted);
  font-size: 12px !important;
}
.dialog-copy .text-link {
  font-size: 11px;
  color: var(--accent-text);
  margin-top: 10px;
}
.dialog-close {
  background: none;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  min-height: 44px;
  min-width: 88px;
}
.dialog-close span {
  font-family: Arial, sans-serif;
  font-size: 20px;
  margin-left: 13px;
  vertical-align: middle;
}
.dialog-close:hover {
  color: var(--accent-text);
  border-color: var(--accent-text);
}
.will-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.play-steps li:nth-child(2),
.gallery-item:nth-child(2) {
  transition-delay: 70ms;
}
.play-steps li:nth-child(3),
.gallery-item:nth-child(3) {
  transition-delay: 140ms;
}
.gallery-item:nth-child(4) {
  transition-delay: 210ms;
}
.friends-photo.will-reveal {
  transform: translateY(25px) rotate(-2deg);
}
.friends-photo.is-visible {
  transform: rotate(-2deg);
}

@media (min-width: 1600px) {
  .hero h1 {
    font-size: 126px;
  }
  .hero {
    padding-top: 55px;
  }
  .hero-card {
    width: 330px;
    left: calc(50% - 165px);
  }
  .card-fan {
    height: 640px;
  }
  .art-tag {
    bottom: 70px;
  }
  .hero-description {
    max-width: 390px;
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .hero-bottom {
    margin-top: 45px;
  }
}
@media (max-width: 1100px) {
  .site-header nav {
    gap: 22px;
  }
  .hero {
    column-gap: 10px;
  }
  .hero h1 {
    font-size: clamp(76px, 8.6vw, 96px);
  }
  .hero-card {
    width: 220px;
    left: calc(50% - 110px);
  }
  .card-fan {
    height: 460px;
  }
  .fan-left {
    transform: translate(
        calc(-80px - var(--stage) * 15px),
        calc(28px + var(--stage) * 18px)
      )
      rotate(-17deg);
  }
  .fan-right {
    transform: translate(
        calc(80px + var(--stage) * 15px),
        calc(-16px + var(--stage) * 18px)
      )
      rotate(18deg);
  }
  .fan-back {
    transform: translate(-70px, -16px) rotate(-23deg);
  }
  .art-tag {
    left: 9%;
    bottom: 65px;
  }
  .arena-orbit {
    width: 400px;
    height: 400px;
    top: calc(50% - 200px);
  }
  .orbit-two {
    width: 510px;
    height: 510px;
    top: calc(50% - 255px);
  }
  .section-heading,
  .funding-heading {
    gap: 45px;
  }
  .play-steps li {
    padding: 22px;
  }
  .choice-name {
    font-size: 26px;
  }
  .funding-choice {
    gap: 12px;
    padding: 30px 20px;
  }
  .choice-name small {
    font-size: 9px;
  }
  .funding-result {
    padding: 23px;
  }
  .drawn-cards {
    margin-right: 5px;
    width: 130px;
  }
  .draw-card {
    width: 98px;
  }
  .gain-number > span {
    font-size: 105px;
  }
  .funding-visual {
    height: 173px;
  }
  .card-gallery {
    gap: 16px;
  }
  .gallery-card {
    padding: 12px;
  }
  .gallery-caption h3 {
    font-size: 23px;
  }
  .opensource-copy {
    padding-right: 35px;
  }
  .opensource-art {
    padding: 50px 30px;
  }
  .human-layout {
    gap: 35px;
  }
  .final-art {
    height: 350px;
  }
  .final-card {
    width: 190px;
    left: calc(50% - 95px);
  }
  .site-footer {
    grid-template-columns: 0.6fr 1fr 1.15fr;
  }
  .footer-signoff {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --page: 24px;
  }
  .button-small {
    padding: 11px 13px;
    gap: 10px;
    font-size: 11px;
  }
  .hero {
    padding-top: 27px;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
  }
  .hero h1 {
    font-size: 76px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .hero-description {
    font-size: 12px;
    max-width: 245px;
  }
  .hero .button-large {
    padding: 16px;
    gap: 14px;
    font-size: 12px;
    min-height: 53px;
    white-space: nowrap;
  }
  .hero-actions {
    gap: 16px;
  }
  .game-meta {
    font-size: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .game-meta > span {
    padding: 0 10px;
  }
  .game-meta b {
    font-size: 10px;
  }
  .hero-card {
    width: 170px;
    left: calc(50% - 85px);
  }
  .fan-left {
    transform: translate(-42px, 35px) rotate(-16deg);
  }
  .fan-right {
    transform: translate(49px, -5px) rotate(16deg);
  }
  .fan-back {
    transform: translate(-30px, -10px) rotate(-22deg);
  }
  .fan-front {
    transform: translate(8px, 24px) rotate(-4deg);
  }
  .card-fan {
    height: 360px;
    margin-top: 0;
  }
  .art-coordinate {
    font-size: 7px;
    right: -8px;
    top: 0;
  }
  .art-tag {
    left: 8%;
    bottom: 67px;
    font-size: 7px;
    gap: 6px;
  }
  .art-tag span:not(.crosshair) {
    font-size: 7px;
  }
  .crosshair {
    font-size: 20px;
  }
  .inspection-hint {
    font-size: 7px;
    right: 0;
    bottom: 38px;
  }
  .arena-orbit {
    width: 270px;
    height: 270px;
    top: calc(50% - 135px);
  }
  .orbit-two {
    width: 350px;
    height: 350px;
    top: calc(50% - 175px);
  }
  .hero-bottom {
    margin-top: 33px;
    font-size: 7px;
    padding: 15px 0;
  }
  .bottom-note {
    display: none;
  }
  .section-shell {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .section-kicker {
    font-size: 8px;
    gap: 20px;
    line-height: 1.5;
    padding-bottom: 18px;
  }
  .section-kicker > span:last-child {
    text-align: right;
  }
  .section-heading {
    gap: 30px;
    margin: 30px 0;
  }
  .section-heading h2 {
    font-size: 49px;
  }
  .section-heading > p {
    font-size: 12px;
  }
  .play-steps li {
    padding: 19px 15px;
  }
  .play-steps h3 {
    font-size: 24px;
  }
  .play-steps p {
    font-size: 11px;
    line-height: 1.65;
  }
  .step-symbol {
    width: 100%;
    max-width: 125px;
    height: 77px;
    margin: 25px 0 20px;
  }
  .step-foot {
    font-size: 7px;
  }
  .funding-heading {
    gap: 28px;
    margin: 30px 0;
  }
  .funding-heading h2 {
    font-size: 60px;
  }
  .funding-heading p {
    font-size: 12px;
  }
  .demo-note {
    font-size: 8px;
  }
  .funding-console {
    grid-template-columns: 1fr;
  }
  .funding-choices {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .funding-choice {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding: 18px 15px;
    border-bottom: 0;
    border-right: 1px solid var(--ink);
    align-content: start;
    flex: 1;
  }
  .funding-choice:last-child {
    border-right: 0;
  }
  .choice-index {
    grid-column: 1;
  }
  .choice-gain {
    grid-column: 2;
    grid-row: 1;
    font-size: 31px;
  }
  .choice-name {
    grid-column: 1/-1;
    font-size: 24px;
  }
  .choice-name small {
    font-size: 8px;
    line-height: 1.65;
    margin-top: 8px;
    min-height: 40px;
  }
  .funding-result {
    padding: 24px;
  }
  .funding-visual {
    max-width: 400px;
    margin: 20px auto 0;
    height: 176px;
  }
  .gain-number > span {
    font-size: 120px;
  }
  .drawn-cards {
    width: 150px;
    margin-right: 25px;
  }
  .draw-card {
    width: 110px;
  }
  .attack-meter {
    max-width: 410px;
    margin: 20px auto 24px;
  }
  .funding-result h3 {
    font-size: 32px;
  }
  .funding-result > p {
    font-size: 13px;
    max-width: 100%;
  }
  .funding-footer {
    font-size: 7px;
  }
  .card-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .gallery-card {
    padding: 17px;
  }
  .gallery-caption h3 {
    font-size: 26px;
  }
  .gallery-caption p {
    font-size: 12px;
  }
  .gallery-caption > span {
    font-size: 8px;
  }
  .inspect-label {
    font-size: 8px;
  }
  .opensource-copy {
    padding: 48px 30px 48px var(--page);
  }
  .opensource-copy h2 {
    font-size: 74px;
    margin: 23px 0;
  }
  .opensource-copy .opensource-lead {
    font-size: 19px !important;
  }
  .opensource-copy p:not(.eyebrow) {
    font-size: 12px;
  }
  .opensource-copy .text-link {
    font-size: 11px;
  }
  .opensource-art {
    padding: 45px 20px;
  }
  .os-stamp {
    font-size: 6px;
    right: 17px;
  }
  .terminal-header {
    padding: 10px;
    font-size: 7px;
    gap: 5px;
  }
  .terminal-body {
    padding: 24px 15px 20px;
  }
  .terminal-label {
    font-size: 7px;
  }
  .fallen-founders {
    gap: 10px;
  }
  .fallen-founders img {
    width: 29px;
  }
  .merge-arrow {
    font-size: 27px;
    letter-spacing: 15px;
    padding-left: 16px;
  }
  .opensource-team {
    font-size: 10px;
    padding: 13px 5px;
  }
  .opensource-team > svg {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }
  .battle-line {
    gap: 6px;
    font-size: 6px;
  }
  .battle-line b {
    font-size: 39px;
  }
  .last-startup {
    font-size: 9px;
    padding: 11px 7px;
    gap: 10px;
  }
  .terminal-bottom {
    font-size: 15px;
  }
  .human-layout {
    gap: 26px;
    grid-template-columns: 1fr 1fr;
    margin-top: 33px;
  }
  .friends-photo {
    padding: 7px;
  }
  .friends-photo img {
    aspect-ratio: 0.9;
    object-position: 30% center;
  }
  .friends-photo figcaption {
    font-size: 6px;
    flex-direction: column;
    gap: 4px;
    padding-top: 9px;
  }
  .human-copy h2 {
    font-size: 42px;
    margin-bottom: 20px;
  }
  .human-copy p {
    font-size: 12px;
  }
  .human-copy .text-link {
    font-size: 10px;
    line-height: 1.8;
  }
  .pdf-note {
    font-size: 8px;
  }
  .final-section {
    padding-top: 28px;
    padding-bottom: 37px;
  }
  .final-layout h2 {
    font-size: 76px;
  }
  .final-layout p {
    font-size: 12px;
  }
  .final-layout .button {
    font-size: 13px;
    min-width: 230px;
    padding: 17px;
  }
  .final-art {
    height: 280px;
  }
  .final-card {
    width: 153px;
    left: calc(50% - 77px);
    top: 16px;
  }
  .final-card-back {
    transform: translate(-30px, 2px) rotate(-16deg);
  }
  .final-card-front {
    transform: translate(24px, -8px) rotate(10deg);
  }
  .final-art-label {
    font-size: 7px;
    right: -10px;
    bottom: 0;
  }
  .final-meta {
    font-size: 7px;
  }
  .final-meta span {
    margin: 0 3px;
  }
  .final-topline {
    font-size: 7px;
  }
  .site-footer {
    grid-template-columns: 0.6fr 1fr 1.3fr;
    padding-top: 34px;
    gap: 20px;
  }
  .site-footer > p {
    font-size: 10px;
  }
  .site-footer nav {
    font-size: 9px;
    gap: 10px;
  }
  .dialog-copy {
    padding: 66px 23px 26px;
  }
  .dialog-copy h2 {
    font-size: 38px;
  }
  .dialog-art {
    padding: 22px;
  }
  .dialog-copy > p:not(.eyebrow):not(.dialog-type) {
    font-size: 12px;
  }
  .dialog-copy .dialog-aside {
    font-size: 11px !important;
  }
  .dialog-copy .text-link {
    font-size: 10px;
  }
}
@media (max-width: 540px) {
  :root {
    --page: 22px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 24px;
  }
  .hero-copy {
    display: contents;
  }
  .hero .eyebrow {
    order: 1;
    font-size: 8px;
    white-space: normal;
    line-height: 1.5;
  }
  .hero h1 {
    order: 2;
    font-size: clamp(58px, 16vw, 72px);
    line-height: 0.86;
    margin: 19px 0 19px;
    letter-spacing: -0.025em;
  }
  .hero-description {
    order: 3;
    max-width: 320px;
    font-size: 12px;
    line-height: 1.55;
  }
  .hero-actions {
    order: 4;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  .hero .button-large {
    font-size: 13px;
    padding: 16px 18px;
    gap: 24px;
    min-height: 53px;
    flex: 1;
    justify-content: space-between;
  }
  .hero-actions .text-link {
    font-size: 10px;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }
  .hero-art {
    order: 5;
    min-height: 335px;
    height: 335px;
    align-self: auto;
    margin-top: 10px;
  }
  .card-fan {
    height: 330px;
    width: 100%;
    max-width: 400px;
    margin-top: 0;
  }
  .hero-card {
    width: 177px;
    left: calc(50% - 88px);
    top: 31px;
    border-radius: 7px;
  }
  .hero-card img {
    border-radius: 7px;
  }
  .fan-back {
    transform: translate(-55px, -2px) rotate(-25deg);
  }
  .fan-left {
    transform: translate(-63px, 20px) rotate(-17deg);
  }
  .fan-right {
    transform: translate(70px, 0) rotate(18deg);
  }
  .fan-front {
    transform: translate(1px, 22px) rotate(-5deg);
  }
  .arena-orbit {
    width: 280px;
    height: 280px;
    top: calc(50% - 140px);
  }
  .orbit-two {
    width: 370px;
    height: 370px;
    top: calc(50% - 185px);
  }
  .art-coordinate {
    display: none;
  }
  .art-tag {
    bottom: 6px;
    left: 0;
    font-size: 7px;
  }
  .art-tag span:not(.crosshair) {
    font-size: 7px;
  }
  .inspection-hint {
    bottom: 9px;
    right: 0;
    font-size: 6px;
    max-width: 135px;
    text-align: right;
  }
  .game-meta {
    order: 6;
    justify-content: center;
    font-size: 9px;
    margin-top: 23px;
  }
  .game-meta > span {
    padding: 0 16px;
  }
  .game-meta b {
    font-size: 11px;
  }
  .hero-bottom {
    order: 7;
    margin-top: 25px;
    gap: 10px;
    font-size: 7px;
    letter-spacing: 0;
  }
  .hero:after {
    top: 400px;
    width: 520px;
    height: 520px;
    right: -160px;
  }
  .section-shell {
    padding-top: 44px;
    padding-bottom: 46px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 28px 0;
  }
  .section-heading h2 {
    font-size: clamp(49px, 13vw, 70px);
  }
  .section-heading > p {
    font-size: 13px;
    max-width: 100%;
  }
  .section-heading > p br + br {
    display: none;
  }
  .section-heading > p strong {
    display: block;
    margin-top: 12px;
  }
  .fight-section .section-heading > p strong {
    display: inline;
    margin-top: 0;
  }
  .section-kicker {
    font-size: 7px;
    gap: 15px;
    padding-bottom: 16px;
  }
  .play-steps {
    grid-template-columns: 1fr;
  }
  .play-steps li {
    display: grid;
    grid-template-columns: 70px 1fr;
    column-gap: 17px;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .step-index {
    position: absolute;
    left: 15px;
    top: 16px;
    font-size: 7px;
  }
  .step-symbol {
    grid-column: 1;
    grid-row: 1/4;
    align-self: center;
    margin: 11px 0 0;
    width: 70px;
    height: 80px;
  }
  .play-steps h3 {
    grid-column: 2;
    font-size: 28px;
    margin: 0 0 9px;
  }
  .play-steps p {
    grid-column: 2;
    font-size: 12px;
    margin-bottom: 13px;
    max-width: 100%;
  }
  .step-foot {
    grid-column: 2;
    font-size: 7px;
  }
  .funding-heading {
    grid-template-columns: 1fr;
    gap: 19px;
    margin: 28px 0;
  }
  .funding-heading h2 {
    font-size: clamp(63px, 16vw, 85px);
  }
  .funding-heading p {
    font-size: 13px;
    max-width: 100%;
    padding: 0;
  }
  .demo-note {
    margin-top: 12px;
    font-size: 8px;
  }
  .funding-choice {
    padding: 13px 9px;
    gap: 12px 5px;
  }
  .choice-name {
    font-size: 21px;
  }
  .choice-name small {
    font-size: 7px;
    letter-spacing: -0.04em;
    min-height: 51px;
  }
  .choice-index {
    font-size: 7px;
  }
  .choice-gain {
    font-size: 29px;
  }
  .funding-result {
    padding: 20px 18px 24px;
  }
  .result-topline {
    font-size: 7px;
    gap: 8px;
  }
  .risk-level {
    font-size: 6px;
    padding: 4px 6px;
  }
  .funding-visual {
    height: 172px;
    margin-top: 20px;
  }
  .gain-number > span {
    font-size: 111px;
  }
  .gain-number small {
    font-size: 8px;
  }
  .drawn-cards {
    width: 132px;
    margin-right: 18px;
    height: 161px;
  }
  .draw-card {
    width: 100px;
  }
  .attack-meter {
    gap: 5px;
    margin-top: 20px;
    font-size: 7px;
  }
  .attack-meter > span:not(.attack-line) {
    padding: 5px 7px;
  }
  .funding-result h3 {
    font-size: 29px;
  }
  .funding-result > p {
    font-size: 12px;
  }
  .funding-footer {
    font-size: 6px;
    gap: 10px;
    margin-top: 19px;
  }
  .card-gallery {
    gap: 25px 13px;
  }
  .gallery-card {
    padding: 10px;
  }
  .inspect-label {
    font-size: 6px;
    margin-top: 11px;
  }
  .gallery-caption {
    padding-top: 13px;
  }
  .gallery-caption > span {
    font-size: 6px;
    letter-spacing: 0;
  }
  .gallery-caption h3 {
    font-size: 23px;
    margin-top: 7px;
  }
  .gallery-caption p {
    font-size: 11px;
  }
  .opensource-section {
    grid-template-columns: 1fr;
  }
  .opensource-copy {
    padding: 44px var(--page);
  }
  .opensource-copy h2 {
    font-size: clamp(91px, 24vw, 125px);
    margin-top: 22px;
  }
  .opensource-copy .opensource-lead {
    font-size: 22px !important;
  }
  .opensource-copy p:not(.eyebrow) {
    font-size: 13px;
    max-width: 100%;
  }
  .opensource-copy .text-link {
    font-size: 12px;
  }
  .opensource-art {
    padding: 66px 39px 45px;
  }
  .os-stamp {
    right: 23px;
    top: 20px;
    font-size: 7px;
  }
  .source-terminal {
    max-width: 340px;
  }
  .terminal-header {
    padding: 12px;
    font-size: 8px;
  }
  .terminal-body {
    padding: 25px 20px 23px;
  }
  .terminal-label {
    font-size: 8px;
  }
  .fallen-founders {
    gap: 18px;
  }
  .fallen-founders img {
    width: 35px;
  }
  .merge-arrow {
    font-size: 33px;
    letter-spacing: 18px;
    padding-left: 19px;
  }
  .opensource-team {
    font-size: 12px;
  }
  .opensource-team > svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }
  .battle-line {
    font-size: 7px;
    gap: 13px;
  }
  .last-startup {
    font-size: 11px;
  }
  .terminal-bottom {
    font-size: 16px;
  }
  .human-layout {
    grid-template-columns: 1fr;
    gap: 33px;
    margin-top: 30px;
  }
  .friends-photo img {
    aspect-ratio: 1.55;
    object-position: center;
  }
  .friends-photo figcaption {
    font-size: 6px;
    flex-direction: row;
    padding: 11px 0 3px;
  }
  .human-copy h2 {
    font-size: clamp(48px, 12.8vw, 64px);
    margin-bottom: 22px;
  }
  .human-copy p {
    font-size: 13px;
    max-width: 100%;
  }
  .human-copy .text-link {
    font-size: 12px;
  }
  .pdf-note {
    font-size: 8px;
  }
  .final-section {
    padding-top: 25px;
    padding-bottom: 35px;
  }
  .final-topline {
    font-size: 6px;
    line-height: 1.8;
    gap: 20px;
    padding-bottom: 17px;
  }
  .final-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
    gap: 23px;
  }
  .final-layout h2 {
    font-size: clamp(78px, 21vw, 110px);
    margin-bottom: 22px;
  }
  .final-layout p {
    font-size: 14px;
    margin-bottom: 23px;
  }
  .final-layout .button {
    min-width: 100%;
    padding: 20px 22px;
    font-size: 15px;
  }
  .final-meta {
    font-size: 8px;
    margin-top: 19px;
  }
  .final-meta span {
    margin: 0 6px;
  }
  .final-art {
    height: 260px;
    width: 100%;
    margin-top: 0;
  }
  .final-card {
    width: 155px;
    left: calc(50% - 78px);
    top: 12px;
  }
  .final-card-back {
    transform: translate(-42px, 2px) rotate(-16deg);
  }
  .final-card-front {
    transform: translate(35px, -8px) rotate(10deg);
  }
  .final-art-label {
    right: 0;
    bottom: 15px;
    font-size: 7px;
  }
  .site-footer {
    grid-template-columns: 1fr 1.4fr;
    gap: 24px 18px;
    padding-top: 30px;
  }
  .site-footer > .wordmark {
    grid-column: 1;
    grid-row: 1;
  }
  .site-footer > p {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
  }
  .site-footer nav {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 10px;
    gap: 14px;
    text-align: right;
  }
  .card-dialog {
    width: calc(100% - 28px);
    max-height: calc(100dvh - 28px);
  }
  .dialog-layout {
    grid-template-columns: 1fr;
  }
  .dialog-art {
    padding: 20px 30px;
  }
  .dialog-art img {
    max-height: 48dvh;
    width: auto;
  }
  .dialog-copy {
    padding: 24px;
    position: static;
  }
  .dialog-copy > .eyebrow {
    font-size: 8px;
    margin-bottom: 13px;
  }
  .dialog-copy h2 {
    font-size: 37px;
    margin-bottom: 13px;
  }
  .dialog-type {
    margin-bottom: 12px;
    font-size: 8px;
  }
  .dialog-copy > p:not(.eyebrow):not(.dialog-type) {
    font-size: 12px;
    margin-bottom: 13px;
  }
  .dialog-copy .dialog-aside {
    font-size: 11px !important;
  }
  .dialog-copy .text-link {
    font-size: 10px;
    margin-top: 3px;
  }
  .dialog-close {
    font-size: 10px;
    padding: 6px 10px;
  }
}
/* Learning controls stay readable without changing the Arena's visual effects. */
.funding-rule {
  max-width: 850px;
  margin-top: 24px;
  font-size: 16px;
}
.combat-note {
  color: var(--text-muted);
  font-size: 14px;
}
.combat-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.combat-choices[hidden],
.fight-support[hidden] {
  display: none;
}
.combat-choices button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
}
.combat-choices button[aria-pressed="true"] {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.fight-support {
  width: min(100%, 86px);
}
.combat-math {
  margin-top: 20px;
  font-size: 16px;
}
.combat-rules-link {
  min-height: 44px;
  margin-top: 18px;
}
.faq-preview-list {
  max-width: 900px;
}
.faq-preview-list details {
  border-top: 1px solid var(--border);
}
.faq-preview-list details:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-preview-list summary {
  min-height: 56px;
  padding: 16px 8px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
.faq-preview-list p {
  padding: 0 8px 22px;
  font-size: 16px;
}
.site-footer nav a,
a.step-foot,
.funding-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }
  html:has(.mobile-menu[open]) {
    scroll-padding-top: 236px;
  }
  .site-header {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-height: 60px;
    padding: 8px var(--page);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
  }
  .site-header .wordmark img {
    width: 68px;
  }
  .site-header .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    min-width: 0;
  }
  .mobile-menu summary {
    display: list-item;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 20px;
  }
  .mobile-menu nav {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    font-size: 15px;
  }
  .mobile-menu nav a {
    padding: 8px 0;
  }
  .header-buy {
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .hero-description,
  .section-heading > p,
  .play-steps p,
  .turn-choices dt,
  .turn-choices dd,
  .funding-heading p,
  .funding-result > p,
  .fight-triggers p,
  .fight-sequence p,
  .fight-bluff,
  .fight-result,
  .human-copy p,
  .opensource-copy p:not(.eyebrow) {
    font-size: 16px;
  }
  .hero-actions .text-link,
  .human-copy .text-link,
  .combat-rules-link {
    min-height: 44px;
    font-size: 15px;
  }
  .hero .button-large {
    font-size: 15px;
    white-space: normal;
  }
  .game-meta {
    flex-wrap: wrap;
    gap: 10px 0;
    font-size: 12px;
  }
  .game-meta b {
    font-size: 14px;
  }
  .funding-choices {
    flex-direction: column;
  }
  .funding-choice {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .funding-choice:last-child {
    border-bottom: 0;
  }
  .choice-index {
    display: none;
  }
  .choice-name {
    font-size: 28px;
  }
  .choice-name small {
    min-height: 0;
    font-size: 14px;
    font-family: var(--body);
    letter-spacing: 0;
    margin-top: 6px;
  }
  .choice-gain {
    font-size: 38px;
  }
  .funding-footer {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .fight-label {
    font-size: 11px;
  }
  .fight-matchup figure p {
    font-size: 14px;
  }
  .dialog-layout {
    grid-template-columns: 1fr;
  }
  .dialog-art {
    padding: 20px;
  }
  .dialog-art img {
    max-height: 48vh;
    max-height: 48dvh;
  }
  .dialog-copy {
    padding: 24px;
  }
  .dialog-copy > p:not(.eyebrow):not(.dialog-type) {
    font-size: 16px;
  }
  .dialog-copy .dialog-aside {
    font-size: 14px !important;
  }
  .dialog-close {
    font-size: 13px;
    padding: 10px 14px;
  }
}
@media (max-width: 540px) {
  :root {
    --page: 16px;
  }
  .hero h1 {
    font-size: clamp(54px, 15.5vw, 72px);
    line-height: 0.96;
  }
  .hero .eyebrow {
    font-size: 11px;
  }
  .section-heading h2 {
    font-size: clamp(40px, 11vw, 60px);
  }
  .funding-heading h2 {
    font-size: clamp(48px, 13vw, 70px);
  }
  .play-steps li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 16px;
  }
  .step-symbol {
    width: 48px;
  }
  a.step-foot {
    font-size: 11px;
    line-height: 1.6;
  }
  .fight-example {
    padding: 14px;
  }
  .fight-matchup {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 6px;
  }
  .fight-matchup figure p strong {
    font-size: 30px;
  }
  .fight-support {
    max-width: 72px;
  }
  .gallery-caption p {
    font-size: 14px;
  }
  .gallery-caption > span,
  .inspect-label {
    font-size: 10px;
  }
  .opensource-copy h2 {
    font-size: clamp(66px, 20vw, 100px);
  }
  .human-copy h2 {
    font-size: clamp(40px, 11vw, 60px);
  }
  .final-layout h2 {
    font-size: clamp(58px, 17vw, 90px);
  }
  .result-topline {
    font-size: 10px;
  }
  .risk-level,
  .gain-number small {
    font-size: 10px;
  }
  .attack-meter {
    font-size: 10px;
  }
  .inspection-hint {
    font-size: 11px;
    max-width: 135px;
  }
  .gallery-refresh p:not(.sr-only) {
    font-size: 14px;
  }
  .site-footer nav {
    font-size: 14px;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .will-reveal {
    opacity: 1;
    transform: none;
  }
  .friends-photo.will-reveal {
    transform: rotate(-2deg);
  }
  .hero-card {
    will-change: auto;
  }
}
