/* fraunces-latin-600-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fraunces-latin-600-normal-BFCDtZfi.woff2) format('woff2'), url(./fraunces-latin-600-normal-DL5QCzvS.woff) format('woff');
}/* fraunces-latin-800-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(./fraunces-latin-800-normal-5RM8DebB.woff2) format('woff2'), url(./fraunces-latin-800-normal-B3oGScaA.woff) format('woff');
}/* _cardkit/wallet.css — the native card games' wallet pill, ledger, Practice toggle and volume button.
   Values from the native StyleSheets (Blackjack.tsx walletContainer/walletBalance ×1.15,
   SolitaireWorking.tsx practiceModeIndicator / practiceButton). Import after the shell CSS. */
.ck-wallet {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  height: 34px; padding: 0 12px; border-radius: 18px; cursor: pointer; pointer-events: auto;
  background: rgba(124, 82, 251, 0.2); border: 1.15px solid #7C52FB;
  box-shadow: 0 4px 6px rgba(124, 82, 251, 0.3);
  color: #fff; font: 700 16px/1 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
.ck-wallet:active { transform: scale(0.96); }
/* TOUCH TARGET ≥ 44 px (Apple HIG; mobile-controls audit 2026-10-22). The pill keeps the native
   34 px look; this invisible layer widens what the finger can hit to 44 px tall (34 + 2 × 5) and
   4 px wider, without moving the HUD rows. _cardkit/test/touch-targets.test.mjs reads these numbers. */
.ck-wallet::before { content: ''; position: absolute; top: -5px; bottom: -5px; left: -2px; right: -2px; }
/* the volume button: the shell already gives every HUD button min 44×44 (#sh-hud .sh-btn in
   arcade-shell.css); restated here so the card games do not depend on that rule staying put */
#sh-hud .ck-volume { min-width: 44px; min-height: 44px; }
.ck-wallet__icon { display: inline-flex; }
.ck-wallet__bal { white-space: nowrap; }
.ck-wallet.is-practice { background: rgba(255, 165, 0, 0.2); border-color: #FFA500; box-shadow: none; }
.ck-wallet.is-practice .ck-wallet__bal { color: #FFA500; font-size: 13px; letter-spacing: 0.5px; }
/* a spend/award in flight: a small pulsing dot (the number does not move until the host answers) */
.ck-wallet__dot { display: none; width: 6px; height: 6px; border-radius: 3px; background: #FFD700; animation: ck-pulse 0.9s ease-in-out infinite; }
.ck-wallet.is-pending .ck-wallet__dot { display: inline-block; }
@keyframes ck-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.ck-wallet.is-failed { border-color: #EF4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5); }
/* the floating delta: −10 red, +20 green, PUSH neutral, LOST dark red, FAILED */
.ck-wallet__delta {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 0); opacity: 0;
  pointer-events: none; white-space: nowrap; font-size: 15px; font-weight: 800;
}
.ck-wallet__delta.show { animation: ck-float 1.5s ease-out forwards; }
.ck-wallet__delta.is-debit { color: #FF5A5A; }
.ck-wallet__delta.is-win { color: #22C55E; }
.ck-wallet__delta.is-push { color: #E5E7EB; }
.ck-wallet__delta.is-lost { color: #F87171; }
.ck-wallet__delta.is-failed { color: #FCA5A5; }
@keyframes ck-float {
  0% { opacity: 0; transform: translate(-50%, -4px); }
  15% { opacity: 1; transform: translate(-50%, 4px); }
  75% { opacity: 1; transform: translate(-50%, 14px); }
  100% { opacity: 0; transform: translate(-50%, 22px); }
}

/* the session ledger (tap the chip) */
.ck-ledger {
  position: fixed; z-index: 2147482000; max-height: 50vh; overflow: auto; padding: 10px 12px;
  border-radius: 16px; background: rgba(11, 11, 15, 0.94); border: 1px solid #7C52FB;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); color: #fff; pointer-events: auto;
  font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.ck-ledger[hidden] { display: none; }
.ck-ledger__head { display: flex; justify-content: space-between; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.15); font-weight: 800; letter-spacing: 0.5px; }
.ck-ledger__list { list-style: none; margin: 0; padding: 0; }
.ck-ledger__row { display: grid; grid-template-columns: 42px 1fr auto 52px; gap: 6px; padding: 4px 0; align-items: baseline; font-variant-numeric: tabular-nums; }
.ck-ledger__row .t { opacity: 0.6; font-size: 11px; }
.ck-ledger__row .w i { font-style: normal; font-size: 10px; color: #FFA500; }
.ck-ledger__row .a { font-weight: 800; text-align: right; }
.ck-ledger__row .b { opacity: 0.75; text-align: right; }
.ck-ledger__row.is-debit .a { color: #FF5A5A; }
.ck-ledger__row.is-win .a { color: #22C55E; }
.ck-ledger__row.is-push .a { color: #E5E7EB; }
.ck-ledger__row.is-lost .a { color: #F87171; }
.ck-ledger__empty { opacity: 0.7; padding: 6px 0; }

/* the Practice toggle (native practiceButton, and the orange Relax Mode badge when on) */
.ck-mode {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px; padding: 0 6px; cursor: pointer; pointer-events: auto; color: #fff;
  background: rgba(124, 82, 251, 0.3); border: 2px solid #7C52FB;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.05;
  -webkit-tap-highlight-color: transparent;
}
.ck-mode span { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ck-mode b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.ck-mode small { font-size: 9.5px; font-weight: 600; color: #CCCCCC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ck-mode.is-practice { background: rgba(255, 165, 0, 0.2); border-color: #FFA500; }
.ck-mode.is-practice b { color: #FFA500; }
.ck-mode.is-locked { opacity: 0.55; }
.ck-mode:active { transform: scale(0.96); }

/* the shell's mute toggle is replaced by the shared volume slider (_shell/arcade-volume.js) */
#sh-vol { display: none !important; }
/* Roulette — a private-salon table INSIDE THE 9:16 FRAME (owner: "the full viewport is 9x16"). Deep green felt,
   mahogany, brass, cream. Every element is positioned inside #game-root; frame.mjs decides where. */
:root { --felt: #0f4a30; --felt-d: #0a3322; --brass: #d4a94a; --cream: #fbf1dc; --red: #b3121c; --ink: #0c0a10; --display: 'Fraunces', Georgia, serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #07060a; touch-action: none; -webkit-user-select: none; user-select: none; }
/* THE FRAME: the largest 9:16 box that fits, centred (Red Light Green Light's #game-root). */
#game-root { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100vw, calc(100vh * 9 / 16)); height: min(100vh, calc(100vw * 16 / 9)); overflow: hidden; background: var(--ink); }
@supports (height: 100dvh) { #game-root { width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); } }
#game-root > * { position: absolute; }
.rl-canvas { inset: 0; width: 100% !important; height: 100% !important; display: block; }
/* While the ball is in play the wheel takes the whole frame (the camera glides in, scene.mjs): everything else steps aside. */
.rl-board, .rl-bar, .rl-history, .rl-timer, .rl-betline, .rl-seats { transition: opacity .45s ease, transform .45s ease; }
#game-root.rl-spinning .rl-board, #game-root.rl-spinning .rl-history, #game-root.rl-spinning .rl-timer,
#game-root.rl-spinning .rl-betline, #game-root.rl-spinning .rl-seats { opacity: 0; pointer-events: none; }
#game-root.rl-spinning .rl-bar { opacity: 0; transform: translateY(24px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .rl-board, .rl-bar, .rl-history, .rl-timer, .rl-betline, .rl-seats { transition: none; } }
.is-hidden { display: none !important; }

/* the house row: exit top-left and pause + volume top-right are mounted by _shell/arcade-hud.js into .rl-chrome */
.rl-chrome { inset: 0; pointer-events: none; z-index: 50; }
.rl-chrome > * { pointer-events: auto; }
.rl-wallet { position: absolute; top: calc(var(--fsat, 0px) + 8px); left: 50%; transform: translateX(-50%); height: 40px; display: flex; align-items: center; }

/* the layout: 5 columns × 14 rows (board.mjs), sized by frame.mjs; text scales with the row height */
.rl-board { z-index: 4; border: 2px solid var(--brass); border-radius: 10px; background: linear-gradient(180deg, var(--felt), var(--felt-d)); box-shadow: 0 8px 24px rgba(0,0,0,.55); --row: 22px; }
.rl-grid, .rl-chips { position: absolute; inset: 0; }
.rl-chips { pointer-events: none; }
.rl-grid .cell { position: absolute; border: 1px solid rgba(251, 241, 220, 0.5); display: flex; align-items: center; justify-content: center; color: var(--cream); font: 700 clamp(10px, calc(var(--row) * 0.58), 16px)/1 var(--display); }
.rl-grid .cell.num span { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: calc(var(--row) * 0.78); border-radius: 0.8em; }
.rl-grid .cell.num.red span { background: var(--red); }
.rl-grid .cell.num.black span { background: #121212; }
.rl-grid .cell.out-zero { background: #0d7a3e; border-radius: 30px 30px 0 0; }
.rl-grid .cell.out-red { background: rgba(179, 18, 28, 0.85); }
.rl-grid .cell.out-black { background: rgba(10, 10, 10, 0.85); }
.rl-grid .cell.out-dozen span, .rl-grid .cell.out-low span, .rl-grid .cell.out-high span, .rl-grid .cell.out-odd span,
.rl-grid .cell.out-even span, .rl-grid .cell.out-red span, .rl-grid .cell.out-black span {
  writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(10px, calc(var(--row) * 0.52), 14px); letter-spacing: 1.5px; }
.rl-grid .cell.out-column { font-size: clamp(9px, calc(var(--row) * 0.48), 13px); }
.rl-grid .cell.hit { box-shadow: inset 0 0 0 3px #ffe2a0, 0 0 16px #ffe2a0; z-index: 2; }
.rl-chips .chip { position: absolute; transform: translate(-50%, -50%); width: clamp(18px, calc(var(--row) * 1.05), 28px); height: clamp(18px, calc(var(--row) * 1.05), 28px); border-radius: 50%;
  background: var(--c); border: 2px dashed rgba(255,255,255,.9); box-shadow: 0 2px 4px rgba(0,0,0,.6); color: #fff; font: 800 9px/1 var(--display);
  display: flex; align-items: center; justify-content: center; transition: opacity .4s, transform .4s; }
.rl-chips .chip.lost { opacity: 0; transform: translate(-50%, -160%); }
.rl-chips .chip.won { box-shadow: 0 0 0 3px #ffe2a0, 0 0 14px #ffe2a0; }
.rl-chips .chip em { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); font: 800 11px/1 var(--display); color: #ffe2a0; font-style: normal; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.rl-chips .mark { position: absolute; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0,0,0,.6); }

/* what you just bet on, and what it pays */
.rl-betline { left: 50%; transform: translateX(-50%); z-index: 6; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--cream); background: rgba(12,10,16,.85); border: 1px solid var(--brass); border-radius: 999px; padding: 5px 12px; font: 700 12px/1.2 var(--display); }

/* the bar: chips + Spin/Lock on one row, Undo · Clear · Rebet · ×2 under it, above the safe-area bottom */
.rl-bar { left: 0; right: 0; z-index: 7; padding: 6px 8px calc(var(--fsab, 0px) + 8px); display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(12,10,16,.55), rgba(12,10,16,.95)); border-top: 1px solid rgba(212,169,74,.35); }
.rl-bar .row1 { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 44px; }
.rl-bar .chips { display: flex; gap: 5px; }
.rl-chipbtn { width: 38px; height: 38px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.9); background: var(--c); color: #fff; font: 800 12px/1 var(--display); box-shadow: 0 2px 0 rgba(0,0,0,.5); padding: 0; }
.rl-chipbtn.on { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--brass), 0 5px 10px rgba(0,0,0,.5); }
.rl-bar .acts { display: flex; gap: 6px; height: 38px; }
.rl-bar .acts .rl-btn { flex: 1; }
.rl-btn { appearance: none; border: 0; border-radius: 12px; padding: 6px 10px; min-height: 38px; font: 800 13px/1.05 var(--display); color: var(--cream);
  background: linear-gradient(180deg, #c99436, #8e641f); box-shadow: 0 3px 0 #5d3f10; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.rl-btn small { font: 600 9px/1 var(--display); opacity: .85; }
.rl-btn.primary { min-width: 96px; height: 44px; background: linear-gradient(180deg, #c3202b, #84101a); box-shadow: 0 3px 0 #4e0a10; }
.rl-btn.ghost { background: linear-gradient(180deg, #1d6b45, #0f4a30); box-shadow: 0 3px 0 #082a1b; }
.rl-btn.side { background: rgba(251,241,220,.1); border: 1px solid rgba(212,169,74,.6); box-shadow: none; }
.rl-btn:disabled { opacity: .4; }

/* beside the wheel: the last numbers (newest on top) */
.rl-history { right: 10px; z-index: 5; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.rl-history span { width: 26px; height: 20px; border-radius: 6px; color: #fff; font: 800 11px/20px var(--display); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rl-history .red { background: var(--red); } .rl-history .black { background: #161616; } .rl-history .green { background: #0d7a3e; }
.rl-history span:first-child { outline: 2px solid var(--brass); }
.rl-timer { left: 50%; transform: translateX(-50%); z-index: 6; color: var(--cream); background: rgba(12,10,16,.8); border: 1px solid var(--brass); border-radius: 999px; padding: 5px 12px; font: 700 12px/1 var(--display); white-space: nowrap; }
.rl-seats { left: 8px; right: 8px; z-index: 6; display: flex; gap: 4px; justify-content: center; flex-wrap: nowrap; overflow: hidden; height: 28px; }
.rl-seats .seat { flex: 0 1 auto; min-width: 0; overflow: hidden; display: flex; gap: 4px; align-items: center; padding: 3px 6px; border-radius: 10px; background: rgba(12,10,16,.75); border: 2px solid var(--c); color: var(--cream); font: 600 10px/1 var(--display); white-space: nowrap; }
.rl-seats .seat b { min-width: 0; overflow: hidden; text-overflow: ellipsis; max-width: 9ch; }
.rl-seats .seat.me { box-shadow: 0 0 8px var(--c); }
.rl-seats .seat.away { opacity: .5; }
.rl-seats .seat i { font-style: normal; color: #ffe2a0; }

/* the menu fills the frame, under the house row */
.rl-panel { inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: calc(var(--fsat, 0px) + 64px) 16px calc(var(--fsab, 0px) + 16px); background: rgba(7,6,10,.55); }
.rl-panel .box { width: 100%; max-width: 380px; background: linear-gradient(180deg, #14553a, #0a3322); border: 2px solid var(--brass); border-radius: 20px; padding: 18px 16px; color: var(--cream); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.rl-panel h2 { margin: 0; font: 800 30px/1 var(--display); color: #f6d886; }
.rl-panel .rule { margin: 0; font: 500 13px/1.35 var(--display); opacity: .9; }
.rl-panel .payouts { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; font: 600 12px/1.3 var(--display); opacity: .92; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.25); }
.rl-panel .payouts b { color: #ffe2a0; text-align: right; }
.rl-panel .rl-btn { min-height: 48px; }
/* the main menu: 80% of the frame each way, over the table (owner 2026-10-30) */
.rl-panel:has(.menu) { padding: 0; background: rgba(7,6,10,.35); }
.rl-panel .box.menu { width: 80%; max-width: none; height: 80%; box-sizing: border-box; justify-content: center; gap: 16px; overflow-y: auto; }
.rl-panel .box.menu h2 { font-size: clamp(30px, 6vh, 52px); }
.rl-panel .menu-btns { display: flex; flex-direction: column; gap: 14px; }
.rl-panel .menu-btns .rl-btn { min-height: clamp(56px, 9vh, 84px); font-size: clamp(16px, 2.4vh, 22px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.rl-panel .menu-btns .rl-btn small { font-size: clamp(10px, 1.4vh, 13px); }
/* the main menu card is the poster (9:16 like the card): title in the art, buttons over a dark fade at its foot */
.rl-panel .box.menu.home { justify-content: flex-end; padding: 0 16px 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(7,6,10,0) 42%, rgba(7,6,10,.82) 72%, rgba(7,6,10,.94) 100%), url('poster.webp') center top / cover no-repeat, #0a3322; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rl-chipbtn:disabled { opacity: .35; filter: grayscale(.6); }

.rl-banner { left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.9); z-index: 20; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; width: max-content; max-width: calc(100% - 32px);
  background: rgba(12,10,16,.92); border: 2px solid var(--brass); border-radius: 18px; padding: 12px 18px; color: var(--cream); text-align: center; }
.rl-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.rl-banner .t { font: 800 42px/1 var(--display); }
.rl-banner.n-red .t { color: #ff4b55; } .rl-banner.n-black .t { color: var(--cream); } .rl-banner.n-green .t { color: #3fe08a; }
.rl-banner .s { margin-top: 6px; font: 600 13px/1.3 var(--display); }
.rl-banner .rows { margin-top: 8px; display: grid; gap: 3px; }
.rl-banner .r { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; font: 600 12px/1.2 var(--display); }
.rl-banner .r.me { color: #ffe2a0; }
.rl-toast { left: 50%; top: calc(var(--fsat, 0px) + 60px); transform: translateX(-50%); z-index: 40; background: rgba(12,10,16,.92); color: var(--cream); border: 1px solid var(--brass); border-radius: 12px; padding: 8px 14px;
  font: 600 13px/1.25 var(--display); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); text-align: center; }
.rl-toast.show { opacity: 1; }
