:root {
  --bg: #0d1117;
  --panel: #151b23;
  --panel-2: #1f2937;
  --stage-panel: #111820;
  --value-well: #111418;
  --line: #30363d;
  --text: #f0f6fc;
  --muted: #8b949e;
  --primary: #16a86f;
  --action-primary: #18b979;
  --accent: #ffd166;
  --danger: #b43d4b;
  --game-vh: 100dvh;
  --game-vw: 100vw;
  --font-body: "Roboto", "Segoe UI", Arial, sans-serif;
  --font-mono: "Roboto Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

[hidden] {
  display: none !important;
}

.feed-popover,
.tool-popover,
.bet-report-dialog,
.fairness-trust-dialog {
  scrollbar-color: rgba(139, 148, 158, 0.45) transparent;
  scrollbar-width: thin;
}

.feed-popover::-webkit-scrollbar,
.tool-popover::-webkit-scrollbar,
.bet-report-dialog::-webkit-scrollbar,
.fairness-trust-dialog::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.feed-popover::-webkit-scrollbar-track,
.tool-popover::-webkit-scrollbar-track,
.bet-report-dialog::-webkit-scrollbar-track,
.fairness-trust-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.feed-popover::-webkit-scrollbar-thumb,
.tool-popover::-webkit-scrollbar-thumb,
.bet-report-dialog::-webkit-scrollbar-thumb,
.fairness-trust-dialog::-webkit-scrollbar-thumb {
  background: rgba(139, 148, 158, 0.42);
  border: 2px solid #151f28;
  border-radius: 999px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.bet-report-open,
body.fairness-trust-open {
  overflow: hidden;
}

code,
pre {
  font-family: var(--font-mono);
}

a {
  color: var(--primary);
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 24px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 32px;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav a {
  border-radius: 6px;
  color: var(--muted);
  padding: 10px 12px;
}

.nav a.active,
.nav a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.main {
  padding: 28px;
}

.hero {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 24px;
  padding: 32px;
}

.hero h1,
.page-title {
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.card h3,
.panel h2 {
  margin-top: 0;
}

.btn,
button {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 6px;
  color: #07130f;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  min-height: 40px;
  padding: 0 16px;
}

.btn.secondary,
button.secondary {
  background: var(--panel-2);
  color: var(--text);
}

input,
select,
textarea {
  background: #090c10;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.field-caption {
  display: block;
}

.form {
  display: grid;
  gap: 14px;
}

#betForm.is-busy input,
#betForm.is-busy select {
  opacity: 0.72;
}

.stake-field {
  grid-area: stake;
  min-width: 0;
}

.stake-submit-row {
  align-items: end;
  display: grid;
  grid-template-areas:
    "stake half double"
    "bet bet bet";
  grid-template-columns: minmax(0, 1fr) 54px 54px;
  row-gap: 14px;
}

.stake-submit-row .number-stepper input {
  border-radius: 6px 0 0 6px;
}

.stake-helper {
  border-radius: 0;
  min-height: 40px;
}

#halfStake {
  grid-area: half;
}

#doubleStake {
  border-radius: 0 6px 6px 0;
  grid-area: double;
}

.bet-submit {
  grid-area: bet;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: background 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
  width: 100%;
}

.game-tab,
.bet-mode,
.input-action,
.dice-direction-toggle,
.stepper-button,
.feed-option,
.recent-chip,
.limbo-preset,
.plinko-row-button,
.plinko-risk-button,
.icon-button,
.seed-action,
.seed-rotate-button {
  border-color: #07101f;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.11),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.bet-submit {
  background: var(--action-primary);
  border: 1px solid rgba(6, 20, 15, 0.65);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.2),
    inset 0 -4px 0 rgba(0, 0, 0, 0.16);
  min-height: 46px;
  padding-bottom: 3px;
}

.bet-submit:not(:disabled):hover {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.22),
    inset 0 -4px 0 rgba(0, 0, 0, 0.16),
    0 0 0 3px rgba(22, 168, 111, 0.16);
}

.bet-submit:not(:disabled):active {
  transform: translateY(1px);
}

#betForm.is-auto-running .bet-submit {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.22),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(22, 168, 111, 0.18);
  gap: 10px;
}

#betForm.is-auto-running .bet-submit::after {
  animation: reelAutobetSpin 760ms ease-in-out infinite;
  background:
    radial-gradient(circle at 50% 20%, #07101f 0 2px, transparent 3px),
    radial-gradient(circle at 78% 50%, #07101f 0 2px, transparent 3px),
    radial-gradient(circle at 50% 80%, #07101f 0 2px, transparent 3px),
    radial-gradient(circle at 22% 50%, #07101f 0 2px, transparent 3px),
    #f8fafc;
  border: 2px solid #07101f;
  border-radius: 999px;
  box-shadow:
    inset 0 -3px 0 rgba(7, 16, 31, 0.2),
    0 2px 0 rgba(7, 16, 31, 0.42);
  content: "";
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

@keyframes reelAutobetSpin {
  0% {
    transform: translateX(-3px) rotate(-12deg);
  }

  50% {
    transform: translateX(4px) rotate(20deg);
  }

  100% {
    transform: translateX(-3px) rotate(348deg);
  }
}

.auto-controls {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.auto-control-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auto-controls input {
  min-height: 40px;
  width: 100%;
}

.auto-controls .input-with-unit input {
  padding-right: 50px;
}

.auto-progress {
  background: var(--value-well);
  border: 1px solid #07101f;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  min-height: 36px;
  overflow: hidden;
  padding: 10px 12px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#betForm.is-auto-running .auto-progress {
  color: var(--primary);
}

.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.balance {
  align-items: center;
  background: #0a2a23;
  border: 1px solid #1a8f74;
  border-radius: 6px;
  color: #c8fff1;
  display: flex;
  font-weight: 800;
  padding: 10px 12px;
}

.game-stage {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: var(--stage-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 24px;
}

.result-number {
  color: var(--accent);
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

tr.selected {
  background: rgba(22, 168, 111, 0.08);
}

.link-button {
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  min-height: 0;
  padding: 0;
}

pre {
  background: #090c10;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  padding: 14px;
}

.audit-detail {
  margin-top: 16px;
}

.detail-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card,
.callback-card {
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.detail-card h3,
.callback-card h3 {
  margin: 0 0 12px;
}

.wide {
  grid-column: 1 / -1;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.callback-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-pill {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 92px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.status-settled {
  background: rgba(22, 168, 111, 0.14);
  border-color: rgba(22, 168, 111, 0.5);
  color: #baf8e7;
}

.status-rolled_back {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.55);
  color: #ffe7a6;
}

.status-rollback_failed {
  background: rgba(180, 61, 75, 0.14);
  border-color: rgba(180, 61, 75, 0.55);
  color: #ffc4cf;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
}

.error-text {
  color: var(--danger);
  font-weight: 800;
}

details {
  margin-top: 10px;
}

summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
}

.game-app {
  margin: 0 auto;
  max-width: 1320px;
  min-height: 100vh;
  padding: 16px;
}

.game-booting .game-app {
  visibility: hidden;
}

.game-loader {
  align-items: center;
  background: var(--bg);
  color: var(--muted);
  display: none;
  flex-direction: column;
  font-size: 13px;
  font-weight: 900;
  gap: 12px;
  inset: 0;
  justify-content: center;
  letter-spacing: 0;
  position: fixed;
  text-transform: uppercase;
  z-index: 20;
}

.game-booting .game-loader {
  display: flex;
}

.loader-mark {
  animation: loaderPulse 900ms ease-in-out infinite alternate;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(22, 168, 111, 0.1);
  height: 14px;
  width: 14px;
}

@keyframes loaderPulse {
  from {
    opacity: 0.45;
    transform: scale(0.82);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.game-topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.game-embed {
  background: var(--bg);
}

.game-embed .game-app {
  max-width: none;
  padding: 0;
}

.game-embed .game-topbar {
  display: none;
}

.game-embed .game-layout {
  gap: 16px;
}

.game-fill .game-layout {
  min-height: 0;
}

.game-fill .game-app {
  min-height: var(--game-vh, 100dvh);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.session-line {
  overflow-wrap: anywhere;
}

.game-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-areas:
    "controls play"
    "feed feed";
  grid-template-columns: 330px minmax(0, 1fr);
  width: 100%;
}

.play-surface,
.control-surface {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.play-surface {
  grid-area: play;
}

.control-surface {
  align-self: start;
  grid-area: controls;
}

.game-tabs {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px;
}

.game-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  justify-content: center;
  min-height: 44px;
}

.game-tab.active,
.game-tab:hover {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

.live-game-stage {
  align-content: start;
  aspect-ratio: auto;
  min-width: 0;
  min-height: 620px;
  overflow: visible;
  padding: 18px;
  position: relative;
  width: 100%;
}

.stage-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  width: 100%;
}

.stage-header h2 {
  -webkit-text-stroke: 1.5px #59636f;
  color: #f8fbff;
  font-family: "Arial Black", Impact, var(--font-body);
  font-size: clamp(34px, 3.2vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  paint-order: stroke fill;
  text-shadow:
    0 4px 0 #07101f,
    2px 0 0 #59636f,
    -2px 0 0 #59636f,
    0 2px 0 #59636f,
    0 10px 18px rgba(0, 0, 0, 0.34);
}

.stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stage-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  border-color: rgba(22, 168, 111, 0.75);
  color: var(--primary);
}

.shield-icon,
.settings-icon {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.metric-pill {
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  min-width: 118px;
  padding: 8px 10px;
  text-align: center;
}

.recent-results {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 620px;
  min-height: 28px;
  overflow: hidden;
  width: 100%;
}

.recent-chip {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid #07101f;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  min-width: 54px;
  padding: 7px 11px 8px;
  text-align: center;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

button.recent-chip {
  cursor: pointer;
}

button.recent-chip:hover {
  transform: translateY(-1px);
}

.recent-chip.win {
  background: rgba(22, 168, 111, 0.92);
  color: #06140f;
}

.recent-chip.loss {
  background: #334155;
  color: #d7e1ee;
}

.recent-chip.new {
  animation: recentChipIn 520ms ease both;
}

.bet-report-open {
  overflow: hidden;
}

.game-scene {
  align-items: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 420px;
  padding: 12px 0 8px;
  width: 100%;
}

.game-scene:not(.active) {
  display: none;
}

.result-copy {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  min-height: 28px;
  text-align: center;
}

.result-copy:empty {
  display: none;
}

.dice-scoreboard {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  justify-content: center;
  max-width: 520px;
  width: 100%;
}

.dice-score-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  padding: 0;
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.dice-score-card.won {
  box-shadow: none;
}

.dice-score-card.lost {
  box-shadow: none;
}

.dice-score-card span,
.dice-preview-strip span,
.payout-preview span,
.control-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dice-score-card strong {
  align-items: center;
  background: var(--value-well);
  border: 1px solid #07101f;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: flex;
  font-size: 42px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 58px;
  min-width: 0;
  padding: 8px 22px 10px;
  text-shadow: 0 1px 0 #07101f;
  width: 100%;
}

.dice-score-card strong.won {
  color: var(--primary);
  border-color: #07101f;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.dice-score-card strong.lost {
  color: var(--danger);
  border-color: #07101f;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.dice-preview-strip {
  background: var(--value-well);
  border: 1px solid #07101f;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  overflow: hidden;
  width: 100%;
}

.dice-preview-strip div {
  background: transparent;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 62px;
  min-width: 0;
  padding: 12px;
  position: relative;
  text-align: center;
}

.dice-preview-strip div:not(:last-child)::after {
  background: rgba(139, 148, 158, 0.34);
  bottom: 14px;
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  width: 1px;
}

.payout-preview div {
  background: #0b1118;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 62px;
  min-width: 0;
  padding: 12px;
  text-align: center;
}

.dice-preview-strip div:first-child,
.payout-preview div:first-child {
  border-radius: 8px 0 0 8px;
}

.dice-preview-strip div:last-child,
.payout-preview div:last-child {
  border-radius: 0 8px 8px 0;
}

.dice-preview-strip strong,
.payout-preview strong {
  color: var(--text);
  font-size: 15px;
}

.dice-meter {
  --dice-target: 50%;
  background: #101820;
  border: 0;
  border-radius: 8px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.16),
    inset 0 -5px 0 rgba(0, 0, 0, 0.28),
    0 4px 0 rgba(7, 16, 31, 0.74),
    0 9px 18px rgba(0, 0, 0, 0.22);
  cursor: grab;
  height: 136px;
  max-width: 860px;
  outline: none;
  overflow: hidden;
  position: relative;
  touch-action: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
  width: 100%;
}

.dice-meter:hover,
.dice-meter.dragging {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.18),
    inset 0 -5px 0 rgba(0, 0, 0, 0.26),
    0 4px 0 rgba(7, 16, 31, 0.78),
    0 10px 20px rgba(0, 0, 0, 0.24);
}

.dice-meter:active {
  cursor: grabbing;
}

.dice-meter:focus-visible {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.18),
    inset 0 -5px 0 rgba(0, 0, 0, 0.26),
    0 4px 0 rgba(7, 16, 31, 0.78),
    0 10px 20px rgba(0, 0, 0, 0.24);
}

.dice-meter::before {
  background:
    linear-gradient(90deg, rgba(7, 16, 31, 0.78) 0 1px, transparent 1px) left top / 10% 100% repeat-x,
    linear-gradient(90deg, rgba(7, 16, 31, 0.42) 0 1px, transparent 1px) left top / 2% 46% repeat-x,
    #e7b84f;
  bottom: 0;
  box-shadow:
    inset 0 -5px 0 #c88f38,
    inset 0 -6px 0 rgba(7, 16, 31, 0.24);
  content: "";
  height: 34px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 2;
}

.dice-zone {
  background: #b43d4b;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.08),
    inset 0 -5px 0 rgba(7, 16, 31, 0.24);
  inset: 0;
  position: absolute;
  z-index: 0;
}

.dice-zone::before {
  background: #16a86f;
  bottom: 0;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.08),
    inset 0 -5px 0 rgba(7, 16, 31, 0.24);
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: var(--dice-target);
}

.dice-zone::after {
  background: rgba(255, 209, 102, 0.28);
  content: "";
  height: 100%;
  left: var(--dice-target);
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
}

.dice-meter.roll-over .dice-zone {
  background: #b43d4b;
}

.dice-meter.roll-over .dice-zone::before {
  left: var(--dice-target);
  width: calc(100% - var(--dice-target));
}

.dice-target-marker {
  background: var(--accent);
  bottom: 30px;
  height: 78px;
  position: absolute;
  transform: translateX(-50%);
  width: 2px;
  z-index: 4;
}

.dice-target-marker span {
  background: var(--accent);
  border-radius: 999px;
  color: #17140a;
  display: grid;
  gap: 2px;
  font-size: 12px;
  font-weight: 900;
  left: 50%;
  padding: 4px 7px;
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.dice-target-marker span::after {
  background:
    linear-gradient(90deg, rgba(23, 20, 10, 0.45), rgba(23, 20, 10, 0.45)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(23, 20, 10, 0.34), rgba(23, 20, 10, 0.34)) 0 3px / 100% 1px no-repeat;
  content: "";
  height: 4px;
  margin: 0 auto;
  width: 12px;
}

.dice-meter:hover .dice-target-marker span,
.dice-meter.dragging .dice-target-marker span,
.dice-meter:focus-visible .dice-target-marker span {
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}

.dice-target-marker::before {
  display: none;
}

.dice-ball {
  align-items: center;
  background: url("/dice-result-icon.svg") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  color: transparent;
  display: flex;
  font-size: 0;
  font-weight: 900;
  height: 136px;
  justify-content: center;
  left: 50%;
  min-width: 136px;
  position: absolute;
  top: 5px;
  transform: translateX(-50%);
  transition: left 420ms ease, filter 240ms ease, transform 180ms ease;
  z-index: 5;
}

.dice-axis {
  bottom: 0;
  color: #07101f;
  display: block;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  left: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-shadow: none;
  z-index: 2;
}

.dice-axis span {
  bottom: 5px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}

.dice-axis span:first-child {
  left: 0;
  text-align: left;
  transform: none;
}

.dice-axis span:nth-child(2) {
  left: 25%;
}

.dice-axis span:nth-child(3) {
  left: 50%;
}

.dice-axis span:nth-child(4) {
  left: 75%;
}

.dice-axis span:last-child {
  left: 100%;
  text-align: right;
  transform: translateX(-100%);
}

.dice-result-number {
  display: none;
}

.game-scene.is-revealing .dice-ball {
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.32));
}

.game-scene.won .dice-ball,
.plinko-slot.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(22, 168, 111, 0.16);
}

.game-scene.won .dice-ball {
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(22, 168, 111, 0.26));
}

.game-scene.lost .dice-ball {
  border-color: var(--danger);
  box-shadow: 0 0 0 5px rgba(180, 61, 75, 0.14);
}

.game-scene.lost .dice-ball {
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(180, 61, 75, 0.24));
}

.limbo-scoreboard {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  justify-content: center;
  max-width: 520px;
  width: 100%;
}

.limbo-score-card {
  background: transparent;
  border: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.limbo-score-card span,
.limbo-preview-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.limbo-score-card strong {
  align-items: center;
  background: var(--value-well);
  border: 1px solid #07101f;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: flex;
  font-size: 42px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 58px;
  min-width: 0;
  padding: 8px 22px 10px;
  text-shadow: 0 1px 0 #07101f;
}

.limbo-score-card strong.won {
  color: var(--primary);
}

.limbo-score-card strong.lost {
  color: var(--danger);
}

.limbo-preview-strip {
  background: var(--value-well);
  border: 1px solid #07101f;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  overflow: hidden;
  width: 100%;
}

.limbo-preview-strip div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  position: relative;
}

.limbo-preview-strip div:not(:last-child)::after {
  background: rgba(139, 148, 158, 0.35);
  bottom: 14px;
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  width: 1px;
}

.limbo-preview-strip strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.limbo-meter {
  --limbo-result: 8%;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.36) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 16%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 14%, rgba(255, 209, 102, 0.38) 0 1px, transparent 2px),
    #050b16;
  border: 0;
  border-radius: 8px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.14),
    inset 0 -5px 0 rgba(0, 0, 0, 0.28),
    0 4px 0 rgba(7, 16, 31, 0.74),
    0 9px 18px rgba(0, 0, 0, 0.22);
  cursor: grab;
  height: 136px;
  max-width: 860px;
  outline: none;
  overflow: hidden;
  position: relative;
  touch-action: none;
  transition: box-shadow 180ms ease;
  width: 100%;
}

.limbo-meter:hover,
.limbo-meter.dragging,
.limbo-meter:focus-visible {
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.16),
    inset 0 -5px 0 rgba(0, 0, 0, 0.26),
    0 4px 0 rgba(7, 16, 31, 0.78),
    0 10px 20px rgba(0, 0, 0, 0.24);
}

.limbo-meter:active {
  cursor: grabbing;
}

.limbo-meter::before {
  background:
    radial-gradient(circle at 8% 62%, rgba(72, 79, 90, 0.45) 0 7px, rgba(255, 255, 255, 0.08) 8px, transparent 13px),
    radial-gradient(circle at 22% 34%, rgba(80, 87, 99, 0.36) 0 4px, rgba(255, 255, 255, 0.08) 5px, transparent 9px),
    radial-gradient(circle at 39% 70%, rgba(65, 72, 84, 0.42) 0 6px, rgba(255, 255, 255, 0.08) 7px, transparent 11px),
    radial-gradient(circle at 57% 38%, rgba(88, 94, 105, 0.32) 0 5px, rgba(255, 255, 255, 0.07) 6px, transparent 10px),
    radial-gradient(circle at 74% 68%, rgba(70, 77, 89, 0.4) 0 7px, rgba(255, 255, 255, 0.08) 8px, transparent 13px),
    radial-gradient(circle at 91% 42%, rgba(89, 95, 106, 0.35) 0 4px, rgba(255, 255, 255, 0.08) 5px, transparent 9px),
    linear-gradient(180deg, #d7d9dc 0%, #b9bdc4 54%, #8d949f 100%);
  bottom: 0;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -5px 0 #787f89,
    inset 0 -6px 0 rgba(7, 16, 31, 0.24);
  content: "";
  height: 34px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 2;
}

.limbo-track {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.64) 0 1px, transparent 2px),
    radial-gradient(circle at 17% 72%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 29% 35%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 12%, rgba(255, 255, 255, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 61% 58%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 76%, rgba(255, 209, 102, 0.34) 0 1px, transparent 2px),
    linear-gradient(180deg, #07101f 0%, #0b1424 52%, #111827 100%);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.07),
    inset 0 -5px 0 rgba(7, 16, 31, 0.22);
  bottom: 34px;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.limbo-track::before {
  background:
    linear-gradient(90deg, rgba(22, 168, 111, 0.82), rgba(22, 168, 111, 0.2)),
    radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 62%, rgba(255, 255, 255, 0.28) 0 1px, transparent 2px);
  bottom: 0;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.08),
    inset 0 -5px 0 rgba(7, 16, 31, 0.24);
  content: "";
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 180ms ease, width 420ms ease;
  width: var(--limbo-result);
}

.limbo-pin,
.limbo-target {
  position: absolute;
  transform: translateX(-50%);
}

.limbo-pin {
  align-items: center;
  background: url("/limbo-rocket.svg") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  color: transparent;
  display: flex;
  font-size: 0;
  font-weight: 900;
  height: 112px;
  justify-content: center;
  left: 8%;
  min-width: 112px;
  padding: 0;
  bottom: 18px;
  opacity: 1;
  transition: left 420ms ease, color 220ms ease, filter 220ms ease, opacity 180ms ease, transform 180ms ease;
  z-index: 5;
}

.limbo-pin.is-resetting {
  opacity: 0;
  transform: translateX(-50%) scale(0.92);
}

.limbo-pin span {
  display: none;
}

.limbo-target {
  background: var(--accent);
  bottom: 30px;
  height: 78px;
  width: 2px;
  z-index: 4;
}

.limbo-target span {
  background: var(--accent);
  border-radius: 999px;
  color: #17140a;
  cursor: grab;
  display: grid;
  gap: 2px;
  font-size: 12px;
  font-weight: 900;
  left: 50%;
  padding: 4px 7px;
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  transition: box-shadow 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.limbo-target span::after {
  background:
    linear-gradient(90deg, rgba(23, 20, 10, 0.45), rgba(23, 20, 10, 0.45)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(23, 20, 10, 0.34), rgba(23, 20, 10, 0.34)) 0 3px / 100% 1px no-repeat;
  content: "";
  height: 4px;
  margin: 0 auto;
  width: 12px;
}

.limbo-meter:hover .limbo-target span,
.limbo-meter.dragging .limbo-target span,
.limbo-meter:focus-visible .limbo-target span {
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}

.limbo-axis {
  bottom: 0;
  color: #111827;
  display: block;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  left: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-shadow: none;
  z-index: 2;
}

.limbo-axis span {
  bottom: 5px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}

.limbo-axis span:nth-child(1) {
  left: 8%;
}

.limbo-axis span:nth-child(2) {
  left: 16%;
}

.limbo-axis span:nth-child(3) {
  left: 36%;
}

.limbo-axis span:nth-child(4) {
  left: 64%;
}

.limbo-axis span:nth-child(5) {
  left: 92%;
}

.game-scene.won .limbo-track::before {
  opacity: 1;
  width: 100%;
}

.game-scene.won .limbo-meter::before {
  background:
    radial-gradient(circle at 8% 62%, rgba(72, 79, 90, 0.45) 0 7px, rgba(255, 255, 255, 0.08) 8px, transparent 13px),
    radial-gradient(circle at 22% 34%, rgba(80, 87, 99, 0.36) 0 4px, rgba(255, 255, 255, 0.08) 5px, transparent 9px),
    radial-gradient(circle at 39% 70%, rgba(65, 72, 84, 0.42) 0 6px, rgba(255, 255, 255, 0.08) 7px, transparent 11px),
    radial-gradient(circle at 57% 38%, rgba(88, 94, 105, 0.32) 0 5px, rgba(255, 255, 255, 0.07) 6px, transparent 10px),
    radial-gradient(circle at 74% 68%, rgba(70, 77, 89, 0.4) 0 7px, rgba(255, 255, 255, 0.08) 8px, transparent 13px),
    radial-gradient(circle at 91% 42%, rgba(89, 95, 106, 0.35) 0 4px, rgba(255, 255, 255, 0.08) 5px, transparent 9px),
    linear-gradient(180deg, #d7d9dc 0%, #b9bdc4 54%, #8d949f 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -5px 0 #787f89,
    inset 0 -6px 0 rgba(7, 16, 31, 0.24);
}

.game-scene.won .limbo-pin {
  filter: drop-shadow(0 0 10px rgba(22, 168, 111, 0.28));
}

.game-scene.lost .limbo-pin {
  filter: drop-shadow(0 0 8px rgba(139, 148, 158, 0.18));
}

.game-scene.is-settling .limbo-pin {
  animation: diceSettlePulse 760ms ease-in-out infinite;
}

.plinko-board-shell {
  background: #101820;
  border-radius: 8px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.14),
    inset 0 -5px 0 rgba(0, 0, 0, 0.28),
    0 4px 0 rgba(7, 16, 31, 0.74),
    0 9px 18px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 10px;
  max-width: 860px;
  overflow: hidden;
  padding: 18px;
  width: 100%;
}

.plinko-drop-zone {
  display: block;
  min-height: 340px;
  position: relative;
}

.plinko-ball {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 28%),
    var(--accent);
  border: 2px solid #07101f;
  border-radius: 999px;
  box-shadow:
    inset 0 -4px 0 rgba(7, 16, 31, 0.24),
    0 5px 12px rgba(0, 0, 0, 0.32);
  height: 26px;
  left: var(--plinko-ball-x, 50%);
  position: absolute;
  top: var(--plinko-ball-y, 0%);
  transform:
    translate(-50%, -50%)
    rotate(var(--plinko-ball-rotation, 0deg))
    scale(var(--plinko-ball-scale-x, 1), var(--plinko-ball-scale-y, 1));
  transition: left 96ms ease-in, top 96ms ease-in, filter 220ms ease, transform 180ms ease;
  width: 26px;
  z-index: 4;
}

.plinko-ball.is-dropping {
  transition: filter 160ms ease;
  will-change: left, top, transform;
}

.plinko-auto-ball {
  pointer-events: none;
  transition: opacity 420ms ease, filter 160ms ease;
}

.plinko-auto-ball.is-fading {
  opacity: 0;
}

.game-scene.is-multiball #plinkoBall {
  opacity: 0;
  pointer-events: none;
}

.plinko-ball.landed {
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.26));
}

.game-scene.is-settling .plinko-ball {
  animation: diceSettlePulse 760ms ease-in-out infinite;
}

.plinko-board {
  height: 340px;
  position: relative;
  width: 100%;
}

.plinko-peg {
  background: #d6e1f1;
  border: 1px solid rgba(7, 16, 31, 0.45);
  border-radius: 999px;
  box-shadow:
    inset 0 -2px 0 rgba(7, 16, 31, 0.24),
    0 2px 4px rgba(0, 0, 0, 0.22);
  height: 12px;
  left: var(--peg-x);
  opacity: 0.72;
  position: absolute;
  top: var(--peg-y);
  transform: translate(-50%, -50%);
  width: 12px;
}

.plinko-peg.spark {
  animation: plinkoPegSpark 360ms ease-out;
}

@keyframes plinkoPegSpark {
  0% {
    background: var(--accent);
    box-shadow:
      0 0 0 0 rgba(255, 209, 102, 0.42),
      0 0 0 rgba(255, 209, 102, 0),
      0 3px 8px rgba(0, 0, 0, 0.28);
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.92);
  }

  45% {
    background: var(--accent);
    box-shadow:
      0 0 0 7px rgba(255, 209, 102, 0.18),
      0 0 18px rgba(255, 209, 102, 0.44),
      0 3px 8px rgba(0, 0, 0, 0.28);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.45);
  }

  100% {
    background: #d6e1f1;
    box-shadow:
      0 0 0 12px rgba(255, 209, 102, 0),
      0 0 0 rgba(255, 209, 102, 0),
      0 3px 8px rgba(0, 0, 0, 0.28);
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(1);
  }
}

.plinko-slots {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(var(--plinko-slots, 13), minmax(0, 1fr));
  width: 100%;
}

.plinko-slot {
  background: #111418;
  border: 1px solid #07101f;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  min-height: 34px;
  padding: 8px 2px;
  text-align: center;
}

.plinko-slot.pays {
  color: var(--primary);
}

.plinko-slot.miss {
  color: var(--danger);
}

.plinko-slot.active {
  background: var(--panel-2);
  color: var(--text);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.control-panel,
.round-panel {
  height: fit-content;
}

.control-panel {
  align-content: start;
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: 620px;
  padding: 14px;
  position: relative;
  width: 100%;
}

.control-heading {
  display: grid;
  gap: 10px;
}

.bet-mode-tabs {
  background: var(--value-well);
  border: 1px solid #07101f;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  padding: 5px;
}

.bet-mode {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  justify-content: center;
  min-height: 42px;
  padding: 0 8px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.bet-mode:not(.active):not(:disabled):hover {
  background: rgba(15, 20, 27, 0.78);
  color: var(--text);
}

.bet-mode.active {
  background: var(--value-well);
  border-color: #07101f;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(22, 168, 111, 0.16);
  color: var(--text);
}

.bet-mode.active::after {
  background: var(--primary);
  border-radius: 999px;
  bottom: 5px;
  box-shadow: 0 0 10px rgba(22, 168, 111, 0.24);
  content: "";
  height: 3px;
  left: 18px;
  position: absolute;
  right: 18px;
}

.bet-mode:disabled {
  color: color-mix(in srgb, var(--muted) 58%, #0b1016);
  cursor: not-allowed;
  opacity: 0.58;
}

.game-control-group {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.input-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 54px;
  min-width: 0;
}

.dice-roll-action-row {
  grid-template-columns: minmax(0, 1fr) 54px;
}

.input-with-unit {
  display: grid;
  min-width: 0;
  position: relative;
}

.input-action-row input {
  border-radius: 6px 0 0 6px;
}

.input-action-row .input-with-unit input {
  padding-right: 38px;
}

.input-unit {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  pointer-events: none;
  position: absolute;
  right: 14px;
  text-shadow: 0 1px 0 #07101f;
  top: 50%;
  transform: translateY(-50%);
}

.number-stepper input,
.input-action-row input,
.auto-controls input,
.rail-status {
  background: var(--value-well);
  border: 1px solid #07101f;
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.04);
  text-shadow: 0 1px 0 #07101f;
}

.number-stepper {
  display: grid;
  min-width: 0;
  position: relative;
}

.currency-badge {
  --currency-accent: var(--accent);
  align-items: center;
  background: var(--currency-accent);
  border: 2px solid color-mix(in srgb, var(--currency-accent) 62%, #07101f);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.24),
    0 2px 0 rgba(0, 0, 0, 0.32);
  color: #06101b;
  display: inline-flex;
  font-size: 10px;
  font-weight: 1000;
  height: 28px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 28px;
  padding: 0 5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.currency-badge[data-length="1"],
.currency-badge[data-length="2"] {
  font-size: 12px;
}

.currency-badge[data-length="4"] {
  font-size: 8px;
}

.amount-currency-badge {
  left: 10px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.number-stepper input {
  border-radius: 6px 0 0 6px;
  font-weight: 800;
  padding-left: 52px;
  padding-right: 44px;
}

.stepper-buttons {
  bottom: 1px;
  display: grid;
  position: absolute;
  right: 1px;
  top: 1px;
  width: 36px;
}

.stepper-button {
  background: #101722;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  justify-content: center;
  min-height: 0;
  padding: 0;
}

.stepper-button:first-child {
  border-bottom: 1px solid var(--line);
}

.stepper-button:hover {
  background: var(--panel-2);
  color: var(--text);
}

.stepper-button svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 16px;
}

.input-action {
  background: var(--panel-2);
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  justify-content: center;
  min-height: 40px;
  padding: 0;
}

.input-action:last-child {
  border-radius: 0 6px 6px 0;
}

.dice-direction-toggle svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 18px;
}

.dice-direction-toggle.is-over {
  color: var(--primary);
}

#limboControls {
  gap: 10px;
}

#plinkoControls {
  gap: 10px;
}

.limbo-target-field,
.limbo-chance-field,
.plinko-rows-field,
.plinko-risk-field {
  gap: 8px;
}

.plinko-rows-field .field-caption,
.plinko-risk-field .field-caption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.limbo-target-action-row input,
.limbo-chance-action-row input {
  font-weight: 900;
}

.limbo-preset-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plinko-risk-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plinko-rows-row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.limbo-preset,
.plinko-row-button,
.plinko-risk-button {
  background: #0f141b;
  border: 1px solid #07101f;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.limbo-preset.active,
.plinko-row-button.active,
.plinko-risk-button.active {
  background: var(--panel-2);
  color: var(--text);
}

.limbo-preset:hover,
.plinko-row-button:hover,
.plinko-risk-button:hover {
  background: var(--panel-2);
  color: var(--primary);
}

.limbo-preset.active:hover,
.plinko-row-button.active:hover,
.plinko-risk-button.active:hover {
  color: var(--text);
}

.limbo-preset:active,
.plinko-row-button:active,
.plinko-risk-button:active {
  transform: translateY(1px);
}

.limbo-preset:focus-visible,
.plinko-row-button:focus-visible,
.plinko-risk-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.payout-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.rail-status {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
}

.rail-status span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.rail-status strong {
  color: var(--text);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  white-space: nowrap;
}

.bet-footer-tools {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tool-button {
  flex: 0 0 auto;
}

.bet-feed-panel {
  display: grid;
  font-family: var(--font-body);
  gap: 10px;
  grid-area: feed;
  letter-spacing: 0;
  margin-top: 0;
}

.bet-feed-panel.is-collapsed .bet-feed-table {
  display: none;
}

.bet-feed-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bet-feed-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.bet-feed-tabs {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: inline-grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  padding: 0;
}

.bet-feed-tabs .feed-option {
  background: #0f141b;
  border-color: var(--line);
  min-height: 46px;
}

.bet-feed-trigger {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: none;
  font-family: var(--font-body);
  justify-content: space-between;
  min-height: 50px;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
}

.bet-feed-trigger > span {
  display: grid;
  gap: 2px;
}

.bet-feed-kicker {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bet-feed-trigger strong {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.chevron-icon {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 20px;
}

.bet-feed-table {
  display: grid;
  gap: 8px;
}

.feed-table-header,
.bet-feed-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 1fr 1.2fr 1.1fr 1fr 1fr;
}

.feed-table-header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 12px;
  text-transform: uppercase;
}

.feed-empty,
.bet-feed-row {
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 10px 12px;
}

.bet-feed-row {
  align-items: center;
  min-height: 46px;
}

.feed-empty {
  display: block;
}

.feed-game,
.feed-amount,
.feed-user {
  color: var(--text);
}

.feed-game::before {
  color: var(--muted);
  content: "Dice";
  display: none;
}

.feed-multiplier {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  justify-content: center;
  justify-self: start;
  min-width: 74px;
  padding: 3px 8px;
}

.bet-feed-row.win .feed-multiplier,
.bet-feed-row.win .feed-payout {
  color: var(--primary);
}

.feed-payout {
  color: var(--muted);
}

.feed-option {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  justify-content: flex-start;
  min-height: 40px;
  padding: 8px 12px;
}

.feed-option span {
  font-family: var(--font-body);
  letter-spacing: 0;
}

.feed-option.active {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

.feed-option:hover {
  border-color: var(--line);
  color: var(--text);
}

.feed-option-icon {
  align-items: center;
  color: currentColor;
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.feed-option-icon svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 18px;
}

.feed-option.active .feed-option-icon {
  color: var(--primary);
}

.feed-popover {
  background: #151b23;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  display: grid;
  font-family: var(--font-body);
  gap: 10px;
  letter-spacing: 0;
  left: 50%;
  max-height: min(320px, calc(var(--game-vh, 100dvh) - 32px));
  max-width: 420px;
  overflow: auto;
  padding: 12px;
  position: fixed;
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 420px);
  z-index: 14;
}

.feed-sheet-header {
  align-items: center;
  display: flex;
  min-height: 36px;
  justify-content: space-between;
}

.feed-sheet-header h3 {
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.feed-close {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.feed-close:hover {
  color: var(--text);
}

.feed-close svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 16px;
}

.feed-option-list {
  display: grid;
  gap: 8px;
}

.feed-option-list .feed-option {
  background: #0f141b;
  border-color: var(--line);
  font-size: 14px;
  min-height: 48px;
  padding-inline: 12px;
}

.feed-option-list .feed-option.active {
  background: var(--panel-2);
  color: var(--text);
}

.bet-report-overlay {
  align-items: center;
  background: rgba(3, 7, 12, 0.72);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 30;
}

.bet-report-dialog {
  background: #151f28;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.48);
  color: var(--text);
  display: grid;
  gap: 18px;
  max-height: min(820px, calc(var(--game-vh, 100dvh) - 28px));
  max-width: 720px;
  overflow: auto;
  padding: 20px;
  width: min(100%, 720px);
}

.bet-report-header,
.bet-report-round {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bet-report-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.bet-report-header h3 {
  font-size: 24px;
  margin: 0;
}

.report-close,
.report-copy {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.report-copy {
  border-radius: 6px;
  height: 38px;
  min-height: 38px;
  width: 42px;
}

.report-close:hover,
.report-copy:hover {
  border-color: rgba(22, 168, 111, 0.55);
  color: var(--text);
}

.report-copy.copied {
  background: rgba(22, 168, 111, 0.16);
  border-color: rgba(22, 168, 111, 0.65);
  color: var(--primary);
}

.report-copy.copy-failed {
  background: rgba(180, 61, 75, 0.12);
  border-color: rgba(180, 61, 75, 0.55);
  color: var(--danger);
}

.report-close svg,
.report-copy svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 18px;
}

.bet-report-round {
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-content: flex-start;
  min-width: 0;
  padding: 10px;
}

.bet-report-round span,
.bet-report-summary span,
.bet-report-grid span,
.fairness-report label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bet-report-round strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bet-report-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: -8px 0 0;
  text-align: center;
}

.bet-report-summary,
.bet-report-grid {
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.bet-report-summary div,
.bet-report-grid div {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  padding: 14px 10px;
  text-align: center;
}

.bet-report-summary div + div,
.bet-report-grid div + div {
  border-left: 1px solid var(--line);
}

.bet-report-summary strong,
.bet-report-grid strong {
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#betReportPayout.win,
#betReportOutcome.win {
  color: var(--primary);
}

#betReportOutcome.loss {
  color: var(--danger);
}

.bet-report-meter {
  --report-target: 50%;
  background: #0b1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 96px;
  overflow: hidden;
  position: relative;
}

.report-zone {
  background: rgba(180, 61, 75, 0.82);
  border-radius: 999px;
  bottom: 28px;
  height: 12px;
  left: 18px;
  overflow: hidden;
  position: absolute;
  right: 18px;
}

.report-zone::before {
  background: rgba(22, 168, 111, 0.82);
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: var(--report-target);
}

.bet-report-meter.roll-over .report-zone::before {
  left: var(--report-target);
  width: calc(100% - var(--report-target));
}

.report-target,
.report-roll {
  position: absolute;
  transform: translateX(-50%);
}

.report-target {
  background: var(--accent);
  bottom: 20px;
  height: 32px;
  width: 2px;
}

.report-target span,
.report-roll span {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  left: 50%;
  padding: 4px 7px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.report-target span {
  background: var(--accent);
  color: #17140a;
  top: -28px;
}

.report-roll {
  bottom: 22px;
}

.report-roll span {
  background: var(--text);
  border: 3px solid var(--primary);
  color: #060a0f;
  top: -43px;
}

.bet-report-meter.lost .report-roll span {
  border-color: var(--danger);
}

.report-axis {
  bottom: 8px;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 900;
  grid-template-columns: repeat(5, 1fr);
  left: 18px;
  position: absolute;
  right: 18px;
}

.report-axis span {
  text-align: center;
}

.report-axis span:first-child {
  text-align: left;
}

.report-axis span:last-child {
  text-align: right;
}

.fairness-report {
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.fairness-report summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  padding: 16px;
}

.fairness-report-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.report-proof-value,
.report-proof-row {
  align-items: center;
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 46px;
  min-width: 0;
  padding: 8px 10px;
}

.report-proof-row span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.muted-proof {
  color: var(--muted);
  font-weight: 800;
}

.bet-report-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.report-verifier-link {
  justify-content: center;
  min-height: 44px;
  width: 100%;
}

.bet-feed-collapse {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  flex: 0 0 50px;
  font-family: var(--font-body);
  height: 50px;
  justify-content: center;
  min-height: 50px;
  padding: 0;
  width: 50px;
}

.bet-feed-collapse:hover {
  border-color: rgba(22, 168, 111, 0.58);
  color: var(--primary);
}

.bet-feed-collapse .chevron-icon {
  transition: transform 160ms ease;
}

.bet-feed-collapse[aria-expanded="false"] .chevron-icon {
  transform: rotate(180deg);
}

.fairness-trust-overlay {
  align-items: center;
  background: rgba(3, 7, 12, 0.74);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 18px;
  position: fixed;
  z-index: 32;
}

.fairness-trust-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.5);
  color: var(--text);
  display: grid;
  gap: 14px;
  max-height: min(820px, calc(var(--game-vh, 100dvh) - 28px));
  max-width: 760px;
  overflow: auto;
  padding: 20px;
  width: min(100%, 760px);
}

.fairness-trust-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.fairness-trust-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.fairness-trust-header h3 {
  font-size: 24px;
  margin: 0;
}

.fairness-tabs {
  background: #0b1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  padding: 0;
}

.fairness-tab {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 14px;
}

.fairness-tab + .fairness-tab {
  border-left: 1px solid var(--line);
}

.fairness-tab.active {
  background: var(--panel-2);
  color: var(--primary);
}

.fairness-panel {
  display: grid;
  gap: 14px;
}

.fairness-overview-card,
.seed-rotate-card,
.revealed-seed-card {
  background: #0f141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.fairness-overview-card span,
.fairness-stat-grid span,
.fairness-field,
.fairness-verify-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fairness-overview-card strong {
  color: var(--text);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.fairness-overview-card p,
.seed-rotate-card p,
.fairness-helper {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.fairness-stat-grid,
.fairness-verify-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fairness-stat-grid div,
.fairness-verify-grid div {
  background: #0b1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.fairness-stat-grid strong,
.fairness-verify-grid strong {
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

#fairnessRotationState.blocked {
  color: var(--danger);
}

.fairness-field {
  display: grid;
  gap: 8px;
}

.seed-input-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.seed-input-row input {
  min-height: 46px;
}

.seed-action,
.seed-rotate-button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  min-height: 46px;
  padding: 0 18px;
}

.seed-action:hover,
.seed-rotate-button:hover {
  border-color: rgba(22, 168, 111, 0.55);
}

.fairness-proof-row {
  align-items: center;
  background: #0b1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 48px;
  min-width: 0;
  padding: 8px 10px;
}

.fairness-proof-row span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.seed-rotate-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.seed-rotate-card strong {
  color: var(--text);
  font-size: 17px;
}

.tool-popover {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  bottom: 64px;
  display: grid;
  gap: 10px;
  left: 14px;
  max-height: min(430px, calc(100vh - 180px));
  overflow: auto;
  padding: 14px;
  position: absolute;
  right: 14px;
  width: auto;
  z-index: 8;
}

.popover-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.popover-header h3 {
  font-size: 16px;
  margin: 0;
}

.seed-popover-control {
  display: grid;
  gap: 8px;
}

.seed-popover-control input {
  min-height: 34px;
}

.help-list {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

.toggle-row {
  align-items: center;
  background: #0b1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
}

.toggle-row input {
  accent-color: var(--primary);
  height: 18px;
  min-height: 18px;
  width: 18px;
}

@keyframes diceSettlePulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes recentChipIn {
  0% {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.animations-off *,
body.animations-off *::before,
body.animations-off *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}

body.speed-fast .dice-ball,
body.speed-fast .plinko-ball,
body.speed-fast .limbo-pin,
body.speed-fast .recent-chip {
  transition-duration: 90ms !important;
}

body.speed-fast .game-scene.is-settling .plinko-ball,
body.speed-fast .recent-chip.new {
  animation-duration: 180ms !important;
}

body.speed-fast .plinko-ball {
  transition-duration: 34ms !important;
}

.control-warning,
.settlement-alert {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  min-height: 34px;
  padding: 8px 10px;
}

.control-warning.visible,
.settlement-alert.visible {
  display: flex;
}

.stake-warning.visible,
.game-warning.visible {
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.34);
  color: #f1c95b;
}

.settlement-alert.visible {
  background: rgba(180, 61, 75, 0.12);
  border-color: rgba(180, 61, 75, 0.42);
  color: #f2b0ba;
}

.settlement-alert.is-refund.visible {
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.34);
  color: #f1c95b;
}

button.disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.compact {
  gap: 8px;
}

.verifier-shell {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 24px;
}

.verifier-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.verifier-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
}

.verifier-form,
.verifier-result-panel {
  align-content: start;
}

.verifier-section-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.verifier-section-header h2 {
  margin: 0;
}

.verifier-game-params {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.verifier-advanced textarea,
.embed-snippet {
  min-height: 104px;
  resize: vertical;
}

.verifier-status {
  background: #0b1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 14px;
}

.status-ok {
  background: rgba(22, 168, 111, 0.14);
  border-color: rgba(22, 168, 111, 0.55);
  color: #baf8e7;
}

.status-warning,
.status-pending {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.55);
  color: #ffe7a6;
}

.status-danger {
  background: rgba(180, 61, 75, 0.14);
  border-color: rgba(180, 61, 75, 0.55);
  color: #ffc4cf;
}

.embed-badge {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.verifier-embed-card {
  grid-column: 1 / -1;
}

body.verifier-embed {
  background: transparent;
}

body.verifier-embed .verifier-shell {
  max-width: 760px;
  min-height: auto;
  padding: 12px;
}

body.verifier-embed .verifier-header,
body.verifier-embed .verifier-embed-card {
  display: none;
}

body.verifier-embed .verifier-layout {
  grid-template-columns: 1fr;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 1100px) {
  .game-app {
    padding: 12px;
  }

  .game-layout {
    gap: 12px;
    grid-template-columns: minmax(280px, 310px) minmax(0, 1fr);
  }

  .control-panel,
  .live-game-stage {
    min-height: 580px;
  }

  .dice-scoreboard,
  .dice-preview-strip,
  .dice-meter,
  .limbo-scoreboard,
  .limbo-preview-strip,
  .limbo-meter,
  .plinko-board-shell {
    max-width: 100%;
  }

  .dice-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-table-header,
  .bet-feed-row {
    grid-template-columns: 1fr 0.9fr 1fr 1fr 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .shell,
  .hero,
  .field-row,
  .grid.two,
  .grid.three,
  .detail-grid,
  .callback-grid,
  .verifier-layout {
    grid-template-columns: 1fr;
  }

  .game-layout {
    align-content: start;
    align-items: start;
    grid-template-areas:
      "play"
      "controls"
      "feed";
    gap: 0;
    grid-template-columns: 1fr;
  }

  .game-fill .game-layout {
    min-height: 0;
  }

  .play-surface {
    align-content: start;
    align-self: start;
  }

  .control-surface {
    align-self: start;
    position: static;
  }

  .control-panel {
    min-height: 0;
  }

  .game-embed .control-panel,
  .game-embed .live-game-stage {
    min-height: 0;
  }

  .game-app {
    padding: 10px;
  }

  .bet-feed-panel {
    margin-top: 10px;
  }

  .bet-feed-header {
    align-items: stretch;
  }

  .bet-feed-actions {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .bet-feed-tabs {
    display: none;
  }

  .bet-feed-trigger {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
  }

  .feed-table-header,
  .bet-feed-row {
    gap: 8px;
    grid-template-columns: 1fr 1fr 0.9fr 1fr;
  }

  .feed-table-header span:nth-child(2),
  .feed-table-header span:nth-child(3),
  .bet-feed-row span:nth-child(2),
  .bet-feed-row span:nth-child(3) {
    display: none;
  }

  .feed-table-header {
    font-size: 10px;
    padding-inline: 10px;
  }

  .bet-feed-row {
    font-size: 12px;
    min-height: 48px;
    padding: 10px;
  }

  .feed-multiplier {
    min-width: 56px;
    padding-inline: 6px;
  }

  .game-topbar,
  .stage-header {
    align-items: stretch;
    flex-direction: column;
  }

  .game-topbar-actions,
  .stage-pills {
    justify-content: stretch;
  }

  .stage-tools {
    justify-content: flex-start;
  }

  .game-tabs {
    grid-template-columns: 1fr;
  }

  .payout-preview {
    grid-template-columns: 1fr;
  }

  .payout-preview div,
  .payout-preview div:first-child,
  .payout-preview div:last-child {
    border-radius: 8px;
  }

  .live-game-stage {
    min-height: 0;
    padding: 14px 14px 8px;
  }

  .game-scene {
    align-content: start;
    min-height: 0;
    padding: 14px 0 0;
  }

  .mobile-short .control-panel,
  .mobile-short .game-scene {
    gap: 6px;
  }

  .mobile-short .live-game-stage {
    padding: 10px 10px 6px;
  }

  #betForm {
    grid-area: form;
    grid-template-areas:
      "stake-row"
      "game"
      "auto";
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .stake-submit-row {
    grid-area: stake-row;
    grid-template-areas:
      "stake half double"
      "bet bet bet";
    grid-template-columns: minmax(0, 1fr) 38px 38px;
    row-gap: 8px;
  }

  .stake-field {
    font-size: 0;
    grid-area: stake;
    gap: 0;
  }

  .stake-field .control-meta {
    display: none;
  }

  .stake-field input {
    font-size: 16px;
  }

  .amount-currency-badge {
    height: 26px;
    left: 8px;
    min-width: 26px;
    padding: 0 4px;
  }

  .currency-badge[data-length="1"],
  .currency-badge[data-length="2"] {
    font-size: 11px;
  }

  .currency-badge[data-length="4"] {
    font-size: 7px;
  }

  .game-control-group {
    grid-area: game;
  }

  .auto-controls {
    grid-area: auto;
  }

  #diceControls {
    border-top: 0;
    padding-top: 0;
  }

  #betButton {
    align-self: end;
    grid-area: bet;
    justify-content: center;
    margin-left: 0;
    min-height: 52px;
    padding: 0 10px;
  }

  .stake-helper {
    font-size: 12px;
    min-height: 52px;
  }

  .stake-submit-row .number-stepper input {
    min-height: 52px;
    padding-left: 42px;
  }

  .stake-submit-row .stepper-buttons {
    width: 34px;
  }

  .dice-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .dice-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
  }

  .dice-score-card strong {
    font-size: 36px;
    min-height: 52px;
    padding: 7px 18px 9px;
  }

  .dice-meter {
    height: 122px;
  }

  .limbo-meter {
    height: 122px;
  }

  .limbo-pin {
    height: 100px;
    min-width: 100px;
  }

  .dice-ball {
    height: 122px;
    min-width: 122px;
    top: 5px;
  }

  .tool-popover {
    bottom: 64px;
    max-height: min(420px, calc(100vh - 120px));
  }

  .plinko-board-shell {
    padding: 14px;
  }

  .plinko-drop-zone {
    min-height: 280px;
  }

  .plinko-board {
    height: 280px;
  }

  .plinko-peg {
    height: 10px;
    width: 10px;
  }

  .plinko-slots {
    gap: 4px;
  }

  .plinko-slot {
    font-size: 9px;
    min-height: 30px;
    padding: 5px 1px;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .verifier-shell {
    padding: 14px;
  }

  .verifier-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .bet-report-overlay {
    align-items: stretch;
    padding: 8px;
  }

  .bet-report-dialog {
    align-self: start;
    gap: 14px;
    max-height: calc(var(--game-vh, 100dvh) - 16px);
    padding: 14px;
  }

  .fairness-trust-overlay {
    align-items: stretch;
    padding: 8px;
  }

  .fairness-trust-dialog {
    align-self: start;
    gap: 14px;
    max-height: calc(var(--game-vh, 100dvh) - 16px);
    padding: 14px;
  }

  .fairness-trust-header h3 {
    font-size: 20px;
  }

  .fairness-tab {
    font-size: 14px;
    min-height: 40px;
    padding: 0 8px;
  }

  .fairness-stat-grid,
  .fairness-verify-grid {
    grid-template-columns: 1fr;
  }

  .seed-input-row,
  .seed-rotate-card {
    grid-template-columns: 1fr;
  }

  .seed-action,
  .seed-rotate-button {
    width: 100%;
  }

  .bet-report-header h3 {
    font-size: 20px;
  }

  .bet-report-summary strong,
  .bet-report-grid strong {
    font-size: 15px;
  }

  .bet-report-summary div,
  .bet-report-grid div {
    padding: 12px 6px;
  }

  .bet-report-meter {
    height: 86px;
  }

  .fairness-report summary {
    font-size: 16px;
    padding: 14px;
  }

  .fairness-report-body {
    padding: 0 12px 12px;
  }

  .report-proof-row span {
    font-size: 13px;
  }

  .game-topbar {
    gap: 12px;
  }

  .game-topbar-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .game-topbar-actions .btn {
    display: none;
  }

  .balance {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .page-title {
    font-size: 28px;
  }

  .game-embed .stage-header {
    display: none;
  }

  .control-panel,
  .live-game-stage {
    padding: 10px;
  }

  .live-game-stage {
    padding-bottom: 6px;
  }

  .control-panel {
    padding-top: 10px;
  }

  .control-panel,
  .game-scene {
    gap: 8px;
  }

  .control-heading {
    display: contents;
  }

  .control-panel {
    grid-template-areas:
      "tabs tabs"
      "form form"
      "modes modes"
      "status tools";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .game-tabs {
    grid-area: tabs;
  }

  .bet-mode-tabs {
    grid-area: modes;
  }

  .rail-status {
    align-self: center;
    grid-area: status;
    margin-top: 0;
    min-height: 38px;
    padding: 8px 10px;
  }

  .bet-footer-tools {
    align-self: center;
    grid-area: tools;
  }

  .dice-scoreboard {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .limbo-scoreboard {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dice-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .limbo-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dice-score-card {
    border-radius: 8px;
  }

  .dice-score-card {
    gap: 5px;
    min-height: 0;
    padding: 0;
  }

  .limbo-score-card {
    gap: 5px;
    min-height: 0;
    padding: 0;
  }

  .dice-score-card span,
  .dice-preview-strip span,
  .limbo-score-card span,
  .limbo-preview-strip span {
    font-size: 10px;
  }

  .dice-score-card strong {
    font-size: 25px;
    min-height: 38px;
    padding: 5px 10px 7px;
    text-shadow: 0 1px 0 #07101f;
  }

  .limbo-score-card strong {
    font-size: 25px;
    min-height: 38px;
    padding: 5px 10px 7px;
    text-shadow: 0 1px 0 #07101f;
  }

  .dice-preview-strip div {
    gap: 4px;
    justify-items: center;
    min-height: 50px;
    padding: 8px 5px;
    text-align: center;
  }

  .limbo-preview-strip div {
    gap: 4px;
    justify-items: center;
    min-height: 50px;
    padding: 8px 5px;
    text-align: center;
  }

  .dice-preview-strip strong {
    font-size: 12px;
  }

  .limbo-preview-strip strong {
    font-size: 12px;
  }

  .recent-results {
    justify-content: flex-start;
    min-height: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .recent-chip {
    font-size: 11px;
    min-height: 30px;
    min-width: 46px;
    padding: 5px 8px 6px;
  }

  .dice-meter {
    height: 72px;
  }

  .limbo-meter {
    height: 72px;
  }

  .limbo-meter::before {
    height: 24px;
  }

  .limbo-track {
    bottom: 24px;
  }

  .limbo-pin {
    bottom: 12px;
    height: 54px;
    min-width: 54px;
  }

  .limbo-target {
    bottom: 14px;
    height: 34px;
  }

  .limbo-target span {
    font-size: 10px;
    padding: 3px 6px;
    top: -23px;
  }

  .limbo-pin span {
    bottom: 2px;
    font-size: 8px;
    min-width: 38px;
    padding: 2px 5px;
  }

  .limbo-axis {
    font-size: 9px;
  }

  .plinko-board-shell {
    padding: 10px;
  }

  .plinko-drop-zone {
    min-height: 220px;
  }

  .plinko-ball {
    height: 20px;
    width: 20px;
  }

  .plinko-board {
    height: 220px;
  }

  .plinko-peg {
    height: 8px;
    width: 8px;
  }

  .plinko-slots {
    gap: 3px;
  }

  .plinko-slot {
    border-radius: 4px;
    font-size: 8px;
    min-height: 26px;
    padding: 4px 1px;
  }

  .dice-meter::before {
    height: 24px;
  }

  .dice-ball {
    height: 58px;
    min-width: 58px;
    top: 5px;
  }

  .dice-target-marker {
    bottom: 14px;
    height: 34px;
  }

  .dice-axis {
    font-size: 9px;
    height: 20px;
    padding: 0;
  }

  .dice-target-marker span {
    font-size: 10px;
    padding: 3px 6px;
    top: -23px;
  }

  .dice-axis {
    bottom: 4px;
    font-size: 9px;
  }

  .dice-axis span {
    bottom: 3px;
  }

  #betForm {
    row-gap: 4px;
  }

  .stake-submit-row {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
  }

  .stake-field {
    font-size: 0;
    grid-area: stake;
    gap: 0;
  }

  .stake-field .control-meta {
    display: none;
  }

  .stake-field input {
    font-size: 16px;
  }

  .amount-currency-badge {
    height: 24px;
    left: 7px;
    min-width: 24px;
    padding: 0 4px;
  }

  .game-control-group {
    grid-area: game;
    padding-top: 0;
  }

  #betButton {
    align-self: end;
    grid-area: bet;
    margin-left: 0;
    min-height: 50px;
    padding: 0 10px;
  }

  .stake-helper,
  .stake-submit-row .number-stepper input {
    min-height: 50px;
  }

  .stake-submit-row .number-stepper input {
    padding-left: 39px;
  }

  .input-action-row {
    grid-template-columns: minmax(0, 1fr) 48px 48px;
  }

  .dice-roll-action-row {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .dice-target-field input,
  .dice-chance-field input,
  .limbo-target-field input,
  .limbo-chance-field input {
    font-size: 17px;
    font-weight: 900;
    min-height: 44px;
  }

  .dice-target-field .input-action,
  .dice-chance-field .input-action,
  .limbo-target-field .input-action,
  .limbo-chance-field .input-action {
    min-height: 44px;
  }

  .limbo-preset-row {
    gap: 6px;
  }

  .limbo-preset,
  .plinko-row-button,
  .plinko-risk-button {
    font-size: 10px;
    min-height: 30px;
    padding-inline: 4px;
  }

  .bet-mode-tabs {
    min-height: 32px;
  }

  .bet-mode {
    font-size: 11px;
    padding-inline: 4px;
  }

  .tool-popover {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 420px) {
  .game-app {
    padding: 8px;
  }

  .control-panel,
  .live-game-stage {
    padding: 8px;
  }

  .dice-score-card strong {
    font-size: 22px;
    min-height: 34px;
    padding-inline: 8px;
  }

  .limbo-score-card strong {
    font-size: 22px;
    min-height: 34px;
    padding-inline: 8px;
  }

  .dice-preview-strip strong {
    font-size: 11px;
  }

  .limbo-preview-strip strong {
    font-size: 11px;
  }

  .input-action-row {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
  }

  .dice-roll-action-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .stake-submit-row {
    grid-template-columns: minmax(0, 1fr) 31px 31px;
  }

  #betButton {
    margin-left: 0;
  }

  .stake-helper {
    font-size: 11px;
  }

  .dice-scoreboard {
    gap: 6px;
  }

  .limbo-scoreboard {
    gap: 6px;
  }

  .dice-preview-strip div {
    padding-inline: 4px;
  }

  .limbo-preview-strip div {
    padding-inline: 4px;
  }

  .plinko-drop-zone {
    min-height: 190px;
  }

  .plinko-board {
    height: 190px;
  }

  .plinko-slot {
    font-size: 7px;
  }
}
