/* =============== Roulette: wheel (TV and phone) =============== */
.rl-wheel { --size: 300px; position: relative; width: var(--size); height: var(--size); margin: 0 auto; font-size: calc(var(--size) * 0.042); }
.rl-rotor {
  position: absolute; inset: 0; border-radius: 50%; border: calc(var(--size) * 0.03) solid #6b4422;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 215, 120, 0.6);
}
.rl-rotor span { position: absolute; inset: 0; pointer-events: none; }
.rl-rotor span b { display: block; text-align: center; margin-top: 2.5%; color: #fff; font-weight: 900; }
.rl-hub {
  position: absolute; inset: 17%; border-radius: 50%;
  background: radial-gradient(circle, #c9a34a 0 12%, #5a3a1c 13% 60%, #3b2512 61%);
  box-shadow: 0 0 0 3px rgba(255, 215, 120, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.6);
}
.rl-pointer {
  position: absolute; top: calc(var(--size) * -0.035); left: 50%; transform: translateX(-50%); width: 0; height: 0;
  border-left: calc(var(--size) * 0.04) solid transparent; border-right: calc(var(--size) * 0.04) solid transparent;
  border-top: calc(var(--size) * 0.07) solid var(--accent); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}
/* the ball: an arm turned to the ball's angle round the wheel, with the ball on it at its distance from the middle (JS) */
.rl-ballarm { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.rl-ball {
  position: absolute; top: 13.3%; left: 50%; width: calc(var(--size) * 0.05); height: calc(var(--size) * 0.05); transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #bbb); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.rl-pocket {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em; border-radius: 50%;
  color: #fff; font-weight: 900; border: 2px solid rgba(255, 255, 255, 0.35); padding: 0 2px;
}
.rl-pocket.big { font-size: 1.6em; vertical-align: middle; }
.rl-color { text-transform: capitalize; vertical-align: middle; }

/* =============== Roulette: TV =============== */
.rl-tv { display: flex; flex-direction: column; overflow: hidden; }
.rl-msg { text-align: center; font-size: 1.7vw; font-weight: 900; }
.rl-msg .sub { font-size: 1vw; color: var(--muted); font-weight: 700; margin-top: 0.5vh; }
.rl-msg .timer-bar { margin-top: 1vh; }
.rl-history { display: flex; gap: 0.35vw; flex-wrap: wrap; justify-content: center; font-size: 0.9vw; }
.rl-history .rl-pocket:first-child { outline: 3px solid var(--accent); }
.rl-board {
  display: grid; grid-template-columns: 1fr repeat(12, 1fr) 1.1fr; grid-template-rows: repeat(3, 1fr) 0.75fr 0.75fr; gap: 0.3vw;
  padding: 1.2vw; border-radius: 1.6vw; border: 0.8vw solid var(--rail); height: 52vh;
  background: radial-gradient(ellipse at 50% 40%, var(--felt-1), var(--felt-2) 85%); box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}
.rl-board .rl-cell {
  position: relative; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 0.4vw; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 900; color: #fff; font-size: 1.4vw; min-height: 0; overflow: hidden;
}
.rl-board .rl-cell.red { background: #b5302b; }
.rl-board .rl-cell.black { background: #1d1d1d; }
.rl-board .rl-cell.green { background: #1f8a4c; }
.rl-board .rl-cell.out { font-size: 1.1vw; letter-spacing: 0.1vw; }
.rl-board .diamond-red .lb { color: #e2463f; font-size: 2vw; }
.rl-board .diamond-black .lb { color: #111; font-size: 2vw; text-shadow: 0 0 2px #fff; }
.rl-board .rl-cell.win { box-shadow: 0 0 0 3px var(--accent), 0 0 22px rgba(245, 197, 66, 0.8); border-color: var(--accent); z-index: 1; }
.rl-board .dots { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.rl-dot {
  font-style: normal; font-size: 0.75vw; font-weight: 900; color: #111; background: var(--c, #ddd); border-radius: 999px; padding: 0 0.3vw;
  border: 1px dashed rgba(0, 0, 0, 0.5); line-height: 1.4;
}
.rl-dot.more { background: #fff; }

/* =============== Roulette: phone =============== */
.rl-phone.screen { padding: 12px 16px 8px; gap: 6px; }
.rl-hist { display: flex; gap: 4px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.rl-hist .muted { margin-right: 4px; font-weight: 700; }
.rl-hist .rl-pocket:nth-child(2) { outline: 2px solid var(--accent); }
.rl-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rl-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; min-height: 24px; }
.rl-line b { color: var(--accent); }
/* the decided multiplier, centered over the phone table (it never moves the row's other parts) */
.rl-line { position: relative; }
.rl-mult-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
  font-size: 16px; font-weight: 900; letter-spacing: 0.5px; color: #ffe08a; text-shadow: 0 0 8px rgba(245, 197, 66, 0.8); }
.rl-mult-tag.crash { color: #ff4d5e; text-shadow: 0 0 6px rgba(255, 77, 94, 0.6); }
.rl-felt {
  background: radial-gradient(ellipse at 50% 30%, var(--felt-1), var(--felt-2) 90%); border: 6px solid var(--rail);
  border-radius: 14px; padding: 6px; box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
}
.rl-table { display: grid; grid-template-columns: 0.9fr 0.9fr repeat(3, 1.25fr); grid-auto-rows: 27px; }
.rl-phone .rl-cell {
  position: relative; padding: 0; border-radius: 0; font-weight: 900; font-size: 15px; color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75); display: flex; align-items: center; justify-content: center; line-height: 1;
  min-width: 0; touch-action: manipulation;
}
/* so dragging your chips (or a new chip from the tray) doesn't pan the page and cancel the drag on a touch screen */
.rl-phone .rl-cell.has, .rl-phone .casino-chip[data-act="chip"] { touch-action: none; }
.rl-phone .rl-cell.red > span, .rl-phone .rl-cell.black > span {
  width: 26px; height: 21px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
.rl-phone .rl-cell.red > span { background: #c62f2b; }
.rl-phone .rl-cell.black > span { background: #151515; }
.rl-zrow { display: flex; }
.rl-phone .rl-cell.green { background: #1f8a4c; flex: 1; height: 30px; border-radius: 50% 50% 0 0 / 70% 70% 0 0; }
.rl-phone .rl-cell.out { font-size: 12px; letter-spacing: 0.5px; }
.rl-phone .rl-cell.side > span { writing-mode: vertical-rl; transform: rotate(180deg); }
.rl-phone .rl-cell.dia-red > span, .rl-phone .rl-cell.dia-black > span { writing-mode: horizontal-tb; transform: none; font-size: 30px; }
.rl-phone .rl-cell.dia-red > span { color: #e2463f; }
.rl-phone .rl-cell.dia-black > span { color: #111; text-shadow: 0 0 2px rgba(255, 255, 255, 0.8); }
.rl-phone .rl-cell.drop { background: rgba(245, 197, 66, 0.45); }
.rl-mychip {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 10px; font-weight: 900;
  min-width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 2px;
  background: var(--accent); color: #2a1e00; border: 2px dashed #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); pointer-events: none;
}
.rl-ghost {
  position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -130%); width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #2a1e00; border: 3px dashed #fff; font-weight: 900; font-size: 12px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}
.rl-ghost.off { background: var(--danger); color: #fff; }
.rl-hint { font-size: 12px; } /* Baccarat's tip line (Roulette has none now) */
.rl-phone .row3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.rl-phone .row3 button { padding: 15px 6px; font-size: 17px; }

/* ---------- Multiplier mini-game ---------- */
.rl-mult { text-align: center; font-weight: 900; }
.rl-mult .v { display: block; font-size: 44px; line-height: 1; color: #ffe08a; text-shadow: 0 0 12px rgba(245, 197, 66, 0.8); font-variant-numeric: tabular-nums; }
.rl-mult.big .v { font-size: 72px; }
.rl-tv .rl-mult .v { font-size: 3.4vw; }
.rl-tv .rl-mult.big .v { font-size: 6vw; }
.rl-mult small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.rl-tv .rl-mult small { font-size: 1vw; }
.rl-mult.climbing .v { animation: rl-throb 0.6s ease-in-out infinite; }
.rl-mult.crashed .v { color: #ff8f99; text-shadow: 0 0 12px rgba(215, 38, 61, 0.9); }
@keyframes rl-throb { 50% { transform: scale(1.06); } }
.rl-stop { font-size: 30px; font-weight: 900; padding: 30px; width: 100%; border-radius: 22px; letter-spacing: 2px;
  background: linear-gradient(180deg, #ffe08a, #f5c542); color: #2a1e00; box-shadow: 0 0 24px rgba(245, 197, 66, 0.6); }
.rl-gold { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.rl-gold .die { --s: 34px; }
.rl-tv .rl-gold .die { --s: 2.6vw; }
.rl-gold b { color: #ffe08a; }
.rl-gold-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; max-width: 260px; }
.rl-tv .rl-gold-list { max-width: 22vw; }
.rl-pocket.gold { box-shadow: 0 0 0 2px #f5c542, 0 0 8px rgba(245, 197, 66, 0.9); }
.rl-cell.gold { position: relative; }
.rl-rotor span.gold b { display: table; margin-left: auto; margin-right: auto; position: relative; padding: 0 0.15em; border: 2px solid #f5c542; border-radius: 0.3em; color: #ffe08a; box-shadow: 0 0 6px rgba(245, 197, 66, 0.9); }
.rl-rotor span.gold b::after { content: '\2726'; position: absolute; top: -0.75em; right: -0.55em; font-size: 0.7em; color: #fff6c8; text-shadow: 0 0 4px #f5c542; animation: rl-sparkle 1.2s ease-in-out infinite; }
@keyframes rl-sparkle { 0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }

/* ---------- Phone: the whole betting screen fits one screen (no scrolling), like Hold'em ---------- */
#rl.screen { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; gap: 5px; padding-top: 10px; }
#rl .rl-body { flex: 1 1 0; min-height: 0; gap: 5px; }
#rl .rl-line { min-height: 20px; font-size: 13px; }
#rl .rl-felt { flex: 1 1 0; min-height: 0; display: flex; padding: 4px; border-width: 5px; }
#rl .rl-table { flex: 1; min-height: 0; grid-template-rows: minmax(22px, 1.1fr) repeat(13, minmax(0, 1fr)); grid-auto-rows: unset; }
#rl .rl-zrow .rl-cell.green { height: auto; }
#rl .rl-cell { font-size: clamp(11px, 2.1vh, 15px); }
#rl .rl-cell.red > span, #rl .rl-cell.black > span { height: min(21px, 86%); width: min(26px, 86%); }
#rl .rl-cell.out { font-size: clamp(9px, 1.7vh, 12px); }
#rl .rl-cell.dia-red > span, #rl .rl-cell.dia-black > span { font-size: clamp(18px, 3.6vh, 30px); }
#rl .bj-actions-bar { position: static; padding: 2px 0 0; flex-shrink: 0; }
#rl .chip-tray { padding: 2px 0 6px; }
#rl .row3 button { padding: 12px 6px; }
@media (max-height: 700px) {
  #rl .casino-chip { width: 52px; height: 52px; }
  #rl .casino-chip span { inset: 7px; font-size: 15px; }
}

/* ---------- My bet layouts (saved on this phone) ---------- */
.rl-lay-btn { padding: 3px 10px; font-size: 12px; font-weight: 800; border-radius: 999px; background: var(--panel); color: var(--accent); border: 1px solid rgba(245, 197, 66, 0.5); }
.rl-layouts { display: flex; flex-direction: column; gap: 8px; }
.rl-layouts > button.ok { padding: 12px; font-size: 16px; }
.rl-lay { display: flex; align-items: center; gap: 10px; background: var(--input); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.rl-lay span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rl-lay small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-lay em { font-style: normal; font-weight: 900; color: #2a1e00; background: var(--accent); border-radius: 999px; padding: 5px 12px; }
.rl-lay-del { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--text); flex-shrink: 0; }
/* Phase 5 steady layouts: the "Last spins" row always takes the same single line (empty before the first spin) */
.rl-hist { flex-wrap: nowrap; overflow: hidden; height: 24px; min-height: 24px; flex-shrink: 0; }

/* ---------- Phase 5: spin and mini game over the betting table ---------- */
.rl-phone { position: relative; }
#rlWheelBox { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 35; pointer-events: none; transition: opacity 0.6s; }
#rlWheelBox .rl-wheel { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7)); }
#rlWheelBox.fade { opacity: 0; }
/* the launch step: the wheel waits small and still near the top of the felt (tester note #22) */
.rl-felt.frozen .rl-cell { pointer-events: none; }
.rl-cell.mine-hl { box-shadow: inset 0 0 0 2px rgba(255, 224, 138, 0.85); filter: brightness(1.25); }
/* a gold number keeps its own color inside: the tile just lights up with a bold gold border and a glow (TV rules below) */
/* the gold ring is drawn on top of the tile (::after) so its inside corners can be rounded (an inset shadow's can't) */
.rl-cell.gold::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: var(--gw) solid #f5c542; border-radius: calc(var(--gw) + var(--gr));
  box-shadow: 0 0 0 1px #ffe9a0, 0 0 var(--gg) rgba(245, 197, 66, 0.85); }
.rl-phone .rl-cell.gold { --gw: 3px; --gr: 5px; --gg: 10px; border-color: transparent; border-radius: 8px; box-shadow: none; z-index: 2; }
.rl-cell.gold-pop { animation: rl-gold-pop 0.5s ease; }
@keyframes rl-gold-pop { 40% { transform: scale(1.25); box-shadow: 0 0 18px rgba(255, 224, 138, 0.95); } }
.rl-cell.hit { box-shadow: inset 0 0 0 3px #fff; z-index: 2; }
.rl-dolly { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9c9c9 60%, #7d7d7d); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); animation: rl-dolly-in 0.7s ease-out; z-index: 3; }
@keyframes rl-dolly-in { from { transform: translateY(-40px) scale(1.6); opacity: 0; } }
.rl-cell { position: relative; }
#rlFx { position: absolute; z-index: 30; pointer-events: none; }
#rlFx .rl-fx-mult { position: absolute; left: 0; right: 0; top: 30%; transform: translateY(-50%); background: rgba(8, 12, 10, 0.75); padding: 8px 0; border-radius: 14px; }
.rl-star { position: fixed; z-index: 9000; pointer-events: none; color: #ffe08a; font-size: 22px; text-shadow: 0 0 10px #f5c542, 0 0 22px #f5c542; }
.rl-lay-btn.ghost { visibility: hidden; }
.rl-bar-alt .rl-stop, .cr-bar-over .rl-stop { width: 100%; height: 100%; margin: 0; }
/* the ball launch strip (the launcher's phone, in place of the action bar) */
.rl-launch { position: relative; width: 100%; height: 100%; border-radius: 22px; touch-action: none; user-select: none; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(90deg, #3a2a08, #f5c542 50%, #3a2a08); color: #2a1e00; box-shadow: 0 0 24px rgba(245, 197, 66, 0.6); }
.rl-launch b { font-size: 22px; font-weight: 900; letter-spacing: 1px; position: relative; z-index: 1; }
.rl-launch small { font-size: 13px; font-weight: 700; opacity: 0.75; position: relative; z-index: 1; }
.rl-launch-ball { position: absolute; left: calc(50% - 13px); top: calc(50% - 13px); width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d8d8d8 60%, #9a9a9a); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); opacity: 0.55; }
.rl-launch.held .rl-launch-ball { opacity: 1; }
.rl-launch.gone { visibility: hidden; }
/* the gold-dice throw (the stopper's phone): the dice wait on the felt to grab and swipe, like Craps (tester note #23) */
#rlFx .rl-grab { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); display: flex; gap: 10px; padding: 14px;
  pointer-events: auto; touch-action: none; cursor: grab; border-radius: 16px; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.6);
  animation: cr-grab-pulse 1.4s ease-in-out infinite; z-index: 2; }
#rlFx .rl-grab .die { --s: 44px; }
#rlFx .rl-grab.held { animation: none; cursor: grabbing; box-shadow: 0 0 0 3px var(--accent); }
.reduce-motion #rlFx .rl-grab { animation-duration: 0.01s !important; }
.rl-throw-note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; width: 100%; text-align: center; }
.rl-throw-note b { font-size: 16px; color: var(--accent); }
.rl-throw-note small { font-size: 12px; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* TV results board: last 15 + hot / cold (one line each, fixed height) */
.rl-tv .rl-history, #rlHistory { display: flex; flex-direction: column; gap: 0.6vh; align-items: center; }
.rl-hist-row { display: flex; gap: 0.35vw; justify-content: center; flex-wrap: nowrap; height: 2.2vw; }
.rl-hist-row .rl-pocket:first-child { outline: 3px solid var(--accent); }
.rl-hotcold { display: flex; gap: 0.35vw; align-items: center; font-size: 0.9vw; height: 2.2vw; color: var(--muted); font-weight: 800; }
.rl-hotcold span { margin: 0 0.3vw 0 0.8vw; }
.rl-hotcold small { font-size: 0.8vw; color: var(--muted); }

/* ---------- Line bets: splits, streets, corners, six lines (phone) ---------- */
#rl .rl-table { position: relative; }
/* a chip sitting on a line: centred on the shared edge (split / corner), or on the outer edge of the row (street / six line) */
.rl-phone .rl-cell.rl-linebet { place-self: center; width: 24px; height: 24px; border: 0; background: transparent; z-index: 5; padding: 0; }
.rl-phone .rl-cell.rl-linebet.street, .rl-phone .rl-cell.rl-linebet.sixline { justify-self: start; transform: translateX(-50%); }
.rl-phone .rl-cell.rl-linebet .rl-mychip { border-color: #2a1e00; background: #ffe08a; }
/* the drop squares while a dragged chip is held still */
/* the bet ring (Phase 8 item 21): big round buttons around a number, the covered numbers lit, the bet named at the top */
.rl-ring { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.rl-ring-btn { position: fixed; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 15px; color: #fff; background: rgba(10, 14, 12, 0.82); border: 2px solid rgba(245, 197, 66, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.rl-ring-btn.middle { background: rgba(245, 197, 66, 0.25); }
.rl-ring-btn.on { background: var(--accent); color: #2a1e00; border-color: #fff; transform: scale(1.12); }
.rl-ring-label { position: fixed; transform: translateX(-50%); white-space: nowrap; background: rgba(10, 14, 12, 0.9); color: #fff; font-weight: 900;
  font-size: 15px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--accent); }
#rlBody .rl-cell.ring-cover { box-shadow: inset 0 0 0 3px var(--accent); background-color: rgba(245, 197, 66, 0.35); }
/* a chip on a line keeps its look but is easier to hold: an invisible ~40px touch area */
#rlBody .rl-linebet { position: relative; }
#rlBody .rl-linebet::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.rl-ghost.fresh { background: #ffe08a; }

/* ---------- Mini game: banners and the dice total over the phone board ---------- */
.chipfx-banner.crash b { color: #ff8f99; font-size: 30px; }
.chipfx-banner.gold-pay b { color: #ffe08a; font-size: 30px; }
.chipfx-banner.crash, .chipfx-banner.gold-pay { background: rgba(8, 12, 10, 0.85); padding: 12px 18px; border-radius: 14px; }
/* the "Stopped at" banner at STOP sits high, clear of the gold dice waiting on the felt */
.chipfx-banner.rl-top { top: 26%; }
.rl-dice-total { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 32; text-align: center; pointer-events: none;
  background: rgba(8, 12, 10, 0.75); padding: 6px 16px; border-radius: 12px; animation: rl-total-in 0.3s ease-out; }
.rl-dice-total b { display: block; font-size: 40px; line-height: 1; color: #ffe08a; text-shadow: 0 0 10px rgba(245, 197, 66, 0.8); }
.rl-dice-total small { font-size: 12px; font-weight: 800; color: #fff; }
@keyframes rl-total-in { from { transform: translateX(-50%) scale(0.6); opacity: 0; } }
html.reduce-motion .rl-dice-total { animation: none; }

/* ---------- Spin history on the phone: a fixed strip and the History sheet ---------- */
/* the emote bubble sits a little higher here, so it doesn't cover the history strip (Roulette only for now) */
#rl .react-btn.react-side { top: 48px; }
#rlHist { cursor: pointer; }
#rlHist .rl-pocket { min-width: 24px; height: 22px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rl-hist-more { margin-left: 2px; font-size: 14px; flex-shrink: 0; }
.rl-hist-sheet { display: flex; flex-direction: column; gap: 10px; }
/* a spin with its multiplier under it (Phase 8 item 20) */
.rl-hist-item { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; }
.rl-hm { font-size: 10px; font-weight: 900; color: var(--accent); line-height: 1; }
.rl-hm.crash { color: #ff4d5e; }
.rl-hist-row .rl-hm { font-size: 0.75vw; }
.rl-hist-row:has(.rl-hist-item) { height: auto; align-items: flex-start; }
.rl-hist-row .rl-hist-item:first-child .rl-pocket { outline: 3px solid var(--accent); }
.rl-hist-all { display: flex; flex-wrap: wrap; gap: 4px; }
.rl-hist-all .rl-pocket { min-width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.rl-hist-all .rl-pocket:first-child { outline: 2px solid var(--accent); }
.rl-stat { display: grid; grid-template-columns: 74px 1fr 74px; gap: 8px; align-items: center; font-size: 13px; }
.rl-stat span:last-child { text-align: right; }
.rl-bar { height: 10px; border-radius: 999px; background: #1b1b1b; border: 1px solid var(--line); overflow: hidden; }
.rl-bar i { display: block; height: 100%; background: #c62f2b; }
.rl-stat3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 13px; text-align: center; }
.rl-stat3 span { background: var(--input); border-radius: 8px; padding: 6px 2px; }
.rl-stat b { color: var(--accent); }
.rl-stat3 b { color: var(--accent); display: block; font-size: 16px; }
.rl-hotcold-ph { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.rl-hotcold-ph span { width: 64px; }

/* ---------- TV: line bets on the board, the dice while they roll ---------- */
.rl-board { position: relative; }
.rl-board .rl-linedots { place-self: center; z-index: 3; display: flex; gap: 2px; pointer-events: none; }
.rl-board .rl-linedots.street, .rl-board .rl-linedots.sixline { align-self: end; transform: translateY(60%); }
.rl-board .rl-linedots .rl-dot { border-style: solid; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.rl-gold-dice.rolling .die { animation: rl-die-tumble 0.35s linear infinite; }
@keyframes rl-die-tumble { 25% { transform: rotate(18deg) translateY(-6px); } 75% { transform: rotate(-18deg) translateY(4px); } }
html.reduce-motion .rl-gold-dice.rolling .die { animation: none; }
.rl-board .rl-cell.gold-pop { animation: rl-gold-pop 0.5s ease; }

/* ---------- TV: the house frame (tv-frame.js). The felt: the wheel in its top right corner, the game's name printed top
   left (the gold multiplier game shows under it while it runs), the betting board along the bottom. ---------- */
.rl-felt-tv { position: relative; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; padding: 1.2vw;
  border-radius: 2vw; border: 1vw solid var(--rail); background: radial-gradient(ellipse at 40% 25%, var(--felt-1), var(--felt-2) 85%);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5); }
.rl-tv .hf-felt-name { top: 6%; right: 22vw; --hf-name: 3.6vw; }
#rlWheel { position: absolute; top: 1.2vw; right: 1.6vw; z-index: 2; }
#rlWheel .rl-wheel { --size: min(19vw, 37vh); }
.rl-mini { position: absolute; top: 19%; left: 0; right: 22vw; display: none; flex-direction: column; align-items: center; z-index: 2; }
.rl-mini.on { display: flex; }
/* the TV's shooting stars, sized for the TV */
.rl-star.rl-tv-star { font-size: 2.6vw; }
/* while a banner shows under the printed name, the mini-game fades out of its way (the banner says the same thing) */
.rl-mini { transition: opacity 0.3s; }
body:has(.announce.hf-snug) .rl-mini { opacity: 0; }
.rl-tv .rl-board { margin-top: auto; height: 56%; border: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; z-index: 1; }
/* the winning pocket next to its name in the status box */
.rl-tv .hf-status .t { display: flex; align-items: center; justify-content: center; gap: 0.8vw; }
.rl-tv .hf-status .rl-pocket.big { font-size: 1.5vw; min-width: 2.6vw; height: 2.6vw; display: inline-flex; align-items: center; justify-content: center; }
/* the last numbers and hot / cold, in the side panel's extra */
.rl-tv .hf-extra .rl-hist-row { justify-content: flex-start; flex-wrap: wrap; height: auto; padding: 3px; overflow: hidden; max-height: 5.2vw; }
.rl-tv .hf-extra .rl-hotcold { margin-top: 1vh; flex-wrap: wrap; height: auto; }
.rl-tv .hf-extra .rl-hotcold span:first-child { margin-left: 0; }
/* TV: a gold number keeps its own color inside; the tile lights up with a bold gold border and a glow */
.rl-board .rl-cell.gold { --gw: 0.4vw; --gr: 0.5vw; --gg: 1.4vw; border-color: transparent; border-radius: 0.9vw; box-shadow: none; overflow: visible; z-index: 2; }

/* ---------- The phone's wheel: it fills the felt from the launch until it lands (roulette-phone.js rlPlaceWheel). The
   launcher drags the ball round its rim (.grab), so then it takes the finger. ---------- */
#rlWheelBox { left: 0; top: 0; transform: none; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 18, 10, 0.55); border-radius: 12px; }
#rlWheelBox .rl-wheel { --size: inherit; margin: 0; }
#rlWheelBox.grab { pointer-events: auto; touch-action: none; cursor: grab; }
#rlWheelBox.grab .rl-ball { box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.9), 0 0 12px rgba(245, 197, 66, 0.9); animation: rl-ball-ready 1.2s ease-in-out infinite; }
@keyframes rl-ball-ready { 50% { box-shadow: 0 0 0 5px rgba(245, 197, 66, 0.5), 0 0 18px rgba(245, 197, 66, 1); } }
.reduce-motion #rlWheelBox.grab .rl-ball { animation: none; }
.rl-launch { touch-action: auto; }

/* ---------- The gold dice (multiplier mini-game): gold faces, dark pips, on the phone and the TV ---------- */
.die.gold { background: linear-gradient(145deg, #fff1b8, #f5c542 45%, #c9921a); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 -3px 0 rgba(120, 70, 0, 0.35), 0 0 12px rgba(245, 197, 66, 0.55); }
.die.gold i { background: #3a2400; }
/* the Throw button under the board (the stopper's phone; the dice on the table can still be grabbed and swiped) */
.rl-throw-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.1; }
.rl-throw-btn small { font-size: 11px; font-weight: 700; opacity: 0.8; letter-spacing: 0; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* the TV: the gold dice thrown across the felt */
#rlTvFx { position: absolute; inset: 0; pointer-events: none; z-index: 25; }
#rlTvFx .chipfx-die .die { width: 4vw; height: 4vw; }
.rl-tv .rl-gold-dice.rolling { opacity: 0; }
.cr-bar-over .rl-stop.rl-throw-btn { font-size: 20px; padding: 6px 10px; letter-spacing: 1px; }
