:root {
  --orbi-purple: #7c3aed;
  --orbi-purple-light: #ede9fe;
  --orbi-purple-mid: #a78bfa;
  --red: #ef4444;
  --red-light: #fee2e2;
  --green: #10b981;
  --green-light: #d1fae5;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --bg: #f8f7ff;
  --surface: #ffffff;
  --surface2: #f3f2ff;
  --border: #e5e3ff;
  --text: #1e1b4b;
  --text-muted: #6b7280;
  --gold: #d97706;
  --silver: #6b7280;
  --bronze: #92400e;
  --shadow: 0 1px 3px rgba(124, 58, 237, 0.08), 0 4px 16px rgba(124, 58, 237, 0.06);
  --shadow-lg: 0 8px 32px rgba(124, 58, 237, 0.12);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124, 58, 237, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
header {
  padding: 32px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.orbi-logo {
  background: var(--orbi-purple);
  color: white;
  font-weight: 900;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  letter-spacing: -0.3px;
}
.header-title {
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.header-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}
.header-badge {
  background: var(--orbi-purple-light);
  color: var(--orbi-purple);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  font-family: 'Press Start 2P', monospace;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.tab {
  padding: 9px 15px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover {
  background: var(--surface2);
  color: var(--text);
}
.tab.active {
  background: var(--orbi-purple);
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card-title {
  font-weight: 900;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--orbi-purple);
  border-radius: 2px;
}
.home-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.home-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-pulse-card,
.home-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.home-pulse-card {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  text-align: left;
}
button.home-pulse-card {
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
button.home-pulse-card:hover,
button.home-pulse-card:focus-visible {
  border-color: var(--orbi-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  outline: none;
}
.home-pulse-card.leader {
  border-color: rgba(217, 119, 6, 0.35);
}
.home-pulse-card.hot {
  border-color: rgba(16, 185, 129, 0.3);
}
.home-pulse-card.latest {
  border-color: rgba(59, 130, 246, 0.3);
}
.home-pulse-label,
.home-panel-title {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.home-pulse-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}
.home-pulse-sub {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.home-pulse-sub.pos,
.home-form-delta.pos,
.home-race-delta.pos {
  color: var(--green);
}
.home-pulse-sub.neg,
.home-form-delta.neg,
.home-race-delta.neg {
  color: var(--red);
}
.home-pulse-sub.zero,
.home-form-delta.zero,
.home-race-delta.zero {
  color: var(--text-muted);
}
.home-pulse-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 25px;
  color: var(--orbi-purple);
  line-height: 1;
}
.home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
}
.home-panel {
  min-width: 0;
  border-radius: 12px;
  padding: 16px;
}
.home-latest-panel {
  grid-column: 1 / -1;
}
.home-progress-panel {
  overflow: hidden;
}
.home-panel-title {
  margin-bottom: 12px;
}
.home-panel-subtitle {
  margin: -6px 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.home-form-list,
.home-standing-list,
.home-race-list {
  display: grid;
  gap: 7px;
}
.progress-chart-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}
.progress-chart {
  display: block;
  min-width: 520px;
  width: 100%;
  height: auto;
}
.progress-chart-grid-line,
.progress-chart-date-line {
  stroke: var(--border);
  stroke-width: 1;
}
.progress-chart-date-line {
  opacity: 0.65;
}
.progress-chart-axis {
  stroke: var(--text-muted);
  stroke-width: 1.2;
  opacity: 0.55;
}
.progress-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.progress-chart-rank-label,
.progress-chart-date-label,
.progress-chart-player-label {
  font-family: inherit;
  font-weight: 800;
}
.progress-chart-rank-label {
  fill: var(--text-muted);
  font-size: 12px;
  text-anchor: end;
}
.progress-chart-date-label {
  fill: var(--text-muted);
  font-size: 12px;
  text-anchor: middle;
}
.progress-chart-player-label {
  font-size: 13px;
}
.home-form-row,
.home-standing-row,
.home-race-row {
  width: 100%;
  min-height: 46px;
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.home-form-row:hover,
.home-standing-row:hover,
.home-race-row:hover,
.home-form-row:focus-visible,
.home-standing-row:focus-visible,
.home-race-row:focus-visible {
  background: var(--surface);
  border-color: var(--orbi-purple-mid);
  outline: none;
}
.home-form-row {
  grid-template-columns: 28px minmax(92px, 1fr) minmax(118px, auto) 54px;
}
.home-standing-row {
  grid-template-columns: 38px 28px minmax(80px, 1fr) 58px 54px;
}
.home-race-row {
  grid-template-columns: 54px 28px minmax(90px, 1fr) 54px;
}
.home-form-name,
.home-standing-name,
.home-race-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}
.home-form-strip {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.home-form-position {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
}
.home-form-position.win {
  background: var(--yellow-light);
  border-color: #fde68a;
  color: var(--gold);
}
.home-form-position.second {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: var(--silver);
}
.home-form-position.third {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--bronze);
}
.home-form-delta,
.home-race-delta,
.home-standing-elo {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  text-align: right;
}
.home-standing-rank {
  font-weight: 900;
  text-align: center;
}
.home-standing-elo {
  color: var(--orbi-purple);
}
.home-standing-gap {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}
.home-race-position {
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
}
.home-race-row.win .home-race-position {
  color: var(--gold);
}
.home-race-row.second .home-race-position {
  color: var(--silver);
}
.home-race-row.third .home-race-position {
  color: var(--bronze);
}
.home-panel-link {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--orbi-purple);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.home-mvp {
  margin-top: 10px;
  padding: 9px 10px;
  background: var(--green-light);
  color: #047857;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.home-mvp button {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.home-rivalry-card {
  padding: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.home-rivalry-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.home-rivalry-match button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.home-rivalry-match button:last-child {
  justify-content: flex-end;
}
.home-rivalry-match button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-rivalry-score {
  padding: 7px 10px;
  background: var(--orbi-purple);
  color: white;
  border-radius: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}
.home-rivalry-note,
.home-empty-line,
.home-muted {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.home-rivalry-note {
  margin-top: 10px;
  text-align: center;
}
.lb-header {
  display: grid;
  grid-template-columns: 48px 1fr 80px 80px 90px;
  gap: 12px;
  padding: 0 16px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.lb-row {
  display: grid;
  grid-template-columns: 48px 1fr 80px 80px 90px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.lb-row:hover {
  background: var(--surface2);
  border-color: var(--border);
}
.lb-requirement-note {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 8px 2px 12px;
}
.lb-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 14px 2px 8px;
  text-transform: uppercase;
}
.lb-section-title span:last-child {
  color: var(--text-muted);
  font-size: 10px;
}
.lb-section-title.secondary {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 16px;
}
.lb-row.unranked {
  background: var(--surface2);
  border-color: var(--border);
}
.lb-row.unranked .rank-num {
  color: var(--text-muted);
}
.qualification-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.09);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
}
.lb-row.rank-1 {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}
.lb-row.rank-2 {
  background: #f9fafb;
  border-color: #e5e7eb;
}
.lb-row.rank-3 {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
}
.rank-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  text-align: center;
  color: var(--text-muted);
}
.rank-1 .rank-num {
  color: var(--gold);
}
.rank-2 .rank-num {
  color: var(--silver);
}
.rank-3 .rank-num {
  color: var(--bronze);
}
.rank-emoji {
  font-size: 20px;
  text-align: center;
}
.player-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.player-nick {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.elo-col {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--orbi-purple);
  text-align: right;
}
.delta-col {
  text-align: right;
  font-weight: 800;
  font-size: 13px;
}
.delta-col.pos {
  color: var(--green);
}
.delta-col.neg {
  color: var(--red);
}
.delta-col.zero {
  color: var(--text-muted);
}
.form-col {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.fd {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fd.w {
  background: var(--green);
}
.fd.l {
  background: var(--red);
  opacity: 0.5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.stat-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
}
.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.stat-val {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  line-height: 1.1;
}
.stat-val.up {
  color: var(--green);
}
.stat-val.down {
  color: var(--red);
}
.stat-val.purple {
  color: var(--orbi-purple);
}
.stat-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.player-header-name {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.player-header-nick {
  font-size: 12px;
  color: var(--text-muted);
}
.player-elo-badge {
  background: var(--orbi-purple-light);
  color: var(--orbi-purple);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 8px 14px;
  border-radius: 10px;
}
.player-summary-list {
  display: grid;
  gap: 8px;
}
.stats-search-bar {
  margin-bottom: 10px;
}
.player-summary-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(360px, 2fr) minmax(76px, auto);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.player-summary-card:hover,
.player-summary-card:focus-visible {
  border-color: var(--orbi-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  outline: none;
}
.player-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.player-summary-name-wrap {
  min-width: 0;
}
.player-summary-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-summary-nick {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-summary-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.player-summary-metric {
  min-width: 0;
  padding: 6px 7px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.player-summary-metric span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.player-summary-metric strong {
  display: block;
  color: var(--orbi-purple);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.player-summary-form {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-width: 76px;
}
.player-summary-form-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.player-summary-form-dot.win {
  background: var(--green);
}
.player-summary-form-dot.loss {
  background: var(--red);
  opacity: 0.55;
}
.player-summary-empty-form {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.h2h-table {
  width: 100%;
  border-collapse: collapse;
}
.h2h-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.h2h-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.h2h-table tr:last-child td {
  border-bottom: none;
}
.h2h-table tbody tr:hover td {
  background: var(--surface2);
}
.wr {
  font-weight: 800;
}
.wr.good {
  color: var(--green);
}
.wr.bad {
  color: var(--red);
}
.wr.mid {
  color: var(--yellow);
}
.form-group {
  margin-bottom: 14px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
input,
select {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  appearance: none;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--orbi-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
input::placeholder {
  color: #c4b5fd;
  font-weight: 400;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
option {
  background: white;
}
.btn {
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--orbi-purple);
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
.race-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0;
}
.pos-val {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-left: none;
  border-right: none;
  background: white;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--orbi-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  user-select: none;
  flex-shrink: 0;
}
.race-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.race-slot:focus-within {
  border-color: var(--orbi-purple);
}
.race-slot.tied-above,
.race-slot.tied-below {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.1), var(--surface2) 34%);
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: inset 4px 0 0 var(--orbi-purple);
}
.race-slot.tied-below {
  border-bottom-left-radius: 6px;
}
.race-slot.tied-above {
  border-top-left-radius: 6px;
}
.race-order-moving {
  will-change: transform;
  pointer-events: none;
}
.row-move-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  flex-shrink: 0;
}
.row-move-btn {
  width: 34px;
  height: 24px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}
.row-move-btn:hover:not(:disabled),
.row-move-btn:focus-visible:not(:disabled) {
  border-color: var(--orbi-purple);
  color: var(--orbi-purple);
}
.row-move-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.race-tie-row {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 24px;
  padding: 0 12px;
}
.race-tie-row.active::before {
  content: '';
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 28px;
  width: 4px;
  border-radius: 999px;
  background: var(--orbi-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.race-tie-row.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 28px;
  width: calc(50% - 72px);
  height: 3px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.45);
  transform: translateY(-50%);
}
.tie-toggle {
  position: static;
  min-height: 26px;
  min-width: 92px;
  padding: 4px 14px;
  border: 2px solid var(--orbi-purple);
  background: var(--orbi-purple-light);
  color: var(--orbi-purple);
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.16);
  touch-action: manipulation;
}
.tie-toggle:hover {
  background: #ddd6fe;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.24);
}
.tie-toggle.active {
  background: var(--orbi-purple);
  border-color: var(--orbi-purple);
  color: white;
}
.race-slot select {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  flex: 1;
}
.race-slot select:focus {
  box-shadow: none;
  border: none;
}
.slot-pos {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-muted);
  width: 34px;
  flex-shrink: 0;
  text-align: center;
}
.slot-pos.p1 {
  color: var(--gold);
}
.slot-pos.p2 {
  color: var(--silver);
}
.slot-pos.p3 {
  color: var(--bronze);
}
.race-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.race-count-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 240px;
}
.race-count-chip {
  border: 1.5px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  border-radius: 8px;
  min-height: 38px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.race-count-chip:hover {
  border-color: var(--orbi-purple);
  color: var(--orbi-purple);
}
.race-count-chip.active {
  background: var(--orbi-purple);
  border-color: var(--orbi-purple);
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.race-lineup {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0 6px;
  min-height: 54px;
}
.race-lineup-empty {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.race-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.race-chip-pos {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--orbi-purple);
}
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--orbi-purple);
  color: var(--orbi-purple);
}
.history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.history-row:last-child {
  border-bottom: none;
}
.history-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 3px;
}
.history-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hchip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.hchip.p1 {
  background: #fef3c7;
  border-color: #fde68a;
  color: var(--gold);
}
.hchip.p2 {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--silver);
}
.hchip.p3 {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--bronze);
}
.hchip-delta {
  font-size: 10px;
  opacity: 0.9;
}
.hchip-delta.pos {
  color: var(--green);
}
.hchip-delta.neg {
  color: var(--red);
}
.pw-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pw-logo {
  display: inline-block;
  background: var(--orbi-purple);
  color: white;
  font-weight: 900;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.pw-game {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--orbi-purple);
  background: var(--orbi-purple-light);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 18px;
}
.pw-title {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.pw-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-weight: 500;
}
.pw-input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.pw-input:focus {
  outline: none;
  border-color: var(--orbi-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.pw-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}
.toast.error .toast-retry {
  background: white;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-left: auto;
  transition: all 0.15s;
}
.toast.error .toast-retry:hover {
  background: var(--red);
  color: white;
}
html.dark .toast.error .toast-retry {
  background: transparent;
  color: #fca5a5;
  border-color: #fca5a5;
}
html.dark .toast.error .toast-retry:hover {
  background: #fca5a5;
  color: #1e1b4b;
}
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--surface);
  border: 1.5px solid var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: tIn 0.25s ease;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.error {
  border-color: var(--red);
}
@keyframes tIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row .form-group {
  flex: 1;
  min-width: 140px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.loading {
  text-align: center;
  padding: 80px;
  color: var(--text-muted);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.badge-purple {
  background: var(--orbi-purple-light);
  color: var(--orbi-purple);
}
.badge-green {
  background: var(--green-light);
  color: #065f46;
}
.badge-red {
  background: var(--red-light);
  color: #991b1b;
}
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  background: var(--orbi-purple);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.fab:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
}
.fab:active {
  transform: translateY(0);
}

.season-banner {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.season-banner-left {
}
.season-banner-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.season-banner-title {
  font-weight: 900;
  font-size: 20px;
}
.season-banner-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  font-weight: 600;
}
.season-countdown {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
}
.season-countdown-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: #fbd000;
}
.season-countdown-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  font-weight: 700;
}
.lb-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.lb-toggle-btn {
  flex: 1;
  padding: 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.lb-toggle-btn.active {
  background: var(--orbi-purple);
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.hof-card {
  background: linear-gradient(135deg, #1e1b4b, #1e3a5f);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  color: white;
}
.hof-season-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.hof-champion {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(251, 208, 0, 0.15);
  border: 1px solid rgba(251, 208, 0, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.hof-champion-icon {
  font-size: 32px;
}
.hof-champion-name {
  font-weight: 900;
  font-size: 18px;
}
.hof-champion-elo {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #fbd000;
  margin-top: 4px;
}
.hof-runners {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hof-runner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 120px;
}
.hof-runner-rank {
  font-size: 18px;
  margin-bottom: 4px;
}
.hof-runner-name {
  font-weight: 800;
  font-size: 14px;
}
.hof-runner-elo {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.ach-scope {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 4px;
}
.ach-scope.season {
  background: rgba(124, 58, 237, 0.15);
  color: var(--orbi-purple);
}
.ach-scope.career {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
}
.ach-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  color: white;
  border-radius: 14px;
  padding: 16px 24px;
  font-weight: 800;
  font-size: 15px;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  animation: achIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  min-width: 260px;
}
@keyframes achIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@media (max-width: 600px) {
  .fab {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 14px;
  }
}
.player-link {
  cursor: pointer;
  border-bottom: 2px dotted var(--orbi-purple-mid);
  color: inherit;
  transition: color 0.15s;
}
.player-link:hover {
  color: var(--orbi-purple);
}
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.ach-item {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.ach-item.unlocked {
  background: white;
  border-color: var(--orbi-purple-mid);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.1);
}
.ach-item.locked {
  opacity: 0.45;
  filter: grayscale(0.5);
}
.ach-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.ach-name {
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 2px;
}
.ach-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}
.ach-date {
  font-size: 10px;
  color: var(--orbi-purple);
  font-weight: 700;
  margin-top: 6px;
}
.ach-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  opacity: 0.4;
}
.ach-unlocked-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--orbi-purple);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}
.schedule-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.schedule-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.schedule-icon {
  font-size: 20px;
}
.schedule-info {
}
.schedule-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.schedule-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}
.schedule-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-input {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 7px 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  width: auto;
}
.schedule-input:focus {
  outline: none;
  border-color: var(--orbi-purple);
}
.btn-sched {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: var(--orbi-purple);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.btn-sched:hover {
  background: #6d28d9;
}
.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid transparent;
}
.title-badge {
  position: relative;
  cursor: help;
}
.title-badge[data-tip]:hover::after,
.title-badge[data-tip].show-tip::after,
.rival-tag[data-tip]:hover::after,
.rival-tag[data-tip].show-tip::after,
.streak-tag[data-tip]:hover::after,
.streak-tag[data-tip].show-tip::after,
.fire-badge[data-tip]:hover::after,
.fire-badge[data-tip].show-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1b4b;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 240px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: center;
  line-height: 1.4;
}
.title-badge[data-tip]:hover::before,
.title-badge[data-tip].show-tip::before,
.rival-tag[data-tip]:hover::before,
.rival-tag[data-tip].show-tip::before,
.streak-tag[data-tip]:hover::before,
.streak-tag[data-tip].show-tip::before,
.fire-badge[data-tip]:hover::before,
.fire-badge[data-tip].show-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e1b4b;
  z-index: 1000;
  pointer-events: none;
}
html.dark .title-badge[data-tip]:hover::after,
html.dark .title-badge[data-tip].show-tip::after,
html.dark .rival-tag[data-tip]:hover::after,
html.dark .rival-tag[data-tip].show-tip::after,
html.dark .streak-tag[data-tip]:hover::after,
html.dark .streak-tag[data-tip].show-tip::after,
html.dark .fire-badge[data-tip]:hover::after,
html.dark .fire-badge[data-tip].show-tip::after {
  background: #3d3a6e;
}
html.dark .title-badge[data-tip]:hover::before,
html.dark .title-badge[data-tip].show-tip::before,
html.dark .rival-tag[data-tip]:hover::before,
html.dark .rival-tag[data-tip].show-tip::before,
html.dark .streak-tag[data-tip]:hover::before,
html.dark .streak-tag[data-tip].show-tip::before,
html.dark .fire-badge[data-tip]:hover::before,
html.dark .fire-badge[data-tip].show-tip::before {
  border-top-color: #3d3a6e;
}

.tb-champion {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.tb-upset {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}
.tb-consistent {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}
.tb-punching-bag {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}
.tb-veteran {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}
.tb-hotstreak {
  background: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}
.tb-underdog {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}
.tb-dominator {
  background: #fce7f3;
  color: #9d174d;
  border-color: #fbcfe8;
}
.elo-chart {
  width: 100%;
  height: 90px;
  margin-top: 10px;
  position: relative;
}
.elo-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.elo-chart-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
  text-align: right;
}
.streak-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  position: relative;
  cursor: help;
}
.streak-win {
  background: var(--green-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.streak-loss {
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid #fecaca;
}
.rival-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  position: relative;
  cursor: help;
}
@media (max-width: 600px) {
  .lb-header,
  .lb-row {
    grid-template-columns: 36px 1fr 70px;
  }
  .lb-header > *:nth-child(4),
  .lb-header > *:nth-child(5),
  .lb-row > *:nth-child(4),
  .lb-row > *:nth-child(5) {
    display: none;
  }
  .pw-card {
    padding: 32px 20px;
  }
}

.refresh-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  color: var(--text);
}
.refresh-btn:hover {
  background: var(--orbi-purple-light);
  border-color: var(--orbi-purple);
  color: var(--orbi-purple);
  transform: rotate(90deg);
}
.refresh-btn.spinning {
  animation: spinRefresh 1s linear infinite;
  pointer-events: none;
  color: var(--orbi-purple);
}
@keyframes spinRefresh {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .refresh-btn {
    display: none;
  }
}
.on-fire {
  position: relative;
}
.on-fire::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fbd000, #ef4444, #f59e0b, #ef4444, #fbd000);
  background-size: 300% 100%;
  animation: fireGlow 2s linear infinite;
  z-index: -1;
  opacity: 0.7;
}
.fire-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  color: #92400e;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 900;
  margin-left: 6px;
  animation: firePulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  position: relative;
  cursor: help;
}
.fire-emoji {
  display: inline-block;
  animation: fireFlicker 0.4s ease-in-out infinite alternate;
  font-size: 13px;
}
@keyframes fireGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
@keyframes firePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
  }
}
@keyframes fireFlicker {
  0% {
    transform: scale(1) rotate(-3deg);
  }
  100% {
    transform: scale(1.15) rotate(3deg);
  }
}
.sparkline {
  width: 100%;
  height: 28px;
  display: block;
}
.sparkline svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rank-arrow {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  margin-left: 4px;
  vertical-align: middle;
}
.rank-arrow.up {
  background: var(--green-light);
  color: #065f46;
}
.rank-arrow.down {
  background: var(--red-light);
  color: #991b1b;
}
.rank-arrow.same {
  background: var(--surface2);
  color: var(--text-muted);
}
.undo-btn {
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.undo-btn:hover {
  background: #fca5a5;
  color: white;
  border-color: #fca5a5;
}
.undo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lb-toggle-inline {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.lb-toggle-inline-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
}
.lb-toggle-inline-btn.active {
  background: var(--orbi-purple);
  color: white;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.avatar.sm {
  width: 24px;
  height: 24px;
  font-size: 14px;
}
.avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 26px;
}
.avatar.editable {
  cursor: pointer;
  transition: all 0.15s;
}
.avatar.editable:hover {
  border-color: var(--orbi-purple);
  background: var(--orbi-purple-light);
  transform: scale(1.05);
}
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  background: var(--surface);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.avatar-picker-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.avatar-picker-btn:hover {
  border-color: var(--orbi-purple);
  background: var(--orbi-purple-light);
}
.avatar-picker-btn.selected {
  border-color: var(--orbi-purple);
  background: var(--orbi-purple);
  color: white;
}
html.dark .avatar {
  background: var(--surface2);
}
.compare-btn {
  background: var(--orbi-purple-light);
  color: var(--orbi-purple);
  border: 1px solid var(--orbi-purple-mid);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.compare-btn:hover {
  background: var(--orbi-purple);
  color: white;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compare-side {
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.compare-side-name {
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 4px;
}
.compare-side-nick {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.compare-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.compare-stat-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.compare-stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.compare-stat-val {
  font-weight: 900;
  font-size: 15px;
}
.compare-stat-val.win {
  color: var(--green);
}
.compare-stat-val.lose {
  color: var(--red);
}
.compare-h2h-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
  margin: 8px 0 4px;
}
.compare-h2h-bar-p1 {
  background: var(--blue);
}
.compare-h2h-bar-p2 {
  background: var(--red);
}
.compare-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 14px 0 8px;
}
.compare-ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.compare-ach-side {
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.compare-ach-side-name {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
}
.compare-ach-side-count {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--orbi-purple);
}
.compare-ach-side-bar {
  margin-top: 8px;
  background: var(--border);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}
.compare-ach-side-bar-fill {
  background: var(--orbi-purple);
  height: 100%;
}
@media (max-width: 600px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-ach-grid {
    grid-template-columns: 1fr;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.5);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.15s ease;
}
.modal-box {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.2s ease;
}
.modal-title {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.modal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.modal-row.p1 {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}
.modal-row.p2 {
  background: #f9fafb;
  border-color: #e5e7eb;
}
.modal-row.p3 {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fed7aa;
}
.modal-pos {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.modal-row.p1 .modal-pos {
  color: var(--gold);
}
.modal-row.p2 .modal-pos {
  color: var(--silver);
}
.modal-row.p3 .modal-pos {
  color: var(--bronze);
}
.modal-name {
  font-weight: 800;
  font-size: 15px;
  flex: 1;
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .btn {
  flex: 1;
}
.modal-close-button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}
.latest-race-recap-modal {
  max-width: 560px;
}
.latest-race-recap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.latest-race-recap-header .modal-sub {
  margin-bottom: 0;
}
.latest-race-recap-actions {
  margin-top: 18px;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.search-bar-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.search-bar-inline:focus-within {
  border-color: var(--orbi-purple);
  background: white;
}
.search-bar-inline input {
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  outline: none;
}
.search-bar-inline input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
@media (max-width: 600px) {
  .lb-toggle-inline-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.search-bar:focus-within {
  border-color: var(--orbi-purple);
}
.search-bar input {
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  outline: none;
}
.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.search-bar-icon {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}
.search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.search-clear:hover {
  color: var(--text);
}

/* ── DARK MODE ─────────────────────────────────────────────────────────── */
html.dark {
  --bg: #0b0b1f;
  --surface: #15152e;
  --surface2: #1e1e3a;
  --border: #2d2d55;
  --text: #f3f2ff;
  --text-muted: #9ca3c7;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --orbi-purple-light: rgba(124, 58, 237, 0.18);
  --red-light: rgba(239, 68, 68, 0.18);
  --green-light: rgba(16, 185, 129, 0.18);
  --yellow-light: rgba(245, 158, 11, 0.18);
  --blue-light: rgba(59, 130, 246, 0.18);
}
html.dark body::before {
  background-image: radial-gradient(circle, rgba(124, 58, 237, 0.12) 1px, transparent 1px);
}
html.dark .lb-row.rank-1 {
  background: linear-gradient(135deg, #2a2400, #3d3500);
  border-color: #5c4e00;
}
html.dark .lb-row.rank-2 {
  background: #1f1f3a;
  border-color: #3a3a5c;
}
html.dark .lb-row.rank-3 {
  background: linear-gradient(135deg, #2a1810, #3a2418);
  border-color: #5c3920;
}
html.dark .lb-row.unranked {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}
html.dark .qualification-tag {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.32);
  color: #93c5fd;
}
html.dark .hchip.p1 {
  background: rgba(251, 208, 0, 0.15);
  border-color: rgba(251, 208, 0, 0.4);
  color: #fbd000;
}
html.dark .hchip.p2 {
  background: rgba(229, 231, 235, 0.1);
  border-color: rgba(229, 231, 235, 0.3);
  color: #e5e7eb;
}
html.dark .hchip.p3 {
  background: rgba(205, 127, 50, 0.15);
  border-color: rgba(205, 127, 50, 0.4);
  color: #ffa557;
}
html.dark .ach-item.unlocked {
  background: #1e1e3a;
  border-color: var(--orbi-purple-mid);
}
html.dark .lb-row.on-fire,
html.dark .lb-row[style*='background:linear-gradient(135deg,#FFFBEB'] {
  background: linear-gradient(135deg, #2a2400, #3d3500) !important;
  border-color: #fde68a !important;
}
html.dark .modal-row.p1 {
  background: linear-gradient(135deg, #2a2400, #3d3500);
  border-color: #5c4e00;
}
html.dark .modal-row.p2 {
  background: #1f1f3a;
  border-color: #3a3a5c;
}
html.dark .modal-row.p3 {
  background: linear-gradient(135deg, #2a1810, #3a2418);
  border-color: #5c3920;
}
html.dark .pw-card {
  background: var(--surface);
}
html.dark option {
  background: #1e1e3a;
  color: var(--text);
}
html.dark input,
html.dark select {
  color: var(--text);
}
html.dark .toast {
  background: var(--surface);
}
html.dark .home-form-position {
  background: var(--surface);
}
html.dark .home-form-position.win {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}
html.dark .home-race-row.win .home-race-position {
  color: #fcd34d;
}
html.dark .home-form-position.second {
  background: rgba(156, 163, 175, 0.15);
  border-color: rgba(156, 163, 175, 0.3);
  color: #d1d5db;
}
html.dark .home-form-position.third {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(217, 119, 6, 0.35);
  color: #fdba74;
}
html.dark .home-mvp {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
html.dark .home-pulse-card.leader {
  border-color: rgba(245, 158, 11, 0.35);
}
html.dark .home-pulse-card.hot {
  border-color: rgba(16, 185, 129, 0.35);
}
html.dark .home-pulse-card.latest {
  border-color: rgba(59, 130, 246, 0.35);
}
html.dark .search-bar-inline:focus-within {
  background: var(--surface);
}
html.dark .ach-item.locked {
  filter: grayscale(0.7) brightness(0.7);
}
html.dark .fire-badge {
  background: linear-gradient(135deg, rgba(251, 208, 0, 0.2), rgba(245, 158, 11, 0.2));
  color: #fbd000;
}
html.dark .undo-btn {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}
html.dark .undo-btn:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}
html.dark .rival-tag {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
html.dark .streak-loss {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
html.dark .streak-win {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}
html.dark .badge-red {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}
html.dark .badge-green {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
html.dark .badge-yellow {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}
html.dark .tb-punching-bag {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
html.dark .tb-champion {
  background: rgba(217, 119, 6, 0.18);
  color: #fcd34d;
  border-color: rgba(217, 119, 6, 0.4);
}
html.dark .tb-consistent {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}
html.dark .tb-veteran {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}
html.dark .tb-hotstreak {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}
html.dark .tb-underdog {
  background: rgba(156, 163, 175, 0.15);
  color: #d1d5db;
  border-color: rgba(156, 163, 175, 0.3);
}
html.dark .tb-dominator {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.3);
}
html.dark .tb-upset {
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
  border-color: rgba(124, 58, 237, 0.35);
}
html.dark .rank-arrow.up {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
html.dark .rank-arrow.down {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}
html.dark .hof-card {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}
html.dark .race-chip {
  background: var(--surface);
}
html.dark .row-move-btn,
html.dark .tie-toggle {
  background: var(--surface);
  border-color: var(--border);
}
html.dark .tie-toggle {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(167, 139, 250, 0.75);
  color: #c4b5fd;
}
html.dark .tie-toggle.active {
  background: var(--orbi-purple);
  border-color: var(--orbi-purple);
  color: white;
}
html.dark .race-slot.tied-above,
html.dark .race-slot.tied-below {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.24), var(--surface2) 34%);
  border-color: rgba(167, 139, 250, 0.7);
}
html.dark .race-tie-row.active::after {
  background: rgba(167, 139, 250, 0.55);
}
html.dark .race-count-chip {
  background: var(--surface2);
  border-color: var(--border);
}
html.dark .race-count-chip.active {
  background: var(--orbi-purple);
  border-color: var(--orbi-purple);
}
html.dark .btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}

/* ── MOBILE ────────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.hamburger:hover {
  background: var(--surface2);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(30, 27, 75, 0.5);
  backdrop-filter: blur(4px);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  max-width: 300px;
  background: var(--surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.mobile-menu-header {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-align: left;
}
.mobile-tab:hover {
  background: var(--surface2);
}
.mobile-tab.active {
  background: var(--orbi-purple-light);
  color: var(--orbi-purple);
}
.mobile-tab-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
}
@media (max-width: 700px) {
  .hamburger {
    display: block;
  }
  .tabs {
    display: none;
  }
  .header-badge {
    display: none;
  }
  header {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .header-left {
    flex: 1;
    min-width: 0;
  }
  .header-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app {
    padding: 0 12px 80px;
  }
  header {
    padding: 16px 0 12px;
  }
  .header-title {
    font-size: 17px;
  }
  .header-sub {
    font-size: 11px;
  }
  .card {
    padding: 16px;
  }
  .home-pulse-grid,
  .home-main-grid {
    grid-template-columns: 1fr;
  }
  .home-pulse-card {
    min-height: 104px;
  }
  .home-form-row {
    grid-template-columns: 28px minmax(72px, 1fr) minmax(96px, auto) 46px;
  }
  .home-form-position {
    width: 21px;
    height: 21px;
    border-radius: 6px;
    font-size: 7px;
  }
  .home-standing-row {
    grid-template-columns: 34px 28px minmax(70px, 1fr) 54px;
  }
  .home-standing-gap {
    display: none;
  }
  .home-rivalry-match {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .home-rivalry-match button,
  .home-rivalry-match button:last-child {
    justify-content: center;
  }
  .home-rivalry-score {
    justify-self: center;
  }
  .lb-header {
    display: none;
  }
  .lb-row {
    grid-template-columns: 36px 1fr 65px;
    gap: 8px;
    padding: 10px 12px;
  }
  .lb-row > *:nth-child(4),
  .lb-row > *:nth-child(5) {
    display: none;
  }
  .elo-col {
    font-size: 10px;
  }
  .player-name {
    font-size: 14px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .player-summary-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .player-summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-summary-form {
    justify-content: flex-start;
  }
  .season-banner {
    flex-direction: column;
    gap: 10px;
  }
  .lb-toggle-btn {
    font-size: 11px;
    padding: 7px 10px;
  }
  .fab {
    bottom: 16px;
    right: 16px;
    padding: 11px 16px;
    font-size: 13px;
  }
  .h2h-table th:nth-child(4),
  .h2h-table td:nth-child(4) {
    display: none;
  }
  .history-chips {
    justify-content: flex-start;
  }
  .race-slot {
    flex-wrap: nowrap;
  }
  .ach-grid {
    grid-template-columns: 1fr;
  }
}
