:root {
  --bg: #08131c;
  --panel: #0f1e2a;
  --card: #122736;
  --line: #2d485a;
  --text: #f1fbff;
  --muted: #9cb7c7;
  --accent: #41dbff;
  --accent-soft: #1f3d4c;
  --danger: #ff5b70;
  --good: #62f4c4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 20% 0%, #11344a 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
}

.redraw-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 10, 16, 0.52);
  z-index: 1500;
  pointer-events: none;
}

.redraw-popup.visible {
  display: flex;
}

.redraw-popup-card {
  min-width: 360px;
  max-width: 560px;
  border: 1px solid #2f566e;
  border-radius: 12px;
  background: linear-gradient(180deg, #15384a 0%, #0c2130 100%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
  padding: 14px 16px;
}

.redraw-popup-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8f2ff;
}

.redraw-popup-subtitle {
  margin-top: 6px;
  color: #a9ccdf;
  font-size: 1.05rem;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 156px 1fr;
  background: radial-gradient(circle at 20% 0%, #11344a 0%, var(--bg) 55%);
}

.ball-rail {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d2230 0%, #08131c 100%);
  padding: 14px 10px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.ball-rail h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  text-align: center;
}

.ball-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ball-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
}

.ball-odds {
  display: block;
  flex: 0 0 52px;
  min-width: 52px;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.ball-odds.best {
  color: #63e6b4;
  font-weight: 700;
}

.ball-odds.worst {
  color: #ff7f98;
  font-weight: 700;
}

.ball-odds.placeholder {
  visibility: hidden;
}

.ball-item .ball-btn {
  margin: 0;
}

.rail-actions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.rail-actions button {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d1d2a;
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 10px;
  cursor: pointer;
}

.ball-btn {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 1px solid #d7ebf8;
  background: radial-gradient(circle at 30% 26%, #ffffff 0%, #f2f8fc 58%, #cddcea 100%);
  color: #000000;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.ball-btn:hover {
  border-color: #ffffff;
  transform: translateY(-1px);
}

.ball-btn.selected {
  background: radial-gradient(circle at 30% 26%, #a6f2ff 0%, #5adfff 58%, #27bada 100%);
  color: #000000;
  border-color: var(--accent);
}

.ball-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.main-panel {
  padding: 14px 18px 22px;
  display: grid;
  gap: 12px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.topbar h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.7rem;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.draw-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.mode-inline {
  border: 1px solid var(--line);
  background: #0f2230;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.mode-inline strong {
  color: var(--text);
}

.tab,
.controls button {
  border: 1px solid var(--line);
  background: #142b3a;
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 10px;
  cursor: pointer;
}

.tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.tab:disabled,
.controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.controls .muted {
  background: #0d1d2a;
}

.controls-reset-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.controls-info-host {
  display: contents;
}

.run-buttons-host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-run-buttons {
  display: none;
}

.mobile-mode-line-host {
  display: none;
}

.mobile-reset-host {
  display: none;
}

.mobile-ball-host {
  display: none;
}

.selected-balls {
  font-size: 1.2rem;
  min-width: 170px;
}

.selected-balls span {
  color: var(--muted);
}

.selected-balls strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}

.speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-control input {
  width: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #061018;
  color: var(--text);
  padding: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.status-strip > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.status-strip span {
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.draw-winner {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.winner-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.winner-main strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.winner-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.winner-logo.pending {
  width: 52px;
  height: 52px;
  filter: grayscale(1) brightness(0.82) contrast(0.8);
  opacity: 0.8;
}

.winner-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.winner-label {
  color: var(--muted);
  min-width: 42px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

.winner-balls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.winner-lock {
  color: var(--accent);
  font-weight: 700;
}

.winner-ball-chip {
  width: 22px;
  height: 22px;
  font-size: 0.74rem;
}

.winner-pending {
  color: #d3e6f1;
  font-size: 1.05rem;
  font-weight: 700;
}

.winner-pending-logo-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.board-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  max-height: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: start;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 0;
}

th:nth-child(1),
td:nth-child(1) {
  width: 98px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 232px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 148px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 210px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 320px;
}

th:nth-child(6),
td:nth-child(6) {
  width: 165px;
}

thead {
  background: #17384a;
}

th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid #203a4a;
  text-align: left;
  white-space: nowrap;
}

th {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.96rem;
}

td.num {
  text-align: left;
}

td.odds {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  font-size: 1.14rem;
}

.odds-main {
  display: inline-block;
  transform: scale(1.06);
  transform-origin: left center;
}

.odds-delta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.odds-delta.up {
  color: #63e6b4;
}

.odds-delta.down {
  color: #ff7f98;
}

.odds-delta.flat {
  color: var(--muted);
}

td.elim {
  color: var(--danger);
  font-size: 1.12rem;
  font-weight: 700;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}

.team-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.team-link {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.28rem;
  cursor: pointer;
  padding: 2px 8px;
  text-align: left;
  border-radius: 6px;
  transition: background-color 180ms ease, color 180ms ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-link.active {
  color: #031621;
  background: var(--accent);
}

.team-link:hover {
  background: #1a3a4d;
}

.ping-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d7ebf8;
  background: radial-gradient(circle at 30% 26%, #ffffff 0%, #f2f8fc 58%, #cddcea 100%);
  color: #000000 !important;
  -webkit-text-fill-color: #000000;
  font-weight: 700;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.18);
  text-shadow: none;
}

.small {
  width: 24px;
  height: 24px;
  font-size: 0.82rem;
  margin-right: 2px;
}

.tiny {
  width: 16px;
  height: 16px;
  font-size: 0.58rem;
  margin-right: 2px;
}

.selected-ball-chip {
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  margin-right: 5px;
  color: #000000 !important;
  -webkit-text-fill-color: #000000;
  font-weight: 800;
}

.next-ball-cell {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  white-space: nowrap;
  min-width: 0;
}

.best-odds {
  color: var(--good);
  font-weight: 700;
  margin-left: 3px;
}

.worst-odds {
  color: var(--danger);
  font-weight: 700;
  margin-left: 3px;
}

.overflow-more {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-left: 2px;
  cursor: help;
  position: relative;
}

.overflow-more:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 125%;
  z-index: 20;
  background: #0a1d2a;
  color: #dbeeff;
  border: 1px solid #2f566e;
  border-radius: 6px;
  padding: 4px 6px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.seed-rank {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: #d8ecf9;
}

.pick-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pick-change {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

.pick-change.up {
  color: #5ccf86;
}

.pick-change.down {
  color: #d16b6b;
}

tr.eliminated {
  opacity: 0.45;
}

tr.won-lottery-row {
  opacity: 1;
}

tr.won-lottery-row td {
  background: linear-gradient(90deg, rgba(70, 120, 68, 0.28) 0%, rgba(124, 115, 48, 0.22) 100%);
}

tr.won-lottery-row .seed-rank {
  color: #f6f2b5;
}

tr.won-lottery-row .team-link {
  color: #f4f8cf;
}

.winner-row-label {
  color: #f7f0ac;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.winner-row-elim {
  color: #f7f0ac;
  font-weight: 700;
}

.winner-card-center-label {
  display: inline-block;
}

.combo-viewer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 200px;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.combo-viewer h2 {
  margin: 0 0 8px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
}

.combo-viewer p {
  margin: 0 0 10px;
  color: var(--muted);
}

.next-ball-prob-panel {
  border: 1px solid #24465c;
  border-radius: 8px;
  background: #0d2230;
  padding: 7px;
  margin-bottom: 8px;
}

.next-ball-prob-title {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.next-ball-prob-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
}

.next-ball-prob-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.82rem;
  color: #d7ecf7;
  border: 1px solid #2a4e64;
  border-radius: 6px;
  padding: 3px 5px;
}

.next-ball-prob-item.best {
  border-color: #2f7f66;
  background: #103629;
  color: #aef6d8;
}

.next-ball-prob-item.best .ping-ball {
  background: radial-gradient(circle at 30% 26%, #d4ffef 0%, #93e7c6 58%, #58b08d 100%);
}

.next-ball-prob-item.worst {
  border-color: #844455;
  background: #3a1a24;
  color: #ffc8d4;
}

.next-ball-prob-item.worst .ping-ball {
  background: radial-gradient(circle at 30% 26%, #ffe3ea 0%, #f3a9bb 58%, #c56a81 100%);
}

.next-ball-prob-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.combo-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.combo-toolbar button {
  border: 1px solid var(--line);
  background: #0d1d2a;
  color: var(--text);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 4px 6px;
  cursor: pointer;
}

.combo-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#comboPageInfo {
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.combo-list {
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  padding-right: 2px;
  flex: 1 1 auto;
  min-height: 0;
}

.combo-item {
  border: 1px solid #264458;
  border-radius: 8px;
  background: #0f2230;
  padding: 6px;
  display: grid;
  gap: 4px;
}

.combo-id {
  color: var(--muted);
  font-size: 0.92rem;
}

.combo-balls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.combo-empty {
  border: 1px dashed #34556a;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .main-panel {
    padding: 4px 5px 6px;
    gap: 4px;
  }

  .ball-rail {
    position: static;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 4px 6px 5px;
    margin: 0;
  }

  .mobile-ball-host {
    display: block;
    margin: 0 0 3px;
  }

  .mobile-ball-host > .ball-rail {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 5px;
  }

  .mobile-ball-host + .board-wrap {
    margin-top: 0;
  }

  .ball-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
  }

  .ball-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 32px;
    width: 32px;
    height: 42px;
    gap: 0;
    min-height: 0;
  }

  .ball-odds {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    line-height: 1;
    color: var(--muted);
    font-weight: 600;
    min-width: 0;
    text-align: center;
    flex: 0 0 auto;
  }

  .ball-odds.placeholder {
    visibility: hidden;
  }

  .ball-odds.best {
    color: #63e6b4;
    font-weight: 700;
  }

  .ball-odds.worst {
    color: #ff7f98;
    font-weight: 700;
  }

  .ball-rail h2 {
    text-align: left;
    margin-bottom: 4px;
    font-size: 0.9rem;
  }

  .mobile-reset-host {
    display: none;
  }

  .mobile-reset-host button {
    border: 1px solid var(--line);
    background: #142b3a;
    color: var(--text);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 6px 10px;
    line-height: 1.1;
  }

  .rail-actions {
    display: none;
  }

  .ball-btn {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
    margin: 0;
  }

  .mobile-inline-reset-btn {
    border: 1px solid var(--line);
    background: #142b3a;
    color: var(--text);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.86rem;
    padding: 10px 14px;
    line-height: 1.1;
    min-width: 92px;
    min-height: 44px;
    height: auto;
    margin: 6px 8px 6px auto;
    white-space: nowrap;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
  }

  .topbar h1 {
    font-size: 1rem;
    line-height: 1.1;
  }

  .topbar p {
    display: none;
  }

  .draw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }

  .draw-tabs #draw1Tab,
  .draw-tabs #draw2Tab {
    order: 1;
    padding: 3px 7px;
    font-size: 0.78rem;
  }

  .mobile-run-buttons {
    order: 1;
    margin-left: auto;
    display: grid;
    grid-template-columns: auto auto;
    grid-auto-rows: auto;
    justify-content: end;
    justify-items: end;
    gap: 4px;
  }

  .mobile-run-buttons > button:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .mobile-run-buttons > button:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .mobile-run-buttons .speed-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    white-space: nowrap;
    grid-column: 1 / span 2;
    grid-row: 2;
    justify-self: end;
  }

  .mobile-run-buttons .speed-control label {
    font-size: 0.74rem;
  }

  .mobile-run-buttons .speed-control input {
    width: 38px;
    padding: 2px;
    font-size: 0.78rem;
  }

  .mobile-run-buttons button {
    border: 1px solid var(--line);
    background: #142b3a;
    color: var(--text);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.76rem;
    padding: 3px 6px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .mode-inline {
    display: none;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: 0.86rem;
  }

  .mobile-mode-line-host {
    display: none;
  }

  .controls-reset-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .run-buttons-host {
    display: none;
  }

  .controls {
    display: none;
  }

  #resetAllBtn {
    display: none;
  }

  .status-strip {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
  }

  .combo-viewer {
    display: none;
  }

  .board-wrap {
    width: 100%;
    overflow: hidden;
    margin-top: 0;
  }

  table {
    width: 100%;
    table-layout: fixed;
    display: block;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 4px;
    padding: 4px;
  }

  td:nth-child(4),
  td:nth-child(5) {
    display: none;
  }

  tbody tr {
    min-height: 62px;
    display: grid;
    grid-template-columns: 29px 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px;
    border: 1px solid #234458;
    border-radius: 7px;
    background: #0c2131;
    padding: 4px 4px;
    position: relative;
  }

  td {
    padding: 0;
    border: 0;
    width: auto !important;
    min-width: 0;
  }

  .team-cell {
    justify-content: flex-start;
    gap: 0;
  }

  tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  tbody td:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  tbody td:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
  }

  .team-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .team-link {
    display: none;
  }

  td.num {
    text-align: left;
  }

  .pick-cell {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding-right: 2px;
  }

  .pick-change {
    font-size: 0.68rem;
    line-height: 1;
    padding: 0 2px;
    border-radius: 4px;
  }

  td.odds {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    font-size: 0.78rem;
    color: var(--accent);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.1;
  }

  td.odds::before {
    content: "Live Odds";
    display: block;
    color: var(--muted);
    font-size: 0.56rem;
    letter-spacing: 0.02em;
    margin-bottom: 0;
  }

  .odds-main {
    transform: none;
    display: block;
  }

  .odds-delta {
    font-size: 0.56rem;
  }

  td.elim {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.1;
  }

  td.elim::before {
    content: "Elimination Odds";
    display: block;
    color: var(--muted);
    font-size: 0.56rem;
    letter-spacing: 0.02em;
    margin-bottom: 0;
  }

  .seed-rank {
    font-size: 0.92rem;
  }

  tr.selected-team-row {
    background: #12384f;
    border-color: #2e6a89;
  }

  tr.won-lottery-row {
    border-color: #7f8642;
    background: linear-gradient(120deg, rgba(61, 109, 62, 0.36) 0%, rgba(128, 113, 46, 0.28) 100%);
  }

  tr.won-lottery-row td {
    background: transparent;
  }

  tr.won-lottery-row .seed-rank {
    color: #f7f0ac;
  }

  tr.won-lottery-row .winner-card-center-label {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f7f0ac;
    flex-direction: column;
    gap: 2px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    max-width: 100%;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
  }

  tr.won-lottery-row td.odds {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    overflow: hidden;
  }

  tr.won-lottery-row td.odds::before {
    content: none;
    display: none;
  }

  tr.won-lottery-row td.elim,
  tr.won-lottery-row td.elim::before {
    display: none;
  }

  .board-wrap,
  .combo-viewer {
    min-height: 0;
    max-height: none;
  }

}

@media (min-width: 901px) and (max-width: 1500px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
}
