/* Home screen — redesigned by Claude */
:root {
  --bg: #f4f2ec;
  --paper: #fbfaf6;
  --ink: #1b1b17;
  --muted: #6b6a62;
  --line: #dedbd1;
  --clay: #d97757;
  --clay-soft: #f3d3c3;
  --lime: #e4ea4f;
  --lime-soft: #f2f5b5;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

main { overflow-x: clip; }

/* ---------- top bar ---------- */
.top {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark { font-weight: 700; font-size: 24px; letter-spacing: -.04em; }
.wordmark span { color: var(--clay); }
.scoreline {
  display: flex; align-items: center; gap: 8px;
  font: 12px var(--mono); color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.scoreline b { color: var(--ink); font-weight: 600; min-width: 2ch; text-align: right; }
.scoreline .of { margin-left: -4px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #d4483a; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.top-link { font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

/* ---------- hero ---------- */
.hero {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 28px;
  text-align: center;
  animation: rise .8s var(--ease) both;
}
.eyebrow {
  display: inline-flex; gap: 10px; margin: 0 0 22px;
  font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.eyebrow .sep { color: var(--clay); }
h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(46px, 8.2vw, 112px);
  line-height: .95;
  letter-spacing: -.055em;
}
h1 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  position: relative;
  padding-right: .06em;
  isolation: isolate;
}
h1 em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .08em; height: .14em;
  background: var(--lime); z-index: -1; border-radius: 2px;
  transform-origin: left; animation: swipe .7s .5s var(--ease) both;
}
@keyframes swipe { from { transform: scaleX(0); } }
.lede {
  max-width: 560px; margin: 26px auto 0;
  font-size: 18px; line-height: 1.55; color: var(--muted);
}

/* ---------- arena ---------- */
.arena {
  width: min(1280px, calc(100% - 48px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 1.1fr) 1fr;
  gap: 20px;
  align-items: stretch;
}
.fighter {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 2;
  transition: transform .45s var(--ease), opacity .35s, filter .35s, box-shadow .45s var(--ease), border-color .3s;
  animation: rise .8s .15s var(--ease) both;
}
.fighter.codex { animation-delay: .25s; }
.fighter::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: var(--accent);
}
.claude { --accent: var(--clay); --soft: var(--clay-soft); }
.codex { --accent: var(--lime); --soft: var(--lime-soft); }

.fighter-top { display: flex; justify-content: space-between; }
.tag { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fighter h2 { margin: 18px 0 8px; line-height: .9; font-weight: 400; }
.claude h2 { font-family: var(--serif); font-size: clamp(64px, 6.4vw, 92px); letter-spacing: -.03em; }
.codex h2 { font-family: var(--mono); font-weight: 600; font-size: clamp(50px, 5vw, 72px); letter-spacing: -.08em; }
.taunt { margin: 0 0 22px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.crimes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.crimes li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.crimes li::before { content: "✕"; font-size: 11px; color: var(--ink); background: var(--soft); width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; flex: none; transform: translateY(4px); }
.record {
  margin-top: auto;
  font: 12px var(--mono); color: var(--muted);
  padding: 10px 12px; border-radius: 10px; background: var(--bg);
}
.record b { color: var(--ink); font-weight: 600; }
.cta {
  margin-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  height: 52px; padding: 0 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
}
.cta i { font-style: normal; transition: transform .35s var(--ease); }
.fighter:hover, .fighter:focus-visible {
  transform: translateY(-6px);
  border-color: var(--ink);
  box-shadow: 0 24px 50px -24px rgba(27, 27, 23, .35);
}
.fighter:hover .cta i, .fighter:focus-visible .cta i { transform: translateX(6px); }
.fighter.claude:hover .cta { background: var(--clay); }
.fighter.codex:hover .cta { background: var(--lime); color: var(--ink); }
.arena[data-lean] .fighter:not(:hover):not(:focus-visible) { opacity: .55; filter: saturate(.3); }
.fighter.picked { transform: translateY(-6px) scale(1.02); border-color: var(--ink); opacity: 1 !important; filter: none !important; }

/* ---------- centre ring ---------- */
.ring {
  position: relative;
  display: grid; place-items: center; align-content: center;
  border-radius: 24px;
  z-index: 1;
  background: radial-gradient(closest-side, #ebe8df 0%, rgba(235, 232, 223, 0) 100%);
  animation: rise .8s .2s var(--ease) both;
  min-height: 360px;
}
.ring img {
  width: 112%; max-width: none; height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  pointer-events: none;
  transition: transform .6s var(--ease);
  user-select: none; -webkit-user-drag: none;
}
.arena[data-lean="claude"] .ring img { transform: translateX(-4%) rotate(-4deg) scale(1.04); }
.arena[data-lean="codex"] .ring img { transform: translateX(4%) rotate(4deg) scale(1.04); }
.vs {
  width: 64px; height: 64px; margin-top: -10px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--bg);
  font: italic 30px/1 var(--serif);
  box-shadow: 0 0 0 8px var(--bg);
  transition: transform .5s var(--ease);
}
.arena[data-lean] .vs { transform: rotate(-12deg) scale(1.08); }
.dice {
  margin-top: 18px;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 9px 16px; font-size: 13px;
  transition: border-color .2s, transform .2s;
}
.dice:hover { border-color: var(--ink); }
.dice:active { transform: scale(.96); }
.dice span { display: inline-block; transition: transform .6s var(--ease); }
.dice.rolling span { transform: rotate(720deg); }

/* ---------- marquee ---------- */
.marquee {
  margin: 72px 0 0;
  background: var(--ink); color: var(--bg);
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.03);
}
.track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 18px 0 18px 28px;
  font: 400 26px var(--serif); font-style: italic; white-space: nowrap;
}
.track span::after { content: "✕"; font: 600 14px var(--mono); color: var(--clay); font-style: normal; }
.track span:nth-child(even)::after { color: var(--lime); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- how it works ---------- */
.how {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 72px;
}
.how-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.how-head h3 { margin: 0; font-weight: 600; font-size: 32px; letter-spacing: -.03em; }
.how-head p { margin: 0; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps b { font: 12px var(--mono); color: var(--clay); }
.steps h4 { margin: 10px 0 8px; font: 400 34px/1.05 var(--serif); }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 34ch; }

/* ---------- footer ---------- */
.foot {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px 0 32px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* ---------- the one tiny troll on this page ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 50;
  width: min(340px, calc(100% - 40px));
  padding: 16px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(27, 27, 23, .35);
  animation: rise .6s var(--ease) both;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 13px; }
.cookie-actions .solid { background: var(--ink); color: #fff; border-color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .arena { grid-template-columns: 1fr 1fr; }
  .ring { grid-column: 1 / -1; order: -1; min-height: 0; padding-bottom: 8px; }
  .ring img { width: min(560px, 100%); }
}
@media (max-width: 640px) {
  .top { width: calc(100% - 32px); height: 64px; }
  .top-link { display: none; }
  .scoreline { font-size: 11px; padding: 6px 10px; }
  .hero { width: calc(100% - 32px); padding-top: 32px; }
  h1 { letter-spacing: -.045em; }
  .lede { font-size: 16px; }
  .arena { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 14px; }
  .arena[data-lean] .fighter:not(:hover):not(:focus-visible) { opacity: 1; filter: none; }
  .fighter { padding: 22px 20px 20px; }
  .marquee { margin-top: 48px; }
  .track span { font-size: 21px; }
  .how { width: calc(100% - 32px); padding: 64px 0 48px; }
  .how-head { flex-direction: column; gap: 6px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .foot { width: calc(100% - 32px); flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
