.original-panel--game:not(.original-panel--fs-game):not(.original-panel--mines-fs) {
  max-width: 720px;
}

.original-panel--wide {
  max-width: 960px;
}

.game-chrome {
  margin-top: 40px;
  border-top: 1px solid rgba(52, 60, 100, 0.45);
  padding-top: 28px;
}

.original-panel--game {
  margin-bottom: 8px;
}

.game-history-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 28px;
}

.game-history-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgb(24 30 60);
  color: rgb(164 170 198);
  border: 1px solid rgba(52, 60, 100, 0.4);
}

.game-fair summary {
  cursor: pointer;
  font-weight: 600;
  color: #94a3b8;
}

.game-fair__body {
  margin-top: 12px;
  font-size: 0.8125rem;
}

.game-fair__body label {
  display: block;
  margin-bottom: 8px;
}

.game-fair__body input[type="text"] {
  width: 100%;
  margin-top: 4px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgb(7 11 35);
  color: #e2e8f0;
  padding: 0 8px;
}

.game-fair__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0;
}

.game-fair__row code {
  font-size: 0.6875rem;
  word-break: break-all;
  max-width: 65%;
  text-align: right;
  color: #cbd5e1;
}

.game-fair__verify {
  margin-top: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgb(12 16 43);
  color: #e2e8f0;
  cursor: pointer;
}

.game-fair__result {
  margin-top: 8px;
  color: #5eead4;
}

.original-panel--plinko {
  width: 100%;
  max-width: min(72rem, 100%);
  box-sizing: border-box;
  padding: 16px;
}

@media (min-width: 768px) {
  .original-panel--plinko {
    padding: 20px 18px 22px;
  }
}

.original-panel--plinko .original-panel__sub--compact {
  margin-bottom: 14px;
}

/* FakeStake GameContainer (vendor/GameContainer-aB6GEMI8.js)  -  fluid with chat + resize. */
.tide-game-page {
  overflow-x: clip;
  max-width: 100%;
}

.tide-game-page .site-page-shell.flex {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.tide-game-page .site-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tide-game-page .original-panel--fs-game,
.tide-game-page .original-panel--mines-fs {
  width: 100%;
  max-width: min(72rem, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.original-panel--fs-game,
.original-panel--mines-fs,
.original-panel--bj-fs {
  width: 100%;
  max-width: min(72rem, 100%);
  box-sizing: border-box;
  container-type: inline-size;
  container-name: fs-game-panel;
}

.original-panel--fs-game .original-panel__sub--compact {
  margin-bottom: 14px;
}

.fs-game-shell,
.fs-game-page,
.fs-mines-shell,
.plinko-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  min-width: 0;
  min-height: clamp(380px, 48vh, 560px);
  box-sizing: border-box;
  background: #0f1923;
  border-radius: 12px;
  padding: 12px;
}

.fs-game-config,
.fs-controls-panel,
.plinko-controls-panel,
.fs-mines-config {
  order: 2;
  flex: none;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  background: #1a2330;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.fs-game-stage,
.fs-playfield,
.plinko-playfield,
.fs-mines-board-wrap {
  order: 1;
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: min(22rem, 72vw);
  padding: 10px 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
}

.fs-controls-panel .original-play,
.plinko-controls-panel .original-play {
  width: 100%;
  margin-top: 2px;
}

.fs-controls-panel--locked,
.plinko-controls-panel.fs-controls-panel--locked {
  opacity: 0.92;
}

.fs-controls-panel--locked select:disabled,
.fs-controls-panel--locked input:disabled,
.plinko-controls-panel.fs-controls-panel--locked select:disabled,
.plinko-controls-panel.fs-controls-panel--locked input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Query the panel width (shell cannot query itself). Row = FakeStake md layout. */
@container fs-game-panel (min-width: 560px) {
  .fs-game-shell,
  .fs-game-page,
  .fs-mines-shell,
  .plinko-page {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    padding: 16px;
  }

  .fs-game-config,
  .fs-controls-panel,
  .plinko-controls-panel,
  .fs-mines-config {
    order: 1;
    flex: 0 1 280px;
    width: auto;
    min-width: 0;
    max-width: 320px;
  }

  .fs-game-stage,
  .fs-playfield,
  .plinko-playfield,
  .fs-mines-board-wrap {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 8px 4px 12px;
  }
}

.coinflip-playfield,
.dice-playfield,
.chicken-playfield {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  max-height: min(500px, 58vh);
  padding: 0;
  overflow: hidden;
}

.original-panel--chicken .fs-game-stage {
  flex: 0 1 auto;
  max-height: min(500px, 58vh);
}

.chicken-hud {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
}

.fs-chicken-root {
  flex: none;
  height: min(460px, 54vh);
  min-height: 260px;
  max-height: 460px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: #1a2634;
}

.fs-chicken-scroll {
  height: 100%;
  max-height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.fs-chicken-scroll::-webkit-scrollbar {
  display: none;
}

.fs-chicken-board {
  display: flex;
  height: 100%;
  min-height: 100%;
  align-items: stretch;
}

.fs-chicken-lane {
  position: relative;
  flex: 0 0 128px;
  width: 128px;
  min-width: 128px;
  max-width: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fs-chicken-lane__dash {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22) 0 18px,
    transparent 18px 34px
  );
  pointer-events: none;
}

.fs-chicken-lane__pit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 12px 6px 20px;
  min-height: 0;
  box-sizing: border-box;
}

.fs-chicken-lane__hole {
  width: 52px;
  max-width: 90%;
  height: auto;
  opacity: 0.55;
  margin-top: auto;
  object-fit: contain;
}

.fs-chicken-lane--crossed .fs-chicken-lane__hole,
.fs-chicken-lane--revealed-safe .fs-chicken-lane__hole {
  opacity: 0.35;
}

.fs-chicken-lane__start {
  width: auto;
  max-width: 96px;
  max-height: 120px;
  opacity: 0.5;
  margin: auto 0;
  object-fit: contain;
}

.fs-chicken-lane__mult {
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #373e45;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fs-chicken-lane--current {
  background: rgba(59, 130, 246, 0.08);
}

.fs-chicken-lane--current .fs-chicken-lane__mult {
  background: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

.fs-chicken-lane--crossed .fs-chicken-lane__mult,
.fs-chicken-lane--revealed-safe .fs-chicken-lane__mult {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.fs-chicken-lane--crashed .fs-chicken-lane__mult {
  background: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
}

.fs-chicken-lane__barricade {
  position: absolute;
  top: 3rem;
  width: 56px;
  max-width: 80%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.fs-chicken-lane__bg-car {
  position: absolute;
  left: 50%;
  top: 0;
  width: 44px;
  max-height: 72px;
  object-fit: contain;
  transform: translateX(-50%) translateY(-110%);
  filter: hue-rotate(var(--car-hue, 0deg)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
  animation: fs-chicken-car-fall 2.8s linear infinite;
  animation-delay: var(--car-delay, 0s);
  opacity: 0.9;
  pointer-events: none;
  z-index: 4;
}

.fs-chicken-lane__threat-car {
  position: absolute;
  left: 50%;
  top: 0;
  width: 52px;
  max-height: 80px;
  object-fit: contain;
  filter: hue-rotate(var(--car-hue, 0deg)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  animation: fs-chicken-threat-car 0.85s ease-in infinite;
  pointer-events: none;
  z-index: 12;
}

@keyframes fs-chicken-car-fall {
  from {
    transform: translateX(-50%) translateY(-110%);
  }
  to {
    transform: translateX(-50%) translateY(115%);
  }
}

@keyframes fs-chicken-threat-car {
  0% {
    transform: translateX(-50%) translateY(-130%) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  55% {
    transform: translateX(-50%) translateY(18%) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(130%) rotate(0deg);
    opacity: 0.85;
  }
}

.fs-chicken-lane__actor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.fs-chicken-lane__chicken,
.fs-chicken-lane__actor img {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.fs-chicken-lane__chicken--idle {
  animation: fs-chicken-idle 2s ease-in-out infinite;
}

.fs-chicken-lane__chicken--dance {
  animation: fs-chicken-dance 0.75s ease-in-out infinite;
}

@keyframes fs-chicken-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes fs-chicken-dance {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(-8deg);
  }
  75% {
    transform: translateY(-6px) rotate(8deg);
  }
}

.fs-chicken-lane__crash-car {
  position: absolute;
  width: 48px;
  max-height: 72px;
  object-fit: contain;
  filter: hue-rotate(var(--car-hue, 0deg)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  animation: fs-chicken-crash-car 0.9s ease-in forwards;
}

@keyframes fs-chicken-crash-car {
  from {
    transform: translateY(-200%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    transform: translateY(20%);
    opacity: 1;
  }
}

.fs-chicken-lane__actor--bust-car img:first-child {
  width: 48px;
  height: auto;
  max-height: 48px;
  animation: fs-chicken-splat 0.35s ease-out forwards;
}

@keyframes fs-chicken-splat {
  from {
    transform: scale(1.1, 0.7);
  }
  to {
    transform: scale(1, 1);
  }
}

.coinflip-playfield {
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.coinflip-side-row {
  width: 100%;
  max-width: 280px;
}

.plinko-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.plinko-controls-grid .original-field:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .plinko-controls-grid {
    grid-template-columns: 1fr;
  }
}

.plinko-stage--fs {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 0 8px;
  container-type: inline-size;
}

.plinko-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 760 / 570;
}

.plinko-stage--fs #plinko-canvas {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: #0f1923;
}

.plinko-buckets-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  margin-top: -4px;
}

.plinko-buckets-inner {
  width: 85%;
  max-width: 100%;
}

.plinko-stage--fs .plinko-buckets {
  display: flex;
  gap: 1%;
  justify-content: stretch;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  max-width: none;
}

.plinko-stage--fs .plinko-bucket {
  flex: 1;
  min-width: 0;
  font-size: clamp(7px, 2.8cqi, 11px);
  font-weight: 700;
  padding: 5px 2px;
  border-radius: 4px;
  text-align: center;
  color: rgb(3 7 18);
  box-shadow: 0 2px var(--shadow-color, rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease-out, filter 0.15s ease-out, box-shadow 0.15s ease-out;
}

@media (min-width: 1024px) {
  .plinko-stage--fs .plinko-bucket {
    border-radius: 6px;
    padding: 6px 2px;
    box-shadow: 0 3px var(--shadow-color, rgba(0, 0, 0, 0.35));
  }
}

.plinko-stage--fs .plinko-bucket--hit {
  transform: translateY(-3px) scale(1.07);
  filter: brightness(1.28);
  box-shadow: 0 0 0 2px currentColor, 0 0 16px 3px var(--shadow-color);
  z-index: 2;
}

.crash-canvas-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 16px;
  aspect-ratio: 400 / 160;
}

.crash-canvas-wrap #crash-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgb(7 11 35);
}

#crossy-canvas,
#dice-canvas {
  display: block;
  width: 100%;
  max-width: min(480px, 100%);
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgb(7 11 35);
}

/* Dice 50/50 bar */
.dice-bar-game {
  margin-bottom: 20px;
  padding: 8px 4px 4px;
}

.dice-bar {
  position: relative;
  height: 56px;
  margin: 0 auto 8px;
  max-width: min(420px, 100%);
  width: 100%;
}

.dice-bar__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  border-radius: 999px;
  background: rgb(12 16 43);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.dice-bar__fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  opacity: 0.35;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.dice-bar__fill--low {
  left: 0;
  width: 50%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.dice-bar__fill--high {
  right: 0;
  width: 50%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.dice-bar__fill--active {
  opacity: 0.85;
}

.dice-bar__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(18 23 49);
  border: 3px solid #94a3b8;
  box-shadow: 0 0 0 2px rgb(7 11 35);
  z-index: 2;
}

.dice-bar__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  border: 2px solid #fffbeb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  z-index: 3;
  transition: left 0.08s linear;
}

.dice-bar__marker--animate {
  transition: left 0.06s linear;
}

.dice-bar--rolling .dice-bar__marker {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.55);
}

.dice-bar__marker--win {
  background: linear-gradient(145deg, #5eead4, #14b8a6);
  border-color: #ccfbf1;
}

.dice-bar__marker--lose {
  background: linear-gradient(145deg, #f87171, #dc2626);
  border-color: #fecaca;
}

.dice-bar__labels {
  display: flex;
  justify-content: space-between;
  max-width: 420px;
  margin: 0 auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.dice-bar__roll {
  text-align: center;
  margin: 14px 0 0;
  font-size: 1.125rem;
  color: #94a3b8;
}

.dice-bar__roll strong {
  color: #f1f5f9;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

/*  -  -  FakeStake Mines (GameContainer + grid from index-CnHnD-ZP.js)  -  -  */
.original-panel--mines-fs {
  max-width: min(72rem, 100%);
  padding: 16px 14px 20px;
  background: rgb(12 16 43);
  border-color: rgba(52, 60, 100, 0.45);
}

.fs-mines-config__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  color: #fff;
  max-width: 28rem;
  margin: 0 auto;
}

.fs-mines-bet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.fs-mines-label {
  font-size: 0.875rem;
  color: #b0b9d2;
}

.fs-mines-balance {
  font-size: 0.875rem;
  color: #fff;
}

.fs-mines-balance strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fs-mines-extra {
  font-size: 0.875rem;
  color: #4cd964;
  font-variant-numeric: tabular-nums;
}

.fs-bet-row {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 6px;
  background: #1e2a36;
}

.fs-bet-row input {
  flex: 1 1 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  padding: 12px;
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.fs-bet-row input:disabled {
  opacity: 0.5;
}

@container (min-width: 280px) {
  .fs-bet-row input {
    flex: 1 1 auto;
  }
}

.fs-bet-row__side {
  flex: 1;
  border: none;
  border-top: 1px solid #2c3a47;
  background: transparent;
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fs-bet-row__side:not(:disabled):hover {
  background: #2c3a47;
}

.fs-bet-row__side:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 420px) {
  .fs-bet-row {
    flex-wrap: nowrap;
  }

  .fs-bet-row__side {
    flex: none;
    border-top: none;
    border-left: 1px solid #2c3a47;
    padding: 0 16px;
  }
}

.fs-mines-select-wrap select {
  width: 100%;
  padding: 12px;
  border: 1px solid #2c3a47;
  background-color: #1e2a36;
  color: #fff;
  color-scheme: dark;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.fs-mines-select-wrap select:disabled {
  opacity: 0.5;
}

.fs-mines-select-wrap select option {
  background-color: #1e2a36;
  color: #fff;
}

.fs-select-menu {
  position: relative;
}

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

.fs-select-menu__trigger {
  width: 100%;
  padding: 12px;
  border: 1px solid #2c3a47;
  background: #1e2a36;
  color: #fff;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.fs-select-menu__trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fs-select-menu__list {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
  background: #1e2a36;
  border: 1px solid #2c3a47;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  padding: 4px;
}

.fs-select-menu__opt {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
}

.fs-select-menu__opt:hover,
.fs-select-menu__opt.is-active {
  background: #2c3a47;
}

.fs-mines-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
}

.fs-mines-btn--primary {
  background: var(--success, rgb(32 208 149));
  color: #000;
}

.fs-mines-btn--primary:not(:disabled):hover {
  background: rgb(22 163 74);
}

.fs-mines-btn:disabled {
  background: rgb(75 85 99);
  color: rgb(156 163 175);
  cursor: not-allowed;
}

.fs-mines-error {
  margin: -12px 0 0;
  font-size: 0.875rem;
  color: rgb(239 68 68);
}

.fs-mines-profit {
  margin: -16px 0 0;
  font-size: 0.875rem;
  color: rgb(156 163 175);
  font-variant-numeric: tabular-nums;
}

.fs-mines-result {
  margin-top: -8px;
}

.fs-mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 2.5cqi, 12px);
  width: 100%;
  max-width: min(36rem, 100%);
  margin: 0 auto;
  container-type: inline-size;
}

.fs-mines-cell {
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.fs-mines-cell--idle:not(:disabled) {
  background: #2f4553;
}

.fs-mines-cell--idle:not(:disabled):hover {
  background: #4a6880;
  transform: scale(1.05);
}

.fs-mines-cell--idle:not(:disabled):active {
  background: #071924;
  transform: scale(0.95);
}

.fs-mines-cell--idle:disabled {
  background: #2f4553;
  cursor: default;
  opacity: 0.85;
}

.fs-mines-cell--gem {
  border-color: rgb(34 197 94);
  background: #071924;
  transform: scale(0.95);
  cursor: default;
}

.fs-mines-cell--mine {
  border-color: rgb(239 68 68);
  background: #071924;
  transform: scale(0.95);
  cursor: default;
}

.fs-mines-cell--gem.fs-mines-cell--reveal {
  animation: fs-mines-pop 0.35s ease;
}

.fs-mines-cell--mine.fs-mines-cell--reveal {
  animation: fs-mines-shake 0.45s ease;
}

.fs-mines-cell--mine-hidden {
  background: #2f4553;
  opacity: 0.75;
}

.fs-mines-cell__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  background: #1a2330;
  border-radius: 6px;
  box-sizing: border-box;
}

.fs-mines-cell__icon {
  width: 80%;
  height: 80%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.fs-mines-cell--reveal .fs-mines-cell__icon {
  animation: fs-mines-fade-in 0.25s ease;
}

@keyframes fs-mines-pop {
  0% {
    transform: scale(0.85);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(0.95);
  }
}

@keyframes fs-mines-shake {
  0%,
  100% {
    transform: translateX(0) scale(0.95);
  }
  20% {
    transform: translateX(-5px) scale(0.95);
  }
  40% {
    transform: translateX(5px) scale(0.95);
  }
  60% {
    transform: translateX(-4px) scale(0.95);
  }
  80% {
    transform: translateX(4px) scale(0.95);
  }
}

@keyframes fs-mines-fade-in {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@container fs-game-panel (min-width: 560px) {
  .fs-mines-config__inner {
    margin: 0;
    max-width: none;
  }
}

/* Blackjack  -  FakeStake GameContainer (table stage + bet sidebar) */
.original-panel--bj-fs {
  padding: 12px 14px 18px;
  background: rgb(12 16 43);
  border-color: rgba(52, 60, 100, 0.45);
  box-shadow: none;
}

.site-content--games {
  width: 100%;
  max-width: min(72rem, 100%);
  box-sizing: border-box;
}

.fs-bj-config .duel-bj-play-slot {
  min-height: 0;
  margin: 0;
}

.fs-bj-config .duel-bj-actions.action-dock {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: none;
  min-height: 0;
  margin-bottom: 12px;
}

.fs-bj-config .bj-action {
  width: 100%;
  min-width: 0;
}

.fs-bj-config .blackjack-bet-panel {
  max-width: none;
  background: transparent !important;
  padding: 0 !important;
}

.fs-bj-config .blackjack-bet-panel > .flex.items-end {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.fs-bj-config .blackjack-bet-panel .w-1\/3 {
  width: 100%;
  min-width: 0;
}

.fs-bj-config .message-bar {
  margin-top: 14px;
  max-width: none;
  font-size: 0.875rem;
}

.fs-bj-stage .duel-bj-stage {
  max-width: none;
  width: 100%;
}

.fs-bj-stage .table-wrap {
  min-width: 0;
}

/* legacy mines class names (other pages) */
.mines-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
}

.mines-grid {
  display: grid;
  gap: 6px;
  margin: 0 auto;
  max-width: 420px;
}

.mines-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgb(15 25 35);
}

.keno-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.keno-num {
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgb(12 16 43);
  color: #cbd5e1;
  font-size: 0.75rem;
  cursor: pointer;
}

.keno-num--pick {
  background: rgba(37, 99, 235, 0.45);
  color: #fff;
}

.keno-num--draw {
  outline: 1px solid #64748b;
}

.keno-num--hit {
  background: #059669;
  color: #fff;
}

#roulette-wheel {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: conic-gradient(#059669 0 9.7deg, #dc2626 9.7deg 19.4deg, #0f172a 19.4deg 28.9deg, #dc2626 28.9deg 38.6deg, #0f172a 38.6deg 48.3deg, #dc2626 48.3deg 58deg, #0f172a 58deg 67.6deg, #dc2626 67.6deg 77.3deg, #0f172a 77.3deg 87deg, #dc2626 87deg 96.7deg, #0f172a 96.7deg 106.4deg, #dc2626 106.4deg 116deg, #0f172a 116deg 125.7deg, #dc2626 125.7deg 135.4deg, #0f172a 135.4deg 145.1deg, #dc2626 145.1deg 154.8deg, #0f172a 154.8deg 164.5deg, #dc2626 164.5deg 174.2deg, #0f172a 174.2deg 183.8deg, #dc2626 183.8deg 193.5deg, #0f172a 193.5deg 203.2deg, #dc2626 203.2deg 212.9deg, #0f172a 212.9deg 222.6deg, #dc2626 222.6deg 232.3deg, #0f172a 232.3deg 242deg, #dc2626 242deg 251.6deg, #0f172a 251.6deg 261.3deg, #dc2626 261.3deg 271deg, #0f172a 271deg 280.7deg, #dc2626 280.7deg 290.4deg, #0f172a 290.4deg 300.1deg, #dc2626 300.1deg 309.8deg, #0f172a 309.8deg 319.4deg, #dc2626 319.4deg 329.1deg, #0f172a 329.1deg 338.8deg, #dc2626 338.8deg 348.5deg, #0f172a 348.5deg 360deg);
  border: 4px solid #334155;
  transition: transform 0.1s linear;
}

.roulette-numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.roulette-num,
#roulette-outside button {
  height: 32px;
  font-size: 0.6875rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  color: #fff;
}

.roulette-num--red {
  background: #b91c1c;
}

.roulette-num--black {
  background: #0f172a;
}

.roulette-num--green {
  background: #059669;
}

#roulette-outside {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

#roulette-outside button {
  background: rgb(12 16 43);
  color: #e2e8f0;
  padding: 0 8px;
}

.roulette-num.is-active,
#roulette-outside button.is-active {
  outline: 2px solid #2563eb;
}

.crash-mult {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.crash-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.crash-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.crash-pill--low {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.coinflip-coin {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  color: #78350f;
}

.coinflip-coin--spin {
  animation: coin-spin 0.9s ease-in-out;
}

@keyframes coin-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(1080deg);
  }
}

.limbo-bar-wrap {
  height: 32px;
  border-radius: 8px;
  background: rgb(12 16 43);
  overflow: hidden;
  margin-bottom: 16px;
}

#limbo-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  transition: width 0.05s linear;
}

.slots-reels {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.slots-reel {
  width: 56px;
  height: 120px;
  border-radius: 8px;
  background: rgb(12 16 43);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  font-size: 1.5rem;
}

.slots-reel--spin span {
  animation: slot-blur 0.4s linear infinite;
}

@keyframes slot-blur {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

.towers-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.towers-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.towers-tile {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgb(12 16 43);
  cursor: pointer;
}

.towers-tile--cleared {
  background: rgba(37, 99, 235, 0.35);
}

.towers-tile--bomb {
  background: rgba(239, 68, 68, 0.3);
}

.crossy-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.chicken-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 8px 2px 14px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.chicken-lane {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgb(12 16 43);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 12px;
}

.chicken-lane--safe {
  background: rgba(22, 163, 74, 0.28);
  border-color: #4ade80;
}

.chicken-lane--next {
  border-color: #fbbf24;
}

.chicken-lane--bust {
  background: rgba(239, 68, 68, 0.35);
  border-color: #f87171;
}

.crossy-score {
  text-align: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.original-play--secondary {
  background: rgb(12 16 43);
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-top: 8px;
}

.games-grid--full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* Page motion */
.tide-game-page .site-content {
  overflow-x: clip;
  animation: tide-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tide-game-page .original-panel {
  animation: tide-panel-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@media (prefers-reduced-motion: reduce) {
  .tide-game-page .site-content,
  .tide-game-page .original-panel {
    animation: none;
  }
}

@keyframes tide-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tide-panel-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.original-play,
.original-row button,
.mines-cell,
.keno-num,
.towers-tile,
.plinko-bucket {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.original-play:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.original-play:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.original-result {
  transition: color 0.35s ease, opacity 0.35s ease;
}

.dice-display {
  transition: color 0.3s ease, transform 0.3s ease;
}

.dice-display:not(:empty) {
  animation: tide-dice-result 0.4s ease;
}

@keyframes tide-dice-result {
  from {
    transform: scale(0.96);
  }
  to {
    transform: scale(1);
  }
}

/* FakeStake dice slider (vendor index-C40X4mBv.js) */
.fs-dice-stage {
  width: 100%;
  background: #0d1b2a;
  border-radius: 12px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

.fs-dice-profit {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 6px;
  background: #1e2a36;
  color: #fff;
  opacity: 0.7;
  padding: 12px;
  font-variant-numeric: tabular-nums;
}

.fs-dice-history {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-height: 36px;
  overflow-x: auto;
}

.fs-dice-pill {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.fs-dice-pill--win {
  background: #22c55e;
  color: #000;
}

.fs-dice-pill--lose {
  background: #1e2a36;
  color: #fff;
}

.fs-dice-scale {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 12px;
  color: #9ca3af;
}

.fs-dice-track-wrap {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  margin-top: 28px;
  cursor: pointer;
  touch-action: none;
}

.fs-dice-track {
  width: 100%;
  height: 20px;
  border-radius: 999px;
  background: #1a2a3a;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.fs-dice-track__lo,
.fs-dice-track__hi {
  position: absolute;
  top: 0;
  height: 100%;
  background: #ef4444;
}

.fs-dice-track__lo {
  left: 0;
}

.fs-dice-track__hi {
  right: 0;
}

.fs-dice-track__lo.is-win,
.fs-dice-track__hi.is-win {
  background: #22c55e;
}

.fs-dice-track-wrap input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.fs-dice-handle {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 36px;
  transform: translate(-50%, -50%);
  background: #4a6880;
  border: 2px solid #6a8aa0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.fs-dice-handle span {
  width: 2px;
  height: 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
}

.fs-dice-result {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  pointer-events: none;
}

.fs-dice-result span {
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
}

.fs-dice-result.is-win span {
  background: #22c55e;
  color: #000;
}

.fs-dice-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fs-dice-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
  color: #9ca3af;
}

.fs-dice-stat__box {
  display: flex;
  align-items: center;
  min-width: 0;
  background: #1e2a36;
  border: 1px solid #2c3a47;
  border-radius: 8px;
  overflow: hidden;
}

.fs-dice-stat__box button,
.fs-dice-stat__box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.fs-dice-stat__suffix,
.fs-dice-flip {
  flex: none;
  padding: 0 8px;
  color: #9ca3af;
  background: transparent;
  border: none;
  font-size: 14px;
}

.fs-dice-flip {
  cursor: pointer;
}

.fs-dice-flip:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .fs-dice-stats {
    grid-template-columns: 1fr;
  }
}

/* FakeStake embeds: Plinko + Dice layout fixes (soft nav + full page) */
.fs-fakestake-mount {
  width: 100%;
  max-width: none;
  min-height: min(560px, 75vh);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .fs-fakestake-mount .tide-plinko-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0.75rem 1rem 1.25rem;
  }

  .fs-fakestake-mount .tide-plinko-panel {
    flex: 0 0 17.5rem;
    width: 17.5rem;
    max-width: 34%;
    order: 1;
  }

  .fs-fakestake-mount .tide-plinko-board {
    flex: 1 1 auto;
    order: 2;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

  .fs-fakestake-mount .tide-plinko-canvas-wrap {
    width: 100%;
    max-width: min(100%, 32rem);
  }
}

.fs-fakestake-mount .tide-plinko-canvas-wrap {
  box-sizing: border-box;
}

.fs-fakestake-mount .tide-plinko-board canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: min(52vh, 420px);
}

.fs-fakestake-mount .tide-plinko-board [class*="aspectRatio"] {
  max-width: 100%;
}

/* Dice: roll result marker above slider must not clip */
.fs-fakestake-mount .rounded-xl.p-4.md\:p-6 {
  overflow: visible;
}

.fs-fakestake-mount .relative.h-12.flex.items-center {
  overflow: visible;
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}

.fs-fakestake-mount .tide-dice-roll-marker {
  will-change: left;
}

/* ===================================================================================
   Unified game look (mines, crash, flip, blackjack, …) — matches the plinko/dice styling
   in fakestake-tidebet.css: rounded cards, pill inputs, green primary button.
   =================================================================================== */
body:has(.fs-game-shell) {
  --g-surface: var(--bg-base, rgb(12 16 43));
  --g-panel: var(--bg-panel, rgb(24 30 60));
  --g-control: var(--bg-panel-hover, rgb(31 37 70));
  --g-input: var(--ax-input-bg, rgb(7 11 35));
  --g-accent: var(--tb-accent, var(--accent, rgb(43 99 244)));
  --g-win: var(--success, rgb(32 208 149));
  --g-text: var(--text-primary, #fff);
  --g-muted: var(--text-secondary, rgb(164 170 198));
  --g-line: rgba(148, 163, 214, 0.12);
  --g-line-strong: rgba(148, 163, 214, 0.22);
  --g-ring: color-mix(in srgb, var(--g-accent) 55%, transparent);
}

/* Outer game card */
body:has(.fs-game-shell) .fs-game-shell {
  border-radius: 20px !important;
  border: 1px solid var(--g-line);
  background:
    radial-gradient(120% 80% at 70% 0%, color-mix(in srgb, var(--g-accent) 7%, transparent), transparent 60%),
    var(--g-surface) !important;
  padding: 20px !important;
  gap: 16px !important;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}

/* Controls panel */
body:has(.fs-game-shell) .fs-game-config {
  border-radius: 14px !important;
  border: 1px solid var(--g-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-panel) 100%, #fff 2%), var(--g-panel)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 16px !important;
}

/* Play area */
body:has(.fs-game-shell) .fs-game-stage {
  border-radius: 14px !important;
  border: 1px solid var(--g-line);
  background:
    radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--g-accent) 10%, transparent), transparent 70%),
    var(--g-input) !important;
  overflow: hidden;
}

/* Labels */
body:has(.fs-game-shell) .fs-game-config label,
body:has(.fs-game-shell) .fs-mines-label,
body:has(.fs-game-shell) .fs-game-config .original-field > label {
  color: var(--g-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body:has(.fs-game-shell) .fs-mines-balance {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

/* Inputs, bet rows, selects */
body:has(.fs-game-shell) .fs-game-config .original-field input,
body:has(.fs-game-shell) .fs-game-config select,
body:has(.fs-game-shell) .fs-bet-row {
  border-radius: 10px !important;
  border: 1px solid var(--g-line-strong) !important;
  background-color: var(--g-input) !important;
  color: var(--g-text);
  min-height: 44px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body:has(.fs-game-shell) .fs-bet-row input {
  background: transparent !important;
  border: 0 !important;
  font-weight: 600;
}
body:has(.fs-game-shell) .fs-bet-row__side {
  border-color: var(--g-line) !important;
  color: var(--g-muted) !important;
  font-weight: 600;
}
body:has(.fs-game-shell) .fs-bet-row__side:not(:disabled):hover {
  background: var(--g-control) !important;
  color: var(--g-text) !important;
}
body:has(.fs-game-shell) .fs-game-config .original-field input:focus,
body:has(.fs-game-shell) .fs-game-config select:focus,
body:has(.fs-game-shell) .fs-bet-row:focus-within {
  outline: none;
  border-color: var(--g-accent) !important;
  box-shadow: 0 0 0 3px var(--g-ring) !important;
}
body:has(.fs-game-shell) .fs-game-config select {
  padding: 0 14px !important;
}

/* Primary action = green, same as plinko/dice */
body:has(.fs-game-shell) .fs-game-config .original-play:not(.original-play--secondary),
body:has(.fs-game-shell) .fs-mines-btn--primary,
body:has(.fs-game-shell) #manual-bet-button {
  border: 0 !important;
  border-radius: 12px !important;
  min-height: 48px;
  font-size: 0.975rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-win) 88%, #fff 12%), var(--g-win)) !important;
  color: #04140d !important;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--g-win) 75%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, filter 0.15s ease;
}
body:has(.fs-game-shell) .fs-game-config .original-play:not(.original-play--secondary):not(:disabled):hover,
body:has(.fs-game-shell) .fs-mines-btn--primary:not(:disabled):hover,
body:has(.fs-game-shell) #manual-bet-button:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
body:has(.fs-game-shell) .fs-game-config .original-play:disabled,
body:has(.fs-game-shell) .fs-mines-btn--primary:disabled,
body:has(.fs-game-shell) #manual-bet-button:disabled {
  background: var(--g-control) !important;
  color: var(--g-muted) !important;
  box-shadow: inset 0 0 0 1px var(--g-line-strong);
  transform: none;
}
/* Secondary (Cash out, Stand, Double, Split) */
body:has(.fs-game-shell) .original-play--secondary,
body:has(.fs-game-shell) .bj-action:not(.bj-action--hit) {
  border-radius: 12px !important;
  min-height: 44px;
  border: 1px solid var(--g-line-strong) !important;
  background: var(--g-input) !important;
  color: var(--g-text) !important;
  font-weight: 600;
}
body:has(.fs-game-shell) .original-play--secondary:disabled {
  color: var(--g-muted) !important;
  opacity: 0.7;
}
body:has(.fs-game-shell) .bj-action {
  border-radius: 12px !important;
}
body:has(.fs-game-shell) .bj-action--hit {
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-accent) 88%, #fff 12%), var(--g-accent)) !important;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--g-accent) 80%, transparent);
}

/* Blackjack bet box */
body:has(.fs-game-shell) #bet-panel-section {
  border-radius: 12px !important;
  background: transparent !important;
  padding: 0 !important;
}
body:has(.fs-game-shell) #bet-panel-section input {
  font-weight: 600;
}
body:has(.fs-game-shell) #bet-panel-section .rounded-8,
body:has(.fs-game-shell) #bet-panel-section [class*="bg-dark-9"] {
  border-radius: 10px !important;
}
body:has(.fs-game-shell) .table-wrap {
  border-radius: 14px !important;
  border-color: var(--g-line) !important;
}

/* Mines tiles */
body:has(.fs-game-shell) .fs-mines-grid {
  gap: 10px !important;
}
body:has(.fs-game-shell) .fs-mines-cell {
  border-radius: 12px !important;
  border: 1px solid var(--g-line);
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
body:has(.fs-game-shell) .fs-mines-cell--idle {
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-control) 100%, #fff 6%), var(--g-control)) !important;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body:has(.fs-game-shell) .fs-mines-cell--idle:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

/* Flip: Blue / Orange as pill toggle */
body:has(.fs-game-shell) .coinflip-side-row {
  gap: 4px !important;
  padding: 4px;
  border-radius: 999px;
  background: var(--g-input);
  border: 1px solid var(--g-line);
}
body:has(.fs-game-shell) .coinflip-side-row > button {
  border-radius: 999px !important;
  border: 0 !important;
  min-width: 112px;
  background: transparent !important;
  color: var(--g-muted) !important;
  font-weight: 600;
}
body:has(.fs-game-shell) .coinflip-side-row > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
body:has(.fs-game-shell) .coinflip-side-row > button.is-active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-accent) 92%, #fff 8%), var(--g-accent)) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--g-accent) 70%, transparent);
}
body:has(.fs-game-shell) .coinflip-side-row > button[data-coin-side="orange"].is-active {
  background: linear-gradient(180deg, #ffa53d, #f27a0c) !important;
  box-shadow: 0 6px 16px -6px rgba(242, 122, 12, 0.75);
}

/* ---------- Flip: 3D blue / orange coin ---------- */
.coinflip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.coinflip-dot--blue { background: linear-gradient(145deg, #6aa1ff, #2357e8); }
.coinflip-dot--orange { background: linear-gradient(145deg, #ffc06a, #f07a0d); }

.coin3d-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 250px;
  perspective: 900px;
}
.coin3d {
  --coin: 156px;
  --thick: 14px;
  position: relative;
  width: var(--coin);
  height: var(--coin);
  transform-style: preserve-3d;
  transform: rotateX(var(--coin-x, 0deg));
  will-change: transform;
}
.coin3d__face,
.coin3d__edge {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.coin3d__face {
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.coin3d__face--blue {
  transform: translateZ(calc(var(--thick) / 2));
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), transparent 38%),
    radial-gradient(circle, #4f8bff 0 52%, #2b63f4 53% 62%, #1d47c4 63% 100%);
  box-shadow: inset 0 0 0 7px #1a3fae, inset 0 0 0 9px rgba(255, 255, 255, 0.35), inset 0 -10px 22px rgba(0, 0, 30, 0.35);
}
.coin3d__face--orange {
  transform: rotateX(180deg) translateZ(calc(var(--thick) / 2));
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), transparent 38%),
    radial-gradient(circle, #ffb04f 0 52%, #f78c1f 53% 62%, #d8680a 63% 100%);
  box-shadow: inset 0 0 0 7px #b6560a, inset 0 0 0 9px rgba(255, 255, 255, 0.4), inset 0 -10px 22px rgba(60, 20, 0, 0.35);
}
.coin3d__mark {
  display: grid;
  place-items: center;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 3.2rem;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
}
.coin3d__edge {
  background: linear-gradient(90deg, #1d47c4, #6b7bd0 50%, #d8680a);
}
.coin3d-shadow {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 120px;
  height: 18px;
  margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  transform: scale(var(--coin-shadow, 1));
  opacity: var(--coin-shadow-o, 0.8);
}
/* Landing glow sits behind the coin: a filter on the coin itself would flatten its 3D. */
.coin3d-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  margin: -115px 0 0 -115px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.coin3d-stage.is-landed-blue::before {
  background: radial-gradient(closest-side, rgba(43, 99, 244, 0.5), transparent);
  opacity: 1;
  transform: none;
}
.coin3d-stage.is-landed-orange::before {
  background: radial-gradient(closest-side, rgba(247, 140, 31, 0.5), transparent);
  opacity: 1;
  transform: none;
}
.coinflip-landed {
  min-height: 1.4em;
  margin: -6px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}
.coinflip-landed--blue { color: #7aa5ff; }
.coinflip-landed--orange { color: #ffae55; }
.coinflip-landed.is-pop { animation: coin-landed-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes coin-landed-pop {
  from { transform: scale(0.6); opacity: 0; }
}
@media (max-width: 479px) {
  .coin3d { --coin: 124px; --thick: 12px; }
  .coin3d-stage { min-height: 210px; }
}

/* Crash chart */
body:has(.fs-game-shell) .crash-canvas-wrap,
body:has(.fs-game-shell) .crash-canvas-wrap canvas {
  border-radius: 12px !important;
}

/* Provably-fair drawer */
body:has(.fs-game-shell) .game-fair {
  border-radius: 14px;
}
body:has(.fs-game-shell) .game-fair input,
body:has(.fs-game-shell) .game-fair__verify {
  border-radius: 10px !important;
}

@media (max-width: 767px) {
  body:has(.fs-game-shell) .fs-game-shell {
    padding: 12px !important;
  }
}

/* Blackjack bet row chips */
body:has(.fs-game-shell) #bet-panel-section button:not(#manual-bet-button) {
  border-radius: 8px !important;
}
/* Blackjack: the felt table is already a card — don't box it twice */
body:has(.fs-game-shell) .fs-bj-stage {
  background: transparent !important;
  border: 0 !important;
}

/* ---------- Crash (multiplayer) ---------- */
.crash-mp .crash-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.crash-mp .crash-history {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.crash-mp .crash-pill {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  animation: crash-pill-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.crash-mp .crash-pill:first-child { box-shadow: 0 0 0 1px currentColor inset; }
.crash-mp .crash-pill--low { background: rgba(255, 92, 108, 0.14); color: #ff8592; }
.crash-mp .crash-pill--high { background: rgba(32, 208, 149, 0.14); color: #4fe0ad; }
.crash-mp .crash-pill--gold { background: rgba(255, 196, 61, 0.16); color: #ffd36b; }
@keyframes crash-pill-in { from { transform: scale(0.5); opacity: 0; } }

.crash-mp .crash-graph {
  position: relative;
  height: clamp(300px, 46vh, 460px);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 100%, rgba(43, 99, 244, 0.16), transparent 60%),
    linear-gradient(180deg, rgb(10 14 38), rgb(7 10 30));
  border: 1px solid var(--g-line, rgba(148, 163, 214, 0.14));
}
.crash-mp .crash-graph canvas {
  position: absolute;
  inset: 0;
  display: block;
}
.crash-mp .crash-graph.is-shake { animation: crash-shake 0.45s ease; }
@keyframes crash-shake {
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(2px, -1px); }
}
.crash-mp .crash-hud {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  text-align: center;
}
.crash-mp .crash-mult {
  --heat: 0;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, #fff calc(100% - var(--heat) * 100%), #ffd36b);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.crash-mp .crash-mult[data-phase="running"] { color: color-mix(in srgb, #e9f6ff calc(100% - var(--heat) * 100%), #4fe0ad); }
.crash-mp .crash-mult[data-phase="crashed"] {
  color: #ff5c6c;
  animation: crash-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.crash-mp .crash-mult[data-phase="betting"] { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); }
@keyframes crash-pop { from { transform: scale(1.35); } }
.crash-mp .crash-status {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(164 170 198);
}
.crash-mp .crash-mult[data-phase="crashed"] + .crash-status { color: #ff8592; }
.crash-mp .crash-countdown {
  width: 200px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.crash-mp .crash-countdown > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b63f4, #38bdf8);
  transform-origin: left;
}

/* action button states */
.crash-mp .crash-action { transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; }
.crash-mp .crash-action[data-mode="cashout"] {
  background: linear-gradient(180deg, #ffd36b, #f5a524) !important;
  color: #2b1600 !important;
  box-shadow: 0 8px 24px -8px rgba(245, 165, 36, 0.9) !important;
  animation: crash-cashout-pulse 1s ease-in-out infinite;
  font-variant-numeric: tabular-nums;
}
@keyframes crash-cashout-pulse { 50% { box-shadow: 0 8px 30px -4px rgba(245, 165, 36, 1); } }
.crash-mp .crash-action[data-mode="queued"] {
  background: rgb(52 60 112) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.crash-mp .crash-action[data-mode="next"] {
  background: linear-gradient(180deg, #4f8bff, #2b63f4) !important;
  color: #fff !important;
}

/* players */
.crash-mp .crash-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  min-height: 0;
}
.crash-mp .crash-players__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(164 170 198);
}
.crash-mp .crash-players__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}
.crash-mp .crash-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  animation: crash-pill-in 0.3s ease;
}
.crash-mp .crash-player__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.crash-mp .crash-player__bet { color: rgb(186 192 222); }
.crash-mp .crash-player__out { min-width: 4ch; text-align: right; font-weight: 700; }
.crash-mp .crash-player--won { background: rgba(32, 208, 149, 0.1); }
.crash-mp .crash-player--won .crash-player__out { color: #4fe0ad; }
.crash-mp .crash-player--lost { opacity: 0.55; }
.crash-mp .crash-player--lost .crash-player__out { color: #ff8592; }
.crash-mp .crash-players__empty { padding: 10px; color: rgb(140 148 186); font-size: 0.8125rem; text-align: center; }

/* fairness */
.crash-mp .crash-fair {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--g-line, rgba(148, 163, 214, 0.14));
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: rgb(186 192 222);
}
.crash-mp .crash-fair summary { cursor: pointer; font-weight: 700; color: #fff; }
.crash-mp .crash-fair code { font-size: 0.75rem; word-break: break-all; color: rgb(164 170 198); }
.crash-mp .crash-fair__row { margin: 6px 0; }
.crash-mp .crash-fair__list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.crash-mp .crash-fair__list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.crash-mp .crash-fair__list code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crash-mp .crash-fair__x { font-weight: 800; color: #fff; }
.crash-mp .crash-fair__verify {
  padding: 3px 8px;
  border: 1px solid var(--g-line, rgba(148, 163, 214, 0.2));
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.crash-mp .crash-fair__ok.is-good { color: #4fe0ad; }
.crash-mp .crash-fair__ok.is-bad { color: #ff8592; }

@media (max-width: 767px) {
  .crash-mp .crash-graph { height: 300px; }
  .crash-mp .crash-players__list { max-height: 200px; }
}

/* Crash: graph on top at full width, controls in a row underneath, players below. */
.crash-mp .fs-game-shell {
  display: flex !important;
  flex-direction: column !important;
}
.crash-mp .crash-stage {
  order: -1;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
}
.crash-mp .fs-game-config.fs-controls-panel {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: end;
  gap: 12px 14px !important;
}
.crash-mp .fs-game-config .original-field { margin: 0 !important; }
.crash-mp .crash-action { margin: 0 !important; height: 44px; }
.crash-mp #crash-result,
.crash-mp .crash-players { grid-column: 1 / -1; }
.crash-mp #crash-result:empty { display: none; }
.crash-mp .crash-players__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-height: 220px;
}
@media (max-width: 639px) {
  .crash-mp .fs-game-config.fs-controls-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .crash-mp .crash-action { grid-column: 1 / -1; }
  .crash-mp .crash-players__list { grid-template-columns: 1fr; }
}
