@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&family=Poppins:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;600&family=Russo+One&display=swap');

:root {
  --bg: #00033D;
  /* deep indigo */
  --panel: #001A5F;
  /* panel blue */
  --text: #ffffff;
  --muted: #A3D1FF;
  /* light sky */
  --accent: #0074FF;
  /* primary blue */
  --accent-soft: #24AAFF;
  --subaccent: #AF71FF;
  /* violet for subtabs */
  --positive: #19c37d;
  --negative: #ff5d5d;
  --rail: 360px;
  --rail-gap: 32px;
  /* extra bottom gap to reduce right rail height */
  --subtab-h: 44px;
  /* mobile subtab bar height */
  --bet-gap: 12px;
  /* keep gaps consistent between chips and panels */
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: url('./bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.muted {
  color: var(--muted)
}

.app {
  min-height: 100vh;
  /* Use dynamic viewport height where supported to avoid browser UI issues */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header */

/* Main layout */
.main {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  /* Ensure main content fills the viewport height below the header */
  min-height: calc(100dvh - var(--hdr-offset, 72px));
  background: radial-gradient(56.75% 98.88% at 50% 56.38%, #25221b82 39%, #0a0c0a40 100%);
}

@media (min-width:1200px) {
  .main {
    grid-template-columns: 1fr var(--rail)
  }
}

/* Left column fills available height: top status, expandable stage, bottom bet row */

/* --- NEW HEADER BAR --- */
.app-header {
  grid-column: 1 / -1;
  /* Span full width if parent is grid */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 60px;
  background: #2857ADBF;
  /* 75% opacity blue */
  border-radius: 6px;
  padding: 0 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* margin-bottom: 16px; */
}

/* Ensure dashboard spans the main grid */
.dashboard-container {
  grid-column: 1 / -1;
  width: 100%;
}

/* Restore the 2-column layout for the content below the header on Desktop */
@media (min-width: 1200px) {
  .dashboard-top {
    display: grid;
    grid-template-columns: 1fr var(--rail);
    gap: 16px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.header-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.header-balance-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  margin-top: 0;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #c30010;
  /* Red */
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  /* Optional pulse */
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.header-center {
  display: flex;
  justify-content: center;
}

/* Status Pill */
.status-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  /* Default Green check */
  color: white;
  padding: 4px 16px;
  border-radius: 999px;
  min-width: 140px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  border: 1px solid transparent;
}

/* Phase Colors */
.status-pill.phase-betting {
  background: rgba(43, 157, 6, 0.75);
  border: 1px solid rgba(0, 191, 22, 1);
}

.status-pill.phase-locked {
  background: rgba(27, 82, 216, 1);
  border: 1px solid rgba(42, 118, 255, 1);
}

.status-pill.phase-reveal,
.status-pill.phase-payout {
  background: rgba(229, 204, 57, 1);
  border: 1px solid rgba(245, 235, 176, 1);
}

.status-pill.phase-waiting {
  background: #64748b;
  /* Slate - Waiting */
}

.status-pill.phase-paused {
  background: #ef4444;
  /* Red - Paused */
  border: 1px solid #fee2e2;
}

.pill-top {
  font-size: 12px;
  /* User requested larger size */
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.95;
}

.pill-bottom {
  font-size: 14px;
  font-weight: 700;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.header-right-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Gap between the boxes */
}

.header-stat-box {
  width: 30px;
  height: 30px;
  background: rgba(0, 3, 61, 1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* optional: nice shadow/border or content alignment */
}

.header-stat-box img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  margin-bottom: -1px;
}

.header-stat-box span {
  font-size: 8px;
  line-height: 1;
  font-weight: 500;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.info-circle {
  width: 18px;
  height: 18px;
  border: 1.5px solid #fff;
  /* width of circle line */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  box-sizing: border-box;
  padding-top: 2px;
}

.viewing-count {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hamburger-wrapper {
  position: relative;
}

.hamburger-btn {
  background: rgba(0, 3, 61, 1);
  border: none;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

/* Old stuff we can keep for fallback or just overwrite */
.status-badge {
  display: none;
}

/* Hide old one just in case */

.stocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px
}

.stock-card {
  background: var(--panel);
  border: 1px solid rgba(108, 220, 251, 1);
  border-radius: 6px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  box-shadow: 0 0 6.5px 2px rgba(122, 179, 255, 1) inset
}

.stock-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase
}

.stock-num {
  display: flex;
  align-items: baseline;
  gap: 10px
}

.price {
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 18px
}

.delta {
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace
}

.delta.pos {
  color: var(--positive)
}

.delta.neg {
  color: var(--negative)
}

/* Stage area */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .0));
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  min-height: clamp(280px, 44vh, 720px)
}

/* Stack lady above table and anchor stack to stage bottom so ordering is preserved */
.stage .stage-stack {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  pointer-events: none
}

.stage .lady {
  position: relative;
  z-index: 2;
  height: auto;
  object-fit: contain;
  /* Scale with viewport height so she grows on higher resolutions */
  width: clamp(220px, 26vh, 420px);
  /* Slight overlap so she always touches the table */
  margin-bottom: clamp(-40px, -0.5vh, -8px)
}

.stage .table {
  position: relative;
  z-index: 1;
  height: auto;
  opacity: 1;
  /* Ensure table never exceeds container on small screens */
  width: min(95%, clamp(420px, 62vh, 980px))
}

/* Table bet cards */
.table-cards {
  position: absolute;
  left: 50%;
  /* place at the vertical middle of the table */
  bottom: calc(var(--table-mid, 120px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: min(4vw, 40px);
  width: min(95%, var(--table-w, 720px));
  pointer-events: none
}

.bet-card {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  --card-size: min(20vw, max(120px, calc(var(--table-w, 720px) * .18)));
  width: var(--card-size);
  height: calc(1.46 * var(--card-size));
  min-width: 101px;
  min-height: 147px;
  border-radius: 15px;
  border: 2px solid rgba(108, 220, 251, 1);
  background: radial-gradient(50% 50%, rgba(57, 151, 201, .87) 0%, rgba(9, 39, 90, .87) 100%);
  box-shadow: 0 0 13.8px 2px rgba(0, 104, 225, 1) inset;
  backdrop-filter: blur(13.3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease
}

.bet-card:hover {
  transform: translateY(-2px)
}

.bet-card__hdr {
  width: calc(100% - 12px);
  margin: 6px;
  border-radius: 9px;
  border: 1px solid rgba(108, 220, 251, 1);
  background: #002A68;
  box-shadow: inset 0 0 10.8px -2px rgba(122, 179, 255, 1);
  text-align: center;
  padding: 3px 0
}

.bet-card__hdr span {
  font-size: clamp(9px, calc(var(--card-size) * .09), 13px);
  font-weight: 600;
  letter-spacing: .08em;
  color: #6CDCFB;
  text-transform: uppercase
}

.bet-card__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  position: relative
}

.bet-card__symbol {
  font-size: clamp(10px, calc(var(--card-size) * .1), 16px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
  padding: 0 4px
}

.bet-card__coin {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(24px, calc(var(--card-size) * .42), 90px);
  height: clamp(24px, calc(var(--card-size) * .42), 90px);
  margin: 4px 0
}

.bet-card__coin img {
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
  width: 100%;
  height: 100%
}

.bet-card__coin .bet-card__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #001D4B;
  filter: blur(calc(var(--card-size) * .04))
}

.bet-card__ratio {
  font-weight: 700;
  color: #fff;
  font-size: clamp(8px, calc(var(--card-size) * .075), 12px);
  margin-bottom: 4px
}

.bet-card__bot {
  width: 100%;
  padding: clamp(4px, calc(var(--card-size) * .05), 8px) 8px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.bet-card__bot .row {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.bet-card__bot .lbl {
  font-size: clamp(8px, calc(var(--card-size) * .07), 12px);
  font-weight: 600;
  color: #fff
}

.bet-card__bot .val {
  font-size: clamp(8px, calc(var(--card-size) * .07), 12px);
  color: #fff
}

.bet-card__shadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 16px;
  background: rgba(0, 0, 0, .5);
  filter: blur(10px);
  z-index: 1;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px
}

@media (min-width:1200px) {
  .table-cards {
    gap: min(3vw, 48px)
  }

  .bet-card__hdr span {
    font-size: 13px
  }

  .bet-card__symbol {
    font-size: 15px
  }
}

/* Desktop: scale stage, table and lady larger for normal PC view */
@media (min-width:1200px) {
  .stage {
    min-height: min(45vh, 650px);
    margin-top: -28px;
    /* lift wheel area slightly closer to top on PC */
  }

  /* Lift the table slightly above the very bottom on desktop */
  .stage .stage-stack {
    bottom: 3vh
  }

  .stage .table {
    width: min(98%, clamp(760px, 74vh, 1280px))
  }

  .stage .lady {
    width: clamp(240px, 30vh, 520px)
  }
}

/* Bet controls */
/* Bet panel row: center, constrain width, adapt columns */


/* keep inner content from stretching edge-to-edge on huge screens */
.bet-row>* {
  width: 100%;
  max-width: min(960px, 100%)
}

@media (min-width:750px) {

  /* Desktop: chips, bet input, total bet on one row; actions below */
  .bet-row {
    grid-template-columns: fit-content(640px) max-content max-content;
    justify-content: center;
    justify-items: center;
    align-items: center
  }

  .bet-row>* {
    width: auto;
    max-width: none
  }

  .bet-actions {
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center
  }

  /* Left-align chips for clean column alignment */
  .chips {
    justify-content: flex-start
  }

  /* Prevent total bet wrapping for tidy alignment */
  .total-bet {
    white-space: nowrap
  }

  /* Ensure the chips container itself becomes the grid item for precise sizing */
  .chips-host {
    display: contents
  }
}

/* Tighten spacing to ensure horizontal fit between 750px and 899px */
@media (min-width:750px) and (max-width:899px) {

  /* Slightly reduce the visual footprint of controls to avoid wrapping */
  .bet-input {
    /* transform: scale(.92); */
    transform-origin: center
  }

  .total-bet {
    transform: scale(.92);
    transform-origin: center
  }
}

/* Chips wrap and center by default, with responsive sizing */
.chips {
  display: flex;
  gap: var(--bet-gap);
  flex-wrap: wrap;
  justify-content: center
}

.chip {
  position: relative;
  width: clamp(48px, 7.2vw, 72px);
  height: clamp(48px, 7.2vw, 72px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  user-select: none;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0 0 5px 0;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 0, 0, .6), 0 0 2px rgba(255, 255, 255, .4);
  transform: scale(1.12);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform
}

/* Realistic oval shadow under chip */
.chip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 72%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .28) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(2px);
  opacity: .9;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease
}

.chip:hover {
  transform: scale(1.02)
}

.chip:hover::after {
  transform: translateX(-50%) scale(.98);
  opacity: .92
}

.chip:active {
  transform: scale(.88)
}

.chip:active::after {
  transform: translateX(-50%) scale(.88);
  opacity: .85
}

.chip.is-pressing {
  transform: scale(.88)
}

.chip.is-pressing::after {
  transform: translateX(-50%) scale(.88);
  opacity: .85
}

.chip:focus {
  outline: 0
}

.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.chip.active {
  border: 0
}

.bet-input .inc,
.bet-input .dec {
  flex: 0 0 auto
}

.bet-input {
  /* background: var(--panel); */
  border: 1px solid #5DA69A;
  background: #5DA69A;
  box-shadow: 0 0 0 1px rgba(36, 170, 255, .35) inset, inset 0 6px 10px -8px rgba(0, 0, 0, .6), inset 0 -6px 10px -8px rgba(0, 0, 0, .6)
}

.bet-input button {
  height: 44px;
  width: 44px;
  background: linear-gradient(180deg, #0a8b39, #0a8b39);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(36, 170, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s ease, background .22s ease
}

.bet-input button:hover {
  background: linear-gradient(180deg, #0a8b39, #0a8b39);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(36, 170, 255, .38), inset 0 0 0 1px rgba(255, 255, 255, .12)
}

.bet-input button:active {
  transform: scale(.97)
}

.bet-input button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.bet-amt {
  min-width: 96px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace;
  padding: 0 10px;
  color: #d7e8ff
}

.total-bet {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(270deg, #5DA69A 0%, #5DA69A 100%);
  border: 1px solid #5DA69A;
  border-radius: 30px;
  box-shadow: 0 0 4.1px 0 #5DA69A;
  font-weight: 500;
  white-space: nowrap
}

.total-bet .amt {
  display: inline-block;
  min-width: 6ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace
}

/* Reduce visual size of bet input and total bet on desktop while keeping touch targets */
@media (min-width:900px) {
  .bet-input {
    /* transform: scale(.95); */
    transform-origin: center
  }

  .balance {
    transform: scale(.95);
    transform-origin: center
  }

  .bet-amt {
    min-width: 90px
  }
}

/* bet action buttons with coin textures */
.bet-actions button {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #182233;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px
}

.bet-actions .heads::before,
.bet-actions .tails::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: cover;
  background-position: center;
  border-radius: 50%
}

.bet-actions .heads::before {
  background-image: url('./head.png')
}

.bet-actions .tails::before {
  background-image: url('./tail.png')
}

/* Wheel of Fortune */
.wheel-wrap {
  display: grid;
  place-items: center;
  width: 100%
}

.wheel-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: min(46vw, 265px);
  aspect-ratio: 1/1
}

/* Make the wheel larger on mobile */
@media (max-width:749px) {
  .dashboard-container {
    gap: 7px !important;
  }

  .app-header {
    margin-top: -8px !important;
  }

  .mobile-panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wheel-scene {
    width: min(45vw, 360px);
  }

  .wheel-section {
    height: 42vh !important;
    min-height: 170px !important;
  }

  .wheel-label-text {
    font-size: 6px !important;
  }

  .bet-panel {
    gap: 4px !important;
    padding: 7px 5px 7px !important;
  }

  .bet-panel .hdr {
    font-size: 10px;
  }
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid #9c7a24;
  background: radial-gradient(circle at 50% 55%, #ffd95a 0%, #d9a01c 68%, #b87b0a 100%);
  box-shadow: none;
  transform: rotate(var(--wheel-rot, 0deg));
  transition: transform var(--spin-dur, 4.6s) var(--spin-ease, cubic-bezier(.19, 1, .22, 1));
  will-change: transform
}

/* Inner golden stroke and subtle highlight ring */
.wheel::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  box-shadow: none;
  pointer-events: none
}

/* Thin separators at slice boundaries, gold-tinted */


/* Container for segments and pegs - adjust position here to move both together */
.wheel .wheel-content {
  position: absolute;
  inset: 0;
}

/* Pegs around the rim */
.wheel .pegs {
  position: absolute;
  inset: 0;
  top: -7px;
  pointer-events: none
}

.wheel .peg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform-origin: 0 50%;
  transform:
    rotate(var(--rot)) translateX(var(--peg-r, 140px)) translateY(-50%);
  background:
    radial-gradient(circle at 35% 35%, #fff 0 35%, #ff3b3b 36% 72%, #9b0000 73% 100%);
  box-shadow: 0 0 8px rgba(255, 0, 0, .9), inset 0 0 2px rgba(255, 255, 255, .9);
  border: 2px solid #ffd95a;
}

/* Render each sector using a per-slice conic segment; labels are positioned separately */
.wheel .slice {
  position: absolute;
  inset: 0
}

.wheel .slice::before {
  content: "";
  position: absolute;
  inset: 10px;
  /* respects the wheel border */
  border-radius: 50%;
  /* draw only this slice's sector, rest transparent */
  background: conic-gradient(from var(--start), var(--seg, #fff) 0 var(--size), transparent 0);
  opacity: 1;
  box-shadow: none;
}

/* Subtle alternation to improve visual segmentation without harsh separators */
.wheel .slice:nth-child(even)::before {
  filter: brightness(1.05) saturate(1.05)
}

.wheel .slice:nth-child(odd)::before {
  filter: brightness(.98)
}

/* Place labels radially aligned with each sector, close to rim */
.wheel .slice .lbl {
  position: absolute;
  left: 50%;
  top: 50%;
  line-height: 1;
  transform-origin: left center;
  transform:
    rotate(var(--rot)) translateX(var(--lbl-x, 0px)) rotate(var(--text-rot, 345deg)) translateY(var(--text-offset-y, -190%)) scale(var(--lbl-scale, 1));
  z-index: 10;
  pointer-events: none;
  display: inline-block;
  /* radial label aligned with segment direction */
  white-space: nowrap;
  word-break: keep-all;
  text-align: center;
  letter-spacing: .06em;
  font-size: clamp(8px, 1.2vw, 12px);
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  /* -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.95); */
  /* text-shadow:
    0 0 12px rgba(0, 0, 0, 1),
    0 3px 6px rgba(0, 0, 0, 0.9),
    0 0 5px rgba(0, 0, 0, 1),
    2px 2px 3px rgba(0, 0, 0, 0.95); */
}

/* Per-category colors used by the conic segment */
.cat-red {
  --seg: #e82424
}

.cat-green {
  --seg: #0db93b
}

.cat-blue {
  --seg: #0a7aff
}

.cat-purple {
  --seg: #6c2784
}

.cat-golden {
  --seg: #ffd700
}

.wheel-pin {
  position: absolute;
  left: 50%;
  top: -4%;
  transform: translateX(-50%);
  width: 12%;
  height: auto;
  z-index: 30;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5));
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .55));
}

/* center ring detail */
.wheel-center::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 216, 90, .85), inset 0 8px 12px -6px rgba(0, 0, 0, .4);
  pointer-events: none
}

/* Base oval shadow under the wheel */
.wheel-base-shadow {
  position: absolute;
  bottom: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 180%;
  height: 24%;
  max-width: none;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .24) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(6px)
}

@media (prefers-reduced-motion: reduce) {
  .wheel {
    transition: none
  }
}

/* Category / stock bet panels */
.panels-host {
  margin-top: 16px
}

.bet-panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

@media (min-width:1200px) {
  .bet-panels-grid {
    grid-template-columns: repeat(5, 1fr);
    margin-top: -4px;
    /* pull bet panels slightly closer to wheel on PC */
  }
}

.bet-panel {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 14px 5px 7px;
  min-height: 230px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .6));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}

.bet-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55)
}

/* Disabled/pending state for bet panels - Minimal visual change so content is readable */
.bet-panel:disabled,
.bet-panel.pending {
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}

/* Add a subtle pulsing animation to show it's processing */
@keyframes pending-pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.5;
  }
}

.bet-panel.pending {
  animation: pending-pulse 1.5s ease-in-out infinite;
}

.bet-panel:disabled:hover,
.bet-panel.pending:hover {
  transform: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}

.bet-panel .hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-shadow: 0 0 18px currentColor;
  font-size: 13px;
  text-transform: uppercase;
  padding-bottom: 8px;
  /* Space from name */
  position: relative;
}

.bet-panel .hdr .name {
  font-weight: 800;
}

.bet-panel .hdr .mult {
  font-weight: 800;
  color: #ffffff;
}

.bet-panel .body {
  display: grid;
  gap: 6px;
  text-align: left;
}

.bet-panel .mono {
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace
}

.bet-panel .stocks-scroll {
  display: flex;
  flex-direction: column;
  gap: 0px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 2px;
}

.bet-panel .stocks-scroll::-webkit-scrollbar {
  width: 4px
}

.bet-panel .stocks-scroll::-webkit-scrollbar-track {
  background: #10182c
}

.bet-panel .stocks-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a78ff, #9a66ff);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12)
}

.bet-panel .stock-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px;
  border-radius: 999px;
  /* background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2)); */
  /* border: 1px solid rgba(255, 255, 255, .12); */
  font-size: 11px;
}

.bet-panel .stock-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.bet-panel .stock-price {
  flex: 0 0 auto;
  min-width: 5ch;
  text-align: center;
  font-size: 11px;
  opacity: .9;
  color: #ffffff;
}

.bet-panel .stock-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.bet-panel .stock-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bet-panel .stock-arrow {
  width: 13px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.bet-panel .stock-delta {
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 11px;
}

.bet-panel .stock-delta.pos {
  color: var(--positive)
}

.bet-panel .stock-delta.neg {
  color: var(--negative)
}

.bet-panel .chip-badge {
  position: absolute;
  top: -15px;
  right: -5px;
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-image: url('./betting-chip.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: auto;
}

.bet-panel .chip-badge.visible {
  display: flex;
}

.chip-badge__amt {
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  color: #ffffff;
}

.bet-panel.cat-golden {
  border: 1px solid #ffc857;
  color: #fff;
  background: linear-gradient(341.3deg, rgba(141, 96, 24, 0.273) 1.58%, rgba(255, 162, 0, 0.56) 97.92%);
}

.bet-panel.cat-purple {
  border: 1px solid #ca66ff;
  color: #fff;
  background: linear-gradient(341.3deg, rgba(94, 4, 179, 0.28) 1.58%, rgba(132, 0, 183, 0.7) 97.92%);
}

.bet-panel.cat-blue {
  border: 1px solid #0076FF;
  color: #fff;
  background: linear-gradient(341.3deg, rgba(1, 103, 182, 0.273) 1.58%, rgba(0, 129, 229, 0.7) 97.92%);
}

.bet-panel.cat-green {
  border: 1px solid #0ED700;
  color: #fff;
  background: linear-gradient(341.3deg, rgba(0, 163, 10, 0.273) 1.58%, rgba(0, 164, 10, 0.7) 97.92%);
}

.bet-panel.cat-red {
  background: linear-gradient(341.3deg, rgba(209, 2, 20, 0.273) 1.58%, rgba(239, 0, 20, 0.7) 97.92%);
  color: #fff;
  border: 1px solid #FF0909;
}

/* Shared border settings for width control */
.bet-panel .hdr::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  /* Adjust this percentage to control the width */
  height: 1px;
}

.bet-panel.cat-golden .hdr::after {
  background: #FFC857;
}

.bet-panel.cat-purple .hdr::after {
  background: #CD71FF;
}

.bet-panel.cat-blue .hdr::after {
  background: #278BFF;
}

.bet-panel.cat-green .hdr::after {
  background: #0FE600;
}

.bet-panel.cat-red .hdr::after {
  background: #FF0000;
}

/* Blinking animation for winning category */
@keyframes blink-glow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

.bet-panel.blinking {
  animation: blink-glow 0.6s ease-in-out infinite;
}

/* Result category pills */
.pill.red {
  color: #ff7a7a;
  border-color: #ff7a7a
}

.pill.green {
  color: #66e28e;
  border-color: #66e28e
}

.pill.blue {
  color: #6ab7ff;
  border-color: #6ab7ff
}

.pill.purple {
  color: #e3a2ff;
  border-color: #e3a2ff
}

.pill.golden {
  color: #ffd95a;
  border-color: #ffd95a
}

/* Right rail */
.rail {
  position: relative;
  padding: 0 8px 0 8px;
  overflow: visible
}

/* Make the right panel fill the available viewport height below the header */
.rail-sticky {
  position: sticky;
  top: var(--hdr-offset, 72px);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: calc(100dvh - var(--hdr-offset, 45px) - 2px)
}

.tabs,
.subtabs {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  font-weight: 600
}

.tabs {
  border: 2px solid var(--accent);
  background: var(--panel);
  margin-bottom: 10px
}

.subtabs {
  margin: 0 0 10px 0;
  border: 2px solid var(--accent);
  background: var(--panel);
  --subtab-h: 44px;
  min-height: var(--subtab-h);
  max-width: 100%
}

.subtabs[hidden] {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0
}

.tabs button,
.subtabs button {
  background: var(--panel);
  color: var(--text);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: background .18s ease, color .18s ease, box-shadow .22s ease, transform .18s ease;
  font-weight: 600
}

.tabs button {
  flex: 1;
  padding: 10px 12px
}

.subtabs button {
  flex: 1;
  padding: 8px 10px
}

.tabs button:first-child,
.subtabs button:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px
}

.tabs button:last-child,
.subtabs button:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px
}

.tabs button:hover,
.subtabs button:hover {
  background: #1b2742;
  transform: translateY(-1px)
}

.tabs button:active,
.subtabs button:active {
  transform: translateY(0) scale(.995)
}

.tabs button:focus,
.subtabs button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.tabs button::after,
.subtabs button::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--subaccent) 100%);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease
}

.tabs button[aria-selected="true"],
.subtabs button[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(0, 116, 255, .18) 0%, rgba(175, 113, 255, .18) 100%);
  font-weight: 600;
  box-shadow: 0 0 18px rgba(10, 162, 255, .25), inset 0 0 10px rgba(0, 116, 255, .35);
  z-index: 2;
  border-left: 0
}

.tabs button[aria-selected="true"]::before,
.subtabs button[aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--subaccent) 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: blur(.5px)
}

.tabs button[aria-selected="true"]::after,
.subtabs button[aria-selected="true"]::after {
  transform: scaleX(1);
  opacity: 1;
  left: 0;
  right: 0;
  bottom: 0
}

.tabs button+button,
.subtabs button+button {
  border-left: 1px solid rgba(255, 255, 255, .12)
}

@media (prefers-reduced-motion: reduce) {

  .tabs button,
  .subtabs button {
    transition: none
  }

  .tabs button::after,
  .subtabs button::after {
    transition: none
  }
}

.panel {
  margin-top: 0;
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(36, 170, 255, .45) inset, inset 0 8px 12px -10px rgba(0, 0, 0, .6), inset 0 -8px 12px -10px rgba(0, 0, 0, .6), inset 0 0 8px rgba(0, 92, 164, 1);
  flex: 1;
  min-height: 0;
  will-change: transform;
  scrollbar-gutter: stable both-edges;
  display: flex;
  flex-direction: column
}

/* Make subpanel a flex container and list the scrollable child */
.panel>#subpanel {
  display: flex;
  flex-direction: column;
  min-height: 0
}

.panel .list {
  flex: 1;
  overflow: auto
}

/* Custom thin blue scrollbar (apply to inner scrolling list) */
.panel,
.panel .list {
  scrollbar-width: thin;
  scrollbar-color: #2a78ff #1a2340
}

.panel::-webkit-scrollbar,
.panel .list::-webkit-scrollbar {
  width: 6px
}

.panel::-webkit-scrollbar-track,
.panel .list::-webkit-scrollbar-track {
  background: #10182c
}

.panel::-webkit-scrollbar-thumb,
.panel .list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a78ff, #9a66ff);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12)
}

.panel::-webkit-scrollbar-thumb:hover,
.panel .list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4990ff, #b480ff)
}

.list {
  display: grid;
  gap: 8px;
  padding: 10px
}

.card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
  font-weight: 400
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015))
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.mono {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums
}

.pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px
}

.pill.win {
  color: var(--positive);
  border-color: var(--positive)
}

.pill.lose {
  color: var(--negative);
  border-color: var(--negative)
}

.pill.open {
  color: #a6d4ff;
  border-color: var(--accent-soft)
}

.pill.void {
  color: #aab3c2;
  border-color: rgba(255, 255, 255, .18)
}

.pill.heads {
  color: #9ed5ff;
  border-color: var(--accent-soft)
}

.pill.tails {
  color: #e3d0ff;
  border-color: rgba(175, 113, 255, .6)
}

.row .rgt {
  display: flex;
  align-items: center;
  gap: 8px
}

.mono.payout {
  color: var(--positive)
}

/* Tab and subtab count badges */
.count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0d2a57;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  line-height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  font-weight: 500
}

.count[data-empty="true"] {
  opacity: .55
}

/* Empty state inside lists */
.empty {
  padding: 18px 14px;
  text-align: center;
  color: var(--muted);
  /* border: 1px dashed rgba(255, 255, 255, .12); */
  border-radius: 10px
}

/* Bottom bar */
.bbar {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: #004DA9;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 116, 255, .35)
}

.bbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: center
}

.home-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: #182233;
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  cursor: pointer
}

.home-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.home-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  z-index: 30;
  width: min(720px, 92vw);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5)
}

.home-panel[hidden] {
  display: none
}

/* Loading overlay */
.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b0f14;
  z-index: 100
}

.loading .box {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center
}

.loading .logo {
  width: 96px;
  height: 96px;
  background: radial-gradient(circle at 30% 30%, #1bb0ff, #0877c8);
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(10, 162, 255, .6))
}

.loading .pct {
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace;
  color: #d7e8ff
}

/* Responsive stacking */
@media (max-width:1199px) {
  .rail-sticky {
    position: static;
    height: auto
  }

  /* Fixed mobile panel height with contained scroll */
  .panel {
    min-height: min(55vh, 520px);
    height: min(55vh, 520px);
    max-height: min(55vh, 520px)
  }

  /* Keep subtab bar space but pull panel up to fill it when aria-hidden=true */
  .subtabs[aria-hidden="true"] {
    visibility: hidden;
    display: flex;
    height: var(--subtab-h);
    margin: 0 0 10px 0;
    border: 0
  }

  .subtabs[aria-hidden="true"]+.panel {
    margin-top: calc(-1 * (var(--subtab-h) + 10px));
    /* Expand panel height only for Last Game Results (when subtabs are aria-hidden) */
    min-height: calc(min(55vh, 520px) + var(--subtab-h) + 10px);
    height: calc(min(55vh, 520px) + var(--subtab-h) + 10px);
    max-height: calc(min(55vh, 520px) + var(--subtab-h) + 10px);
  }
}

@media (max-width:749px) {
  .main {
    padding: 12px 2px;
  }

  /* Center preset bet chips on mobile */
  .chips {
    justify-content: center
  }

  /* Place bet input and total bet side-by-side on mobile */
  .bet-row {
    grid-template-columns: auto auto;
    justify-content: center;
    grid-template-areas: "chips chips" "betinput totalbet"
  }

  /* Prevent chip row from pushing layout wider than viewport */
  .chips {
    max-width: 100%;
    overflow: hidden
  }

  .chips .chip {
    flex: 0 0 auto
  }

  .chips-host {
    display: contents
  }

  .chips {
    grid-area: chips;
    width: 100%
  }

  .bet-input {
    grid-area: betinput
  }

  .total-bet {
    grid-area: totalbet
  }

  /* Let the two middle items size to content and center */
  .bet-row>* {
    width: auto;
    max-width: none;
    justify-self: center
  }
}

/* Ensure bet controls wrapper doesn't add extra layout; it just groups controls */
.bet-controls {
  display: contents
}

/* Sections container */
.sections-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0px 3px;
  height: 100%;
  overflow-y: auto;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 116, 255, .2);
}

/* Adjusted Section Heights - Reduced */
.section:first-child {
  flex: 1;
  min-height: 20vh;
  max-height: 25vh;
}

.section:last-child {
  flex: 1;
  min-height: 35vh;
  max-height: 40vh;
}

/* Container for Chips + Input in Rail */
.bet-controls-rail {
  background: #313f3d;
  border: 1px solid rgba(0, 116, 255, .2);
  border-radius: 8px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  /* Prevent this from squishing */
}

/* Rail Chips styling */
.rail-chips {
  width: 100%;
}

.rail-chips .chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 100%;
  justify-items: center;
}

.rail-chips .chip-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rail-chips .chip {
  width: 54px;
  /* Increased from 42px for better visibility */
  height: 54px;
  font-size: 0;
  /* Hide any fallback text */
}

/* Ensure bet input items stack well in rail */
.bet-controls-rail .bet-input {
  width: 50%;
  display: flex;
  justify-content: space-between;
  padding: 4px 0px;
  height: 40px;
}

.bet-controls-rail .bet-actions {
  width: 100%;
}

.bet-controls-rail .bet-actions button {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  height: 44px;
  background: linear-gradient(180deg, #0a8b39, #08702e);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 0 #03491c;
  border-radius: 20px;
}

.bet-controls-rail .bet-actions button:active {
  box-shadow: 0 1px 0 #03491c;
  transform: translateY(3px);
}

.section-header {
  padding: 8px 12px;
  background: linear-gradient(90deg, #366D51 0%, #366D51 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.section-content {
  flex: 1;
  background: linear-gradient(95.47deg, rgba(50, 66, 65, 0.8) 5.8%, rgba(25, 23, 18, 0.8) 97.51%);
  /* background: linear-gradient(95.47deg, rgba(50, 66, 65, 0.8) 5.8%, rgba(25, 23, 18, 0.8) 97.51%); */
  border: 1px solid;
  border-image-source: linear-gradient(127.38deg, #598F88 17.23%, #007E59 91.73%);
  overflow-y: auto;
  padding: 8px;
  backdrop-filter: blur(23.200000762939453px)
}

/* Table styles for Current Bets and Last Results */
.table-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.bets-data,
.results-data {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.table-header {
  display: grid;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-weight: 500;
  font-size: 12px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  color: #a3d1ff;
}

/* 2-column layout for Current Bets */
.bets-table .table-header {
  grid-template-columns: 1fr 1fr;
}

/* 4-column layout for Last Results */
.results-table .table-header {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.table-row {
  display: grid;
  gap: 12px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(90.33deg, rgba(175, 2, 45, 0.85) 1.64%, rgba(84, 0, 6, 0.85) 115.74%);
  transition: background .18s ease;
  margin-bottom: 6px;
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px #00000040;
}

/* 2-column layout for Current Bets rows */
.bets-table .table-row {
  grid-template-columns: 1fr 1fr;
}

/* 4-column layout for Last Results rows */
.results-table .table-row {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.table-cell.mono {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Wheel Result Display */
.wheel-result {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.95) 0%, rgba(175, 113, 255, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 116, 255, 0.4);
  backdrop-filter: blur(10px);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.result-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.result-stock {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.result-degree {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Roboto Mono", ui-monospace, monospace;
}

/* SVG Wheel Text Styling */
.wheel-text {
  fill: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  pointer-events: none;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* SVG Wheel Text Styling */
/* HTML Wheel Styles */
.wheel-label-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 50%;
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 5;
  display: flex;
  justify-content: center;
}

.wheel-label-text {
  position: absolute;
  top: 55%;
  writing-mode: vertical-rl;
  text-orientation: upright;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  writing-mode: horizontal-tb;
  transform: translateY(10px) rotate(90deg);
  transform-origin: center top;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.wheel-separator {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 215, 0, 0.9) 0%, rgba(255, 215, 0, 0.2) 100%);
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 4;
}

.wheel-peg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 50%;
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 6;
}

.wheel-peg::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ffd95a;
  box-shadow: 0 0 12px 4px rgba(255, 0, 0, 0.8);
}

/* Blinking effect for the winning wheel segment (Label Text) */
@keyframes winner-pulse {

  0%,
  100% {
    filter: brightness(1);
    transform: scale(1) rotate(180deg);
  }

  50% {
    filter: brightness(1.5) drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    transform: scale(1.15) rotate(180deg);
  }
}

.wheel-label-container.blink-segment .wheel-label-text {
  animation: winner-pulse 0.8s ease-in-out infinite;
  color: #fff;
}

/* Winner Modal Styles */
.winner-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.winner-modal.show {
  opacity: 1;
}

/* Balance Display - Header Style */
/* Balance Display - Header Style */
.top-balance {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: auto;
  margin-right: 8px;
  /* Add some spacing from hamburger */
}

.top-balance .bal-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 2px;
}

.top-balance .bal-value {
  font-size: 13px;
  /* Reduced from default/16px */
  color: #4ade80;
  /* Light green for money/theme */
  font-weight: 700;
  line-height: 1.2;
  font-family: "Roboto Mono", monospace;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.winner-modal-content {
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.95) 0%, rgba(0, 74, 173, 0.95) 100%);
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px 40px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 116, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
  min-width: 340px;
}

.winner-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  position: relative;
  padding-bottom: 8px;
}

.winner-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  /* Default fallback */
}

.winner-category {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.winner-stock {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

/* Category-based colors */
.winner-modal.cat-golden .winner-modal-content {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.95) 0%, rgba(212, 156, 10, 0.95) 100%);
  border-color: #ffd700;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.winner-modal.cat-golden .winner-title::after {
  background: #ffd700;
}

.winner-modal.cat-purple .winner-modal-content {
  background: linear-gradient(135deg, rgba(175, 113, 255, 0.95) 0%, rgba(132, 0, 183, 0.95) 100%);
  border-color: #cd71ff;
  box-shadow: 0 0 40px rgba(175, 113, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.winner-modal.cat-purple .winner-title::after {
  background: #cd71ff;
}

.winner-modal.cat-blue .winner-modal-content {
  background: linear-gradient(135deg, rgba(0, 116, 255, 0.95) 0%, rgba(0, 74, 173, 0.95) 100%);
  border-color: #0076ff;
  box-shadow: 0 0 40px rgba(0, 116, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.winner-modal.cat-blue .winner-title::after {
  background: #0076ff;
}

.winner-modal.cat-green .winner-modal-content {
  background: linear-gradient(135deg, rgba(14, 215, 0, 0.95) 0%, rgba(0, 163, 10, 0.95) 100%);
  border-color: #0ed700;
  box-shadow: 0 0 40px rgba(14, 215, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.winner-modal.cat-green .winner-title::after {
  background: #0ed700;
}

.winner-modal.cat-red .winner-modal-content {
  background: linear-gradient(135deg, rgba(255, 9, 9, 0.95) 0%, rgba(209, 2, 20, 0.95) 100%);
  border-color: #ff0909;
  box-shadow: 0 0 40px rgba(255, 9, 9, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.winner-modal.cat-red .winner-title::after {
  background: #ff0909;
}

/* DRAW - neutral gray/gold gradient */
.winner-modal.cat-draw .winner-modal-content {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.95) 0%, rgba(60, 60, 60, 0.95) 100%);
  border-color: #b8860b;
  box-shadow: 0 0 40px rgba(184, 134, 11, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.15);
}

.winner-modal.cat-draw .winner-title::after {
  background: #b8860b;
}

/* Responsive */
@media (max-width: 749px) {
  .winner-modal-content {
    min-width: 240px;
    padding: 16px 32px;
  }

  .winner-title {
    font-size: 16px;
  }

  .winner-category {
    font-size: 24px;
  }

  .winner-stock {
    font-size: 14px;
  }
}

/* Table row category colors */
.row-red {
  background: #d01717 !important;
  border-left: 3px solid #d01717 !important;
}

.row-green {
  background: #0ba133 !important;
  border-left: 3px solid #0ba133 !important;
}

.row-blue {
  background: #0a7aff !important;
  border-left: 3px solid #0a7aff !important;
}

.row-purple {
  background: #6c2784 !important;
  border-left: 3px solid #6c2784 !important;
}

.row-golden {
  background: #e09a0d !important;
  border-left: 3px solid #e09a0d !important;
}

.row-draw {
  background: #4a4a4a !important;
  border-left: 3px solid #b8860b !important;
}

/* Ensure table cells have some padding regarding the border */
.table-row {
  border-left: 3px solid transparent;
  /* placeholder for transition */
  transition: background-color 0.2s ease, border-color 0.2s ease;
}


/* Result Popup Overlay */
.result-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  /* overridden by JS toggle */
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Result Popup Modal */
.result-popup {
  background: linear-gradient(299.61deg, rgba(1, 14, 2, 1) -20.13%, rgba(48, 63, 61, 1) 100.88%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 500px;
  max-width: 90%;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.result-popup.mixed {
  position: relative;
  background: linear-gradient(299.61deg, rgba(1, 14, 2, 1) -20.13%, rgba(48, 63, 61, 1) 100.88%) padding-box,
    linear-gradient(180deg, #0FDB00 0%, #FF0909 100%) border-box;
  border: 2px solid transparent;
  box-shadow: 0px 0px 35.1px 0px rgba(6, 92, 0, 1);
  backdrop-filter: blur(30px);
  border-radius: 12px;
}

.result-popup.win {
  border: 2px solid rgba(15, 219, 0, 1);
  box-shadow: 0px 0px 35.1px 0px rgba(6, 92, 0, 1);
  backdrop-filter: blur(30px);
}

.result-popup.loss {
  border: 2px solid rgba(255, 0, 0, 1);
  box-shadow: 0px 0px 35.1px 0px rgba(171, 0, 0, 1);
  backdrop-filter: blur(30px);
}

/* Close Button */
.result-popup .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.result-popup .close-btn:hover {
  color: #fff;
}

/* Title */
.result-popup .popup-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-family: 'Russo One', sans-serif;
}

/* Table Header */
.result-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Table Row */
.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

/* Badges */
.band-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 60px;
}

.badge-blue {
  background: #0076ff;
  color: #fff;
}

.badge-red {
  background: #e82424;
  color: #fff;
}

.badge-green {
  background: #0db93b;
  color: #fff;
}

.badge-purple {
  background: #8e44ad;
  color: #fff;
}

.badge-golden {
  background: #ffd700;
  color: #000;
}

/* Result Text */
.col-result.text-win {
  color: #0db93b;
  /* Green */
  font-weight: 700;
}

.col-result.text-loss {
  color: rgba(255, 255, 255, 0.4);
}

.profit-arrow {
  font-size: 10px;
  vertical-align: middle;
}

/* Net Result Button */
.net-result-container {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.net-result-box {
  background: rgba(13, 185, 59, 0.1);
  border: 1px solid #0db93b;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(13, 185, 59, 0.2);
  min-width: 200px;
  text-align: center;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  color: rgba(215, 255, 212, 1);
  text-shadow: 0px 0px 10.4px rgba(46, 183, 36, 1);
}

.net-result-box.win {
  border: 2px solid rgba(15, 219, 0, 1);
  box-shadow: 0px 0px 35.1px 0px rgba(6, 92, 0, 1);
  backdrop-filter: blur(30px);
  background: rgba(15, 219, 0, 0.15);
  /* Slight tint for win */
  color: rgba(215, 255, 212, 1);
  text-shadow: 0px 0px 10.4px rgba(46, 183, 36, 1);
}

.net-result-box.loss {
  border: 2px solid rgba(255, 0, 0, 1);
  box-shadow: 0px 0px 35.1px 0px rgba(171, 0, 0, 1);
  backdrop-filter: blur(30px);
  background: rgba(255, 0, 0, 0.15);
  /* Slight tint for loss */
  color: rgba(255, 233, 233, 1);
  text-shadow: 0px 0px 10.4px rgba(255, 0, 0, 1);
}

.net-result-box.mixed {
  background: rgba(13, 185, 59, 0.1);
  border: 1px solid #0db93b;
  box-shadow: 0 0 10px rgba(13, 185, 59, 0.2);
  color: rgba(215, 255, 212, 1);
  text-shadow: 0px 0px 10.4px rgba(46, 183, 36, 1);
}

/* Highlight for global max delta stock */
.show-highlights .stock-row.highlight-max-global {
  background: rgba(0, 115, 255, 0.875);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 115, 255, 0.875);
}

/* Closing potential open block */

/* --- DASHBOARD REFACTOR --- */

.main {
  display: block !important;
  grid-template-columns: none !important;
  height: 100vh;
  width: 100vw;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(to top, #000000 0%, transparent 50%), radial-gradient(56.75% 98.88% at 50% 56.38%, #25221b82 39%, #0a0c0a40 100%);
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 8px;
}

/* TOP SECTION */
.dashboard-top {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.wheel-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.wheel-section .stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.wheel-section .stage .lady {
  max-height: 85%;
  width: auto;
  margin: 0;
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
}

.wheel-section .stage .table {
  max-height: 40%;
  width: auto;
  margin: 0;
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
}

.wheel-section .stage .stage-stack {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  height: 100%;
  justify-content: center;
}

/* Info Section (Right Panel) */
.info-section {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-section .rail-content {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* BOTTOM SECTION */
.dashboard-bottom {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px;
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  align-items: stretch;
}

.betting-cards-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bet-panels-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.bet-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 100px;
  height: 100%;
}

/* Controls (Chips/Input) */
.controls-section {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  /* background: rgba(0, 0, 0, 0.2); */
  border-radius: 12px;
  padding: 12px;
}

.controls-section .rail-chips .chips {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  justify-content: center;
}

.chip {
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.controls-section .bet-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* --- NEW BET INPUT & TOTAL UI --- */

  /* Wrapper */
  .bet-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* 1. Input Box */
  .bet-input-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Dark oval shape */
    background: rgba(10, 20, 30, 0.6);
    border: 1px solid #7FFFD4;
    /* Aquamarine/Cyan */
    border-radius: 18px;
    padding: 4px 24px;
    height: 45px;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.1), inset 0 0 10px rgba(127, 255, 212, 0.05);
  }

  .bet-input-box .currency-symbol {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: "Roboto Mono", monospace;
    margin-right: -4px;
    padding-left: 8px;
  }

  .bet-input-box input.bet-amt {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: "Roboto Mono", monospace;
    letter-spacing: -1px;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    min-width: 0;
  }

  .bet-input-box input.bet-amt::-webkit-outer-spin-button,
  .bet-input-box input.bet-amt::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
  }

  .bet-input-box input.bet-amt[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
  }

  /* Spinner Arrows */
  .bet-input-box .spinners {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    margin-left: 10px;
  }

  .bet-input-box button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 0;
    height: 0;
    cursor: pointer;
    transition: transform 0.1s;
  }

  .bet-input-box .inc {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #7FFFD4;
    /* Up arrow tint */
  }

  .bet-input-box .dec {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #7FFFD4;
    /* Down arrow tint */
  }

  .bet-input-box button:active {
    transform: scale(0.8);
  }

  .bet-input-box button:hover {
    filter: drop-shadow(0 0 4px #7FFFD4);
  }


  /* 2. Total Bet Box */
  .total-bet-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #324241;
    border: 1px solid #5DA69A;
    border-radius: 12px;
    /* Rounded rect */
    padding: 5px 24px;
    height: 50px;
    box-shadow: 0px 0px 5.7px 0px #5DA69A;
  }

  .total-bet-box .label {
    font-size: 16px;
    font-weight: 800;
    color: #5effb1;
    /* Bright Green-Cyan */
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .total-bet-box .amt {
    font-size: 24px;
    font-weight: 700;
    color: #5effb1;
    font-family: "Roboto Mono", monospace;
  }
}

.controls-section .bet-input {
  width: 100%;
}

.controls-section .total-bet {
  width: 100%;
  justify-content: space-between;
}

/* Hide old elements */
.left,
.rail-host {
  display: none !important;
}

/* --- Hamburger Menu & History Modal Styles --- */

/* Hamburger Menu */
.rail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 4px;
}

.hamburger-wrapper {
  position: relative;
}

.hamburger-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.hamburger-btn:hover {
  color: #fff;
}

.hamburger-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 32px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px;
  min-width: 150px;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.hamburger-dropdown.open {
  display: block;
}

.hamburger-item {
  background: transparent;
  border: none;
  color: #e2e8f0;
  width: 100%;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.1s;
}

.hamburger-item:hover {
  background: #1e293b;
}

/* Default state: Mobile menu hidden */
.mobile-menu-host {
  display: none;
}

/* History Modal */
.history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.history-overlay.visible {
  display: flex;
}

.history-modal {
  background: linear-gradient(0deg, rgba(31, 41, 41, 0.95) 0%, rgba(43, 70, 67, 0.95) 90.29%);
  width: 90%;
  max-width: 65%;
  /* Increased from 900px */
  height: 80vh;
  border-radius: 12px;
  border: 2px solid #5DA69A;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.history-modal-header {
  padding: 16px 24px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(93, 166, 154, 0.3);
  flex-shrink: 0;
}

.history-modal-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.history-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.history-close-btn:hover {
  opacity: 1;
}

.history-table-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px 16px;
  position: relative;
}

.history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  text-align: left;
  color: #fff;
  font-size: 14px;
  table-layout: auto;
}

.history-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.history-table th {
  background: #366D51;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 8px;
  border: none;
  white-space: nowrap;
}

.history-table th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding-left: 16px;
  /* Keep left visual buffer */
}

.history-table th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.history-table td {
  padding: 12px 8px;
  white-space: nowrap;
}

.history-table td:first-child {
  padding-left: 16px;
}

/* Category Badges */
.cat-badge {
  display: inline-block;
  padding: 4px 0;
  border-radius: 16px;
  font-weight: 600;
  font-size: 12px;
  color: white;
  width: 90px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cat-badge.red {
  background: #ef4444;
}

.cat-badge.green {
  background: #22c55e;
}

.cat-badge.blue {
  background: #3b82f6;
}

.cat-badge.purple {
  background: #a855f7;
}

.cat-badge.golden {
  background: #eab308;
}

@media (max-width: 1024px) {

  .main {
    height: auto !important;
    overflow-y: auto !important;
    min-height: 100vh;
    padding-bottom: 40px;
    background-attachment: fixed;
    /* Keep bg nice */
  }

  .dashboard-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    height: auto !important;
    overflow: visible;
  }

  /* Compact Top Row for Mobile */
  .status-badge {
    padding: 2px 10px;
    gap: 6px;
  }

  /* Ensure Hamburger is visible and on top */
  .header-right {
    z-index: 10;
    position: relative;
  }

  .header-right .hamburger-wrapper,
  .header-right .hamburger-btn {
    display: block !important;
    color: #fff;
    /* Ensure icon is white */
  }

  /* Show mobile menu, Hide dashboard panel menu */
  .mobile-menu-host {
    display: block !important;
  }

  .section-header .hamburger-wrapper {
    display: none !important;
  }

  /* Unwrap the sections to allow reordering children globally */
  .dashboard-top,
  .dashboard-bottom {
    display: contents !important;
  }

  /* 1 & 2: Wheel Section (Contains TopRow + Wheel) */
  .wheel-section {
    order: 1;
    width: 100%;
    height: 45vh;
    min-height: 350px;
    flex: none !important;
    margin-bottom: 8px;
  }

  /* 3: Bet Panels */
  .betting-cards-section {
    order: 2;
    width: 100%;
    flex: none !important;
    overflow-x: visible;
    /* Or auto if we want scroll */
  }

  .bet-panels-grid {
    flex-wrap: wrap;
    height: auto !important;
    gap: 8px;
  }

  .bet-panel {
    min-width: 45%;
    flex: 1 1 45%;
    max-width: 48%;
    height: auto !important;
    min-height: auto;
  }

  /* 4: Controls (Chips + Input) */
  .controls-section {
    order: 3;
    width: 100% !important;
    margin-top: 8px;
    flex: none !important;
  }

  .controls-section .rail-chips .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    grid-template-columns: none;
  }

  /* 5: Info Section (History/Bets) - Last */
  .info-section {
    order: 4;
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
    flex: none !important;
    margin-top: 16px;
  }

  .info-section .rail-content {
    height: 100%;
  }

  /* Adjust modal */
  .history-modal {
    width: 95%;
    height: 70vh;
    max-width: 95%;
  }
}

/* History Table Expandable Rows */
.history-row-active {
  background: rgba(255, 255, 255, 0.05);
}

.history-expand-cell {
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.history-expand-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s;
}

.history-expand-cell.open .history-expand-btn {
  transform: rotate(180deg);
}

.history-details-row {
  display: none;
  background: rgba(0, 0, 0, 0.2);
}

.history-details-row.visible {
  display: table-row;
}

.history-details-content {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #d1d5db;
}

.details-table th {
  text-align: left;
  padding: 8px;
  color: #9ca3af;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.details-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.details-table tr:last-child td {
  border-bottom: none;
}

/* Mini dots for Color Betted column */
.color-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.color-dot.red {
  background: #ef4444;
}

.color-dot.green {
  background: #22c55e;
}

.color-dot.blue {
  background: #3b82f6;
}

.color-dot.purple {
  background: #a855f7;
}

.color-dot.golden {
  background: #eab308;
}

/* History Button Styling */
.history-details-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.history-details-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.history-details-btn .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

/* Rotate arrow when open */
.history-expand-cell.open .history-details-btn .arrow {
  transform: rotate(180deg);
}

/* Container for badges in the main row */
.color-badges-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0px;
  margin: 0;
}

/* Compact Game History Modal */
.game-history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.game-history-modal {
  width: 100%;
  max-width: 600px;
  height: 600px;
  max-height: 90vh;
  background: linear-gradient(180deg, #1e332f 0%, #152220 100%);
  border: 1px solid #4a7c6f;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.how-to-play-modal {
  height: auto;
  min-height: auto;
}

.history-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #366D51;
  border-bottom: 1px solid #4a7c6f;
  flex-shrink: 0;
}

.history-modal-title {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.history-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.history-modal-close:hover {
  color: #fff;
}

.history-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 12px 24px;
  background: rgba(54, 109, 81, 0.3);
  border-bottom: 1px solid rgba(74, 124, 111, 0.3);
  font-size: 16px;
  font-weight: 700;
  color: #a7dabe;
  text-transform: uppercase;
  text-align: center;
}

.history-table-container {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.history-table-container::-webkit-scrollbar {
  width: 6px;
}

.history-table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.history-table-container::-webkit-scrollbar-thumb {
  background: #366D51;
  border-radius: 3px;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  transition: background 0.2s;
}

.history-row:last-child {
  border-bottom: none;
}

.history-row.row-even {
  background: rgba(255, 255, 255, 0.02);
}

.history-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.col-date,
.col-time {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #e0e0e0;
  text-align: center;
}

.col-winner {
  display: flex;
  justify-content: center;
}

.winner-pill {
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-width: 80px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pill-red {
  background: #910024;
  box-shadow: 0 2px 4px rgba(183, 28, 28, 0.4);
}

.pill-green {
  /* background: linear-gradient(90deg, #2e7d32 0%, #1b5e20 100%); */
  box-shadow: 0 2px 4px rgba(27, 94, 32, 0.4);
}

.pill-blue {
  background: #0A57B4;
  box-shadow: 0 2px 4px rgba(13, 71, 161, 0.4);
}

.pill-purple {
  /* background: linear-gradient(90deg, #9c27b0 0%, #7b1fa2 100%); */
  box-shadow: 0 2px 4px rgba(123, 31, 162, 0.4);
}

.pill-yellow {
  /* background: linear-gradient(90deg, #fbc02d 0%, #f57f17 100%); */
  box-shadow: 0 2px 4px rgba(245, 127, 23, 0.4);
  color: #fff;
}

.pill-gray {
  background: #757575;
}

.pill-draw {
  background: linear-gradient(90deg, #b8860b 0%, #c8980a 100%);
  box-shadow: 0 2px 4px rgba(184, 134, 11, 0.5);
  color: #fff;
}

.history-empty {
  padding: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* How to Play Modal Specifics */
.how-to-play-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f1917;
  border: 1px solid #4a7c6f;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}


/* --- NEW HEADER BAR STYLES --- */
.app-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  /* Left auto, center takes space, right auto */
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 64px;
  /* Further reduced */
  background: #2857ADBF;
  padding: 4px 16px;
  /* Tighter padding */
  box-sizing: border-box;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  max-width: 120px;
}

/* LIVE Badge */
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #d32f2f;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.header-center {
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.header-right-top {
  display: flex;
  /* was contents, now flex to respect inner layout */
  align-items: center;
  gap: 12px;
}

.mobile-only {
  display: none !important;
}

/* Mobile Header Redesign */
@media (max-width: 768px) {
  .app-header {
    background: #2857ADBF;
    height: auto;
    min-height: 60px;
    padding: 8px 12px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .header-left {
    flex: 1;
  }

  .header-title {
    max-width: 100px;
    font-size: 14px;
  }

  .header-center {
    transform: scale(0.9);
  }

  /* Right side stacking: TopRow (Live+Hamburger), Bottom (Balance) */
  .header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
  }

  .header-right-top {
    display: flex;
    align-items: center;
    gap: 12px;
  }



}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .app-header {
    padding: 4px 8px;
    height: auto;
    min-height: 60px;
    /* Ensure existing overriding flex/absolute is GONE */
  }

  /* Left Section */
  .header-left {
    position: static;
    transform: none;
    max-width: 100%;
    margin-right: 4px;
    /* Space from center */
  }

  .header-text-group {
    gap: 4px;
  }

  .header-title {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    /* removed fixed widths */
  }

  /* Center Section - Scale down to fit narrow screens */
  .header-center {
    position: static;
    transform: none;
    /* Reset absolute positioning */
    display: flex;
    justify-content: center;
    /* If pill is too wide, we can scale it */
    transform: scale(0.9);
    transform-origin: center;
  }

  /* Right Section */
  .header-right {
    position: static;
    transform: none;
    margin-top: 0;
    gap: 2px;
  }

  .header-right-top {
    gap: 6px;
    /* Tighter than desktop 12px */
  }

  /* Element Sizing Tweaks */
  .header-balance-text {
    font-size: 10px;
    margin-top: 1px;
  }

  .live-badge {
    padding: 1px 6px;
    font-size: 10px;
  }

  .hamburger-btn {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .header-stat-box {
    width: 26px;
    height: 26px;
  }

  .header-stat-box img {
    width: 12px;
    height: 12px;
  }

  .info-circle {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

@media (max-width: 450px) {
  .header-title {
    font-size: 11px;
    /* Decrease font size for very small screens */
  }

  .wheel-scene {
    width: min(36vw, 360px);
  }

  .wheel-section {
    height: 26vh !important;
    min-height: 170px !important;
  }
}


@media (max-width: 410px) {
  .header-title {
    font-size: 9px;
    font-weight: 700;
  }

  .hamburger-btn {
    width: 22px;
    height: 22px;
    font-size: 14px;
    border-radius: 4px;
  }

  .live-badge {
    padding: 1px 3px;
    font-size: 8px;
    gap: 2px;
  }

  .live-dot {
    width: 4px;
    height: 4px;
  }

  .header-stat-box {
    width: 22px;
    height: 22px;
    border-radius: 4px;
  }

  .header-stat-box img {
    width: 9px;
    height: 9px;
  }

  .info-circle {
    width: 12px;
    height: 12px;
    font-size: 8px;
    border-width: 1px;
  }

  .header-right {
    gap: 1px;
  }

  .header-balance-text {
    font-size: 8px;
    margin-top: 1px;
  }

  .header-right-top {
    gap: 4px;
  }
}

@media (max-width: 370px) {
  .header-title {
    font-size: 8px;
  }

  .header-balance-text {
    font-size: 7px;
  }

  .hamburger-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  .live-badge {
    padding: 1px 2px;
    font-size: 7px;
  }

  .live-dot {
    width: 3px;
    height: 3px;
  }

  .header-stat-box {
    width: 20px;
    height: 20px;
  }

  .header-stat-box img {
    width: 8px;
    height: 8px;
  }

  .info-circle {
    width: 10px;
    height: 10px;
    font-size: 7px;
  }
}


/* Game Rules Responsive Overrides */
@media (max-width: 600px) {
  .game-rules-header {
    font-weight: 400 !important;
    font-size: 14px !important;
  }

  .game-rules-text {
    font-size: 13px !important;
  }

  .game-rules-number {
    font-size: 13px !important;
  }
}

/* --- Mobile Breakpoint 486px Layout Update --- */
@media (max-width: 486px) {

  /* Reduce main padding to allow content to closer to edges */
  .main {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Ensure My Bets / Last Round Winners go to edges */
  .info-section {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }


  /* Main Controls Container: Side-by-Side */
  .controls-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 4px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  /* Left Section: Chips Grid (2 rows x 3 columns) */
  .rail-chips {
    flex: 1 !important;
    /* Allow growing */
    width: 50% !important;
    /* Force 50% width */
    min-width: 0 !important;
    /* Allow shrinking if needed */
  }

  .chips {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 4px !important;
    justify-items: center !important;
    align-content: center !important;
    width: 100% !important;
    /* Fill the rail-chips */
  }

  /* Adjust chip styling for compact grid */
  .chip {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    font-size: 11px !important;
    margin: 0 !important;
    /* Remove any default margins matching flexible layout */
  }

  /* Ensure wrapper item doesn't distort */
  .chip-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
  }


  /* Right Section: Bet Controls */
  /* Structure: .bet-controls -> .bet-input-box (1st), .total-bet-box (2nd) */
  /* Desired Visual: Total Bet (Top), Input (Bottom) */
  .bet-controls {
    display: flex !important;
    flex-direction: column !important;
    /* Normal order: 1st (Input) top, 2nd (Total) bottom */
    align-items: stretch !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 1 !important;
    width: 50% !important;
    /* Force 50% width */
    min-width: 0 !important;
  }

  /* Styling for Controls Components */

  /* Total Bet Box */
  .total-bet-box {
    width: 100% !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #324241 !important;
    border: 1px solid #5DA69A !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    box-shadow: 0px 0px 4px 0px #5DA69A !important;
  }

  .total-bet-box .label {
    font-size: 11px !important;
    font-weight: 700;
    color: #5effb1;
    text-transform: uppercase;
  }

  .total-bet-box .amt {
    font-size: 14px !important;
    font-weight: 700;
    color: #5effb1;
    font-family: "Roboto Mono", monospace;
  }

  /* Bet Input Box - Matching Reference Implementation */
  .bet-input-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(10, 20, 30, 0.6) !important;
    border: 1px solid #7FFFD4 !important;
    border-radius: 18px !important;
    padding: 4px 24px !important;
    height: 45px !important;
    box-shadow: 0 0 10px rgba(127, 255, 212, 0.1), inset 0 0 10px rgba(127, 255, 212, 0.05) !important;
    width: 100% !important;
  }

  .bet-input-box .currency-symbol {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: "Roboto Mono", monospace !important;
    margin-right: -4px !important;
    padding-left: 8px !important;
  }

  .bet-input-box input.bet-amt {
    flex: 1 !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: "Roboto Mono", monospace !important;
    letter-spacing: -1px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .bet-input-box input.bet-amt::-webkit-outer-spin-button,
  .bet-input-box input.bet-amt::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
  }

  .bet-input-box input.bet-amt[type=number] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
  }

  /* Spinner Arrows */
  .bet-input-box .spinners {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    justify-content: center !important;
    margin-left: 10px !important;
  }

  .bet-input-box button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 0 !important;
    height: 0 !important;
    cursor: pointer !important;
    transition: transform 0.1s !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .bet-input-box .inc {
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 10px solid #7FFFD4 !important;
    border-top: none !important;
    /* Up arrow tint */
  }

  /* Remove conflicting pseudo-elements from previous circle implementation */
  .bet-input-box .inc::after,
  .bet-input-box .inc::before,
  .bet-input-box .dec::after,
  .bet-input-box .dec::before {
    display: none !important;
    content: none !important;
  }

  .bet-input-box .dec {
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 10px solid #7FFFD4 !important;
    border-bottom: none !important;
    /* Down arrow tint */
  }

  .bet-input-box button:active {
    transform: scale(0.8) !important;
  }
}

/* --- Mobile Breakpoint 400px Layout Update --- */
@media (max-width: 400px) {
  .chip {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  /* Reduce size of increment/decrement arrows */
  .bet-input-box .inc {
    border-left-width: 6px !important;
    border-right-width: 6px !important;
    border-bottom-width: 8px !important;
  }

  .bet-input-box .dec {
    border-left-width: 6px !important;
    border-right-width: 6px !important;
    border-top-width: 8px !important;
  }
}

/* --- Mobile Menu Modal New --- */
.menu-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10001;
  /* Higher than history modal overlays which might be 9999 or 10000 */
  display: flex;
  justify-content: end;
  /* align-items: center; */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-modal {
  width: 85%;
  max-width: 300px;
  /* Dark teal gradient background */
  background: linear-gradient(170deg, #2A4849 0%, #152022 100%);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(93, 166, 154, 1);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(93, 166, 154, 1);
}

.menu-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-user-avatar {
  width: 36px;
  height: 36px;
  background-color: #ddd;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.menu-username {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #f0f0f0;
}

.menu-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  opacity: 0.8;
}

.menu-close-btn:hover {
  opacity: 1;
}

.menu-list {
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 400;
  color: #e0e0e0;
  cursor: pointer;
}

.menu-item .menu-label {
  font-size: 17px;
}

.menu-item.clickable:active {
  opacity: 0.7;
}

.menu-separator {
  height: 1px;
  background: rgba(93, 166, 154, 1);
  width: 100%;
}

.menu-list .menu-separator:first-child {
  display: none;
}

/* Switch */
.menu-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.menu-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.menu-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #557;
  transition: .3s;
  border-radius: 26px;
}

.menu-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 0px;
  top: 0px;
  margin: auto 0;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

input:checked+.menu-slider {
  background-color: #81c784;
  /* Light green active */
}

input:checked+.menu-slider:before {
  transform: translateX(22px);
}

/* Footer */
.menu-footer {
  padding: 24px;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.menu-home-btn {
  width: 100%;
  padding: 14px;
  /* Green solid button */
  background: rgba(54, 109, 81, 1);
  border: 1px solid #559569;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

.menu-home-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Game History Cards --- */
.history-list-container {
  padding: 16px;
  overflow-y: auto;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  background: rgba(255, 255, 255, 0.03);
  /* Transparent dark background */
  border: 1px solid #4a7c59;
  /* Greenish/Teal border from screenshot */
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.history-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.history-date {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
}

.history-day {
  font-size: 14px;
  font-weight: 400;
  color: #ccc;
}

.bottom-row {
  background: rgba(42, 72, 73, 0.4);
  margin: -16px -16px -16px -16px;
  margin-top: 0;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  background: #2f564f;
}

.history-card {
  padding: 0;
  gap: 0;
}

.history-card .top-row {
  padding: 16px;
  margin: 0;
  border-bottom: none;
  background: transparent;
}

.history-card .bottom-row {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Separator? */
  background: #2e5349;
  /* Distinct Green background */
}

.history-label {
  font-size: 15px;
  color: #e0e0e0;
}

.winner-pill {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  min-width: 60px;
  text-align: center;
}

.pill-red {
  background-color: #910024;
}

.pill-green {
  background-color: #22c55e;
}

.pill-blue {
  background-color: #0A57B4;
}

.pill-purple {
  background-color: #a855f7;
}

.pill-yellow {
  background-color: #eab308;
  color: #fff;
}

/* Ensure modal size on mobile */
@media (max-width: 768px) {
  .game-history-modal {
    width: 90%;
    max-width: 350px;
    height: auto;
    max-height: 80vh;
    padding: 0;
    overflow: hidden;
  }

  .history-table-container {
    /* Hide legacy table view if it still exists via shared class */
  }
}

/* --- Mobile Bet History Cards (My Bets) --- */
.bet-history-card {
  background: rgba(40, 60, 55, 0.4);
  /* Darker internal card background */
  border: 1px solid #4a7c6f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
}

.bet-card-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-date {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.bet-day {
  font-size: 14px;
  color: #ccc;
}

.bet-card-body {
  padding: 16px;
  background: #25403a;
  /* Greenish background for body */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bet-info-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bet-info-group.right {
  justify-content: flex-end;
  min-width: 100px;
  /* Ensure alignment if needed */
}

.bet-label {
  font-size: 14px;
  color: #e0e0e0;
}

.bet-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Fix for squashed cards in flex container */
.bet-history-card {
  flex-shrink: 0;
  width: 100%;
}

.history-list-container {
  /* Ensure scrolling works */
  min-height: 200px;
}

/* --- Redesigned Result Popup --- */
/* --- Redesigned Result Popup (Neon) --- */
.result-popup {
  background: rgba(15, 20, 15, 0.95);
  border: 1px solid #22c55e;
  box-shadow: 0 0 0 1px #22c55e, 0 0 20px rgba(34, 197, 94, 0.2);
  border-radius: 24px;
  width: 90%;
  max-width: 380px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  backdrop-filter: blur(10px);
}

.result-popup.loss {
  background: rgba(20, 10, 10, 0.95);
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444, 0 0 20px rgba(239, 68, 68, 0.2);
}

.result-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  /* Cleaner font */
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
  /* Space for close button if needed */
}

.result-header {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #a0aec0;
  /* Muted text for header */
  text-transform: uppercase;
  align-items: center;
}

.result-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  align-items: center;
  /* Center vertically */
  margin-bottom: 16px;
  font-size: 14px;
}

.col-band {
  text-align: left;
}

/* Badge pills */
.band-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background: #333;
  color: white;
  font-size: 12px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

.band-badge.badge-golden {
  background: #EAB308;
  color: #000;
}

.band-badge.badge-purple {
  background: #A855F7;
}

.band-badge.badge-blue {
  background: #3B82F6;
}

.band-badge.badge-green {
  background: #22C55E;
  color: #000;
}

.band-badge.badge-red {
  background: #EF4444;
}


.col-bet {
  text-align: center;
  font-weight: 500;
  color: #fff;
  font-size: 15px;
}

.col-result {
  text-align: right;
  display: flex;
  justify-content: flex-end;
}

/* Win/Loss Text Groups */
.res-col-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.res-col-group.win {
  color: #22c55e;
}

.res-col-group.loss {
  color: #ef4444;
}

.res-col-group.draw {
  color: #fbbf24;
}

.res-line-top {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  justify-content: flex-end;
}

.res-arrow {
  font-size: 10px;
}

.res-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}


/* Net Result Button */
.net-result-container {
  margin-top: 8px;
}

.net-result-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #22c55e;
  border-radius: 12px;
  padding: 14px 0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
  /* "Net Result" */
  text-align: center;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  transition: all 0.2s;
}

.result-popup.loss .net-result-btn {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.result-popup.draw .net-result-btn {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

/* Close Button Position */
.result-popup .close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

.result-popup .close-btn:hover {
  color: #fff;
}

/* --- Mobile Redesign (Max Width 767px) --- */
@media (max-width: 767px) {

  /* 1. Grid Layout for Panels */
  .bet-panels-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    /* Override flex if it was set */
  }

  /* 2. Reset Panel Sizing to let Grid handle it */
  .bet-panel {
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    width: auto !important;
    height: auto !important;
  }

  /* 3. Red Panel (Last Child or by class) spans full width */
  .bet-panel.cat-red {
    grid-column: 1 / -1;
    /* Span all columns */
    display: flex;
    flex-direction: column;
  }

  /* 4. Inside Red Panel: Stocks in 2 Columns */
  /* We need to target the container of stock rows. 
     In betPanels.ts, it is: <div class="stocks-scroll js-stocks"></div>
  */
  .bet-panel.cat-red .stocks-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    /* Space between columns */
    padding-right: 4px;
    /* Adjust for scrollbar if any */
  }

  /* Ensure stock rows fit in the split column */
  .bet-panel.cat-red .stock-row {
    margin-bottom: 0;
    /* Let grid gap handle spacing if desired, or keep it */
    font-size: 11px;
    /* Slightly smaller text if needed */
  }
}


/* Mobile overrides for Result Popup removed to maintain Table Layout matching screenshot */
/* Bet History Updates */
.small-text {
  font-size: 10px !important;
  /* Decrease font size for Band Name */
}

.result-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
}

.result-status.win {
  color: #22c55e;
}

.result-status.loss {
  color: #ef4444;
}

.status-arrow {
  font-size: 10px;
}

/* =========================================
   Mobile Right Panel (My Bets) <= 1024px 
   (User asked for 1024px, keeping that as logic, but making sure styles apply)
   ========================================= */

@media (max-width: 1024px) {
  .desktop-panel {
    display: none !important;
  }

  .mobile-panel {
    display: flex !important;
  }
}

.mobile-panel {
  display: none;
  /* Hidden by default on desktop */
  flex-direction: column;
  height: auto;
  /* Adjust for margins */
  margin: 0 16px 16px 16px;
  padding: 16px;
  background: rgba(39, 62, 59, 1);
  border: 1px solid rgba(93, 166, 154, 1);
  border-radius: 16px;
  backdrop-filter: blur(39.5px);
  box-shadow: 0px 0px 8px 0px rgba(93, 166, 154, 1) inset;
  overflow: hidden;
}

.desktop-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-panel-header-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  background: rgba(36, 45, 45, 1);
  padding: 8px 0;
  width: 100%;
  border-radius: 8px;
  border: none;
  text-transform: uppercase;
}

.mobile-tabs-container {
  display: flex;
  background: rgba(36, 45, 45, 1);
  border-radius: 12px;
  /* Smooth rounded corners */
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: #aaa;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif !important;
  transition: all 0.2s;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}

.mobile-tab.active {
  background: rgba(39, 62, 59, 1);
  border: 1px solid rgba(93, 166, 154, 1);
  color: #fff;
  box-shadow: 0px 0px 3.6px 1px rgba(93, 166, 154, 1) inset;
}

.mobile-list-header {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1.5fr 1fr;
  padding: 0 8px 8px 8px;
  color: #ccc;
  font-size: 15px;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 4px;
  font-family: 'Play', sans-serif;
}

.mobile-list-header div {
  text-align: center;
}

.mobile-panel-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  max-height: 380px;
}

/* Scrollbar for mobile list */
.mobile-panel-content::-webkit-scrollbar {
  width: 4px;
}

.mobile-panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.mobile-bet-row {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1.5fr 1fr;
  align-items: center;
  border-radius: 12px;
  /* Capsule shape */
  padding: 8px 4px;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  /* Default dark background for rows */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: none !important;
}

.mobile-bet-row div {
  text-align: center;
}

.mobile-bet-row .col-color {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.color-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 4px currentColor;
  margin-right: 2px;
}

.color-dot-sm.green {
  background-color: #22c55e;
  box-shadow: 0 0 4px #22c55e;
}

.color-dot-sm.red {
  background-color: #ef4444;
  box-shadow: 0 0 4px #ef4444;
}

.color-dot-sm.blue {
  background-color: #3b82f6;
  box-shadow: 0 0 4px #3b82f6;
}

.color-dot-sm.purple {
  background-color: #a855f7;
  box-shadow: 0 0 4px #a855f7;
}

.color-dot-sm.golden {
  background-color: #eab308;
  box-shadow: 0 0 4px #eab308;
}

.color-dot-sm.draw {
  background-color: #b8860b;
  box-shadow: 0 0 4px #b8860b;
}

/* Specific Row Colors matching the image style (Greenish tint for Green bets) */
.mobile-bet-row.row-green {
  color: #fff;
}

.mobile-bet-row.row-red {
  color: #fff;
}

.mobile-bet-row.row-blue {
  color: #fff;
}

.mobile-bet-row.row-purple {
  color: #fff;
}

.mobile-bet-row.row-golden {
  color: #fff;
}

.mobile-bet-row.row-draw {
  color: #fbbf24 !important;
  background: #3a3020 !important;
  border-left: 3px solid #b8860b !important;
}

/* Alternating Row Colors */
.mobile-bet-row:nth-child(odd) {
  background: rgba(54, 109, 81, 1) !important;
}

.mobile-bet-row:nth-child(even) {
  background: rgba(72, 122, 129, 1) !important;
}

/* Hide mobile panel by default on desktop */
.mobile-panel {
  display: none;
}

/* Mobile Right Panel Display Logic (1024px) */
@media (max-width: 1024px) {

  /* Ensure desktop panel is hidden */
  .desktop-panel {
    display: none !important;
  }

  /* Shared Base Styles for Mobile Panels */
  .mobile-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
  }

  /* Specific: Last Round Winners hidden by default */
  .mobile-results-panel {
    display: none !important;
  }

  /* Show Last Round Winners when Betting */
  .rail-content.phase-betting .mobile-results-panel {
    display: flex !important;
    margin-top: 0;
  }

  /* Hide My Bets when Betting */
  .rail-content.phase-betting .mobile-panel:not(.mobile-results-panel) {
    display: none !important;
  }
}

/* 
   Hide Wheel on Mobile (768px and below) during Betting Phase 
*/
@media (max-width: 768px) {
  .dashboard-top.phase-betting .wheel-section {
    display: none !important;
  }
}