:root {
  color-scheme: dark;
  --bg: #151117;
  --bar: #1d151c;
  --panel: #211923;
  --border: #382b36;
  --ink: #f7efe8;
  --muted: #c1b0bc;
  --gold: #f2c782;
  --wine: #4c2638;
  --serif: Georgia,"Times New Roman",serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 system-ui,sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .5;
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none!important;
}

p,h1,h2,h3 {
  margin: 0;
}

.skip {
  position: fixed;
  left: 14px;
  top: -60px;
  background: var(--gold);
  color: #20151a;
  padding: 8px;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 700 25px/1 var(--serif);
  white-space: nowrap;
}

.brand small,.wallet small {
  display: block;
  font: 700 9px/1 system-ui,sans-serif;
  letter-spacing: .18em;
  margin-top: 6px;
  color: var(--muted);
}

.gold {
  color: var(--gold);
}

.top-nav {
  height: 100%;
  display: flex;
  gap: 35px;
  align-items: stretch;
}

.top-nav a {
  display: grid;
  place-items: center;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 600;
}

.top-nav a:hover,.top-nav a[aria-current] {
  color: var(--gold);
  border-color: var(--gold);
}

.wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2b2029;
  border: 1px solid #4e3745;
  border-radius: 12px;
  padding: 7px 14px;
  min-width: 140px;
}

.wallet small {
  margin: 0 0 4px;
}

.wallet strong {
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}

.wallet-icon {
  font-size: 23px;
  color: var(--gold);
}

.shell {
  display: grid;
  grid-template-columns: 216px minmax(0,1fr);
  min-height: calc(100vh - 76px);
}

.sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  background: #19141b;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 31px 18px 20px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
}

.side-label {
  color: #ad96a5;
  margin: 0 12px 14px;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar nav a {
  color: var(--muted);
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 650;
}

.sidebar nav a span {
  display: inline-block;
  width: 26px;
  color: #d4a478;
  font-size: 17px;
}

.sidebar nav a:hover,.sidebar nav a[aria-current] {
  background: #30212d;
  border-color: #523745;
  color: var(--gold);
}

.side-note {
  margin-top: auto;
  padding: 13px 10px;
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

.side-note strong {
  color: var(--ink);
}

.side-note span {
  color: var(--gold);
  font-size: 16px;
}

main {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 29px clamp(22px,4.1vw,62px) 0;
  min-width: 0;
}

.lobby-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
}

.section-tag {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tag span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%,290px);
  padding: 9px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}

.search span {
  display: flex;
}

.search input {
  min-width: 0;
  width: 100%;
  background: none;
  color: var(--ink);
  border: 0;
}

.search input::placeholder {
  color: #c0aebb;
}

.search:focus-within {
  border-color: var(--gold);
}

.search input:focus-visible {
  outline: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 375px;
  border: 1px solid #654151;
  border-radius: 19px;
  background: radial-gradient(ellipse at 77% 48%,#7b3d53 0%,#452438 46%,#291c2a 82%);
  display: flex;
  align-items: center;
}

.hero::before,.tile-art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg,transparent 0 19px,#f8c8900c 20px,transparent 21px 34px);
  mask-image: linear-gradient(90deg,transparent 24%,black);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 36px 5%;
  width: 56%;
}

.hero-kicker {
  color: #f0ce9e;
  margin-bottom: 15px;
}

.hero h1 {
  font: 500 clamp(39px,5.45vw,81px)/.98 var(--serif);
  letter-spacing: -.055em;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 400;
}

.hero-copy>p:not(.eyebrow) {
  color: #e3ccd5;
  max-width: 39ch;
  margin: 19px 0 22px;
}

.hero-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  min-height: 43px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}

.primary {
  background: linear-gradient(110deg,#ffdb9b,#e7ae64);
  color: #2d1b18;
}

.primary:hover:not(:disabled) {
  background: #ffdeaa;
}

.secondary,.hero-link {
  background: #30222d;
  color: var(--ink);
  border-color: #614451;
}

.secondary:hover:not(:disabled),.hero-link:hover {
  background: #4b303e;
}

.hero-link {
  background: #29182465;
}

.hero-art {
  position: absolute;
  inset: 0 0 0 49%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  width: clamp(225px,31vw,475px);
  aspect-ratio: 1;
  border: 1px solid #ffce893c;
  border-radius: 50%;
  box-shadow: 0 0 0 17px #f8ca8312,0 0 0 35px #f8ca8310;
  transform: rotate(-20deg) scaleY(.66);
}

.hero-card {
  position: absolute;
  width: clamp(100px,13vw,190px);
  aspect-ratio: 5/7;
  border-radius: 12px;
  border: 1px solid #fff4dd;
  background: linear-gradient(145deg,#fff9e9,#e6c297);
  color: #39212b;
  box-shadow: 0 20px 38px #170a17a6,inset 0 0 0 6px #fff2d651;
  display: grid;
  place-items: center;
  font-family: var(--serif);
}

.hero-card span {
  font-size: clamp(53px,7.2vw,105px);
  line-height: 1;
}

.hero-card b {
  position: absolute;
  top: 12px;
  left: 13px;
  font-size: 23px;
}

.hero-card b:last-child {
  top: auto;
  left: auto;
  bottom: 12px;
  right: 13px;
  transform: rotate(180deg);
}

.hero-card-back {
  transform: translate(-32%,-4%) rotate(-23deg);
  color: #8b2942;
}

.hero-card-front {
  transform: translate(27%,0) rotate(14deg);
}

.hero-chip {
  position: absolute;
  left: 18%;
  bottom: 12%;
  width: clamp(55px,8vw,100px);
  aspect-ratio: 1;
  background: #4d263a;
  border: 7px dashed #f0bd74;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 9px 0 #24111f,0 13px 19px #180d18a6;
  transform: rotate(-19deg) scaleY(.85);
  color: var(--gold);
  font-size: 29px;
}

.hero-chip span {
  border: 1px solid #d99563;
  border-radius: 50%;
  width: 76%;
  height: 76%;
  display: grid;
  place-items: center;
}

.spark {
  position: absolute;
  color: #f4c786;
  font-style: normal;
  font-size: 26px;
}

.spark-one {
  left: 10%;
  top: 24%;
}

.spark-two {
  right: 13%;
  top: 19%;
}

.spark-three {
  right: 11%;
  bottom: 20%;
  font-size: 15px;
}

.catalog {
  margin-top: 32px;
}

.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}

.catalog h2 {
  font: 500 37px/1.15 var(--serif);
  margin-top: 5px;
}

.game-count {
  color: var(--muted);
  font-size: 13px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 17px;
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color .15s;
}

.game-card:hover {
  border-color: #9a6b61;
}

.game-card a {
  display: block;
  border-radius: inherit;
}

.tile-art {
  position: relative;
  overflow: hidden;
  height: 143px;
  border-radius: 12px 12px 0 0;
  isolation: isolate;
}

.tile-blackjack {
  background: radial-gradient(ellipse at 69% 55%,#316451,#17312b 68%,#162522);
}

.tile-roulette {
  background: radial-gradient(ellipse at 68% 45%,#84465c,#43263a 65%,#2a202c);
}

.tile-label {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 1;
  background: #17151bd9;
  border: 1px solid #ffffff26;
  color: #f2dbc7;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.mini-card {
  display: grid;
  place-items: center;
  position: absolute;
  top: 21px;
  width: 72px;
  height: 100px;
  border-radius: 7px;
  background: linear-gradient(140deg,#fff7e3,#e3c19e);
  border: 1px solid #fce7c8;
  box-shadow: 0 6px 14px #0006;
  color: #242128;
  font: 40px var(--serif);
}

.mini-card b {
  position: absolute;
  left: 7px;
  top: 4px;
  font-size: 16px;
}

.mini-back {
  left: 50%;
  transform: rotate(-22deg);
  color: #902a46;
}

.mini-front {
  left: 60%;
  transform: rotate(15deg);
}

.tile-chip {
  position: absolute;
  left: 44%;
  bottom: 13%;
  border: 3px dashed #e7b67a;
  border-radius: 50%;
  background: #273e33;
  color: #e7b67a;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 28px;
  transform: rotate(-18deg);
}

.mini-wheel {
  position: absolute;
  width: 185px;
  left: 56%;
  top: -16px;
  transform: rotate(-14deg) scaleY(.91);
  filter: drop-shadow(0 12px 8px #1e0b1990);
}

.mini-wheel svg,.wheel svg {
  display: block;
  width: 100%;
  height: auto;
}

.tile-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.tile-copy h3 {
  font: 600 23px/1.2 var(--serif);
}

.tile-copy p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.tile-arrow {
  color: var(--gold);
  font-size: 21px;
}

.empty {
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.refill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #32242c;
  border: 1px solid #634953;
  padding: 10px 13px;
  margin-bottom: 16px;
  border-radius: 9px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding: 16px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

footer strong {
  color: #ebd9d2;
}

.game-view .back {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 19px;
}

.back:hover {
  color: var(--gold);
}

.game-view h1 {
  font: 500 clamp(36px,5vw,62px)/1.1 var(--serif);
  margin: 6px 0;
}

.intro {
  color: var(--muted);
  margin-bottom: 22px;
}

.game-layout,.roulette-layout {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr);
  gap: 16px;
  align-items: start;
}

.roulette-layout {
  grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr);
}

.felt,.panel {
  border-radius: 15px;
  border: 1px solid var(--border);
}

.felt {
  position: relative;
  overflow: hidden;
  padding: 19px 13px;
  background: radial-gradient(ellipse at 50% 30%,#265643,#132d25 77%);
  border-color: #496552;
  text-align: center;
}

.blackjack-felt {
  box-shadow: inset 0 0 0 6px #0e251d55;
}

.felt-brand {
  color: #d8c9a2;
  font: 700 10px/1.5 system-ui,sans-serif;
  letter-spacing: .23em;
  margin-bottom: 10px;
}

.hand h2,.panel h2 {
  font: 500 24px/1.2 var(--serif);
}

.hand h2 span {
  font: 700 13px system-ui,sans-serif;
  color: #f2d59c;
}

.cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 84px;
  margin-top: 7px;
}

.playing-card {
  width: 53px;
  height: 76px;
  background: linear-gradient(140deg,#fffaef,#ead8bd);
  color: #29212c;
  border: 1px solid #f6e7cf;
  border-radius: 7px;
  box-shadow: 0 4px 9px #0005;
  position: relative;
  display: grid;
  place-items: center;
  font: 29px var(--serif);
}

.playing-card b {
  font: 700 14px/1 var(--serif);
  position: absolute;
  left: 5px;
  top: 5px;
}

.playing-card.red {
  color: #9c2742;
}

.playing-card.cover {
  border: 3px solid #e0b578;
  background: repeating-linear-gradient(135deg,#552c43 0 4px,#6f4051 4px 7px);
  color: #f5d095;
}

.playing-card.slot {
  background: #142f25;
  border: 1px dashed #789281;
  color: #9cb29b;
  box-shadow: none;
}

.felt-divider {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 13px auto;
  width: 70%;
  color: #b2b197;
}

.felt-divider::before,.felt-divider::after {
  content: "";
  width: 40%;
  height: 1px;
  background: #afad8b55;
}

.result {
  font-weight: 750;
  color: #ffe0ab;
  min-height: 44px;
  display: grid;
  place-items: center;
  margin: 10px 0 0;
}

.panel {
  background: var(--panel);
  padding: 16px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.chip {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed #a88a73;
  background: #352832;
  color: var(--ink);
  font-weight: 750;
}

.chip[aria-pressed="true"] {
  background: var(--gold);
  color: #251b1d;
  border-color: #67452c;
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.stake-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 9px;
  color: var(--muted);
}

.stake-line strong {
  color: var(--gold);
}

.game-buttons {
  display: grid;
  gap: 7px;
}

.wide {
  width: 100%;
}

.rules {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 11px;
  color: var(--muted);
  font-size: 13px;
}

.rules summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.rules p {
  margin-top: 8px;
}

.roulette-felt {
  background: radial-gradient(ellipse at 50% 32%,#633548,#271b28 79%);
  border-color: #62434e;
}

.wheel-frame {
  position: relative;
  width: min(100%,330px);
  margin: 0 auto;
}

.wheel {
  transform: rotate(0deg);
  filter: drop-shadow(0 7px 12px #170d1b90);
}

.wheel.spinning {
  transition: transform 1.8s cubic-bezier(.12,.63,.14,1);
}

.wheel-marker {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 19px solid #ffe0a5;
  filter: drop-shadow(0 1px 2px #190e14);
}

.history {
  min-height: 32px;
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

.history span {
  padding: 2px 6px;
  min-width: 27px;
  border-radius: 6px;
  border: 1px solid #ffffff30;
  font-size: 13px;
}

.roulette-board {
  display: grid;
  gap: 4px;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(13,minmax(0,1fr));
  grid-template-rows: repeat(3,minmax(38px,auto));
  gap: 3px;
}

.zero {
  grid-row: 1 / span 3;
}

.bet-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
}

.bet {
  position: relative;
  color: #fff7ef;
  background: #294537;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  padding: 3px 0;
  min-height: 34px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.15;
}

.bet small {
  display: block;
  color: #ffe39d;
  font-size: 10px;
}

.bet:hover:not(:disabled),.bet.has-stake {
  border-color: #f6d48e;
}

.bet.has-stake {
  box-shadow: inset 0 0 0 1px #f6d48e;
}

.bet-red,.history .red {
  background: #8c3048;
}

.bet-black,.history .black {
  background: #201b24;
}

.bet-green,.history .green {
  background: #286047;
}

.roulette-buttons {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}

@media(max-width:1050px) {
  .shell {
    grid-template-columns: 165px minmax(0,1fr);
  }
  .sidebar {
    padding-inline: 11px;
  }
  main {
    padding-inline: 23px;
  }
  .hero {
    min-height: 345px;
  }
  .roulette-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .roulette-felt .wheel-frame {
    width: min(100%,270px);
  }
}

@media(max-width:760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 8px;
    padding: 9px 15px 0;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .wallet {
    min-width: auto;
    padding: 5px 8px;
    gap: 6px;
  }
  .wallet-icon {
    font-size: 17px;
  }
  .wallet strong {
    font-size: 12px;
  }
  .wallet small {
    font-size: 8px;
  }
  .top-nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: center;
    gap: 30px;
    height: 39px;
  }
  .top-nav a {
    font-size: 13px;
  }
  main {
    padding: 19px 15px 0;
  }
  .hero {
    min-height: 350px;
  }
  .hero-copy {
    width: 70%;
  }
  .hero-art {
    left: 58%;
    opacity: .78;
  }
  .hero-card {
    width: 109px;
  }
  .hero-card span {
    font-size: 60px;
  }
  .hero-chip {
    bottom: 15%;
    left: 6%;
  }
  .game-layout {
    grid-template-columns: minmax(0,1fr);
  }
}

@media(max-width:480px) {
  .lobby-top .eyebrow {
    font-size: 9px;
  }
  .search {
    width: 55%;
    padding: 7px 9px;
  }
  .search input {
    font-size: 13px;
  }
  .hero {
    align-items: flex-end;
    min-height: 0;
    display: block;
  }
  .hero-art {
    inset: 0 0 auto 0;
    height: 151px;
    opacity: 1;
  }
  .hero-orbit {
    width: 217px;
  }
  .hero-card {
    width: 70px;
    border-radius: 7px;
  }
  .hero-card span {
    font-size: 44px;
  }
  .hero-card b {
    font-size: 13px;
    top: 5px;
    left: 6px;
  }
  .hero-card b:last-child {
    bottom: 5px;
    right: 6px;
  }
  .hero-chip {
    left: 31%;
    bottom: 13%;
    width: 45px;
    border-width: 4px;
    font-size: 16px;
  }
  .spark-one {
    left: 19%;
  }
  .spark-two {
    right: 20%;
  }
  .hero-copy {
    width: auto;
    padding: 154px 16px 18px;
  }
  .hero-copy>p:not(.eyebrow) {
    margin: 12px 0 15px;
    font-size: 14px;
  }
  .hero-kicker {
    margin-bottom: 8px;
    font-size: 9px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-actions {
    gap: 6px;
  }
  .hero-actions .button {
    padding: 8px;
    font-size: 13px;
    gap: 6px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .tile-art {
    height: 117px;
  }
  .mini-card {
    top: 13px;
  }
  .number-grid {
    gap: 3px;
    grid-template-columns: repeat(7,minmax(0,1fr));
    grid-template-rows: repeat(6,minmax(36px,auto));
  }
  .zero {
    grid-row: 1 / span 6;
  }
  .bet {
    font-size: 10px;
  }
  .bet small {
    font-size: 8px;
  }
  .panel {
    padding: 10px;
  }
  .refill {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition: none!important;
    animation: none!important;
  }
}

.online-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  background: #261d28;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.online-bar form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.online-bar input, .admin input {
  background: #19141b;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid #695060;
  border-radius: 7px;
  max-width: 100%;
}
.online-bar .button { min-height: 36px; }
.roulette-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.roulette-felt {
  padding: 14px;
}
.roulette-felt .wheel-frame {
  width: min(100%, 245px);
}
.roulette-panel {
  background: radial-gradient(ellipse at 50% 0, #441c24, #1d141a 75%);
}
.roulette-panel h2 { margin-bottom: 13px; }
.board-scroll {
  overflow-x: auto;
  padding: 3px;
}
.roulette-board {
  grid-template-columns: 1fr 12fr 1fr;
  gap: 0;
  min-width: 535px;
  isolation: isolate;
}
.number-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-template-rows: repeat(3, 42px);
  gap: 0;
  border-top: 1px solid #d9b795;
}
.number-grid .zero { grid-row: 1 / span 3; }
.bet-row {
  grid-column: 2;
  gap: 0;
}
.roulette-board .bet {
  position: relative;
  border: solid #d9b795;
  border-width: 0 1px 1px 0;
  border-radius: 0;
  background: #321b20;
  text-transform: uppercase;
  min-height: 37px;
  font-size: 12px;
  letter-spacing: .03em;
}
.number-grid .bet { font-size: 17px; }
.number-grid .column-bet { font-size: 10px; line-height: 1; }
.roulette-board .zero, .bet-row .bet:first-child { border-left-width: 1px; }
.roulette-board .bet-red { background: #a5241b; }
.roulette-board .bet-black { background: #171516; }
.roulette-board .bet-green { background: #146353; }
.roulette-board .bet:hover:not(:disabled), .roulette-board .bet:focus-visible {
  z-index: 2;
  outline: 2px solid #ffe1a3;
  outline-offset: -2px;
}
.roulette-board .bet:disabled { opacity: .8; }
.bet .placed-chip {
  position: absolute;
  z-index: 1;
  right: 1px;
  bottom: 1px;
  display: grid;
  place-items: center;
  height: 23px;
  min-width: 23px;
  padding: 0 3px;
  background: #d6a963;
  color: #231514;
  border: 2px dashed #fff3cd;
  border-radius: 50%;
  font-size: 9px;
  box-shadow: 0 2px 5px #0008;
  pointer-events: none;
}
.roulette-tray {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 3px;
}
.roulette-tray .chips { justify-content: center; margin: 4px 0; }
.roulette-chips .chip {
  --chip-color: #757783;
  --chip-mark: #c7c7ce;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--chip-mark) 0deg 11deg, var(--chip-color) 11deg 35deg, var(--chip-mark) 35deg 45deg);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 #111016, 0 5px 8px #0009;
  font-size: 11px;
}
.roulette-chips .chip::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--chip-color);
  border: 1px dashed #ffffff8c;
}
.roulette-chips .chip span { z-index: 1; text-shadow: 0 1px 2px #000; }
.roulette-chips .chip[value="5"] { --chip-color: #a35f22; --chip-mark: #f2b370; }
.roulette-chips .chip[value="25"] { --chip-color: #934676; --chip-mark: #ef9bcf; }
.roulette-chips .chip[value="100"] { --chip-color: #13687b; --chip-mark: #7bdae3; }
.roulette-chips .chip[value="500"] { --chip-color: #863e2c; --chip-mark: #de9873; }
.roulette-chips .chip[value="2000"] { --chip-color: #27262b; --chip-mark: #c8c7c9; }
.roulette-chips .chip[aria-pressed="true"] { outline: 2px solid #ffdb9b; outline-offset: 3px; }
.tray-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--ink);
  border: 0;
  font-size: 12px;
}
.tray-button span {
  display: grid;
  place-items: center;
  border: 1px solid #a88d86;
  border-radius: 50%;
  min-width: 36px;
  height: 36px;
  font-size: 16px;
}
@media (min-width: 1250px) {
  .roulette-layout { grid-template-columns: minmax(250px, .65fr) minmax(585px, 1.35fr); }
}
@media (max-width: 520px) {
  .roulette-chips .chip { width: 39px; height: 39px; min-width: 39px; }
}
.placed-chip[data-value="1"] { background: #747683; color: #fff; }
.placed-chip[data-value="5"] { background: #a35f22; color: #fff; }
.placed-chip[data-value="25"] { background: #934676; color: #fff; }
.placed-chip[data-value="100"] { background: #13687b; color: #fff; }
.placed-chip[data-value="500"] { background: #863e2c; color: #fff; }
.placed-chip[data-value="2000"] { background: #27262b; color: #fff; }
.tile-status {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: 13px;
  padding: 3px 7px;
  border: 1px solid #ffd6b8;
  border-radius: 5px;
  background: #471f26;
  color: #ffe5d0;
  font-size: 11px;
  font-weight: 750;
}
