/* Chronicz Poker — Mini App client stylesheet (Phase 3).
 *
 * Brand (POKER_DESIGN §6): purple-dominant felt + gold accents, graphic-novel
 * premium mood, cannabis-leaf motif as subtle corner ornament. Chips are a
 * cosmetic integer count with zero monetary framing (compliance §2).
 */

:root {
  --felt:        #2b1840;
  --felt-deep:   #1c0f2b;
  --felt-edge:   #0d0716;
  --gold:        #d4af37;
  --gold-soft:   #e8c870;
  --gold-deep:   #8a6e1f;
  --leaf:        #6fa362;
  --leaf-deep:   #3f6a3a;
  --ink:         #f4e7c5;
  --ink-soft:    #cbb6e8;
  --danger:      #c25b5b;
  --warn:        #d9a45e;
  --ok:          #6fc97f;
  --serif:       'Playfair Display', 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans:        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: #0a0410;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

/* -------------------------------------------------------------------------
 * App shell — full-viewport stack: felt on top, action bar pinned to bottom.
 * ---------------------------------------------------------------------- */
.app {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
}

/* -------------------------------------------------------------------------
 * Felt — oval, radial gradient deep purple, gold inset border, leaf corners.
 * ---------------------------------------------------------------------- */
.felt {
  position: relative;
  flex: 1 1 auto;
  margin: 8px 8px 0;
  border-radius: 50% / 36%;
  background:
    radial-gradient(ellipse at 50% 38%, var(--felt) 0%, var(--felt-deep) 70%, var(--felt-edge) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(212, 175, 55, 0.35),
    inset 0 0 60px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  isolation: isolate;
}

/* Felt rail — a thin gold pin-stripe along the inside of the rail. */
.felt::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50% / 36%;
  border: 1px dashed rgba(212, 175, 55, 0.18);
  pointer-events: none;
  z-index: 0;
}

/* -------------------------------------------------------------------------
 * Cannabis-leaf corner ornaments (subtle, brand-distinct).
 * ---------------------------------------------------------------------- */
.leaf {
  position: absolute;
  width: 64px; height: 64px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  fill: var(--leaf);
  filter: drop-shadow(0 0 4px rgba(111, 163, 98, 0.4));
}
.leaf-tl { top: 18px; left: 22px; transform: rotate(-30deg); }
.leaf-br { bottom: 18px; right: 22px; transform: rotate(150deg); }
.leaf-tr { top: 18px; right: 22px; transform: rotate(30deg) scaleX(-1); opacity: 0.12; }
.leaf-bl { bottom: 18px; left: 22px; transform: rotate(-150deg) scaleX(-1); opacity: 0.12; }

/* -------------------------------------------------------------------------
 * Centre emblem — DROP-IN RASTER SLOT.
 *
 * Render a CSS/SVG wordmark placeholder here now. When the raster emblem
 * (assets/poker_emblem.png) is generated later, swap the two lines marked
 * "SWAP" below — toggle the .emblem-text node hidden and the .emblem-img
 * node shown. No CSS changes required; the slot is sized to fit either.
 *
 * ---------------------------------------------------------------------- */
.emblem {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50%; max-width: 220px;
  aspect-ratio: 2.6 / 1;
  display: grid; place-items: center;
  z-index: 1;
  pointer-events: none;
}
.emblem-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(15px, 5.2vw, 26px);
  letter-spacing: 0.18em;
  color: var(--gold);
  text-align: center;
  text-shadow:
    0 0 10px rgba(212, 175, 55, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.7);
  line-height: 1;
}
.emblem-text .sub {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: clamp(8px, 2.4vw, 11px);
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  opacity: 0.85;
  text-transform: uppercase;
}
.emblem-img {
  display: none; /* SWAP: change to 'block' when raster lands */
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

/* -------------------------------------------------------------------------
 * Pot — centre-top of felt. Stacks visually as one golden pile.
 * ---------------------------------------------------------------------- */
.pot-wrap {
  position: absolute;
  top: 26%; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}
.pot-label {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  text-transform: uppercase;
  opacity: 0.85;
}
.pot {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 6vw, 32px);
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.45), 0 1px 2px rgba(0, 0, 0, 0.8);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* -------------------------------------------------------------------------
 * Board — community cards centre of felt.
 * ---------------------------------------------------------------------- */
.board {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: 6px;
  z-index: 2;
  pointer-events: none;
  padding: 4px 6px;
  background: rgba(13, 7, 22, 0.32);
  border-radius: 10px;
  backdrop-filter: blur(2px);
}
.board .card {
  width: clamp(46px, 14vw, 74px);
}

/* -------------------------------------------------------------------------
 * Cards — common shape, aspect 2.5:3.5. Two visual variants: face (image)
 * and back (single image). Both are <img> with rounded corners + shadow.
 * ---------------------------------------------------------------------- */
.card {
  position: relative;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 6px;
  overflow: hidden;
  background: #1a0e26;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}
.card img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.card.empty {
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  box-shadow: none;
}

/* Deal-in animation for new community cards. */
.card.deal {
  animation: cardDeal 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes cardDeal {
  0%   { transform: translateY(-22px) scale(0.6); opacity: 0; }
  60%  { transform: translateY(0)     scale(1.08); opacity: 1; }
  100% { transform: translateY(0)     scale(1);    opacity: 1; }
}

/* Back→face flip animation for revealed hole cards at showdown. */
.card.flip {
  animation: cardFlip 520ms ease-in-out both;
  transform-style: preserve-3d;
}
@keyframes cardFlip {
  0%   { transform: rotateY(180deg); }
  100% { transform: rotateY(0deg); }
}

/* -------------------------------------------------------------------------
 * Seats — six positions around the felt.
 *
 * Each seat is an absolutely-positioned card (avatar + name + stack + 2
 * cardbacks above the avatar). The seat data structure in state decides
 * whether it's occupied; empty seats show a "Sit here" affordance.
 * ---------------------------------------------------------------------- */
.seats {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
  width: clamp(80px, 22vw, 116px);
  pointer-events: auto;
  transition: transform 180ms ease;
}
.seat-pos-0 { left: 50%; top: 96%; }
.seat-pos-1 { left: 86%; top: 80%; }
.seat-pos-2 { left: 90%; top: 28%; }
.seat-pos-3 { left: 50%; top: 8%; }
.seat-pos-4 { left: 10%; top: 28%; }
.seat-pos-5 { left: 14%; top: 80%; }

/* Turn highlight — soft gold pulse on the seat that must act. */
.seat.acting .seat-frame {
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 18px rgba(212, 175, 55, 0.65),
    inset 0 0 12px rgba(212, 175, 55, 0.15);
  animation: seatActingPulse 1.4s ease-in-out infinite;
}
@keyframes seatActingPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(212, 175, 55, 0.65); }
  50%      { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(212, 175, 55, 0.95); }
}

/* Winner highlight — gold glow when this seat won the hand. */
.seat.winner .seat-frame {
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 28px rgba(212, 175, 55, 0.85);
  animation: seatWinnerPulse 1.2s ease-in-out 3;
}
@keyframes seatWinnerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* Seat frame — avatar circle + name strip + stack. */
.seat-frame {
  position: relative;
  background: rgba(13, 7, 22, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 6px 8px 8px;
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(2px);
}
.seat.empty .seat-frame {
  background: rgba(212, 175, 55, 0.05);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  cursor: pointer;
}
.seat.empty .seat-frame:active { background: rgba(212, 175, 55, 0.12); }

/* Avatar — circle, 56px. Uses Telegram photo for self, initials for others. */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--leaf-deep);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  border: 2px solid rgba(212, 175, 55, 0.5);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.no-photo { font-size: 16px; }

.seat-name {
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat.empty .seat-name {
  color: var(--gold-soft);
  font-style: italic;
  opacity: 0.8;
}
.seat-stack {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.seat-stack.zero { color: var(--ink-soft); opacity: 0.55; }
.seat.folded .seat-name,
.seat.folded .seat-stack { opacity: 0.45; text-decoration: line-through; }
.seat.allin .seat-stack { color: var(--warn); }

/* Contribution pip — small chip-stack indicator near the seat for the
 * current street's contribution. */
.seat-contrib {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
  min-height: 14px;
}
.seat-contrib .pip {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold-deep));
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hole cards above the seat — 2 small cardbacks. */
.seat-holes {
  display: flex; gap: 3px;
  margin-bottom: 4px;
  perspective: 400px;
}
.seat-holes .card {
  width: 32px;
}

/* Sitting-out badge — small "out" pill on disconnected seats. */
.sitting-out {
  position: absolute;
  top: -4px; right: -4px;
  font-size: 8px;
  letter-spacing: 0.12em;
  background: rgba(217, 164, 94, 0.9);
  color: #1a0e26;
  padding: 1px 5px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Dealer button — gold disc with "D". */
.dealer-button {
  position: absolute;
  top: -8px; left: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold-deep));
  border: 2px solid var(--gold);
  display: grid; place-items: center;
  color: var(--felt-deep);
  font-family: var(--serif);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 4;
}

/* Turn timer ring — sits over the avatar. */
.timer-ring {
  position: absolute;
  inset: -3px;
  pointer-events: none;
  z-index: 5;
}
.timer-ring circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.timer-ring .track { stroke: rgba(212, 175, 55, 0.18); }
.timer-ring .fill  {
  stroke: var(--gold);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 200ms linear;
}

/* -------------------------------------------------------------------------
 * Your hole cards — pinned to the bottom of the screen (above the action
 * bar). Larger than seat cardbacks.
 * ---------------------------------------------------------------------- */
.your-hole {
  position: relative;
  flex: 0 0 auto;
  display: flex; justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 0 4px;
  z-index: 4;
}
.your-hole .card {
  width: clamp(74px, 22vw, 108px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
}

/* -------------------------------------------------------------------------
 * Action bar — fold / check-or-call / bet-or-raise. Only shown when your turn.
 * ---------------------------------------------------------------------- */
.action-bar {
  flex: 0 0 auto;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px 18px;
  background: linear-gradient(to top, rgba(13, 7, 22, 0.92), rgba(13, 7, 22, 0.6));
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 5;
}
.action-bar.visible { display: flex; }

.action-row {
  display: flex; gap: 8px; align-items: stretch;
}
.action-btn {
  flex: 1 1 0;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(13, 7, 22, 0.85);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease;
}
.action-btn:active { transform: scale(0.97); }
.action-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.action-btn.fold    { color: var(--danger); border-color: rgba(194, 91, 91, 0.6); }
.action-btn.check,
.action-btn.call    { color: var(--ok);     border-color: rgba(111, 201, 127, 0.6); }
.action-btn.bet,
.action-btn.raise   { color: var(--gold);   border-color: rgba(212, 175, 55, 0.7); }
.action-btn .amount {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.raise-row {
  display: flex; gap: 8px; align-items: center;
}
.raise-slider {
  flex: 1 1 auto;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(212, 175, 55, 0.25);
  outline: none;
}
.raise-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold-deep));
  border: 2px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.raise-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold-deep));
  border: 2px solid var(--gold);
  cursor: pointer;
}
.raise-amount {
  flex: 0 0 auto;
  min-width: 56px;
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
 * Result overlay — full-felt announcement after a hand ends.
 * ---------------------------------------------------------------------- */
.result-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(13, 7, 22, 0.7), rgba(13, 7, 22, 0.92));
  z-index: 8;
  pointer-events: none;
}
.result-overlay.visible { display: flex; }
.result-card {
  background: linear-gradient(160deg, rgba(43, 24, 64, 0.95), rgba(28, 15, 43, 0.95));
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 22px 26px;
  text-align: center;
  max-width: 84%;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
  pointer-events: auto;
}
.result-card h2 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.result-card .hand {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 16px;
  margin: 8px 0 4px;
}
.result-card .winner-name {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 18px;
  margin: 4px 0;
}
.result-card .payout {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* -------------------------------------------------------------------------
 * Rules trigger — small always-visible pill on the felt top-left. Opens
 * the .rules-overlay modal. Sits above the felt's other decorations
 * (leaves/emblem/pot/board/seats/status banner) but below the overlays.
 * ---------------------------------------------------------------------- */
.rules-btn {
  position: absolute;
  top: 8px; left: 8px;
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(13, 7, 22, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  cursor: pointer;
  z-index: 7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  transition: transform 80ms ease, background 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.rules-btn:active { transform: scale(0.96); }

/* -------------------------------------------------------------------------
 * Rules overlay — Hold'em how-to-play modal. Mirrors .result-overlay:
 * full-screen dim backdrop + centred card, toggled via .visible. Sits
 * above .result-overlay (z-index 9 vs 8) so rules survive a showdown.
 * ---------------------------------------------------------------------- */
.rules-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(13, 7, 22, 0.7), rgba(13, 7, 22, 0.92));
  z-index: 9;
  pointer-events: none;
}
.rules-overlay.visible { display: flex; }
.rules-card {
  background: linear-gradient(160deg, rgba(43, 24, 64, 0.96), rgba(28, 15, 43, 0.96));
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 18px 20px 16px;
  text-align: left;
  width: 92%;
  max-width: 520px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
  pointer-events: auto;
  color: var(--ink);
}
.rules-card h2 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.rules-card h3 {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 12px 0 4px;
}
.rules-card p {
  font-size: 13px;
  color: var(--ink);
  margin: 6px 0;
  line-height: 1.5;
}
.rules-card ol,
.rules-card ul {
  margin: 6px 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}
.rules-card li { margin: 2px 0; }
.rules-card b { color: var(--gold-soft); font-weight: 700; }
.rules-card em { font-style: italic; color: var(--ink); }
.rules-card .rules-goal { margin: 4px 0 2px; }
.rules-card .rules-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.rules-card .rules-close {
  display: block;
  margin: 14px auto 0;
  padding: 10px 22px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(13, 7, 22, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rules-card .rules-close:active { transform: scale(0.97); }

/* -------------------------------------------------------------------------
 * Toast — non-blocking error / status pill (top centre).
 * ---------------------------------------------------------------------- */
.toast-layer {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 0; right: 0;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 0;
  z-index: 10;
  pointer-events: none;
}
.toast {
  background: rgba(194, 91, 91, 0.95);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 80%;
  text-align: center;
  animation: toastIn 200ms ease both;
}
.toast.info  { background: rgba(217, 164, 94, 0.95); color: #1a0e26; }
.toast.ok    { background: rgba(111, 201, 127, 0.95); color: #1a0e26; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
 * Status banner — top of the table for messages like "waiting for players".
 * ---------------------------------------------------------------------- */
.status-banner {
  position: absolute;
  top: 14%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(13, 7, 22, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  z-index: 6;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
 * Mobile-tight tweaks — small phones (width < 380px).
 * ---------------------------------------------------------------------- */
@media (max-width: 380px) {
  .seat-name { font-size: 10px; }
  .seat-stack { font-size: 11px; }
  .board .card { width: 44px; }
  .emblem-text { letter-spacing: 0.12em; }
}

/* -------------------------------------------------------------------------
 * Reduce-motion — disable animations for users who prefer it.
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .card.deal, .card.flip { animation: none; }
  .seat.acting .seat-frame,
  .seat.winner .seat-frame { animation: none; }
}
