/* PaperTrench — the Arena.
 *
 * The design system for the competitive surfaces: leaderboard, weekly sprint,
 * duels, and public profiles. It layers on style.css (which owns the site
 * shell, nav, and base tokens) and never redefines what lives there.
 *
 * The idea: a broadcast-grade competition where the PROOF is part of the
 * spectacle. Most crypto leaderboards perform confidence. This one performs
 * verification — the podium and the verifier stream share the same stage,
 * because "these numbers survived a replay" is the actual product.
 *
 * Three rules the whole system obeys:
 *   1. Gold belongs to rank 1 alone. Nothing else in the product may use it,
 *      or first place stops meaning anything.
 *   2. Verification state is never decoration. The three states are
 *      unmistakable at a glance and never dressed up as each other.
 *   3. Empty is empty. Skeletons, empty states and error states get the same
 *      design care as the happy path, because a fabricated row would be a
 *      worse failure than a blank screen.
 */

/* ============================================================ tokens ===== */

:root {
  /* --- podium metal. Gold is rank-1 only, everywhere, forever. --- */
  --gold: #ffcf5c;
  --gold-deep: #b8862b;
  --gold-glow: rgba(255, 207, 92, 0.22);
  --silver: #cfd8e6;
  --silver-deep: #78839a;
  --bronze: #e0975a;
  --bronze-deep: #9a5c2c;

  /* --- surfaces: one glass recipe, three depths --- */
  --pane: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  --pane-hi: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  --pane-lo: rgba(255, 255, 255, 0.022);
  --edge: 1px solid var(--line);
  --edge-hi: 1px solid var(--line2);

  /* --- elevation --- */
  --lift-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --lift-2: 0 8px 24px -8px rgba(0, 0, 0, 0.65);
  --lift-3: 0 24px 64px -20px rgba(0, 0, 0, 0.8);

  /* --- semantic --- */
  --up: var(--green);
  --down: #ff8a80;
  --live: #ff4d4d;

  /* --- gradients --- */
  --grad-gold: linear-gradient(135deg, #fff0c2 0%, var(--gold) 45%, var(--gold-deep) 100%);
  --grad-silver: linear-gradient(135deg, #ffffff 0%, var(--silver) 50%, var(--silver-deep) 100%);
  --grad-bronze: linear-gradient(135deg, #ffd9b0 0%, var(--bronze) 50%, var(--bronze-deep) 100%);
  --grad-heat: linear-gradient(100deg, var(--orange2), var(--orange));
  --grad-verify: linear-gradient(100deg, var(--green2), var(--green));

  /* --- motion. Named so every surface moves in the same accent. --- */
  --t-fast: 120ms;
  --t-base: 220ms;
  --t-slow: 420ms;
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --rail: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tabular figures everywhere a number can change, so digits never dance. */
.ar-num,
.ar-row .val,
.ar-stat .num,
.ar-pod .roi,
.ar-clock .seg b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ============================================================= layout ==== */

.ar-page { padding: 96px 0 96px; }

.ar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.ar-stack { display: grid; gap: 22px; }

.ar-pane {
  background: var(--pane);
  border: var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--lift-2);
  overflow: hidden;
  position: relative;
  /* Panes are marked up as <section> for the heading semantics, and
   * style.css gives every bare <section> 110px of page-section padding.
   * A pane is a card, not a page section — reset it here so no page has to
   * remember to. */
  padding: 0;
}
/* Descendant, not child: pages render pane bodies into a container element
 * they own, so the padded block is often a grandchild. A child combinator
 * silently dropped the padding and let copy run to the pane's edge. */
.ar-pane .pad { padding: 20px 22px; }
.ar-pane .pad .pad { padding: 0; }

.ar-pane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: var(--edge);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.ar-pane-head .spacer { margin-left: auto; }
.ar-pane-head .glyph { color: var(--green); font-size: 15px; }

/* ============================================================== hero ===== */

.ar-hero { padding: 118px 0 26px; position: relative; }

/* Pre-launch notice. Deliberately calm rather than alarming — nothing here is
 * broken, the thing simply has not started yet. */
#ar-prelaunch {
  border: 1px solid rgba(255, 157, 69, 0.32);
  background: linear-gradient(180deg, rgba(255, 157, 69, 0.09), rgba(255, 157, 69, 0.03));
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 820px;
}
#ar-prelaunch strong { color: var(--orange2); font-weight: 800; }

.ar-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 40px;
  align-items: end;
}

.ar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  border: var(--edge);
  background: var(--pane-lo);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
}
.ar-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: ar-beacon 2.6s var(--e-in-out) infinite;
}

.ar-title {
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 20px 0 0;
}
/* Each line is its own block: a gradient-clipped inline that wraps fragments
 * its own background box, and the break must be authored anyway. */
.ar-title .line { display: block; }
.ar-title .accent {
  background: var(--grad-heat);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
.ar-lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
  margin-top: 18px;
}
.ar-lede strong { color: var(--text); font-weight: 700; }

/* The spec strip: what this board IS, in machine-readable terms. The last
 * column is the punchline — nothing here is self-reported. */
.ar-spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  border: var(--edge);
  border-radius: 14px;
  overflow: hidden;
  background: var(--pane-lo);
}
.ar-spec div {
  padding: 11px 13px;
  border-right: var(--rail);
  min-width: 0;
}
.ar-spec div:last-child { border-right: 0; }
.ar-spec .k {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--dim);
  text-transform: uppercase;
}
.ar-spec .v {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Below the 4-up breakpoint the cells are wide enough for the full strings. */
@media (max-width: 720px) {
  .ar-spec .v { font-size: 12.5px; }
}
.ar-spec .v.ok { color: var(--green); }
.ar-spec .v.zero { color: var(--orange2); }

/* ==================================================== verifier stream ==== */
/*
 * The live feed of what the server is actually doing. It is the hero visual
 * because it is the only honest way to make "we verify everything" visible:
 * you watch it verify. Rejections appear WITHOUT a handle — an automated
 * verdict must never publicly brand a named person a cheat.
 */

.ar-verifier {
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.9), rgba(8, 11, 17, 0.62));
  border: var(--edge);
  border-radius: 16px;
  box-shadow: var(--lift-3);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.ar-verifier .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: var(--edge);
  background: rgba(255, 255, 255, 0.02);
}
.ar-verifier .bulbs { display: flex; gap: 6px; }
.ar-verifier .bulbs i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.ar-verifier .bulbs i:first-child { background: rgba(224, 67, 58, 0.6); }
.ar-verifier .bulbs i:nth-child(2) { background: rgba(255, 157, 69, 0.6); }
.ar-verifier .bulbs i:nth-child(3) { background: rgba(52, 211, 153, 0.6); }
.ar-verifier .name {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
}
.ar-verifier .streaming {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--green);
}
.ar-verifier .streaming .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: ar-beacon 2s var(--e-in-out) infinite;
}

.ar-stream {
  margin: 0;
  padding: 8px 0;
  max-height: 268px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  list-style: none;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.ar-stream li {
  display: grid;
  /* minmax(0,...) rather than 1fr: the detail text is nowrap, and a bare 1fr
   * sizes to its min-content, which would push the whole page wider than the
   * viewport on a phone. */
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 4px 14px;
  border-left: 2px solid transparent;
  animation: ar-line-in var(--t-slow) var(--e-out) both;
}
.ar-stream li .tag {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.ar-stream li .what { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-stream li .what b { color: var(--text); font-weight: 700; }
.ar-stream li .when { color: var(--dim); font-size: 10px; white-space: nowrap; }

.ar-stream li.accepted { border-left-color: rgba(106, 169, 255, 0.5); }
.ar-stream li.accepted .tag { color: var(--blue); }
.ar-stream li.verified { border-left-color: rgba(52, 211, 153, 0.55); }
.ar-stream li.verified .tag { color: var(--green); }
.ar-stream li.partial { border-left-color: rgba(167, 139, 250, 0.5); }
.ar-stream li.partial .tag { color: var(--violet); }
.ar-stream li.rejected { border-left-color: rgba(224, 67, 58, 0.6); background: rgba(224, 67, 58, 0.05); }
.ar-stream li.rejected .tag { color: #ff8a80; }

/* ============================================================= podium ==== */

.ar-podium {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 14px;
  align-items: end;
  padding: 30px 22px 0;
  isolation: isolate;
}
/* Seat count comes from a class, never an inline style: an inline
 * grid-template-columns would outrank the responsive rules below and strand
 * the podium in three columns on a phone. */
.ar-podium.seats-1 { grid-template-columns: minmax(0, 1fr); }
.ar-podium.seats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A single volumetric shaft behind first place. Pure gradient — no blur
 * filter — so it costs nothing to composite. */
.ar-podium::before {
  content: "";
  position: absolute;
  inset: -10% 24% auto 24%;
  height: 116%;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, var(--gold-glow), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.ar-pod {
  position: relative;
  border-radius: 16px;
  border: var(--edge);
  background: var(--pane);
  padding: 18px 16px 16px;
  text-align: center;
  transition: transform var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out);
  animation: ar-rise var(--t-slow) var(--e-out) both;
}
.ar-pod:hover { transform: translateY(-4px); border-color: var(--line2); }
.ar-pod.rank-2 { animation-delay: 60ms; }
.ar-pod.rank-3 { animation-delay: 120ms; }

.ar-pod.rank-1 {
  border-color: rgba(255, 207, 92, 0.35);
  background: linear-gradient(180deg, rgba(255, 207, 92, 0.09), rgba(255, 255, 255, 0.015));
  box-shadow: var(--lift-3), inset 0 1px 0 rgba(255, 240, 194, 0.18);
  padding-top: 26px;
}

.ar-pod .place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--dim);
  border: var(--edge);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--pane-lo);
}
.ar-pod.rank-1 .place {
  color: #2a1c00;
  background: var(--grad-gold);
  border-color: transparent;
  text-shadow: none;
}

.ar-pod .crown {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  filter: drop-shadow(0 3px 8px rgba(255, 207, 92, 0.5));
  animation: ar-crown 620ms var(--e-spring) 220ms both;
}

.ar-pod .face {
  width: 58px; height: 58px;
  border-radius: 50%;
  margin: 12px auto 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  border: 2px solid var(--line2);
  background: var(--pane-hi);
  overflow: hidden;
}
.ar-pod.rank-1 .face {
  width: 68px; height: 68px;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 207, 92, 0.12), 0 0 30px -4px var(--gold-glow);
}
.ar-pod .face img { width: 100%; height: 100%; object-fit: cover; }

.ar-pod .who {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.ar-pod.rank-1 .who { font-size: 20px; }

.ar-pod .roi {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-top: 10px;
}
.ar-pod.rank-1 .roi { font-size: 34px; }
.ar-pod .roi.up { color: var(--up); }
.ar-pod .roi.down { color: var(--down); }
.ar-pod .roi-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.1px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.ar-pod .triplet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border: var(--edge);
  border-radius: 10px;
  overflow: hidden;
}
.ar-pod .triplet div { background: var(--bg2); padding: 8px 4px; }
.ar-pod .triplet .n {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
}
.ar-pod .triplet .l {
  font-size: 8.5px;
  letter-spacing: 0.9px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.ar-pod .score-chip {
  margin-top: 12px;
  border-radius: 10px;
  border: var(--edge);
  background: var(--pane-lo);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ar-pod .score-chip span { color: var(--dim); font-size: 9.5px; letter-spacing: 1.1px; }
.ar-pod.rank-1 .score-chip {
  border-color: rgba(255, 207, 92, 0.3);
  background: rgba(255, 207, 92, 0.07);
  color: var(--gold);
}

/* The plinth: a numeral the podium literally stands on. */
.ar-plinth {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 14px;
  padding: 0 22px;
  align-items: end;
  margin-top: -1px;
}
.ar-plinth div {
  border-radius: 12px 12px 0 0;
  border: var(--edge);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 900;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.07);
}
.ar-plinth .p1 { height: 74px; color: rgba(255, 207, 92, 0.25); border-color: rgba(255, 207, 92, 0.18); }
.ar-plinth .p2 { height: 52px; }
.ar-plinth .p3 { height: 38px; }

/* =========================================================== the tower === */
/*
 * Ranks 4..n. Timing-tower density: every column earns its width, and the
 * row is a link to the profile.
 */

.ar-tower { padding: 4px 0 8px; }

/* Ten columns, matching the ten cells every row renders: pos, delta, trader,
 * status, ROI, P&L, rounds, win, discipline, score. */
.ar-thead,
.ar-row {
  display: grid;
  grid-template-columns:
    44px 34px minmax(140px, 1.4fr) 104px minmax(66px, 0.7fr)
    64px 46px 46px 88px 66px;
  gap: 10px;
  align-items: center;
  padding: 0 20px;
}
.ar-thead {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: var(--edge);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
}
.ar-thead .r { text-align: right; }

.ar-row {
  min-height: 54px;
  border-bottom: var(--rail);
  color: inherit;
  position: relative;
  transition: background var(--t-fast) linear;
  animation: ar-row-in 340ms var(--e-out) both;
}
.ar-row:hover { background: rgba(255, 255, 255, 0.028); }
.ar-row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; border-radius: 8px; }

.ar-row .pos {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
}
.ar-row .delta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
}
.ar-row .delta.up { color: var(--up); }
.ar-row .delta.down { color: var(--down); }
.ar-row .delta.flat { color: var(--dim); }

.ar-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ar-face {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  flex: none;
  overflow: hidden;
  border: var(--edge);
}
.ar-face img { width: 100%; height: 100%; object-fit: cover; }
.ar-handle {
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-row .val { font-family: var(--mono); font-weight: 700; font-size: 13px; text-align: right; }
.ar-row .val.up { color: var(--up); }
.ar-row .val.down { color: var(--down); }
.ar-row .val.dim { color: var(--muted); font-weight: 600; }
.ar-row .val.score { color: var(--orange2); font-weight: 800; font-size: 14px; }

/* Discipline reads as a bar because it is the column people will not
 * otherwise understand — the shape teaches the number. */
.ar-disc { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.ar-disc .track {
  width: 42px; height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ar-disc .fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-verify);
  transform-origin: left center;
  animation: ar-grow 620ms var(--e-out) both;
}
.ar-disc .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Your own row, wherever it lands. */
.ar-row.is-you {
  background: linear-gradient(90deg, rgba(255, 157, 69, 0.11), rgba(255, 157, 69, 0.02));
  box-shadow: inset 3px 0 0 var(--orange);
}
.ar-row.is-you .ar-handle { color: var(--orange2); }
.ar-you-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #2a1c00;
  background: var(--grad-heat);
  border-radius: 4px;
  padding: 2px 5px;
}

/* ================================================== verification chips === */
/*
 * Three states, never interchangeable. Verified is the only one that gets
 * the green treatment; the others must not be able to pass for it at a
 * glance, at any size, in any screenshot.
 */

.ar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: none;
}
.ar-chip.verified {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(52, 211, 153, 0.09);
}
.ar-chip.pending {
  color: var(--orange2);
  border-color: rgba(255, 157, 69, 0.38);
  background: rgba(255, 157, 69, 0.08);
}
.ar-chip.pending .spin {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 192, 129, 0.35);
  border-top-color: var(--orange2);
  animation: ar-spin 900ms linear infinite;
}
.ar-chip.partial {
  color: var(--blue);
  border-color: rgba(106, 169, 255, 0.38);
  background: rgba(106, 169, 255, 0.08);
  /* Hatching: partial data must LOOK incomplete, not merely say so. */
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(106, 169, 255, 0.14) 0 4px,
    transparent 4px 8px
  );
}
.ar-chip.rejected {
  color: var(--down);
  border-color: rgba(224, 67, 58, 0.45);
  background: rgba(224, 67, 58, 0.1);
}

/* ================================================== score breakdown ====== */
/*
 * The formula, applied to one real row. Published and deterministic on
 * purpose: a secret score on an open-source leaderboard would invite exactly
 * the distrust the hash chain exists to remove.
 */

.ar-formula {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
}
.ar-formula .term {
  border: var(--edge);
  background: var(--pane-lo);
  border-radius: 8px;
  padding: 5px 9px;
  font-weight: 700;
}
.ar-formula .term small {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.9px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 800;
}
.ar-formula .op { color: var(--dim); font-weight: 800; }
.ar-formula .out { color: var(--orange2); font-weight: 800; font-size: 15px; }
.ar-formula .term.roi { border-color: rgba(255, 157, 69, 0.3); }
.ar-formula .term.reps { border-color: rgba(106, 169, 255, 0.3); }
.ar-formula .term.disc { border-color: rgba(52, 211, 153, 0.3); }

/* Segmented contribution bar: how much of the score came from each term. */
.ar-segbar {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 12px;
}
.ar-segbar i { display: block; height: 100%; animation: ar-grow 700ms var(--e-out) both; transform-origin: left; }
.ar-segbar .s-roi { background: var(--orange); }
.ar-segbar .s-reps { background: var(--blue); }
.ar-segbar .s-disc { background: var(--green); }
.ar-seglegend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11px;
  color: var(--dim);
}
.ar-seglegend b { color: var(--muted); font-weight: 700; }
.ar-seglegend i {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: -1px;
}

/* ============================================================= badges ==== */

.ar-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.ar-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: var(--edge);
  background: var(--pane-lo);
  border-radius: 10px;
  padding: 7px 11px 7px 9px;
  transition: transform var(--t-fast) var(--e-out), border-color var(--t-fast) linear;
}
.ar-badge:hover { transform: translateY(-2px); border-color: var(--line2); }
.ar-badge .mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
  color: #10131a;
}
.ar-badge .nm { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.ar-badge .ev {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-top: 1px;
}
.ar-badge.t-bronze .mark { background: var(--grad-bronze); }
.ar-badge.t-silver .mark { background: var(--grad-silver); }
.ar-badge.t-gold .mark { background: var(--grad-gold); }
.ar-badge.t-diamond .mark {
  background: linear-gradient(135deg, #dffcff 0%, #7dd3fc 40%, #a78bfa 100%);
}
.ar-badge.t-diamond { border-color: rgba(167, 139, 250, 0.3); }

/* Compact form for board rows and podium cards. */
.ar-badge-mini {
  width: 17px; height: 17px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 900;
  color: #10131a;
  background: var(--pane-hi);
}
.ar-badge-mini.t-bronze { background: var(--grad-bronze); }
.ar-badge-mini.t-silver { background: var(--grad-silver); }
.ar-badge-mini.t-gold { background: var(--grad-gold); }
.ar-badge-mini.t-diamond {
  background: linear-gradient(135deg, #dffcff 0%, #7dd3fc 40%, #a78bfa 100%);
}
.ar-badge-row { display: inline-flex; gap: 4px; vertical-align: middle; }

/* ============================================================== clock ==== */

.ar-clock { display: flex; gap: 10px; align-items: stretch; }
.ar-clock .seg {
  background: var(--pane);
  border: var(--edge);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 66px;
}
.ar-clock .seg b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ar-clock .seg span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
}
.ar-clock.urgent .seg b { color: var(--orange2); }
.ar-clock.urgent .seg { border-color: rgba(255, 157, 69, 0.3); }

/* Window progress: where we are between Monday and Monday. */
.ar-window {
  margin-top: 16px;
  border: var(--edge);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pane-lo);
  height: 8px;
  position: relative;
}
.ar-window i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--grad-heat);
  border-radius: 10px;
  animation: ar-grow 900ms var(--e-out) both;
  transform-origin: left;
}

/* =============================================================== duel ==== */

.ar-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px 22px;
}
.ar-duel-side { text-align: center; position: relative; }
.ar-duel-side .face {
  width: 62px; height: 62px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  border: 2px solid var(--line2);
  background: var(--pane-hi);
  overflow: hidden;
}
.ar-duel-side .face img { width: 100%; height: 100%; object-fit: cover; }
.ar-duel-side .who { font-weight: 800; font-size: 17px; }
.ar-duel-side .roi {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.ar-duel-side .roi.up { color: var(--up); }
.ar-duel-side .roi.down { color: var(--down); }
.ar-duel-side .meta { font-size: 12px; color: var(--dim); margin-top: 4px; }

.ar-duel-side.leading .face {
  border-color: var(--orange);
  box-shadow: 0 0 24px -6px rgba(255, 157, 69, 0.5);
}
.ar-duel-side.won .face {
  border-color: var(--gold);
  box-shadow: 0 0 30px -6px var(--gold-glow);
}

.ar-vs {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--dim);
  border: var(--edge);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--pane);
  flex: none;
}

/* The tug-of-war bar: who is ahead, at a glance. */
.ar-tug {
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 22px 22px;
  background: rgba(255, 255, 255, 0.06);
}
.ar-tug i { display: block; height: 100%; transition: flex-basis var(--t-slow) var(--e-out); }
.ar-tug .a { background: var(--grad-heat); }
.ar-tug .b { background: linear-gradient(100deg, var(--blue), #4b7fd1); }

.ar-provisional {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--orange2);
  border: 1px dashed rgba(255, 157, 69, 0.45);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ============================================================ proof ====== */

.ar-hash {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-all;
  background: var(--pane-lo);
  border: var(--edge);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
/* A slow sheen travelling the hash: the chain is alive, not a static string. */
.ar-hash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: ar-sheen 5.5s var(--e-in-out) infinite;
  pointer-events: none;
}

.ar-chainline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.ar-chainline .lnk {
  border: var(--edge);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--pane-lo);
  color: var(--muted);
}
.ar-chainline .arw { color: var(--green); }

/* =========================================================== stat tiles == */

.ar-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}
.ar-stat {
  border: var(--edge);
  border-radius: 12px;
  background: var(--pane-lo);
  padding: 14px 15px;
}
.ar-stat .num {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ar-stat .num.up { color: var(--up); }
.ar-stat .num.down { color: var(--down); }
.ar-stat .lbl {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================== empty / loading / error == */
/*
 * §  Empty is empty. If there is nothing true to show, this product shows
 *    nothing — never a placeholder row, never a greyed-out fake leader.
 */

.ar-empty {
  padding: 54px 28px;
  text-align: center;
}
.ar-empty .mark {
  font-size: 30px;
  opacity: 0.5;
  margin-bottom: 14px;
}
.ar-empty h4 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ar-empty p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 auto;
}
.ar-empty.error .mark { color: var(--down); }
.ar-empty.error h4 { color: var(--down); }

.ar-skel { padding: 6px 20px; }
.ar-skel .line {
  height: 44px;
  border-radius: 10px;
  margin: 8px 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: ar-shimmer 1.5s linear infinite;
}
.ar-skel .line:nth-child(2) { animation-delay: 0.1s; }
.ar-skel .line:nth-child(3) { animation-delay: 0.2s; }
.ar-skel .line:nth-child(4) { animation-delay: 0.3s; }
.ar-skel .line:nth-child(5) { animation-delay: 0.4s; }

/* ============================================================ controls === */

.ar-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-tab {
  font-size: 12.5px;
  font-weight: 700;
  border: var(--edge);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--muted);
  background: var(--pane-lo);
  cursor: pointer;
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear, background var(--t-fast) linear;
}
.ar-tab:hover { color: var(--text); border-color: var(--line2); }
.ar-tab[aria-current="page"],
.ar-tab.on {
  color: var(--orange2);
  border-color: rgba(255, 157, 69, 0.45);
  background: rgba(255, 157, 69, 0.1);
}

.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 750;
  border-radius: 12px;
  padding: 11px 18px;
  border: var(--edge);
  background: var(--pane-hi);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast) var(--e-out), border-color var(--t-fast) linear,
              background var(--t-fast) linear;
}
.ar-btn:hover { transform: translateY(-1px); border-color: var(--line2); }
.ar-btn:active { transform: translateY(0); }
.ar-btn.primary {
  background: var(--grad-heat);
  color: #2a1a05;
  border-color: transparent;
  font-weight: 800;
}
.ar-btn.primary:hover { box-shadow: 0 8px 24px -10px rgba(255, 157, 69, 0.8); }
.ar-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.ar-note {
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.65;
}
.ar-note a { color: var(--orange2); }

/* The submit console: shows the pipeline doing its work, step by step. */
.ar-console {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.75;
  border: var(--edge);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 12px 14px;
  color: var(--muted);
}
.ar-console .ln { display: flex; gap: 8px; }
.ar-console .ln::before { content: ">"; color: var(--dim); }
.ar-console .ok { color: var(--green); }
.ar-console .warn { color: var(--orange2); }
.ar-console .bad { color: var(--down); }

/* ============================================================ keyframes == */

@keyframes ar-beacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}
@keyframes ar-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes ar-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes ar-line-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ar-crown {
  from { opacity: 0; transform: translate(-50%, 10px) scale(0.6) rotate(-14deg); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(0); }
}
@keyframes ar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes ar-spin {
  to { transform: rotate(360deg); }
}
@keyframes ar-sheen {
  0%, 62% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes ar-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
/* The readout lock. Only presentation moves — the digits are the real ones
 * from the first frame, so a screenshot taken mid-animation is still a true
 * record. (This is why the Arena has no count-up anywhere.) */
@keyframes ar-settle {
  from { opacity: 0; filter: blur(7px); transform: translateY(6px); letter-spacing: 0.06em; }
  to { opacity: 1; filter: blur(0); transform: none; letter-spacing: inherit; }
}
.ar-settle { animation: ar-settle 460ms var(--e-out) both; }

/* ============================================================== clans ==== */
/*
 * A clan is a roster, not a result, and the styling has to keep saying so.
 *
 * Two rules specific to this surface:
 *   1. A clan crest never uses gold. Gold is rank 1 of the individual board
 *      and nothing else, forever (rule 1 at the top of this file) — a clan
 *      that looked like a champion would be borrowing meaning it did not earn.
 *   2. An unranked clan is never dressed as a zero. It gets the pip strip
 *      below, which shows how far off the five-member minimum it is, because
 *      "not yet" and "badly" are different facts.
 */

/* The [TAG] chip that rides next to a handle on every board. Deliberately
 * quiet: it identifies, it does not compete with the numbers. */
.ar-clan-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 6px;
  border: var(--edge);
  color: var(--muted);
  background: var(--pane-lo);
  flex: none;
  white-space: nowrap;
}
.ar-clan-tag:hover { border-color: var(--line2); color: var(--text); }

/* The crest: the tag at poster size, tinted per clan so a roster is
 * recognisable at a glance without inventing heraldry we cannot verify. */
.ar-crest {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: var(--edge-hi);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex: none;
}
.ar-crest.lg { width: 68px; height: 68px; border-radius: 16px; font-size: 19px; }

.ar-clan-thead,
.ar-clan-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 1.5fr) 74px 64px minmax(140px, 1fr) 76px;
  gap: 12px;
  align-items: center;
  padding: 0 20px;
}
.ar-clan-thead {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: var(--edge);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
}
.ar-clan-thead .r { text-align: right; }
.ar-clan-row {
  min-height: 68px;
  border-bottom: var(--rail);
  color: inherit;
  transition: background var(--t-fast) linear;
  animation: ar-row-in 340ms var(--e-out) both;
}
.ar-clan-row:hover { background: rgba(255, 255, 255, 0.028); }
.ar-clan-row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; border-radius: 8px; }
.ar-clan-row.is-yours { background: rgba(255, 157, 69, 0.06); }
.ar-clan-row.is-yours::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad-heat);
}
.ar-clan-row { position: relative; }

/* Both min-width:0 declarations are load-bearing: the grid item's own (a flex
 * container defaults to min-width:auto and refuses to shrink below its
 * content) and the text column's inside it. Without the outer one the founder
 * line ran under the Members column on a phone instead of ellipsising. */
.ar-clan-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ar-clan-id > span { min-width: 0; }
/* display:block is not cosmetic here. text-overflow only applies to a block
 * box, and these two are spans nested inside a span — unlike .ar-handle, which
 * is a direct child of a flex container and therefore blockified for free.
 * Left inline, the founder line silently ran under the Members column on a
 * phone instead of ellipsising. */
.ar-clan-id .nm {
  display: block;
  font-weight: 750;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ar-clan-id .sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ar-clan-row .val { font-family: var(--mono); font-weight: 700; font-size: 13px; text-align: right; }
.ar-clan-row .val.dim { color: var(--muted); font-weight: 600; }
.ar-clan-row .val.score { color: var(--orange2); font-weight: 800; font-size: 14.5px; }
.ar-clan-row .val.forming { color: var(--dim); font-weight: 700; font-size: 11px; }

/* The five faces that make the number — the attribution IS the honesty here,
 * so it sits in the row rather than one level down. */
.ar-five { display: flex; align-items: center; gap: -4px; }
.ar-five .ar-face { width: 24px; height: 24px; font-size: 9px; margin-right: -6px; }
.ar-five .ar-face:last-of-type { margin-right: 0; }
.ar-five .rest { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-left: 12px; }

/* How far a forming clan is from fielding five. Pips, not a percentage:
 * "three of five people" is a countable thing and should look countable. */
.ar-pips { display: inline-flex; gap: 4px; align-items: center; }
.ar-pips i {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}
.ar-pips i.on { background: var(--grad-heat); border-color: transparent; }

/* One member on a clan page: what they have contributed SINCE JOINING, which
 * is a different number from their record and is labeled as one. */
.ar-member-thead,
.ar-member {
  display: grid;
  grid-template-columns: 30px minmax(130px, 1.4fr) 104px 78px 58px 58px 66px;
  gap: 10px;
  align-items: center;
  padding: 0 20px;
}
.ar-member-thead {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: var(--edge);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
}
.ar-member-thead .r { text-align: right; }
.ar-member {
  min-height: 52px;
  border-bottom: var(--rail);
  color: inherit;
  animation: ar-row-in 300ms var(--e-out) both;
}
.ar-member:hover { background: rgba(255, 255, 255, 0.028); }
.ar-member .val { font-family: var(--mono); font-weight: 700; font-size: 12.5px; text-align: right; }
.ar-member .val.dim { color: var(--muted); font-weight: 600; }
.ar-member .val.up { color: var(--up); }
.ar-member .val.down { color: var(--down); }
/* The counting five are marked in the roster, so the score is always
 * attributable to five names a reader can go and check. */
.ar-member .mark {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--dim);
  text-align: center;
}
.ar-member.counts .mark { color: var(--orange2); }
.ar-member.counts { background: rgba(255, 157, 69, 0.045); }
/* A member whose record has not cleared re-pricing takes no position, so their
 * row carries no contribution figures at all — see the note in clan.html. It is
 * dimmed rather than struck through or reddened: this is "not established yet",
 * not "rejected", and the two must not read alike. */
.ar-member.uncounted { opacity: 0.62; }
.ar-member .val.nc {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--dim);
}
.ar-role {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--violet);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

/* ------------------------------------------------------------- controls -- */
/*
 * The first user-authored text in the product. The field styling makes the
 * constraints visible before submit rather than after: fixed widths that match
 * the real limits, a monospace tag box that shows it wants 2-5 characters.
 */
.ar-field { display: block; margin-bottom: 13px; }
.ar-field > .lbl {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.ar-input {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: var(--edge);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color var(--t-fast) linear;
}
.ar-input:focus { outline: none; border-color: var(--orange); }
.ar-input::placeholder { color: var(--dim); }
.ar-input.mono { font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.ar-field .hint { display: block; margin-top: 5px; font-size: 11px; color: var(--dim); }
.ar-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 13px;
}
.ar-check input { margin-top: 2px; accent-color: var(--orange2); flex: none; }

/* An invite code is meant to be read aloud and retyped, so it is set like a
 * code and not like body copy. */
.ar-code {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--orange2);
  background: rgba(0, 0, 0, 0.3);
  border: var(--edge);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  word-break: break-all;
}

/* ========================================================== responsive === */

@media (max-width: 1180px) {
  .ar-shell { grid-template-columns: minmax(0, 1fr); }
  .ar-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
  .ar-thead,
  .ar-row { grid-template-columns: 40px 30px minmax(110px, 1.3fr) 100px 62px 60px 44px 82px 62px; }
  .ar-thead .c-win,
  .ar-row .c-win { display: none; }
  .ar-member-thead,
  .ar-member { grid-template-columns: 26px minmax(0, 1fr) 100px 70px 54px 54px 60px; }
}

@media (max-width: 900px) {
  .ar-podium,
  .ar-plinth { grid-template-columns: 1fr; }
  .ar-plinth { display: none; }
  .ar-pod.rank-1 { order: -1; }
  .ar-duel { grid-template-columns: 1fr; gap: 12px; }
  .ar-vs { margin: 0 auto; }
}

@media (max-width: 720px) {
  .ar-page { padding: 78px 0 64px; }
  .ar-hero { padding: 96px 0 18px; }
  /* Five columns for the five cells that survive this breakpoint:
   * pos, trader, status, ROI, score. (c-win is already hidden at 1180.) */
  .ar-thead,
  .ar-row {
    grid-template-columns: 30px minmax(0, 1fr) 88px 62px 52px;
    gap: 8px;
    padding: 0 14px;
  }
  .ar-thead .c-delta, .ar-row .c-delta,
  .ar-thead .c-pnl, .ar-row .c-pnl,
  .ar-thead .c-rounds, .ar-row .c-rounds,
  .ar-thead .c-disc, .ar-row .c-disc { display: none; }
  .ar-pane > .pad { padding: 16px; }
  .ar-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-spec div:nth-child(2n) { border-right: 0; }
  .ar-spec div:nth-child(-n + 2) { border-bottom: var(--rail); }
  .ar-clock .seg { min-width: 0; flex: 1; padding: 8px 6px; }
  .ar-clock .seg b { font-size: 21px; }
  /* The five faces are the first thing to go: the score stays attributable on
   * the clan page, which is one tap away, and the row keeps its numbers. */
  .ar-clan-thead,
  .ar-clan-row {
    grid-template-columns: 30px minmax(0, 1fr) 58px 60px;
    gap: 8px;
    padding: 0 14px;
  }
  .ar-clan-thead .c-five, .ar-clan-row .c-five,
  .ar-clan-thead .c-rounds, .ar-clan-row .c-rounds { display: none; }
  .ar-member-thead,
  .ar-member {
    grid-template-columns: 22px minmax(0, 1fr) 56px 58px;
    gap: 8px;
    padding: 0 14px;
  }
  .ar-member-thead .c-status, .ar-member .c-status,
  .ar-member-thead .c-joined, .ar-member .c-joined,
  .ar-member-thead .c-rounds, .ar-member .c-rounds { display: none; }
  .ar-crest { width: 38px; height: 38px; font-size: 11.5px; }
}

@media (max-width: 400px) {
  .ar-title { font-size: 29px; }
  .ar-badge .ev { display: none; }
  .ar-stream li { grid-template-columns: 62px minmax(0, 1fr); }
  .ar-stream li .when { display: none; }
  .ar-thead, .ar-row { grid-template-columns: 26px minmax(0, 1fr) 60px 50px; gap: 6px; padding: 0 11px; }
  .ar-thead .c-status, .ar-row .c-status { display: none; }
  .ar-pod .who { font-size: 15px; }
  .ar-pod.rank-1 .who { font-size: 17px; }
}

/* ==================================================== reduced motion ===== */
/*
 * Everything above degrades to its END state — nothing depends on animation
 * to become legible, and no surface disappears when motion is off.
 */
@media (prefers-reduced-motion: reduce) {
  .ar-pod,
  .ar-row,
  .ar-clan-row,
  .ar-member,
  .ar-stream li,
  .ar-pod .crown,
  .ar-disc .fill,
  .ar-segbar i,
  .ar-window i,
  .ar-skel .line,
  .ar-settle,
  .ar-chip.pending .spin {
    animation: none !important;
  }
  .ar-hash::after { animation: none; opacity: 0; }
  .ar-eyebrow .dot,
  .ar-verifier .streaming .dot { animation: none; }
  .ar-pod:hover,
  .ar-badge:hover,
  .ar-btn:hover { transform: none; }
  .ar-disc .fill,
  .ar-segbar i,
  .ar-window i { transform: scaleX(1); }
}
