.room-intro { padding: 28px 0 8px; }
.room-intro .display { font-size: clamp(3rem, 6vw, 5.6rem); }
.room-stage {
  width: min(1560px, calc(100% - 48px));
  margin: 12px auto 18px;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: center;
}
.wheel-well {
  perspective: 1100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(199, 125, 255, 0.16), transparent 55%),
    #140910;
  border-radius: 32px;
  border: 1px solid rgba(240, 215, 164, 0.35);
  padding: 18px 18px 28px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}
.wheel-well.is-live { box-shadow: inset 0 0 80px rgba(127, 246, 234, 0.16), 0 0 40px rgba(199, 125, 255, 0.2); }
#wheel {
  width: 100%;
  height: auto;
  transform: rotateX(46deg);
  transform-origin: center 62%;
}
.felt-wrap { min-width: 0; }
.felt {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 244, 220, 0.05), transparent 30%),
    #3a1238 url("../assets/wheel-table.jpg?v=20261019-svh") center/cover;
  border: 1px solid rgba(240, 215, 164, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: rotateX(8deg);
  transform-origin: center top;
}
.cell {
  position: relative;
  min-height: 48px;
  min-width: 44px;
  border-radius: 10px;
  border: 1px solid rgba(240, 215, 164, 0.35);
  background: rgba(12, 6, 10, 0.78);
  color: #fff8ee;
  font: 700 0.95rem/1 "Outfit", sans-serif;
  cursor: pointer;
  padding: 4px;
}
.cell:active { transform: scale(0.97); }
.pocket-red { background: #9d2740; }
.pocket-black { background: #140c12; }
.pocket-green { background: #0f7a4e; }
.cell .num { display: block; }
.disc {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  font-size: 0.68rem;
  color: #1a0c08;
}
.has-chip .disc { display: grid; }
.chip-a .disc { background: #f0d7a4; }
.chip-b .disc { background: #d7a6ff; }
.chip-c .disc { background: #7ff6ea; }
.chip-d .disc { background: #fff; }
.log-row { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.log-row h2 { margin-right: auto; }
.log-row h2 { font-size: 1rem; margin: 0; letter-spacing: 0.12em; text-transform: uppercase; font-family: "Outfit", sans-serif; }
#history { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.pip { min-width: 32px; min-height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 0.8rem; }
.pip-red { background: #9d2740; }
.pip-black { background: #221018; border: 1px solid rgba(240, 215, 164, 0.4); }
.pip-green { background: #0f7a4e; }
.live-line, #msg, #result { width: min(1560px, calc(100% - 48px)); margin: 8px auto; }
#result { font-variant-numeric: tabular-nums; color: var(--champagne); }

.tray {
  width: min(1560px, calc(100% - 48px));
  margin: 14px auto 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(240, 215, 164, 0.4);
  background: rgba(18, 8, 16, 0.92);
}
.tray button, .amount-read {
  min-height: 48px;
  min-width: 48px;
  border-radius: 14px;
  border: 1px solid rgba(240, 215, 164, 0.4);
  background: #241028;
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
  cursor: pointer;
}
.amount-read { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; min-width: 72px; justify-content: center; }
#go, #deal { background: linear-gradient(180deg, #fff1cc, #e0be78); color: #1a0c08; font-weight: 700; border-color: transparent; }
.tray button:disabled { opacity: 0.45; cursor: not-allowed; }

.card-stage, .reel-stage {
  width: min(1560px, calc(100% - 32px));
  margin: 8px auto 16px;
}
.card-felt {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-height: 460px;
  padding: 28px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(240, 215, 164, 0.45);
  background: #2a1028 url("../assets/card-table.jpg?v=20261019-svh") center/cover;
}
.card-felt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 4, 12, 0.25), rgba(12, 4, 12, 0.55));
}
.hand-col { position: relative; z-index: 1; }
.hand-col h2 { font-size: 1.4rem; }
.cards { display: flex; gap: 10px; min-height: 168px; flex-wrap: wrap; }
.playing-card {
  width: 112px;
  min-height: 156px;
  border-radius: 14px;
  background: #f7f1ea;
  color: #1a0c08;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  opacity: 0;
}
.playing-card.is-in { opacity: 1; transform: none; transition: transform 0.28s ease, opacity 0.28s ease; }
.playing-card.is-down {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 244, 220, 0.3), transparent 40%),
    linear-gradient(160deg, #3a1848, #140810 60%);
  color: var(--champagne);
  border: 1px solid rgba(240, 215, 164, 0.5);
}
.playing-card[data-suit="hearts"], .playing-card[data-suit="diamonds"] { color: #9d2740; }
.card-rank { font-family: "Fraunces", serif; font-size: 1.8rem; }
.card-suit { margin-top: auto; }
.total { font-variant-numeric: tabular-nums; font-size: 1.4rem; }

.reel-frame {
  border-radius: 28px;
  padding: 12px;
  background: #120810;
  border: 1px solid rgba(240, 215, 164, 0.35);
}
main[data-room="cyan"] .reel-frame { background: #071416; }
#reels { width: 100%; height: auto; display: block; }
.lock-row, .rules { width: min(1560px, calc(100% - 48px)); margin: 8px auto; }
.lock-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lock-row button {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(240, 215, 164, 0.4);
  background: #1b0d18;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.lock-row button[aria-pressed="true"] { background: #3a1848; color: var(--champagne); }
main[data-room="cyan"] .lock-row button[aria-pressed="true"] { background: #08343a; color: var(--cyan); }
.rules {
  border: 1px solid rgba(240, 215, 164, 0.3);
  border-radius: 18px;
  padding: 8px 16px 16px;
  background: rgba(16, 6, 14, 0.72);
}
.rules summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.pay { width: 100%; border-collapse: collapse; }
.pay th, .pay td { text-align: left; padding: 8px; border-bottom: 1px solid rgba(240, 215, 164, 0.2); }
.pay th { color: var(--champagne); font-weight: 600; }

@media (max-width: 1360px) {
  .room-stage { grid-template-columns: 1fr; }
  #wheel { transform: rotateX(28deg); }
  .felt { transform: none; }
}
@media (max-width: 800px) {
  .card-felt { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .room-stage, .live-line, #msg, #result, .tray, .lock-row, .rules, .card-stage, .reel-stage {
    width: min(1560px, calc(100% - 20px));
  }
  .tray {
    position: fixed;
    z-index: 44;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    margin: 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  body.room { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  body.room .thumb { display: none; }
  .playing-card { width: 84px; min-height: 124px; }
  .felt { padding: 8px; gap: 4px; }
}
@media (min-width: 900px) {
  .felt {
    grid-template-columns: 72px repeat(12, minmax(44px, 1fr)) 78px;
    grid-template-rows: repeat(3, 52px) 48px 48px;
  }
  .cell-zero { grid-column: 1; grid-row: 1 / span 3; }
  .col-3 { grid-column: 14; grid-row: 1; }
  .col-2 { grid-column: 14; grid-row: 2; }
  .col-1 { grid-column: 14; grid-row: 3; }
  .doz-1 { grid-column: 2 / span 4; grid-row: 4; }
  .doz-2 { grid-column: 6 / span 4; grid-row: 4; }
  .doz-3 { grid-column: 10 / span 4; grid-row: 4; }
  .out-low { grid-column: 2 / span 2; grid-row: 5; }
  .out-even { grid-column: 4 / span 2; grid-row: 5; }
  .out-red { grid-column: 6 / span 2; grid-row: 5; }
  .out-black { grid-column: 8 / span 2; grid-row: 5; }
  .out-odd { grid-column: 10 / span 2; grid-row: 5; }
  .out-high { grid-column: 12 / span 2; grid-row: 5; }
}
@media (max-width: 899px) {
  .felt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell-zero { grid-column: 1 / span 3; grid-row: 1; }
  .col-1, .col-2, .col-3, .doz-1, .doz-2, .doz-3, .out-low, .out-even, .out-red, .out-black, .out-odd, .out-high {
    grid-column: span 1;
  }
  .out-low, .out-high, .doz-1, .doz-2, .doz-3 { grid-column: span 3; }
}
@media (min-width: 900px) {
.n-1 { grid-column: 2; grid-row: 3; }
.n-2 { grid-column: 2; grid-row: 2; }
.n-3 { grid-column: 2; grid-row: 1; }
.n-4 { grid-column: 3; grid-row: 3; }
.n-5 { grid-column: 3; grid-row: 2; }
.n-6 { grid-column: 3; grid-row: 1; }
.n-7 { grid-column: 4; grid-row: 3; }
.n-8 { grid-column: 4; grid-row: 2; }
.n-9 { grid-column: 4; grid-row: 1; }
.n-10 { grid-column: 5; grid-row: 3; }
.n-11 { grid-column: 5; grid-row: 2; }
.n-12 { grid-column: 5; grid-row: 1; }
.n-13 { grid-column: 6; grid-row: 3; }
.n-14 { grid-column: 6; grid-row: 2; }
.n-15 { grid-column: 6; grid-row: 1; }
.n-16 { grid-column: 7; grid-row: 3; }
.n-17 { grid-column: 7; grid-row: 2; }
.n-18 { grid-column: 7; grid-row: 1; }
.n-19 { grid-column: 8; grid-row: 3; }
.n-20 { grid-column: 8; grid-row: 2; }
.n-21 { grid-column: 8; grid-row: 1; }
.n-22 { grid-column: 9; grid-row: 3; }
.n-23 { grid-column: 9; grid-row: 2; }
.n-24 { grid-column: 9; grid-row: 1; }
.n-25 { grid-column: 10; grid-row: 3; }
.n-26 { grid-column: 10; grid-row: 2; }
.n-27 { grid-column: 10; grid-row: 1; }
.n-28 { grid-column: 11; grid-row: 3; }
.n-29 { grid-column: 11; grid-row: 2; }
.n-30 { grid-column: 11; grid-row: 1; }
.n-31 { grid-column: 12; grid-row: 3; }
.n-32 { grid-column: 12; grid-row: 2; }
.n-33 { grid-column: 12; grid-row: 1; }
.n-34 { grid-column: 13; grid-row: 3; }
.n-35 { grid-column: 13; grid-row: 2; }
.n-36 { grid-column: 13; grid-row: 1; }
}
@media (max-width: 899px) {
.n-1 { grid-column: 1; grid-row: 2; }
.n-2 { grid-column: 2; grid-row: 2; }
.n-3 { grid-column: 3; grid-row: 2; }
.n-4 { grid-column: 1; grid-row: 3; }
.n-5 { grid-column: 2; grid-row: 3; }
.n-6 { grid-column: 3; grid-row: 3; }
.n-7 { grid-column: 1; grid-row: 4; }
.n-8 { grid-column: 2; grid-row: 4; }
.n-9 { grid-column: 3; grid-row: 4; }
.n-10 { grid-column: 1; grid-row: 5; }
.n-11 { grid-column: 2; grid-row: 5; }
.n-12 { grid-column: 3; grid-row: 5; }
.n-13 { grid-column: 1; grid-row: 6; }
.n-14 { grid-column: 2; grid-row: 6; }
.n-15 { grid-column: 3; grid-row: 6; }
.n-16 { grid-column: 1; grid-row: 7; }
.n-17 { grid-column: 2; grid-row: 7; }
.n-18 { grid-column: 3; grid-row: 7; }
.n-19 { grid-column: 1; grid-row: 8; }
.n-20 { grid-column: 2; grid-row: 8; }
.n-21 { grid-column: 3; grid-row: 8; }
.n-22 { grid-column: 1; grid-row: 9; }
.n-23 { grid-column: 2; grid-row: 9; }
.n-24 { grid-column: 3; grid-row: 9; }
.n-25 { grid-column: 1; grid-row: 10; }
.n-26 { grid-column: 2; grid-row: 10; }
.n-27 { grid-column: 3; grid-row: 10; }
.n-28 { grid-column: 1; grid-row: 11; }
.n-29 { grid-column: 2; grid-row: 11; }
.n-30 { grid-column: 3; grid-row: 11; }
.n-31 { grid-column: 1; grid-row: 12; }
.n-32 { grid-column: 2; grid-row: 12; }
.n-33 { grid-column: 3; grid-row: 12; }
.n-34 { grid-column: 1; grid-row: 13; }
.n-35 { grid-column: 2; grid-row: 13; }
.n-36 { grid-column: 3; grid-row: 13; }
}
