:root {
  color-scheme: dark;
  --bg: #080b10;
  --surface: #0d1016;
  --surface-2: #111620;
  --surface-3: #151b27;
  --line: rgba(232, 236, 243, 0.12);
  --line-2: rgba(232, 236, 243, 0.22);
  --text: #f3f5f8;
  --muted: #88919f;
  --soft: #c2c8d1;
  --gold: #c9ad69;
  --gold-2: #e3cc8f;
  --red: #9d3538;
  --red-2: #c04a4f;
  --green: #167048;
  --green-2: #2da56f;
  --blue: #87b7e8;
  --bad: #d16060;
  --good: #50c68d;
  --play-w: 1180px;
  --stats-w: 188px;
  --table-size: 1;
  --table-scale: 1;
  --table-scale-inverse: 1;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-fine: 0 1px 1px rgba(0, 0, 0, 0.34);
  --shadow-low: 0 6px 16px rgba(0, 0, 0, 0.28);
  --shadow-mid: 0 12px 28px rgba(0, 0, 0, 0.34);
  --shadow-high: 0 22px 54px rgba(0, 0, 0, 0.46);
  --shadow-chip: inset 0 0 0 6px rgba(0, 0, 0, 0.16), inset 0 0 0 9px rgba(255, 255, 255, 0.045), 0 9px 20px rgba(0, 0, 0, 0.34), 0 2px 4px rgba(0, 0, 0, 0.28);
  --shadow-chip-hover: inset 0 0 0 6px rgba(0, 0, 0, 0.14), inset 0 0 0 9px rgba(255, 255, 255, 0.06), 0 15px 28px rgba(0, 0, 0, 0.42), 0 5px 10px rgba(0, 0, 0, 0.3);
  --shadow-control: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 18px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-control-hover: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 24px rgba(0, 0, 0, 0.34), 0 3px 7px rgba(0, 0, 0, 0.26);
  --text-depth: 0 1px 1px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

html:fullscreen,
html:fullscreen body,
body.is-fullscreen {
  background: var(--bg);
}

html:fullscreen .shell {
  min-height: 100vh;
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

.shell {
  display: grid;
  align-content: center;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: 8px 0;
}

.play-layout {
  position: relative;
  display: block;
  align-self: center;
  justify-self: center;
  width: min(calc(var(--play-w) * var(--table-size) * var(--table-scale)), calc(100% - 24px - (var(--stats-w) * var(--table-scale) * 2)));
  height: min(calc(860px * var(--table-size) * var(--table-scale)), calc(100svh - 16px));
  min-height: min(calc(740px * var(--table-size) * var(--table-scale)), calc(100svh - 16px));
}

.table-shell {
  position: relative;
  width: calc(100% * var(--table-scale-inverse));
  height: calc(100% * var(--table-scale-inverse));
  min-width: 0;
  min-height: 0;
  overflow: visible;
  isolation: isolate;
  transform: scale(var(--table-scale));
  transform-origin: top left;
}

.table-brand {
  position: absolute;
  top: 13px;
  left: 18px;
  z-index: 9;
  display: block;
  width: 96px;
  line-height: 1;
  text-decoration: none;
  opacity: 0.58;
  transition: opacity 130ms var(--ease);
}

.table-brand:hover,
.table-brand:focus-visible {
  outline: 0;
  opacity: 0.86;
}

.table-brand picture,
.table-brand-logo {
  display: block;
  width: 100%;
}

.table-brand-logo {
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
}

.table-shell::before {
  content: none;
}

.felt {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 118px minmax(512px, 1fr) 134px;
  gap: 12px;
  height: 100%;
  min-height: 0;
  padding: 14px 18px;
  background: transparent;
  overflow: visible;
}

.felt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.felt.result-win::after {
  animation: tableFlashGold 720ms var(--ease);
}

.felt.result-lose::after {
  animation: tableFlashRed 620ms var(--ease);
}

.felt.result-push::after {
  animation: tableFlashNeutral 620ms var(--ease);
}

.dice-zone,
.table-center,
.betting-zone,
.controls {
  position: relative;
  z-index: 1;
}

.dice-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
}

.point-rail {
  grid-column: 1;
  align-self: end;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(42px, 1fr));
  gap: 5px;
  width: min(220px, 100%);
}

.point-chip {
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 7px;
  background: rgba(10, 14, 20, 0.52);
  color: rgba(194, 200, 209, 0.74);
  font-size: 0.67rem;
  font-weight: 800;
  text-shadow: var(--text-depth);
}

.point-chip.is-on {
  border-color: rgba(227, 204, 143, 0.52);
  background: rgba(201, 173, 105, 0.18);
  color: var(--gold-2);
}

.dice-stage {
  grid-column: 2;
  justify-self: center;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 112px;
}

.puck {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(232, 236, 243, 0.14);
  border-radius: 999px;
  background: #111720;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.025), var(--shadow-mid);
  color: var(--soft);
  text-shadow: var(--text-depth);
}

.puck span {
  color: rgba(136, 145, 159, 0.84);
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
}

.puck strong {
  margin-top: -9px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

.puck.is-on {
  border-color: rgba(45, 165, 111, 0.5);
  background: rgba(22, 112, 72, 0.42);
}

.dice-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.die {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 62px;
  height: 62px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 9px;
  background: #e5e1d7;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.82), inset -2px -2px 4px rgba(20, 24, 31, 0.18), 0 13px 32px rgba(0, 0, 0, 0.4);
}

.die .pip {
  width: 9px;
  height: 9px;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  background: #16191d;
  opacity: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.die .pip.is-on {
  opacity: 1;
}

.dice-pair.is-rolling .die:first-child {
  animation: diceTumbleA 620ms var(--ease) infinite;
}

.dice-pair.is-rolling .die:last-child {
  animation: diceTumbleB 620ms var(--ease) infinite;
}

.roll-call {
  display: grid;
  min-width: 74px;
  gap: 3px;
  text-shadow: var(--text-depth);
}

.roll-call strong {
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.roll-call span {
  color: rgba(136, 145, 159, 0.84);
  font-size: 0.57rem;
  font-weight: 900;
  text-transform: uppercase;
}

.roll-ticker {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  overflow: hidden;
}

.ticker-roll {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px;
  min-width: 42px;
  padding: 5px 7px;
  border: 1px solid rgba(232, 236, 243, 0.1);
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.55);
  color: var(--soft);
  font-size: 0.64rem;
  font-weight: 850;
}

.ticker-roll.is-seven {
  color: var(--bad);
}

.ticker-roll.is-point {
  color: var(--gold-2);
}

.mini-dice {
  color: rgba(136, 145, 159, 0.8);
  font-size: 0.54rem;
}

.table-center {
  display: none;
}

.status-pill {
  min-height: 16px;
  color: rgba(194, 200, 209, 0.88);
  font-size: 0.57rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-shadow: var(--text-depth);
}

.betting-zone {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 34px;
  gap: 9px;
  min-height: 0;
}

.board-scroller {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 8px;
  background: #06130f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 18px 48px rgba(0, 0, 0, 0.26);
  scrollbar-width: thin;
  scrollbar-color: rgba(227, 204, 143, 0.3) rgba(255, 255, 255, 0.04);
}

.craps-board {
  display: grid;
  grid-template-rows: 300px 82px 70px 70px;
  gap: 0;
  min-width: 1180px;
  height: auto;
  min-height: 522px;
  padding: 0;
  background: #071713;
}

.number-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
}

.number-tower {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  border-right: 1px solid rgba(232, 236, 243, 0.12);
}

.number-tower:last-child {
  border-right: 0;
}

.number-head {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 8px;
  border: 0;
  border-bottom: 1px solid rgba(232, 236, 243, 0.14);
  border-radius: 0;
  background: rgba(7, 16, 15, 0.72);
  box-shadow: none;
  overflow: hidden;
}

.number-head.is-point {
  border-color: rgba(45, 165, 111, 0.5);
  background: rgba(16, 76, 52, 0.42);
  box-shadow: inset 0 0 0 1px rgba(45, 165, 111, 0.22);
}

.number-head strong {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1;
}

.number-head span {
  min-width: 0;
  color: rgba(136, 145, 159, 0.78);
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.number-head .contract-stacks {
  display: flex;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 26px;
}

.contract-stack {
  display: flex;
  justify-content: flex-end;
  min-width: 18px;
  min-height: 26px;
  margin-left: -7px;
}

.number-bets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(70px, 1fr));
  gap: 0;
  min-width: 0;
}

.number-bets .bet-target:nth-child(2n),
.line-row .bet-target:last-child,
.hardway-row .bet-target:last-child,
.prop-row .bet-target:last-child {
  border-right: 0;
}

.number-bets .bet-target:nth-last-child(-n+2),
.prop-row .bet-target {
  border-bottom: 0;
}

.line-row {
  display: grid;
  grid-template-columns: 1.25fr 0.92fr 1.18fr 0.92fr 1.05fr 1.08fr 1.35fr;
  gap: 0;
  min-height: 82px;
  border-top: 1px solid rgba(232, 236, 243, 0.16);
}

.hardway-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-height: 70px;
  border-top: 1px solid rgba(232, 236, 243, 0.16);
}

.prop-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  min-height: 70px;
  border-top: 1px solid rgba(232, 236, 243, 0.16);
}

.bet-target {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 64px;
  padding: 8px 7px 7px;
  border: 0;
  border-right: 1px solid rgba(232, 236, 243, 0.1);
  border-bottom: 1px solid rgba(232, 236, 243, 0.1);
  border-radius: 0;
  background: rgba(8, 18, 17, 0.34);
  color: var(--text);
  box-shadow: none;
  text-align: center;
  text-shadow: var(--text-depth);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 130ms var(--ease), background-color 130ms var(--ease), opacity 130ms var(--ease), color 130ms var(--ease);
}

.bet-target:hover,
.bet-target:focus-visible {
  outline: 0;
  background: rgba(201, 173, 105, 0.1);
  box-shadow: inset 0 0 0 1px rgba(227, 204, 143, 0.22);
}

.bet-target:disabled,
.bet-target.is-disabled {
  cursor: default;
  opacity: 0.28;
  transform: none;
}

.bet-target.has-wager.is-disabled {
  opacity: 0.9;
}

.bet-target.has-wager.is-disabled .bet-label,
.bet-target.has-wager.is-disabled .bet-sub {
  opacity: 0.72;
}

.bet-target.has-wager {
  align-content: start;
  padding-bottom: 34px;
  background: rgba(201, 173, 105, 0.08);
  box-shadow: inset 0 0 0 1px rgba(227, 204, 143, 0.26);
}

.bet-target.is-off::after {
  content: "OFF";
  position: absolute;
  top: 4px;
  right: 5px;
  color: rgba(209, 96, 96, 0.9);
  font-size: 0.48rem;
  font-weight: 950;
}

.bet-label {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bet-sub {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin-top: 1px;
  color: rgba(136, 145, 159, 0.8);
  font-size: 0.48rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bet-stack,
.compact-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 0;
  margin-top: 2px;
  pointer-events: none;
}

.bet-stack {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 2;
  width: auto;
  max-width: calc(100% - 14px);
  margin-top: 0;
  transform: translateX(-50%);
}

.bet-stack:empty,
.compact-stack:empty,
.contract-stack:empty {
  display: none;
}

.bet-target.has-wager .bet-stack {
  display: flex;
  min-height: 27px;
  margin-top: 0;
}

.compact-stack {
  justify-content: flex-start;
  margin-top: 0;
}

.bet-target.kind-line {
  background-color: rgba(8, 35, 24, 0.36);
}

.bet-target.kind-dont {
  background-color: rgba(36, 15, 18, 0.4);
}

.bet-target.kind-field {
  background-color: rgba(62, 43, 15, 0.46);
}

.bet-target.kind-prop {
  background-color: rgba(34, 20, 16, 0.44);
}

.bet-target.kind-hard {
  background-color: rgba(14, 22, 34, 0.5);
}

.bet-target.kind-place {
  background-color: rgba(7, 37, 26, 0.38);
}

.bet-target.kind-buy,
.bet-target.kind-lay {
  background-color: rgba(10, 24, 36, 0.36);
}

.table-wager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  color: var(--soft);
}

.table-wager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 34px;
}

.table-wager.is-empty,
.table-bet-amount.is-empty {
  visibility: hidden;
}

.table-bet-amount {
  min-width: 66px;
  color: rgba(227, 204, 143, 0.78);
  font-size: 0.78rem;
  font-weight: 840;
  line-height: 1;
  text-align: right;
  text-shadow: var(--text-depth);
}

.controls {
  display: grid;
  grid-template-rows: auto 58px 50px;
  align-content: end;
  gap: 10px;
  min-height: 0;
}

.wager-meta {
  display: grid;
  place-items: center;
  min-height: 24px;
}

.meter strong {
  color: var(--soft);
  font-size: 0.95rem;
  text-shadow: var(--text-depth);
}

.wager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.wager-chip,
.bet-chip-mini,
.chip {
  --chip-body: #242a33;
  --chip-text: #f6f3ea;
  --chip-border: rgba(232, 236, 243, 0.24);
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background-color: var(--chip-body);
  background-image: url("assets/chip-sword-template-20260710a.webp");
  background-position: center;
  background-size: cover;
  background-blend-mode: luminosity;
  color: var(--chip-text);
  box-shadow: var(--shadow-chip);
  font-weight: 860;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72), 0 0 5px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  isolation: isolate;
}

.wager-chip::before,
.bet-chip-mini::before,
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: url("assets/chip-sword-template-20260710a.webp") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.24;
  pointer-events: none;
}

.wager-chip::after,
.bet-chip-mini::after,
.chip::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), inset 0 -10px 16px rgba(0, 0, 0, 0.2);
  opacity: 0.64;
  pointer-events: none;
}

.chip-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 82%;
  height: 1.22em;
  padding: 0 2px;
  border-radius: 4px;
  color: inherit;
  background: rgba(3, 5, 9, 0.34);
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.86), 0 0 5px rgba(0, 0, 0, 0.52);
  white-space: nowrap;
}

.chip {
  width: 48px;
  padding: 0;
  font-size: 0.66rem;
  cursor: pointer;
  transition: transform 140ms var(--ease), border-color 140ms var(--ease), opacity 140ms var(--ease), box-shadow 140ms var(--ease), filter 140ms var(--ease);
  will-change: transform;
}

.wager-chip {
  width: 34px;
  margin-left: -7px;
  border-color: rgba(232, 236, 243, 0.2);
  font-size: 0.48rem;
  pointer-events: none;
}

.wager-chip:first-child {
  margin-left: 0;
}

.bet-chip-mini {
  width: 27px;
  border-color: rgba(232, 236, 243, 0.18);
  font-size: 0.42rem;
  pointer-events: none;
}

.bet-stack .bet-chip-mini + .bet-chip-mini,
.compact-stack .bet-chip-mini + .bet-chip-mini {
  margin-left: -8px;
}

.contract-stack .bet-chip-mini {
  width: 25px;
  font-size: 0.39rem;
}

.chip-count {
  position: absolute;
  top: -1px;
  right: -1px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border: 1px solid rgba(8, 11, 16, 0.8);
  border-radius: 999px;
  background: rgba(227, 204, 143, 0.94);
  color: #080b10;
  font-size: 0.42rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: none;
}

.chip:hover,
.chip:focus-visible,
.chip.is-selected {
  outline: 0;
  filter: brightness(1.12);
  border-color: rgba(227, 204, 143, 0.68);
  box-shadow: var(--shadow-chip-hover);
  transform: translateY(-5px) scale(1.045);
}

.chip.is-selected {
  border-color: rgba(227, 204, 143, 0.88);
  transform: translateY(-4px);
  box-shadow: var(--shadow-chip-hover), 0 0 0 1px rgba(227, 204, 143, 0.22);
}

.chip:disabled {
  cursor: default;
  opacity: 0.42;
  filter: grayscale(0.4) brightness(0.72);
  transform: none;
  box-shadow: var(--shadow-chip);
}

.chip-value-1 {
  --chip-body: #d6d8d4;
  --chip-text: #f7f8f6;
  --chip-border: rgba(255, 255, 255, 0.58);
}

.chip-value-5 {
  --chip-body: #8d2631;
  --chip-border: rgba(224, 104, 116, 0.46);
}

.chip-value-25 {
  --chip-body: #186346;
  --chip-border: rgba(92, 185, 145, 0.42);
}

.chip-value-100 {
  --chip-body: #141820;
  --chip-border: rgba(232, 236, 243, 0.26);
}

.chip-value-500 {
  --chip-body: #58467b;
  --chip-border: rgba(172, 150, 218, 0.42);
}

.chip-value-1000 {
  --chip-body: #bd8f30;
  --chip-text: #f8eed1;
  --chip-border: rgba(239, 204, 122, 0.56);
}

.chip-value-5000 {
  --chip-body: #9b4d2f;
  --chip-border: rgba(227, 136, 91, 0.46);
}

.chip-value-10000 {
  --chip-body: #1f5f87;
  --chip-border: rgba(111, 183, 228, 0.42);
}

.chip-value-25000 {
  --chip-body: #72315d;
  --chip-border: rgba(209, 124, 178, 0.46);
}

.chip-value-50000,
.chip-value-100000,
.chip-value-250000,
.chip-value-500000,
.chip-value-1000000 {
  --chip-body: #5c6c74;
  --chip-border: rgba(178, 196, 205, 0.48);
}

.chip-value-1000 .chip-label,
.chip-value-5000 .chip-label,
.chip-value-10000 .chip-label,
.chip-value-25000 .chip-label,
.chip-value-50000 .chip-label,
.chip-value-100000 .chip-label,
.chip-value-250000 .chip-label,
.chip-value-500000 .chip-label,
.chip-value-1000000 .chip-label {
  font-size: 0.82em;
}

.actions-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.action,
.ghost-button,
.icon-button,
.text-reset {
  border: 0;
  background: transparent;
  color: inherit;
}

.action,
.ghost-button {
  min-height: 46px;
  border: 1px solid rgba(232, 236, 243, 0.1);
  border-radius: 7px;
  background: rgba(13, 18, 26, 0.9);
  color: var(--soft);
  box-shadow: var(--shadow-control);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 130ms var(--ease), border-color 130ms var(--ease), box-shadow 130ms var(--ease), background-color 130ms var(--ease);
}

.action:hover,
.action:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  outline: 0;
  border-color: rgba(227, 204, 143, 0.32);
  box-shadow: var(--shadow-control-hover);
  transform: translateY(-1px);
}

.action:disabled,
.ghost-button:disabled {
  cursor: default;
  opacity: 0.44;
  transform: none;
  box-shadow: var(--shadow-control);
}

.action.deal {
  background: rgba(201, 173, 105, 0.86);
  color: #080b10;
}

.clear-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  color: rgba(194, 200, 209, 0.72);
  font-size: 1rem;
}

.stats-sidebar {
  position: absolute;
  top: 0;
  left: calc(100% + 18px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: var(--stats-w);
  height: 100%;
  padding: 20px 0 20px 20px;
  border-left: 1px solid rgba(232, 236, 243, 0.09);
  color: var(--soft);
}

.stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(232, 236, 243, 0.08);
}

.stats-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232, 236, 243, 0.1);
  border-radius: 8px;
  background: rgba(13, 18, 26, 0.82);
  color: var(--soft);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  outline: 0;
  border-color: rgba(227, 204, 143, 0.34);
}

.fullscreen-glyph {
  position: relative;
  width: 16px;
  height: 16px;
}

.fullscreen-glyph::before,
.fullscreen-glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(194, 200, 209, 0.78);
}

.fullscreen-glyph::before {
  clip-path: polygon(0 0, 38% 0, 38% 16%, 16% 16%, 16% 38%, 0 38%, 0 0, 62% 0, 100% 0, 100% 38%, 84% 38%, 84% 16%, 62% 16%);
}

.fullscreen-glyph::after {
  clip-path: polygon(0 62%, 16% 62%, 16% 84%, 38% 84%, 38% 100%, 0 100%, 0 62%, 62% 84%, 84% 84%, 84% 62%, 100% 62%, 100% 100%, 62% 100%);
}

.stats-content {
  display: grid;
  gap: 17px;
  align-content: start;
  min-height: 0;
  padding: 16px 0;
  overflow: auto;
}

.stats-section {
  display: grid;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(232, 236, 243, 0.08);
}

.stats-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.stats-title-row h3 {
  margin: 0;
  color: rgba(194, 200, 209, 0.72);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.text-reset {
  padding: 0;
  color: rgba(136, 145, 159, 0.78);
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.text-reset:hover,
.text-reset:focus-visible {
  outline: 0;
  color: var(--gold-2);
}

.stat {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stat span {
  color: rgba(136, 145, 159, 0.82);
  font-size: 0.55rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat strong {
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.05;
}

.stat-hero strong {
  color: var(--text);
  font-size: 1.42rem;
}

.stat.is-positive strong {
  color: var(--good);
}

.stat.is-negative strong {
  color: var(--bad);
}

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

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

.distribution {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.dist-cell {
  display: grid;
  place-items: center;
  min-height: 24px;
  border: 1px solid rgba(232, 236, 243, 0.08);
  border-radius: 5px;
  background: rgba(13, 18, 26, 0.78);
  color: rgba(194, 200, 209, 0.86);
  font-size: 0.58rem;
  font-weight: 900;
}

.dist-cell strong {
  color: var(--text);
  font-size: 0.62rem;
}

.roll-net-list {
  display: grid;
  gap: 5px;
}

.roll-net {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 24px;
  padding: 4px 6px;
  border: 1px solid rgba(232, 236, 243, 0.08);
  border-radius: 6px;
  background: rgba(13, 18, 26, 0.72);
  color: var(--soft);
  font-size: 0.56rem;
  font-weight: 850;
}

.roll-net span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roll-net strong {
  color: var(--text);
  font-size: 0.62rem;
}

.roll-net.is-positive strong {
  color: var(--good);
}

.roll-net.is-negative strong {
  color: var(--bad);
}

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

.buyin-quick {
  display: grid;
  place-items: center;
  min-height: 27px;
  border: 1px solid rgba(232, 236, 243, 0.09);
  border-radius: 7px;
  background: rgba(13, 18, 26, 0.72);
  color: var(--soft);
}

.cashout-stake {
  justify-self: start;
  margin-top: 3px;
}

.stats-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(232, 236, 243, 0.08);
}

.settings-dialog {
  width: min(600px, calc(100% - 28px));
  max-height: min(760px, calc(100svh - 28px));
  padding: 0;
  border: 1px solid rgba(232, 236, 243, 0.13);
  border-radius: 8px;
  background: #0c1017;
  color: var(--text);
  box-shadow: var(--shadow-high);
}

.settings-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.settings-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
}

.settings-head,
.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(232, 236, 243, 0.08);
}

.settings-actions {
  border-top: 1px solid rgba(232, 236, 243, 0.08);
  border-bottom: 0;
}

.settings-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.settings-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

.settings-section {
  display: grid;
  gap: 10px;
}

.settings-title-row h3 {
  margin: 0;
  color: rgba(194, 200, 209, 0.74);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.setting-field,
.toggle-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.setting-field span,
.toggle-row span {
  color: rgba(194, 200, 209, 0.84);
  font-size: 0.72rem;
  font-weight: 850;
}

.setting-field input,
.setting-field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 7px;
  background: rgba(8, 12, 18, 0.92);
  color: var(--text);
  padding: 0 10px;
}

.range-field input {
  padding: 0;
  accent-color: var(--gold);
}

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

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

.settings-note {
  color: rgba(136, 145, 159, 0.8);
  font-size: 0.68rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 8px;
  background: rgba(12, 16, 23, 0.96);
  color: var(--soft);
  box-shadow: var(--shadow-high);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes diceTumbleA {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  35% { transform: translate3d(-8px, -12px, 0) rotate(-26deg); }
  70% { transform: translate3d(8px, 7px, 0) rotate(18deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes diceTumbleB {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  35% { transform: translate3d(8px, 10px, 0) rotate(24deg); }
  70% { transform: translate3d(-8px, -7px, 0) rotate(-18deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes tableFlashGold {
  0% { opacity: 0; background: rgba(227, 204, 143, 0); }
  20% { opacity: 1; background: rgba(227, 204, 143, 0.08); }
  100% { opacity: 0; background: rgba(227, 204, 143, 0); }
}

@keyframes tableFlashRed {
  0% { opacity: 0; background: rgba(209, 96, 96, 0); }
  22% { opacity: 1; background: rgba(209, 96, 96, 0.08); }
  100% { opacity: 0; background: rgba(209, 96, 96, 0); }
}

@keyframes tableFlashNeutral {
  0% { opacity: 0; background: rgba(194, 200, 209, 0); }
  20% { opacity: 1; background: rgba(194, 200, 209, 0.06); }
  100% { opacity: 0; background: rgba(194, 200, 209, 0); }
}

@media (max-width: 1600px) {
  .play-layout {
    width: min(calc(var(--play-w) * var(--table-size) * var(--table-scale)), calc(100% - 24px - (var(--stats-w) * var(--table-scale) * 2)));
  }
}

@media (max-width: 1600px) {
  .shell {
    align-content: start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .play-layout {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100svh;
    min-height: 100svh;
  }

  .stats-sidebar {
    position: relative;
    top: auto;
    left: auto;
    z-index: 20;
    grid-row: 1;
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    padding: 8px max(10px, env(safe-area-inset-left)) 8px max(10px, env(safe-area-inset-right));
    border-left: 0;
    border-bottom: 1px solid rgba(232, 236, 243, 0.08);
    background: rgba(8, 11, 16, 0.96);
  }

  .stats-head {
    flex: 0 0 auto;
    gap: 7px;
    padding: 0;
    border: 0;
  }

  .stats-head h2 {
    font-size: 0.68rem;
  }

  .stats-content {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    overflow: hidden;
  }

  .stats-section {
    display: none;
    padding: 0;
    border: 0;
  }

  .stats-section:first-child {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 10px;
  }

  .stats-section:first-child .stats-title-row,
  .stats-section:first-child .stats-grid .stat:nth-child(n+3) {
    display: none;
  }

  .stats-section:first-child .stats-grid {
    display: flex;
    gap: 9px;
  }

  .stat-hero strong {
    font-size: 0.74rem;
  }

  .stat span,
  .stat strong {
    font-size: 0.55rem;
  }

  .stats-actions {
    flex: 0 0 auto;
    gap: 10px;
    padding: 0;
    border: 0;
  }

  .table-shell {
    grid-row: 2;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .felt {
    grid-template-rows: 118px minmax(322px, 1fr) 112px;
    gap: 10px;
    padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .table-brand {
    top: 11px;
    left: 12px;
    width: 78px;
  }

  .dice-zone {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 6px;
    padding-top: 0;
  }

  .point-rail {
    grid-column: 1;
    justify-self: center;
    grid-template-columns: repeat(6, minmax(32px, 1fr));
    width: min(280px, calc(100% - 98px));
  }

  .dice-stage {
    grid-column: 1;
    min-height: 66px;
    gap: 10px;
  }

  .puck {
    width: 48px;
    height: 48px;
  }

  .puck strong {
    font-size: 0.92rem;
  }

  .die {
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 7px;
  }

  .die .pip {
    width: 7px;
    height: 7px;
  }

  .roll-call strong {
    font-size: 1.12rem;
  }

  .roll-ticker {
    display: none;
  }

  .craps-board {
    grid-template-rows: 224px 64px 54px 54px;
    min-width: 1180px;
    min-height: 396px;
  }

  .number-tower {
    grid-template-rows: 38px minmax(0, 1fr);
  }

  .number-head {
    min-height: 38px;
    padding: 5px 7px;
  }

  .number-head strong {
    font-size: 0.94rem;
  }

  .number-head span,
  .bet-sub {
    font-size: 0.43rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(62px, 1fr));
  }

  .line-row {
    min-height: 64px;
  }

  .hardway-row,
  .prop-row {
    min-height: 54px;
  }

  .hardway-row .bet-target,
  .prop-row .bet-target {
    min-height: 54px;
  }

  .bet-target {
    min-height: 58px;
    padding: 5px 6px;
  }

  .bet-target.has-wager {
    padding-bottom: 28px;
  }

  .bet-label {
    font-size: 0.6rem;
  }

  .bet-stack,
  .compact-stack {
    min-height: 19px;
  }

  .bet-chip-mini {
    width: 22px;
    font-size: 0.36rem;
  }

  .bet-target.has-wager .bet-stack {
    min-height: 22px;
  }

  .controls {
    grid-template-rows: auto 50px 44px;
    gap: 7px;
  }

  .wager-row {
    min-height: 50px;
  }

  .chip {
    width: 42px;
  }

  .clear-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }
}

@media (max-width: 560px) {
  .felt {
    grid-template-rows: 124px minmax(320px, 1fr) 148px;
    gap: 10px;
  }

  .point-rail {
    justify-self: end;
    width: min(274px, calc(100% - 102px));
  }

  .point-chip {
    min-height: 27px;
    font-size: 0.58rem;
  }

  .dice-stage {
    grid-template-columns: 48px auto 54px;
    gap: 8px;
  }

  .puck {
    width: 48px;
    height: 48px;
  }

  .dice-pair {
    gap: 8px;
  }

  .die {
    width: 42px;
    height: 42px;
  }

  .roll-call {
    min-width: 52px;
  }

  .ticker-roll:nth-child(n+8) {
    display: none;
  }

  .craps-board {
    grid-template-rows: 224px 64px 54px 54px;
    min-width: 1180px;
    min-height: 396px;
  }

  .line-row {
    min-height: 66px;
  }

  .hardway-row,
  .prop-row {
    min-height: 58px;
  }

  .bet-label {
    font-size: 0.63rem;
  }

  .bet-sub {
    font-size: 0.45rem;
  }

  .controls {
    grid-template-rows: auto 54px 44px;
    gap: 8px;
  }

  .wager-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    min-height: 54px;
  }

  .chips {
    justify-content: flex-start;
    gap: 7px;
    overflow: auto hidden;
    padding: 3px 0;
  }

  .chip {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
  }

  .chip .chip-label {
    font-size: 0.58rem;
  }

  .clear-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .actions-panel {
    grid-template-columns: 1.2fr 0.95fr 0.95fr 1fr;
    gap: 7px;
  }

  .action,
  .ghost-button {
    min-height: 42px;
    font-size: 0.72rem;
  }

  .settings-dialog {
    width: 100%;
    max-width: none;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .settings-head,
  .settings-actions {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .settings-body {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}

@media (max-height: 720px) and (min-width: 1041px) {
  .felt {
    grid-template-rows: 96px minmax(350px, 1fr) 98px;
    gap: 6px;
  }

  .dice-stage {
    min-height: 58px;
  }

  .puck {
    width: 44px;
    height: 44px;
  }

  .die {
    width: 38px;
    height: 38px;
    padding: 6px;
  }

  .craps-board {
    grid-template-rows: 210px 60px 52px 52px;
    min-height: 374px;
  }

  .number-tower {
    grid-template-rows: 34px minmax(0, 1fr);
  }

  .number-head {
    min-height: 34px;
    padding: 4px 6px;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(58px, 1fr));
  }

  .line-row {
    min-height: 60px;
  }

  .hardway-row,
  .prop-row {
    min-height: 52px;
  }

  .hardway-row .bet-target,
  .prop-row .bet-target {
    min-height: 52px;
  }

  .bet-target {
    min-height: 52px;
    padding: 4px 5px;
  }

  .bet-target.has-wager {
    padding-bottom: 24px;
  }

  .bet-stack {
    bottom: 3px;
  }

  .bet-chip-mini {
    width: 20px;
    font-size: 0.34rem;
  }

  .hardway-row .bet-target.has-wager .bet-sub,
  .prop-row .bet-target.has-wager .bet-sub {
    display: none;
  }

  .controls {
    grid-template-rows: auto 46px 38px;
    gap: 5px;
  }

  .chip {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 560px) and (max-height: 700px) {
  .felt {
    grid-template-rows: 82px minmax(350px, 1fr) 96px;
    gap: 5px;
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .point-chip {
    min-height: 24px;
  }

  .dice-stage {
    min-height: 50px;
    gap: 6px;
  }

  .puck {
    width: 38px;
    height: 38px;
  }

  .die {
    width: 36px;
    height: 36px;
  }

  .roll-call strong {
    font-size: 1rem;
  }

  .betting-zone {
    grid-template-rows: minmax(0, 1fr) 22px;
    gap: 5px;
  }

  .craps-board {
    grid-template-rows: 198px 54px 48px 48px;
    min-height: 348px;
  }

  .number-tower {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .number-head {
    min-height: 36px;
    padding: 4px 6px;
  }

  .number-head strong {
    font-size: 0.84rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(54px, 1fr));
  }

  .line-row {
    min-height: 54px;
  }

  .hardway-row,
  .prop-row {
    min-height: 48px;
  }

  .bet-target {
    min-height: 48px;
    padding: 3px 4px;
  }

  .bet-target.has-wager {
    padding-bottom: 22px;
  }

  .bet-stack {
    bottom: 3px;
  }

  .bet-label {
    font-size: 0.56rem;
  }

  .bet-sub {
    font-size: 0.4rem;
  }

  .table-wager-row,
  .table-wager {
    min-height: 22px;
  }

  .controls {
    grid-template-rows: auto 38px 36px;
    gap: 4px;
  }

  .wager-meta {
    min-height: 16px;
  }

  .wager-row {
    min-height: 38px;
  }

  .chip,
  .clear-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .action,
  .ghost-button {
    min-height: 36px;
  }

  .bet-chip-mini {
    width: 18px;
    font-size: 0.32rem;
  }

  .bet-target.has-wager .bet-stack {
    min-height: 18px;
  }
}

/* Layout repair: align craps with the Kasino 84 blackjack/roulette table shell. */
.play-layout {
  --table-gap: 18px;
}

.table-shell::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 0;
  width: min(760px, 88%);
  aspect-ratio: 1;
  background: url("assets/chip-sword-template-20260710a.webp") center / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.42) brightness(0.28);
  mix-blend-mode: screen;
  opacity: 0.05;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 0 31%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.1) 66%, transparent 78%);
}

.felt {
  grid-template-rows: 118px minmax(460px, 1fr) 144px;
  padding: 16px 18px 14px;
  background:
    radial-gradient(circle at 50% 46%, rgba(16, 25, 36, 0.34), transparent 47%),
    linear-gradient(180deg, rgba(9, 13, 19, 0.36), rgba(6, 9, 14, 0.12) 42%, rgba(5, 8, 12, 0.52));
}

.dice-zone {
  align-content: end;
  padding-top: 10px;
}

.dice-stage {
  min-height: 92px;
}

.point-chip {
  border-color: rgba(232, 236, 243, 0.13);
  background: rgba(12, 17, 25, 0.76);
  box-shadow: var(--shadow-control);
}

.puck {
  width: 64px;
  height: 64px;
}

.die {
  width: 54px;
  height: 54px;
}

.betting-zone {
  grid-template-rows: minmax(0, 1fr) 40px;
  align-self: center;
}

.board-scroller {
  padding: 15px 15px 18px;
  border: 1px solid rgba(232, 236, 243, 0.16);
  border-radius: 34px 34px 12px 12px;
  background:
    linear-gradient(180deg, rgba(15, 22, 30, 0.95), rgba(4, 8, 8, 0.98)),
    #06130f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 0 10px rgba(0, 0, 0, 0.18),
    0 24px 56px rgba(0, 0, 0, 0.34);
}

.board-scroller::before,
.board-scroller::after {
  content: "";
  position: sticky;
  left: 15px;
  right: 15px;
  z-index: 3;
  display: block;
  height: 1px;
  pointer-events: none;
}

.board-scroller::before {
  top: 0;
  margin-bottom: -1px;
  box-shadow: 0 10px 28px rgba(227, 204, 143, 0.08);
}

.board-scroller::after {
  bottom: 0;
  margin-top: -1px;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.32);
}

.craps-board {
  width: 100%;
  min-width: 960px;
  min-height: 492px;
  grid-template-rows: minmax(270px, 1fr) 78px 64px 64px;
  border: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 24px 24px 6px 6px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(25, 86, 58, 0.24), transparent 48%),
    linear-gradient(180deg, #082119, #061611 58%, #04110d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 20px 48px rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.number-tower,
.line-row,
.hardway-row,
.prop-row,
.bet-target,
.number-head {
  border-color: rgba(232, 236, 243, 0.13);
}

.number-head {
  background: rgba(7, 18, 17, 0.82);
}

.number-head strong {
  font-size: 1.08rem;
}

.number-bets {
  grid-template-rows: repeat(3, minmax(62px, 1fr));
}

.bet-target {
  min-height: 58px;
  background: rgba(7, 18, 16, 0.5);
}

.bet-target.kind-line {
  background-color: rgba(7, 37, 25, 0.54);
}

.bet-target.kind-dont {
  background-color: rgba(31, 19, 18, 0.58);
}

.bet-target.kind-field {
  background:
    linear-gradient(180deg, rgba(92, 70, 25, 0.7), rgba(54, 42, 18, 0.66));
}

.bet-target.kind-prop {
  background-color: rgba(24, 25, 18, 0.72);
}

.bet-target.kind-hard {
  background-color: rgba(10, 25, 32, 0.68);
}

.bet-target.kind-buy,
.bet-target.kind-lay {
  background-color: rgba(8, 25, 31, 0.52);
}

.bet-target:hover,
.bet-target:focus-visible {
  border-color: rgba(227, 204, 143, 0.34);
  background-color: rgba(201, 173, 105, 0.13);
}

.bet-label {
  font-size: 0.66rem;
  letter-spacing: 0;
}

.bet-sub {
  font-size: 0.46rem;
}

.table-wager-row {
  min-height: 40px;
}

.controls {
  grid-template-rows: auto 60px 50px;
  gap: 9px;
}

.wager-row {
  min-height: 60px;
}

.actions-panel {
  gap: 9px;
}

@media (min-width: 1101px) {
  .shell {
    align-content: center;
    padding: 8px 0;
  }

  .play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(166px, calc(var(--stats-w) * var(--table-scale)));
    grid-template-rows: minmax(0, 1fr);
    gap: var(--table-gap);
    width: min(calc((var(--play-w) + var(--stats-w) + 18px) * var(--table-size) * var(--table-scale)), calc(100% - 24px));
    height: min(calc(824px * var(--table-size) * var(--table-scale)), calc(100svh - 16px));
    min-height: min(calc(700px * var(--table-size) * var(--table-scale)), calc(100svh - 16px));
  }

  .table-shell {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .stats-sidebar {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    height: 100%;
    padding: 20px 0 20px 20px;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid rgba(232, 236, 243, 0.09);
    background: transparent;
  }

  .stats-head {
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(232, 236, 243, 0.08);
  }

  .stats-head h2 {
    font-size: 0.94rem;
  }

  .stats-content {
    display: grid;
    gap: 17px;
    align-content: start;
    padding: 16px 0;
    overflow: auto;
  }

  .stats-section {
    display: grid;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(232, 236, 243, 0.08);
  }

  .stats-section:first-child {
    display: grid;
    grid-template-columns: none;
    align-items: stretch;
    gap: 9px;
  }

  .stats-section:first-child .stats-title-row {
    display: flex;
  }

  .stats-section:first-child .stats-grid .stat:nth-child(n+3) {
    display: grid;
  }

  .stats-section:first-child .stats-grid {
    display: grid;
  }

  .stat-hero strong {
    font-size: 1.42rem;
  }

  .stat span {
    font-size: 0.55rem;
  }

  .stat strong {
    font-size: 0.78rem;
  }

  .stats-actions {
    display: flex;
    padding-top: 14px;
    border-top: 1px solid rgba(232, 236, 243, 0.08);
  }
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .play-layout {
    --table-gap: 14px;
    --stats-w: 172px;
  }

  .felt {
    grid-template-rows: 104px minmax(420px, 1fr) 126px;
    gap: 8px;
  }

  .dice-stage {
    min-height: 76px;
  }

  .puck {
    width: 54px;
    height: 54px;
  }

  .die {
    width: 44px;
    height: 44px;
    padding: 7px;
  }

  .craps-board {
    min-width: 920px;
    min-height: 430px;
    grid-template-rows: minmax(230px, 1fr) 66px 56px 56px;
  }

  .number-tower {
    grid-template-rows: 42px minmax(0, 1fr);
  }

  .number-head {
    min-height: 42px;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(58px, 1fr));
  }

  .bet-target {
    min-height: 52px;
    padding: 5px 5px;
  }

  .bet-label {
    font-size: 0.6rem;
  }

  .bet-sub {
    font-size: 0.42rem;
  }

  .controls {
    grid-template-rows: auto 52px 44px;
    gap: 7px;
  }

  .chip {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 1101px) and (max-width: 1320px) and (max-height: 760px) {
  .felt {
    grid-template-rows: 124px minmax(338px, 1fr) 120px;
    gap: 7px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .dice-zone {
    align-content: start;
  }

  .dice-stage {
    min-height: 68px;
  }

  .board-scroller {
    padding: 9px;
    border-radius: 28px 28px 10px 10px;
  }

  .craps-board {
    min-width: 880px;
    min-height: 318px;
    grid-template-rows: 170px 54px 44px 44px;
  }

  .number-tower {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .number-head {
    min-height: 36px;
    padding: 4px 6px;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(44px, 1fr));
  }

  .line-row,
  .hardway-row,
  .prop-row {
    min-height: 44px;
  }

  .bet-target {
    min-height: 42px;
    padding: 3px 4px;
  }

  .bet-label {
    font-size: 0.56rem;
  }

  .bet-sub {
    font-size: 0.39rem;
  }

  .betting-zone {
    grid-template-rows: minmax(0, 1fr) 26px;
    gap: 5px;
  }

  .table-wager-row,
  .table-wager {
    min-height: 26px;
  }

  .controls {
    grid-template-rows: 20px 46px 38px;
    gap: 5px;
  }

  .wager-row {
    min-height: 46px;
  }

  .chip,
  .clear-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .action,
  .ghost-button {
    min-height: 38px;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .board-scroller {
    padding: 9px;
    border-radius: 34px 34px 12px 12px;
  }

  .craps-board {
    min-width: 800px;
    min-height: 302px;
    grid-template-rows: 94px minmax(78px, 1fr) 38px 34px;
    gap: 5px;
    padding: 18px 18px 12px;
    border-radius: 28px 28px 9px 9px;
  }

  .craps-board::before {
    top: 7px;
    font-size: 0.5rem;
  }

  .craps-board::after {
    inset: 12px;
    border-radius: 22px 22px 6px 6px;
  }

  .number-row {
    gap: 5px;
  }

  .number-tower {
    grid-template-rows: 28px minmax(0, 1fr);
    border-radius: 9px;
  }

  .number-head {
    min-height: 28px;
    padding: 3px 5px;
  }

  .number-head strong {
    font-size: 0.88rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(18px, 1fr));
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 18px;
  }

  .number-bets .bet-label,
  .hardway-row .bet-label,
  .prop-row .bet-label {
    font-size: 0.45rem;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub,
  .line-row .bet-target:nth-child(7)::before,
  .hardway-row::before {
    display: none;
  }

  .line-row {
    grid-template-rows: minmax(50px, 1fr) 28px;
    gap: 4px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}

.line-row .bet-target:nth-child(1) {
  align-content: center;
}

.line-row .bet-target:nth-child(1) .bet-sub {
  display: none;
}

.line-row .bet-target:nth-child(1) {
  align-content: center;
}

.line-row .bet-target:nth-child(1) .bet-sub {
  display: none;
}

@media (min-width: 1101px) and (max-width: 1320px) and (max-height: 760px) {
  .board-scroller {
    padding: 10px 14px 12px;
    border-radius: 54px 54px 15px 15px;
  }

  .craps-board {
    min-width: 880px;
    min-height: 326px;
    grid-template-rows: 102px minmax(84px, 1fr) 40px 36px;
    gap: 5px;
    padding: 20px 22px 14px;
    border-radius: 44px 44px 10px 10px;
  }

  .craps-board::before {
    top: 8px;
    font-size: 0.54rem;
  }

  .craps-board::after {
    inset: 14px 16px 12px;
    border-radius: 34px 34px 7px 7px;
  }

  .number-row {
    gap: 6px;
  }

  .number-tower {
    grid-template-rows: 30px minmax(0, 1fr);
  }

  .number-head {
    min-height: 30px;
    padding: 3px 6px;
  }

  .number-head strong {
    font-size: 0.9rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(19px, 1fr));
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 19px;
  }

  .number-bets .bet-label,
  .prop-row .bet-label,
  .hardway-row .bet-label {
    font-size: 0.46rem;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub {
    display: none;
  }

  .line-row {
    grid-template-rows: minmax(52px, 1fr) 30px;
    gap: 5px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .line-row .bet-target:nth-child(7)::before,
  .hardway-row::before {
    display: none;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .board-scroller {
    padding: 9px;
    border-radius: 34px 34px 12px 12px;
  }

  .craps-board {
    min-width: 800px;
    min-height: 302px;
    grid-template-rows: 94px minmax(78px, 1fr) 38px 34px;
    gap: 5px;
    padding: 18px 18px 12px;
    border-radius: 28px 28px 9px 9px;
  }

  .craps-board::before {
    top: 7px;
    font-size: 0.5rem;
  }

  .craps-board::after {
    inset: 12px;
    border-radius: 22px 22px 6px 6px;
  }

  .number-row {
    gap: 5px;
  }

  .number-tower {
    grid-template-rows: 28px minmax(0, 1fr);
    border-radius: 9px;
  }

  .number-head {
    min-height: 28px;
    padding: 3px 5px;
  }

  .number-head strong {
    font-size: 0.88rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(18px, 1fr));
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 18px;
  }

  .number-bets .bet-label,
  .hardway-row .bet-label,
  .prop-row .bet-label {
    font-size: 0.45rem;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub,
  .line-row .bet-target:nth-child(7)::before,
  .hardway-row::before {
    display: none;
  }

  .line-row {
    grid-template-rows: minmax(50px, 1fr) 28px;
    gap: 4px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .board-scroller {
    padding: 9px;
    border-radius: 34px 34px 12px 12px;
  }

  .craps-board {
    min-width: 800px;
    min-height: 302px;
    grid-template-rows: 94px minmax(78px, 1fr) 38px 34px;
    gap: 5px;
    padding: 18px 18px 12px;
    border-radius: 28px 28px 9px 9px;
  }

  .craps-board::before {
    top: 7px;
    font-size: 0.5rem;
  }

  .craps-board::after {
    inset: 12px;
    border-radius: 22px 22px 6px 6px;
  }

  .number-row {
    gap: 5px;
  }

  .number-tower {
    grid-template-rows: 28px minmax(0, 1fr);
    border-radius: 9px;
  }

  .number-head {
    min-height: 28px;
    padding: 3px 5px;
  }

  .number-head strong {
    font-size: 0.88rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(18px, 1fr));
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 18px;
  }

  .number-bets .bet-label,
  .hardway-row .bet-label,
  .prop-row .bet-label {
    font-size: 0.45rem;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub,
  .line-row .bet-target:nth-child(7)::before,
  .hardway-row::before {
    display: none;
  }

  .line-row {
    grid-template-rows: minmax(50px, 1fr) 28px;
    gap: 4px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}

@media (min-width: 1101px) and (max-width: 1320px) and (max-height: 760px) {
  .board-scroller {
    padding: 10px 14px 12px;
    border-radius: 54px 54px 15px 15px;
  }

  .craps-board {
    min-width: 880px;
    min-height: 326px;
    grid-template-rows: 102px minmax(84px, 1fr) 40px 36px;
    gap: 5px;
    padding: 20px 22px 14px;
    border-radius: 44px 44px 10px 10px;
  }

  .craps-board::before {
    top: 8px;
    font-size: 0.54rem;
  }

  .craps-board::after {
    inset: 14px 16px 12px;
    border-radius: 34px 34px 7px 7px;
  }

  .number-row {
    gap: 6px;
  }

  .number-tower {
    grid-template-rows: 30px minmax(0, 1fr);
  }

  .number-head {
    min-height: 30px;
    padding: 3px 6px;
  }

  .number-head strong {
    font-size: 0.9rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(19px, 1fr));
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 19px;
  }

  .number-bets .bet-label,
  .prop-row .bet-label,
  .hardway-row .bet-label {
    font-size: 0.46rem;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub {
    display: none;
  }

  .line-row {
    grid-template-rows: minmax(52px, 1fr) 30px;
    gap: 5px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .line-row .bet-target:nth-child(7)::before,
  .hardway-row::before {
    display: none;
  }
}

@media (max-width: 1100px) {
  .play-layout {
    height: 100svh;
    min-height: 100svh;
  }

  .felt {
    grid-template-rows: 130px minmax(340px, 1fr) 124px;
    padding-top: 10px;
  }

  .dice-zone {
    padding-top: 8px;
  }

  .board-scroller {
    padding: 10px;
    border-radius: 22px 22px 9px 9px;
  }

  .craps-board {
    min-width: 900px;
    min-height: 382px;
    grid-template-rows: 206px 62px 52px 52px;
    border-radius: 16px 16px 5px 5px;
  }
}

@media (max-width: 560px) {
  .felt {
    grid-template-rows: 112px minmax(332px, 1fr) 142px;
  }

  .table-brand {
    width: 82px;
  }

  .board-scroller {
    padding: 9px;
    scrollbar-width: auto;
  }

  .craps-board {
    min-width: 840px;
    min-height: 368px;
    grid-template-rows: 198px 58px 48px 48px;
  }

  .line-row {
    grid-template-columns: 1.25fr 0.9fr 1.12fr 0.9fr 1fr 1.05fr 1.2fr;
  }
}

@media (max-width: 560px) and (max-height: 700px) {
  .felt {
    grid-template-rows: 96px minmax(292px, 1fr) 100px;
  }

  .table-brand {
    display: none;
  }

  .point-rail {
    display: none;
  }

  .bet-sub {
    display: none;
  }

  .craps-board {
    min-width: 760px;
    min-height: 300px;
    grid-template-rows: 160px 48px 42px 42px;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  .felt {
    grid-template-rows: 78px minmax(242px, 1fr) 96px;
    gap: 4px;
    padding: 6px 8px max(5px, env(safe-area-inset-bottom));
  }

  .dice-zone {
    padding-top: 0;
  }

  .dice-stage {
    grid-template-columns: 42px auto 48px;
    min-height: 66px;
    gap: 6px;
  }

  .puck {
    width: 42px;
    height: 42px;
  }

  .die {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .roll-call strong {
    font-size: 0.94rem;
  }

  .roll-call span {
    font-size: 0.5rem;
  }

  .betting-zone {
    grid-template-rows: minmax(0, 1fr);
  }

  .board-scroller {
    padding: 6px;
    border-radius: 16px 16px 8px 8px;
  }

  .craps-board {
    min-width: 700px;
    min-height: 238px;
    grid-template-rows: 130px 40px 34px 34px;
  }

  .number-tower {
    grid-template-rows: 28px minmax(0, 1fr);
  }

  .number-head {
    min-height: 28px;
    padding: 3px 5px;
  }

  .number-head strong {
    font-size: 0.84rem;
  }

  .number-head span {
    display: none;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(34px, 1fr));
  }

  .line-row,
  .hardway-row,
  .prop-row {
    min-height: 34px;
  }

  .bet-target {
    min-height: 34px;
    padding: 2px 3px;
  }

  .bet-label {
    font-size: 0.5rem;
  }

  .table-wager-row {
    display: none;
  }

  .controls {
    grid-template-rows: 17px 36px 50px;
    gap: 4px;
  }

  .wager-meta {
    min-height: 17px;
  }

  .meter strong {
    font-size: 0.84rem;
  }

  .wager-row {
    min-height: 36px;
  }

  .chips {
    gap: 5px;
  }

  .chip,
  .clear-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .chip .chip-label {
    font-size: 0.48rem;
  }

  .actions-panel {
    gap: 6px;
  }

  .action,
  .ghost-button {
    min-height: 48px;
    font-size: 0.68rem;
  }
}

/* Real craps table redraw: replace the grid look with printed felt and rail lanes. */
.board-scroller {
  align-self: stretch;
  padding: 18px 22px 22px;
  border: 1px solid rgba(220, 224, 230, 0.16);
  border-radius: 92px 92px 20px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, #151a16 0%, #080c0b 72%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.035),
    inset 0 0 0 14px rgba(0, 0, 0, 0.32),
    inset 0 18px 36px rgba(255, 255, 255, 0.03),
    0 26px 64px rgba(0, 0, 0, 0.42);
}

.betting-zone {
  align-self: stretch;
}

.craps-board {
  position: relative;
  display: grid;
  grid-template-areas:
    "points"
    "line"
    "hardways"
    "props";
  grid-template-rows: 142px minmax(132px, 1fr) 58px 54px;
  gap: 10px;
  width: 100%;
  min-width: 1010px;
  min-height: 426px;
  padding: 30px 34px 20px;
  border: 2px solid rgba(232, 236, 243, 0.14);
  border-radius: 74px 74px 14px 14px;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(44, 146, 94, 0.27), transparent 47%),
    radial-gradient(ellipse at 50% 100%, rgba(4, 20, 15, 0.82), transparent 58%),
    linear-gradient(180deg, #0b3426 0%, #08271e 48%, #061b15 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 0 8px rgba(1, 6, 5, 0.28),
    inset 0 -26px 52px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.craps-board::before {
  content: "COME OUT ROLL";
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 0;
  color: rgba(227, 204, 143, 0.18);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translateX(-50%);
}

.craps-board::after {
  content: "";
  position: absolute;
  inset: 20px 22px 18px;
  z-index: 0;
  border: 2px solid rgba(232, 236, 243, 0.13);
  border-radius: 58px 58px 9px 9px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.number-row,
.line-row,
.hardway-row,
.prop-row {
  position: relative;
  z-index: 1;
  border: 0;
}

.number-row {
  grid-area: points;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  padding: 2px 8px 0;
}

.number-tower {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid rgba(232, 236, 243, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 37, 28, 0.86), rgba(4, 24, 19, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 8px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.number-tower:last-child {
  border-right: 1px solid rgba(232, 236, 243, 0.2);
}

.number-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid rgba(232, 236, 243, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 54, 39, 0.88), rgba(7, 30, 24, 0.78));
}

.number-head.is-point {
  background:
    linear-gradient(180deg, rgba(29, 114, 72, 0.92), rgba(13, 67, 48, 0.86));
  box-shadow: inset 0 0 0 1px rgba(227, 204, 143, 0.22);
}

.number-head strong {
  font-size: 1.26rem;
  font-weight: 760;
}

.number-head span {
  color: rgba(227, 204, 143, 0.65);
  font-size: 0.48rem;
  letter-spacing: 0.02em;
}

.number-bets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(30px, 1fr));
  gap: 5px;
  padding: 8px;
  min-width: 0;
}

.number-bets .bet-target {
  min-height: 30px;
  padding: 3px 4px;
  border: 1px dashed rgba(232, 236, 243, 0.2);
  border-radius: 999px;
  background: rgba(4, 16, 13, 0.34);
  box-shadow: none;
}

.number-bets .bet-target:nth-child(2n),
.number-bets .bet-target:nth-last-child(-n+2) {
  border-right: 1px dashed rgba(232, 236, 243, 0.2);
  border-bottom: 1px dashed rgba(232, 236, 243, 0.2);
}

.number-bets .bet-target.kind-place {
  background: rgba(5, 52, 33, 0.42);
}

.number-bets .bet-target.kind-buy,
.number-bets .bet-target.kind-lay {
  background: rgba(7, 27, 31, 0.48);
}

.number-bets .bet-label {
  font-size: 0.52rem;
}

.number-bets .bet-sub {
  font-size: 0.35rem;
}

.line-row {
  grid-area: line;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1.02fr 0.92fr 1.45fr 1.08fr 1.22fr;
  grid-template-rows: minmax(76px, 1fr) 44px;
  gap: 8px;
  min-height: 0;
  padding: 0 8px;
}

.line-row .bet-target {
  min-height: 0;
  border: 2px solid rgba(232, 236, 243, 0.16);
  border-radius: 12px;
  background: rgba(5, 27, 20, 0.54);
}

.line-row .bet-target:nth-child(1) {
  grid-column: 1 / -1;
  grid-row: 2;
  border-color: rgba(232, 236, 243, 0.3);
  border-radius: 999px 999px 18px 18px;
  background:
    linear-gradient(180deg, rgba(14, 68, 44, 0.9), rgba(5, 42, 28, 0.82));
}

.line-row .bet-target:nth-child(1) .bet-label {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.line-row .bet-target:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1;
}

.line-row .bet-target:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 1;
  background: rgba(31, 19, 18, 0.62);
}

.line-row .bet-target:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 1;
  background: rgba(31, 19, 18, 0.42);
}

.line-row .bet-target:nth-child(5) {
  grid-column: 4 / 6;
  grid-row: 1;
  border-color: rgba(232, 236, 243, 0.24);
  background:
    radial-gradient(ellipse at center, rgba(25, 94, 63, 0.66), rgba(6, 34, 24, 0.7));
}

.line-row .bet-target:nth-child(5) .bet-label {
  font-size: 1.08rem;
  letter-spacing: 0.1em;
}

.line-row .bet-target:nth-child(6) {
  grid-column: 6 / 7;
  grid-row: 1;
  background: rgba(31, 19, 18, 0.48);
}

.line-row .bet-target:nth-child(7) {
  grid-column: 7 / 8;
  grid-row: 1;
  border-color: rgba(227, 204, 143, 0.38);
  background:
    radial-gradient(ellipse at center, rgba(116, 91, 35, 0.86), rgba(54, 42, 18, 0.72));
}

.line-row .bet-target:nth-child(7)::before {
  content: "2 3 4   9 10 11   12";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  color: rgba(255, 238, 188, 0.36);
  font-size: 0.55rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.line-row .bet-target:nth-child(7) .bet-label {
  margin-top: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.hardway-row {
  grid-area: hardways;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px;
}

.hardway-row::before {
  content: "HARDWAYS";
  position: absolute;
  top: -14px;
  left: 50%;
  color: rgba(227, 204, 143, 0.36);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.hardway-row .bet-target {
  min-height: 0;
  border: 1px solid rgba(232, 236, 243, 0.18);
  border-radius: 12px;
  background: rgba(4, 22, 26, 0.72);
}

.prop-row {
  grid-area: props;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  padding: 0 10px;
}

.prop-row .bet-target {
  min-height: 0;
  border: 1px solid rgba(232, 236, 243, 0.14);
  border-radius: 10px;
  background: rgba(22, 22, 17, 0.74);
}

.prop-row .bet-target:last-child {
  border-right: 1px solid rgba(232, 236, 243, 0.14);
}

.bet-target {
  overflow: visible;
}

.bet-target.has-wager {
  border-color: rgba(227, 204, 143, 0.64);
  background-color: rgba(201, 173, 105, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(227, 204, 143, 0.18),
    0 0 20px rgba(227, 204, 143, 0.08);
}

.bet-target.has-wager .bet-stack {
  bottom: 4px;
}

.bet-label {
  letter-spacing: 0.02em;
  white-space: normal;
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .board-scroller {
    padding: 14px 18px 18px;
    border-radius: 72px 72px 18px 18px;
  }

  .craps-board {
    min-width: 900px;
    min-height: 412px;
    grid-template-rows: 136px minmax(128px, 1fr) 56px 50px;
    gap: 7px;
    padding: 28px 26px 20px;
    border-radius: 58px 58px 12px 12px;
  }

  .number-row {
    gap: 7px;
    padding-inline: 6px;
  }

  .number-tower {
    grid-template-rows: 42px minmax(0, 1fr);
    border-radius: 11px;
  }

  .number-head {
    min-height: 42px;
    padding: 5px 7px;
  }

  .number-head strong {
    font-size: 1.08rem;
  }

  .number-bets {
    gap: 4px;
    padding: 5px;
  }

  .line-row {
    grid-template-rows: minmax(72px, 1fr) 44px;
    gap: 6px;
    padding-inline: 6px;
  }

  .line-row .bet-target:nth-child(5) .bet-label {
    font-size: 1rem;
  }

  .line-row .bet-target:nth-child(1) .bet-label {
    font-size: 0.86rem;
  }

  .hardway-row,
  .prop-row {
    gap: 6px;
    padding-inline: 8px;
  }
}

@media (max-width: 1100px) {
  .board-scroller {
    padding: 12px;
    border-radius: 42px 42px 14px 14px;
  }

  .craps-board {
    min-width: 840px;
    min-height: 366px;
    grid-template-rows: 124px minmax(112px, 1fr) 52px 48px;
    gap: 6px;
    padding: 24px 20px 16px;
    border-radius: 36px 36px 10px 10px;
  }

  .number-row,
  .line-row,
  .hardway-row,
  .prop-row {
    padding-inline: 4px;
  }

  .number-tower {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .number-head {
    min-height: 36px;
  }

  .line-row {
    grid-template-rows: minmax(64px, 1fr) 40px;
    gap: 5px;
  }
}

@media (max-width: 560px) {
  .board-scroller {
    padding: 10px;
    border-radius: 30px 30px 12px 12px;
  }

  .craps-board {
    min-width: 760px;
    min-height: 340px;
    grid-template-rows: 114px minmax(104px, 1fr) 48px 44px;
    padding: 22px 18px 14px;
  }

  .number-row {
    gap: 5px;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub {
    display: none;
  }

  .line-row .bet-target:nth-child(7)::before {
    display: none;
  }

  .line-row .bet-target:nth-child(5) .bet-label {
    font-size: 0.86rem;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  .board-scroller {
    padding: 7px;
    border-radius: 20px 20px 9px 9px;
  }

  .craps-board {
    min-width: 700px;
    min-height: 246px;
    grid-template-rows: 82px minmax(76px, 1fr) 38px 34px;
    gap: 4px;
    padding: 16px 12px 10px;
  }

  .craps-board::before {
    display: none;
  }

  .craps-board::after {
    inset: 10px;
    border-radius: 17px 17px 6px 6px;
  }

  .number-row {
    gap: 4px;
  }

  .number-tower {
    grid-template-rows: 26px minmax(0, 1fr);
    border-radius: 8px;
  }

  .number-head {
    min-height: 26px;
    padding: 2px 5px;
  }

  .number-head strong {
    font-size: 0.8rem;
  }

  .number-bets {
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 20px;
  }

  .line-row {
    grid-template-rows: minmax(48px, 1fr) 28px;
    gap: 4px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }

  .hardway-row,
  .prop-row {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 1101px) and (max-width: 1320px) and (max-height: 760px) {
  .board-scroller {
    padding: 10px 14px 12px;
    border-radius: 54px 54px 15px 15px;
  }

  .craps-board {
    min-width: 880px;
    min-height: 326px;
    grid-template-rows: 102px minmax(84px, 1fr) 40px 36px;
    gap: 5px;
    padding: 20px 22px 14px;
    border-radius: 44px 44px 10px 10px;
  }

  .craps-board::before {
    top: 8px;
    font-size: 0.54rem;
  }

  .craps-board::after {
    inset: 14px 16px 12px;
    border-radius: 34px 34px 7px 7px;
  }

  .number-row {
    gap: 6px;
  }

  .number-tower {
    grid-template-rows: 30px minmax(0, 1fr);
  }

  .number-head {
    min-height: 30px;
    padding: 3px 6px;
  }

  .number-head strong {
    font-size: 0.9rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(19px, 1fr));
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 19px;
  }

  .number-bets .bet-label,
  .prop-row .bet-label,
  .hardway-row .bet-label {
    font-size: 0.46rem;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub {
    display: none;
  }

  .line-row {
    grid-template-rows: minmax(52px, 1fr) 30px;
    gap: 5px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .line-row .bet-target:nth-child(7)::before,
  .hardway-row::before {
    display: none;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .board-scroller {
    padding: 9px;
    border-radius: 34px 34px 12px 12px;
  }

  .craps-board {
    min-width: 800px;
    min-height: 302px;
    grid-template-rows: 94px minmax(78px, 1fr) 38px 34px;
    gap: 5px;
    padding: 18px 18px 12px;
    border-radius: 28px 28px 9px 9px;
  }

  .craps-board::before {
    top: 7px;
    font-size: 0.5rem;
  }

  .craps-board::after {
    inset: 12px;
    border-radius: 22px 22px 6px 6px;
  }

  .number-row {
    gap: 5px;
  }

  .number-tower {
    grid-template-rows: 28px minmax(0, 1fr);
    border-radius: 9px;
  }

  .number-head {
    min-height: 28px;
    padding: 3px 5px;
  }

  .number-head strong {
    font-size: 0.88rem;
  }

  .number-bets {
    grid-template-rows: repeat(3, minmax(18px, 1fr));
    gap: 3px;
    padding: 4px;
  }

  .number-bets .bet-target {
    min-height: 18px;
  }

  .number-bets .bet-label,
  .hardway-row .bet-label,
  .prop-row .bet-label {
    font-size: 0.45rem;
  }

  .number-bets .bet-sub,
  .prop-row .bet-sub,
  .line-row .bet-target:nth-child(7)::before,
  .hardway-row::before {
    display: none;
  }

  .line-row {
    grid-template-rows: minmax(50px, 1fr) 28px;
    gap: 4px;
  }

  .line-row .bet-target:nth-child(1) .bet-label,
  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }
}
.line-row .bet-target:nth-child(1) {
  align-content: center;
}

.line-row .bet-target:nth-child(1) .bet-sub {
  display: none;
}
@media (max-width: 1100px) {
  .line-row .bet-target:nth-child(1)::before {
    content: "PASS LINE";
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    color: rgba(243, 245, 248, 0.96);
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    pointer-events: none;
  }

  .line-row .bet-target:nth-child(1) .bet-label {
    color: transparent;
    text-shadow: none;
  }
}

@media (max-width: 560px) {
  .line-row .bet-target:nth-child(1)::before {
    right: auto;
    left: 20px;
    width: 160px;
  }
}

/* Clean craps table pass: quieter felt, stable fit, no cropped desktop board on phones. */
.felt {
  grid-template-rows: 108px minmax(0, 1fr) 132px;
  gap: 10px;
  padding: 14px 18px 12px;
  background:
    radial-gradient(circle at 50% 44%, rgba(25, 34, 48, 0.3), transparent 50%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.5), rgba(6, 9, 14, 0.18) 44%, rgba(5, 8, 12, 0.58));
}

.dice-zone {
  align-content: end;
  padding-top: 4px;
}

.dice-stage {
  min-height: 76px;
  gap: 12px;
}

.puck {
  width: 56px;
  height: 56px;
}

.die {
  width: 48px;
  height: 48px;
}

.betting-zone {
  grid-template-rows: minmax(0, 1fr) 24px;
  gap: 6px;
}

.board-scroller {
  display: grid;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 50px 50px 16px 16px;
  background:
    linear-gradient(180deg, rgba(20, 24, 24, 0.95), rgba(5, 8, 8, 0.98)),
    #07100d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 0 0 9px rgba(0, 0, 0, 0.22),
    0 20px 50px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.board-scroller::before,
.board-scroller::after {
  content: none;
}

.craps-board {
  position: relative;
  display: grid;
  grid-template-areas:
    "points"
    "line"
    "hardways"
    "props";
  grid-template-rows: minmax(118px, 1.36fr) minmax(78px, 0.82fr) minmax(48px, 0.44fr) minmax(48px, 0.44fr);
  gap: 4px;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 22px 20px 16px;
  border: 1px solid rgba(232, 236, 243, 0.14);
  border-radius: 38px 38px 10px 10px;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(32, 121, 78, 0.18), transparent 46%),
    linear-gradient(180deg, #0a3527 0%, #08271d 56%, #061b15 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 -22px 42px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.craps-board::before {
  top: 8px;
  color: rgba(227, 204, 143, 0.16);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
}

.craps-board::after {
  inset: 12px;
  border-color: rgba(232, 236, 243, 0.1);
  border-radius: 28px 28px 7px 7px;
  box-shadow: none;
}

.number-row,
.line-row,
.hardway-row,
.prop-row {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 0;
}

.number-row {
  grid-area: points;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
}

.number-tower {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid rgba(232, 236, 243, 0.14);
  border-radius: 8px;
  background: rgba(5, 24, 18, 0.32);
  box-shadow: none;
  overflow: hidden;
}

.number-tower:last-child {
  border-right: 1px solid rgba(232, 236, 243, 0.14);
}

.number-head {
  min-height: 34px;
  padding: 5px 7px;
  border-bottom: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 0;
  background: rgba(4, 19, 16, 0.62);
  box-shadow: none;
}

.number-head.is-point {
  background: rgba(21, 99, 64, 0.58);
  box-shadow: inset 0 0 0 1px rgba(227, 204, 143, 0.16);
}

.number-head strong {
  font-size: 1rem;
  font-weight: 820;
}

.number-head span {
  color: rgba(227, 204, 143, 0.72);
  font-size: 0.42rem;
}

.number-head .contract-stacks {
  min-width: 30px;
  min-height: 20px;
}

.number-bets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: 0;
  padding: 0;
}

.number-bets .bet-target,
.number-bets .bet-target:nth-child(2n),
.number-bets .bet-target:nth-last-child(-n+2) {
  min-height: 0;
  padding: 4px 3px;
  border: 0;
  border-right: 1px solid rgba(232, 236, 243, 0.1);
  border-bottom: 1px solid rgba(232, 236, 243, 0.1);
  border-radius: 0;
  background: transparent;
}

.number-bets .bet-target:nth-child(2n) {
  border-right: 0;
}

.number-bets .bet-target:nth-last-child(-n+2) {
  border-bottom: 0;
}

.line-row {
  grid-area: line;
  display: grid;
  grid-template-columns: 0.8fr 0.74fr 1.05fr 0.84fr 1.42fr 1fr 0.94fr;
  grid-template-rows: minmax(0, 1fr) 34px;
  gap: 4px;
  padding: 0;
  min-height: 0;
}

.line-row .bet-target {
  min-height: 0;
  border: 1px solid rgba(232, 236, 243, 0.13);
  border-radius: 8px;
  background: rgba(5, 24, 18, 0.42);
}

.line-row .bet-target:nth-child(1) {
  grid-column: 1 / -1;
  grid-row: 2;
  border-color: rgba(232, 236, 243, 0.24);
  border-radius: 999px 999px 12px 12px;
  background: rgba(8, 54, 34, 0.72);
}

.line-row .bet-target:nth-child(1)::before,
.line-row .bet-target:nth-child(7)::before,
.hardway-row::before {
  content: none;
}

.line-row .bet-target:nth-child(1) .bet-label {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-shadow: var(--text-depth);
}

.line-row .bet-target:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1;
}

.line-row .bet-target:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.line-row .bet-target:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 1;
}

.line-row .bet-target:nth-child(5) {
  grid-column: 4 / 6;
  grid-row: 1;
  border-color: rgba(232, 236, 243, 0.18);
  background: rgba(10, 60, 39, 0.6);
}

.line-row .bet-target:nth-child(5) .bet-label {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}

.line-row .bet-target:nth-child(6) {
  grid-column: 6 / 7;
  grid-row: 1;
}

.line-row .bet-target:nth-child(7) {
  grid-column: 7 / 8;
  grid-row: 1;
  border-color: rgba(227, 204, 143, 0.3);
  background: rgba(84, 65, 24, 0.72);
}

.line-row .bet-target:nth-child(7) .bet-label {
  margin-top: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hardway-row {
  grid-area: hardways;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
  padding: 0;
}

.hardway-row .bet-target {
  min-height: 0;
  border: 1px solid rgba(232, 236, 243, 0.12);
  border-radius: 8px;
  background: rgba(5, 24, 28, 0.62);
}

.prop-row {
  grid-area: props;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
  padding: 0;
}

.prop-row .bet-target,
.prop-row .bet-target:last-child {
  min-height: 0;
  border: 1px solid rgba(232, 236, 243, 0.11);
  border-radius: 8px;
  background: rgba(20, 20, 16, 0.62);
}

.bet-target {
  align-content: center;
  gap: 2px;
  min-height: 0;
  padding: 6px 5px;
  box-shadow: none;
  overflow: hidden;
}

.bet-target:hover,
.bet-target:focus-visible {
  background-color: rgba(201, 173, 105, 0.12);
  box-shadow: inset 0 0 0 1px rgba(227, 204, 143, 0.18);
}

.bet-target.has-wager {
  align-content: start;
  padding-bottom: 26px;
  border-color: rgba(227, 204, 143, 0.48);
  background-color: rgba(201, 173, 105, 0.12);
  box-shadow: inset 0 0 0 1px rgba(227, 204, 143, 0.18);
}

.bet-target.has-wager .bet-stack {
  bottom: 3px;
  min-height: 22px;
}

.bet-label {
  max-width: 100%;
  color: rgba(243, 245, 248, 0.96);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.number-bets .bet-label,
.hardway-row .bet-label,
.prop-row .bet-label {
  font-size: 0.54rem;
}

.bet-sub {
  max-width: 100%;
  color: rgba(194, 200, 209, 0.66);
  font-size: 0.38rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wager-row {
  min-height: 24px;
}

.table-wager {
  min-height: 24px;
}

.table-bet-amount {
  font-size: 0.72rem;
}

.controls {
  grid-template-rows: auto 54px 50px;
  gap: 8px;
}

.wager-row {
  min-height: 54px;
}

.chip {
  width: 48px;
  height: 48px;
}

.clear-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
}

@media (min-width: 1101px) and (max-height: 760px) {
  .felt {
    grid-template-rows: 92px minmax(0, 1fr) 120px;
    gap: 8px;
    padding-top: 10px;
  }

  .dice-stage {
    min-height: 66px;
  }

  .puck {
    width: 50px;
    height: 50px;
  }

  .die {
    width: 44px;
    height: 44px;
  }

  .craps-board {
    grid-template-rows: minmax(104px, 1.34fr) minmax(70px, 0.8fr) minmax(42px, 0.4fr) minmax(42px, 0.4fr);
    padding: 18px 18px 14px;
  }

  .number-head {
    min-height: 30px;
  }

  .number-tower {
    grid-template-rows: 30px minmax(0, 1fr);
  }

  .controls {
    grid-template-rows: auto 48px 46px;
    gap: 6px;
  }
}

@media (max-width: 1100px) {
  .felt {
    grid-template-rows: 104px minmax(0, 1fr) 126px;
    gap: 8px;
    padding: 12px 14px 10px;
  }

  .board-scroller {
    padding: 10px;
    border-radius: 38px 38px 14px 14px;
  }

  .craps-board {
    grid-template-rows: minmax(126px, 1.42fr) minmax(84px, 0.82fr) minmax(48px, 0.42fr) minmax(48px, 0.42fr);
    padding: 20px 16px 14px;
    border-radius: 30px 30px 9px 9px;
  }

  .number-head {
    min-height: 32px;
  }

  .number-tower {
    grid-template-rows: 32px minmax(0, 1fr);
  }

  .bet-label,
  .number-bets .bet-label,
  .hardway-row .bet-label,
  .prop-row .bet-label {
    font-size: 0.5rem;
  }

  .bet-sub {
    font-size: 0.34rem;
  }

  .line-row .bet-target:nth-child(1) .bet-label {
    font-size: 0.68rem;
  }

  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.76rem;
  }
}

@media (max-width: 700px) {
  .felt {
    grid-template-rows: 122px minmax(0, 1fr) 132px;
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .dice-zone {
    padding-top: 0;
  }

  .point-chip {
    min-height: 26px;
  }

  .dice-stage {
    min-height: 58px;
    gap: 8px;
  }

  .puck {
    width: 44px;
    height: 44px;
  }

  .die {
    width: 42px;
    height: 42px;
  }

  .roll-call strong {
    font-size: 1rem;
  }

  .betting-zone {
    grid-template-rows: minmax(0, 1fr) 18px;
    gap: 5px;
  }

  .board-scroller {
    padding: 8px;
    border-radius: 28px 28px 12px 12px;
    overflow: hidden;
  }

  .craps-board {
    grid-template-rows: minmax(150px, 1.45fr) minmax(92px, 0.9fr) minmax(44px, 0.42fr) minmax(72px, 0.7fr);
    gap: 4px;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    padding: 14px 10px 10px;
    border-radius: 22px 22px 8px 8px;
  }

  .craps-board::before {
    content: none;
  }

  .craps-board::after {
    inset: 8px;
    border-radius: 16px 16px 6px 6px;
  }

  .number-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .number-tower {
    grid-template-rows: 26px minmax(0, 1fr);
    border-radius: 7px;
  }

  .number-head {
    min-height: 26px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 3px 4px;
  }

  .number-head strong {
    font-size: 0.88rem;
  }

  .number-head span,
  .number-head .contract-stacks,
  .number-bets .bet-sub,
  .prop-row .bet-sub {
    display: none;
  }

  .number-bets .bet-target {
    padding: 2px 1px;
  }

  .line-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 28px;
    gap: 4px;
  }

  .line-row .bet-target:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .line-row .bet-target:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .line-row .bet-target:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
  }

  .line-row .bet-target:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .line-row .bet-target:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
  }

  .line-row .bet-target:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
  }

  .line-row .bet-target:nth-child(7) {
    grid-column: 3;
    grid-row: 1;
  }

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

  .prop-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .bet-target {
    padding: 3px 2px;
    border-radius: 7px;
  }

  .bet-target.has-wager {
    padding-bottom: 21px;
  }

  .bet-target.has-wager .bet-stack {
    min-height: 18px;
  }

  .bet-label,
  .number-bets .bet-label,
  .hardway-row .bet-label,
  .prop-row .bet-label {
    font-size: 0.44rem;
    line-height: 1.02;
  }

  .line-row .bet-target:nth-child(1) .bet-label {
    font-size: 0.58rem;
  }

  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.56rem;
  }

  .bet-sub {
    font-size: 0.3rem;
  }

  .table-wager-row,
  .table-wager {
    min-height: 18px;
  }

  .controls {
    grid-template-rows: auto 48px 44px;
    gap: 6px;
  }

  .wager-row {
    min-height: 48px;
  }

  .chip,
  .clear-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .action,
  .ghost-button {
    min-height: 44px;
  }
}

@media (max-width: 380px), (max-height: 650px) {
  .shell {
    align-content: start;
    min-height: 100svh;
    overflow: visible;
  }

  .play-layout {
    height: auto;
    min-height: 100svh;
  }

  .table-shell {
    height: auto;
    min-height: 100svh;
  }

  .felt {
    grid-template-rows: 90px auto 108px;
    gap: 6px;
    height: auto;
    min-height: 0;
    padding: 7px 8px 8px;
  }

  .betting-zone {
    grid-template-rows: auto;
    gap: 0;
  }

  .board-scroller {
    align-self: start;
    padding: 8px;
  }

  .table-wager-row {
    display: none;
  }

  .point-chip {
    min-height: 24px;
  }

  .dice-stage {
    min-height: 48px;
  }

  .puck {
    width: 38px;
    height: 38px;
  }

  .die {
    width: 36px;
    height: 36px;
  }

  .craps-board {
    grid-template-rows: 132px 78px 38px 58px;
    gap: 3px;
    height: 320px;
    min-height: 320px;
    padding: 10px 7px 7px;
  }

  .number-row,
  .line-row,
  .hardway-row,
  .prop-row {
    gap: 3px;
  }

  .number-tower {
    grid-template-rows: 22px minmax(0, 1fr);
  }

  .number-head {
    min-height: 22px;
  }

  .number-head strong {
    font-size: 0.76rem;
  }

  .line-row {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 24px;
  }

  .bet-label,
  .number-bets .bet-label,
  .hardway-row .bet-label,
  .prop-row .bet-label {
    font-size: 0.38rem;
  }

  .line-row .bet-target:nth-child(1) .bet-label {
    font-size: 0.5rem;
  }

  .line-row .bet-target:nth-child(5) .bet-label,
  .line-row .bet-target:nth-child(7) .bet-label {
    font-size: 0.48rem;
  }

  .bet-sub {
    display: none;
  }

  .controls {
    grid-template-rows: auto 40px 38px;
    gap: 5px;
  }

  .chip,
  .clear-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .action,
  .ghost-button {
    min-height: 38px;
  }
}
