/* 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; }
/* Dominoes — the DOM over the 3D table: Caribbean social club at dusk. Sea-teal, coral, sand, deep violet. */
:root {
  --teal: #1f6f78; --teal-d: #134a52; --coral: #ef7b5d; --coral-d: #c95a3f; --sand: #f2d7a6; --ink: #1d1533;
  --cream: #fff6e6; --gold: #f2b26b;
  --display: 'Fraunces', Georgia, serif;
}
html, body { margin: 0; height: 100%; overflow: hidden; background: #2b1d3f; touch-action: none; -webkit-user-select: none; user-select: none; }
.dom-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.is-hidden { display: none !important; }

/* HUD row (inside the chrome HUD): stake chip + the kit wallet */
.dom-hud { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 4px; }
.dom-hud .chip { font: 700 12px/1 var(--display); color: var(--cream); background: rgba(19, 74, 82, 0.85); border: 1px solid rgba(242, 215, 166, 0.45); border-radius: 999px; padding: 7px 11px; }
.dom-hud-mount { display: flex; align-items: center; }

/* opponents' plates (positioned over their face-down rows) and yours */
.dom-plates { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.dom-plate { position: fixed; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 10px; border-radius: 12px;
  background: rgba(29, 21, 51, 0.72); border: 1px solid rgba(242, 215, 166, 0.35); color: var(--cream); font: 600 12px/1.1 var(--display); white-space: nowrap; transition: box-shadow .2s, border-color .2s; }
.dom-plate .who { font-weight: 800; font-size: 13px; }
.dom-plate .n { opacity: 0.85; font-size: 11px; }
.dom-plate .mk { margin-left: 4px; }
.dom-plate.turn { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 178, 107, 0.55), 0 0 18px rgba(242, 178, 107, 0.6); }
.dom-plate.away { opacity: 0.55; }
.dom-plate.me { left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); top: auto; transform: none; flex-direction: row; gap: 8px; z-index: 6; }

.dom-msg { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 132px); transform: translateX(-50%); z-index: 6; color: var(--cream);
  font: 600 13px/1.2 var(--display); background: rgba(29, 21, 51, 0.7); padding: 7px 12px; border-radius: 10px; text-align: center; max-width: 86vw; }

/* the action bar */
.dom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px); background: linear-gradient(180deg, rgba(29, 21, 51, 0) 0%, rgba(29, 21, 51, 0.88) 38%); }
.dom-bar .hint { flex: 1 1 100%; text-align: center; color: var(--sand); font: 600 13px/1.2 var(--display); }
.dom-bar .hint.you { color: var(--gold); }
.dom-btn { appearance: none; border: 0; border-radius: 14px; padding: 11px 18px; min-height: 44px; min-width: 96px; font: 800 15px/1.1 var(--display); color: var(--cream);
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-d) 100%); box-shadow: 0 3px 0 #8e3a26, 0 6px 14px rgba(0, 0, 0, 0.35); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.dom-btn small { font: 600 11px/1 var(--display); opacity: 0.85; }
.dom-btn.ghost { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-d) 100%); box-shadow: 0 3px 0 #0b3036, 0 6px 14px rgba(0, 0, 0, 0.35); }
.dom-btn.side { background: rgba(255, 246, 230, 0.12); border: 1px solid rgba(242, 215, 166, 0.45); box-shadow: none; }
.dom-btn:disabled { opacity: 0.4; cursor: default; }
.dom-btn:active:not(:disabled) { transform: translateY(2px); }

/* the menu */
.dom-panel { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(29, 21, 51, 0.45); }
.dom-panel .box { width: min(420px, 100%); box-sizing: border-box; background: linear-gradient(180deg, rgba(31, 111, 120, 0.96), rgba(19, 74, 82, 0.97)); border: 2px solid var(--sand);
  border-radius: 20px; padding: 18px 16px; color: var(--cream); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.dom-panel h2 { margin: 0; font: 800 28px/1 var(--display); text-align: center; color: var(--sand); letter-spacing: 0.5px; }
.dom-panel .row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dom-panel .lbl { font: 700 12px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; text-align: center; }
.dom-panel .rule { margin: 0; font: 500 13px/1.35 var(--display); opacity: 0.92; text-align: center; }
.dom-panel .note { font-size: 12px; opacity: 0.75; }
.dom-opt { appearance: none; border: 1px solid rgba(242, 215, 166, 0.5); background: rgba(255, 246, 230, 0.08); color: var(--cream); border-radius: 12px; padding: 9px 12px; min-height: 40px;
  font: 700 14px/1.1 var(--display); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.dom-opt small { font-size: 11px; opacity: 0.8; }
.dom-opt.on { background: var(--sand); color: var(--ink); border-color: var(--sand); }

/* hand / match banners */
.dom-banner { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.92); z-index: 9; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  min-width: 250px; max-width: 88vw; background: rgba(29, 21, 51, 0.92); border: 2px solid var(--gold); border-radius: 18px; padding: 16px 18px; color: var(--cream); text-align: center; }
.dom-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dom-banner .t { font: 800 30px/1 var(--display); color: var(--gold); }
.dom-banner.win .t { color: #7fe3c4; }
.dom-banner.lose .t { color: var(--coral); }
.dom-banner .s { margin-top: 6px; font: 600 14px/1.3 var(--display); }
.dom-banner .rows { margin-top: 10px; display: grid; gap: 4px; }
.dom-banner .r { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; font: 600 13px/1.2 var(--display); opacity: 0.9; }
.dom-banner .r.me { color: var(--gold); }

.dom-confirm { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); padding: 16px; }
.dom-confirm.open { display: flex; }
.dom-confirm .box { background: var(--teal-d); border: 2px solid var(--sand); border-radius: 18px; padding: 18px; color: var(--cream); display: flex; flex-direction: column; gap: 10px; max-width: 340px; text-align: center; }
.dom-confirm h2 { margin: 0; font: 800 22px/1 var(--display); }
.dom-confirm p { margin: 0; font: 500 14px/1.35 var(--display); }

.dom-toast { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 21; background: rgba(29, 21, 51, 0.92); color: var(--cream); border: 1px solid var(--sand);
  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; }
.dom-toast.show { opacity: 1; }
