.roulette-page {
  background:
    radial-gradient(circle at 24% 6%, rgba(246, 196, 83, 0.16), transparent 30%),
    linear-gradient(180deg, #06131a 0%, #0b1d22 44%, #071116 100%);
}

html.is-roulette-embed,
html.is-roulette-embed body {
  min-height: 0;
  background: #06131a;
}

html.is-roulette-embed .site-header,
html.is-roulette-embed .roulette-copy,
html.is-roulette-embed .roulette-info-grid,
html.is-roulette-embed .site-footer {
  display: none;
}

html.is-roulette-embed .roulette-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

html.is-roulette-embed .roulette-hero {
  display: block;
}

html.is-roulette-embed .roulette-game {
  border-radius: 18px;
}

.roulette-main {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 36px;
}

.roulette-hero {
  display: grid;
  gap: 10px;
}

.roulette-copy {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto;
  align-items: end;
  gap: 3px 28px;
  max-width: none;
}

.roulette-copy > .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.roulette-copy > p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.roulette-copy h1 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: #fff7d7;
  font-size: clamp(29px, 2.6vw, 36px);
  line-height: 1.04;
  white-space: nowrap;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.roulette-copy p {
  max-width: 680px;
  margin: 0;
  color: #d7f7f2;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.38;
}

.roulette-game {
  --roulette-gold: #f5c25d;
  --roulette-cream: #fff4cf;
  --roulette-teal: #123a3a;
  --roulette-cyan: #6df2eb;
  position: relative;
  display: grid;
  gap: 9px;
  padding: clamp(10px, 1.3vw, 14px);
  border: 1px solid rgba(245, 194, 93, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(9, 34, 36, 0.94), rgba(12, 18, 18, 0.96)),
    #0b1617;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.roulette-game::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.06));
  opacity: 0.5;
}

.roulette-game > * {
  position: relative;
}

.roulette-game [hidden] {
  display: none !important;
}

.roulette-control-row,
.roulette-status-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.roulette-game-top {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(390px, auto) auto;
  align-items: center;
  gap: 10px 14px;
}

.roulette-title-block {
  min-width: 0;
}

.roulette-game-top h2 {
  margin: 0;
  color: var(--roulette-cream);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.roulette-heading-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.roulette-dev-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffe3a1;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

.roulette-construction-sign {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  font-size: 23px;
  line-height: 1;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.38));
}

.roulette-mode-switch {
  display: grid;
  width: min(100%, 460px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.roulette-mode-card {
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 8px 11px;
  border: 1px solid rgba(245, 194, 93, 0.34);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(12, 43, 43, 0.86), rgba(7, 24, 25, 0.94));
  color: #f5ead0;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.roulette-mode-card span {
  align-self: end;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 850;
  line-height: 1.15;
}

.roulette-mode-card small {
  align-self: start;
  margin-top: 3px;
  color: #a9cbc5;
  font-size: clamp(9px, 0.8vw, 11px);
  line-height: 1.15;
}

.roulette-mode-card:not(:disabled):hover {
  border-color: rgba(245, 194, 93, 0.62);
  transform: translateY(-1px);
}

.roulette-mode-card:focus-visible {
  outline: 2px solid #7ef3c2;
  outline-offset: 2px;
}

.roulette-mode-card.is-active {
  border-color: rgba(105, 224, 163, 0.76);
  background: linear-gradient(180deg, rgba(24, 91, 67, 0.88), rgba(10, 48, 40, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(151, 255, 201, 0.12),
    0 0 18px rgba(35, 158, 100, 0.12);
}

.roulette-mode-card.is-active small {
  color: #c9f5dc;
}

.roulette-mode-card:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.roulette-timer {
  display: grid;
  place-items: center;
  min-width: 90px;
  min-height: 66px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 194, 93, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 54, 52, 0.96), rgba(8, 21, 22, 0.96));
  color: var(--roulette-cream);
  box-shadow: inset 0 0 24px rgba(245, 194, 93, 0.12);
}

.roulette-timer span {
  color: #d9fff8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.roulette-timer strong {
  font-size: 32px;
  line-height: 1;
}

.roulette-play-area {
  position: relative;
  min-width: 0;
}

.roulette-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-width: 0;
  min-height: 0;
  width: min(100%, 900px);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(245, 194, 93, 0.42);
  border-radius: 8px;
  background: #091513;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.roulette-history {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  box-sizing: border-box;
  width: 112px;
  height: 100%;
  min-width: 0;
  padding: 9px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(245, 194, 93, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 56, 54, 0.96), rgba(6, 21, 22, 0.98)),
    #091513;
  box-shadow: inset 0 0 24px rgba(245, 194, 93, 0.08);
}

.roulette-history-header {
  text-align: center;
}

.roulette-history-header span {
  display: block;
  margin-bottom: 2px;
  color: #8deee6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.roulette-history-header h3 {
  margin: 0;
  color: var(--roulette-cream);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.1;
}

.roulette-history-list {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 5px;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roulette-history-number {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 1px solid rgba(255, 244, 207, 0.28);
  border-radius: 6px;
  color: #fff8df;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.72);
}

.roulette-history-number.is-red {
  border-color: rgba(255, 135, 119, 0.68);
  background: linear-gradient(145deg, #a63b32, #681e1b);
}

.roulette-history-number.is-black {
  border-color: rgba(245, 194, 93, 0.42);
  background: linear-gradient(145deg, #292c2c, #090c0d);
}

.roulette-history-number.is-green {
  border-color: rgba(111, 246, 188, 0.62);
  background: linear-gradient(145deg, #197554, #09442f);
}

.roulette-history-number.is-latest {
  box-shadow: 0 0 0 2px rgba(255, 230, 157, 0.92), 0 0 12px rgba(245, 194, 93, 0.42);
}

.roulette-history-number.is-empty {
  border-style: dashed;
  border-color: rgba(141, 238, 230, 0.16);
  background: rgba(2, 17, 18, 0.42);
  color: rgba(217, 255, 248, 0.26);
  text-shadow: none;
}

.roulette-stage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roulette-stage::after {
  content: "";
  position: absolute;
  top: 30%;
  right: 0;
  bottom: 0;
  z-index: 9;
  width: clamp(3px, 0.7%, 7px);
  background: linear-gradient(90deg, rgba(5, 15, 15, 0), rgba(5, 15, 15, 0.86));
  pointer-events: none;
}

.roulette-table-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.roulette-wheel-motion {
  position: absolute;
  left: 8.9%;
  top: 23.4%;
  z-index: 3;
  width: 28.1%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  --roulette-wheel-angle: 0deg;
}

.roulette-wheel-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.42));
}

.roulette-wheel-motion.is-canvas-ready .roulette-wheel-ring,
.roulette-wheel-motion.is-canvas-ready .roulette-ball {
  opacity: 0;
  visibility: hidden;
}

.roulette-wheel-motion.is-three-ready::after {
  opacity: 0;
  visibility: hidden;
}

.roulette-wheel-motion.is-three-ready::before {
  display: none;
}

.roulette-wheel-ring {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.94;
  transform: scaleY(0.72) rotate(var(--roulette-wheel-angle));
  transform-origin: center;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.42));
  will-change: transform;
}

.roulette-wheel-motion.is-spinning .roulette-wheel-ring {
  transition: transform 2800ms cubic-bezier(0.12, 0.68, 0.16, 1);
}

.roulette-wheel-motion::after {
  content: "";
  position: absolute;
  inset: 1.5%;
  z-index: 3;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, #42170f 0 48%, #25100b 66%, #0e0907 100%);
  box-shadow: inset 0 0 0 2px rgba(194, 139, 54, 0.72), inset 0 0 20px rgba(0, 0, 0, 0.84);
  transform: scaleY(0.74);
  transform-origin: center;
}

.roulette-wheel-motion::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 84.5%;
  z-index: 5;
  width: 0;
  height: 0;
  border-left: clamp(4px, 0.55vw, 8px) solid transparent;
  border-right: clamp(4px, 0.55vw, 8px) solid transparent;
  border-bottom: clamp(9px, 1.1vw, 15px) solid #f5c25d;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.62));
}

.roulette-ball {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: clamp(11px, 1.35vw, 20px);
  height: clamp(11px, 1.35vw, 20px);
  border: 2px solid rgba(42, 22, 8, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff, #f3e5c6 58%, #a97834 100%);
  box-shadow: 0 2px 5px rgba(22, 10, 4, 0.82), 0 0 8px rgba(255, 226, 151, 0.72);
  offset-path: ellipse(43% 33% at 50% 50%);
  offset-distance: 25%;
  offset-rotate: 0deg;
  opacity: 0;
}

.roulette-wheel-motion.is-spinning .roulette-ball {
  opacity: 1;
  animation: rouletteBallRun 0.62s linear infinite reverse;
}

.roulette-wheel-motion.has-result .roulette-ball {
  opacity: 1;
  animation: none;
  offset-distance: 25%;
  box-shadow: 0 2px 6px rgba(22, 10, 4, 0.9), 0 0 9px rgba(255, 226, 151, 0.82);
}

@keyframes rouletteBallRun {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

.roulette-lock-banner {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translate(-50%, -6px);
  z-index: 8;
  width: max-content;
  max-width: 86%;
  padding: clamp(7px, 0.8vw, 10px) clamp(15px, 1.8vw, 24px);
  border: 1px solid rgba(245, 194, 93, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 18, 11, 0.92), rgba(10, 20, 20, 0.94));
  color: #ffe0a1;
  font-size: clamp(14px, 1.55vw, 22px);
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(245, 194, 93, 0.42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  animation: rouletteLockNotice 1500ms ease both;
}

@keyframes rouletteLockNotice {
  0% {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.96);
  }
  16%, 72% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -4px) scale(0.99);
  }
}

.roulette-board {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.roulette-number-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.roulette-inside-bets {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.roulette-inside-bets .roulette-inside-target {
  position: absolute;
  width: clamp(10px, 1.8vw, 24px);
  height: clamp(10px, 1.8vw, 24px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  overflow: visible;
}

.roulette-inside-bets .roulette-inside-target.is-corner {
  z-index: 2;
}

.roulette-inside-bets .roulette-inside-target::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(109, 242, 235, 0.72);
  border-radius: 50%;
  background: rgba(5, 40, 38, 0.76);
  box-shadow: 0 0 7px rgba(109, 242, 235, 0.58);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease, width 120ms ease, height 120ms ease;
}

.roulette-inside-target:hover::after,
.roulette-inside-target:focus-visible::after,
.roulette-inside-target.is-hot::after {
  width: 8px;
  height: 8px;
  opacity: 1;
}

.roulette-inside-target:hover,
.roulette-inside-target:focus-visible,
.roulette-inside-target.is-hot {
  border-color: rgba(109, 242, 235, 0.92);
  background: rgba(34, 150, 138, 0.2);
  box-shadow: 0 0 12px rgba(109, 242, 235, 0.42);
}

.roulette-number-row {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  pointer-events: auto;
}

.roulette-number-row-top {
  left: 48.88%;
  top: 35.56%;
  width: 41.44%;
  height: 6.11%;
}

.roulette-number-row-middle {
  left: 48.69%;
  top: 41.67%;
  width: 42.31%;
  height: 6.44%;
}

.roulette-number-row-bottom {
  left: 48.63%;
  top: 48.11%;
  width: 43.87%;
  height: 7.11%;
}

.roulette-column-grid {
  position: absolute;
  left: 90.31%;
  top: 35.56%;
  width: 5%;
  height: 19.66%;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  clip-path: polygon(0 0, 69% 0, 100% 100%, 44% 100%);
  pointer-events: auto;
}

.roulette-dozen-grid {
  position: absolute;
  left: 48.19%;
  top: 55.22%;
  width: 44.94%;
  height: 6.89%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  pointer-events: auto;
}

.roulette-outside-grid {
  position: absolute;
  left: 47.81%;
  top: 62.11%;
  width: 46.06%;
  height: 7.11%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  pointer-events: auto;
}

.roulette-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: transparent;
  font: 800 0/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-shadow: none;
  cursor: pointer;
  overflow: visible;
}

.roulette-zero {
  position: absolute;
  left: 43.75%;
  top: 35.56%;
  width: 5.13%;
  height: 19.66%;
  border-color: rgba(222, 185, 91, 0.78);
  background: linear-gradient(180deg, #087451, #07563f);
  color: #fff1c7;
  font: 800 clamp(10px, 1.15vw, 17px)/1 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  clip-path: polygon(11% 0, 100% 0, 93% 100%, 0 100%);
  pointer-events: auto;
}

.roulette-drop.is-red {
  background: transparent;
}

.roulette-drop.is-black {
  background: transparent;
}

.roulette-number-row .roulette-drop {
  border-color: rgba(222, 185, 91, 0.78);
  border-radius: 0;
  color: #fff1c7;
  font: 800 clamp(10px, 1.15vw, 17px)/1 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.92);
  box-shadow: inset 0 0 8px rgba(255, 220, 140, 0.05);
}

.roulette-number-row .roulette-drop.is-red {
  background: linear-gradient(180deg, #9e2823, #741713);
}

.roulette-number-row .roulette-drop.is-black {
  background: linear-gradient(180deg, #182020, #0c1111);
}

.roulette-inside-target .roulette-placed-chip {
  width: clamp(18px, 2.35vw, 34px);
  height: clamp(17px, 2.2vw, 32px);
  font-size: clamp(9px, 0.95vw, 14px);
}

.roulette-column-grid .roulette-drop,
.roulette-dozen-grid .roulette-drop,
.roulette-outside-grid .roulette-drop {
  border-color: transparent;
  background: transparent;
  font-size: 0;
  box-shadow: none;
}

.roulette-column-grid .roulette-drop {
  border-radius: 0;
  font-size: 0;
}

.roulette-outside-grid .roulette-drop.is-red {
  background: transparent;
}

.roulette-outside-grid .roulette-drop.is-black {
  background: transparent;
}

.roulette-drop:hover,
.roulette-drop:focus-visible,
.roulette-drop.is-hot {
  outline: none;
  border-color: rgba(109, 242, 235, 0.9);
  background: rgba(34, 150, 138, 0.2);
  box-shadow: inset 0 0 0 1px rgba(109, 242, 235, 0.36), 0 0 15px rgba(109, 242, 235, 0.2);
}

.roulette-column-grid .roulette-drop:hover,
.roulette-column-grid .roulette-drop:focus-visible,
.roulette-column-grid .roulette-drop.is-hot,
.roulette-dozen-grid .roulette-drop:hover,
.roulette-dozen-grid .roulette-drop:focus-visible,
.roulette-dozen-grid .roulette-drop.is-hot,
.roulette-outside-grid .roulette-drop:hover,
.roulette-outside-grid .roulette-drop:focus-visible,
.roulette-outside-grid .roulette-drop.is-hot {
  background: rgba(34, 150, 138, 0.2);
}

.roulette-game.is-locked .roulette-drop {
  cursor: not-allowed;
  filter: saturate(0.8);
}

.roulette-game.is-locked .roulette-inside-target::after {
  opacity: 0;
}

.roulette-chip-tray {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: min(100%, 240px);
  padding: 4px 7px;
  border: 1px solid rgba(245, 194, 93, 0.36);
  border-radius: 8px;
  background: rgba(2, 14, 15, 0.46);
}

.roulette-chip,
.roulette-placed-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 47px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a1a16;
  cursor: grab;
  font: 900 17px/1 Georgia, "Times New Roman", serif;
  isolation: isolate;
  touch-action: none;
  user-select: none;
}

.roulette-chip span,
.roulette-placed-chip span {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/muschel-pirat-symbol-shell.png") center / contain no-repeat;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.roulette-chip b,
.roulette-placed-chip b {
  transform: translateY(3px);
  text-shadow: 0 1px 0 rgba(255, 250, 214, 0.78);
}

.roulette-chip[data-chip-value="2"] span,
.roulette-placed-chip[data-value="2"] span {
  filter: hue-rotate(330deg) saturate(1.12) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.roulette-chip[data-chip-value="3"] span,
.roulette-placed-chip[data-value="3"] span {
  filter: hue-rotate(165deg) saturate(1.05) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.roulette-chip.is-selected {
  outline: 2px solid rgba(109, 242, 235, 0.95);
  box-shadow: 0 0 0 5px rgba(109, 242, 235, 0.16);
}

.roulette-chip:active,
.roulette-placed-chip:active {
  cursor: grabbing;
}

.roulette-placed-chip {
  position: absolute;
  z-index: 7;
  width: clamp(20px, 3vw, 46px);
  height: clamp(19px, 2.8vw, 43px);
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--chip-x, 0px)), calc(-50% + var(--chip-y, 0px)));
  font-size: clamp(10px, 1.1vw, 17px);
}

.roulette-chip.is-pointer-dragging,
.roulette-placed-chip.is-pointer-dragging {
  opacity: 0.34;
}

.roulette-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  transform: translate(-50%, -50%);
  pointer-events: none;
  cursor: grabbing;
}

.roulette-game.is-locked .roulette-chip,
.roulette-game.is-locked .roulette-placed-chip {
  cursor: not-allowed;
}

.roulette-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.roulette-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  border: 1px solid rgba(245, 194, 93, 0.28);
  border-radius: 8px;
  background: rgba(1, 13, 14, 0.46);
}

.roulette-status-grid span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 9px;
  color: #ccefe9;
  font-weight: 800;
}

.roulette-status-grid strong {
  color: #ffe9b6;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
}

.roulette-message {
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(109, 242, 235, 0.24);
  border-radius: 8px;
  background: rgba(109, 242, 235, 0.08);
  color: #eafffb;
  font-weight: 800;
  line-height: 1.2;
}

.roulette-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 1220px) {
  .roulette-play-area {
    display: grid;
    width: min(100%, 900px);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .roulette-history {
    position: static;
    display: grid;
    width: auto;
    height: auto;
    padding: 8px 10px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .roulette-history-header {
    min-width: 74px;
    text-align: left;
  }

  .roulette-history-list {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: minmax(38px, 1fr);
    gap: 4px;
  }

  .roulette-history-number {
    min-height: 38px;
    font-size: clamp(14px, 2.4vw, 19px);
  }
}

@media (max-width: 980px) {
  .roulette-game-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .roulette-mode-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .roulette-timer {
    grid-column: 2;
    grid-row: 1;
  }

  .roulette-copy {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 4px;
  }

  .roulette-copy > .eyebrow,
  .roulette-copy h1,
  .roulette-copy > p:not(.eyebrow) {
    grid-column: 1;
    grid-row: auto;
  }

  .roulette-copy h1 {
    white-space: normal;
  }

  .roulette-stage {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .roulette-control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .roulette-actions {
    justify-content: flex-start;
  }

  .roulette-status-grid,
  .roulette-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .roulette-main {
    width: min(100% - 18px, 1480px);
    padding-top: 16px;
  }

  .roulette-game {
    padding: 10px;
  }

  .roulette-game-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .roulette-heading-line {
    display: grid;
    align-items: start;
    gap: 6px;
  }

  .roulette-mode-switch {
    gap: 6px;
  }

  .roulette-mode-card {
    min-height: 54px;
    padding: 7px 8px;
  }

  .roulette-timer {
    grid-template-columns: 1fr;
    min-width: 74px;
    min-height: 46px;
  }

  .roulette-stage {
    min-height: 0;
  }

  .roulette-history {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .roulette-history-header {
    text-align: center;
  }

  .roulette-history-header span {
    display: inline;
    margin: 0 5px 0 0;
  }

  .roulette-history-header h3 {
    display: inline;
  }

  .roulette-history-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(36px, 1fr));
    gap: 5px;
  }

  .roulette-history-number {
    min-height: 36px;
    font-size: 17px;
  }

  .roulette-drop {
    min-height: 0;
    font-size: clamp(8px, 1.8vw, 11px);
  }

  .roulette-chip-tray {
    width: 100%;
    justify-content: center;
  }

  .roulette-status-grid,
  .roulette-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .roulette-game-top {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .roulette-mode-switch {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1080px) {
  html.is-roulette-embed .roulette-play-area {
    display: grid;
    width: min(100%, 1020px);
    margin: 0 auto;
    grid-template-columns: minmax(0, 900px) 112px;
    gap: 8px;
  }

  html.is-roulette-embed .roulette-stage {
    width: 100%;
    margin: 0;
  }

  html.is-roulette-embed .roulette-history {
    position: static;
    display: flex;
    width: 112px;
    height: 100%;
    padding: 9px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  html.is-roulette-embed .roulette-history-header {
    min-width: 0;
    text-align: center;
  }

  html.is-roulette-embed .roulette-history-header span {
    display: block;
    margin: 0 0 2px;
  }

  html.is-roulette-embed .roulette-history-header h3 {
    display: block;
  }

  html.is-roulette-embed .roulette-history-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(10, minmax(0, 1fr));
    gap: 5px;
  }

  html.is-roulette-embed .roulette-history-number {
    min-height: 0;
    font-size: clamp(15px, 1.6vw, 20px);
  }
}
