
.duel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1rem;
  text-align: center;
}
.duel-scoreboard {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(20, 18, 16, 0.95) 100%);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) {
  .duel-scoreboard {
    padding: 0.85rem 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }
}
@media (max-width: 380px) {
  .duel-scoreboard {
    padding: 0.75rem 0.65rem;
  }
}
.duel-tug-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.duel-tug-me {
  background: linear-gradient(90deg, var(--primary) 0%, rgba(226, 84, 63, 0.8) 100%);
}
.duel-tug-opp {
  background: linear-gradient(90deg, rgba(227, 165, 87, 0.8) 0%, var(--accent) 100%);
}
.duel-leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}
.duel-leaderboard-table th.num,
.duel-leaderboard-table td.num {
  text-align: right;
}
.trader-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.duel-match-recap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
@media (max-width: 640px) {
  .duel-match-recap {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    margin-top: 1.25rem;
  }
}
.duel-recap-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.duel-recap-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.duel-recap-stat .num {
  font-size: 1.05rem;
  font-weight: 700;
}
@media (max-width: 640px) {
.duel-leaderboard-table th,
  .duel-leaderboard-table td {
    padding: 0.6rem 0.45rem;
  }
}
#duel-pending-list li,
#duel-invites-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
@media (max-width: 640px) {
  #duel-pending-list li,
  #duel-invites-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
  }
#duel-pending-list li .btn,
  #duel-invites-list li .btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }
  #duel-create-submit {
    min-height: 48px;
    font-size: 1rem;
  }
}
.trade-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.duel-page .wrap {
  max-width: none;
  padding-inline: clamp(1.25rem, 3vw, 3rem);
}
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(226, 84, 63, 0.12);
  border: 1px solid rgba(226, 84, 63, 0.25);
  color: var(--primary);
}
.duel-trader .trade-cell {
  margin-top: auto;
  padding-top: 0.15rem;
}
@media (max-width: 480px) {
  .duel-page .wrap { padding-inline: 1rem; }
}
.duel-mode-switch {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.25rem;
}
.mode-switch-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.mode-switch-btn .icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.mode-switch-btn:hover {
  color: var(--text-primary);
}
.mode-switch-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(226, 84, 63, 0.3);
}
.duration-chips,
.entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.chip-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.chip-btn:hover {
  border-color: rgba(226, 84, 63, 0.4);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.chip-btn.active {
  border-color: var(--primary);
  background: rgba(226, 84, 63, 0.15);
  color: var(--primary);
}
.duel-calc-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.25rem 0;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.calc-row.calc-total {
  border-top: 1px dashed var(--border-subtle);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.calc-purse-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-purse-val {
  color: var(--success);
  font-size: 1.15rem;
  font-weight: 800;
}
.duel-waiting-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.duel-waiting-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.duel-waiting-row.is-live { border-color: rgba(16, 185, 129, 0.35); }
.duel-waiting-row.is-live .duel-waiting-dot { background: var(--up); }
.duel-waiting-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 16rem; min-width: 0; }
.duel-waiting-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .duel-waiting-dot { animation: none; }
}
.board-record {
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.board-rating {
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--primary);
  white-space: nowrap;
}
.board-rating.is-provisional { border-color: var(--border-subtle); color: var(--text-dim); }
#duel-quick-submit { margin-top: 0.5rem; }
.duel-quick-note { margin: 0.35rem 0 0; text-align: center; }
.duel-match-list { list-style: none; margin: 0; padding: 0; }
.duel-match-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 6.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.35rem;
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.duel-match-list li:first-child .duel-match-link { border-top: 0; }
.duel-match-link:hover { background: rgba(255, 255, 255, 0.03); }
.duel-match-link .num { text-align: right; }
.duel-match-who { display: flex; flex-direction: column; min-width: 0; }
.duel-match-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .duel-match-link { grid-template-columns: auto minmax(0, 1fr) auto; }
  .duel-match-link .num.small { display: none; }
}
.duel-race-chart { height: 300px; margin-top: 0.25rem; }
.duel-race-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.race-key { display: inline-flex; align-items: center; gap: 0.35rem; }
.race-key::before { content: ""; width: 14px; height: 3px; border-radius: 2px; }
.race-me::before { background: var(--primary); }
.race-opp::before { background: var(--accent); }
.duel-race-note { margin: 0.75rem 0 0; }
.duel-card-page {
  --seat-creator: var(--text-primary);
  --seat-opponent: var(--accent);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.duel-result { max-width: 60rem; }
.duel-result-head h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  word-spacing: 0.06em;
  font-variation-settings: "opsz" 144;
  overflow-wrap: anywhere;
}
.duel-result-meta { margin: 0.75rem 0 0; color: var(--text-secondary); font-size: var(--fs-sm); }
.duel-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: clamp(1.5rem, 4vw, 2.25rem);
  border-block: 1px solid var(--border-subtle);
}
.duel-score-side { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.duel-score-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.duel-score-opponent .duel-score-name { flex-direction: row-reverse; }
.duel-score-who { overflow-wrap: anywhere; }
.duel-score-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.duel-score-tag .icon { width: 0.95rem; height: 0.95rem; }
.duel-score-equity {
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.duel-score-pct { font-size: var(--fs-sm); }
.duel-score-note { font-size: var(--fs-xs); font-weight: 600; }
.duel-score-mid { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.duel-score-result {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  white-space: nowrap;
}
.duel-score-margin { color: var(--text-secondary); font-size: var(--fs-xs); white-space: nowrap; }
.duel-result-round { margin-top: clamp(2rem, 5vw, 2.75rem); }
.duel-result-round-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}
.duel-result-round-head h2 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); font-variation-settings: "opsz" 24; }
.duel-result-round-note { color: var(--text-secondary); font-size: var(--fs-sm); }
.duel-result-round-score { display: flex; gap: 1.25rem; margin-left: auto; font-size: var(--fs-sm); color: var(--text-secondary); }
.duel-result-round-score > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.duel-result-round-score .is-ahead { color: var(--text-primary); font-weight: 600; }
.duel-result-race { margin: clamp(2rem, 5vw, 2.75rem) 0 0; }
.duel-result-race .duel-race-chart {
  height: clamp(240px, 38vw, 340px);
  padding: 0.75rem 0.5rem 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.duel-result-note { margin: 0.85rem 0 0; color: var(--text-secondary); font-size: var(--fs-sm); }
.duel-result-note a { margin-left: 0.25rem; }
.duel-result-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  border-top: 1px solid var(--border-subtle);
}
.duel-result-facts > div { padding: 0.9rem 1rem 0 0; }
.duel-result-facts dt { color: var(--text-tertiary); font-size: var(--fs-xs); }
.duel-result-facts dd { margin: 0.2rem 0 0; }
.duel-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.duel-share-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.duel-share-cta .btn .icon { margin-left: 0.4rem; }
@media (max-width: 560px) {
  .duel-score { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 1.25rem; }
  .duel-score-mid { grid-column: 1 / -1; grid-row: 1; flex-direction: row; align-items: baseline; gap: 0.75rem; }
  .duel-result-round-score { margin-left: 0; width: 100%; }
}
.result-share .share-trigger { justify-content: flex-end; }
@media (max-width: 600px) {
  .result-share .share-trigger { justify-content: flex-start; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .share-sheet[open] { animation: share-sheet-up 0.28s cubic-bezier(.45, .05, .35, 1); }
}
.pp-head { max-width: 60rem; }
.pp-name {
  margin: 0.4rem 0 0;
  font-size: clamp(3.25rem, 11vw, 8rem);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.038em;
  line-height: 0.94;
  overflow-wrap: anywhere;
}
.pp-record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin: 1.25rem 0 0; }
.pp-record-score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pp-record-note { color: var(--text-secondary); }
.pp-form { margin: clamp(2rem, 5vw, 3rem) 0 0; }
.pp-form-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; }
.pp-form-axis { position: relative; min-width: 3.4rem; }
.pp-form-axis span {
  position: absolute; right: 0; transform: translateY(-50%);
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap;
}
.pp-form-area { position: relative; height: clamp(150px, 24vw, 220px); margin-right: 4.5rem; }
.pp-form-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pp-gridline { stroke: var(--border-subtle); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pp-gridline.is-zero { stroke: var(--text-tertiary); stroke-dasharray: 3 4; }
.pp-area { fill: var(--text-primary); fill-opacity: 0.06; stroke: none; }
.pp-line { fill: none; stroke: var(--text-primary); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pp-dots { list-style: none; margin: 0; padding: 0; }
.pp-dots li { position: absolute; transform: translate(-50%, -50%); }
.pp-dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; text-decoration: none;
}
.pp-dot span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 600 0.68rem/1 var(--mono); color: var(--bg);
  background: var(--text-tertiary); box-shadow: 0 0 0 2px var(--bg);
  transition: transform 120ms ease;
}
.pp-dot.is-w span { background: var(--up); }
.pp-dot.is-l span { background: var(--down); }
.pp-dot:hover span, .pp-dot:focus-visible span { transform: scale(1.2); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text-primary); }
.pp-dot:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .pp-dots li { animation: pp-pop 0.35s ease both; }
}
.pp-game-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pp-game-score { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 600; }
.pp-game .duel-winrate-bar { margin: 0.4rem 0 0.75rem; }
.pp-facts { margin: 0; }
.pp-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border-subtle); }
.pp-facts dt { color: var(--text-tertiary); font-size: 0.85rem; }
.pp-facts dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.pp-facts-big dd { font-size: 1.35rem; font-weight: 600; }
.pp-markets { display: grid; gap: 0.4rem; margin: 0.9rem 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.8rem; }
.pp-markets li span:last-child { text-align: right; color: var(--text-tertiary); }
.pp-market-bar { height: 4px; background: var(--bg-tertiary); }
.pp-market-bar span { display: block; height: 100%; background: var(--text-secondary); }
.pp-matches { margin: 0; padding: 0; list-style: none; }
.pp-matches a:hover, .pp-matches a:focus-visible { background: var(--bg-secondary); }
.pp-match-who { display: flex; flex-direction: column; min-width: 0; }
.pp-match-who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-match-who span { font-size: 0.8rem; color: var(--text-tertiary); }
.pp-match-figure { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pp-match-figure small { font-size: 0.75rem; color: var(--text-tertiary); }
.pp-cta h2 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.pp-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.pp-note { margin: 2rem 0 0; color: var(--text-tertiary); max-width: 34em; }
.pp-highlights > div { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem 1.2rem; min-width: 0; }
.pp-highlights > div:first-child { padding-left: 0; }
.pp-highlights > div + div { border-left: 1px solid var(--border-subtle); }
.pp-highlights dt { font-size: 0.85rem; color: var(--text-tertiary); }
.pp-highlights dd { margin: 0; }
.pp-hl-figure {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pp-hl-note { font-size: 0.85rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-hl-bar { display: block; height: 4px; margin-top: 0.55rem; background: var(--bg-tertiary); }
.pp-hl-bar span { display: block; height: 100%; background: var(--up); }
@media (max-width: 760px) {
  .pp-highlights > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pp-highlights > div:nth-child(n + 3) { border-top: 1px solid var(--border-subtle); }
}
.pp-game-form { margin: 0 0 0.6rem; }
.pp-sub { margin: 1.1rem 0 0.4rem; font-family: var(--body); font-size: 0.85rem; font-weight: 500; color: var(--text-tertiary); }
.pp-split { display: flex; height: 6px; margin: 0.5rem 0 0.4rem; gap: 2px; }
.pp-split .is-long { background: var(--up); }
.pp-split .is-short { background: var(--down); }
.pp-split-legend { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-family: var(--mono); font-size: 0.8rem; color: var(--text-secondary); }
.pp-rivals { margin: 0; padding: 0; list-style: none; }
.pp-rival-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-rival-record { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.pp-rival-played { font-size: 0.8rem; color: var(--text-tertiary); text-align: right; min-width: 5.5rem; }
@media (max-width: 420px) {
  .pp-rival-bar { display: none; }
}
.pp-cal-months, .pp-cal-grid { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 3px; }
.pp-cal-months { margin-bottom: 0.4rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-tertiary); }
.pp-cal-months span { white-space: nowrap; overflow: visible; }
.pp-cal-week { display: grid; grid-template-rows: repeat(7, auto); gap: 3px; }
.pp-cal-day { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--bg-tertiary); }
.pp-cal-day.lvl-1 { background: rgba(237, 232, 218, 0.22); }
.pp-cal-day.lvl-2 { background: rgba(237, 232, 218, 0.42); }
.pp-cal-day.lvl-3 { background: rgba(237, 232, 218, 0.66); }
.pp-cal-day.lvl-4 { background: var(--text-primary); }
.pp-cal-day.is-future { background: transparent; }
.pp-cal-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 0.75rem; font-size: 0.75rem; color: var(--text-tertiary); }
.pp-cal-legend .pp-cal-day { width: 11px; }
.pp-cal-legend .pp-cal-day:first-of-type { margin-left: 4px; }
.pp-cal-legend .pp-cal-day:last-of-type { margin-right: 4px; }
@media (max-width: 560px) {
  .pp-cal-months, .pp-cal-grid { gap: 2px; }
  .pp-cal-week { gap: 2px; }
  .pp-cal-months { font-size: 0.75rem; }
}
.public-master { padding-bottom: 1rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-2); }
.public-address { overflow-wrap: anywhere; }
.public-sections { transition: opacity 0.2s ease; }
.public-editor.is-off .public-sections { opacity: 0.6; }
.public-editor .toggle-foot .btn[hidden] { display: none; }
.public-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.public-fields:disabled .switch { opacity: 0.45; cursor: not-allowed; }
.public-fields:disabled .toggle-row { cursor: not-allowed; }
.public-fields:disabled .public-sections { opacity: 0.6; }
.duel-stats-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
@media (max-width: 800px) { .duel-stats-hero { grid-template-columns: 1fr; } }
.duel-stat-big {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.duel-stat-big .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.duel-winrate-bar { height: 6px; border-radius: var(--radius); background: rgba(244, 63, 94, 0.35); overflow: hidden; }
.duel-winrate-bar span { display: block; height: 100%; background: var(--up); }
.duel-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; min-height: 1.6rem; }
.form-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.form-w { background: rgba(16, 185, 129, 0.15); color: var(--up); border: 1px solid rgba(16, 185, 129, 0.35); }
.form-l { background: rgba(244, 63, 94, 0.15); color: var(--down); border: 1px solid rgba(244, 63, 94, 0.35); }
.form-t { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--border-subtle); }
.duel-stats .duel-stats-grid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.duel-stats-markets {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.market-row {
  display: grid;
  grid-template-columns: 6rem 1fr 4.5rem 7.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border-subtle);
}
.market-row-head { border-top: 0; padding-top: 0; }
.market-row .num { text-align: right; }
.market-bar { height: 6px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.market-bar span { display: block; height: 100%; background: var(--accent); }
.duel-stats-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .market-row { grid-template-columns: 5rem 1fr 6.5rem; }
  .market-row .market-trades { display: none; }
}
.duel-top-duelists-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.duel-top-duelists-list .rank-pill.rank-other {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.figure-lg .num { font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.paid-only[hidden], #duel-create-form .field[hidden] { display: none; }
#duel-create-modal .note + #duel-create-form { margin-top: 1rem; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.duel-page .wrap { max-width: none; padding-inline: clamp(1.25rem, 3vw, 3rem); }
@media (max-width: 480px) { .duel-page .wrap { padding-inline: 1rem; } }
.duel-queue { display: grid; gap: 1rem; }
.duel-queue:has(> .panel:not([hidden])) { margin-bottom: 1.25rem; }
.lobby-invite-setting { margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.lobby-invite-setting .toggle-row { padding: 0; border-bottom: 0; align-items: flex-start; font-size: 0.9rem; }
.duel-board-table td { vertical-align: middle; }
.duel-board-panel .table-scroll { margin-top: 0.5rem; }
.chip-btn {
  border-color: var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.chip-btn:hover { border-color: var(--border-2); color: var(--text); background: var(--bg-panel-2); }
.chip-btn.active {
  border-color: var(--primary);
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.duel-waiting-row { background: var(--bg-panel-2); border-color: var(--border); }
@media (max-width: 640px) {
.duel-waiting-text { flex-basis: auto; }
}
.duel-faq { margin-top: 0; }
.field-label { display: block; margin-bottom: 0.4rem; font-size: 0.88rem; }
.duel-mode-switch { background: var(--bg-panel-2); border-color: var(--border); border-radius: var(--radius); }
.mode-switch-btn { color: var(--text-dim); border: 1px solid transparent; }
.mode-switch-btn.active { background: var(--bg-panel-3); border-color: var(--border-2); box-shadow: none; color: var(--text); }
.duel-calc-card {
  margin: 1.25rem 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.calc-row { color: var(--text-dim); }
.calc-row.calc-total { border-top: 1px solid var(--border); color: var(--text); }
.modal .note-list { margin-bottom: 0.25rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding-right: 0.85rem;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
}
.duel-side-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; max-width: 100%; font-size: 0.85rem; color: var(--text-dim); }
.duel-side-name .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-side-equity { font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.02em; }
.duel-clock-num { font-size: 2.5rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.duel-room .duel-tug::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: var(--bg-panel);
}
.duel-room .duel-tug-me { background: var(--primary-fill); }
.duel-room .duel-tug-opp { background: var(--accent); }
.combatant-you-badge,
.combatant-opp-badge {
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}
.combatant-you-badge { background: var(--bg-panel-3); color: var(--text); border: 1px solid var(--border-2); }
.combatant-opp-badge { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
@media (max-width: 720px) {
  .duel-clock-num { font-size: 1.9rem; }
  .duel-side { padding: 0.25rem 0; }
  .duel-side-equity { font-size: 1.3rem; }
}
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.result-share { display: flex; gap: 0.5rem; }
.result-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.25rem 1.75rem;
  padding: 1.75rem;
  margin-bottom: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.result-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
}
.result-copy { display: grid; gap: 0.5rem; min-width: 0; }
.result-copy h1 { font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
.result-figure { display: grid; justify-items: end; gap: 0.2rem; text-align: right; }
.result-icon { animation: result-in .5s var(--ease) both; }
@media (max-width: 720px) {
  .result-hero { grid-template-columns: auto minmax(0, 1fr); padding: 1.25rem; }
  .result-figure { grid-column: 1 / -1; justify-items: start; text-align: left; padding-top: 1rem; border-top: 1px solid var(--border); }
  .result-copy h1 { font-size: 1.9rem; }
  .result-icon { width: 2.75rem; height: 2.75rem; }
}
.result-panel { margin-bottom: 1rem; }
.dj-table.duel-leaderboard-table th { padding: 0.85rem 1.25rem 0.85rem 0; }
.trader-cell { display: inline-flex; align-items: center; gap: 0.6rem; }
.result-recap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.result-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.rematch-line { flex-basis: 100%; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0; color: var(--text-primary); }
.rematch-acts { display: inline-flex; gap: 0.5rem; }
.duel-race-chart { height: 300px; }
@media (max-width: 480px) {
.mode-switch-btn .icon { display: none; }
}
.duel-board-table th:nth-child(2) { width: 9rem; }
.duel-board-table th:nth-child(3) { width: 7rem; }
.duel-board-table th:nth-child(4) { width: 9rem; }
.duel-board-table th:nth-child(5) { width: 6.5rem; }
@media (max-width: 1100px) {
.duel-board-panel { order: 1; }
  #duel-live-panel { order: 2; }
}
.duel-trader .trade-cell { display: flex; flex-wrap: wrap; }
.duel-board-table th:nth-child(1) { width: 34%; }
.duel-board-table th:nth-child(2) { width: 22%; }
.draft-room {
  --seat-creator: #e4dfd2;
  --seat-opponent: #e3a557;
  padding-block: 1rem 3rem;
}
.draft-wrap { max-width: 1480px; }
.draft-head-title { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.draft-head-sep { margin-inline: 0.2em; color: var(--text-tertiary); font-family: var(--body); font-size: 0.7em; font-weight: 400; }
.draft-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.draft-head-meta .duel-sound-toggle { white-space: nowrap; }
.draft-pill {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.draft-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "main panel" "moves panel";
  gap: 1.25rem;
  align-items: start;
}
.draft-main { grid-area: main; min-width: 0; }
.draft-panel { grid-area: panel; }
.draft-layout > .draft-moves { grid-area: moves; min-width: 0; }
.draft-panel { display: flex; flex-direction: column; gap: 0.75rem; }
.draft-board-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.25rem 0.25rem;
}
.draft-board { position: relative; min-height: 300px; }
.draft-loupe {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: var(--bg-app);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.draft-loupe[hidden] { display: none; }
.draft-loupe svg { display: block; }
.draft-loupe-num {
  position: absolute;
  left: 0.3rem;
  bottom: 0.3rem;
  padding: 0 0.3rem;
  border-radius: 4px;
  background: var(--bg-app);
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.draft-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.draft-board.is-picking .draft-svg { cursor: crosshair; touch-action: none; }
.draft-wick, .draft-body { stroke-width: 1; }
.draft-wick.is-up, .draft-body.is-up { stroke: var(--up); fill: var(--up); }
.draft-wick.is-down, .draft-body.is-down { stroke: var(--down); fill: var(--down); }
.draft-grid { stroke: var(--border-subtle); stroke-width: 1; }
.draft-axis-label {
  fill: var(--text-tertiary);
  font-size: 11px;
  font-family: var(--mono);
}
.draft-band-creator { color: var(--seat-creator); }
.draft-band-opponent { color: var(--seat-opponent); }
.draft-band { fill: currentColor; fill-opacity: 0.08; }
.draft-band-tab { fill: currentColor; fill-opacity: 0.2; stroke: currentColor; stroke-opacity: 0.55; }
.draft-band-ghost { fill: currentColor; fill-opacity: 0.06; stroke: currentColor; stroke-opacity: 0.45; stroke-dasharray: 4 4; }
.draft-band-label {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--mono);
  pointer-events: none;
}
.draft-band-label-up { fill: var(--up); }
.draft-band-label-down { fill: var(--down); }
.draft-band-label.is-ghost { fill-opacity: 0.8; font-weight: 500; font-size: 10.5px; }
.draft-claim-band.is-new .draft-band { animation: draft-band-land 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.draft-claim-band.is-new .draft-band-tab { animation: draft-tab-land 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.draft-dead { opacity: 0.7; }
.draft-hatch-line { stroke: var(--border-2); stroke-width: 1.5; }
.draft-sel { stroke-width: 1.5; stroke-dasharray: 5 4; }
.draft-sel-long { fill: var(--up); fill-opacity: 0.12; stroke: var(--up); }
.draft-sel-short { fill: var(--down); fill-opacity: 0.12; stroke: var(--down); }
.draft-sel.is-illegal { fill: var(--text-tertiary); fill-opacity: 0.1; stroke: var(--text-tertiary); }
.draft-sel-line { stroke: var(--text-primary); stroke-width: 1.5; stroke-opacity: 0.8; }
.draft-sel-line.is-illegal { stroke-opacity: 0.35; }
.draft-marker { stroke: var(--text-primary); stroke-width: 1.5; }
.draft-marker-exit { stroke-dasharray: 3 3; }
.draft-marker-dot { fill: var(--bg-card); stroke: var(--text-primary); stroke-width: 2; }
.draft-marker-hover { stroke: var(--text-tertiary); stroke-width: 1; stroke-opacity: 0.6; }
.draft-marker-cursor { stroke: var(--text-secondary); stroke-width: 1; stroke-dasharray: 2 4; }
.draft-axis-pill { fill: var(--primary-fill); }
.draft-axis-pill-text {
  fill: var(--on-primary-fill);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}
.draft-tip {
  position: absolute;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  background: var(--bg-app);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.draft-tip.is-up { border-color: var(--up); }
.draft-tip.is-down { border-color: var(--down); }
.draft-tip.is-illegal { color: var(--text-secondary); }
.draft-banner {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  background: var(--bg-app);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  white-space: nowrap;
}
.draft-banner[hidden] { display: none; }
.draft-banner #draft-start-now { pointer-events: auto; border-radius: var(--radius-pill); flex-shrink: 0; white-space: nowrap; }
.draft-banner .draft-countdown { flex-shrink: 0; }
.draft-banner #draft-start-now[hidden] { display: none; }
.draft-banner strong { color: var(--text-primary); }
.draft-banner span { color: var(--text-secondary); }
.draft-countdown {
  min-width: 3ch;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary-fill);
  color: var(--on-primary-fill) !important;
  font-weight: 600;
  text-align: center;
}
.draft-countdown.is-low { background: var(--down-fill); color: var(--on-fill) !important; }
.draft-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.draft-legend li { display: flex; align-items: center; gap: 0.45rem; }
.draft-legend li[hidden] { display: none; }
.draft-swatch {
  display: inline-block;
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: var(--radius);
}
.draft-swatch-creator { background: var(--seat-creator); }
.draft-swatch-opponent { background: var(--seat-opponent); }
.draft-swatch-ghost { background: var(--text-tertiary); opacity: 0.4; }
.draft-swatch-dead {
  background: repeating-linear-gradient(45deg, var(--border-2) 0 1.5px, transparent 1.5px 5px);
  border: 1px solid var(--border-subtle);
}
.draft-help {
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 34em;
}
.draft-help summary { cursor: pointer; color: var(--text-primary); font-weight: 500; }
.draft-help ul { margin: 0.6rem 0; padding-left: 1.1rem; }
.draft-help li { margin-bottom: 0.4rem; text-wrap: pretty; }
.draft-help strong { color: var(--text-primary); font-weight: 600; }
.draft-keys { line-height: 1.9; }
.draft-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1.25rem; margin-bottom: 0.5rem; }
.draft-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.draft-switch[hidden] { display: none; }
.draft-switch-track {
  position: relative;
  width: 2rem;
  height: 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-2);
  transition: background-color 150ms ease;
}
.draft-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.1rem - 6px);
  height: calc(1.1rem - 6px);
  border-radius: calc(var(--radius) - 3px);
  background: var(--text-secondary);
  transition: transform 150ms ease, background-color 150ms ease;
}
.draft-switch input:checked + .draft-switch-track { background: var(--up-fill); border-color: var(--up); }
.draft-switch input:checked + .draft-switch-track::after { transform: translateX(0.9rem); background: var(--on-fill); }
.draft-switch input:focus-visible + .draft-switch-track { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.draft-switch:hover { color: var(--text-primary); }
.draft-end-label-bg { fill: var(--bg-app); stroke: var(--border-2); }
.draft-end-label { fill: var(--text-primary); font-size: 11px; font-family: var(--mono); }
.draft-resign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; padding: 0 0.15rem; }
.draft-resign {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.draft-resign:hover { color: var(--text-primary); }
.draft-resign:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.draft-resign.is-armed {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
  text-decoration: none;
  font-weight: 600;
}
.draft-resign:disabled { opacity: 0.5; cursor: default; }
.draft-resign-note { font-size: 0.8rem; color: var(--danger); }
.draft-resign-note[hidden] { display: none; }
.draft-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.draft-player .draft-swatch { grid-row: 1; }
.draft-player-name {
  grid-row: 1;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-rating { color: var(--text-tertiary); font-weight: 400; font-size: 0.8rem; }
.draft-player-equity { grid-row: 2; grid-column: 2; display: grid; font-size: 0.85rem; color: var(--text-secondary); }
.draft-player-match { color: var(--text-primary); }
.draft-clock {
  grid-row: 1 / span 2;
  grid-column: 3;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  background: var(--bg-panel-2);
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  line-height: 1.1;
}
.draft-player.is-to-move { border-color: var(--border-2); background: var(--bg-card-hover); }
.draft-clock.is-low { color: var(--down); }
.draft-player.is-to-move .draft-clock.is-low {
  background: var(--down-fill);
  color: var(--on-fill);
  animation: draft-clock-urgent 1s ease-in-out infinite;
}
.draft-standing { display: grid; gap: 0.4rem; padding: 0 0.15rem; }
.draft-standing-text { font-size: 0.86rem; color: var(--text-primary); font-weight: 500; }
.draft-standing-bar {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  overflow: hidden;
}
.draft-standing-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-2);
}
.draft-standing-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: var(--radius-pill);
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1), left 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.draft-standing-creator { background: var(--seat-creator); }
.draft-standing-opponent { background: var(--seat-opponent); }
.draft-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-panel-2);
}
.draft-reconnect { margin: 0; font-size: 0.85rem; color: var(--text-primary); }
.draft-reconnect:not(:empty) { padding: 0.5rem 0.75rem; border: 1px dashed var(--border-subtle); border-radius: var(--radius); }
.draft-status-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.draft-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex: none;
}
.draft-status .draft-status-detail { margin-top: 0.3rem; font-size: 0.88rem; color: var(--text-secondary); text-wrap: pretty; }
.draft-status .draft-status-detail:empty { display: none; }
.draft-status .draft-status-last {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-family: var(--mono);
  color: var(--text-secondary);
}
.draft-status-last[hidden] { display: none; }
.draft-status[data-tone="you"] { border-color: var(--primary-fill); }
.draft-status[data-tone="you"] .draft-status-dot { background: var(--primary-fill); animation: draft-pulse 1.8s ease-in-out infinite; }
.draft-status[data-tone="alert"] { border-color: var(--danger); background: var(--danger-bg); }
.draft-status[data-tone="alert"] .draft-status-dot { background: var(--danger); }
.draft-status-clock {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  background: var(--bg-tertiary);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.draft-status-clock[hidden], .draft-clock-float[hidden] { display: none; }
.draft-status-clock.is-low, .draft-clock-float.is-low b { color: var(--down); }
.draft-clock-float {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--primary-fill);
  border-radius: var(--radius-pill);
  background: var(--bg-panel-2);
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
}
.draft-clock-float b { font-size: 1.15rem; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.draft-order-wrap { display: grid; gap: 0.35rem; }
.draft-order-label { margin: 0; font-size: 0.78rem; color: var(--text-secondary); }
.draft-order {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.draft-slot {
  display: grid;
  place-items: center;
  height: 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-primary-fill);
  transition: opacity 200ms ease;
}
.draft-slot-creator { background: var(--seat-creator); }
.draft-slot-opponent { background: var(--seat-opponent); }
.draft-slot.is-done { opacity: 0.25; }
.draft-slot.is-current { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.draft-ticket {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease;
}
.draft-ticket.is-idle { border-style: dashed; }
.draft-ticket.is-idle :is(button, input, select):disabled { opacity: 0.55; }
.draft-ticket-title { margin: 0; font-family: var(--body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.draft-ticket-empty { margin: 0; font-size: 0.88rem; color: var(--text-secondary); }
.draft-ticket-empty strong { color: var(--text-primary); }
.draft-ticket.has-selection .draft-ticket-empty,
.draft-ticket.is-idle .draft-ticket-empty { display: none; }
.draft-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.draft-seg-btn {
  padding: 0.5rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.draft-seg-btn { display: grid; gap: 0.1rem; line-height: 1.2; }
.draft-seg-btn small { font-size: 0.75rem; font-weight: 400; opacity: 0.85; }
.draft-seg-btn:hover { color: var(--text-primary); }
.draft-seg-btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
#draft-long[aria-pressed="true"] { background: var(--up-fill); border-color: var(--up); color: var(--on-fill); }
#draft-short[aria-pressed="true"] { background: var(--down-fill); border-color: var(--down); color: var(--on-fill); }
.draft-ticket-candles { display: flex; align-items: flex-end; gap: 0.5rem; }
.draft-arrow { padding-bottom: 0.55rem; color: var(--text-tertiary); }
.draft-field { display: grid; gap: 0.25rem; flex: 1; min-width: 0; }
.draft-field-label { font-size: 0.75rem; color: var(--text-secondary); }
.draft-stepper { display: flex; align-items: stretch; }
.draft-stepper .input {
  width: 100%;
  min-width: 0;
  text-align: center;
  border-radius: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.draft-stepper .input::-webkit-inner-spin-button,
.draft-stepper .input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.draft-step {
  flex: none;
  width: 2rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-2);
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
}
.draft-step:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.draft-step:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.draft-step:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.draft-step:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
.draft-ticket-readout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
}
.draft-ticket:not(.has-selection) .draft-ticket-move,
.draft-ticket:not(.has-selection) .draft-ticket-money,
.draft-ticket:not(.has-selection) .draft-ticket-sub { display: none; }
.draft-ticket-move { font-size: 1.7rem; font-weight: 600; color: var(--text-tertiary); line-height: 1.1; }
.draft-ticket-move.is-up { color: var(--up); }
.draft-ticket-move.is-down { color: var(--down); }
.draft-ticket-money { font-size: 0.85rem; color: var(--text-primary); }
.draft-ticket-sub { font-size: 0.8rem; color: var(--text-secondary); }
.draft-why { grid-column: 1 / -1; font-size: 0.85rem; color: var(--danger); }
.draft-why:empty { display: none; }
.draft-why.is-hint { color: var(--text-secondary); }
.draft-ticket-actions { display: grid; gap: 0.4rem; }
.draft-claim { width: 100%; padding-block: 0.75rem; font-size: 1rem; }
.draft-pass { width: 100%; }
.draft-pass.is-armed { color: var(--danger); border-color: var(--danger); }
.draft-watching {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.draft-moves { margin: 0; padding: 0; }
.draft-moves h2 { margin: 0 0 0.4rem; font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
.draft-move-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.draft-move {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 5.5rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}
.draft-move:last-child { border-bottom: 0; }
.draft-move-num { color: var(--text-tertiary); font-size: 0.75rem; }
.draft-move-who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-move-creator .draft-move-who { color: var(--seat-creator); }
.draft-move-opponent .draft-move-who { color: var(--seat-opponent); }
.draft-move-what { color: var(--text-primary); }
.draft-move-pct.is-up { color: var(--up); }
.draft-move-pct.is-down { color: var(--down); }
.draft-move.is-new { animation: draft-move-land 1.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.draft-move-leg {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border-subtle);
}
.draft-move-empty { padding: 0.75rem; font-size: 0.85rem; color: var(--text-tertiary); }
@media (prefers-reduced-motion: reduce) {
  .draft-claim-band.is-new .draft-band,
  .draft-claim-band.is-new .draft-band-tab,
  .draft-move.is-new,
  .draft-status[data-tone="you"] .draft-status-dot { animation: none; }
  .draft-player, .draft-slot, .draft-seg-btn, .draft-ticket, .draft-standing-fill,
  .draft-switch-track, .draft-switch-track::after { transition: none; }
  .draft-player.is-to-move .draft-clock.is-low { animation: none; }
}
@media (max-width: 1000px) {
  .draft-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; grid-template-rows: none; gap: 0.75rem; }
  .draft-main, .draft-panel, .draft-layout > .draft-moves { grid-area: auto; }
  .draft-standing { order: 2; }
  .draft-panel { display: contents; }
  .draft-player-top { order: 1; }
  .draft-status { order: 2; }
  .draft-main { order: 3; }
  .draft-order-wrap { order: 4; }
  .draft-ticket, .draft-watching { order: 5; }
  .draft-player-bottom { order: 6; }
  .draft-resign-row { order: 6; }
  .draft-moves { order: 7; }
  .draft-clock { font-size: 1.35rem; }
}
@media (max-width: 560px) {
  .draft-head-title { flex-direction: column; gap: 0.25rem; }
  .draft-banner { white-space: normal; width: max-content; max-width: calc(100% - 1.5rem); }
}
.draft-bot-option, .draft-tc-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.6rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.draft-bot-option .small { grid-column: 2; }
.draft-bot-name { font-weight: 600; }
.draft-practice-form fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.draft-scores, .draft-ledger, .draft-pools { width: 100%; border-collapse: collapse; }
.draft-scores th, .draft-scores td,
.draft-ledger th, .draft-ledger td,
.draft-pools th, .draft-pools td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.draft-scores thead th, .draft-ledger thead th {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.draft-scores .num, .draft-ledger .num, .draft-pools .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.draft-leg { margin-top: 1.5rem; }
.draft-result { padding-block: 1rem 3rem; }
.draft-result .draft-wrap { max-width: 1100px; }
.draft-verdict {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.draft-verdict-title {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}
.draft-verdict-detail { margin-top: 0.35rem !important; color: var(--text-secondary); }
.draft-verdict[data-tone="won"] { border-color: var(--up); background: var(--success-bg); }
.draft-verdict[data-tone="won"] .draft-verdict-title { color: var(--up); }
.draft-verdict[data-tone="lost"] .draft-verdict-title { color: var(--text-primary); }
.draft-result .result-actions { margin: 1rem 0 2rem; }
.draft-scores caption {
  caption-side: bottom;
  padding-top: 0.6rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.draft-scores tbody th { font-weight: 600; white-space: nowrap; }
.draft-scores tbody th .draft-swatch { margin-right: 0.45rem; vertical-align: -0.05rem; }
.draft-you { font-weight: 400; font-size: 0.8rem; color: var(--text-secondary); }
.draft-win-badge {
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--primary-fill);
  color: var(--on-primary-fill);
  font-size: 0.75rem;
  font-weight: 600;
}
.draft-score-total { font-weight: 600; color: var(--text-primary); }
.draft-scores tr.is-winner .draft-score-total { font-size: 1.05rem; }
.draft-result .draft-leg { margin-top: 2.5rem; padding: 0; }
.draft-result section + section { border-top: 0; }
.draft-leg-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.6rem; }
.draft-leg-note { font-size: 0.85rem; color: var(--text-secondary); }
.draft-leg-board { min-height: 220px; }
.draft-leg-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 1.25rem 1.5rem; margin-top: 1rem; }
.draft-leg-side .table-scroll { margin: 0; }
.draft-leg-side-head { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; max-width: none; }
.draft-leg-side-head strong { font-weight: 600; color: var(--text-primary); }
.draft-leg-equity { margin-left: auto; color: var(--text-secondary); }
.draft-leg-equity.is-ahead { color: var(--text-primary); font-weight: 600; }
.draft-leg-empty { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--text-tertiary); }
.draft-ledger { font-size: 0.84rem; }
.draft-ledger th, .draft-ledger td { white-space: nowrap; }
.draft-dir { font-weight: 600; }
.draft-dir-long { color: var(--up); }
.draft-dir-short { color: var(--down); }
.draft-verify { margin-top: 2rem; font-size: 0.82rem; color: var(--text-secondary); max-width: 34em; }
.draft-review { margin-top: 2.5rem; padding: 0; }
.draft-ledger tr.grade-inaccuracy td { color: var(--text-secondary); }
.draft-ledger tr.grade-mistake td { color: var(--accent); }
.draft-ledger tr.grade-blunder td { color: var(--down); }
.draft-practice-form { margin-top: 1rem; }
.draft-practice-form legend.label {
  padding: 0;
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}
.draft-bot-picker .draft-bot-option {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 100ms ease;
}
.draft-bot-picker .draft-bot-option:last-child { border-bottom: 0; }
.draft-bot-picker .draft-bot-option:hover { background: var(--bg-secondary); }
.draft-bot-picker .draft-bot-option:has(input:checked) {
  background: var(--primary-glow);
  border-bottom-color: transparent;
}
.draft-bot-picker .draft-bot-option:has(input:checked) .draft-bot-name { color: var(--primary-hover); }
.draft-tc-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.draft-tc-picker .draft-tc-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}
.draft-tc-picker .draft-tc-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-glow);
}
.duel-page.lobby .wrap { margin-inline: auto; }
.lobby-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 380;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1;
}
.lobby-lede {
  margin-top: 0.85rem; max-width: 34em;
  color: var(--text-secondary); font-size: 1.02rem; line-height: 1.55;
}
.lobby-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.lobby-empty { color: var(--text-secondary); max-width: 44ch; }
.lobby-unlock {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; padding: 0.85rem 1rem;
  border-radius: var(--radius); background: var(--bg-secondary);
  color: var(--text-secondary); font-size: 0.9rem;
}
.lobby-unlock progress::-webkit-progress-bar { background: var(--bg-tertiary); }
.lobby-unlock progress::-webkit-progress-value { background: var(--primary-fill); }
.lobby-unlock progress::-moz-progress-bar { background: var(--primary-fill); }
.lobby .lobby-board {
  padding: 1.1rem 1.25rem 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.lobby .duel-board-table td { padding-block: 0.7rem; }
.lobby .duel-board-table th { width: auto; }
.lobby .duel-board-table td:nth-child(2) { white-space: nowrap; }
.lobby .duel-board-table td:first-child { white-space: nowrap; }
.lobby .duel-board-table td:first-child { font-weight: 500; }
.lobby .duel-board-table tbody tr:last-child td { border-bottom: 0; }
.lobby-live { margin-top: 2rem; }
.lobby-live .lobby-h { margin-bottom: 0.75rem; }
.lobby .duel-queue:has(> .panel:not([hidden])) { margin-bottom: 2rem; }
.lobby-score {
  font-family: var(--display); font-size: 3.4rem; font-weight: 360;
  font-variation-settings: "opsz" 144; font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em; line-height: 1;
}
.lobby-score-sep { color: var(--text-tertiary); margin-inline: 0.12em; }
.lobby-winbar { height: 4px; margin: 0.9rem 0 1.1rem; border-radius: 2px; background: rgba(244, 63, 94, 0.35); overflow: hidden; }
.lobby-winbar span { display: block; height: 100%; background: var(--up); }
.lobby-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.lobby-facts dt { color: var(--text-tertiary); font-size: 0.8rem; }
.lobby-facts dd { margin-top: 0.2rem; font-family: var(--mono); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.lobby-history { list-style: none; margin-top: 1.4rem; }
.lobby-history a:hover { background: var(--bg-secondary); }
.lobby-history a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lobby-history-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-history-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lobby-history-when { color: var(--text-tertiary); font-size: 0.78rem; }
.lobby-history .num, .lobby-results-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lobby-winnings {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem;
}
.lobby-results-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; table-layout: fixed; min-width: 34rem; }
.lobby-results-table col.lr-player { width: auto; }
.lobby-results-table th.num { font-family: var(--body); }
.lobby-results-table col.lobby-clock-cell { width: 9.5rem; }
.lobby-results-table col.lr-prize { width: 5.5rem; }
.lobby-results-table col.lr-when { width: 8.5rem; }
.lr-cell { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.lr-cell .lobby-player { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-pnl { flex: none; font-size: 0.85rem; }
.lobby-results-table td + td .lr-cell { padding-left: 0.25rem; }
.lobby-results-table th + th { padding-left: 0.85rem; }
.lobby-results-table td + td { padding-left: 0.85rem; }
.lr-tag { font-family: var(--body); font-size: 0.82rem; color: var(--text-tertiary); }
.lobby-results-table td.lobby-clock-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-results-table th:first-child, .lobby-results-table td:first-child { padding-left: 0; }
.lobby-results-table th:last-child, .lobby-results-table td:last-child { padding-right: 0; }
.lobby-results-table .num { text-align: right; white-space: nowrap; }
.lobby-player { margin-right: 0.4rem; }
.lobby-player.is-winner { font-weight: 600; }
.lobby-when, .lobby-clock-cell { color: var(--text-tertiary); }
.lobby-when, .lobby-results-table .lobby-when-head { text-align: right; white-space: nowrap; font-size: 0.85rem; }
.lobby-clock-cell { font-size: 0.85rem; }
.lobby-results-table td.lobby-when { white-space: normal; }
.lobby-at { display: block; font-family: inherit; white-space: nowrap; }
.lobby-faq { grid-column: 1 / -1; max-width: 46rem; }
@media (max-width: 480px) {
.lobby .lobby-board { padding-inline: 0.9rem; }
.lobby .duel-board-table th:nth-child(4), .lobby .duel-board-table td:nth-child(4):not(:last-child) { display: none; }
  .lobby .duel-board-table .board-record { display: none; }
  .lobby .duel-board-table td:first-child, .lobby .duel-board-table td:nth-child(2) { white-space: normal; }
  .lobby .duel-board-table td, .lobby .duel-board-table th { padding-inline: 0.35rem; }
  .lobby-unlock { flex-direction: column; align-items: stretch; }
  .lobby-unlock progress { flex-basis: auto; width: 100%; }
  .lobby-results-table .lobby-clock-cell { display: none; }
}
.lobby-results-table tr[data-match-row] { cursor: pointer; }
.lobby-results-table tr[data-match-row]:hover td { background: var(--bg-secondary); }
.lobby-row-link { color: inherit; text-decoration: none; }
.lobby-row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lobby-row-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
@media (pointer: coarse) {
  .lobby-row-link { display: inline-block; max-width: 100%; padding-block: 11px; margin-block: -11px; }
  .lobby .toggle-row { min-height: 44px; }
  .lobby .toggle-row .switch { margin-block: 0.15rem; }
}
.match-dialog section + section { border-top: 0; }
.match-loading { padding: 3rem 0; color: var(--text-secondary); text-align: center; }
.match-head { padding-right: 2.5rem; }
.match-title:focus { outline: none; }
.match-vs { align-self: center; }
.match-side {
  display: flex; flex-direction: column;
  padding: clamp(1.1rem, 2.6vw, 1.5rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-panel-2);
}
.match-side.is-winner { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 50%, transparent); }
.match-side-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-weight: 600; }
.match-you {
  flex: none; padding: 0.05rem 0.5rem; border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  color: var(--text-secondary); font-size: 0.75rem; font-weight: 500;
}
.match-outcome.up { color: var(--up); }
.match-outcome.down { color: var(--down); }
.match-pnl .muted { color: var(--text-tertiary); }
.match-vs { font-family: var(--display); font-size: 1.05rem; color: var(--text-tertiary); }
.match-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.match-table thead th { color: var(--text-tertiary); font-family: var(--body); font-size: 0.8rem; font-weight: 500; }
.match-table th:first-child { padding-left: 0; }
.match-table .num { text-align: right; font-family: var(--mono); color: var(--text-secondary); }
.match-table td.is-lead { color: var(--text-primary); font-weight: 600; }
.match-table tbody th { font-weight: 500; }
.match-claims dt { color: var(--text-tertiary); font-size: 0.8rem; }
.match-claims dd { margin-top: 0.15rem; font-size: 0.9rem; }
.match-trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.match-trades ul { list-style: none; }
.match-trades .num { font-family: var(--mono); }
.match-trade-symbol { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-side-tag {
  padding: 0.05rem 0.45rem; border: 1px solid currentColor; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
}
.match-side-tag.is-long { color: var(--up); }
.match-side-tag.is-short { color: var(--down); }
@media (max-width: 560px) {
  .match-faceoff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .match-side { padding: 1rem; }
  .match-vs { display: none; }
  .match-trades { grid-template-columns: minmax(0, 1fr); }
  .match-actions { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: no-preference) {
  .match-dialog[open] { animation: match-open 0.22s var(--ease); }
  .match-dialog[open]::backdrop { animation: match-fade 0.22s ease-out; }
}
ol.podium > li:nth-child(3) { order: 3; }
ol.podium > li:nth-child(n+4) { order: 4; grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.2rem; border-top: 1px solid var(--border); }
.pp-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; border: 0 !important; padding: 0 !important; }
.pp-highlights > div { display: grid; gap: 0.3rem; align-content: start; padding: 0.9rem 0 0 !important; border: 0 !important; border-top: 1px solid var(--border) !important; }
.pp-matches li { border-radius: var(--radius-sm); transition: background-color .15s var(--ease); }
@media (max-width: 900px) { .pp-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.draft-bot-picker .draft-bot-option:has(input:checked) {
  background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: var(--radius-sm);
}
.draft-tc-picker .draft-tc-option:has(input:checked) { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.yl.arena-hero { padding-bottom: 0; margin-bottom: 0; }
.yl.arena-hero::before { content: none; }
.yl { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.5rem; align-items: start; grid-template-rows: auto 1fr; }
.lobby .yl-play { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; min-width: 0; padding: 1.5rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-stage { grid-column: 1; grid-row: 1; }
.yl > .yl-main { grid-column: 1; grid-row: 2; }
.yl-title { font-family: var(--display); font-size: 2.1rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.yl-tag { margin: 0.6rem 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }
.yl-label { margin: 1.4rem 0 0.55rem; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.yl-clock-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0.45rem; }
.yl-clock {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  min-height: 4.6rem; padding: 0.6rem 0.4rem; text-align: center; cursor: pointer;
  font: inherit; color: var(--text); background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: var(--radius);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.yl-clock:hover { background: var(--bg-card-hover); border-color: var(--border-2); }
.yl-clock[aria-pressed="true"] { background: var(--bg-card-hover); border-color: var(--primary-fill); box-shadow: inset 0 0 0 1px var(--primary-fill); }
.yl-clock:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.yl-clock-time { font-family: var(--mono); font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.02em; }
.yl-clock-name { font-size: 0.8rem; line-height: 1.3; color: var(--text-dim); }
.yl-clock[data-clock-any] { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 0.75rem; min-height: 0; padding: 0.7rem 0.9rem; text-align: left; }
.yl-clock[data-clock-any] .yl-clock-time { font-family: var(--body); font-weight: 600; font-size: 1rem; }
.yl-clock[data-clock-any] .yl-tile-wait { margin-left: auto; }
.yl-tile-wait { font-size: 0.75rem; color: var(--text-faint); }
.yl-tile-wait:empty { display: none; }
.yl-tile-wait.is-waiting { color: var(--up); }
.yl-clock-desc { min-height: 2.9em; margin: 0.6rem 0 0; font-size: 0.85rem; line-height: 1.45; color: var(--text-dim); }
.yl-go { width: 100%; justify-content: center; margin-top: 0.9rem; padding-block: 1rem; font-size: 1.05rem; }
.yl-go[aria-busy="true"] { cursor: progress; opacity: .7; }
.yl-go[data-waiting] { background: transparent; color: var(--text-primary); border: 1px solid var(--border-2); font-variant-numeric: tabular-nums; }
.yl-go-note { margin: 0.65rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--text-faint); }
.yl-go-note a { color: var(--text-dim); }
.yl-play .lobby-unlock { margin-top: 1rem; }
.yl-opts { margin-top: 1.2rem; border-top: 1px solid var(--border); }
.yl-opt {
  display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 0.85rem 0.1rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--border);
}
.yl-opt > span { flex: 1; min-width: 0; }
.yl-opt b { display: block; font-size: 0.95rem; font-weight: 600; transition: color .15s var(--ease); }
.yl-opt small { display: block; margin-top: 0.1rem; font-size: 0.82rem; color: var(--text-dim); }
.yl-opt .yl-opt-go { width: 16px; height: 16px; color: var(--text-faint); transition: color .15s var(--ease); }
.yl-opt:hover b, .yl-opt:hover .yl-opt-go { color: var(--primary-hover); }
.yl-opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius); }
.yl-opt.is-next { margin-top: 0.6rem; padding-inline: 0.85rem; border: 1px solid var(--border-2); border-radius: var(--radius); }
.yl-me { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; margin-top: auto; padding-top: 1.1rem; font-size: 0.88rem; }
.yl-me-label { color: var(--text-faint); }
.yl-me b { margin: 0 0.3rem; font-weight: 600; }
.yl-me-sub { color: var(--text-dim); }
.yl-me-links { display: flex; gap: 1rem; }
.yl-me-links a { color: var(--text-dim); text-decoration: none; background-image: none; }
.yl-me-links a:hover { color: var(--text); }
.yl-me-set:hover, .yl-me-set:focus-visible { color: var(--text); }
.yl-me-set .icon { width: 14px; height: 14px; }
.lobby .yl-stage { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 1.25rem 1.5rem 1.4rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-ex { position: relative; display: grid; place-items: center; }
.yl-ex-label { position: absolute; top: 0; right: 0; font-size: 0.78rem; color: var(--text-faint); }
.yl-ex-svg { display: block; width: 100%; height: auto; max-height: 280px; overflow: visible; }
.yl-ex-svg .st-up { fill: var(--up); stroke: var(--up); stroke-width: 1; }
.yl-ex-svg .st-down { fill: var(--down); stroke: var(--down); stroke-width: 1; }
.yl-ex-svg .st-claim.is-a { fill: color-mix(in srgb, var(--text-primary) 7%, transparent); stroke: color-mix(in srgb, var(--text-primary) 45%, transparent); }
.yl-ex-svg .st-claim.is-b { fill: color-mix(in srgb, var(--accent) 9%, transparent); stroke: color-mix(in srgb, var(--accent) 55%, transparent); }
.yl-ex-svg .st-tag { font: 600 12px var(--body); }
.yl-ex-svg .st-tag.is-a { fill: var(--text-primary); }
.yl-ex-svg .st-tag.is-b { fill: var(--accent); }
.yl-ex-svg .st-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.yl-ex-svg .st-line.is-a { stroke: var(--text-primary); }
.yl-ex-svg .st-line.is-b { stroke: var(--accent); }
.yl-ex-svg .st-dot.is-a { fill: var(--text-primary); }
.yl-ex-svg .st-dot.is-b { fill: var(--accent); }
.yl-ex-svg .st-base { stroke: var(--border-2); stroke-dasharray: 3 4; }
.yl-ex-svg .st-now { stroke: var(--border); }
.yl-ex-svg .st-axis { font: 11px var(--body); fill: var(--text-faint); }
.yl-stage figcaption { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.yl-stage figcaption .yl-steps { flex: 1 1 32rem; }
.yl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: yl-step; }
.yl-steps li { counter-increment: yl-step; font-size: 0.84rem; line-height: 1.45; color: var(--text-dim); }
.yl-steps b { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.yl-steps b::before { content: counter(yl-step) ". "; font-family: var(--mono); font-weight: 400; color: var(--text-faint); }
.yl-how-link:hover { color: var(--text); }
.yl-floor { margin-top: 1.5rem; }
.yl-main, .yl-aside { display: flex; flex-direction: column; min-width: 0; }
.yl-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }
.yl-list { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.yl-tabs { display: flex; gap: 0.25rem; padding: 0.4rem; border-bottom: 1px solid var(--border); }
.yl-tabs button { display: inline-flex; align-items: baseline; font: 500 0.9rem var(--body); color: var(--text-faint); background: none; border: 0; border-radius: calc(var(--radius) - 2px); padding: 0.45rem 0.75rem; cursor: pointer; }
.yl-tabs button:hover { color: var(--text); }
.yl-tabs button[aria-pressed="true"] { color: var(--text); background: var(--bg-card-hover); }
.yl-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.yl-tabs b { margin-left: 0.35rem; font-weight: 400; font-size: 0.8rem; color: var(--text-faint); }
.yl-list[data-tab="live"] #yl-pane-open { display: none; }
.yl-list:not([data-tab="live"]) #duel-live-panel { display: none; }
.lobby .yl-list .lobby-board { padding: 0; background: none; border: 0; border-radius: 0; }
.yl-list .table-scroll { margin-top: 0; }
.lobby .yl-list .duel-board-table { margin: 0; }
.lobby .yl-list .duel-board-table th { padding: 0.65rem 1rem; font-size: 0.82rem; font-weight: 500; color: var(--text-faint); border-bottom: 0; }
.lobby .yl-list .duel-board-table td { padding: 0.85rem 1rem; border-bottom: 0; border-top: 1px solid var(--border); }
.lobby .yl-list .duel-board-table tbody tr:hover td { background: var(--bg-card-hover); }
.lobby .yl-list .duel-board-table .btn-primary { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.lobby .yl-list .duel-board-table:has(.empty-row) thead { display: none; }
.lobby .yl-list .duel-board-table .empty-row td { padding: 1.4rem 1rem; font-size: 0.9rem; color: var(--text-faint); text-align: left; }
.yl-list .stack-list { gap: 0; }
.yl-list .duel-waiting-row { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 0.85rem 1rem; }
.yl-list .duel-waiting-row:first-child { border-top: 0; }
.yl-empty { margin: 0; padding: 1.4rem 1rem; font-size: 0.9rem; color: var(--text-faint); }
.yl-list:not([data-tab="live"]) .yl-empty,
.yl-list[data-tab="live"] #duel-live-panel:not([hidden]) ~ .yl-empty { display: none; }
.yl-empty-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; }
.yl-empty-row .btn { flex: none; }
.lobby .yl-list .duel-board-table tr.is-mine td { background: var(--bg-card-hover); }
.yl-mine-note { margin-left: 0.35rem; font-size: 0.82rem; color: var(--text-faint); }
.lobby .yl-list .duel-board-table tbody:has(.is-mine) .empty-row { display: none; }
.yl-feature-card { padding: 0.9rem 1rem 1rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-feature-head { display: flex; flex-direction: column; gap: 0.1rem; margin: 0 0 0.5rem; font-size: 0.82rem; color: var(--text-faint); }
.yl-feature-head > :first-child { white-space: nowrap; color: var(--text-dim); font-weight: 500; }
.yl-live { color: var(--up); display: inline-flex; align-items: center; gap: 0.4rem; }
.yl-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.yl-feature-player { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.45rem 0; font-size: 0.95rem; }
.yl-feature-player b { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yl-feature-player .num { font-size: 0.9rem; }
.yl-seat { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.yl-seat.is-a { background: var(--text-primary); }
.yl-seat.is-b { background: var(--accent); }
.yl-feature-clock { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; padding: 0.6rem 0; border-block: 1px solid var(--border); }
.yl-feature-clock > :first-child { font-family: var(--mono); font-size: 1.5rem; line-height: 1; color: var(--text); }
.yl-feature-clock.is-verdict > :first-child { font-family: var(--body); font-weight: 600; font-size: 1.05rem; }
.yl-feature-clock small { font-size: 0.8rem; color: var(--text-faint); }
.yl-feature-cta { width: 100%; justify-content: center; margin-top: 0.8rem; }
.yl-feature-empty { margin: 0; font-size: 0.9rem; color: var(--text-dim); }
.yl-feature-empty b { display: block; color: var(--text); margin-bottom: 0.2rem; }
.yl-feature:not(:has(.yl-feature-card:not([hidden]))) { display: none; }
.lobby .yl-top { padding: 0.9rem 1rem; background: var(--bg-card); border-radius: var(--radius); }
.yl-top-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.yl-top-head h2 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; font-variation-settings: "opsz" 24; }
.yl-top-head a { font-size: 0.82rem; color: var(--text-dim); }
.yl-top ol.podium { display: block; }
.yl-top ol.podium > li, .yl-top ol.podium > li:nth-child(-n+3) {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; order: 0;
}
.yl-top ol.podium > li:first-child { border-top: 0; }
.yl-top ol.podium .rank-pill { width: auto; height: auto; min-width: 1.3rem; padding: 0; background: none; border: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }
.yl-top ol.podium > li:nth-child(1) .rank-pill { color: var(--accent); }
.yl-top ol.podium .mono { flex: 1; min-width: 0; font-family: var(--body); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yl-top .duel-empty-state { padding: 0.5rem 0; }
.yl-more { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--border); }
.yl-more-col { display: grid; gap: 2.5rem; align-content: start; min-width: 0; }
.yl-more-title, .yl-more .lobby-h { font-family: var(--display); font-size: 1.3rem; font-weight: 600; font-variation-settings: "opsz" 24; }
.yl-more-title { margin-bottom: 0.9rem; }
.yl-more .lobby-section-head { margin-bottom: 0.9rem; }
.yl-more .mh-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
.yl-more .mh-steps li { padding: 0.85rem 0; }
.yl-more .lobby-lede { margin: 0 0 1.1rem; max-width: 40em; color: var(--text-dim); }
.yl-more .lobby-lede.small { font-size: 0.85rem; color: var(--text-faint); }
.yl-more .lobby-winnings { margin-top: 0.75rem; padding-top: 0; border-top: 0; justify-content: flex-start; font-size: 0.85rem; }
.yl-more .lobby-when { white-space: normal; }
.yl-more .lobby-record, .yl-more .lobby-results { min-width: 0; }
.duel-page.lobby .wrap { max-width: var(--content-width); }
.yl-pop {
  position: fixed; inset: auto; margin: 0; width: min(360px, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow: auto;
  padding: 1rem 1.1rem 1.1rem; color: var(--text); background: var(--bg-card-hover); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}
.yl-pop::backdrop { background: transparent; }
.yl-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.yl-pop-head h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; font-variation-settings: "opsz" 24; }
.yl-pop-close { display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--text-dim); cursor: pointer; }
.yl-pop-close:hover { color: var(--text); border-color: var(--border-2); }
.yl-pop .lobby-invite-setting { margin: 0; padding: 0 0 0.9rem; border-top: 0; border-bottom: 1px solid var(--border); }
.yl-pop .toggle-row { gap: 1rem; }
.yl-pop .toggle-text .small { line-height: 1.5; font-size: 0.82rem; }
.yl-sound-row { padding: 0.9rem 0 0; border-bottom: 0; align-items: flex-start; cursor: default; font-size: 0.9rem; }
.yl-sound-row .duel-sound-toggle { flex: none; }
@media (max-width: 1080px) {
  .yl { grid-template-columns: minmax(0, 1fr) 360px; }
  .yl-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .yl { grid-template-columns: minmax(0, 1fr); }
  .lobby .yl-play, .yl-stage, .yl > .yl-main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  .lobby .yl-play, .lobby .yl-stage { padding: 1.1rem; }
  .yl-title { font-size: 1.85rem; }
  .yl-steps { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .yl-ex-label { position: static; justify-self: end; margin-bottom: 0.4rem; }
.yl-ex-svg .st-tag { font-size: 16px; }
  .yl-ex-svg .st-axis { font-size: 15px; }
}
.draft-pools thead th { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); }
.gp-hero { padding-top: clamp(1rem, 3vw, 2rem); }
@media (min-width: 901px) { .mh-hero.gp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.gp-hero .yl-ex-svg .st-tag { font-size: 15px; }
.gp-hero .yl-ex-svg .st-axis { font-size: 13px; }
.gp-hero .yl-stage { margin: 0; padding: 1.25rem 1.25rem 1rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); }
.gp-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.gp-facts > div { padding: 0.25rem 1.25rem 1.5rem 0; }
.gp-facts > div + div { padding-left: 1.25rem; border-left: 1px solid var(--border-subtle); }
.gp-facts dt { color: var(--text-tertiary); font-size: var(--fs-xs); }
.gp-facts dd { margin: 0.3rem 0 0; font-size: 1.02rem; line-height: 1.4; }
.gp-facts dd .mono { font-size: 1.15rem; font-weight: 600; }
.gp-how { padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--border); scroll-margin-top: 5rem; }
.gp-how h2 { margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 0.98; letter-spacing: -0.03em; word-spacing: 0.06em; font-variation-settings: "opsz" 144; }
.gp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.75rem clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gp-step;
}
.gp-steps li { counter-increment: gp-step; padding-top: 1rem; border-top: 1px solid var(--border-2); }
.gp-steps li::before {
  content: counter(gp-step);
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  color: var(--accent);
}
.legal.gp-rows { max-width: none; }
.gp-row {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2rem, 4.5vw, 3rem);
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 5rem;
}
.legal .gp-row > h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.15; }
.gp-row-body > :first-child { margin-top: 0; }
.legal .gp-row-body ul { margin-top: 0; }
.gp-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem); }
.legal .gp-faq h3 { margin: 0; font-size: 1.02rem; }
.legal .gp-faq p { margin-top: 0.45rem; }
.gp-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 0;
}
@media (max-width: 900px) {
  .gp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .gp-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gp-faq { grid-template-columns: minmax(0, 1fr); }
}
.draft-result .share-trigger, .share-trigger + .table-scroll, .share-trigger + table { margin-bottom: 1.25rem; }
.pt-link .input-with-action input { font-size: 0.85rem; }
@media (max-width: 560px) {
.mh-page .pf-shell > .settings-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.25rem; }
  .mh-page .pf-shell > .settings-nav a { flex-direction: column; justify-content: center; gap: 0.25rem; min-height: 52px; padding: 0.4rem 0.2rem; font-size: 0.78rem; text-align: center; }
.draft-scores { display: flex; flex-direction: column; position: relative; }
  .draft-scores tbody { display: block; }
  .draft-scores thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .draft-scores caption { display: block; order: 1; }
  .draft-scores tbody tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem 0.75rem;
    padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle);
  }
  .draft-scores tbody th { grid-column: 1 / -1; padding: 0; border: 0; white-space: normal; }
  .draft-scores tbody td.num { padding: 0; border: 0; text-align: left; font-size: 0.85rem; white-space: nowrap; }
  .draft-scores tbody td::before {
    content: attr(data-label); display: block; margin-bottom: 0.1rem;
    font-family: var(--body); font-size: 0.75rem; color: var(--text-secondary);
  }
  .draft-scores tr.is-winner .draft-score-total { font-size: 0.95rem; }
.lobby-results-table, .mh .lobby-results-table { min-width: 0; font-size: 0.86rem; table-layout: auto; }
  .lobby-results-table td:not(.lobby-when) { width: 50%; }
  .lobby-results-table col.lobby-clock-cell, .lobby-results-table .lobby-clock-cell { display: none; }
  .lobby-results-table col.lr-when { width: 5.25rem; }
  .lobby-results-table col.lr-prize { width: 4.5rem; }
  .lobby-results-table th + th, .lobby-results-table td + td { padding-left: 0.5rem; }
  .lr-cell { flex-direction: column; gap: 0.1rem; }
  .lobby-results-table td.lobby-when { font-size: 0.78rem; }
  .lobby-results-table td { vertical-align: top; }
.lobby-results-table .lr-cell .lobby-player { padding-block: 4px; }
}
@media (max-width: 400px) {
.lobby-results-table col.lr-when { width: 3.25rem; }
  .lobby-results-table .lobby-ago { display: none; }
  .lobby-results-table .lobby-at { white-space: normal; }
.lobby-results-table, .mh .lobby-results-table { table-layout: fixed; }
  .lobby-results-table td:not(.lobby-when) { width: auto; }
}
@media (pointer: coarse) {
  .yl-me-links { gap: 1.25rem; }
  .yl-top-head a { padding-inline: 0.4rem; margin-right: -0.4rem; }
}
.yl-pop {
  inset: 0 !important; margin: auto; width: min(26rem, calc(100vw - 2rem)); height: fit-content; max-height: calc(100vh - 3rem);
  padding: 1.25rem 1.4rem 1.4rem; border-radius: var(--radius-lg); box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.85);
}
.yl-pop::backdrop { background: rgba(0, 0, 0, 0.6); }
.yl-pop-head { padding-bottom: 0.85rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.yl-pop-head h2 { font-size: 1.25rem; }
@media (max-width: 640px) {
  .yl-pop {
    inset: auto 0 0 0 !important; margin: 0; width: auto; max-height: 85vh; padding: 1.1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    border-width: 1px 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .yl-pop::backdrop { background: rgba(0, 0, 0, 0.6); }
  .yl-pop-close { width: 2.75rem; height: 2.75rem; margin: -0.5rem -0.6rem -0.5rem 0; }
}
