.play-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 0.9rem;
  align-items: start;
  margin-top: 1rem;
}

.stage,
.felt {
  min-width: 0;
}

.stage canvas,
#reels,
#grid {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  background: #1c1915;
}

#wheel {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background: #1c1915;
}

#grid {
  aspect-ratio: 6 / 5;
}

.stage {
  position: relative;
}

.win-banner {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: 0.6rem;
  margin: 0;
  background: #e2a23a;
  color: #1c1915;
  padding: 0.55rem 0.7rem;
  opacity: 0;
}

.win-banner.is-on {
  opacity: 1;
}

.win-banner b,
.win-banner span {
  display: block;
}

.result {
  margin: 0.7rem 0 0.3rem;
  min-height: 1.4em;
}

.msg,
.feature,
.rate {
  margin: 0.3rem 0;
}

.feature.is-live {
  color: #e2a23a;
  font-weight: 700;
}

.dock {
  background: #1c1915;
  color: #f6f1e6;
  padding: 0.9rem;
  min-width: 0;
}

.dock h2,
.sheet .dock h2 {
  margin: 0.9rem 0 0.35rem;
  color: #f6f1e6;
  font-size: 1.15rem;
}

.dock-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.45rem;
}

.amount-row strong {
  font-size: 1.35rem;
  text-align: center;
}

.dock button,
.chips button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 0.45rem;
  border: 0;
  background: #e2a23a;
  color: #1c1915;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dock button:disabled {
  background: #3a342c;
  color: #c4b8a4;
  cursor: not-allowed;
}

.amount-row button {
  margin-top: 0;
}

.stats {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
}

.stats div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  border-top: 1px solid rgba(246, 241, 230, 0.25);
  padding-top: 0.35rem;
}

.stats dt {
  margin: 0;
}

.stats dd {
  margin: 0;
  font-weight: 700;
  color: #e2a23a;
}

.dock ul,
#win-list,
#pick-list {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

.trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
}

.trail li {
  background: #2a241c;
  color: #f6f1e6;
  padding: 0.35rem 0.5rem;
  font-weight: 700;
}

.trail li.is-past {
  background: #1f6b4a;
}

.trail li.is-on {
  background: #e2a23a;
  color: #1c1915;
}

.chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

.chips button {
  margin-top: 0;
  background: #2a241c;
  color: #f6f1e6;
  padding: 0.3rem;
}

.chips button[aria-checked="true"] {
  background: #e2a23a;
  color: #1c1915;
}

.cloth,
#board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 0.75rem;
}

.cell {
  min-height: 44px;
  border: 0;
  background: #f6f1e6;
  color: #1c1915;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem;
}

.cell.zero {
  grid-column: 1 / -1;
}

.cell.red { background: #8d2e2e; color: #f6f1e6; }
.cell.black { background: #1c1915; color: #f6f1e6; }
.cell.green,
.cell.zero { background: #1f6b4a; color: #f6f1e6; }

.cell.is-win {
  outline: 3px solid #e2a23a;
  outline-offset: -3px;
}

.marker {
  display: inline-block;
  margin-left: 0.25rem;
  background: #e2a23a;
  color: #1c1915;
  padding: 0 0.35rem;
  font-size: 0.75rem;
}

.pocket-badge {
  margin: 0.55rem 0 0;
  display: inline-block;
  min-width: 3.2rem;
  text-align: center;
  background: #1c1915;
  color: #f6f1e6;
  font-family: "Flz Display", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  padding: 0.15rem 0.5rem;
}

.pocket-badge.red { background: #8d2e2e; }
.pocket-badge.black { background: #1c1915; }
.pocket-badge.green { background: #1f6b4a; }

#recent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}

#recent li {
  min-width: 2rem;
  text-align: center;
  background: #2a241c;
  color: #f6f1e6;
  padding: 0.2rem 0.4rem;
  font-weight: 700;
}

#recent li.red { background: #8d2e2e; }
#recent li.green { background: #1f6b4a; }
#recent li.black { background: #14110e; }

.felt {
  background: #1f6b4a;
  color: #f6f1e6;
  padding: 0.9rem;
}

.felt h2 {
  color: #f6f1e6;
  margin: 0.8rem 0 0.4rem;
}

.shoe {
  margin: 0;
  font-weight: 700;
}

.cards,
#dealer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.hand {
  margin-top: 0.7rem;
  padding: 0.45rem;
}

.hand.is-active {
  outline: 2px solid #e2a23a;
}

.hand-tag {
  margin: 0.35rem 0 0;
}

.out {
  margin-left: 0.35rem;
  background: #1c1915;
  color: #f6f1e6;
  padding: 0.05rem 0.35rem;
  font-weight: 700;
}

.out.win,
.out.blackjack {
  background: #e2a23a;
  color: #1c1915;
}

.card {
  position: relative;
  width: 4.4rem;
  height: 6.2rem;
  background: #f6f1e6;
  color: #1c1915;
  border: 1px solid #1c1915;
  overflow: hidden;
  flex: 0 0 auto;
}

.face {
  position: relative;
  height: 100%;
}

.face.red {
  color: #8d2e2e;
}

.corner {
  position: absolute;
  top: 0.2rem;
  left: 0.25rem;
  font-weight: 700;
  line-height: 1;
  font-size: 0.85rem;
}

.corner small {
  display: block;
  font-size: 0.75rem;
}

.corner.br {
  top: auto;
  bottom: 0.2rem;
  left: auto;
  right: 0.25rem;
  transform: rotate(180deg);
}

.pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.back {
  position: absolute;
  inset: 0;
  background: #1c1915;
}

.back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card.is-down .face,
.card:not(.is-down) .back {
  display: none;
}

.paytable {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.paytable li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(28, 25, 21, 0.16);
}

.paytable img {
  width: 42px;
  height: 42px;
}

.stage .result.is-win {
  color: #1f6b4a;
  font-weight: 700;
}

.felt .result.is-win {
  color: #e2a23a;
}

@media (max-width: 800px) {
  .play-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .dock,
  .dock button,
  .chips button,
  .cell.col,
  .cell.dozen,
  .cell.even,
  .cell.zero {
    width: 100%;
    min-height: 48px;
  }

  .chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
