/* MacroCoach's site. The brand's colours are the window's (src/macrocoach/gui.py); the
   window fragments ([data-ui]) are drawn as the app draws them, at their real size. Dark
   only, like the app. No inline styles anywhere: the CSP allows this file only. */

@font-face {
  font-family: "General Sans";
  src: url("/fonts/general-sans-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The window's palette. */
  --bg: #0e1012;
  --bg-up: #16191c;
  --bg-up2: #1f2327;
  --bg-up3: #2a2f34;
  --line: #23272b;
  --ink: #ece7df;
  --muted: #a39e96;
  --accent: #f2e3cd;
  --accent-hover: #fff2de;
  --on-accent: #0e1012;
  --on-accent-muted: #4a4640;
  --good: #7bc47f;
  --warn: #d9a84e;
  --bad: #e0645c;

  /* Five sizes do the work. */
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  --step-head: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --step-display: clamp(2.25rem, 0.5rem + 6.5vw, 7rem);

  --gutter: clamp(20px, 2.8vw, 40px);
  --gap-section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "General Sans", "Segoe UI", system-ui, sans-serif;

  /* The window's own surfaces, for the fragments. */
  --c-bg: #0e1012;
  --c-card: #16191c;
  --c-border: #23272b;
  --c-secondary: #1f2327;
  --c-muted: #8e8a83;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* A section reached from the top bar starts below the bar, its heading whole. */
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* On the cream fields the ring is dark. */
.cta :focus-visible,
.get-main :focus-visible,
.lead-tile :focus-visible,
.versus-out :focus-visible,
.field:nth-child(4) :focus-visible {
  outline-color: var(--on-accent);
}

a,
button {
  touch-action: manipulation;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
}

.skip:focus {
  top: 12px;
}

h2 {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 20px;
  height: 32px;
}

/* The one button shape: square, flat, cream. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--step-body);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.button:hover {
  background: var(--accent-hover);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button.big {
  min-height: 64px;
  padding: 18px 32px;
  font-size: var(--step-lead);
}

/* --- The top bar: the brand, the sections, the language and the download. ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px var(--gutter);
  background: var(--bg);
}

.top-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.top-nav a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
}

.top-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.top-act {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button.small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9375rem;
}

/* --- Hero: two halves by tone, the words left, the working window right. ------------ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - 68px);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--gutter) 64px;
  background: var(--bg);
}

.hero-copy {
  padding-bottom: 8px;
}

h1.masked {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.masked .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.masked .line > span {
  display: inline-block;
  animation: rise 900ms var(--ease-out) both;
}

.masked .line + .line > span {
  animation-delay: 110ms;
}

.hero-lead {
  margin-top: 32px;
  max-width: 44ch;
  color: var(--ink);
  animation: fade-up 700ms var(--ease-out) 520ms both;
}

.hero-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 32px;
  animation: fade-up 700ms var(--ease-out) 600ms both;
}

.hero-note {
  color: var(--muted);
  font-size: var(--step-small);
}

.hero-stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px var(--gutter) 48px;
  background: var(--bg-up);
}

.lang {
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 4px 0;
}

.lang:hover {
  text-decoration: underline;
}

.hero-figure {
  width: min(680px, 100%);
}

.chooser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.chooser-ask {
  font-weight: 600;
}

.lane-picks {
  display: flex;
  gap: 6px;
}

.lane-pick {
  min-width: 58px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  background: var(--bg-up3);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out);
}

.lane-pick:hover {
  background: #3a3f45;
  transform: translateY(-2px);
}

.lane-pick:active {
  transform: translateY(0) scale(0.97);
}

.lane-pick[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* Until the first press, the buttons nod once in a while so they read as pressable. */
.lane-picks:not(.used) .lane-pick:not([aria-pressed="true"]) {
  animation: nudge 3.2s var(--ease-out) 1.6s infinite;
}

.lane-picks:not(.used) .lane-pick:nth-child(2) { animation-delay: 1.7s; }
.lane-picks:not(.used) .lane-pick:nth-child(3) { animation-delay: 1.8s; }
.lane-picks:not(.used) .lane-pick:nth-child(4) { animation-delay: 1.9s; }
.lane-picks:not(.used) .lane-pick:nth-child(5) { animation-delay: 2s; }

@keyframes nudge {
  0%, 12%, 100% {
    transform: none;
  }
  6% {
    transform: translateY(-4px);
  }
}

.lane-title {
  margin: 20px 0 12px;
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-figure figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--step-small);
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- The window, as the app draws it. ---------------------------------------------- */

[data-ui] {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}

.window {
  background: var(--c-bg);
  border: 1px solid var(--c-border); /* taste-skill-ignore: the app's own window */
  border-radius: 14px;
  padding: 12px;
}

.win-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.win-mark {
  width: 15px;
  height: 24px;
}

.win-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.win-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--c-secondary);
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
}

.win-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-muted);
}

.win-status.live {
  color: var(--good);
}

.win-status.live .dot {
  background: var(--good);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(0.6);
    opacity: 0.5;
  }
}

.pills {
  display: flex;
  margin-left: auto;
  padding: 2px;
  border-radius: 999px;
  background: var(--c-secondary);
}

.pill {
  border: 0;
  border-radius: 999px;
  padding: 4px 9px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 140ms ease, color 140ms ease;
}

.pill:hover {
  background: var(--bg-up3);
}

.pill[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.turn {
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--c-secondary);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.turn.urgent {
  background: var(--bad);
  color: var(--on-accent);
  animation: flash 1s steps(2, jump-none) infinite;
}

@keyframes flash {
  50% {
    background: #7a2f2a;
    color: var(--ink);
  }
}

.strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--c-card);
}

.strip .side {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.strip .vs {
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 700;
}

.seat {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

.seat .face,
.seat .face.empty {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.seat.me .face,
.seat.me .face.empty {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.seat .lane {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-muted);
  white-space: nowrap;
}

.seat .cap {
  color: var(--c-muted);
  font-weight: 500;
}

.seat .cap.you {
  color: var(--accent);
  font-weight: 700;
}

.seat .who {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.face {
  display: inline-block;
  flex: none;
  border-radius: 8px;
  background: var(--c-border);
}

.face.empty.s20 { width: 20px; height: 20px; }
.face.empty.s32 { width: 32px; height: 32px; }
.face.empty.s40 { width: 40px; height: 40px; }
.face.empty.s44 { width: 44px; height: 44px; }

.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-top: 10px;
}

.list-title {
  padding: 2px 4px 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card {
  display: grid;
  grid-template-columns: 18px 44px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px 10px 9px 6px;
  border: 1px solid var(--c-border); /* taste-skill-ignore: the app's own card */
  border-radius: 12px;
  background: var(--c-card);
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}

.card.hovered {
  border-color: var(--accent);
}

.card .rank {
  padding-top: 11px;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.card .rank.you {
  padding-top: 13px;
  color: var(--accent);
  font-size: 9.5px;
}

.card > .face {
  width: 44px;
  height: 44px;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.card .name {
  font-size: 15px;
  font-weight: 700;
}

.card .tag {
  align-self: center;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.card .tag.main {
  background: var(--warn);
  color: var(--on-accent);
}

.card .tag.off {
  background: var(--c-secondary);
  color: var(--warn);
}

/* Name and verdict on the first line, the score under them. */
.card .score {
  order: 3;
  flex-basis: 100%;
  color: var(--c-muted);
  font-size: 11.5px;
}

.card .verdict {
  order: 2;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.reasons {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.reasons li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.55;
}

.reasons .icon {
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reasons .face {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  border-radius: 4px;
  vertical-align: -4px;
}

.reasons .val {
  margin-left: 5px;
  font-weight: 700;
  white-space: nowrap;
}

.wr {
  margin-left: 3px;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 700;
}

.card .small {
  margin-top: 3px;
  color: var(--c-muted);
  font-size: 11.5px;
}

.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.muted { color: var(--c-muted); }
.text { color: var(--ink); }
.accent { color: var(--accent); }

/* --- One draft in 45 seconds: the launch video, upright as it was made. ------------- */

.clip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  padding: var(--gap-section) var(--gutter) 0;
}

.clip-text {
  grid-column: 1 / 7;
}

.clip-text p {
  margin-top: 24px;
  max-width: 40ch;
  font-size: var(--step-lead);
  line-height: 1.3;
}

.clip-text .button {
  margin-top: 40px;
}

.clip-video {
  position: relative;
  grid-column: 8 / -1;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-up);
}

.clip-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Over the cover until the first click: a cream disc and what it plays, in the cover's
   empty last quarter, under its question. */
.clip-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 7%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--step-small);
  font-weight: 600;
  cursor: pointer;
}

.clip-play[hidden] {
  display: none;
}

.clip-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.clip-icon::before {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--on-accent);
}

.clip-play:hover .clip-icon {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.clip-play:focus-visible {
  outline-offset: -4px;
}

/* --- In a real champ select: three stills of the window. -------------------------- */

.real {
  padding: var(--gap-section) var(--gutter) 0;
}

.real-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}

.real-head h2 {
  grid-column: 1 / 8;
}

.real-head p {
  grid-column: 9 / -1;
  font-size: var(--step-lead);
  line-height: 1.3;
}

.real-shots {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto 1fr;
  gap: 24px;
  margin-top: 56px;
}

.real-shots .shot-main {
  grid-row: 1 / 3;
}

.real-shots img {
  width: 100%;
}

.real-shots figcaption {
  margin-top: 12px;
  max-width: 48ch;
}

/* A reserved place for the owner's recordings, shown only in a preview build. */
.slot {
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg-up);
  color: var(--muted);
  text-align: center;
}

/* --- Your main, no sugarcoating: the draft in on the dark field, the card out on the
   cream one; the heading split across the edge. --------------------------------------- */

.versus {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  min-height: 90svh;
  margin-top: var(--gap-section);
  isolation: isolate;
}

.versus::before,
.versus::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: -1;
}

.versus::before {
  left: 0;
  background: var(--bg-up);
}

.versus::after {
  right: 0;
  background: var(--accent);
}

.versus-in {
  padding: clamp(64px, 14svh, 160px) var(--gutter) 48px;
  max-width: 40rem;
}

.versus-lead {
  max-width: 36ch;
  font-size: var(--step-lead);
  line-height: 1.3;
  font-weight: 600;
}

.versus-say {
  margin-top: 28px;
  max-width: 46ch;
}

.hover-champ {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  vertical-align: bottom;
}

.hover-champ .face {
  width: 40px;
  height: 40px;
}

.enemies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.enemy {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px 8px 8px;
  border: 0;
  background: var(--bg-up3);
  color: var(--ink);
  font-size: var(--step-body);
  font-weight: 600;
  text-align: left;
  transition: background-color 140ms ease, transform 140ms var(--ease-out);
}

.enemy:hover {
  background: #3a3f45;
}

.enemy:active {
  transform: scale(0.98);
}

.enemy[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.enemy .face {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.enemy span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.versus-note {
  margin-top: 28px;
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--step-small);
}

.versus-out {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(64px, 14svh, 160px) var(--gutter) 48px;
}

.versus-pool {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  padding: 12px;
  border-radius: 14px;
  background: var(--c-bg);
}

.versus-pool .reasons li {
  font-size: 14px;
}

.versus-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding-bottom: 32px;
}

.versus-title span:first-child {
  padding-left: var(--gutter);
  background: var(--bg-up);
  color: var(--ink);
}

.versus-title span:last-child {
  padding-right: var(--gutter);
  background: var(--accent);
  color: var(--on-accent);
  text-align: right;
}

/* --- Why not a stats site: a table with no lines, MacroCoach's column filled. ----- */

.compare {
  padding: var(--gap-section) var(--gutter) 0;
}

.compare h2 {
  margin-bottom: 72px;
}

.compare table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.compare th,
.compare td {
  height: 70px;
  padding: 12px 20px;
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
}

.compare thead th {
  height: auto;
  padding-top: 0;
  padding-bottom: 16px;
  font-weight: 700;
  vertical-align: bottom;
}

.compare thead th:first-child {
  width: 34%;
  color: var(--muted);
  font-weight: 500;
}

.compare tbody th {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.15;
}

.compare tbody tr:nth-child(odd) > * {
  background: var(--bg-up);
}

.compare td.us {
  color: var(--accent);
  font-weight: 600;
}

.compare thead .us span {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--on-accent);
}

/* --- How it follows a draft: four fields, the same window further along. --------- */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--gap-section);
}

.field {
  display: flex;
  flex-direction: column;
  padding: 32px 24px 48px;
}

.field:nth-child(1) { background: var(--bg-up); }
.field:nth-child(2) { background: var(--bg-up2); }
.field:nth-child(3) { background: #343a40; }
.field:nth-child(4) { background: var(--accent); color: var(--on-accent); }

.field h2 {
  margin-bottom: 20px;
  font-size: var(--step-lead);
  line-height: 1.15;
}

.field-ui {
  margin-top: 28px;
  transition: transform 150ms var(--ease-out);
}

.field:hover .field-ui {
  transform: translateY(-6px);
}

.window.mini {
  padding: 10px;
}

.window.mini .card,
.window.mini .strip,
.window.mini .pcard {
  margin-top: 8px;
}

.window.mini .list-title {
  margin-top: 10px;
}

.window.mini .strip {
  grid-template-columns: 1fr;
  gap: 6px;
}

.window.mini .strip .vs {
  display: none;
}

.window.mini .seat .who {
  display: none;
}

.pcard {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--c-card);
}

.pc-who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}

.pc-emblem {
  width: 37px;
  height: 32px;
}

.pc-id {
  font-size: 14px;
  font-weight: 700;
}

.pc-rank {
  color: var(--c-muted);
  font-size: 12px;
}

.pc-lanes {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pc-box {
  padding: 8px;
  border-radius: 8px;
  background: var(--c-bg);
}

.pc-lane span {
  margin-left: 6px;
  font-weight: 500;
}

.pc-title {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.pc-title span {
  color: var(--c-muted);
  font-weight: 500;
}

.pc-lane {
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 700;
}

.pcard ul {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.pcard li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 8px;
  align-items: center;
}

.pcard li .face {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pc-name {
  font-size: 13px;
  font-weight: 700;
}

.pc-rec {
  color: var(--c-muted);
  font-size: 12px;
}

.clause {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

/* --- It never plays for you: a board of tiles. --------------------------------- */

.safe {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: var(--gap-section) var(--gutter) 0;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 15rem;
  padding: 24px;
  background: var(--bg-up);
}

.tile h3 {
  font-size: var(--step-lead);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead-tile {
  grid-column: span 2;
  background: var(--accent);
  color: var(--on-accent);
}

.lead-tile p {
  max-width: 36ch;
  font-size: var(--step-lead);
  line-height: 1.3;
}

/* --- Questions: the list left, one answer large on the right. ------------------- */

.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: var(--gap-section);
  padding: 0 var(--gutter);
}

.faq-list {
  grid-column: 1 / 6;
}

.faq-list h2 {
  margin-bottom: 40px;
}

.qa + .qa {
  margin-top: 6px;
}

.q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--step-body);
  font-weight: 500;
  text-align: left;
  transition: color 150ms ease;
}

.q::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-2px);
  transition: background-color 150ms ease;
}

.q:hover,
.q[aria-expanded="true"] {
  color: var(--ink);
}

.q[aria-expanded="true"]::before {
  background: var(--accent);
}

.a {
  padding: 4px 0 18px 22px;
  max-width: 60ch;
}

.faq-pane p {
  max-width: 30ch;
}

.a a,
.faq-pane a {
  color: var(--accent);
}

.js .faq.paned .a {
  display: none;
}

.faq-pane {
  grid-column: 7 / -1;
  align-self: start;
  position: sticky;
  top: 120px;
  padding-top: calc(var(--step-head) + 40px);
  font-size: var(--step-lead);
  line-height: 1.3;
  max-width: 30ch;
  transition: opacity 150ms ease;
}

.faq-pane.swap {
  opacity: 0;
}

/* --- Ready for your next draft: the page closes on a cream field. ------------------ */

.cta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: end;
  margin: var(--gap-section) var(--gutter) 30svh;
  padding: clamp(40px, 6vw, 96px);
  background: var(--accent);
  color: var(--on-accent);
}

.cta h2 {
  grid-column: 1 / 8;
  font-size: var(--step-display);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.cta-act {
  grid-column: 9 / -1;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.cta-act .button {
  background: var(--on-accent);
  color: var(--accent);
}

.cta-act .button:hover {
  background: #262a2f;
}

.cta-act p {
  color: var(--on-accent-muted);
}

/* --- Footer: one quiet line, then Riot's notice. -------------------------------- */

.foot {
  padding: 0 var(--gutter) 30px;
  font-size: 0.9375rem;
}

.foot-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 24px;
}

.foot-what,
.foot-year {
  color: var(--muted);
}

.foot-what a {
  color: var(--ink);
  text-decoration: none;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot-links a,
.foot-year a {
  color: var(--ink);
  text-decoration: none;
}

.foot-links a:hover,
.foot-year a:hover,
.foot-what a:hover {
  text-decoration: underline;
}

.foot-year {
  text-align: right;
}

.foot-riot {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* --- Inner pages: download, privacy, terms. ------------------------------------- */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gutter);
}

.bar-lang {
  font-size: 0.9375rem;
  text-decoration: none;
}

.bar-lang:hover {
  text-decoration: underline;
}

.get {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 64px 24px;
  padding: 64px var(--gutter) var(--gap-section);
}

.get-main {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 28px;
  padding: clamp(40px, 6vw, 96px);
  background: var(--accent);
  color: var(--on-accent);
}

.get-main h1 {
  font-size: var(--step-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.get-lead {
  max-width: 44ch;
  font-size: var(--step-lead);
  line-height: 1.3;
}

.get-main .button {
  background: var(--on-accent);
  color: var(--accent);
}

.get-main .button:hover {
  background: #262a2f;
}

.get-soon {
  font-weight: 600;
}

.get-facts {
  display: flex;
  gap: 40px;
}

.get-facts dt {
  color: var(--on-accent-muted);
  font-size: var(--step-small);
}

.get-block {
  grid-column: span 6;
}

.get-block h2 {
  margin-bottom: 20px;
  font-size: var(--step-lead);
  line-height: 1.15;
}

.get-block p + .get-list,
.get-block p + p {
  margin-top: 16px;
}

.get-list {
  display: grid;
  gap: 10px;
}

.get-list li {
  padding: 14px 18px;
  background: var(--bg-up);
}

ol.get-list {
  counter-reset: none;
}

.hash {
  margin: 16px 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--bg-up);
  font-size: 0.875rem;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

.get-block a {
  color: var(--accent);
}

.legal {
  max-width: calc(76ch + 2 * var(--gutter));
  margin-inline: auto;
  padding: 48px var(--gutter) var(--gap-section);
}

.legal h1 {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-top: 16px;
  color: var(--muted);
}

.legal-body {
  margin-top: 48px;
}

.legal-body h2 {
  margin: 56px 0 16px;
  font-size: var(--step-lead);
  line-height: 1.2;
}

.legal-body h3 {
  margin: 32px 0 12px;
  font-size: var(--step-body);
  font-weight: 700;
}

.legal-body p,
.legal-body ul,
.legal-body .table {
  margin-top: 14px;
}

.legal-body ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal-body li + li {
  margin-top: 6px;
}

.legal-body a {
  color: var(--accent);
}

.legal-body .table {
  overflow-x: auto;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.legal-body th,
.legal-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--bg-up);
}

.legal-back {
  margin-top: 64px;
}

/* --- The link preview (make_og.py), 1200x630. ------------------------------------- */

.og {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 1200px;
  height: 630px;
  overflow: hidden;
}

.og-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.og-title {
  white-space: nowrap;
  font-size: 46px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.og-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 22px;
}

.og-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-up);
}

.og-stage .window {
  width: 100%;
}

.og-stage .card + .card {
  margin-top: 8px;
}

/* --- Entrances: each part of a section rises once as it comes in. ---------------- */

.js [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(24px);
}

.js [data-reveal] {
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

/* --- Narrower screens. ------------------------------------------------------------- */

@media (max-width: 1100px) {
  .top-nav {
    display: none;
  }

  .top-act {
    margin-left: auto;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .field {
    min-height: 0;
    padding-bottom: 40px;
  }

  .field-ui {
    margin-top: 48px;
  }

  .field:first-child .field-ui {
    margin-top: 32px;
  }

  .safe {
    grid-template-columns: 1fr 1fr;
  }

  .lead-tile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .cta h2,
  .cta-act {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-text {
    min-height: 0;
    gap: 64px;
    padding-bottom: 56px;
  }

  .hero-stage {
    padding: 48px var(--gutter);
  }

  .clip-text,
  .clip-video {
    grid-column: 1 / -1;
  }

  .clip-video {
    margin-top: 32px;
  }

  .real-head {
    display: block;
  }

  .real-head p {
    margin-top: 20px;
  }

  .versus {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .versus::before,
  .versus::after {
    display: none;
  }

  .versus-in {
    grid-row: 1;
    max-width: none;
    padding: 64px var(--gutter) 40px;
    background: var(--bg-up);
  }

  .versus-out {
    grid-row: 3;
    padding: 32px var(--gutter) 64px;
    background: var(--accent);
  }

  .versus-title {
    grid-row: 2;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .versus-title span:first-child {
    padding: 0 var(--gutter) 24px;
    background: var(--bg-up);
  }

  .versus-title span:last-child {
    padding: 24px var(--gutter) 0;
    background: var(--accent);
    text-align: left;
  }

  .faq {
    display: block;
  }

  .faq-pane {
    display: none;
  }

  .get-block {
    grid-column: 1 / -1;
  }

  .foot-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .foot-year {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .lists {
    grid-template-columns: 1fr;
  }

  .lists .pool-col {
    display: none;
  }

  .lists {
    grid-template-columns: 1fr;
  }

  .lane-picks {
    width: 100%;
  }

  .lane-pick {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
  }

  .win-head .pills {
    order: 5;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .pill {
    flex: 1;
    padding: 6px 0;
  }

  .strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .strip .vs {
    display: none;
  }

  .enemies {
    grid-template-columns: 1fr 1fr;
  }

  .real-shots {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .real-shots .shot-main {
    grid-row: auto;
  }

  .compare h2 {
    margin-bottom: 40px;
  }

  .compare table,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
    height: auto;
  }

  .compare thead {
    display: none;
  }

  .compare tr {
    padding: 20px;
  }

  .compare tbody tr:nth-child(odd) {
    background: var(--bg-up);
  }

  .compare tbody tr > *,
  .compare tbody tr:nth-child(odd) > * {
    background: none;
  }

  .compare tbody th {
    padding: 0 0 10px;
    font-size: var(--step-lead);
    font-weight: 700;
  }

  .compare td {
    padding: 6px 0;
  }

  .compare td::before {
    content: attr(data-col) ": ";
    color: var(--muted);
  }

  .compare tbody tr > .us,
  .compare tbody tr:nth-child(odd) > .us {
    margin: 4px -20px;
    width: calc(100% + 40px);
    padding: 10px 20px;
    background: var(--accent);
  }

  .compare td.us::before {
    color: var(--on-accent-muted);
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .field {
    min-height: 0;
    padding: 40px var(--gutter);
  }

  .field h2 {
    margin-bottom: 8px;
  }

  .field-ui,
  .field:first-child .field-ui {
    order: 3;
    margin-top: 28px;
  }

  .clause {
    order: 2;
    margin-top: 0;
    padding-top: 16px;
  }

  .safe {
    gap: 6px;
  }

  .tile {
    min-height: 0;
    gap: 12px;
    padding: 20px;
  }

  .tile h3 {
    font-size: 1.25rem;
  }

  .cta {
    margin-bottom: 20svh;
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .safe {
    grid-template-columns: 1fr;
  }

  .enemies {
    grid-template-columns: 1fr 1fr;
  }

  .get-facts {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .js [data-reveal]:not(.in) {
    opacity: 1;
    transform: none;
  }
}
