/* Tokens live in tokens.css. This file is layout, type roles, and match motion. */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--lda-bg); color: var(--lda-text); font-family: var(--lda-font-sans); }
:root {
  --coming-soon-h: 56px;
  --shell-sticky-top: calc(64px + var(--coming-soon-h) + env(safe-area-inset-top));
  /* Fixed tab bar plus a gap, so the last row can scroll clear of it. */
  --tabbar-clear: calc(132px + env(safe-area-inset-bottom));
}
@media (min-width: 820px) {
  :root {
    /* Desktop bar floats 18px off the bottom and sits on the content column. */
    --tabbar-clear: calc(164px + env(safe-area-inset-bottom));
  }
}
html {
  scroll-padding-top: var(--shell-sticky-top);
  scroll-padding-bottom: var(--tabbar-clear);
  overflow-anchor: none;
}
body { min-height: 100dvh; overflow-x: clip; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.shell-chrome {
  position: sticky; top: 0; z-index: var(--z-chrome);
}
.coming-soon {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-3);
  height: calc(var(--coming-soon-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) clamp(16px, 3vw, 34px) 0;
  background: var(--lda-gold);
  color: var(--lda-ink);
  box-shadow: inset 0 -3px 0 var(--lda-live-fill);
}
.coming-soon__mark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: var(--radius-pill);
  background: var(--lda-live-fill);
  color: var(--lda-text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}
.coming-soon__mark .dot { flex: 0 0 auto; }
.coming-soon__copy {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.coming-soon__copy strong {
  font-family: var(--lda-font-display);
  font-weight: 680;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}
.coming-soon__copy span {
  color: var(--lda-ink);
  font-size: 13px;
  line-height: 1.25;
}
.coming-soon__dismiss {
  justify-self: end;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--lda-ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--lda-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.coming-soon__dismiss:hover {
  background: var(--lda-ink);
  color: var(--lda-gold);
}
.coming-soon__dismiss:focus-visible {
  outline: 3px solid var(--lda-ink);
  outline-offset: 2px;
}
html.coming-soon-dismissed { --coming-soon-h: 0px; }
html.coming-soon-dismissed .coming-soon { display: none; }
html.coming-soon-dismissed .top {
  padding-top: calc(10px + env(safe-area-inset-top));
}
@media (max-width: 720px) {
  :root { --shell-sticky-top: calc(116px + var(--coming-soon-h) + env(safe-area-inset-top)); }
  .coming-soon { grid-template-columns: minmax(0, 1fr) auto; }
  .coming-soon__mark { display: none; }
}
@media (max-width: 380px) {
  :root { --coming-soon-h: 84px; }
}
.top {
  position: static;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px;
  background: var(--lda-chrome-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lda-line);
}
.brand {
  flex: 1; min-width: 0;
  min-height: var(--tap);
  font-family: var(--lda-font-display); font-size: var(--type-title); letter-spacing: var(--tracking-tight);
  line-height: var(--tap);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.top-actions > .lda-btn,
.top-actions > .chip {
  height: var(--tap);
  white-space: nowrap;
}
a.buy-liar {
  flex: 0 0 auto;
  height: var(--tap);
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--lda-ink);
}
a.buy-liar:visited { color: var(--lda-ink); }
a.buy-liar:hover { color: var(--lda-ink); background: var(--lda-gold-bright); }
.header-offers { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
a.arena-x {
  flex: 0 0 auto;
  height: var(--tap);
  min-width: var(--tap);
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lda-gold);
  background: var(--lda-gold);
  color: var(--lda-ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
}
a.arena-x:visited { color: var(--lda-ink); }
a.arena-x:hover { color: var(--lda-ink); background: var(--lda-gold-bright); border-color: var(--lda-gold-bright); }
@media (max-width: 720px) {
  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "buy buy";
    row-gap: 8px;
    align-items: center;
  }
  .brand { grid-area: brand; }
  .top-end { display: contents; }
  .top-actions { grid-area: actions; }
  .header-offers { grid-area: buy; width: 100%; }
  a.buy-liar { flex: 1 1 auto; width: auto; min-width: 0; }
}
.sound {
  min-height: var(--tap); min-width: 44px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--lda-line);
  background: transparent; color: var(--lda-text-muted); font-size: 13px;
}
.sound.on { color: var(--lda-text); border-color: var(--lda-gold-line-strong); }
.chip {
  min-height: var(--tap); display: inline-flex; align-items: center;
  padding: 0 12px; border-radius: var(--radius-pill); background: var(--lda-surface);
  border: 1px solid var(--lda-line); font-size: 13px; color: var(--lda-gold);
  white-space: nowrap;
}
#view { width: min(100%, 1180px); max-width: 1180px; margin: 0 auto; padding: 16px 16px var(--tabbar-clear); }
#match, #market { overflow-anchor: none; }
#market:empty, #sheet:empty { display: none; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--lda-chrome); border-top: 1px solid var(--lda-line);
}
.tabs button {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); border: 0; background: transparent; color: var(--lda-text-muted);
  font-size: var(--type-meta); font-weight: 560; border-radius: var(--radius-sm); padding: 0 2px;
  line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tabs button.on { color: var(--lda-text); background: var(--lda-surface); }
.kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--type-meta); letter-spacing: var(--tracking-kicker); text-transform: uppercase; color: var(--lda-text-muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lda-live); box-shadow: 0 0 0 0 var(--lda-live-glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--lda-live-glow-off); } }
.live-card, .panel, .story, .payoff {
  background: var(--lda-surface); border: 1px solid var(--lda-line); border-radius: var(--radius-lg); padding: 16px;
  margin-top: 12px;
}
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 14px; }
.who { text-align: center; min-width: 0; }
.who b { display: block; font-family: var(--lda-font-display); font-size: var(--type-display-sm); font-weight: 560; letter-spacing: var(--tracking-tight); line-height: 1.05; overflow-wrap: anywhere; }
.who span { display: block; margin-top: 6px; color: var(--lda-text-muted); font-size: var(--type-ui); }
.mark {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--lda-font-display); font-size: 28px;
  border: 2px solid var(--lda-line); background: var(--lda-avatar-bg);
}
.x { color: var(--lda-text-muted); font-size: 13px; letter-spacing: 0.12em; }
.status { margin-top: 14px; color: var(--lda-text-muted); font-size: var(--type-ui); }
.cta, .giant, .ghost {
  width: 100%; min-height: var(--tap-lg); border-radius: var(--radius-md); border: 0; margin-top: 14px;
  font-weight: 650; letter-spacing: 0.04em;
}
.cta { background: var(--lda-gold); color: var(--lda-ink); }
.ghost { background: transparent; color: var(--lda-text); box-shadow: inset 0 0 0 1px var(--lda-line); }
.section { margin-top: 22px; }
.section h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lda-text-muted); font-weight: 560; margin: 0 0 8px; }
.rowbtn, .agent-row {
  width: 100%; text-align: left; background: var(--lda-surface); border: 1px solid var(--lda-line);
  border-radius: var(--radius-md); padding: 12px 14px; margin-top: 8px; min-height: var(--tap-lg);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.agent-row .mark, .rowbtn .mark { width: 44px; height: 44px; margin: 0; font-size: 20px; flex: 0 0 auto; }
.rowbtn b, .agent-row b { font-family: var(--lda-font-display); font-weight: 560; overflow-wrap: anywhere; min-width: 0; }
.rowbtn .fine, .agent-row .fine { flex: 1 1 140px; min-width: 0; }
.fine { color: var(--lda-text-muted); font-size: 13px; line-height: var(--leading-body); }
.err { color: var(--lda-loss); font-size: 14px; min-height: 1.2em; margin-top: 8px; }
.test-badge {
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lda-line);
  color: var(--lda-gold);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.picker { padding-top: 12px; }
.picker h1 { font-family: var(--lda-font-display); font-size: clamp(32px, 10vw, 40px); line-height: 1.05; font-weight: 560; margin: 12px 0; overflow-wrap: anywhere; }
.giant {
  min-height: var(--tap-choice); background: var(--lda-surface-2); border: 1px solid var(--lda-line); border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 14px; padding: 14px; text-align: left;
}
.giant .mark { width: 56px; height: 56px; margin: 0; flex: 0 0 auto; }
.giant > span { min-width: 0; flex: 1; }
.giant b { display: block; font-family: var(--lda-font-display); font-size: clamp(22px, 6.4vw, 28px); font-weight: 560; color: var(--lda-text); line-height: 1.05; overflow-wrap: anywhere; }
.giant span { color: var(--lda-text-muted); font-size: 14px; line-height: 1.35; }
.table { text-align: center; }
.table h1 { font-family: var(--lda-font-display); font-size: 34px; line-height: 1; margin: 8px 0; font-weight: 560; }
.dice-row { display: flex; gap: 3px; justify-content: center; min-height: 22px; margin-top: 6px; }
.die {
  width: 20px; height: 20px; border-radius: 5px; background: var(--lda-text); position: relative; color: var(--lda-ink); flex: 0 0 auto;
}
.die.back { background: var(--lda-surface-3); box-shadow: inset 0 0 0 1px var(--lda-gold-line); }
.pip { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--lda-ink); }
.line { font-size: 18px; margin-top: 16px; }
.aside { color: var(--lda-gold); font-family: var(--lda-font-display); font-size: 22px; margin-top: 6px; }
.headline {
  font-family: var(--lda-font-display); font-size: clamp(30px, 9vw, 36px); line-height: 1.05; margin: 18px 0 8px; font-weight: 680;
  overflow-wrap: anywhere;
}
.headline.critical { font-size: clamp(32px, 10vw, 42px); }
.you { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--lda-line); font-size: 14px; color: var(--lda-text-muted); }
.spark { display: block; margin: 10px auto 0; }
.spark polyline { fill: none; stroke: var(--lda-gold); stroke-width: 2; }
.spark.good polyline { stroke: var(--lda-win); }
.spark.bad polyline { stroke: var(--lda-loss); }
.career {
  background: var(--lda-surface); border: 1px solid var(--lda-line); border-radius: var(--radius-lg); padding: 14px 14px 12px;
}
.career.compact { margin-top: 12px; padding: 12px; }
.career-head { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 10px 12px; align-items: end; }
.career-head b {
  display: block; font-family: var(--lda-font-display); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(18px, 5.2vw, 28px); white-space: nowrap;
}
.career.compact .career-head b { font-size: clamp(16px, 4.8vw, 22px); }
.career-head span {
  display: block; margin-top: 4px; color: var(--lda-text-muted); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere;
}
.career-line { width: 100%; height: auto; display: block; margin-top: 12px; }
.career-line polyline { fill: none; stroke: var(--lda-gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.career-line .area { stroke: none; opacity: 0.16; }
.career-line.good polyline { stroke: var(--lda-win); }
.career-line.good .area { fill: var(--lda-win); }
.career-line.bad polyline { stroke: var(--lda-loss); }
.career-line.bad .area { fill: var(--lda-loss); }
.career-line.flat polyline { stroke: var(--lda-gold); }
.career-line .zero { stroke: var(--lda-line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.career-line .axis { fill: var(--lda-text-muted); font-size: 12px; font-family: var(--lda-font-sans); }
.career-line .dot { stroke: var(--lda-surface); stroke-width: 1.5; }
.career-line .dot.w { fill: var(--lda-win); }
.career-line .dot.l { fill: var(--lda-loss); }
.career-picks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.career-picks i {
  font-style: normal; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px; background: var(--lda-surface-3); font-size: 13px; font-weight: 650;
}
.career-picks i.w { color: var(--lda-win); }
.career-picks i.l { color: var(--lda-loss); }
.career-picks i.now { box-shadow: 0 0 0 1px var(--lda-gold); }
.career .fine { margin: 10px 0 0; }
.career.empty .fine, .career.legacy .fine { color: var(--lda-text); font-size: 15px; line-height: 1.4; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#live-line.sr { position: fixed; top: 0; left: 0; }
.slate { display: flex; flex-direction: column; gap: 8px; }
.upcard {
  background: var(--lda-surface); border: 1px solid var(--lda-line); border-radius: var(--radius-md); padding: 12px;
}
.upcard .vs { margin-top: 8px; }
.upcard .mark { width: 40px; height: 40px; font-size: 18px; }
.upcard .who b { font-size: 18px; }
.ahead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ahead button {
  min-height: var(--tap-lg); border-radius: var(--radius-sm); border: 1px solid var(--lda-line); background: var(--lda-surface);
  padding: 8px 10px; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere;
}
.you b { color: var(--lda-text); }
.good { color: var(--lda-win); }
.bad { color: var(--lda-loss); }
.form i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; margin-right: 4px; background: var(--lda-surface-3); font-size: 12px; }
.form i.w { color: var(--lda-win); }
.form i.l { color: var(--lda-loss); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags button { min-height: var(--tap); padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--lda-line); background: transparent; }
.tags button.on { background: var(--lda-gold); color: var(--lda-ink); border-color: transparent; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.section + .statgrid { margin-top: 14px; }
.statgrid div { background: var(--lda-surface); border: 1px solid var(--lda-line); border-radius: var(--radius-md); padding: 12px; }
.statgrid b { display: block; font-family: var(--lda-font-display); font-size: 28px; font-weight: 560; }
.statgrid span { color: var(--lda-text-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.log { margin-top: 8px; }
.log li { list-style: none; padding: 8px 0; border-bottom: 1px solid var(--lda-line); font-size: 14px; }
.log { padding: 0; }
.share {
  white-space: pre-wrap; font-family: var(--lda-font-display); font-size: 22px; line-height: 1.25; margin: 8px 0;
}
.share-card {
  width: 100%; height: auto; display: block; margin: 12px 0;
  border-radius: 16px; background: var(--lda-bg);
}
.share-actions { display: flex; gap: 8px; }
.share-actions .ghost {
  flex: 1; width: auto; margin-top: 0; min-height: var(--tap-lg); padding: 10px 8px;
  line-height: 1.2; white-space: normal;
}
h1.page { font-family: var(--lda-font-display); font-size: clamp(30px, 9vw, 36px); margin: 4px 0 8px; font-weight: 560; line-height: 1.05; overflow-wrap: anywhere; }
/* Title and primary CTA share one row. Legacy .cta/.ghost margins must not drop the button. */
.page-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  flex-wrap: wrap;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
}
.page-head {
  margin: 0 0 var(--space-3);
  min-height: var(--tap);
}
.page-head__titles,
.section-head__titles {
  min-width: min(8rem, 100%);
  flex: 1 1 auto;
}
.page-head h1.page,
.section-head h2 {
  margin: 0;
  overflow-wrap: normal;
}
.page-head .kicker,
.section-head .kicker { margin: 0 0 var(--space-1); }
.section-head .kicker { grid-column: 1 / -1; margin: 0; }
.section-head h2 { grid-column: 1; min-width: 0; }
.section-head__actions { grid-column: 2; grid-row: 2; margin-left: 0; }
@media (max-width: 560px) {
  .section-head .kicker { grid-column: 1; grid-row: 1; align-self: center; }
  .section-head__actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .section-head h2 { grid-column: 1 / -1; grid-row: 2; }
}
.section-head { margin: 0 0 var(--space-2); }
.section-head h2 {
  font-family: var(--lda-font-display);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 560;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}
.page-head__actions,
.section-head__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: 100%;
}
.page-head__titles + .page-head__actions,
.section-head__titles + .section-head__actions { margin-left: auto; }
.page-head .lda-btn,
.section-head .lda-btn,
.page-head .cta,
.page-head .ghost,
.section-head .cta,
.section-head .ghost {
  width: auto;
  margin: 0;
  min-height: var(--tap);
  font-size: var(--type-ui);
  white-space: nowrap;
  flex: 0 0 auto;
}
.page-head__lede { margin: 0 0 var(--space-3); max-width: 62ch; }
.page-head + .section { margin-top: var(--space-2); }
.creator > .page-head { margin-bottom: 0; }
.brand-options > .fine { margin: 0 0 var(--space-3); }
.flash h1 { font-family: var(--lda-font-display); font-size: clamp(32px, 10vw, 44px); line-height: 1.05; margin: 24px 0; font-weight: 680; overflow-wrap: anywhere; }
.empty { margin-top: 8px; }
.empty .page { margin-bottom: 8px; }
.empty p { margin: 0; color: var(--lda-text-muted); font-size: 15px; line-height: 1.45; }
.link {
  margin: 0 0 var(--space-3); padding: var(--space-3); border-radius: var(--radius-md);
  background: var(--lda-stale-bg); border: 1px solid var(--lda-critical);
  color: var(--lda-critical); font-size: var(--type-ui); line-height: var(--leading-body);
}
.first-run {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--lda-surface); border: 1px solid var(--lda-line);
  color: var(--lda-text); font-size: 15px; line-height: 1.4;
}
.live-card .first-run {
  margin-top: 12px; padding: 0; background: transparent; border: 0; color: var(--lda-text);
}

/* Gameplay motion. Transforms and opacity only. */
.tabs button { transition: background var(--dur-ui) var(--ease-standard), color var(--dur-ui) var(--ease-standard); }
#view.enter > * { animation: rise var(--dur-enter) var(--ease-standard) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.live-card.intro { animation: intro var(--dur-cinematic) var(--ease-standard) both; }
.picker.intro h1 { animation: intro var(--dur-ui) var(--ease-standard) both; }
@keyframes intro {
  0% { opacity: 0; transform: scale(.96); }
  60% { opacity: 1; transform: scale(1.02); }
  100% { transform: none; }
}
.chip.bump { animation: intro .4s ease; }

.table { position: relative; }
.table .vs { align-items: start; }
.table .mark { width: 52px; height: 52px; font-size: 24px; }
.table .who b { font-size: clamp(15px, 4.6vw, 22px); line-height: 1.1; min-height: 2.2em; }
.table .seat { transition: opacity .35s ease; }
.table .seat.hot .mark { box-shadow: 0 0 0 2px var(--lda-gold), 0 0 16px var(--lda-gold-glow); }
.table .seat.marked .mark { box-shadow: inset 0 0 0 2px var(--lda-live); }
.table .seat.cool { opacity: .48; }
.table .seat.out { opacity: .38; }
.table .seat.hit { animation: seatHit .6s ease; }
@keyframes seatHit {
  0%, 100% { transform: none; }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}
.dice-row { position: relative; flex-wrap: nowrap; min-height: 28px; }
.die { transform: translateZ(0); }
.dice-row.shake { animation: cupRow 1.05s ease-in-out both; }
@keyframes cupRow {
  0%, 100% { transform: translateX(0) rotate(0); }
  18% { transform: translateX(-7px) rotate(-7deg); }
  36% { transform: translateX(7px) rotate(7deg); }
  54% { transform: translateX(-5px) rotate(-4deg); }
  72% { transform: translateX(4px) rotate(3deg); }
}
.die.shake { animation: cup 1.05s ease-in-out both; animation-delay: var(--d, 0ms); }
@keyframes cup {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-2px) rotate(-16deg); }
  40% { transform: translateX(2px) rotate(16deg); }
  60% { transform: translateX(-1px) rotate(-8deg); }
  80% { transform: translateX(1px) rotate(6deg); }
}
.die.tumble { animation: tumble .72s var(--ease-standard) both; animation-delay: var(--d, 0ms); }
@keyframes tumble {
  0% { opacity: 0; transform: translateY(-16px) rotate(-150deg); }
  60% { opacity: 1; transform: translateY(2px) rotate(10deg); }
  100% { opacity: 1; transform: none; }
}
.die.out { animation: shatter .5s ease forwards; }
.die.back.out { position: absolute; right: 0; top: 0; }
.die.tumble.out {
  animation: tumble .64s var(--ease-standard) both, shatter .55s ease forwards;
  animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 1100ms);
}
@keyframes shatter {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(14px) rotate(16deg) scale(.55); }
}
.die.hit { box-shadow: 0 0 0 2px var(--lda-gold); }
.die.wild { box-shadow: 0 0 0 2px var(--lda-gold-bright); }
.die.hit.wild { box-shadow: 0 0 0 2px var(--lda-gold-bright); }
.live-sting {
  font-family: var(--lda-font-display); letter-spacing: .2em; font-size: 13px; color: var(--lda-gold);
  margin-bottom: 6px; animation: intro .4s ease both;
}
.bid-slot { min-height: var(--tap-lg); }
.bidchip {
  display: inline-flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 6px 8px;
  max-width: 100%; min-height: var(--tap-lg); margin: 12px auto 0; padding: 8px 16px;
  border-radius: var(--radius-pill); background: var(--lda-text); color: var(--lda-ink);
  font-family: var(--lda-font-display);
}
.bidchip .qty { font-size: 28px; font-weight: 680; line-height: 1; }
.bidchip .face { font-size: 16px; }
.bidchip .by { font-family: var(--lda-font-sans); font-size: 12px; letter-spacing: 0; color: var(--lda-ink-muted); }
.bidchip .prev { font-family: var(--lda-font-sans); font-size: 13px; color: var(--lda-ink-faint); text-decoration: line-through; }
.bidchip.pop { animation: pop .55s var(--ease-emphasis) both; }
@keyframes pop {
  0% { opacity: 0; transform: scale(.84); }
  62% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: none; }
}
.bidchip.liar { background: var(--lda-live-fill); color: var(--lda-text); }
.bidchip.liar .by, .bidchip.liar .prev { color: var(--lda-on-live); }
.bidchip.slam { animation: slam .7s ease-out both; }
@keyframes slam {
  0% { transform: scale(1.16) rotate(-2deg); }
  45% { transform: scale(.96) rotate(0deg); }
  100% { transform: none; }
}
.slam-flash {
  position: absolute; inset: -6px; border-radius: var(--radius-lg); pointer-events: none;
  background: var(--lda-live-flash); animation: flash .7s ease-out both;
}
@keyframes flash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
.book {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px;
  font-size: 13px; color: var(--lda-text-muted); padding: 0 4px;
}
.book span { white-space: nowrap; }
.book b { color: var(--lda-text); font-weight: 560; }
.book.pulse b { animation: bookPulse .55s ease; }
@keyframes bookPulse {
  0% { transform: scale(1); color: var(--lda-text); }
  40% { transform: scale(1.08); color: var(--lda-gold); }
  100% { transform: none; color: var(--lda-text); }
}
.headline.stinger { animation: pop .4s ease both; }
.tally { min-height: 34px; margin-top: 10px; color: var(--lda-text-muted); font-size: 14px; }
.tally b { font-family: var(--lda-font-display); font-size: 28px; color: var(--lda-gold); font-weight: 680; display: inline-block; min-width: 1.2ch; }
.verdict-line { font-family: var(--lda-font-display); font-size: 18px; margin-top: 4px; min-height: 1.3em; }
.you.pulse { animation: bookPulse .55s ease; }
.verdict {
  font-family: var(--lda-font-display); font-size: clamp(48px, 16vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 680;
}
.verdict.yes { color: var(--lda-win); }
.verdict.no { color: var(--lda-loss); }
.verdict.final { color: var(--lda-gold); font-size: 42px; }
.payoff { position: relative; overflow: hidden; }
.payoff .career.compact { margin-top: 16px; }
.payoff .share-card { margin-top: 16px; }
.payoff.sting .verdict { animation: pop .45s var(--ease-emphasis) both; }
.payoff.sting .delta { animation: pop .45s ease .12s both; }
.delta { font-family: var(--lda-font-display); font-size: 28px; margin: 8px 0; }
.confetti { position: absolute; left: 0; right: 0; top: 36px; height: 0; pointer-events: none; }
.confetti i {
  position: absolute; left: 50%; top: 0; width: 7px; height: 7px; border-radius: 2px;
  background: var(--lda-gold); animation: confetti .9s ease-out forwards;
}
.confetti i:nth-child(2) { background: var(--lda-win); animation-delay: .05s; }
.confetti i:nth-child(3) { background: var(--lda-text); animation-delay: .1s; }
.confetti i:nth-child(4) { background: var(--lda-gold); animation-delay: .02s; }
.confetti i:nth-child(5) { background: var(--lda-win); animation-delay: .12s; }
.confetti i:nth-child(6) { background: var(--lda-gold-bright); animation-delay: .08s; }
@keyframes confetti {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), -64px) scale(1); }
}
.confetti i:nth-child(1) { --x: -42px; }
.confetti i:nth-child(2) { --x: 36px; }
.confetti i:nth-child(3) { --x: -16px; }
.confetti i:nth-child(4) { --x: 58px; }
.confetti i:nth-child(5) { --x: -60px; }
.confetti i:nth-child(6) { --x: 12px; }
.replay-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.replay-meta .ghost,
.replay-meta .lda-btn { width: auto; margin-top: 0; min-height: var(--tap); padding: 0 14px; }

@media (max-width: 360px) {
  .die { width: 16px; height: 16px; border-radius: 4px; }
  .pip { width: 3px; height: 3px; }
  .bidchip .qty { font-size: 22px; }
  .tabs button { font-size: 11px; letter-spacing: 0; }
  .brand { font-size: 16px; }
  .live-card .mark, .picker .mark { width: 52px; height: 52px; font-size: 24px; }
}

.stage { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.stage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  color: var(--lda-text-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.stage-bar .kicker { margin: 0; }
.stage-bar .score { color: var(--lda-text); font-variant-numeric: tabular-nums; }
.pressure { display: inline-flex; align-items: center; gap: 6px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: var(--lda-line-soft); display: block; }
.pips i.on { background: var(--lda-gold); }
.pips i.on.hot { background: var(--lda-critical); }
.who-now { text-align: left; font-size: 13px; color: var(--lda-text-muted); }
.who-now b { color: var(--lda-text); font-weight: 560; }
.stage .arena-seat {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center;
  text-align: left; padding: 8px 10px; border-radius: 16px;
  background: var(--lda-surface); border: 1px solid var(--lda-line);
}
.stage .arena-seat[data-cast]::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--agent-accent);
}
.stage .arena-seat.who b,
.result-seats .arena-seat b {
  display: block; font-family: var(--lda-font-display); font-size: clamp(18px, 5vw, 22px);
  font-weight: 560; min-height: 0; line-height: 1.1; letter-spacing: -0.03em;
}
.stage .arena-seat .dice-row { margin: 0; justify-content: flex-end; }
.seat-copy { min-width: 0; }
.seat-copy span { display: block; margin-top: 2px; color: var(--lda-text-muted); font-size: 13px; }
.brand-lockup { display: inline-flex; align-items: center; gap: var(--space-1); flex: 0 0 auto; }
.who .brand-lockup { margin: 0 auto var(--space-1); }
.agent-hero { margin: var(--space-3) 0 var(--space-2); }
.agent-hero .mark { width: 64px; height: 64px; font-size: 28px; }
.agent-hero .lda-emblem { width: 22px; height: 22px; }
.agent-hero .lda-palette { margin: var(--space-2) 0; }
.brand-title {
  display: block;
  margin-top: 2px;
  color: var(--agent-accent, var(--lda-text-secondary));
  font-size: var(--type-meta);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seat-copy .brand-title, .who .brand-title, .nameplate .brand-title { color: var(--agent-accent, var(--lda-text-secondary)); }
.market-identity, .history-cast, .rival-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.market-identity { margin-bottom: var(--space-2); }
.nameplate { min-width: 0; }
.nameplate b, .history-seat b {
  display: block;
  font-family: var(--lda-font-display);
  font-weight: 560;
  letter-spacing: var(--tracking-tight);
}
.winner-market[data-cast], .prop-card[data-cast] {
  box-shadow: inset 3px 0 0 var(--agent-accent);
}
.history-cast { flex-wrap: wrap; margin-top: var(--space-2); }
.history-seat { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.rival-row { width: 100%; justify-content: space-between; }
.rival-side {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--agent-accent) 16%, var(--lda-surface));
}
.react {
  display: block; margin-top: 2px; font-style: normal; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--lda-gold);
}
.arena-seat[data-motion="FAST_CONFIDENT"] { --seat-cadence: var(--dur-micro); }
.arena-seat[data-motion="SLOW_REGAL"] { --seat-cadence: var(--dur-cinematic); }
.arena-seat[data-motion="CHAOTIC_UNEVEN"] { --seat-cadence: var(--dur-enter); }
.arena-seat[data-motion="MECHANICAL_PRECISE"] { --seat-cadence: var(--dur-ui); }
.arena-seat[data-react="thinking"] .mark { animation: thinkPulse var(--seat-cadence, 1.1s) ease-in-out infinite; }
.arena-seat[data-react="confident"] .mark { box-shadow: 0 0 0 2px var(--lda-gold); }
.arena-seat[data-react="failed-bluff"] .react,
.arena-seat[data-react="failed-call"] .react,
.arena-seat[data-react="defeat"] .react { color: var(--lda-loss); }
.arena-seat[data-react="successful-call"] .react,
.arena-seat[data-react="successful-bluff"] .react,
.arena-seat[data-react="victory"] .react { color: var(--lda-win); }
.arena-seat[data-react="defeat"] { opacity: 0.62; }
.arena-seat[data-react="victory"] { box-shadow: inset 0 0 0 1px var(--lda-gold-line-strong); }
@keyframes thinkPulse { 50% { transform: translateY(-2px); } }
.felt {
  position: relative; min-height: 248px; border-radius: var(--radius-xl); padding: 16px 12px 12px;
  background:
    radial-gradient(ellipse at 50% 32%, var(--lda-gold-wash), transparent 62%),
    var(--lda-felt);
  border: 1px solid var(--lda-gold-line);
  box-shadow: inset 0 0 0 7px var(--lda-rail);
}
.stage.dim .felt { background: var(--lda-felt-dim); }
.stage.dim .arena-seat:not(.hot) { opacity: 0.5; }
.stage[data-camera="caller"] .arena-seat.hot { transform: scale(1.035); }
.stage[data-camera="dice"] .felt,
.stage[data-camera="push"] .felt { transform: scale(1.02); }
.stage[data-camera="pullback"] .felt { transform: scale(0.985); }
.bid-banner { margin-top: 2px; }
.bid-words {
  font-family: var(--lda-font-display); font-weight: 680; letter-spacing: -0.04em; line-height: 0.95;
  font-size: var(--type-display-lg);
}
.bid-by {
  margin-top: 4px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lda-gold);
}
.bid-banner.quiet .bid-words { font-size: clamp(18px, 5.4vw, 26px); color: var(--lda-text-muted); }
.bid-banner.pop { animation: pop 0.55s var(--ease-emphasis) both; }
.think-line {
  font-family: var(--lda-font-display); font-weight: 680; letter-spacing: -0.03em; line-height: 1;
  font-size: var(--type-display-md); margin-bottom: 6px;
}
.liar-type {
  font-family: var(--lda-font-display); font-weight: 680; letter-spacing: -0.05em; line-height: 0.82;
  font-size: clamp(72px, 24vw, 104px); color: var(--lda-text); margin: 2px 0 4px;
}
.cups { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0 4px; }
.stage .tally { min-height: 0; margin-top: var(--space-2); position: relative; z-index: var(--z-stage); }
.cups .hand { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: center; }
.hand-name {
  flex: 0 0 100%; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lda-text-muted);
}
.die.lg { width: 28px; height: 28px; border-radius: 6px; }
.die.lg .pip { width: 5px; height: 5px; }
.verdict-hit {
  font-family: var(--lda-font-display); font-weight: 680; letter-spacing: -0.04em; line-height: 0.95;
  font-size: clamp(36px, 12vw, 56px); margin-top: 8px;
}
.round-result { font-family: var(--lda-font-display); font-size: clamp(18px, 5vw, 22px); margin-top: 4px; }
.next-hint { color: var(--lda-text-muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.feed { list-style: none; padding: 0; margin: 4px 0 0; text-align: left; }
.feed li { font-size: 13px; color: var(--lda-text-muted); padding: 5px 0; border-bottom: 1px solid var(--lda-line); }
.feed li:first-child { color: var(--lda-text); }
.arena-prompt {
  font-family: var(--lda-font-display);
  font-weight: 560;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  margin: var(--space-3) 0 0;
}
.arena-now {
  margin: var(--space-3) 0 0;
  font-family: var(--lda-font-display);
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.15;
}
.story-kicker {
  font-size: var(--type-meta);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--lda-gold);
}
.story-card { flex-direction: column; align-items: flex-start; }
.story-card .history-cast,
.story-card .fine,
.story-card b { width: 100%; }
.broadcast-strip { position: relative; z-index: 12; }
.arena-shell .skip {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 20;
  width: auto;
  min-width: 88px;
  min-height: var(--tap);
  margin: 0;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--lda-line);
  background: var(--lda-chrome);
  color: var(--lda-text);
}
.result-seats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 8px 0 4px; }
.result-seats .arena-seat { display: flex; gap: 8px; align-items: center; text-align: left; padding: 8px; border-radius: var(--radius-md); background: var(--lda-surface); border: 1px solid var(--lda-line); }
@media (max-height: 700px) {
  .felt { min-height: 188px; padding: 12px 10px 10px; }
  .liar-type { font-size: clamp(56px, 18vw, 80px); }
  .bid-words { font-size: clamp(28px, 8vw, 40px); }
}

.market-zone {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--lda-chrome);
  scroll-margin-top: var(--shell-sticky-top);
}
.market-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.market-zone-head h2 {
  margin: var(--space-2) 0 0;
  font-family: var(--lda-font-display);
  font-weight: 560;
  font-size: var(--type-display-sm);
  letter-spacing: var(--tracking-tight);
}
.market-zone .test-badge { margin: 0; }
.market-balance { text-align: right; }
.market-balance span {
  display: block;
  color: var(--lda-text-muted);
  font-size: 10px;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}
.market-balance b {
  display: block;
  margin-top: 2px;
  color: var(--lda-gold);
  font-family: var(--lda-font-display);
  font-size: 22px;
  font-weight: 560;
}
.market-disclosure { margin: var(--space-2) 0 0; color: var(--lda-text-muted); font-size: var(--type-meta); line-height: var(--leading-body); }
.winner-market, .prop-card { background: var(--lda-surface); }
.winner-market { margin-top: var(--space-3); padding: var(--space-3); }
.prop-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.prop-head > span:first-child {
  color: var(--lda-text-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}
.winner-market h3, .prop-card h3 {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--lda-font-display);
  font-size: var(--type-title);
  line-height: 1.2;
  font-weight: 560;
}
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.outcomes .lda-choice,
.prop-ahead .lda-choice {
  min-height: var(--tap-lg);
  width: 100%;
}
.props-grid { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.prop-card { padding: var(--space-3); }
.prop-card.settled { background: var(--lda-surface-2); }
.prop-result {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  border: 1px solid var(--lda-line);
  color: var(--lda-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.prop-result.yes { color: var(--lda-win); border-color: color-mix(in srgb, var(--lda-win) 35%, transparent); }
.prop-result.no { color: var(--lda-loss); border-color: color-mix(in srgb, var(--lda-loss) 35%, transparent); }
.market-position {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--lda-line);
  color: var(--lda-text-muted);
  font-size: var(--type-meta);
}
.market-position b { color: var(--lda-prediction); font-size: 10px; letter-spacing: 0.1em; }
.market-position.won b { color: var(--lda-win); }
.market-position.lost b { color: var(--lda-loss); }
.market-sell { margin-top: var(--space-3); }
.prop-ahead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-2); }
.prop-ahead .fine { grid-column: 1 / -1; }
.trade-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--lda-scrim);
}
.trade-sheet {
  width: min(100%, 480px);
  max-height: min(640px, 92dvh);
  overflow: auto;
  padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--lda-surface);
  box-shadow: var(--lda-shadow-3);
}
.trade-grab { width: 42px; height: 4px; border-radius: var(--radius-pill); background: var(--lda-line-strong); margin: 0 auto var(--space-3); }
.trade-x.lda-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius-pill);
  font-size: 22px;
}
.trade-sheet h2 { margin: var(--space-2) 0 var(--space-3); font-family: var(--lda-font-display); font-size: var(--type-display-sm); line-height: 1.1; font-weight: 560; }
.trade-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
}
.trade-side.is-yes {
  background: var(--lda-prediction);
  color: var(--lda-prediction-ink);
}
.trade-side.is-no {
  background: transparent;
  color: var(--lda-prediction);
  box-shadow: inset 0 0 0 1px var(--lda-prediction-line);
}
.trade-side b { font-family: var(--lda-font-display); font-size: 26px; font-weight: 560; }
.trade-side.is-yes b,
.trade-side.is-yes span { color: var(--lda-prediction-ink); }
.trade-side.is-no b,
.trade-side.is-no span { color: var(--lda-prediction); }
.trade-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.trade-summary div { padding: var(--space-2); border: 1px solid var(--lda-line); border-radius: var(--radius-sm); background: var(--lda-chrome); }
.trade-summary span { display: block; color: var(--lda-text-muted); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.trade-summary b { display: block; margin-top: var(--space-1); font-size: 13px; }
.stake-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); margin-top: var(--space-3); }
.stake-grid .lda-btn,
.stake-grid button { width: 100%; min-height: var(--tap); padding: 0 var(--space-1); }
.confirm-trade { margin-top: var(--space-3); }
.market-picker h1 { font-size: clamp(32px, 9vw, 40px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .confetti { display: none; }
  .career-line, .career-line * { animation: none !important; transition: none !important; }
  .stage[data-camera] .felt,
  .stage[data-camera] .arena-seat,
  .arena-seat[data-react="thinking"] .mark,
  .thought-orbit,
  .agent-aura,
  .stage-roll .die.back,
  .stage-roll .seat .mark,
  .liar-overlay,
  .liar-overlay .liar-type,
  .stage[data-reduced="1"] .liar-type,
  .stage[data-reduced="1"] .bid-banner,
  .stage[data-reduced="1"] .die {
    animation: none !important;
    transform: none !important;
    opacity: 1;
  }
  .animated-pfp [data-layer],
  .animated-pfp.is-overlay img {
    animation: none !important;
    transform: none !important;
  }
  .stage-roll .dice-tray::before { opacity: 0; animation: none !important; }
}

.creator { display: flex; flex-direction: column; gap: var(--space-3); }
.creator-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.creator-suggestion .fine { margin: 0; flex: 1 1 12rem; }
.creator-suggestion .lda-btn { width: auto; margin: 0; }
.creator label { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--type-ui); color: var(--lda-text-secondary); }
.creator input[type="text"],
.creator input[type="url"],
.creator input[type="number"],
.creator textarea,
.creator select {
  width: 100%;
  min-height: var(--tap);
  background: var(--lda-surface);
  color: var(--lda-text);
  border: 1px solid var(--lda-line);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
}
.creator textarea { min-height: 96px; resize: vertical; }
.creator input[type="range"] { width: 100%; accent-color: var(--lda-gold); }
.creator output { color: var(--lda-text); font-variant-numeric: tabular-nums; }
.concept-grid { display: flex; flex-direction: column; gap: var(--space-3); }
.concept-card {
  padding: var(--space-3);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--lda-text);
}
.concept-card.is-selected { box-shadow: inset 0 0 0 1px var(--lda-gold); }
.concept-top { display: flex; align-items: center; gap: var(--space-3); }
.concept-name { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.concept-tag { display: block; color: var(--lda-text-secondary); font-size: var(--type-ui); line-height: 1.35; }
.concept-emblem { width: 28px; height: 28px; flex: 0 0 auto; }
.concept-emblem svg { width: 28px; height: 28px; display: block; }
.pfp-frame {
  display: block;
  width: min(100%, 440px);
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lda-avatar-bg);
  box-shadow: inset 0 0 0 1px var(--lda-line);
}
.pfp-frame svg { width: 100%; height: 100%; display: block; }
.pfp-select {
  font-size: var(--type-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lda-gold);
}
.pfp-sizes { display: flex; align-items: flex-end; gap: var(--space-3); }
.pfp-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--lda-avatar-bg);
  border: 1px solid var(--lda-line);
  overflow: hidden;
}
.pfp-mini svg { width: 100%; height: 100%; display: block; }
.pfp-mini.is-96 { width: 96px; height: 96px; }
.agent-pfp {
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto var(--space-3);
  border-radius: 18px;
  object-fit: cover;
  background: var(--lda-avatar-bg);
  border: 1px solid var(--lda-line);
  box-shadow: var(--lda-shadow-2);
}
.animated-pfp {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--lda-text) 5%, transparent), transparent 52%),
    linear-gradient(180deg, var(--lda-pfp-shell-top), var(--lda-pfp-shell-bottom));
  box-shadow:
    var(--lda-shadow-3),
    inset 0 0 0 1px var(--lda-line);
}
.animated-pfp.agent-pfp > img,
.animated-pfp.agent-pfp > svg,
.animated-pfp svg,
.portrait-plate .animated-pfp .agent-avatar > svg,
.agent-portrait-wrap .animated-pfp svg {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  object-fit: cover;
}
.portrait-plate > .animated-pfp,
.agent-portrait-wrap > .animated-pfp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.animated-pfp[data-state="activeTurn"] {
  box-shadow:
    0 0 0 1px var(--agent-accent, var(--lda-pfp-neon)),
    0 0 28px color-mix(in srgb, var(--agent-accent, var(--lda-pfp-neon)) 28%, transparent),
    var(--lda-shadow-3);
}
.animated-pfp[data-state="winner"] {
  filter: saturate(1.06) brightness(1.03);
}
.animated-pfp[data-state="loser"] {
  filter: saturate(0.85) brightness(0.88);
}
/* Still mint frames. Raster portraits borrow the rig's idle float: a slow rise and breath. */
.animated-pfp.is-playing.is-overlay {
  overflow: hidden;
}
.animated-pfp.is-playing.is-overlay img {
  transform-origin: 50% 42%;
  animation: lda-pfp-idle 5.6s ease-in-out infinite;
  animation-delay: var(--pfp-delay, 0s);
}
.animated-pfp.is-paused.is-overlay img {
  animation-play-state: paused;
}
.animated-pfp[data-context="watch"] img {
  animation: none;
  transform: none;
}
.agent-card__portrait > .animated-pfp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.pfp-concept__image-wrap.animated-pfp {
  border-radius: 16px;
  background: var(--lda-avatar-bg);
  box-shadow: none;
}
@keyframes lda-pfp-idle {
  0%, 100% { transform: translate3d(0, 1.2%, 0) scale(1.035); }
  50% { transform: translate3d(0, -2.4%, 0) scale(1.06); }
}
.agent-hero .pfp-sizes { justify-content: center; margin-bottom: var(--space-3); }
.swatches { display: flex; gap: var(--space-1); }
.swatch {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--lda-line-strong);
}
.argus-launch { display: flex; flex-direction: column; gap: var(--space-2); }
.arena-token {
  margin-top: 0;
  padding: 16px;
  background: var(--lda-surface);
  border: 1px solid var(--lda-line);
  border-radius: var(--radius-lg);
}
.arena-token h2 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lda-text-muted);
  font-weight: 560;
}
.arena-token a.cta,
.arena-token a.cta:visited {
  color: var(--lda-ink);
  text-decoration: none;
}
.argus-launch > .lda-btn,
.argus-launch > a.lda-btn,
.agent-reveal > .lda-btn,
.creator-actions .lda-btn {
  margin-top: 0;
}
.advanced-config__body > .lda-btn {
  align-self: flex-start;
  width: auto;
  margin-top: 0;
}
.argus-advanced .advanced-config__body > .lda-btn {
  align-self: stretch;
  width: 100%;
}
.argus-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.portrait-pick { display: flex; flex-direction: column; gap: var(--space-2); }
.portrait-pick__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.portrait-choice {
  appearance: none;
  display: flex;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--lda-line);
  background: var(--lda-surface);
  color: inherit;
  cursor: pointer;
  min-height: var(--tap);
}
.portrait-choice img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
  background: var(--lda-felt-dim);
}
.portrait-choice.is-selected {
  border-color: var(--lda-gold);
  box-shadow: 0 0 0 1px var(--lda-gold);
}
.portrait-derived { margin: 0; }
@media (min-width: 760px) {
  .portrait-pick__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.creator-actions { display: flex; flex-direction: column; gap: var(--space-2); scroll-margin-bottom: var(--tabbar-clear); }
.creator-actions .ghost,
.creator-actions .cta { margin-top: 0; }

.pfp-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pfp-concept {
  appearance: none;
  border-radius: 22px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}
.pfp-concept.is-selected {
  border-color: var(--agent-accent, var(--lda-text));
  box-shadow: 0 0 0 1px var(--agent-accent, var(--lda-text)), var(--lda-shadow-3);
}
.pfp-concept__image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: var(--lda-avatar-bg);
}
.pfp-concept__image-wrap .pfp-frame {
  width: 100%;
  border-radius: 16px;
}
.pfp-concept__ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--lda-line), var(--lda-shadow-inset);
}
.pfp-concept__label {
  padding: 10px 4px 2px;
}
.advanced-config {
  border: 1px solid var(--lda-line);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  background: var(--lda-surface);
}
.advanced-config summary {
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  font-weight: 650;
}
.advanced-config__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-2);
}
.agent-reveal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  min-height: min(78dvh, 760px);
  padding: var(--space-5) var(--space-3) var(--space-4);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--agent-primary, var(--lda-live-fill)) 30%, transparent), transparent 42%),
    var(--lda-felt-dim);
}
.agent-reveal__glow,
.agent-reveal__aura {
  position: absolute;
  inset: 8% 12% auto;
  height: 280px;
  background: radial-gradient(circle, color-mix(in srgb, var(--agent-accent) 45%, transparent), transparent 70%);
  pointer-events: none;
}
.agent-reveal .pfp-frame,
.agent-reveal__pfp {
  width: min(310px, 72vw);
  position: relative;
  margin-inline: auto;
}
.agent-reveal .pfp-frame {
  animation: revealPfp 550ms var(--ease-standard) 250ms both;
}
.agent-reveal__emblem {
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-2);
  color: var(--agent-accent, var(--lda-gold));
  animation: revealCopy 400ms var(--ease-standard) 80ms both;
}
.agent-reveal__emblem svg { width: 42px; height: 42px; display: block; margin: 0 auto; }
.agent-reveal__title {
  display: block;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--agent-accent, var(--lda-gold));
  font-size: .76rem;
  animation: revealCopy 500ms var(--ease-standard) 680ms both;
}
.agent-reveal h1 {
  margin: 7px 0 6px;
  font-size: clamp(2rem, 9vw, 4rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .95;
  animation: revealCopy 500ms var(--ease-standard) 820ms both;
}
.agent-reveal p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--lda-text-secondary);
  animation: revealCopy 500ms var(--ease-standard) 980ms both;
}
.agent-reveal__enter {
  animation: revealCopy 500ms var(--ease-standard) 1200ms both;
}
@keyframes revealPfp {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes revealCopy {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.agent-avatar {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, var(--agent-accent), var(--lda-line) 45%, var(--agent-primary));
  box-shadow: var(--lda-shadow-2);
}
.agent-avatar > .mark,
.agent-avatar > img {
  width: 100%;
  height: 100%;
  margin: 0;
}
.agent-avatar--xs,
.agent-avatar--sm { width: 48px; height: 48px; }
.agent-avatar--md { width: 64px; height: 64px; }
.agent-avatar--lg { width: 108px; height: 108px; }
.hero-match-card {
  padding: var(--space-4) var(--space-3);
}
.hero-match-card__status {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 650;
  color: var(--lda-live);
  margin-bottom: var(--space-3);
}
.hero-match-card .who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.hero-match-card .agent-avatar--lg,
.hero-match-card .mark {
  width: 108px;
  height: 108px;
}
.hero-match-card__vs {
  align-self: center;
  font-family: var(--lda-font-display);
  letter-spacing: .18em;
}
.agent-face.is-thinking img,
.agent-face.is-thinking svg,
.agent-face.is-thinking .mark {
  transform: scale(1.025);
  filter: saturate(.92) brightness(.93);
}
.agent-face.is-confident img,
.agent-face.is-confident svg,
.agent-face.is-confident .mark {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.03);
}
.agent-face.is-under-pressure img,
.agent-face.is-under-pressure svg,
.agent-face.is-under-pressure .mark {
  transform: scale(1.015);
  filter: saturate(.82) brightness(.84);
}
.agent-face.is-winner {
  box-shadow: 0 0 0 1px var(--agent-accent, var(--lda-gold)), 0 0 42px color-mix(in srgb, var(--agent-accent, var(--lda-gold)) 40%, transparent);
}
.cast-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
}
.cast-rank {
  font-variant-numeric: tabular-nums;
  color: var(--lda-text-muted);
  min-width: 2ch;
}
.market-outcome .nameplate span,
.market-outcome__identity .brand-title {
  color: var(--lda-text-secondary);
}
@media (min-width: 760px) {
  .pfp-concept-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .agent-portrait-wrap {
    width: clamp(140px, 16vw, 172px);
    height: clamp(140px, 16vw, 172px);
  }
}

/* V12 broadcast arena. The presentation state machine still names the stage. */
#match > :not(.arena-shell),
.market-zone,
.creator {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.market-zone { width: min(100%, 720px); }
body {
  background:
    radial-gradient(circle at 50% 20%, var(--lda-gold-wash), transparent 34rem),
    linear-gradient(180deg, var(--lda-felt-dim) 0%, var(--lda-bg) 45%, var(--lda-felt-dim) 100%);
}
.top { padding-left: clamp(16px, 3vw, 34px); padding-right: clamp(16px, 3vw, 34px); }
.brand { font-size: clamp(18px, 2vw, 24px); }
.arena-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  display: block;
  border: 1px solid var(--lda-line);
  border-radius: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(circle at 50% 45%, var(--lda-gold-wash), transparent 31%),
    radial-gradient(circle at 12% 24%, color-mix(in srgb, var(--agent-dracula) 16%, transparent), transparent 26%),
    radial-gradient(circle at 88% 24%, color-mix(in srgb, var(--agent-caesar) 16%, transparent), transparent 26%),
    var(--lda-shell);
  box-shadow: var(--lda-shadow-broadcast), var(--lda-shadow-inset);
}
.broadcast-strip {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(14px, 2.5vw, 26px);
  border-bottom: 1px solid var(--lda-line);
  color: var(--lda-text-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: var(--lda-strip-bg);
}
.broadcast-strip > :last-child { text-align: right; }
.live-pill { color: var(--lda-on-live); display: inline-flex; align-items: center; gap: 7px; }
.live-pill i, .broadcast-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lda-live); box-shadow: 0 0 14px var(--lda-live-glow); }
.stage-readout { color: var(--lda-gold); }
.arena-surface {
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  padding: clamp(18px, 3vw, 42px) clamp(12px, 4vw, 50px) clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.arena-surface::before {
  content: "";
  position: absolute;
  left: 50%; top: 41%;
  width: min(54vw, 520px); height: min(33vw, 300px);
  min-width: 260px; min-height: 160px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--lda-gold-line);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--lda-felt) 0%, var(--lda-surface-2) 56%, var(--lda-felt-dim) 100%);
  box-shadow: var(--lda-table-inset), var(--lda-shadow-3);
  pointer-events: none;
}
.arena-seats.vs {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) clamp(74px, 12vw, 132px) minmax(0, 1fr);
  gap: clamp(8px, 2vw, 24px);
  align-items: center;
  margin: 8px 0 0;
}
.arena-shell.stage .arena-seat {
  display: block;
  text-align: center;
  background: transparent;
  border: 0;
  position: relative;
  padding: clamp(14px, 2.4vw, 24px) 8px;
  border-radius: 22px;
  opacity: .78;
  transform: scale(.97);
  transition: opacity .35s ease, transform .35s ease, background .35s ease;
}
.arena-shell .arena-seat[data-cast]::before { content: none; }
.arena-shell .arena-seat.active {
  opacity: 1;
  transform: scale(1.025);
  background: linear-gradient(180deg, color-mix(in srgb, var(--agent-accent) 16%, transparent), transparent 82%);
}
.arena-shell .arena-seat.cool { opacity: .46; transform: scale(.95); }
.arena-shell .arena-seat.out { opacity: .38; }
.agent-portrait-wrap {
  position: relative;
  width: clamp(104px, 28vw, 120px);
  height: clamp(104px, 28vw, 120px);
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
}
.agent-aura {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--agent-accent) 55%, transparent), transparent 68%);
  filter: blur(12px);
  opacity: .45;
  transform: scale(.9);
  transition: opacity .35s ease, transform .35s ease;
}
.arena-shell .seat.active .agent-aura { opacity: .95; transform: scale(1.16); }
.arena-shell .brand-lockup { position: relative; display: grid; place-items: center; }
.arena-shell .lda-emblem {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 8%;
  width: 28px;
  height: 28px;
}
.arena-shell .mark {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 54px);
  border-width: 2px;
  background:
    radial-gradient(circle at 34% 26%, var(--lda-highlight), transparent 34%),
    linear-gradient(145deg, var(--lda-surface), var(--lda-avatar-bg));
  box-shadow: var(--lda-shadow-3);
}
.arena-shell .seat.active .mark,
.arena-shell .seat.hot .mark {
  box-shadow: 0 0 0 2px var(--agent-accent), 0 0 34px color-mix(in srgb, var(--agent-accent) 40%, transparent), var(--lda-shadow-3);
}
.agent-copy b { min-height: 0 !important; font-size: clamp(21px, 3.6vw, 35px) !important; }
.agent-status {
  display: block;
  margin-top: 8px;
  color: var(--lda-gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dice-count { display: block; margin-top: 5px; font-size: 12px; color: var(--lda-text-muted); }
.thought-orbit { position: absolute; inset: -2px; z-index: 3; pointer-events: none; animation: thinkOrbit 2.2s linear infinite; }
.thought-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lda-gold); box-shadow: 0 0 12px var(--lda-gold-glow); }
.thought-orbit i:nth-child(1) { left: 50%; top: 0; }
.thought-orbit i:nth-child(2) { right: 5%; bottom: 24%; }
.thought-orbit i:nth-child(3) { left: 8%; bottom: 22%; }
@keyframes thinkOrbit { to { transform: rotate(360deg); } }
.stage-thinking .active .mark { animation: thinkPulse 1.15s ease-in-out infinite; }
.center-table { position: relative; min-height: 118px; display: grid; place-items: center; }
.table-ring {
  position: absolute;
  width: clamp(72px, 9vw, 110px); height: clamp(72px, 9vw, 110px);
  border-radius: 50%; border: 1px solid var(--lda-gold-line);
  box-shadow: 0 0 40px var(--lda-gold-wash), inset 0 0 26px var(--lda-gold-wash);
}
.round-orb {
  position: relative; z-index: 2;
  width: clamp(58px, 7vw, 78px); height: clamp(58px, 7vw, 78px);
  border-radius: 50%; display: grid; place-items: center;
  background: var(--lda-felt-dim); border: 1px solid var(--lda-gold-line-strong);
  box-shadow: var(--lda-shadow-2);
}
.round-orb span { font-size: 12px; font-weight: 650; letter-spacing: .12em; color: var(--lda-text-muted); }
.round-orb small { position: absolute; bottom: 9px; color: var(--lda-gold); font-family: var(--lda-font-display); }
.dice-tray {
  position: relative;
  overflow: visible;
  min-height: 74px;
  margin: 14px auto 0;
  padding: 12px 8px;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--lda-line);
}
.arena-shell .dice-row { min-height: 46px; gap: clamp(5px, 1vw, 10px); align-items: center; justify-content: center; margin-top: 0; }
.arena-shell .die {
  width: clamp(32px, 4.4vw, 48px);
  height: clamp(32px, 4.4vw, 48px);
  border-radius: clamp(7px, 1vw, 11px);
  box-shadow: var(--lda-shadow-1), inset 0 1px 0 var(--lda-line-strong);
}
.arena-shell .die.back {
  background:
    radial-gradient(circle at 30% 26%, var(--lda-gold-wash), transparent 20%),
    linear-gradient(145deg, var(--lda-surface-3), var(--lda-avatar-bg) 70%);
  box-shadow: inset 0 0 0 1px var(--lda-gold-line-strong), var(--lda-shadow-2);
}
.arena-shell .pip { width: 6px; height: 6px; }
.stage-roll .dice-tray { perspective: 500px; }
.stage-roll .die.back { animation: physicalRoll 1.05s cubic-bezier(.18, .75, .22, 1) both; animation-delay: var(--d, 0ms); }
@keyframes physicalRoll {
  0% { opacity: .25; transform: translate3d(0, -34px, 0) rotate(-120deg) scale(.82); }
  32% { opacity: 1; transform: translate3d(11px, 4px, 0) rotate(125deg) scale(1.04); }
  58% { transform: translate3d(-7px, -5px, 0) rotate(210deg) scale(.98); }
  78% { transform: translate3d(4px, 2px, 0) rotate(315deg); }
  100% { opacity: 1; transform: none; }
}
.stage-roll .dice-tray::before {
  content: "";
  position: absolute;
  z-index: 5;
  left: 50%; top: 3px;
  width: clamp(58px, 8vw, 88px);
  height: clamp(42px, 6vw, 64px);
  transform: translateX(-50%);
  border-radius: 12px 12px 24px 24px;
  border: 1px solid var(--lda-gold-line);
  background: linear-gradient(145deg, var(--lda-surface-3) 0%, var(--lda-avatar-bg) 72%);
  box-shadow: var(--lda-shadow-3), var(--lda-shadow-inset);
  animation: cupLift 1.08s cubic-bezier(.18, .72, .2, 1) both;
}
.stage-roll .seat .mark { animation: agentRoll 1.05s ease-in-out both; }
@keyframes cupLift {
  0% { opacity: 1; transform: translateX(-50%) translateY(3px) rotate(-5deg); }
  22% { transform: translateX(calc(-50% - 9px)) translateY(1px) rotate(9deg); }
  42% { transform: translateX(calc(-50% + 8px)) translateY(2px) rotate(-8deg); }
  62% { opacity: 1; transform: translateX(-50%) translateY(-4px) rotate(2deg); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-54px) rotate(0deg) scale(.9); }
}
@keyframes agentRoll {
  0%, 100% { transform: none; }
  28% { transform: translateY(5px) rotate(-2deg); }
  58% { transform: translateY(-3px) rotate(2deg); }
}
.center-action {
  position: relative; z-index: 3;
  width: min(100%, 700px);
  margin: clamp(8px, 2vw, 20px) auto 0;
  min-height: 160px;
  padding: 10px clamp(8px, 2vw, 20px) 0;
}
.arena-shell .felt {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
}
.arena-shell .bid-banner.bidchip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: min(100%, 640px);
  background: transparent;
  color: var(--lda-text);
  box-shadow: none;
  min-height: 0;
  margin: 8px auto 0;
  padding: 0;
}
.arena-shell .bid-banner .bid-by { letter-spacing: 0.12em; }
.arena-shell .bid-words, .arena-shell .bidchip .qty {
  font-size: clamp(34px, 5vw, 56px);
}
.arena-shell .bid-banner.quiet .bid-words { font-size: clamp(22px, 4vw, 32px); }
.stage-thinking .center-action .think-line { color: var(--lda-gold); }
.stage-thinking .center-action::before {
  content: "";
  display: block;
  width: 48px; height: 3px; margin: 0 auto 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--lda-gold), transparent);
  animation: scanThink 1.15s ease-in-out infinite;
}
@keyframes scanThink { 50% { width: 128px; opacity: .55; } }
.stage-announce .bid-banner { animation: announceBid .58s cubic-bezier(.16, .9, .23, 1.15) both; }
@keyframes announceBid { 0% { opacity: 0; transform: translateY(18px) scale(.8); } 70% { opacity: 1; transform: translateY(-3px) scale(1.05); } 100% { transform: none; } }
.cinematic-overlay {
  position: absolute; inset: 48px 0 0; z-index: 10;
  display: grid; place-items: center;
  pointer-events: none;
}
.liar-overlay { background: radial-gradient(circle, var(--lda-liar-wash), transparent 72%); animation: liarWash 1.45s ease-out both; }
.liar-overlay .liar-type {
  font-size: clamp(70px, 17vw, 190px);
  color: var(--lda-on-live);
  text-shadow: 0 0 28px var(--lda-live-glow), var(--lda-shadow-3);
  animation: liarImpact .75s cubic-bezier(.16, .88, .26, 1.2) both;
}
@keyframes liarWash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: .08; } }
@keyframes liarImpact { 0% { opacity: 0; transform: scale(1.42) rotate(-2deg); } 50% { opacity: 1; transform: scale(.94) rotate(0deg); } 100% { opacity: 1; transform: scale(1); } }
.stage-reveal .arena-surface::before { box-shadow: var(--lda-table-inset), 0 0 70px var(--lda-gold-glow), var(--lda-shadow-3); }
.stage-reveal .die:not(.back) { animation-duration: .72s; }
.arena-shell .tally b { font-size: clamp(32px, 5vw, 50px); }
.arena-shell .verdict-line, .arena-shell .verdict-hit { font-size: clamp(28px, 4vw, 48px); }
.arena-shell .book, .arena-shell .you { width: min(100%, 700px); margin-left: auto; margin-right: auto; }
#match > .payoff.stage-result { max-width: 1040px; overflow: hidden; padding-top: 0; }
.payoff .broadcast-strip { margin: 0 0 16px; }
@media (min-width: 980px) {
  #view:has(#market:not(:empty)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    column-gap: var(--space-4);
    align-items: start;
  }
  #view:has(#market:not(:empty)) #match { grid-column: 1; }
  #view:has(#market:not(:empty)) #market {
    grid-column: 2;
    position: sticky;
    top: var(--shell-sticky-top);
    max-height: calc(100dvh - 168px - var(--coming-soon-h) - env(safe-area-inset-bottom));
    overflow: auto;
  }
  #view:has(#market:not(:empty)) #sheet { grid-column: 1 / -1; }
}
@media (min-width: 820px) {
  .tabs {
    left: 50%; right: auto; bottom: 18px; width: min(640px, calc(100% - 40px));
    transform: translateX(-50%);
    border: 1px solid var(--lda-line); border-radius: 18px;
    padding: 7px;
    background: var(--lda-chrome-bg); backdrop-filter: blur(16px);
    box-shadow: var(--lda-shadow-3);
  }
  .live-card { padding: 24px; }
  .live-card .vs { max-width: 720px; margin-left: auto; margin-right: auto; }
  .live-card .mark { width: 82px; height: 82px; font-size: 34px; }
}
@media (max-width: 620px) {
  .arena-shell { border-radius: 20px; }
  .broadcast-strip { grid-template-columns: auto auto; }
  .broadcast-strip .stage-readout { grid-column: 1 / -1; text-align: center; padding-bottom: 9px; }
  .arena-surface { min-height: 590px; padding-left: 8px; padding-right: 8px; }
  .arena-seats.vs { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); gap: 3px; }
  .arena-shell .arena-seat { min-width: 0; }
  .agent-portrait-wrap { width: 104px; height: 104px; }
  .arena-shell .mark { width: 100%; height: 100%; font-size: 30px; }
  .agent-copy b { font-size: 19px !important; }
  .agent-status { font-size: 8px; letter-spacing: .11em; }
  /* A full cup is five dice. Size them to the seat so the row stays inside
     the shell, above the LIAR card. */
  .dice-tray {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    min-height: 0;
    padding: 4px 0 0;
  }
  .arena-shell .dice-row {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    gap: 3px;
    justify-content: center;
  }
  .arena-shell .die {
    width: min(29px, calc((100% - 12px) / 5));
    height: auto;
    aspect-ratio: 1;
    border-radius: 6px;
    flex: 0 0 auto;
  }
  .arena-shell .pip { width: 3px; height: 3px; }
  .round-orb { width: 50px; height: 50px; }
  .table-ring { width: 62px; height: 62px; }
  .center-action { min-height: 180px; }
}
@media (max-width: 360px) {
  .arena-shell .die { width: min(22px, calc((100% - 12px) / 5)); }
  .agent-portrait-wrap { width: 96px; height: 96px; }
  .arena-shell .mark { width: 100%; height: 100%; }
}
@media (max-height: 700px) {
  .liar-overlay .liar-type { font-size: clamp(56px, 18vw, 96px); }
  .arena-surface { min-height: 0; }
}

/* Matchup identity. Portraits lead; stats stay quiet. */
.portrait-plate {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.portrait-plate .agent-avatar,
.portrait-plate .brand-lockup {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: inherit;
}
.portrait-plate .mark,
.portrait-plate .agent-avatar > .mark,
.portrait-plate .agent-avatar > img,
.portrait-plate .agent-avatar > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
}
.portrait-plate--hero { width: clamp(100px, 34vw, 140px); }
.portrait-plate--next { width: clamp(84px, 26vw, 112px); }
.portrait-plate--rival { width: 72px; }
.portrait-plate--roster,
.cast-row .portrait-plate--roster { width: 56px; height: 56px; }
.portrait-plate--market { width: 48px; height: 48px; }
.matchup-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(58dvh, 520px);
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--hero-a, var(--lda-live-fill)) 28%, transparent), transparent 34%),
    radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--hero-b, var(--lda-gold)) 22%, transparent), transparent 34%),
    var(--lda-felt-dim);
}
.matchup-hero__status {
  text-align: center;
  letter-spacing: .18em;
}
.matchup-hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}
.matchup-agent { text-align: center; min-width: 0; }
.matchup-hero .matchup-name,
.match-intro .matchup-name {
  display: block;
  margin: 5px 0 3px;
  font-family: var(--lda-font-display);
  font-weight: 680;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: .02em;
  line-height: .95;
  text-transform: uppercase;
}
.matchup-agent .brand-title,
.agent-card .brand-title,
.roster-id .brand-title,
.seat-copy .brand-title {
  letter-spacing: .16em;
  text-transform: uppercase;
}
.matchup-agent__record,
.seat-record,
.agent-card__stats,
.roster-stats {
  display: block;
  margin-top: 4px;
  color: var(--lda-text-muted);
  font-variant-numeric: tabular-nums;
  font-size: var(--type-ui);
}
.matchup-hero__vs {
  font-family: var(--lda-font-display);
  font-weight: 680;
  letter-spacing: .08em;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  opacity: .72;
}
.matchup-hero .matchup-hero__watch.lda-btn { margin-top: var(--space-4); min-height: 52px; }
.upcard .matchup-name,
.picker .matchup-name,
.rivalry-card .matchup-name {
  display: block;
  margin: 4px 0 0;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  font-weight: 680;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
}
.picker-matchup,
.rivalry-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}
.rivalry-card {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.rivalry-card__score {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--lda-font-display);
  font-weight: 680;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.moment-card { flex-direction: column; align-items: flex-start; }
.moment-card__headline {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--lda-font-display);
  font-weight: 680;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.moment-card__watch {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin-top: var(--space-2);
  padding: 0;
  border: 0;
  box-shadow: none;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: var(--type-meta);
  font-weight: 650;
  color: var(--lda-gold);
}
.page-head .agent-search__toggle {
  width: var(--tap);
  min-width: var(--tap);
  padding: 0;
  color: var(--lda-gold);
}
.page-head .agent-search__toggle.is-open {
  color: var(--lda-gold-bright);
  background: var(--lda-gold-wash);
  box-shadow: inset 0 0 0 1px var(--lda-gold-line-strong);
}
.agent-search__glyph {
  width: 22px;
  height: 22px;
  display: block;
}
.page-head .agent-search {
  flex: 1 0 100%;
  margin: var(--space-2) 0 0;
}
.agent-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
}
.agent-search[hidden] { display: none; }
.agent-search__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.agent-search input[type="search"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: var(--tap);
  margin: 0;
  padding: 0 var(--space-3);
  background: var(--lda-surface);
  color: var(--lda-text);
  border: 1px solid var(--lda-line);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
}
.agent-search input[type="search"]::placeholder { color: var(--lda-text-muted); }
.agent-search input[type="search"]:focus-visible {
  outline: 3px solid var(--lda-focus);
  outline-offset: 2px;
  border-color: var(--lda-gold);
}
.agent-search__clear {
  flex: 0 0 auto;
  min-height: var(--tap);
  padding: 0 var(--space-3);
}
.agent-search__clear[hidden] { display: none; }
.agent-search__empty { margin-top: var(--space-2); }
.agent-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.agent-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: var(--lda-text);
  border-radius: 22px;
  border: 1px solid var(--lda-line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--agent-primary, var(--lda-surface-3)) 18%, var(--lda-surface)), var(--lda-felt-dim) 70%);
  box-shadow: var(--lda-shadow-3);
}
.agent-card__portrait {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}
.agent-card__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, color-mix(in srgb, var(--lda-bg) 92%, transparent) 100%);
  pointer-events: none;
}
.agent-card__portrait .agent-avatar,
.agent-card__portrait .mark,
.agent-card__portrait .agent-avatar > .mark,
.agent-card__portrait img {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.agent-card__identity { padding: var(--space-3) var(--space-3) var(--space-4); }
.agent-card__name {
  display: block;
  margin: 0;
  font-family: var(--lda-font-display);
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.agent-card__stats { display: flex; gap: 10px; }
.roster-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
}
.roster-id b,
.trending-card b,
.arena-shell .agent-copy b {
  text-transform: uppercase;
  letter-spacing: .04em;
}
.roster-stats { text-align: right; }
.roster-extra { display: block; color: var(--lda-text-muted); font-size: var(--type-meta); }
.market-identity .mark,
.market-identity .agent-avatar,
.market-identity .agent-avatar > .mark,
.history-seat .mark,
.history-seat .agent-avatar {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 2px var(--agent-accent, var(--lda-line));
}
.agent-hero .agent-pfp {
  width: clamp(120px, 46vw, 180px);
  border-radius: var(--radius-xl);
}
.arena-shell .agent-portrait-wrap .agent-avatar,
.arena-shell .agent-portrait-wrap .mark,
.arena-shell .agent-portrait-wrap .agent-avatar > .mark,
.arena-shell .agent-portrait-wrap .agent-avatar > img,
.arena-shell .agent-portrait-wrap .agent-avatar > svg {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: var(--radius-xl);
  object-fit: cover;
}
.arena-shell.stage .watch-agent {
  transition: transform 180ms var(--ease-standard), opacity 180ms var(--ease-standard), filter 180ms var(--ease-standard);
}
.arena-shell.stage .watch-agent.is-inactive {
  opacity: .68;
  filter: saturate(.82);
}
.arena-shell.stage .watch-agent.is-active {
  opacity: 1;
  transform: translateY(-2px);
}
.arena-shell.stage .watch-agent.is-active .watch-agent__pfp {
  box-shadow:
    0 0 0 2px var(--agent-accent),
    0 0 38px color-mix(in srgb, var(--agent-accent) 28%, transparent);
}
.arena-shell.stage.is-liar-event .watch-agent.is-inactive { opacity: .36; }
.arena-shell.stage.is-liar-event .watch-agent.is-active { transform: translateY(-4px) scale(1.04); }
#match-intro:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  pointer-events: auto;
  background:
    radial-gradient(circle at 22% 40%, color-mix(in srgb, var(--hero-a, var(--lda-live-fill)) 32%, transparent), transparent 36%),
    radial-gradient(circle at 78% 40%, color-mix(in srgb, var(--hero-b, var(--lda-gold)) 26%, transparent), transparent 36%),
    var(--lda-bg);
}
#match-intro.intro-complete {
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.match-intro { width: min(100%, 920px); }
.match-intro__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}
.match-intro__agent {
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-standard), transform var(--dur-ui) var(--ease-standard);
}
.match-intro__agent.is-a { transform: translateX(-18px); }
.match-intro__agent.is-b { transform: translateX(18px); }
.match-intro.show-agent-a .is-a,
.match-intro.show-agent-b .is-b { opacity: 1; transform: none; }
.match-intro__vs {
  opacity: 0;
  transform: scale(.92);
  font-family: var(--lda-font-display);
  font-weight: 680;
  letter-spacing: .08em;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  transition: opacity var(--dur-micro) var(--ease-standard), transform var(--dur-micro) var(--ease-standard);
}
.match-intro.show-vs .match-intro__vs { opacity: .72; transform: none; }
.match-intro .brand-title,
.match-intro .matchup-name,
.match-intro .matchup-agent__record {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-micro) var(--ease-standard), transform var(--dur-micro) var(--ease-standard);
}
.match-intro.show-copy .brand-title,
.match-intro.show-copy .matchup-name { opacity: 1; transform: none; }
.match-intro.show-records .matchup-agent__record { opacity: 1; transform: none; }
@media (min-width: 760px) {
  .portrait-plate--hero { width: clamp(160px, 18vw, 200px); }
  .agent-hero .agent-pfp { width: clamp(180px, 28vw, 260px); }
  .agent-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.agent-visual-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pfp-frame img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.visual-group { margin: 0 0 18px; }
.visual-section { border: 1px solid var(--lda-line); border-radius: 12px; padding: 6px 14px; margin: 0 0 12px; }
.visual-section > summary { cursor: pointer; padding: 8px 0; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: baseline; }
.visual-section > summary::-webkit-details-marker { display: none; }
.visual-section > summary::after { content: "+"; opacity: .6; }
.visual-section[open] > summary::after { content: "–"; }
.visual-section[open] > summary { margin-bottom: 8px; }
.visual-group h2 { font-size: 15px; margin: 0 0 8px; }
.option-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--lda-line);
  background: var(--lda-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.option-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--lda-avatar-bg);
}
.option-card span { font-size: 12px; line-height: 1.3; text-transform: capitalize; }
.option-card.is-selected {
  border-color: var(--lda-gold);
  box-shadow: inset 0 0 0 1px var(--lda-gold);
}
.portrait-editor { margin: 12px 0 18px; }
.portrait-editor summary { cursor: pointer; font-weight: 650; margin-bottom: 10px; }
.pfp-debug {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--lda-surface-2);
  font-size: 12px;
}
.pfp-debug p { margin: 4px 0; word-break: break-all; }
.pfp-compare {
  display: grid;
  grid-template-columns: repeat(4, 96px);
  gap: 12px;
  align-items: start;
}
.pfp-compare img { width: 96px; height: 96px; border-radius: 12px; background: var(--lda-avatar-bg); }
@media (min-width: 760px) {
  .agent-visual-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.agent-leaders { min-width: 0; max-width: 100%; }
.agent-leaders__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.agent-leaders__head h2 { margin: 0; }
.leader-sort {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lda-line);
  background: var(--lda-surface);
  max-width: 100%;
}
.leader-sort__btn {
  min-height: var(--tap);
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--lda-text-muted);
  font-size: var(--type-meta);
  font-weight: 650;
  letter-spacing: 0.04em;
}
.leader-sort__btn.is-on {
  background: var(--lda-gold);
  color: var(--lda-ink);
}
.leader-sort__btn:focus-visible,
.leader-row:focus-visible {
  outline: 3px solid var(--lda-focus);
  outline-offset: 2px;
}
.leader-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.leader-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap);
  display: grid;
  grid-template-columns: minmax(1.25rem, auto) 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
  color: var(--lda-text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--agent-accent, var(--lda-gold)) 18%, var(--lda-surface)), var(--lda-surface) 46%);
  border: 1px solid var(--lda-line);
  border-radius: var(--radius-md);
}
.leader-row:hover { border-color: var(--lda-gold-line); }
.leader-row__rank {
  font-family: var(--lda-font-display);
  font-weight: 680;
  font-size: 1rem;
  color: var(--lda-text-muted);
  text-align: center;
}
.leader-row__rank.is-top { color: var(--lda-gold); }
.leader-row__face {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--agent-accent, var(--lda-line));
}
.leader-row__face .agent-avatar,
.leader-row__face .agent-avatar > .mark,
.leader-row__face .agent-avatar > img,
.leader-row__face .mark,
.leader-row__face img {
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  object-fit: cover;
}
.leader-row__name {
  min-width: 0;
  font-family: var(--lda-font-display);
  font-weight: 680;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.leader-row__metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 4.5rem;
}
.leader-row__wins {
  color: var(--lda-text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.leader-row__wins b {
  color: var(--lda-text);
  font-family: var(--lda-font-display);
  font-weight: 680;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  margin-right: 3px;
}
.leader-row__cap {
  color: var(--lda-gold);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.leader-row__cap.is-unknown { color: var(--lda-text-muted); }
@media (max-width: 420px) {
  .leader-row { gap: 6px; padding: 8px; }
  .leader-row__name { font-size: 0.86rem; }
  .leader-sort__btn { padding: 0 10px; }
}
@media (max-width: 640px) {
  .roster-extra { display: none; }
  .matchup-hero { min-height: min(62dvh, 560px); padding: var(--space-3); }
}
/* Head-to-head rows. The record is its own full-width line so a short title
   cannot leave it sitting beside the name. */
.rowbtn.rival-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "face identity"
    "record record";
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
}
.rival-note__face {
  grid-area: face;
  display: flex;
  align-items: center;
  min-width: 0;
}
.rival-note__face .portrait-plate { margin: 0; }
.rival-note__identity {
  grid-area: identity;
  min-width: 0;
}
.rival-note__identity b,
.rival-note__identity .brand-title {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rowbtn.rival-note .rival-note__record {
  grid-area: record;
  flex: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
