/* 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');
}/* apps/arcade/_shell/arcade-shell.css
   Glassmorphism menu shell + Shortee brand tokens for reskinned arcade games. */
:root {
  --brand-pink: #FF3D8E;
  --brand-violet: #7C3AED;
  --brand-gold: #F5A623;
  --brand-cyan: #00C6FF;
  --bg: #08080E;
  --card: #191928;
  --text: #F0F0FA;
  --brand-grad: linear-gradient(135deg, #7C3AED, #FF3D8E);
  --gold-grad: linear-gradient(135deg, #C47F10, #FFD166);
}

.arcade-shell__overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 14, 0.55);
  z-index: 9999;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* Game-over overlay: drop the panel BELOW the HUD (safe-area + top bar + score chips) and
   dim harder than the menu scrim so the game's own game-over layout behind it reads as a
   single darkened backdrop, not a competing second game-over screen. */
.arcade-shell__overlay--gameover {
  place-items: start center;
  padding-top: calc(var(--sat, 0px) + 132px);
  background: rgba(8, 8, 14, 0.93);
}

.arcade-shell__panel--glass {
  background: rgba(25, 25, 40, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid transparent;
  border-radius: 22px;
  padding: 32px 28px;
  /* 75% of the screen, on every phone (owner 2026-10-24: "all menu screens … 75% of the screen").
     Games restyle the panel but must not set its width — this is the one home for it. */
  box-sizing: border-box;
  width: 75vw;
  min-width: 0;
  max-width: 75vw;
  text-align: center;
  background-image: linear-gradient(rgba(25, 25, 40, 0.6), rgba(25, 25, 40, 0.6)), var(--brand-grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 12px 48px rgba(124, 58, 237, 0.35);
  color: var(--text);
  /* Long How-to-Play lists must scroll inside the panel instead of being clipped at 390×844. */
  max-height: calc(100dvh - var(--sat, 0px) - var(--sab, 0px) - 160px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* HUD buttons (exit, sound) are touch targets: never smaller than 44px, whatever a game's skin sets. */
#sh-hud .sh-btn {
  min-width: 44px;
  min-height: 44px;
}

/* Leave room for the arcade back button that nonc2-chrome mounts at the top-left. */
#sh-hud .sh-topbar {
  padding-left: calc(var(--sal, 0px) + 60px);
}

.arcade-shell__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 6px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arcade-shell__subtitle {
  opacity: 0.85;
  margin: 0 0 22px;
  font-size: 1rem;
}

.arcade-shell__btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  background: var(--brand-grad);
  box-shadow: 0 6px 20px rgba(255, 61, 142, 0.35);
  transition: transform 0.12s;
}

.arcade-shell__btn:active {
  transform: scale(0.97);
}

.arcade-shell__btn--gold {
  background: var(--gold-grad);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}

/* Game poster (key-art) shown above the title on the start screen. The poster is a true
   9:16 image, so width:auto-height keeps its natural aspect — object-fit:contain with NO
   letterbox and NO nested subcontainer box. Minimal edge, not a framed inner panel. */
.arcade-shell__poster {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;                 /* natural 9:16 — never letterboxed */
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* How to Play — numbered instruction steps */
.arcade-shell__howto {
  text-align: left;
  margin: 4px 0 22px;
  padding: 0 0 0 26px;
  list-style: decimal;
  display: grid;
  gap: 10px;
}
.arcade-shell__howto li {
  font-size: 1rem;
  line-height: 1.35;
  opacity: 0.92;
  padding-left: 4px;
}
.arcade-shell__howto li::marker {
  color: var(--brand-gold);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
/* _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 — the DOM over the 3D wheel: a private-salon look. Deep green felt, mahogany, brass, cream. */
:root { --felt: #0f4a30; --felt-d: #0a3322; --brass: #d4a94a; --cream: #fbf1dc; --red: #b3121c; --ink: #0c0a10; --display: 'Fraunces', Georgia, serif; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); touch-action: none; -webkit-user-select: none; user-select: none; }
.rl-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.is-hidden { display: none !important; }
.rl-hud { display: flex; justify-content: center; margin-top: 4px; }

/* the layout */
.rl-board { position: fixed; z-index: 4; border: 3px solid var(--brass); border-radius: 10px; background: linear-gradient(180deg, var(--felt), var(--felt-d)); box-shadow: 0 10px 30px rgba(0,0,0,.55); box-sizing: border-box; }
.rl-grid, .rl-chips { position: absolute; inset: 0; }
.rl-chips { pointer-events: none; }
.rl-grid .cell { position: absolute; box-sizing: border-box; border: 1px solid rgba(251, 241, 220, 0.55); display: flex; align-items: center; justify-content: center; color: var(--cream); font: 700 clamp(10px, 3.4vw, 15px)/1 var(--display); }
.rl-grid .cell.num.red span, .rl-grid .cell.num.black span { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8em; height: 1.5em; border-radius: 0.75em; }
.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: 40px 40px 0 0; font-size: 18px; }
.rl-grid .cell.out-red span { color: var(--red); font-size: 22px; }
.rl-grid .cell.out-black span { color: #000; font-size: 22px; text-shadow: 0 0 1px var(--cream); }
.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 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; letter-spacing: 1px; }
.rl-grid .cell.out-column { font-size: 11px; }
.rl-grid .cell.hit { box-shadow: inset 0 0 0 3px #ffe2a0, 0 0 18px #ffe2a0; z-index: 2; }
.rl-chips .chip { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 3px dashed rgba(255,255,255,.85);
  box-shadow: 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 2px rgba(0,0,0,.25); color: #fff; font: 800 10px/20px var(--display); text-align: 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 16px #ffe2a0; }
.rl-chips .chip em { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font: 800 12px/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: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0,0,0,.6); }

/* the bar: chips + actions */
.rl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 10px); display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, rgba(12,10,16,0) 0%, rgba(12,10,16,.92) 30%); }
.rl-bar .chips { display: flex; justify-content: center; gap: 8px; }
.rl-chipbtn { width: 44px; height: 44px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.9); background: var(--c); color: #fff; font: 800 13px/1 var(--display); box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.rl-chipbtn.on { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--brass), 0 6px 12px rgba(0,0,0,.5); }
.rl-bar .acts { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.rl-btn { appearance: none; border: 0; border-radius: 12px; padding: 9px 12px; min-height: 44px; min-width: 56px; font: 800 14px/1.1 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; gap: 2px; }
.rl-btn small { font: 600 10px/1 var(--display); opacity: .85; }
.rl-btn.primary { min-width: 110px; 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; }

.rl-history { position: fixed; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 3px; }
.rl-history span { width: 26px; height: 22px; border-radius: 6px; color: #fff; font: 800 12px/22px 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 { position: fixed; left: 50%; transform: translateX(-50%); z-index: 6; color: var(--cream); background: rgba(12,10,16,.75); border: 1px solid var(--brass); border-radius: 999px; padding: 6px 12px; font: 700 13px/1 var(--display); }
.rl-seats { position: fixed; left: 8px; right: 8px; z-index: 6; display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.rl-seats .seat { display: flex; gap: 5px; align-items: center; padding: 4px 8px; border-radius: 10px; background: rgba(12,10,16,.7); border: 2px solid var(--c); color: var(--cream); font: 600 11px/1 var(--display); }
.rl-seats .seat.me { box-shadow: 0 0 10px var(--c); }
.rl-seats .seat.away { opacity: .5; }
.rl-seats .seat i { font-style: normal; color: #ffe2a0; }

.rl-panel { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(12,10,16,.5); }
.rl-panel .box { width: min(400px, 100%); box-sizing: border-box; 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-banner { position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.9); z-index: 9; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; min-width: 220px; max-width: 88vw;
  background: rgba(12,10,16,.92); border: 2px solid var(--brass); border-radius: 18px; padding: 14px 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 44px/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 14px/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 13px/1.2 var(--display); }
.rl-banner .r.me { color: #ffe2a0; }
.rl-toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 21; background: rgba(12,10,16,.92); color: var(--cream); border: 1px solid var(--brass); border-radius: 12px; padding: 9px 14px;
  font: 600 13px/1.25 var(--display); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 86vw; text-align: center; }
.rl-toast.show { opacity: 1; }
