.roulette-page {
  --bg: #071a16;
  --surface: #102a23;
  --surface-high: #18382d;
  --line: #365344;
  --text: #f9f1dc;
  --muted: #9fb7a8;
  --lime: #dfb86c;
  --ink: #142d23;
  color-scheme: dark;
  background: radial-gradient(
    ellipse at top,
    #244538 0,
    #091e19 45%,
    #051410 100%
  );
  color: var(--text);
}
.roulette-shell {
  max-width: 1160px;
}
.roulette-page .site-header {
  border-color: #ba945c30;
}
.roulette-page .brand-mark {
  background: #ddbc75;
}
.roulette-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 26px 0 20px;
}
.roulette-title h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 5px 0 0;
}
.title-dot {
  color: #e2ba6b;
}
.roulette-title .eyebrow {
  color: #a8bcaa;
}
.table-number {
  font: 10px monospace;
  letter-spacing: 0.14em;
  color: #bba57b;
  padding-bottom: 8px;
}
.casino-table {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 34px;
  border: 7px solid #493121;
  outline: 1px solid #a17c43;
  box-shadow:
    inset 0 0 0 2px #dbb96c,
    0 30px 80px #0008,
    0 0 60px #ac884112;
  background: radial-gradient(
    ellipse at 50% 18%,
    #205d42 0%,
    #174e37 35%,
    #0c3526 80%
  );
  padding: 16px 32px 10px;
}
.casino-table::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #e0c68360;
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(
    45deg,
    #d5b98803 0 1px,
    transparent 1px 4px
  );
}
.table-trim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font: 9px monospace;
  letter-spacing: 0.18em;
  color: #dec087b3;
}
.table-trim.bottom {
  margin-top: 24px;
}
.wheel-panel {
  position: relative;
  scroll-margin-top: 16px;
}
.wheel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 0 0;
  font-size: 12px;
  color: #ffebbb;
}
.live-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #e9c777;
  box-shadow: 0 0 14px #e4bd69;
}
.table-pool {
  margin-left: auto;
  white-space: nowrap;
  color: #c8d7bd;
  font-size: 11px;
}
.wheel-scene {
  height: 365px;
  max-width: 620px;
  width: 100%;
  margin: auto;
  position: relative;
}
.wheel-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.wheel-callout {
  position: absolute;
  right: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #071a16e6;
  border: 1px solid #b9975e77;
  padding: 10px 17px;
  border-radius: 14px;
  box-shadow: 0 0 28px #dfb96f28;
  pointer-events: none;
}
.wheel-callout span {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.wheel-callout strong {
  font: 700 32px system-ui;
  color: #f2cb77;
  line-height: 1;
}
.wheel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dbbd732e;
  padding: 4px 0 16px;
  min-height: 43px;
  color: #ced1af;
  font-size: 10px;
  letter-spacing: 0.09em;
}
.roulette-history {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  max-width: 70%;
  padding: 3px;
}
.history-number {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff35;
  font-size: 10px;
  letter-spacing: 0;
}
.history-number:first-child {
  outline: 1px solid #f1cd7f;
  outline-offset: 2px;
}
.play-panel,
.setup-panel {
  padding: 22px 0 4px;
  min-width: 0;
}
.setup-panel {
  max-width: 700px;
  margin: auto;
}
.setup-panel h2,
.play-panel h2 {
  font-size: 1.65rem;
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.setup-panel > .muted,
.play-panel > .muted {
  font-size: 13px;
  margin-bottom: 14px;
}
.input-row {
  display: flex;
  gap: 9px;
}
.input-row input {
  min-width: 0;
}
.input-row button {
  width: 52px;
  flex-shrink: 0;
  padding: 0;
}
.setup-players {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}
.setup-players li {
  background: #061b176b;
  border: 1px solid #c6ba6b36;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.setup-players button {
  background: transparent;
  min-height: 32px;
  padding: 0 5px;
  color: #dcc184;
  font-size: 23px;
}
.roulette-page details {
  border-bottom: 1px solid #dcc08125;
}
.roulette-page summary {
  padding: 15px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-grid label {
  font-size: 12px;
  margin: 0;
}
.settings-grid input,
.settings-grid select {
  margin-top: 5px;
}
.settings-grid small {
  display: block;
  font-size: 10px;
  color: #a6bfaa;
  font-weight: 400;
  margin-top: 4px;
}
.sound-setting {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sound-setting input {
  width: 20px;
}
.rule-note {
  font-size: 11px;
  line-height: 1.7;
  color: #b3c6b1;
  margin: 18px 0;
}
.roulette-page input,
.roulette-page select {
  background: #0b241b;
  border-color: #bba97048;
  color: #f6edd9;
  min-height: 44px;
  font-size: 14px;
}
.roulette-page .secondary {
  background: #0c2b2080;
  border-color: #d8c38a4d;
  color: #f9eed5;
}
.gold-button {
  background: linear-gradient(135deg, #f3d69b, #d6a657) !important;
  color: #203021 !important;
  border: 1px solid #f0dba1 !important;
  box-shadow:
    0 4px 0 #84642e,
    0 0 26px #e1bd6425;
  font-size: 14px;
}
.gold-button:disabled {
  background: #666546 !important;
  color: #c2c2a9 !important;
  box-shadow: 0 3px 0 #303e2e;
  opacity: 0.65;
}
.round-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.round-heading .text-button {
  font-size: 11px;
  color: #cfb784;
}
.player-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.player-tab {
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: 39px;
  padding: 7px 13px;
  background: #08241c;
  border: 1px solid #abbd8a55;
  color: #e0e6d4;
  border-radius: 30px;
  font-size: 12px;
  gap: 7px;
}
.player-tab::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--player-color, #e6bb66);
  border: 1px solid #fff7;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--player-color, #e6bb66);
}
.player-tab.active {
  border-color: var(--player-color, #e6bb66);
  background: #15392b;
  box-shadow: 0 0 0 2px #dfc18219;
}
.player-tab:disabled {
  opacity: 1;
  cursor: default;
}
.stake-controls {
  display: flex;
  align-items: end;
  gap: 20px;
  margin: 10px 0 17px;
}
.stake-controls > label {
  font-size: 11px;
  width: 136px;
  margin: 0;
}
.stake-controls input {
  margin-top: 5px;
}
.chip-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 5px;
}
.chip-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  border: 4px dashed #fffbd2cc;
  background: #be4456;
  color: #fff;
  font-size: 15px;
  padding: 0;
  box-shadow:
    0 5px 0 #671f2f,
    0 8px 13px #0006;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.chip-button:nth-child(2) {
  background: #2e9c92;
  box-shadow:
    0 5px 0 #15514c,
    0 8px 13px #0006;
}
.chip-button:nth-child(3) {
  background: #8770bf;
  box-shadow:
    0 5px 0 #49336b,
    0 8px 13px #0006;
}
.chip-button[aria-pressed="true"] {
  outline: 2px solid #ffe0a0;
  outline-offset: 4px;
  transform: translateY(-3px);
}
.chip-hint {
  font-size: 11px;
  color: #b5c7ad;
  margin-left: auto;
  padding-bottom: 13px;
}
.felt-divider {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0 12px;
  font: 9px monospace;
  letter-spacing: 0.16em;
  color: #dbc792;
}
.bet-layout {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 58px;
  gap: 5px;
  padding: 13px;
  background: #072a1db3;
  border: 2px solid #d9c68b8c;
  border-radius: 14px;
  box-shadow:
    0 5px 0 #052116,
    0 10px 20px #0003;
  transition: box-shadow 0.3s;
}
.number-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(50px, auto));
  grid-auto-flow: column;
  gap: 4px;
}
.bet-layout > #zero {
  grid-column: 1;
  grid-row: 1;
}
.column-grid {
  grid-column: 3;
  display: grid;
  grid-template-rows: repeat(3, minmax(50px, auto));
  gap: 4px;
}
.dozen-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.outside-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.bet-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 45px;
  min-width: 0;
  padding: 6px 2px;
  border: 1px solid #d1dfb36b;
  border-radius: 4px;
  background: #104833;
  color: #faf5e6;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffff12;
  transition:
    filter 0.1s,
    box-shadow 0.1s;
}
.field-label {
  line-height: 1.2;
}
.number-grid .field-label,
#zero .field-label {
  font-size: 17px;
}
.column-grid .field-label {
  font-size: 9px;
}
.bet-cell.red,
.result-number.red,
.history-number.red {
  background: linear-gradient(135deg, #ca4354, #8b2032);
  color: #fff;
}
.bet-cell.black,
.result-number.black,
.history-number.black {
  background: linear-gradient(135deg, #25342c, #101d16);
  color: #fff;
}
.bet-cell.green,
.result-number.green,
.history-number.green {
  background: linear-gradient(135deg, #2d9d69, #11613e);
  color: #fff;
}
.bet-cell:hover:not(:disabled) {
  filter: brightness(1.2);
  box-shadow:
    inset 0 0 0 1px #ffe3a0,
    0 0 12px #dec58933;
}
.bet-cell:disabled {
  opacity: 1;
  cursor: default;
}
.bet-cell.has-bet {
  border-color: #eacd80;
  box-shadow: inset 0 0 0 1px #efce7a;
}
.bet-cell.winner {
  border-color: #ffdf88;
  box-shadow:
    inset 0 0 0 2px #ffdc74,
    0 0 14px #e8c2757a;
}
.field-chips {
  display: flex;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
  width: 100%;
  padding: 2px 0;
}
.field-chip {
  min-width: 24px;
  min-height: 24px;
  padding: 3px 5px;
  border: 2px dashed #fff9;
  border-radius: 50%;
  background: var(--player-color);
  color: #071912;
  font: bold 8px system-ui;
  line-height: 1.2;
  box-shadow:
    0 2px 0 #0009,
    0 3px 6px #0006;
  display: grid;
  place-items: center;
}
.field-chip.combination-chip {
  border-radius: 6px;
}
.bet-cell.just-placed .field-chip {
  animation: chip-drop 0.3s cubic-bezier(0.2, 0.8, 0.4, 1);
}
@keyframes chip-drop {
  from {
    transform: translateY(-16px) scale(1.2);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.combination-panel summary {
  display: flex;
  justify-content: space-between;
  gap: 7px;
}
.combination-panel summary span {
  font-size: 10px;
  color: #c1bf93;
}
.combination-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 90px;
  gap: 10px;
  padding-bottom: 15px;
  align-items: end;
}
.combination-controls label {
  font-size: 11px;
  margin: 0;
}
.combination-controls button {
  min-height: 44px;
  font-size: 12px;
  padding: 8px;
}
.bets-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-size: 12px;
  margin: 12px 0 2px;
}
.bets-heading .text-button {
  font-size: 10px;
  color: #c4b587;
}
.bet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bet-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #d5c88529;
  background: #09281d99;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 10px;
}
.bet-list button {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ddc582;
  font-size: 17px;
}
.bet-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin: 15px 0 18px;
}
.bet-actions button {
  font-size: 13px;
}
.all-bets-panel {
  margin-top: 20px;
  border-top: 1px solid #dec18052;
  padding-top: 20px;
}
.all-bets-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.all-bets-heading h3 {
  font-size: 20px;
  margin: 3px 0 12px;
}
.all-bets-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 3px;
  color: #bfa574;
}
.pool-value {
  font-size: 13px;
  color: #f4d391;
}
.all-bets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wager-player {
  min-width: 0;
  border: 1px solid #acc69130;
  border-left: 3px solid var(--player-color);
  background: #06221880;
  border-radius: 10px;
  padding: 12px;
}
.wager-player-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12px;
}
.wager-player-heading strong {
  overflow-wrap: anywhere;
}
.wager-player-heading span {
  font-size: 10px;
  color: #c0d0b5;
  white-space: nowrap;
}
.wager-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wager-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 7px;
  background: #051a1466;
  border: 1px solid #b6c79335;
  border-radius: 6px;
  font-size: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.wager-entry .wager-stake {
  font-weight: 700;
  color: #f3d48c;
}
.wager-odds {
  color: #aabda3;
}
.wager-entry.won {
  border-color: #e5c475;
  background: #73612b55;
}
.no-wager {
  font-size: 11px;
  color: #a1b499;
  margin: 0;
}
.spinning-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 0 10px;
}
.spinning-panel h2 {
  font-size: 19px;
  margin: 0 0 4px;
}
.spinning-panel p {
  font-size: 12px;
  color: #bacbb0;
  margin: 0;
}
.spin-orbit {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid #ccb27455;
  border-top-color: #ebc87b;
  border-radius: 50%;
  animation: orbit 0.8s linear infinite;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.casino-table[data-phase="spinning"] {
  box-shadow:
    inset 0 0 0 2px #dbb96c,
    0 30px 80px #0008,
    0 0 60px #d9a55a28;
}
.casino-table[data-phase="spinning"] .live-dot {
  animation: status-pulse 1s ease-in-out infinite;
}
@keyframes status-pulse {
  50% {
    box-shadow: 0 0 22px #ffca62;
    opacity: 0.6;
  }
}
.result-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 25px 0;
}
.result-heading h2 {
  font-size: 30px;
}
.result-number {
  width: 79px;
  height: 79px;
  display: grid;
  place-items: center;
  flex: 0 0 79px;
  font-size: 40px;
  font-weight: 700;
  border-radius: 15px;
  border: 2px solid #f9d58b;
  box-shadow:
    0 5px 0 #0a1d12,
    0 0 35px #e6c07144;
}
.result-reveal .result-number {
  animation: number-arrives 0.55s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}
@keyframes number-arrives {
  from {
    transform: scale(0.6) rotate(-12deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.settlement {
  background: #08271d88;
  border: 1px solid #dfc3883d;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.settlement h3 {
  font-size: 15px;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.settlement p {
  font-size: 12px;
  line-height: 1.6;
  margin: 7px 0;
}
.settlement .payout {
  color: #f3d087;
}
.allocation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 85px;
  gap: 8px;
  margin-top: 10px;
}
.allocation label {
  font-size: 11px;
  margin: 0;
}
.allocation button {
  grid-column: 1/-1;
}
.settlement button {
  font-size: 12px;
  padding: 9px;
  min-height: 40px;
}
.settlement .text-button {
  color: #cabb8e;
  display: block;
  margin-top: 5px;
}
.confirm-drink {
  width: 100%;
  margin-top: 9px;
}
.roulette-scores {
  margin-top: 28px;
}
.roulette-scores h2 {
  font-size: 19px;
}
.roulette-scores ul {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.roulette-scores li {
  background: #102b219c;
  border: 1px solid #b9a47230;
  border-radius: 12px;
  padding: 15px;
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.roulette-scores strong {
  display: block;
  font-size: 14px;
}
.roulette-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 10px;
  color: #91a58e;
}
.dialog-actions {
  display: flex;
  gap: 10px;
}
.roulette-page dialog {
  background: #10291f;
  color: #f9efd9;
}
.roulette-page .notice {
  background: #614721;
  color: #ffe3ad;
}
.roulette-page .skip-link:not(:focus) {
  clip-path: inset(50%);
}
#wheel-fallback {
  text-align: center;
  padding: 25px;
  font-size: 11px;
}
.fallback-wheel {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 12px solid #d1a960;
  margin: auto auto 14px;
  display: grid;
  place-items: center;
  font-size: 60px;
  background: repeating-conic-gradient(#ab3346 0 10deg, #172c22 10deg 20deg);
  box-shadow: inset 0 0 0 42px #173e2a;
}
.fallback-wheel.spinning {
  animation: orbit 0.7s linear infinite;
}
@media (max-width: 900px) {
  .casino-table {
    padding: 12px 20px 10px;
    border-width: 6px;
  }
  .bet-layout {
    grid-template-columns: 38px minmax(0, 1fr) 45px;
    padding: 9px;
    gap: 3px;
  }
  .number-grid {
    gap: 3px;
    grid-template-rows: repeat(3, minmax(50px, auto));
  }
  .number-grid .field-label {
    font-size: 14px;
  }
  .field-chip {
    min-width: 20px;
    min-height: 20px;
    font-size: 7px;
    padding: 2px;
  }
  .chip-hint {
    display: none;
  }
  .column-grid .field-label {
    font-size: 8px;
  }
}
@media (max-width: 650px) {
  .roulette-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .roulette-title {
    margin: 20px 0 15px;
  }
  .roulette-title h1 {
    font-size: 3rem;
  }
  .roulette-title .eyebrow {
    font-size: 9px;
  }
  .table-number {
    display: none;
  }
  .casino-table {
    padding: 10px 13px 5px;
    border-radius: 23px;
    border-width: 5px;
  }
  .casino-table::before {
    inset: 5px;
    border-radius: 16px;
  }
  .table-trim {
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  .wheel-top {
    font-size: 10px;
    padding-top: 10px;
    align-items: start;
    flex-wrap: wrap;
  }
  .table-pool {
    font-size: 9px;
  }
  .wheel-scene {
    height: 285px;
    max-width: 420px;
  }
  .wheel-bottom {
    font-size: 9px;
    letter-spacing: 0;
    flex-wrap: wrap;
  }
  .roulette-history {
    max-width: 100%;
  }
  .play-panel,
  .setup-panel {
    padding-top: 19px;
  }
  .round-heading h2 {
    font-size: 1.4rem;
  }
  .round-heading .text-button {
    font-size: 10px;
  }
  .stake-controls {
    gap: 18px;
    margin-bottom: 12px;
  }
  .stake-controls > label {
    width: 115px;
    font-size: 10px;
  }
  .chip-controls {
    gap: 8px;
  }
  .chip-button {
    width: 40px;
    min-height: 40px;
    height: 40px;
    flex-basis: 40px;
    border-width: 3px;
    font-size: 12px;
  }
  .bet-layout {
    grid-template-columns: 1fr;
    padding: 8px;
    gap: 4px;
  }
  .bet-layout > #zero {
    grid-column: 1;
    grid-row: auto;
  }
  .number-grid {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 4px;
  }
  .number-grid .bet-cell {
    min-height: 42px;
  }
  .number-grid .field-label {
    font-size: 15px;
  }
  .column-grid {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 4px;
  }
  .column-grid .field-label {
    font-size: 9px;
  }
  .dozen-grid,
  .outside-grid {
    grid-column: 1;
  }
  .outside-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .field-chip {
    min-width: 24px;
    min-height: 24px;
    font-size: 8px;
  }
  .bet-cell {
    min-height: 40px;
    font-size: 10px;
  }
  .felt-divider {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .combination-controls {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .combination-panel summary {
    font-size: 11px;
  }
  .bets-heading {
    font-size: 10px;
  }
  .bets-heading .text-button {
    font-size: 9px;
  }
  .bet-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bet-actions button {
    min-height: 45px;
    font-size: 12px;
  }
  .all-bets {
    grid-template-columns: 1fr;
  }
  .all-bets-heading h3 {
    font-size: 19px;
  }
  .pool-value {
    font-size: 11px;
  }
  .wager-list {
    gap: 6px;
  }
  .wager-entry {
    font-size: 11px;
    padding: 6px 8px;
  }
  .settings-grid {
    gap: 11px;
  }
  .settings-grid label {
    font-size: 10px;
  }
  .settings-grid small {
    font-size: 9px;
  }
  .roulette-page input,
  .roulette-page select {
    font-size: 13px;
    padding: 10px;
    min-height: 42px;
  }
  .roulette-foot {
    flex-direction: column;
    gap: 7px;
  }
  .wheel-callout {
    right: 3px;
    bottom: 14px;
    padding: 7px 10px;
  }
  .wheel-callout span {
    font-size: 8px;
  }
  .wheel-callout strong {
    font-size: 25px;
  }
  .result-heading h2 {
    font-size: 25px;
  }
  .roulette-scores .section-heading {
    align-items: start;
  }
  .roulette-scores .small {
    max-width: 150px;
    text-align: right;
  }
}
@media (max-width: 360px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stake-controls {
    gap: 12px;
  }
  .chip-button {
    width: 35px;
    height: 35px;
    min-height: 35px;
    flex-basis: 35px;
  }
  .chip-controls {
    gap: 7px;
  }
  .wheel-scene {
    height: 245px;
  }
  .roulette-title h1 {
    font-size: 2.6rem;
  }
  .round-heading {
    gap: 8px;
  }
  .round-heading .text-button {
    max-width: 82px;
  }
  .table-pool {
    white-space: normal;
  }
  .table-trim span:last-child {
    font-size: 6px;
  }
  .player-tabs {
    gap: 6px;
  }
  .player-tab {
    padding: 6px 10px;
    font-size: 11px;
  }
  .pool-value {
    text-align: right;
    max-width: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin-orbit,
  .fallback-wheel.spinning,
  .casino-table[data-phase="spinning"] .live-dot,
  .bet-cell.just-placed .field-chip,
  .result-reveal .result-number {
    animation: none;
  }
  .chip-button {
    transition: none;
  }
}
.wheel-callout {
  z-index: 2;
}
.wheel-bottom > span {
  flex: 1;
  min-width: 0;
}
.roulette-history {
  min-width: 0;
  flex-shrink: 1;
}
@media (max-width: 650px) {
  .wheel-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .roulette-history {
    max-width: 100%;
    justify-self: stretch;
    width: 100%;
  }
  .roulette-history:empty {
    display: none;
  }
}
/* Round rewards and recipient inboxes. */
#results {
  margin: 20px 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid #e7c47955;
  scroll-margin-top: 20px;
}
.result-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 18px;
  border: 1px solid #e1bd6f88;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 80% 30%, #88703755, transparent 65%),
    linear-gradient(125deg, #163c2c, #0a241a);
  overflow: hidden;
  box-shadow:
    0 8px 28px #0004,
    inset 0 1px 0 #ffdf9430;
}
.result-hero .result-heading {
  margin: 0;
}
.round-prize {
  display: flex;
  flex-direction: column;
  text-align: right;
  color: #f6d896;
}
.round-prize > span {
  font: 9px monospace;
  letter-spacing: 0.14em;
}
.round-prize strong {
  font:
    700 48px "Space Grotesk",
    system-ui;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.round-prize small {
  font-size: 11px;
  color: #c8cfad;
}
.settlement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.payout-panel,
.receipt-panel {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #d4bd7755;
  min-width: 0;
  background: #08271bd9;
  box-shadow: 0 8px 22px #0003;
}
.payout-panel {
  background:
    radial-gradient(ellipse at 20% 0%, #725f2855, transparent 70%), #102b1d;
  border-color: #d5af6a88;
}
.payout-panel > .eyebrow,
.receipt-heading > .eyebrow {
  color: #e2be79;
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.winner-selectors {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.winner-pill {
  font-size: 11px;
  min-height: 36px;
  padding: 6px 9px;
  gap: 6px;
  border: 1px solid #a1ae7655;
  background: #0a2319;
  border-radius: 24px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.winner-pill.active {
  background: #dec180;
  color: #21331e;
  border-color: #f2d69d;
}
.winner-pill:disabled {
  opacity: 0.65;
}
.winner-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--player-color);
  color: #0a2417;
  font-size: 8px;
  font-weight: 700;
}
.round-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--player-color);
  border: 2px solid #fff6;
  color: #0a271b;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 0 #0005;
}
.winner-bank {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 14px 0 22px;
}
.prize-ring {
  --progress: 0deg;
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #163622 63%, transparent 64%),
    conic-gradient(#f5cd79 var(--progress), #93835344 0);
  border: 1px solid #f0cb8344;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px #e9b76218;
}
.prize-ring strong {
  font-size: 39px;
  line-height: 1.1;
  color: #ffdda0;
  letter-spacing: -0.05em;
}
.prize-ring > span {
  font-size: 10px;
  color: #bec5a5;
}
.bank-copy {
  min-width: 0;
}
.bank-copy .round-avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
  margin-bottom: 8px;
}
.bank-copy h3 {
  font-size: 19px;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.bank-copy p {
  font-size: 11px;
  line-height: 1.6;
  color: #bcc6a5;
  margin: 0;
}
.recipient-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.recipient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.recipient-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 5px 10px;
  background: #061d14;
  border: 1px solid #b6c49144;
  border-radius: 13px;
  color: #eeecd4;
  min-width: 0;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.recipient-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.recipient-card small {
  font-size: 9px;
  color: #adbea3;
  font-weight: 400;
}
.recipient-card.selected {
  border: 2px solid #eacd89;
  padding: 12px 4px 9px;
  box-shadow: 0 0 18px #e1b55733;
  background: #294126;
}
.recipient-card.selected::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 10px;
  color: #ffda88;
}
.recipient-card:hover {
  transform: translateY(-2px);
}
.allocation-modern {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 20px;
  gap: 9px;
}
.allocation-modern .amount-label {
  font-size: 11px;
}
.sip-counter {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  margin-top: 7px;
}
.sip-counter input {
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  padding: 8px;
  appearance: textfield;
}
.sip-counter input::-webkit-inner-spin-button {
  appearance: none;
}
.amount-step {
  min-height: 45px;
  padding: 0;
  font-size: 25px;
  border: 1px solid #d3bd7444;
  background: #102b1d;
  color: #ecd196;
}
.amount-presets {
  display: flex;
  gap: 7px;
  justify-content: center;
}
.amount-preset {
  min-height: 32px;
  padding: 5px 15px;
  font-size: 11px;
  border-radius: 18px;
  border: 1px solid #bbb47f44;
  background: #203824;
  color: #d9d4b8;
}
.allocation-modern .send-sips {
  width: 100%;
  margin-top: 7px;
  min-height: 52px;
  border-radius: 11px;
  font-size: 14px;
}
.waive-button {
  display: block;
  width: 100%;
  font-size: 10px;
  color: #a5b291;
  padding: 10px 0 0;
}
.receipt-heading h3 {
  font-size: 23px;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.receipt-card {
  padding: 15px;
  border: 1px solid #bbceac38;
  border-radius: 13px;
  background: #0d2e22;
  margin-bottom: 10px;
}
.receipt-card:last-child {
  margin-bottom: 0;
}
.receipt-card.pending {
  border-color: #73cfc46b;
  background: linear-gradient(135deg, #14443a, #0a2c23);
}
.receipt-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.receipt-card-heading > strong {
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1;
}
.receipt-count {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: #a5e6d4;
}
.receipt-card.cleared .receipt-count {
  font-size: 19px;
  color: #82aa86;
}
.receipt-sources {
  padding: 0;
  list-style: none;
  margin: 13px 0 10px;
  border-top: 1px solid #b5d4af22;
}
.receipt-sources:empty {
  display: none;
}
.receipt-sources li {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding-top: 8px;
  font-size: 10px;
  color: #bdd0b8;
}
.receipt-sources li span {
  overflow-wrap: anywhere;
}
.receipt-sources li strong {
  color: #e7dca6;
  font-size: 11px;
}
.receipt-card .confirm-drink {
  margin: 9px 0 0;
  min-height: 40px;
  background: #9cdac4;
  color: #0d3125;
  border: 1px solid #c3eddb;
  font-size: 12px;
  box-shadow: 0 3px 0 #507d64;
}
.receipt-clear-note,
.receipt-ack {
  display: block;
  font-size: 10px;
  color: #98b39b;
  margin: 10px 0 0;
}
.payout-done-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid #aacaa477;
  background: #2b4f3080;
  color: #d9e4ad;
  font-size: 34px;
  margin: 28px auto 18px;
}
.payout-panel > h3 {
  text-align: center;
  font-size: 23px;
  margin-bottom: 8px;
}
.payout-done-copy {
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #b1c5a5;
  padding-bottom: 15px;
}
.cap-note {
  font-size: 10px;
  color: #c4b88c;
}
.round-finish {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #061e1580;
  border: 1px solid #c3ae7044;
}
.round-finish p {
  font-size: 11px;
  color: #b1c2a2;
  margin: 0;
}
.round-finish button {
  width: auto;
  min-width: 190px;
  flex-shrink: 0;
  font-size: 12px;
}
.round-is-complete .round-finish {
  border-color: #a6d89b88;
  background: #25453080;
}
.round-is-complete .round-finish p {
  color: #d9ecc2;
}
.round-feedback {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 30px);
  width: max-content;
  z-index: 1000;
  background: linear-gradient(135deg, #eace88, #b9d8a4);
  color: #183020;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #fff0b7;
  padding: 16px 24px;
  border-radius: 30px;
  box-shadow:
    0 7px 0 #09211899,
    0 15px 40px #0007;
  pointer-events: none;
  text-align: center;
}
.feedback-pop {
  animation: feedback-arrives 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.3);
}
@keyframes feedback-arrives {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}
.receipt-arrival {
  animation: receipt-hit 0.7s ease-out;
}
@keyframes receipt-hit {
  0% {
    box-shadow: 0 0 0 0 #e8d897aa;
    transform: scale(0.98);
  }
  50% {
    box-shadow: 0 0 0 7px #e8d89700;
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    transform: scale(1);
  }
}
.prize-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.prize-sparks i {
  position: absolute;
  left: calc(8% + var(--i) * 5.5%);
  top: 20%;
  width: 5px;
  height: 9px;
  background: #f6d18b;
  opacity: 0;
  transform: rotate(calc(var(--i) * 27deg));
}
.result-reveal .prize-sparks i {
  animation: prize-spark 0.9s ease-out both;
  animation-delay: calc(var(--i) * 15ms);
}
@keyframes prize-spark {
  0% {
    opacity: 0;
    translate: 0 10px;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    translate: calc((var(--i) - 8) * 7px) -80px;
    rotate: 180deg;
  }
}
@media (max-width: 800px) {
  .settlement-layout {
    grid-template-columns: 1fr;
  }
  .payout-panel,
  .receipt-panel {
    padding: 18px;
  }
  .result-hero {
    padding: 18px;
  }
  .round-prize strong {
    font-size: 39px;
  }
  .prize-ring {
    width: 118px;
    height: 118px;
    flex-basis: 118px;
  }
  .recipient-grid {
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  }
  .round-finish {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .round-finish button {
    width: 100%;
    min-width: 0;
  }
  .round-finish p {
    text-align: center;
  }
  .round-feedback {
    font-size: 11px;
    padding: 13px 17px;
  }
}
@media (max-width: 400px) {
  .result-hero {
    gap: 12px;
    padding: 13px;
    align-items: start;
  }
  .result-hero .result-heading {
    gap: 10px;
    flex-direction: column;
    align-items: start;
  }
  .result-hero .result-number {
    width: 57px;
    height: 57px;
    flex-basis: 57px;
    font-size: 30px;
    border-radius: 12px;
  }
  .result-hero .result-heading h2 {
    font-size: 20px;
  }
  .result-hero .result-heading .eyebrow {
    font-size: 8px;
  }
  .round-prize {
    padding-top: 10px;
  }
  .round-prize > span {
    font-size: 7px;
    letter-spacing: 0.05em;
  }
  .round-prize strong {
    font-size: 38px;
  }
  .round-prize small {
    font-size: 9px;
    max-width: 90px;
  }
  .payout-panel,
  .receipt-panel {
    padding: 14px;
  }
  .winner-bank {
    gap: 13px;
  }
  .prize-ring {
    width: 99px;
    height: 99px;
    flex-basis: 99px;
  }
  .prize-ring strong {
    font-size: 32px;
  }
  .bank-copy h3 {
    font-size: 16px;
  }
  .recipient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recipient-card small {
    font-size: 9px;
  }
  .receipt-card {
    padding: 12px;
  }
  .receipt-card .round-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 11px;
  }
  .receipt-heading h3 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-pop,
  .receipt-arrival,
  .result-reveal .prize-sparks i {
    animation: none;
  }
  .recipient-card {
    transition: none;
  }
}
.sip-counter .amount-step {
  grid-column: auto;
}
.roulette-history {
  min-width: 34px;
}
@media (max-width: 400px) {
  .recipient-grid {
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  }
}
