body {
  background: #091A30;
  color: #FFFFFF;
  font-family: Roboto;
  margin: 0;
  padding: 16px;
}

#sportsPanel {
  min-height: 80vh;
}

.sportsShell {
  max-width: 1440px;
  margin: 0 auto;
}

.sportsHero,
.sportsToolbar,
.sportsDetailHeader,
.sportsSlip header,
.sportsMarket header,
.sportsSelection {
  align-items: center;
  display: flex;
}

.sportsHero {
  background: #10253E;
  border: 1px solid #29415B;
  justify-content: space-between;
  padding: 18px 20px;
}

.sportsHero h2,
.sportsDetail h3,
.sportsSlip h3 {
  color: #FFD700;
  margin: 4px 0;
}

.sportsHero p,
.sportsDetailHeader p,
.sportsEmptyDetail p,
.sportsState p,
.slipNotice {
  color: #AAB8C7;
  margin: 5px 0;
}

.eyebrow {
  color: #7F93A8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.sportsSummary {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  color: #AAB8C7;
  font-size: 12px;
}

.sportsSummary strong {
  color: #FFD700;
  font-size: 24px;
}

.sportsRefreshStatus {
  color: #91A2B4;
  font-size: 11px;
  margin-top: 4px;
}

.sportsToolbar {
  background: #06172B;
  border: 1px solid #29415B;
  border-top: 0;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 16px;
}

.sportsToolbar label {
  color: #C5CED8;
  font-size: 12px;
}

.sportsSearch {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 4px;
}

.sportsSearch input,
.sportsMode select {
  background: #10243E;
  border: 1px solid #45617D;
  color: #FFFFFF;
  min-height: 32px;
  padding: 5px 8px;
}

.sportsToggle {
  align-items: center;
  display: flex;
  gap: 7px;
  padding-top: 17px;
}

.sportsMode {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sportsDiscoveryControls {
  background: #06172B;
  border: 1px solid #29415B;
}

.sportsControlGroup {
  background: #06172B;
  border-top: 1px solid rgba(41, 65, 91, 0.7);
  padding: 7px 10px;
}

.sportsControlGroup:first-child {
  border-top: 0;
}

.sportsControlGroup p {
  color: #8D99A8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.sportsControlGroupPrimary p {
  color: #C5CED8;
  font-size: 11px;
}

.sportsSportNav,
.sportsCompetitionNav,
.sportsDiscoveryBar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 2px 2px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sportsSportNav::-webkit-scrollbar,
.sportsCompetitionNav::-webkit-scrollbar,
.sportsDiscoveryBar::-webkit-scrollbar {
  display: none;
}

.sportsSportNav button,
.sportsCompetitionNav button,
.sportsDiscoveryBar button {
  background: #10253E;
  border: 1px solid #29415B;
  color: #C5CED8;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  margin: 0;
  padding: 6px 9px;
  white-space: nowrap;
}

.sportsSportNav button {
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
}

.sportsCompetitionNav button {
  background: rgba(16, 37, 62, 0.78);
}

.sportsDiscoveryBar button {
  background: transparent;
  font-size: 11px;
  padding: 5px 8px;
}

.sportsSportNav button.active,
.sportsCompetitionNav button.active,
.sportsDiscoveryBar button.active {
  border-color: #FFD700;
  color: #FFD700;
}

.sportsCompetitionNav small {
  color: #8D99A8;
  margin-left: 4px;
}

.sportsMore {
  align-items: center;
  color: #8D99A8;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}

.sportsNotice,
.unresolvedNote {
  color: #D4B45B;
  font-size: 12px;
}

.sportsLayout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin-top: 14px;
}

.sportsMainPanel {
  min-width: 0;
  overflow: hidden;
}

.sportsLobbyView,
.sportsSelectedView {
  min-width: 0;
}

.sportsSelectedView.sportsDetailEnter {
  animation: sportsSlideFromLeft .28s ease-out;
}

@keyframes sportsSlideFromLeft {
  from {
    opacity: .15;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sportsBackButton {
  background: transparent;
  border: 1px solid #29415B;
  color: #FFD700;
  cursor: pointer;
  margin: 0 0 10px;
  padding: 8px 10px;
}

.sportsBackButton:hover {
  background: #132B47;
  box-shadow: 0 0 10px rgba(255, 215, 0, .18);
}

.sportsEventList {
  display: grid;
  gap: 6px;
  max-height: 68vh;
  overflow: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sportsEventList::-webkit-scrollbar {
  display: none;
}

.sportsCompetitionGroup {
  display: grid;
  gap: 6px;
}

.sportsCompetitionGroup header {
  align-items: center;
  color: #FFD700;
  display: flex;
  gap: 8px;
  padding: 8px 4px 2px;
  text-transform: uppercase;
}

.sportsCompetitionGroup header small {
  color: #8D99A8;
  font-size: 11px;
  text-transform: none;
}

.sportsEventRow {
  align-items: center;
  background: #10253E;
  border: 1px solid #29415B;
  color: #FFFFFF;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) 160px 76px 130px;
  margin: 0;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.sportsEventRow:hover,
.sportsEventRow.selected {
  background: #163354;
  border-color: #FFD700;
}

.sportsEventMain,
.sportsEventStatus,
.sportsEventMarkets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sportsEventMain small,
.sportsEventStatus small,
.sportsEventMarkets small,
.sportsSelection small {
  color: #91A2B4;
  font-size: 11px;
}

.sportsEventSchedule {
  color: #C5CED8;
  font-size: 12px;
}

.sportsEventSchedule.live {
  color: #FFD700;
  font-weight: 800;
}

.sportsEventMarkets strong {
  color: #FFD700;
  font-size: 18px;
}

.sportsEventStatus {
  color: #C5CED8;
  font-size: 11px;
}

.freshDot {
  background: #7D8995;
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  margin-right: 5px;
  width: 7px;
}

.freshDot.fresh { background: #65D391; }
.freshDot.stale { background: #E7B653; }
.freshDot.error { background: #F06A6A; }

.sportsDetail,
.sportsEmptyDetail,
.sportsSlip {
  background: #10253E;
  border: 1px solid #29415B;
  padding: 16px;
}

.sportsDetail,
.sportsEmptyDetail {
  margin-top: 0;
}

.sportsDetailHeader {
  justify-content: space-between;
}

.statusBadge,
.marketState {
  border: 1px solid #45617D;
  color: #C5CED8;
  font-size: 11px;
  padding: 4px 7px;
  text-transform: uppercase;
}

.sportsDetailMeta {
  border-bottom: 1px solid #29415B;
  color: #AAB8C7;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-bottom: 10px;
}

.sportsMarkets {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sportsMarket {
  border: 1px solid #29415B;
}

.sportsMarket header {
  background: #06172B;
  justify-content: space-between;
  padding: 9px 11px;
}

.sportsMarket h4 {
  color: #FFFFFF;
  margin: 0 0 3px;
}

.sportsMarket header small {
  color: #8FA0B2;
  font-family: monospace;
  font-size: 10px;
}

.sportsSelections {
  display: grid;
  gap: 5px;
  padding: 8px;
}

.sportsSelection {
  background: #132B47;
  gap: 12px;
  justify-content: space-between;
  padding: 7px 8px;
}

.sportsSelection > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.oddsButton {
  background: #FFD700;
  border: 1px solid #FFE875;
  color: #091A30;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-width: 64px;
  padding: 8px 10px;
}

.oddsButton:hover,
.oddsButton.selected {
  background: #FFFFFF;
}

.oddsButton small,
.sportsSlipItem b small {
  display: inline-block;
  font-size: 10px;
  margin-left: 4px;
}

.oddsMove-up {
  box-shadow: inset 2px 0 0 #65D391;
}

.oddsMove-down {
  box-shadow: inset 2px 0 0 #F06A6A;
}

.oddsButton-up,
.oddsText-up {
  color: #65D391;
}

.oddsButton-down,
.oddsText-down {
  color: #F06A6A;
}

.oddsUnavailable {
  color: #8A98A7;
  font-size: 12px;
  padding: 8px 10px;
}

.sportsSlip {
  margin-top: 0;
  position: sticky;
  top: 14px;
}

.sportsSlip header { justify-content: space-between; }
.textButton, .iconButton { background: transparent; border: 0; color: #FFD700; cursor: pointer; margin: 0; }
.iconButton { color: #AAB8C7; font-size: 18px; padding: 0 4px; }
.sportsSlipItems { display: grid; gap: 6px; margin-top: 12px; }
.sportsSlipItem { align-items: center; border-top: 1px solid #29415B; display: grid; gap: 6px; grid-template-columns: 1fr auto auto; padding-top: 8px; }
.sportsSlipItem div { display: flex; flex-direction: column; gap: 3px; }
.sportsSlipItem small { color: #91A2B4; font-size: 10px; }
.sportsSlipItem b { color: #FFD700; }
.sportsSlipItem.unavailableSlipItem {
  opacity: 0.78;
}
.sportsSlipItem .slipUnavailable {
  color: #F06A6A;
}
.slipNotice { border-top: 1px solid #29415B; font-size: 11px; margin-top: 12px; padding-top: 10px; }
.sportsSlipEmpty { color: #AAB8C7; font-size: 13px; padding: 22px 0; }
.sportsSlipEmpty small { color: #71859A; display: block; margin-top: 5px; }
.sportsEmptyDetail { color: #C5CED8; padding: 34px; text-align: center; }
.sportsEmptyIcon { color: #FFD700; font-size: 28px; }
.sportsState, .sportsLoading { background: #10253E; border: 1px solid #29415B; color: #C5CED8; margin-top: 14px; padding: 30px; text-align: center; }
.sportsError h2, .sportsError h3 { color: #F06A6A; }

@media (max-width: 900px) {
  .sportsLayout { grid-template-columns: 1fr; }
  .sportsSlip { position: static; }
  .sportsEventList { max-height: none; }
}

@media (max-width: 700px) {
  .sportsEventRow { grid-template-columns: 1fr auto; }
  .sportsEventSchedule { grid-column: 1; grid-row: 2; }
  .sportsEventMarkets { grid-column: 2; grid-row: 1 / span 2; }
  .sportsEventStatus { display: none; }
}

button {
  margin: 0 4px 12px 0;
  padding: 4px 8px;
}

button.active {
  font-weight: bold;
}

body > h1 {
  color: #FFFFFF;
  font-size: 22px;
  margin: 0 0 14px;
}

body > nav {
  align-items: center;
  background: #06172B;
  border: 1px solid #29415B;
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 6px;
}

body > nav button,
#lottoPanel > nav button {
  background: transparent;
  border: 1px solid transparent;
  color: #C5CED8;
  cursor: pointer;
  font-family: Roboto;
  margin: 0;
  min-height: 30px;
  padding: 6px 12px;
}

body > nav button:hover,
#lottoPanel > nav button:hover {
  background: #132B47;
  border-color: #29415B;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
  color: #FFFFFF;
}

body > nav button.active,
#lottoPanel > nav button.active {
  border-color: #FFD700;
  color: #FFD700;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid #999;
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
}

pre {
  border: 1px solid #999;
  padding: 8px;
  overflow: auto;
  white-space: pre-wrap;
}

.error {
  color: #900;
}

.tableScroll {
  overflow-x: auto;
}

.linkButton {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.ballGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.selectedBall {
  font-weight: bold;
  outline: 2px solid #000;
}

#lottoPanel {
  background: #091A30;
  color: #ffffff;
  font-family: Roboto;
  min-height: 80vh;
  padding: 0;
}

#racingPanel {
  background: #0a1a2f;
  color: #ffffff;
  padding: 16px;
  min-height: 80vh;
}

#lottoPanel h2,
#lottoPanel h3,
#lottoPanel h4,
#lottoPanel h5,
#racingPanel h2,
#racingPanel h3,
#racingPanel h4 {
  color: #ffd700;
}

#lottoPanel h2 {
  background: #06172B;
  border: 1px solid #29415B;
  border-bottom: 0;
  font-size: 20px;
  margin: 0;
  padding: 12px 14px 4px;
}

#lottoPanel > nav {
  background: #06172B;
  border: 1px solid #29415B;
  border-top: 0;
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 6px 10px 10px;
}

#lottoPanel table,
#racingPanel table {
  border-collapse: separate;
  border-spacing: 0;
  color: #ffffff;
  width: 100%;
}

#lottoPanel th,
#lottoPanel td,
#racingPanel th,
#racingPanel td {
  border-color: #2a3d56;
  padding: 8px;
}

#lottoPanel th,
#lottoPanel td {
  border-color: #29415B;
}

#lottoPanel th,
#racingPanel th {
  color: #ffd700;
}

#lottoPanel .lottoTable {
  background: #10253E;
  border: 1px solid #29415B;
  table-layout: fixed;
}

#lottoPanel .lottoTable th {
  background: #06172B;
  border-width: 0 0 1px;
  color: #C5CED8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 7px 8px;
  vertical-align: top;
}

#lottoPanel .lottoTable td {
  border-width: 0 0 1px;
  color: #FFFFFF;
  font-size: 13px;
  height: 42px;
  padding: 6px 8px;
  vertical-align: middle;
}

#lottoPanel .lottoHeader-drawDate,
#lottoPanel .lottoCol-date {
  width: 11%;
}

#lottoPanel .lottoHeader-drawTime,
#lottoPanel .lottoCol-time {
  width: 8%;
}

#lottoPanel .lottoHeader-game,
#lottoPanel .lottoCol-game {
  width: 27%;
}

#lottoPanel .lottoHeader-country,
#lottoPanel .lottoCol-country {
  width: 20%;
}

#lottoPanel .lottoHeader-bettingCutoff,
#lottoPanel .lottoCol-cutoff {
  width: 12%;
}

#lottoPanel .lottoHeader-timeLeft,
#lottoPanel .lottoCol-left {
  width: 12%;
}

#lottoPanel .lottoHeader-static {
  width: auto;
}

#lottoPanel .lottoRow,
#racingPanel .racingRow {
  background: #10253E;
  cursor: default;
}

#lottoPanel .lottoRow:hover {
  background: #132B47;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

#racingPanel .racingRow:hover {
  background: #10243e;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

#lottoPanel .linkButton,
#racingPanel .linkButton {
  color: #ffffff;
  text-decoration: none;
}

#lottoPanel .linkButton:hover,
#racingPanel .linkButton:hover {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

.lottoMeta,
.racingMeta,
.lottoControls,
.activeFilter {
  color: #C5CED8;
}

.lottoMeta {
  color: #8D99A8;
  font-size: 12px;
  margin: 0 0 10px;
}

.lottoControls {
  border: 1px solid #2a3d56;
  margin-bottom: 12px;
}

.lottoControls input,
.lottoControls select {
  background: #10243e;
  border: 1px solid #cfcfcf;
  color: #ffffff;
  margin: 0 8px 8px 4px;
}

.lottoExpansion {
  background: #10243e;
  border: 1px solid #2a3d56;
  padding: 12px;
}

.racingExpansion {
  background: #10243e;
  border: 1px solid #2a3d56;
  padding: 12px;
}

.lottoShell {
  align-items: flex-start;
  display: block;
  gap: 14px;
  position: relative;
}

.lottoList {
  overflow-x: auto;
}

.lottoDetailPanel {
  background: rgba(16, 37, 62, 0.94);
  border-left: 1px solid #29415B;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.36);
}

.lottoDrawerBackdrop {
  animation: lottoBackdropIn 180ms ease-out;
  background: rgba(6, 23, 43, 0.62);
  backdrop-filter: blur(5px);
  cursor: pointer;
  inset: 0;
  position: fixed;
  z-index: 40;
}

.lottoSlideOver {
  animation: lottoSlideIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  bottom: 0;
  max-width: 100%;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  width: min(520px, 42vw);
  z-index: 50;
}

.lottoDrawerHeader {
  align-items: flex-start;
  background: #06172B;
  border-bottom: 1px solid #29415B;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: -12px -12px 12px;
  padding: 14px 14px 10px;
}

.lottoDrawerClose {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: #8D99A8;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Roboto;
  font-size: 24px;
  height: 30px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 30px;
}

.lottoDrawerClose:hover {
  background: #132B47;
  border-color: #29415B;
  color: #FFFFFF;
}

@keyframes lottoSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes lottoBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#lottoPanel .selectedRow,
#lottoPanel .selectedRow:hover {
  background: rgba(255, 215, 0, 0.10);
  box-shadow: inset 3px 0 0 #FFD700, 0 0 10px rgba(255,215,0,0.4);
  outline: 1px solid rgba(255, 215, 0, 0.5);
}

#racingPanel .selectedRow,
#racingPanel .selectedRow:hover {
  background: rgba(255, 215, 0, 0.12);
  box-shadow: inset 3px 0 0 #ffd700, 0 0 10px rgba(255,215,0,0.4);
  outline: 1px solid rgba(255, 215, 0, 0.55);
}

.panelTiming,
.selectionSummary,
.lottoDiagnostic,
.racingDiagnostic {
  color: #d7d7d7;
}

.lottoSearch,
.racingSearch {
  margin-bottom: 12px;
  position: relative;
}

#lottoPanel .lottoSearch {
  align-items: center;
  display: flex;
  gap: 6px;
}

#lottoPanel .lottoSearch input {
  background: #10253E;
  border: 1px solid #29415B;
  color: #FFFFFF;
  font-family: Roboto;
  font-size: 13px;
  min-height: 32px;
  min-width: 300px;
  padding: 6px 30px 6px 10px;
}

#lottoPanel .lottoSearch input::placeholder {
  color: #8D99A8;
}

#lottoPanel [data-clear-search] {
  background: transparent;
  border: 0;
  color: #8D99A8;
  cursor: pointer;
  font-family: Roboto;
  margin-left: -34px;
  padding: 2px 8px;
  position: relative;
}

#lottoPanel [data-clear-search]:hover {
  color: #FFD700;
}

.racingSearch input {
  background: #10243e;
  border: 1px solid #cfcfcf;
  color: #ffffff;
  min-width: 280px;
  padding: 6px 8px;
}

.suggestions {
  background: #10253E;
  border: 1px solid #29415B;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  left: 0;
  margin-top: 4px;
  padding: 4px;
  position: absolute;
  top: 34px;
  z-index: 4;
}

.suggestions button,
.countryButton,
.headerSort {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

#lottoPanel .suggestions button {
  border: 1px solid #29415B;
  color: #C5CED8;
  font-family: Roboto;
  padding: 4px 7px;
}

#lottoPanel .suggestions button:hover {
  border-color: #FFD700;
  color: #FFD700;
}

.countryButton:hover,
.headerSort:hover {
  color: #ffd700;
}

.headerLabel {
  color: #C5CED8;
  display: inline-block;
  font-weight: bold;
}

.headerSortControls {
  display: inline-flex;
  gap: 2px;
  margin-left: 4px;
}

.headerSort {
  color: #8D99A8;
  font-size: 12px;
  line-height: 1;
  padding: 1px 2px;
}

.racingControls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.racingControls label {
  color: #d7d7d7;
  display: grid;
  font-size: 12px;
  gap: 3px;
}

.racingControls select {
  background: #10243e;
  border: 1px solid #4b5d76;
  color: #ffffff;
  max-width: 190px;
  padding: 5px 7px;
}

.racingMeetings {
  display: grid;
  gap: 10px;
}

.racingMeeting {
  align-items: center;
  background: rgba(16, 36, 62, 0.68);
  border: 1px solid #2a3d56;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  padding: 8px;
}

.racingMeetingHeader {
  align-content: center;
  color: #ffd700;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.racingMeetingHeader span {
  color: #d7d7d7;
  font-size: 12px;
}

.raceTileStrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.raceTile {
  background: #0a1a2f;
  border: 1px solid #2a3d56;
  color: #ffffff;
  cursor: pointer;
  display: grid;
  flex: 0 0 118px;
  gap: 3px;
  min-height: 96px;
  padding: 7px;
  text-align: left;
}

.raceFocusStrip {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.countryRail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.selectedFilter {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255,215,0,0.4);
}

.racingCountryGroup {
  margin-bottom: 16px;
}

.runnerTableWrap {
  border: 1px solid #2a3d56;
  background: rgba(16, 36, 62, 0.68);
  padding: 10px;
}

.runnerTableHeader {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.runnerTableHeader p {
  color: #d7d7d7;
}

.runnerTable th,
.runnerTable td {
  vertical-align: middle;
}

.silksImg {
  background: #ffffff;
  border-radius: 2px;
  display: block;
  height: 34px;
  object-fit: contain;
  width: 42px;
}

.silksPlaceholder {
  align-items: center;
  border: 1px solid #4b5d76;
  color: #d7d7d7;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 40px;
}

.mutedText {
  color: #d7d7d7;
  font-size: 12px;
}

.scratchedRunner {
  opacity: 0.5;
  text-decoration: line-through;
}

.raceTile:hover {
  background: #10243e;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

.selectedRaceTile,
.selectedRaceTile:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: #ffd700;
  box-shadow: inset 0 0 0 1px #ffd700, 0 0 10px rgba(255,215,0,0.4);
}

.closedRaceTile {
  opacity: 0.65;
}

.raceTileNumber {
  color: #ffd700;
  font-weight: 700;
  text-transform: uppercase;
}

.raceTileTime {
  font-size: 18px;
  font-weight: 700;
}

.raceTileName {
  color: #d7d7d7;
  font-size: 11px;
  line-height: 1.25;
  max-height: 30px;
  overflow: hidden;
}

.raceTileMeta {
  color: #d7d7d7;
  font-size: 11px;
}

#lottoPanel th select {
  appearance: none;
  background: #10253E;
  border: 1px solid #29415B;
  color: #C5CED8;
  display: block;
  font-family: Roboto;
  font-size: 11px;
  margin-top: 4px;
  max-width: 100%;
  padding: 3px 18px 3px 6px;
}

#racingPanel th select {
  background: #10243e;
  border: 1px solid #4b5d76;
  color: #ffffff;
  margin-top: 4px;
  max-width: 140px;
}

.lottoExpansion.locked,
.racingExpansion.locked,
.selectionArea.locked {
  opacity: 0.58;
}

.lottoExpansion {
  bottom: 0;
  background: #10253E;
  border: 0;
  overflow-y: auto;
  padding: 12px;
  position: absolute;
  top: 0;
  width: 100%;
}

.lottoExpansion h3 {
  color: #FFFFFF;
  font-size: 16px;
  margin: 0 0 6px;
}

.lottoExpansion h4 {
  color: #FFD700;
  font-size: 13px;
  margin: 12px 0 8px;
}

.lottoExpansion h5 {
  color: #C5CED8;
  font-size: 12px;
  margin: 8px 0 4px;
}

.lockedNotice {
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  display: inline-block;
  padding: 4px 8px;
}

.matchingOdds {
  outline: 1px solid #ffd700;
}

#lottoPanel .oddsTable {
  background: #091A30;
  border: 1px solid #29415B;
}

#lottoPanel .oddsTable th,
#lottoPanel .oddsTable td {
  font-size: 12px;
  height: auto;
  padding: 6px 8px;
}

.statusPill {
  border: 1px solid #4b5d76;
  border-radius: 999px;
  color: #d7d7d7;
  display: inline-block;
  padding: 2px 8px;
}

.status-open {
  border-color: #ffd700;
  color: #ffd700;
}

.status-closed,
.status-awaiting-result,
.status-resulted {
  background: #10243e;
  color: #d7d7d7;
}

.ballButton {
  background: #091A30;
  border: 1px solid #8D99A8;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-family: Roboto;
  height: 32px;
  margin: 0;
  min-width: 32px;
}

.ballButton:hover {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

.selectedBall {
  background: #ffd700;
  color: #091A30;
  outline: 0;
}

.winningNumbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ballChip {
  border-radius: 999px;
  display: inline-flex;
  font-weight: bold;
  justify-content: center;
  min-width: 28px;
  padding: 4px 7px;
}

.mainResultBall {
  background: #ffd700;
  color: #0a1a2f;
}

.bonusResultBall {
  background: #091A30;
  border: 1px solid #ffd700;
  color: #ffd700;
}

.resultFallback td {
  background: #10243e;
  color: #d7d7d7;
}

@media (max-width: 900px) {
  .lottoShell {
    display: block;
  }

  .lottoSlideOver {
    width: min(100vw, 520px);
  }
}
