:root {
  color-scheme: dark;
  --ink: #06100d;
  --ink-soft: #0a1814;
  --panel: rgba(9, 25, 20, 0.94);
  --panel-raised: rgba(13, 34, 27, 0.96);
  --felt: #07533a;
  --felt-deep: #043c2a;
  --felt-light: #0a6848;
  --cream: #f3ead8;
  --muted: #a99f8d;
  --gold: #d8bd7a;
  --gold-deep: #8f6e34;
  --red: #a92336;
  --red-bright: #cb3045;
  --black: #111816;
  --line: rgba(232, 211, 165, 0.22);
  --line-strong: rgba(232, 211, 165, 0.48);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% -10%, rgba(31, 112, 76, 0.19), transparent 33rem),
    linear-gradient(135deg, #06100d 0%, #071713 53%, #050c0a 100%);
  color: var(--cream);
}

button,
dialog {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible {
  outline: 2px solid #f0d895;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.18;
}

.ambient-one {
  width: 28rem;
  height: 28rem;
  top: 13%;
  left: -16rem;
  background: #196947;
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  right: -10rem;
  bottom: -6rem;
  background: #7d3e25;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1800px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.video-title {
  position: relative;
  height: clamp(126px, 13vw, 205px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.video-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -50% 10% -25%;
  background: radial-gradient(ellipse, rgba(197, 156, 82, 0.11), rgba(7, 18, 15, 0) 66%);
  pointer-events: none;
}

.video-title-react-root {
  position: absolute;
  inset: 0;
}

/* Utility classes used verbatim by Magic UI's VideoText registry component. */
.relative { position: relative; }
.size-full { width: 100%; height: 100%; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.object-cover { object-fit: cover; }

.magicui-video-title video {
  filter: saturate(1.08) contrast(1.08) brightness(.9);
}

.title-rule {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 5px;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  opacity: .75;
}

.title-rule span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 189, 122, .5));
}

.title-rule span:last-child {
  background: linear-gradient(90deg, rgba(216, 189, 122, .5), transparent);
}

.title-rule i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(232, 211, 165, 0.13);
}

.brand,
.session-meta,
.brand-copy,
.balance-block {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #0b1d17, inset 0 0 0 5px rgba(216, 189, 122, 0.2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.brand-copy,
.balance-block {
  flex-direction: column;
  align-items: flex-start;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.brand-copy span,
.balance-block span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.session-meta {
  justify-content: flex-end;
  gap: 13px;
}

.play-badge,
.round-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9c9c1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-badge i,
.round-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42c284;
  box-shadow: 0 0 0 4px rgba(66, 194, 132, 0.11), 0 0 13px rgba(66, 194, 132, 0.55);
}

.icon-button,
.text-button {
  height: 38px;
  border: 1px solid rgba(232, 211, 165, 0.17);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.icon-button:hover,
.text-button:hover {
  border-color: rgba(232, 211, 165, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.icon-button:active,
.text-button:active {
  transform: translateY(1px);
}

.icon-button {
  width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-button svg,
.bet-actions svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-on {
  display: none;
}

.sound-enabled .sound-on {
  display: block;
}

.sound-enabled .sound-off {
  display: none;
}

.text-button {
  padding: 0 14px;
  color: #c9c1b2;
  font-size: 12px;
  font-weight: 650;
}

.balance-block {
  min-width: 130px;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(232, 211, 165, 0.16);
}

.balance-block strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(650px, 1.45fr);
  gap: 18px;
  padding-top: 18px;
}

.wheel-panel,
.bet-panel {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(232, 211, 165, 0.13);
  box-shadow: var(--shadow);
}

.wheel-panel {
  min-height: calc(100vh - 128px);
  padding: 28px 28px 22px;
  overflow: hidden;
  border-radius: 8px 8px 8px 32px;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.028), transparent 33%),
    #091914;
}

.wheel-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(107deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 7px);
  opacity: 0.28;
}

.panel-heading,
.result-deck {
  position: relative;
  z-index: 8;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.panel-heading h2 {
  font-size: clamp(31px, 3vw, 43px);
  line-height: 1;
}

.round-state {
  padding-top: 7px;
  white-space: nowrap;
}

.round-state.spinning span {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 189, 122, 0.1), 0 0 13px rgba(216, 189, 122, 0.46);
  animation: pulse-dot 900ms ease-in-out infinite alternate;
}

@keyframes pulse-dot {
  to { transform: scale(1.3); opacity: 0.65; }
}

.wheel-stage {
  position: relative;
  z-index: 2;
  min-height: 500px;
  display: grid;
  place-items: center;
  margin: 4px -18px -4px;
}

.wheel-light {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 215, 153, 0.16), rgba(6, 16, 13, 0) 68%);
  filter: blur(12px);
}

.wheel-shell {
  position: relative;
  width: min(31vw, 490px);
  min-width: 340px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 33px 28px rgba(0,0,0,0.47));
}

.wheel-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, transparent 63%, rgba(255,255,255,0.18) 63.3%, transparent 64.2%),
    radial-gradient(circle at 50% 38%, #7a351d 0, #39150d 69%, #180806 100%);
  box-shadow:
    inset 0 0 0 3px #b9864d,
    inset 0 0 0 9px #35130c,
    inset 0 0 0 12px #8c6032,
    inset 0 -22px 28px rgba(0,0,0,0.47),
    0 0 0 1px #130705;
}

.wheel-rim {
  position: absolute;
  inset: 6.4%;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  background: #150b08;
  box-shadow:
    0 0 0 4px #e1c385,
    0 0 0 7px #604119,
    0 0 0 10px #120907,
    inset 0 0 28px rgba(0,0,0,0.8);
}

.wheel-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
}

.pocket-ring {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.3),
    inset 0 0 0 5px rgba(20,10,7,0.52),
    inset 0 0 22px rgba(0,0,0,0.68);
}

.pocket-ring::after {
  content: "";
  position: absolute;
  inset: 20.5%;
  border-radius: 50%;
  background: #130c08;
  box-shadow: 0 0 0 3px #b88b50, 0 0 0 8px #2d180d;
}

.wheel-labels {
  position: absolute;
  inset: 2%;
  z-index: 2;
  border-radius: 50%;
}

.wheel-number {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  transform-origin: center;
  pointer-events: none;
}

.wheel-number b {
  position: absolute;
  top: 10.75%;
  left: 50%;
  display: grid;
  width: 24px;
  min-height: 14px;
  place-items: center;
  color: #fff9eb;
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  transform: translate(-50%, -50%);
}

.bowl-ring {
  position: absolute;
  z-index: 3;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, #c9a364 0 5%, #6b451e 24%, #25140a 64%, #b88b50 67%, #2a160b 72%);
  box-shadow: 0 0 0 2px rgba(238,210,144,0.65), 0 0 14px rgba(0,0,0,0.8);
}

.bowl {
  position: absolute;
  z-index: 4;
  inset: 32%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 43% 35%, rgba(255,255,255,0.13), transparent 22%),
    radial-gradient(circle, #7c4b22 0, #3a1e0f 53%, #110806 100%);
  box-shadow: inset 0 9px 14px rgba(255,255,255,0.035), inset 0 -14px 22px rgba(0,0,0,0.67);
}

.turret {
  position: relative;
  width: 43%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #f1dcab, #b48745 40%, #573411 72%, #c59b58 74%, #35200c 100%);
  box-shadow: 0 8px 13px rgba(0,0,0,0.55), 0 0 0 2px #34200d;
}

.turret::before,
.turret::after {
  content: "";
  position: absolute;
  width: 170%;
  height: 10%;
  border-radius: 50%;
  background: linear-gradient(180deg, #e5c985, #7c5423 58%, #2b1709);
  box-shadow: 0 3px 4px rgba(0,0,0,0.45);
}

.turret::after {
  transform: rotate(90deg);
}

.turret span {
  z-index: 2;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f1dda9;
  box-shadow: inset 0 -2px 2px #8b672e, 0 2px 3px rgba(0,0,0,.6);
}

.ball-orbit {
  position: absolute;
  z-index: 7;
  inset: 9%;
  border-radius: 50%;
  transform: rotate(0deg);
  pointer-events: none;
  will-change: transform;
}

.ball {
  position: absolute;
  top: -2.5%;
  left: 50%;
  width: 3.7%;
  min-width: 11px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 34% 28%, #fff, #e4ddc9 48%, #998c77 76%, #fff7df 79%);
  box-shadow: 0 3px 7px rgba(0,0,0,0.8), 0 0 6px rgba(255,255,255,0.38);
  opacity: 0.92;
}

.wheel-shell.is-spinning {
  filter: drop-shadow(0 36px 34px rgba(0,0,0,0.55));
}

.result-deck {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(150px, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 211, 165, 0.14);
}

.result-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: var(--red);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.17), 0 9px 17px rgba(0,0,0,.28);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.result-number.black { background: #17211e; }
.result-number.green { background: #0b7650; }
.result-number.empty { background: rgba(255,255,255,0.04); color: #7c7a72; box-shadow: none; }

.result-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.result-copy strong {
  margin-top: 4px;
  overflow: hidden;
  color: #eee4d2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.last-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 178px;
}

.history-chip {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.history-chip.black { background: #18221f; }
.history-chip.green { background: #0b7650; }
.history-empty { color: #6e746e; font-size: 11px; }

.bet-panel {
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px 8px 32px 8px;
  background: #0b1c17;
}

.chip-tray {
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(232, 211, 165, 0.13);
  background: rgba(2, 11, 8, 0.25);
}

.tray-label,
.stake-readout {
  display: flex;
  flex-direction: column;
}

.tray-label span,
.stake-readout span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tray-label strong,
.stake-readout strong {
  margin-top: 4px;
  color: #e6dcc8;
  font-size: 14px;
}

.stake-readout {
  align-items: flex-end;
}

.stake-readout strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.chip-options {
  display: flex;
  align-items: center;
  gap: 11px;
}

.chip {
  --chip: #ded3bd;
  --chip-dark: #746f66;
  position: relative;
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 3px dashed rgba(255,255,255,0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--chip) 0 47%, transparent 48%),
    repeating-conic-gradient(var(--chip-dark) 0 8deg, #e7dece 8deg 15deg);
  box-shadow: 0 5px 0 #25241f, 0 8px 12px rgba(0,0,0,.35), inset 0 0 0 3px var(--chip-dark);
  cursor: pointer;
  color: #151813;
  transition: transform 180ms var(--ease-out), filter 180ms ease, box-shadow 180ms ease;
}

.chip span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.24);
  border-radius: 50%;
  background: var(--chip);
  font-size: 11px;
  font-weight: 800;
}

.chip:hover { transform: translateY(-3px) rotate(-3deg); filter: brightness(1.08); }
.chip.selected { transform: translateY(-6px); box-shadow: 0 6px 0 #25241f, 0 14px 17px rgba(0,0,0,.48), 0 0 0 3px rgba(216,189,122,.25), inset 0 0 0 3px var(--chip-dark); }
.chip:active { transform: translateY(-1px); }
.chip-5 { --chip: #e6e0d2; --chip-dark: #8f948d; }
.chip-25 { --chip: #3e9f6e; --chip-dark: #105137; color: #fff; }
.chip-100 { --chip: #252927; --chip-dark: #050807; color: #fff; }
.chip-500 { --chip: #8b2840; --chip-dark: #3c0e1b; color: #fff; }
.chip-1000 { --chip: #d0a24e; --chip-dark: #6b4614; }

.table-scroll {
  min-height: 452px;
  display: flex;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(216,189,122,.45) rgba(0,0,0,.15);
}

.roulette-table {
  position: relative;
  width: 100%;
  min-width: 850px;
  min-height: 452px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 42% 0%, rgba(61, 169, 111, .21), transparent 62%),
    linear-gradient(160deg, var(--felt-light), var(--felt) 48%, var(--felt-deep));
  box-shadow: inset 0 14px 30px rgba(0,0,0,.22), inset 0 -14px 30px rgba(0,0,0,.19);
}

.felt-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(33deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(123deg, rgba(0,0,0,.02) 0 1px, transparent 1px 5px);
  mix-blend-mode: overlay;
}

.board-core,
.outside-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px repeat(12, minmax(48px, 1fr)) 62px;
}

.board-core {
  grid-template-rows: repeat(3, 65px);
}

.number-cells {
  display: contents;
}

.bet-cell {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(244,235,211,.67);
  background: rgba(3, 48, 32, .16);
  color: #f8f2e5;
  cursor: pointer;
  font-weight: 750;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.bet-cell:hover:not(:disabled) {
  z-index: 4;
  border-color: #f6deb0;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 0 0 2px rgba(246,222,176,.5), 0 5px 12px rgba(0,0,0,.18);
}

.bet-cell:active:not(:disabled) { transform: scale(.965); }
.bet-cell:disabled { cursor: not-allowed; }
.bet-cell:disabled .cell-label { opacity: .7; }

.number-cell .cell-label,
.zero-cell .cell-label {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.number-cell.red-number .cell-label { background: var(--red); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.number-cell.black-number .cell-label { background: #17201d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.zero-cell .cell-label { background: rgba(255,255,255,.08); }

.zero-cell {
  border-radius: 28px 0 0 28px;
  background: rgba(5, 102, 69, .55);
}

.column-cell {
  border-radius: 0 20px 20px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
}

.outside-grid {
  grid-template-columns: repeat(12, minmax(48px, 1fr));
  margin-right: 62px;
  margin-left: 62px;
}

.dozens-grid {
  grid-template-rows: 58px;
  margin-top: 8px;
}

.even-grid {
  grid-template-rows: 58px;
  margin-top: 8px;
}

.outside-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
}

.outside-cell small {
  color: rgba(255,255,255,.66);
  font-family: "Manrope", sans-serif;
  font-size: 10px;
}

.diamond-bet i {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.red-diamond i { background: var(--red); }
.black-diamond i { background: #111816; }

.bet-cell.has-bet {
  background: rgba(244, 225, 180, .12);
  box-shadow: inset 0 0 0 2px rgba(237,210,151,.48);
}

.bet-stack {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  min-width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  padding: 0 4px;
  transform: translate(-50%, -50%);
  border: 3px dashed rgba(255,255,255,.88);
  border-radius: 50%;
  background: #b88d40;
  box-shadow: 0 3px 0 #4e3815, 0 5px 8px rgba(0,0,0,.45), inset 0 0 0 2px #6f511f;
  color: #16130c;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-shadow: none;
  pointer-events: none;
}

.has-bet .bet-stack {
  display: grid;
  animation: chip-land 230ms var(--ease-out);
}

@keyframes chip-land {
  0% { transform: translate(-50%, -80%) scale(1.18) rotate(-8deg); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

.table-footer {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr minmax(210px, 290px);
  align-items: stretch;
  border-top: 1px solid rgba(232, 211, 165, 0.13);
  background: #091712;
}

.bet-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 17px 20px;
}

.bet-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(232,211,165,.16);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: #c7c0b2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.bet-actions button:hover:not(:disabled) { background: rgba(255,255,255,.07); color: #fff5df; border-color: rgba(232,211,165,.4); }
.bet-actions button:disabled { opacity: .31; cursor: not-allowed; }

.spin-button {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 24px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(120deg, #a67c39, #e2ca8f 50%, #a87a35);
  color: #171108;
  cursor: pointer;
  overflow: hidden;
  transition: filter 180ms ease, transform 180ms ease;
}

.spin-button::before {
  content: "";
  position: absolute;
  width: 45%;
  height: 220%;
  top: -60%;
  left: -65%;
  transform: rotate(22deg);
  background: rgba(255,255,255,.23);
  transition: left 580ms var(--ease-out);
}

.spin-button:hover:not(:disabled)::before { left: 120%; }
.spin-button:hover:not(:disabled) { filter: brightness(1.08); }
.spin-button:active:not(:disabled) { transform: translateY(1px); }
.spin-button:disabled { cursor: not-allowed; filter: saturate(.25) brightness(.65); }

.spin-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spin-copy small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
}

.spin-copy strong {
  margin-top: 3px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.spin-arrow {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23,17,8,.3);
  border-radius: 50%;
  font-size: 21px;
}

.table-note {
  margin: 0;
  padding: 10px 20px 11px;
  border-top: 1px solid rgba(232,211,165,.08);
  color: #757e77;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.rules-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(232,211,165,.25);
  border-radius: 12px;
  background: #0c1d17;
  box-shadow: 0 45px 100px rgba(0,0,0,.72);
  color: var(--cream);
}

.rules-dialog::backdrop {
  background: rgba(2,8,6,.8);
  backdrop-filter: blur(7px);
}

.rules-dialog form { padding: 26px; }

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232,211,165,.14);
}

.dialog-top h2 { font-size: 32px; }

.close-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(232,211,165,.17);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.rules-list { margin: 12px 0 18px; }

.rules-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232,211,165,.09);
}

.rules-list span { font-size: 14px; font-weight: 650; }
.rules-list strong { color: var(--gold); font-size: 14px; }
.rules-list small { grid-column: 1/3; color: var(--muted); font-size: 11px; }
.rules-dialog p { color: #aaa497; font-size: 13px; line-height: 1.65; }

.dialog-confirm {
  width: 100%;
  height: 48px;
  margin-top: 5px;
  border: 1px solid #c3a865;
  border-radius: 7px;
  background: #c8ad6b;
  color: #171108;
  cursor: pointer;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  border: 1px solid rgba(232,211,165,.27);
  border-radius: 8px;
  background: rgba(8,23,18,.96);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  color: #eee6d7;
  font-size: 13px;
  font-weight: 650;
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  transition: transform 280ms var(--ease-out), opacity 220ms ease;
}

.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1250px) {
  .app-shell { padding-inline: 16px; }
  .game-layout { grid-template-columns: minmax(340px, .62fr) minmax(580px, 1.1fr); }
  .wheel-panel { padding-inline: 22px; }
  .wheel-shell { min-width: 320px; }
  .chip-options { gap: 7px; }
  .chip { width: 48px; height: 48px; }
  .chip span { width: 29px; height: 29px; }
}

@media (max-width: 1030px) {
  .game-layout { grid-template-columns: 1fr; }
  .wheel-panel,
  .bet-panel { min-height: auto; }
  .wheel-panel { border-radius: 8px 8px 8px 26px; }
  .wheel-stage { min-height: 480px; }
  .wheel-shell { width: min(480px, 75vw); }
  .bet-panel { border-radius: 8px 8px 26px 8px; }
  .roulette-table { min-height: 430px; }
}

@media (max-width: 720px) {
  .app-shell { padding: 0 10px 10px; }
  .topbar { min-height: 74px; }
  .video-title { height: 100px; }
  .brand-copy span,
  .play-badge,
  .text-button { display: none; }
  .session-meta { gap: 7px; }
  .balance-block { min-width: auto; margin-left: 0; padding-left: 12px; }
  .balance-block strong { font-size: 21px; }
  .wheel-panel { min-height: 575px; padding: 22px 17px 18px; }
  .wheel-stage { min-height: 390px; margin-inline: -10px; }
  .wheel-shell { width: min(390px, 92vw); min-width: 286px; }
  .round-state { font-size: 10px; }
  .result-deck { grid-template-columns: 52px 1fr; }
  .last-numbers { grid-column: 1/3; justify-content: flex-start; max-width: none; padding-top: 4px; }
  .chip-tray { grid-template-columns: 1fr auto; gap: 12px; padding: 15px; }
  .tray-label { display: none; }
  .chip-options { justify-content: flex-start; overflow-x: auto; padding: 7px 3px 12px; }
  .stake-readout { min-width: 72px; }
  .table-scroll { min-height: 430px; }
  .roulette-table { padding-inline: 18px; }
  .table-footer { grid-template-columns: 1fr; }
  .bet-actions { justify-content: center; flex-wrap: wrap; padding: 13px 10px; }
  .spin-button { min-height: 76px; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
}

@media (max-width: 430px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 21px; }
  .icon-button { width: 34px; height: 34px; }
  .balance-block span { font-size: 9px; }
  .panel-heading h2 { font-size: 31px; }
  .wheel-panel { min-height: 540px; }
  .wheel-stage { min-height: 350px; }
  .wheel-shell { min-width: 270px; width: 90vw; }
  .result-copy strong { font-size: 18px; }
  .chip { width: 45px; height: 45px; }
  .chip span { width: 27px; height: 27px; font-size: 10px; }
  .bet-actions button { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
