:root {
  --ultra-ease: cubic-bezier(.18, .82, .18, 1);
  --ultra-spring: cubic-bezier(.2, 1.34, .42, 1);
}

/* Shared cabinet layer */
.ultra-machine {
  --pointer-x-shift: 0px;
  --pointer-y-shift: 0px;
  --pointer-light-x: 50%;
  --pointer-light-y: 24%;
  --pointer-card-x: 50%;
  --pointer-x-angle: 0deg;
  --pointer-y-angle: 0deg;
  --ultra-accent: var(--game-accent, #e7b63b);
  transform-style: preserve-3d;
}

.ultra-machine > :not(.ultra-atmosphere, .round-flash, .ultra-win-particle, .game-focus-button) {
  position: relative;
  z-index: 2;
}

.ultra-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ultra-atmosphere::before {
  position: absolute;
  inset: -30%;
  content: "";
  background:
    radial-gradient(circle at var(--pointer-light-x) var(--pointer-light-y),
      color-mix(in srgb, var(--ultra-accent) 14%, transparent), transparent 31%),
    conic-gradient(from 100deg at 50% 42%, transparent, rgba(255, 255, 255, .16), transparent 19%);
  opacity: .72;
  transform: translate(var(--pointer-x-shift), var(--pointer-y-shift));
  transition: transform 220ms ease-out;
}

.ultra-atmosphere i {
  position: absolute;
  left: var(--ambient-x);
  top: var(--ambient-y);
  width: var(--ambient-size);
  height: var(--ambient-size);
  border: 1px solid color-mix(in srgb, var(--ultra-accent) 48%, transparent);
  border-radius: 50%;
  opacity: .2;
  animation: ultraAmbientFloat var(--ambient-speed) ease-in-out infinite alternate;
  animation-delay: var(--ambient-delay);
}

.ultra-machine-status {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 36px;
  margin: -7px 0 13px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--ultra-accent) 24%, var(--line));
  background: color-mix(in srgb, var(--ultra-accent) 4%, rgba(255, 255, 255, .82));
  color: #5b6878;
  font-size: 9px;
  font-weight: 900;
}

.ultra-machine-status > span {
  display: flex;
  gap: 7px;
  align-items: baseline;
  white-space: nowrap;
}

.ultra-machine-status small {
  color: inherit;
  font-size: 8px;
  font-weight: 900;
}

.ultra-machine-status strong {
  color: #17202e;
  font-size: 11px;
}

.ultra-machine-status .ultra-live {
  gap: 8px;
}

.ultra-machine-status .ultra-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #159b72;
  box-shadow: 0 0 0 4px rgba(21, 155, 114, .1);
}

.ultra-machine-status[data-phase="playing"] .ultra-live i {
  background: #e4a91c;
  animation: ultraLivePulse 700ms ease-in-out infinite alternate;
}

.ultra-machine-status[data-phase="win"] .ultra-live i {
  background: #f0b92d;
  box-shadow: 0 0 0 5px rgba(240, 185, 45, .16), 0 0 15px rgba(240, 185, 45, .5);
}

.ultra-machine-status[data-phase="lose"] .ultra-live i {
  background: #c8324d;
}

.ultra-bet-dock {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.ultra-stake-rail {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.ultra-stake-rail button {
  min-width: 29px;
  height: 23px;
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--ultra-accent) 30%, rgba(112, 125, 143, .34));
  border-radius: 4px;
  background: rgba(255, 255, 255, .84);
  color: #324054;
  font-size: 8px;
  font-weight: 950;
  cursor: pointer;
}

.ultra-stake-rail button:hover,
.ultra-stake-rail button:focus-visible {
  border-color: var(--ultra-accent);
  background: color-mix(in srgb, var(--ultra-accent) 14%, #fff);
  color: #111a27;
}

.ultra-stake-rail button:active {
  transform: translateY(1px);
}

.felt-machine .ultra-machine-status,
.baccarat-machine .ultra-machine-status,
.slot-machine .ultra-machine-status,
.skill-slot-machine .ultra-machine-status,
.video-poker-machine .ultra-machine-status {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .16);
  color: rgba(255, 255, 255, .62);
}

.felt-machine .ultra-machine-status strong,
.baccarat-machine .ultra-machine-status strong,
.slot-machine .ultra-machine-status strong,
.skill-slot-machine .ultra-machine-status strong,
.video-poker-machine .ultra-machine-status strong {
  color: #fff3bf;
}

.felt-machine .ultra-stake-rail button,
.baccarat-machine .ultra-stake-rail button,
.slot-machine .ultra-stake-rail button,
.skill-slot-machine .ultra-stake-rail button,
.video-poker-machine .ultra-stake-rail button {
  border-color: rgba(255, 255, 255, .23);
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .86);
}

.ultra-win-particle {
  position: absolute;
  z-index: 24;
  left: 50%;
  top: 46%;
  display: grid;
  width: var(--particle-size);
  height: var(--particle-size);
  place-items: center;
  color: var(--particle-color);
  font-size: var(--particle-size);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 3px 7px rgba(18, 25, 36, .22);
  pointer-events: none;
  animation: ultraParticleBurst 1050ms var(--ultra-ease) forwards;
}

.ultra-machine.ultra-impact {
  animation: ultraImpact 390ms var(--ultra-spring);
}

@keyframes ultraAmbientFloat {
  to { transform: translate(18px, -24px) scale(1.12); opacity: .04; }
}

@keyframes ultraLivePulse {
  to { transform: scale(1.25); opacity: .48; }
}

@keyframes ultraParticleBurst {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(0); opacity: 0; }
  13% { opacity: 1; }
  100% {
    transform: translate(
      calc(-50% + var(--particle-x)),
      calc(-50% + var(--particle-y))
    ) scale(.85) rotate(var(--particle-rotate));
    opacity: 0;
  }
}

@keyframes ultraImpact {
  35% { transform: translateY(-2px) scale(1.004); }
}

/* Scratch: a real nine-cell match ticket */
.prize-layer {
  display: block;
  padding: 42px 28px 24px;
  overflow: hidden;
  text-align: left;
}

.scratch-ticket-result {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.prize-layer .scratch-ticket-result > span {
  color: #152132;
  font-size: 15px;
  font-weight: 950;
}

.prize-layer .scratch-ticket-result > small {
  color: #546276;
  font-size: 9px;
}

.scratch-symbol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  height: 100%;
}

.prize-layer .scratch-symbol {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(17, 90, 68, .2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(236, 245, 242, .84));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}

.prize-layer .scratch-symbol::before {
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(31, 106, 84, .18);
  content: "";
}

.prize-layer .scratch-symbol i,
.prize-layer .scratch-symbol b {
  position: relative;
  z-index: 1;
}

.prize-layer .scratch-symbol i {
  color: rgba(13, 119, 86, .62);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.prize-layer .scratch-symbol b {
  color: #152132;
  font-size: clamp(14px, 2.1vw, 22px);
}

.prize-layer .scratch-symbol.winner {
  border-color: #dba71e;
  background: #fff2b8;
  box-shadow: inset 0 0 0 2px #f2c448, 0 0 19px rgba(226, 172, 29, .34);
  animation: scratchWinner 850ms var(--ultra-spring) both;
  animation-delay: calc(var(--scratch-index) * 35ms);
}

@keyframes scratchWinner {
  45% { transform: translateY(-3px) scale(1.03); }
}

/* Blackjack */
.blackjack-shoe-meter {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 22px;
  display: grid;
  grid-template-columns: auto 68px auto;
  gap: 7px;
  align-items: center;
  color: rgba(255, 255, 255, .56);
  font-size: 8px;
  font-weight: 950;
}

.blackjack-shoe-meter i {
  position: relative;
  width: 68px;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(0, 0, 0, .28);
}

.blackjack-shoe-meter b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e2ad28, #fff0a3);
  transition: width 260ms ease;
}

.blackjack-shoe-meter strong {
  min-width: 22px;
  color: #fff1ae;
  font-size: 9px;
}

.blackjack-table .casino-card {
  transform:
    perspective(700px)
    rotateX(var(--pointer-y-angle))
    rotateY(var(--pointer-x-angle));
  box-shadow: 0 14px 24px rgba(0, 0, 0, .23);
}

.blackjack-table .casino-card::after,
.baccarat-table .casino-card::after,
.poker-card .casino-card::after,
.highlow-table .casino-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .35) 47%, transparent 63%);
  background-position: var(--pointer-card-x) 50%;
  background-size: 220% 100%;
  content: "";
  opacity: .45;
  pointer-events: none;
}

/* Baccarat */
.baccarat-road-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .12);
}

.baccarat-road-stats span {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 4px;
  background: rgba(0, 0, 0, .13);
  color: rgba(255, 255, 255, .58);
  font-size: 8px;
  font-weight: 900;
}

.baccarat-road-stats strong {
  color: #fff0af;
}

.baccarat-side .casino-card {
  animation-duration: 360ms;
  transform-origin: 50% 120%;
}

.baccarat-machine .baccarat-table {
  min-height: 340px;
}

.baccarat-machine .baccarat-road {
  min-height: 38px;
  margin: 7px 0 0;
}

.baccarat-center {
  overflow: hidden;
}

.baccarat-center::after {
  position: absolute;
  inset: -40%;
  background: conic-gradient(transparent, rgba(241, 196, 77, .45), transparent 22%);
  content: "";
  animation: baccaratSeal 7s linear infinite;
}

.baccarat-center span {
  position: relative;
  z-index: 1;
}

@keyframes baccaratSeal {
  to { transform: rotate(360deg); }
}

/* Sic Bo: switchable professional betting market */
.sicbo-market {
  margin: 0 0 10px;
  border: 1px solid #d3dbe4;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 8px 22px rgba(26, 37, 51, .07);
}

.sicbo-market-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #d3dbe4;
}

.sicbo-market-tabs button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #d3dbe4;
  background: #eef2f5;
  color: #6c7888;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.sicbo-market-tabs button:last-child {
  border-right: 0;
}

.sicbo-market-tabs button.active {
  background: #172333;
  color: #fff1ae;
  box-shadow: inset 0 -3px #d9a821;
}

.sicbo-market-panel {
  display: none;
  min-height: 140px;
  padding: 9px;
}

.sicbo-market-panel.active {
  display: block;
  animation: sicboMarketIn 220ms var(--ultra-ease);
}

.sicbo-market .sicbo-board {
  margin: 0;
}

.sicbo-total-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.sicbo-total-grid button,
.sicbo-number-row button {
  display: grid;
  min-width: 0;
  min-height: 57px;
  place-items: center;
  padding: 4px;
  border: 1px solid #d3dbe4;
  background: #fff;
  color: #1a2432;
  cursor: pointer;
}

.sicbo-total-grid button span {
  font-size: 18px;
  font-weight: 950;
}

.sicbo-total-grid button strong,
.sicbo-number-row small {
  color: #7b8797;
  font-size: 8px;
  font-weight: 900;
}

.sicbo-dice-market {
  display: grid;
  gap: 8px;
}

.sicbo-dice-market > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.sicbo-market-label {
  display: grid;
  place-items: center start;
  padding: 0 9px;
  border-left: 3px solid #c9334d;
  background: #f2f4f7;
  color: #566273;
  font-size: 9px;
  font-weight: 950;
}

.sicbo-number-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.sicbo-number-row button {
  min-height: 36px;
  font-size: 16px;
  font-weight: 950;
}

.sicbo-total-grid button.selected,
.sicbo-number-row button.selected {
  border-color: #d3a01c;
  background: #fff0ad;
  box-shadow: inset 0 0 0 2px #e5b535;
}

.dice-dome::after {
  position: absolute;
  z-index: 4;
  inset: 11px 9% auto;
  height: 42%;
  border-radius: 50%;
  background: linear-gradient(110deg, rgba(255, 255, 255, .58), transparent 42%);
  content: "";
  pointer-events: none;
}

.dice-dome .die {
  border-bottom-width: 5px;
  transform:
    perspective(620px)
    rotateX(var(--die-rx, 14deg))
    rotateY(var(--die-ry, -10deg))
    rotateZ(var(--die-rz, 0deg));
  transition: transform 420ms var(--ultra-spring), box-shadow 420ms ease;
}

.dice-dome:not(.shaking) .die:hover {
  transform: perspective(620px) rotateX(8deg) rotateY(8deg) translateY(-4px);
  box-shadow: inset -10px -12px 18px rgba(39, 48, 61, .12), 0 28px 30px rgba(17, 28, 39, .31);
}

@keyframes sicboMarketIn {
  from { transform: translateY(5px); opacity: 0; }
}

/* Video poker */
.video-poker-machine {
  position: relative;
}

.video-poker-machine::after {
  position: absolute;
  z-index: 1;
  right: -25%;
  bottom: -48%;
  left: -25%;
  height: 62%;
  border: 1px solid rgba(95, 181, 255, .18);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(42, 137, 216, .14), transparent 64%);
  content: "";
  pointer-events: none;
}

.poker-card {
  transform-style: preserve-3d;
  transition: transform 180ms var(--ultra-spring), filter 180ms, box-shadow 180ms;
}

.poker-card:not(:disabled):hover {
  transform: translateY(-8px) rotateX(3deg);
}

.poker-card.held::before {
  position: absolute;
  z-index: 5;
  top: -10px;
  left: 50%;
  padding: 3px 9px;
  border: 1px solid #fff0ac;
  background: #e2ad28;
  color: #392900;
  content: "HELD";
  font-size: 8px;
  font-weight: 950;
  transform: translateX(-50%);
}

/* Slots */
.slot-window,
.skill-slot-window {
  outline: 1px solid rgba(255, 243, 181, .5);
  outline-offset: 5px;
}

.slot-machine .machine-head::after,
.skill-slot-machine .machine-head::after {
  align-self: center;
  min-width: 70px;
  color: rgba(255, 238, 174, .2);
  content: "●  ●  ●  ●";
  font-size: 9px;
  animation: slotMarquee 900ms steps(4) infinite;
}

.slot-cell,
.skill-cell {
  position: relative;
}

.slot-cell::after,
.skill-cell::after {
  position: absolute;
  inset: 5px;
  border: 1px solid transparent;
  content: "";
  pointer-events: none;
}

.slot-window.win .slot-cell::after,
.skill-slot-window.win .skill-cell::after {
  border-color: rgba(231, 181, 43, .34);
  box-shadow: inset 0 0 18px rgba(245, 200, 71, .2);
}

@keyframes slotMarquee {
  25% { color: #ffe16d; text-shadow: 18px 0 #ffe16d; }
  50% { color: rgba(255, 238, 174, .2); text-shadow: 36px 0 #ffe16d; }
  75% { text-shadow: 54px 0 #ffe16d; }
}

/* Coin arena */
.coin-stage {
  position: relative;
  isolation: isolate;
}

.coin-arena-ring {
  position: absolute;
  z-index: -1;
  left: 31%;
  top: 50%;
  width: 285px;
  max-width: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(197, 143, 21, .25);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(222, 173, 43, .035),
    0 0 0 54px rgba(222, 173, 43, .025);
  transform: translate(-50%, -50%) rotateX(66deg);
}

.coin-arena-ring::before,
.coin-arena-ring::after {
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(176, 125, 12, .26);
  border-radius: 50%;
  content: "";
}

.coin-arena-ring::after {
  inset: 31%;
  border-style: solid;
}

.coin-call-readout {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 17px;
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 7px 10px;
  border: 1px solid #cbd4dd;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
}

.coin-call-readout span {
  color: #7d8796;
  font-size: 8px;
  font-weight: 950;
}

.coin-call-readout strong {
  color: #17202d;
  font-size: 13px;
}

.coin-call-readout.won {
  border-color: #d5a01b;
  background: #fff2b9;
}

.coin-call-readout.lost {
  border-color: #cc3850;
  background: #ffe4e9;
}

.coin-face {
  overflow: hidden;
}

.coin-face::after {
  position: absolute;
  inset: -28%;
  background: linear-gradient(110deg, transparent 37%, rgba(255, 255, 255, .72) 49%, transparent 62%);
  content: "";
  transform: translateX(-80%) rotate(12deg);
  animation: coinMetalGlint 4.2s ease-in-out infinite;
}

@keyframes coinMetalGlint {
  0%, 62% { transform: translateX(-80%) rotate(12deg); }
  88%, 100% { transform: translateX(80%) rotate(12deg); }
}

/* High-low */
.highlow-choice {
  position: relative;
  display: grid !important;
  grid-template-columns: auto auto;
  gap: 9px !important;
  align-items: center;
  min-width: 116px;
  overflow: hidden;
}

.highlow-choice::after {
  position: absolute;
  z-index: 0;
  inset: auto auto 0 0;
  width: var(--highlow-chance, 0%);
  height: 4px;
  background: #167652;
  content: "";
  transition: width 280ms var(--ultra-ease);
}

.highlow-choice > * {
  position: relative;
  z-index: 1;
}

.highlow-choice small {
  min-width: 35px;
  padding: 3px 5px;
  border: 1px solid rgba(61, 45, 0, .2);
  background: rgba(255, 255, 255, .48);
  color: #5b4200;
  font-size: 9px;
  font-weight: 950;
}

.highlow-table::after {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(244, 216, 137, .18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.highlow-table .deck {
  box-shadow: -4px 4px 0 #dce2e7, -8px 8px 0 #fff, 0 17px 26px rgba(0, 0, 0, .3);
}

.highlow-table .casino-card.current {
  animation: highlowCardBreath 2.8s ease-in-out infinite alternate;
}

@keyframes highlowCardBreath {
  to { transform: translateY(-4px) rotate(.35deg); box-shadow: 0 24px 37px rgba(0, 0, 0, .34); }
}

/* Lotto */
.lotto-chamber {
  overflow: hidden;
  border-width: 5px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .82), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(197, 216, 231, .24));
  box-shadow:
    inset 14px 8px 20px rgba(255, 255, 255, .58),
    inset -10px -12px 24px rgba(60, 90, 115, .12),
    0 10px 22px rgba(40, 61, 81, .12);
}

.lotto-fan {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  width: 58px;
  height: 58px;
  border: 8px dotted rgba(83, 112, 138, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.lotto-draw.drawing .lotto-fan {
  animation: lottoFan 220ms linear infinite;
}

.lotto-chamber span:nth-of-type(7) { --ball-color: #46a5bd; left: 18px; bottom: 48px; }
.lotto-chamber span:nth-of-type(8) { --ball-color: #e25a8c; left: 72px; bottom: 47px; }
.lotto-chamber span:nth-of-type(9) { --ball-color: #83b94c; left: 129px; bottom: 42px; }
.lotto-chamber span:nth-of-type(10) { --ball-color: #f3b54a; left: 35px; bottom: 70px; }
.lotto-chamber span:nth-of-type(11) { --ball-color: #6e7fd1; left: 91px; bottom: 70px; }
.lotto-chamber span:nth-of-type(12) { --ball-color: #e77250; left: 122px; bottom: 67px; }

.lotto-draw.drawing .draw-ball {
  box-shadow:
    inset -8px -10px 12px rgba(34, 45, 58, .16),
    inset 5px 6px 8px rgba(255, 255, 255, .7),
    0 0 0 5px rgba(240, 185, 45, .12),
    0 10px 18px rgba(31, 47, 63, .14);
}

@keyframes lottoFan {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.game-view button.ultra-ripple-host {
  position: relative;
  overflow: hidden;
}

.ultra-control-ripple {
  position: absolute !important;
  z-index: 20 !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ultraControlRipple 520ms ease-out forwards;
}

@keyframes ultraControlRipple {
  to { transform: translate(-50%, -50%) scale(14); opacity: 0; }
}

/* Full-screen presentation */
.game-view.focus-mode .ultra-machine-status {
  min-height: 43px;
  margin-bottom: 18px;
  padding: 0 16px;
}

.game-view.focus-mode .ultra-machine-status strong {
  font-size: 13px;
}

@media (min-width: 1180px) {
  .game-view.focus-mode .ultra-machine {
    padding: 28px;
  }

  .game-view.focus-mode .scratch-board {
    width: min(77vw, 900px);
  }

  .game-view.focus-mode .coin-stage,
  .game-view.focus-mode .highlow-table,
  .game-view.focus-mode .blackjack-table,
  .game-view.focus-mode .baccarat-table {
    min-height: min(67vh, 720px);
  }
}

@media (max-width: 700px) {
  .ultra-machine-status {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 34px;
    padding: 0 8px;
  }

  .ultra-machine-status > span:last-child {
    display: none;
  }

  .ultra-stake-rail {
    max-width: calc(100vw - 110px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ultra-stake-rail::-webkit-scrollbar {
    display: none;
  }

  .ultra-stake-rail button {
    flex: 0 0 auto;
  }

  .prize-layer {
    padding: 34px 13px 13px;
  }

  .scratch-symbol-grid {
    gap: 4px;
  }

  .prize-layer .scratch-symbol b {
    font-size: 13px;
  }

  .blackjack-shoe-meter {
    top: 12px;
    left: 10px;
    grid-template-columns: auto 45px auto;
  }

  .blackjack-shoe-meter i {
    width: 45px;
  }

  .baccarat-road-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sicbo-total-grid {
    grid-template-columns: repeat(7, minmax(36px, 1fr));
    overflow-x: auto;
  }

  .sicbo-dice-market > div {
    grid-template-columns: 1fr;
  }

  .sicbo-market-label {
    min-height: 27px;
  }

  .sicbo-number-row {
    grid-template-columns: repeat(6, minmax(45px, 1fr));
    overflow-x: auto;
  }

  .coin-arena-ring {
    left: 50%;
    top: 36%;
    max-width: 76%;
  }

  .coin-call-readout {
    right: 10px;
    bottom: 10px;
  }

  .highlow-choice {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ultra-atmosphere i,
  .baccarat-center::after,
  .slot-machine .machine-head::after,
  .skill-slot-machine .machine-head::after,
  .coin-face::after,
  .highlow-table .casino-card.current,
  .lotto-draw.drawing .lotto-fan {
    animation: none !important;
  }
}
