/* ==========================================================================
   Reefhouse — shared component styles
   Built ONLY from tokens.css variables. Load order: tokens.css, then this.

   Contains: reset, layout shell, nav, buttons, cards, forms, badges,
   avatar chips, the image-slot placeholder system, and table/card
   components used on table.html.
   ========================================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rh-bg-void);
  color: var(--rh-text-secondary);
  font-family: var(--rh-font-body);
  font-size: var(--rh-text-base);
  line-height: var(--rh-leading-normal);
}

h1, h2, h3, .brand-word, .display {
  font-family: var(--rh-font-display);
  color: var(--rh-text-primary);
  font-weight: var(--rh-weight-semibold);
  line-height: var(--rh-leading-tight);
  margin: 0 0 var(--rh-space-3);
}

h1 { font-size: var(--rh-text-2xl); }
h2 { font-size: var(--rh-text-lg); }
h3 { font-size: var(--rh-text-md); }
p { margin: 0 0 var(--rh-space-3); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--rh-space-5);
}

/* Background wash: every screen sits on the deep-navy void with a very
   faint radial cyan glow, never a flat black. */
.rh-screen {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(45, 226, 230, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(23, 195, 178, 0.08), transparent 55%),
    var(--rh-bg-void);
}

/* ---- Quiet zone note --------------------------------------------------
   Any element with .rh-quiet-zone reserves clear space around brand marks
   (logo, hero art) — no controls or copy should be placed inside it.
------------------------------------------------------------------------ */
.rh-quiet-zone { padding: var(--rh-space-4); }

/* ---- Top bar ----------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--rh-space-5);
  padding: var(--rh-space-4) var(--rh-space-5);
  border-bottom: 1px solid var(--rh-border-subtle);
  background: rgba(5, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* fixed optical gap icon↔wordmark */
  line-height: 1;
}
.brand-word {
  font-size: var(--rh-text-md);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.brand-mark {
  --slot-asset: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-block;
  flex: none;
  background-image: var(--slot-asset);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
}

.topnav { display: none; gap: var(--rh-space-5); margin-left: var(--rh-space-4); }
.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* fixed optical gap icon↔label */
  color: var(--rh-text-secondary);
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-medium);
  padding: var(--rh-space-2) 0;
  border-bottom: 2px solid transparent;
  line-height: 1;
}
.topnav a:hover, .topnav a.active { color: var(--rh-text-primary); border-color: var(--rh-accent-cyan); }

.topbar-spacer { flex: 1; }

.avatar-chip {
  display: flex;
  align-items: center;
  gap: var(--rh-space-2);
  padding: var(--rh-space-1) var(--rh-space-3) var(--rh-space-1) var(--rh-space-1);
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-pill);
  background: var(--rh-bg-surface);
  font-size: var(--rh-text-sm);
  color: var(--rh-text-primary);
}

@media (min-width: 900px) {
  .topnav { display: flex; }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* fixed optical gap icon↔label */
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-3) var(--rh-space-5);
  line-height: 1;
  font-family: var(--rh-font-body);
  font-size: var(--rh-text-base);
  font-weight: var(--rh-weight-semibold);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--rh-duration-fast) var(--rh-ease), box-shadow var(--rh-duration-base) var(--rh-ease), background var(--rh-duration-base) var(--rh-ease);
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
}
.btn-primary:hover { background: var(--rh-accent-cyan-hi); box-shadow: var(--rh-shadow-glow-cyan); }

.btn-secondary {
  background: transparent;
  border-color: var(--rh-accent-cyan);
  color: var(--rh-accent-cyan);
}
.btn-secondary:hover { background: var(--rh-accent-cyan-dim); }

.btn-ghost {
  background: transparent;
  border-color: var(--rh-border-subtle);
  color: var(--rh-text-secondary);
}
.btn-ghost:hover { border-color: var(--rh-border-strong); color: var(--rh-text-primary); }

.btn-danger {
  background: transparent;
  border-color: var(--rh-danger);
  color: var(--rh-danger);
}
.btn-danger:hover { background: var(--rh-danger-dim); }

.btn-block { width: 100%; }
.btn-sm { padding: var(--rh-space-2) var(--rh-space-3); font-size: var(--rh-text-sm); }
.btn-lg { padding: var(--rh-space-4) var(--rh-space-6); font-size: var(--rh-text-md); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---- Cards / panels ------------------------------------------------------ */
.card {
  background: var(--rh-bg-surface);
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-lg);
  padding: var(--rh-space-5);
  box-shadow: var(--rh-shadow-md);
}
.card-raised { background: var(--rh-bg-surface-raised); }

/* ---- Forms ---------------------------------------------------------------- */
label, .label {
  display: block;
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-secondary);
  margin-bottom: var(--rh-space-2);
}
.field { margin-bottom: var(--rh-space-5); }
.help { font-size: var(--rh-text-xs); color: var(--rh-text-muted); margin-top: var(--rh-space-2); }

input[type="text"], input[type="number"], select {
  width: 100%;
  background: var(--rh-bg-surface-overlay);
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-sm);
  color: var(--rh-text-primary);
  font-family: var(--rh-font-body);
  font-size: var(--rh-text-base);
  padding: var(--rh-space-3) var(--rh-space-4);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--rh-accent-cyan);
  box-shadow: var(--rh-shadow-glow-cyan);
}

.stepper { display: flex; align-items: center; gap: var(--rh-space-3); }
.stepper button {
  width: 36px; height: 36px;
  border-radius: var(--rh-radius-sm);
  border: 1px solid var(--rh-border-subtle);
  background: var(--rh-bg-surface-overlay);
  color: var(--rh-text-primary);
  font-size: var(--rh-text-md);
  cursor: pointer;
}
.stepper output { font-family: var(--rh-font-display); font-size: var(--rh-text-lg); min-width: 2ch; text-align: center; }

/* segmented / pill toggle (gender treatment, blind presets) */
.segmented {
  display: inline-flex;
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-pill);
  padding: 3px;
  background: var(--rh-bg-surface-overlay);
  gap: 3px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  margin: 0;
  padding: var(--rh-space-2) var(--rh-space-4);
  border-radius: var(--rh-radius-pill);
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
  cursor: pointer;
}
.segmented input:checked + label {
  background: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
}

/* ---- Badges --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-semibold);
  padding: 2px var(--rh-space-2);
  border-radius: var(--rh-radius-pill);
  background: var(--rh-bg-surface-overlay);
  color: var(--rh-text-secondary);
  border: 1px solid var(--rh-border-subtle);
}
.badge-host { background: var(--rh-accent-cyan-dim); color: var(--rh-accent-cyan); border-color: var(--rh-accent-cyan); }
.badge-success { background: rgba(45, 226, 166, 0.12); color: var(--rh-success); border-color: var(--rh-success); }
.badge-danger { background: var(--rh-danger-dim); color: var(--rh-danger); border-color: var(--rh-danger); }

/* ==========================================================================
   Image-slot placeholder system
   Every asset the app will eventually load is wired to assets/<filename>
   right now via CSS multi-layer background: the real image is layer 1 (so
   it "just works" the moment the file lands in assets/), a diagonal hatch
   + label is layer 2 underneath as a visible placeholder while the file is
   missing. Large slots show the hatch + slot id; small icon slots show a
   compact 2–3 letter code instead (hatch is too busy at 24px).
   ========================================================================== */
.slot {
  --slot-asset: none;
  background-image: var(--slot-asset),
    repeating-linear-gradient(135deg, var(--rh-accent-cyan-dim) 0 10px, var(--rh-bg-surface-overlay) 10px 20px);
  background-size: cover, cover;
  background-position: center, center;
  border: 1px dashed var(--rh-border-strong);
  border-radius: var(--rh-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--rh-text-secondary);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-medium);
  padding: var(--rh-space-2);
  line-height: 1.3;
  overflow: hidden;
}
.slot span { background: rgba(5, 11, 20, 0.55); padding: 2px 6px; border-radius: var(--rh-radius-sm); }

.icon-slot {
  --slot-asset: none;
  background-image: var(--slot-asset);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 28px; height: 28px;
  min-width: 28px;
  border: none; /* no dashed placeholder border next to labels */
  border-radius: 0;
  background-color: transparent;
  color: transparent; /* hide LB/CR letter codes once asset loads; keep for a11y empty */
  font-size: 0;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  align-self: center;
}
.icon-slot.icon-lg { width: 32px; height: 32px; }
.btn .icon-slot { width: 22px; height: 22px; min-width: 22px; }
.stat .icon-slot,
.recent-card .icon-slot { width: 18px; height: 18px; min-width: 18px; }

.avatar-slot {
  --slot-asset: none;
  background-image: var(--slot-asset),
    repeating-linear-gradient(135deg, var(--rh-accent-cyan-dim) 0 8px, var(--rh-bg-surface-overlay) 8px 16px);
  background-size: cover, cover;
  background-position: center, center;
  border-radius: var(--rh-radius-pill);
  border: 1px solid var(--rh-border-subtle);
  width: 48px; height: 48px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--rh-text-muted);
  font-size: 8px;
}
.avatar-slot.size-sm { width: 32px; height: 32px; }
.avatar-slot.size-lg { width: 96px; height: 96px; }
.avatar-slot.size-xl { width: 128px; height: 128px; }

/* ---- Footer / quiet zone note ---------------------------------------------- */
.rh-footer {
  border-top: 1px solid var(--rh-border-subtle);
  padding: var(--rh-space-6) var(--rh-space-5);
  color: var(--rh-text-muted);
  font-size: var(--rh-text-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--rh-space-4);
  justify-content: space-between;
  align-items: center;
}
.rh-footer a { color: var(--rh-text-secondary); }
.rh-footer a:hover { color: var(--rh-accent-cyan); }

/* ==========================================================================
   T6 — Spectator / Standard tablet oval + in-page sheets
   Oval rules are scoped under .tablet-stage so landing/create stay untouched.
   Playing cards stay .pcard (reefhouse .card is a panel).
   Seat positions use [data-i] because paintSeats resets className to 'seat'.
   ========================================================================== */

.page-wood {
  min-height: 100vh;
  color: var(--rh-text-primary);
}
.page-paper {
  min-height: 100vh;
  color: var(--rh-text-secondary);
}

.tablet-stage[hidden],
.tablet-stage [hidden] {
  display: none !important;
}

.tablet-stage {
  min-height: 100vh;
  padding: var(--rh-space-4) var(--rh-space-4) 0;
  display: flex;
  flex-direction: column;
}
.tablet-stage .tablet {
  flex: 1;
  min-height: 560px;
  background: var(--rh-bg-deep);
  border-radius: var(--rh-radius-xl);
  border: 1px solid var(--rh-border-subtle);
  padding: var(--rh-space-4);
  position: relative;
  box-shadow: var(--rh-shadow-lg);
  display: flex;
  flex-direction: column;
}
.tablet-stage .tablet.is-dim { filter: saturate(0.7) brightness(0.62); }
.tablet-stage .tablet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--rh-space-3);
  flex-wrap: wrap;
  padding: var(--rh-space-2) var(--rh-space-2) var(--rh-space-3);
  border-bottom: 1px solid var(--rh-border-subtle);
  background: rgba(5, 11, 20, 0.7);
  backdrop-filter: blur(8px);
  margin: calc(-1 * var(--rh-space-4)) calc(-1 * var(--rh-space-4)) var(--rh-space-3);
  padding-left: var(--rh-space-5);
  padding-right: var(--rh-space-5);
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
}
.tablet-stage .tablet-top .room {
  display: inline-flex;
  align-items: center;
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-semibold);
  letter-spacing: 0.08em;
  padding: 2px var(--rh-space-2);
  border-radius: var(--rh-radius-pill);
  background: var(--rh-bg-surface-overlay);
  color: var(--rh-text-primary);
  border: 1px solid var(--rh-border-subtle);
}
.tablet-stage .blinds-fact {
  font-weight: var(--rh-weight-semibold);
  font-size: var(--rh-text-sm);
  color: var(--rh-text-primary);
}
.tablet-stage .spec-label,
.tablet-stage #device-line {
  font-size: var(--rh-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
}
.tablet-stage .more-btn {
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: var(--rh-radius-pill);
  border: 1px solid var(--rh-border-subtle);
  background: transparent;
  color: var(--rh-text-secondary);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 18px;
  letter-spacing: 0.12em;
}
.tablet-stage .more-btn:hover {
  border-color: var(--rh-border-strong);
  color: var(--rh-text-primary);
}

.tablet-stage .oval-wrap {
  flex: 1;
  position: relative;
  min-height: 420px;
}
.tablet-stage .felt-oval {
  position: absolute;
  inset: 12% 10% 16% 10%;
  border-radius: 50%;
  background-image: url('/assets/bg-03-table-surface.jpg'),
    repeating-linear-gradient(135deg, var(--rh-accent-cyan-dim) 0 12px, var(--rh-bg-deep) 12px 24px);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--rh-border-strong);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(45, 226, 230, 0.12);
}
.tablet-stage .felt-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--rh-text-primary);
  text-align: center;
  pointer-events: none;
  padding-bottom: 4%;
}
.tablet-stage .board {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.tablet-stage .board.xl { gap: 12px; }

.tablet-stage .pot,
.tablet-stage .spec-pot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--rh-space-2);
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-lg);
  font-weight: var(--rh-weight-bold);
  color: var(--rh-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: var(--rh-space-2) 0 0;
}
.tablet-stage .pot::before,
.tablet-stage .spec-pot::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url('/assets/icon-05-stat-chips.png') center / contain no-repeat;
  flex: none;
}
.tablet-stage .pot small,
.tablet-stage .spec-pot small {
  display: block;
  width: 100%;
  font-family: var(--rh-font-body);
  font-size: var(--rh-text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  font-weight: var(--rh-weight-medium);
  margin-bottom: 2px;
}
.tablet-stage .status-line {
  margin-top: var(--rh-space-3);
  font-size: var(--rh-text-md);
  font-weight: var(--rh-weight-semibold);
  color: var(--rh-text-primary);
}
.tablet-stage #pregame-msg .note { color: var(--rh-text-secondary); }

.tablet-stage .pcard {
  width: 34px;
  height: 48px;
  border-radius: 5px;
  background: #f4fbfc;
  color: #0c3b42;
  box-shadow: var(--rh-shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 5px;
  font-family: var(--rh-font-display);
  font-weight: var(--rh-weight-bold);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.tablet-stage .pcard b { font-size: 13px; font-weight: var(--rh-weight-bold); }
.tablet-stage .pcard i { font-style: normal; font-size: 12px; margin-top: 1px; }
.tablet-stage .pcard.red { color: #c81c3f; }
.tablet-stage .pcard.lg { width: 62px; height: 88px; border-radius: 7px; padding: 6px 7px; }
.tablet-stage .pcard.lg b { font-size: 22px; }
.tablet-stage .pcard.lg i { font-size: 18px; }
.tablet-stage .pcard.xl { width: 84px; height: 118px; border-radius: 10px; padding: 8px 10px; }
.tablet-stage .pcard.xl b { font-size: 32px; }
.tablet-stage .pcard.xl i { font-size: 26px; }
.tablet-stage .pcard.back {
  background-image: url('/assets/card-01-back.png'),
    repeating-linear-gradient(135deg, var(--rh-accent-cyan-dim) 0 6px, var(--rh-bg-surface-overlay) 6px 12px);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rh-border-strong);
  color: transparent;
}
.tablet-stage .pcard.back b,
.tablet-stage .pcard.back i { display: none; }
.tablet-stage .pcard.empty {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--rh-border-strong);
}

.tablet-stage .seats { position: absolute; inset: 0; }
.tablet-stage .seat {
  position: absolute;
  width: 108px;
  margin-left: -54px;
  margin-top: -34px;
  text-align: center;
  color: var(--rh-text-primary);
  text-decoration: none;
  z-index: 3;
}
.tablet-stage .seat .bubble {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  min-height: 0;
}
.tablet-stage .seat .bust {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--rh-space-1);
  border-radius: var(--rh-radius-pill);
  object-fit: cover;
  border: 1px solid var(--rh-border-subtle);
  background: var(--rh-bg-surface-overlay);
}
.tablet-stage .seat .nm {
  display: block;
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tablet-stage .seat .st {
  display: block;
  font-family: var(--rh-font-display);
  font-size: 10px;
  color: var(--rh-text-secondary);
}
.tablet-stage .seat .badge {
  margin-top: 2px;
  font-size: 9px;
}
.tablet-stage .you-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-accent-cyan);
}
.tablet-stage .seat.is-empty .bubble {
  background: transparent;
  color: var(--rh-text-muted);
  font-size: var(--rh-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tablet-stage .seat.is-empty .bubble::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--rh-space-1);
  border-radius: var(--rh-radius-pill);
  border: 1px dashed var(--rh-border-strong);
  background: transparent;
}
.tablet-stage .seat.is-taken { pointer-events: none; }
.tablet-stage .seat.is-you .bust { border-color: var(--rh-accent-cyan); }
.tablet-stage .seat.is-turn .bust {
  box-shadow: var(--rh-shadow-glow-cyan);
  border-color: var(--rh-accent-cyan);
}
.tablet-stage .seat.is-folded { opacity: 0.4; }
.tablet-stage .pip {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: var(--rh-radius-pill);
  font-size: 9px;
  font-weight: var(--rh-weight-bold);
  margin: 0 2px;
  background: var(--rh-text-primary);
  color: var(--rh-bg-void);
}
.tablet-stage .pip.sb {
  background: var(--rh-bg-surface-overlay);
  color: var(--rh-text-secondary);
  border: 1px solid var(--rh-border-subtle);
}
.tablet-stage .pip.bb {
  background: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
}

.tablet-stage .seat[data-i="0"] { left: 50%; top: 90%; }
.tablet-stage .seat[data-i="1"] { left: 22%; top: 78%; }
.tablet-stage .seat[data-i="2"] { left: 8%;  top: 50%; }
.tablet-stage .seat[data-i="3"] { left: 22%; top: 22%; }
.tablet-stage .seat[data-i="4"] { left: 50%; top: 10%; }
.tablet-stage .seat[data-i="5"] { left: 78%; top: 22%; }
.tablet-stage .seat[data-i="6"] { left: 92%; top: 50%; }
.tablet-stage .seat[data-i="7"] { left: 78%; top: 78%; }
.tablet-stage .seat[data-i="8"] { left: 68%; top: 90%; }

.tablet-stage .seat-hand {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 6px;
}
.tablet-stage .std-hole {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.tablet-stage .street-bet {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  white-space: nowrap;
}
.tablet-stage .street-bet .pile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: rh-chip-in 280ms ease-out both;
}
.tablet-stage .street-bet .pile:nth-child(2) { animation-delay: 70ms; }
.tablet-stage .street-bet img.chip {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 3px 6px rgba(8, 12, 24, 0.55));
}
.tablet-stage .street-bet img.chip-stack {
  width: 28px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 3px 6px rgba(8, 12, 24, 0.55));
}
.tablet-stage .street-bet .amt {
  font-family: var(--rh-font-display);
  font-size: 13px;
  font-weight: var(--rh-weight-bold);
  color: var(--rh-text-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(8, 12, 24, 0.8);
}
@keyframes rh-chip-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tablet-stage .street-bet .pile { animation: none; }
}
.tablet-stage .seat[data-i="0"] .street-bet {
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
}
.tablet-stage .seat[data-i="1"] .street-bet {
  left: 72%;
  bottom: calc(100% - 4px);
}
.tablet-stage .seat[data-i="2"] .street-bet {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
}
.tablet-stage .seat[data-i="3"] .street-bet {
  left: 64%;
  top: calc(100% + 4px);
}
.tablet-stage .seat[data-i="4"] .street-bet {
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
}
.tablet-stage .seat[data-i="5"] .street-bet {
  right: 64%;
  left: auto;
  top: calc(100% + 4px);
}
.tablet-stage .seat[data-i="6"] .street-bet {
  right: calc(100% + 8px);
  left: auto;
  top: 50%;
  transform: translateY(-50%);
}
.tablet-stage .seat[data-i="7"] .street-bet {
  right: 72%;
  left: auto;
  bottom: calc(100% - 4px);
}
.tablet-stage .seat[data-i="8"] .street-bet {
  left: 18%;
  bottom: calc(100% + 4px);
}

.tablet-stage .feed {
  margin: var(--rh-space-2) var(--rh-space-2) 0;
  display: flex;
  flex-direction: column;
  min-height: 24px;
}
.tablet-stage .feed span {
  font-size: var(--rh-text-xs);
  color: var(--rh-text-secondary);
  padding: var(--rh-space-2) 0;
  border-bottom: 1px solid var(--rh-border-subtle);
}
.tablet-stage .feed b {
  color: var(--rh-text-primary);
  font-weight: var(--rh-weight-semibold);
}

.tablet-stage .actions {
  display: flex;
  gap: var(--rh-space-3);
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rh-border-subtle);
  padding: var(--rh-space-4) var(--rh-space-5);
  margin: var(--rh-space-3) calc(-1 * var(--rh-space-4)) calc(-1 * var(--rh-space-4));
}
.tablet-stage .actions .act {
  flex: 1;
  min-height: 48px;
  border-radius: var(--rh-radius-md);
  border: 1px solid transparent;
  font-family: var(--rh-font-body);
  font-weight: var(--rh-weight-semibold);
  font-size: var(--rh-text-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: var(--rh-space-3) var(--rh-space-4);
}
.tablet-stage .actions .act::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.tablet-stage .actions .act.fold {
  background: transparent;
  border-color: var(--rh-danger);
  color: var(--rh-danger);
}
.tablet-stage .actions .act.fold::before {
  background-image: url('/assets/icon-06-action-fold.png');
}
.tablet-stage .actions .act.call {
  background: transparent;
  border-color: var(--rh-accent-cyan);
  color: var(--rh-accent-cyan);
}
.tablet-stage .actions .act.call::before {
  background-image: url('/assets/icon-07-action-check-call.png');
}
.tablet-stage .actions .act.raise {
  background: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
  flex: 1.3;
}
.tablet-stage .actions .act.raise::before {
  background-image: url('/assets/icon-08-action-raise.png');
}

@media (max-width: 720px) {
  .tablet-stage .seat { width: 84px; margin-left: -42px; }
  .tablet-stage .seat .nm { font-size: 11px; }
  .tablet-stage .felt-oval { inset: 16% 4% 20% 4%; }
  .tablet-stage .pcard.xl { width: 78px; height: 110px; }
  .tablet-stage .pcard.xl b { font-size: 28px; }
}
@media (min-width: 960px) {
  .tablet-stage .tablet { min-height: 640px; }
  .tablet-stage .felt-oval { inset: 10% 12% 14% 12%; }
  .tablet-stage .pcard.xl { width: 108px; height: 152px; }
}

/* ---- In-page More / Host / Ledger sheets (body overlay + tablet sheet) ---- */
#aura-overlay { min-height: 100vh; }
.dim-rest { filter: brightness(0.55); pointer-events: none; }

.sheet {
  background: var(--rh-bg-surface);
  color: var(--rh-text-secondary);
  border-radius: var(--rh-radius-xl) var(--rh-radius-xl) 0 0;
  padding: var(--rh-space-4) var(--rh-space-4) var(--rh-space-5);
  box-shadow: var(--rh-shadow-lg);
  border: 1px solid var(--rh-border-subtle);
  border-bottom: 0;
}
.sheet h2 {
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-lg);
  color: var(--rh-text-primary);
  margin: 0 0 var(--rh-space-3);
}
.more-list {
  display: flex;
  flex-direction: column;
  gap: var(--rh-space-2);
}
.more-list a {
  display: block;
  text-decoration: none;
  color: var(--rh-text-primary);
  background: var(--rh-bg-surface-overlay);
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-4);
  font-weight: var(--rh-weight-semibold);
  font-size: var(--rh-text-md);
}
.more-list a:hover { border-color: var(--rh-border-strong); }
.more-list a span {
  display: block;
  font-weight: var(--rh-weight-regular);
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
  margin-top: 2px;
}
.sheet-back {
  display: inline-block;
  margin-bottom: var(--rh-space-3);
  font-size: var(--rh-text-sm);
  color: var(--rh-text-muted);
  text-decoration: none;
}
.sheet-back:hover { color: var(--rh-text-primary); }

/* Sheet/paper layout. :is() keeps landing/create/created page-local classes untouched. */
:is(.sheet, .page-paper, #aura-overlay) .wrap {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--rh-space-7) 0 var(--rh-space-5);
}
:is(.sheet, .page-paper, #aura-overlay) .wrap-wide { width: min(880px, calc(100% - 32px)); }
:is(.sheet, .page-paper, #aura-overlay) .kicker {
  font-size: var(--rh-text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  margin: 0 0 var(--rh-space-2);
}
:is(.sheet, .page-paper, #aura-overlay) h1.page-title {
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-xl);
  font-weight: var(--rh-weight-bold);
  letter-spacing: -0.03em;
  margin: 0 0 var(--rh-space-2);
  line-height: var(--rh-leading-tight);
  color: var(--rh-text-primary);
}
:is(.sheet, .page-paper, #aura-overlay) .lede {
  color: var(--rh-text-secondary);
  margin: 0 0 var(--rh-space-5);
  max-width: 42em;
}

:is(.sheet, .page-paper, #aura-overlay) .stack { display: flex; flex-direction: column; gap: var(--rh-space-3); }
:is(.sheet, .page-paper, #aura-overlay) .row {
  display: flex;
  gap: var(--rh-space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--rh-space-3) var(--rh-space-4);
  background: var(--rh-bg-surface);
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-md);
}
:is(.sheet, .page-paper, #aura-overlay) .row .meta {
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
  word-break: break-all;
}
:is(.sheet, .page-paper, #aura-overlay) .row strong {
  display: block;
  font-weight: var(--rh-weight-semibold);
  font-size: var(--rh-text-sm);
  color: var(--rh-text-primary);
}

:is(.sheet, .page-paper, #aura-overlay) .btn.ghost {
  background: transparent;
  border-color: var(--rh-border-subtle);
  color: var(--rh-text-secondary);
}
:is(.sheet, .page-paper, #aura-overlay) .btn.ghost:hover {
  border-color: var(--rh-border-strong);
  color: var(--rh-text-primary);
}
:is(.sheet, .page-paper, #aura-overlay) .btn.clay {
  background: var(--rh-accent-cyan);
  border-color: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
}
:is(.sheet, .page-paper, #aura-overlay) .btn.clay:hover {
  background: var(--rh-accent-cyan-hi);
  box-shadow: var(--rh-shadow-glow-cyan);
}
:is(.sheet, .page-paper, #aura-overlay) .btn.danger {
  background: transparent;
  border-color: var(--rh-danger);
  color: var(--rh-danger);
}
:is(.sheet, .page-paper, #aura-overlay) .btn.danger:hover { background: var(--rh-danger-dim); }
:is(.sheet, .page-paper, #aura-overlay) .btn.wide { width: 100%; }
:is(.sheet, .page-paper, #aura-overlay) .btn.is-copied {
  background: var(--rh-success);
  border-color: var(--rh-success);
  color: var(--rh-text-on-accent);
}
:is(.sheet, .page-paper, #aura-overlay) .btn-row { display: flex; gap: var(--rh-space-3); flex-wrap: wrap; }
:is(.sheet, .page-paper, #aura-overlay) .btn-row .btn { flex: 1 1 140px; }

:is(.sheet, .page-paper, #aura-overlay) .note {
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
  margin: 0;
}
:is(.sheet, .page-paper, #aura-overlay) .note.warn { color: var(--rh-danger); }
:is(.sheet, .page-paper, #aura-overlay) .paused-note {
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
  margin: var(--rh-space-2) 0 0;
}
:is(.sheet, .page-paper, #aura-overlay) .section-label {
  font-size: var(--rh-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  margin: var(--rh-space-6) 0 var(--rh-space-3);
}

:is(.sheet, .page-paper, #aura-overlay) table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--rh-text-sm);
  background: var(--rh-bg-surface);
  border: 1px solid var(--rh-border-subtle);
}
:is(.sheet, .page-paper, #aura-overlay) table.ledger th,
:is(.sheet, .page-paper, #aura-overlay) table.ledger td {
  text-align: left;
  padding: var(--rh-space-3);
  border-bottom: 1px solid var(--rh-border-subtle);
  color: var(--rh-text-secondary);
}
:is(.sheet, .page-paper, #aura-overlay) table.ledger th {
  font-size: var(--rh-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  font-weight: var(--rh-weight-semibold);
}
:is(.sheet, .page-paper, #aura-overlay) table.ledger td.num,
:is(.sheet, .page-paper, #aura-overlay) table.ledger th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
:is(.sheet, .page-paper, #aura-overlay) table.ledger tfoot td { font-weight: var(--rh-weight-semibold); border-bottom: 0; }
:is(.sheet, .page-paper, #aura-overlay) table.ledger tr.is-you { background: var(--rh-accent-cyan-dim); }
:is(.sheet, .page-paper, #aura-overlay) table.ledger .you-tag {
  font-size: var(--rh-text-xs);
  color: var(--rh-accent-cyan);
  margin-left: var(--rh-space-1);
}
:is(.sheet, .page-paper, #aura-overlay) .cashout {
  display: flex;
  gap: var(--rh-space-2);
  justify-content: flex-end;
  align-items: center;
}
:is(.sheet, .page-paper, #aura-overlay) .cashout input { width: 88px; padding: 7px 8px; font-size: var(--rh-text-sm); }
:is(.sheet, .page-paper, #aura-overlay) .cashout .btn { min-height: 36px; padding: 6px 10px; font-size: var(--rh-text-sm); }

:is(.sheet, .page-paper, #aura-overlay) .host-list { list-style: none; padding: 0; margin: 0 0 var(--rh-space-5); }
:is(.sheet, .page-paper, #aura-overlay) .host-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-space-3);
  padding: var(--rh-space-3) 0;
  border-bottom: 1px solid var(--rh-border-subtle);
  color: var(--rh-text-secondary);
}
:is(.sheet, .page-paper, #aura-overlay) .blinds-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rh-space-3);
  margin: var(--rh-space-3) 0 var(--rh-space-5);
}

:is(.sheet, .page-paper, #aura-overlay) .error-card {
  width: min(460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18vh 0 var(--rh-space-5);
}
:is(.sheet, .page-paper, #aura-overlay) .error-card h1 {
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-xl);
  margin: 0 0 var(--rh-space-2);
  letter-spacing: -0.03em;
  color: var(--rh-text-primary);
}

:is(.sheet, .page-paper, #aura-overlay) .token-field {
  display: flex;
  gap: var(--rh-space-3);
  align-items: center;
}
:is(.sheet, .page-paper, #aura-overlay) .token-field input {
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 0.06em;
}
:is(.sheet, .page-paper, #aura-overlay) input[type="password"] {
  width: 100%;
  background: var(--rh-bg-surface-overlay);
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-sm);
  color: var(--rh-text-primary);
  font-family: var(--rh-font-body);
  font-size: var(--rh-text-base);
  padding: var(--rh-space-3) var(--rh-space-4);
}
:is(.sheet, .page-paper, #aura-overlay) input[type="password"]:focus {
  outline: none;
  border-color: var(--rh-accent-cyan);
  box-shadow: var(--rh-shadow-glow-cyan);
}

/* ==========================================================================
   T7 — Live phone chrome
   Parallel to T6 .tablet-stage. Do not extract.
   Playing cards stay .pcard (reefhouse .card is a panel).
   ========================================================================== */

.phone-stage[hidden],
.phone-stage [hidden] {
  display: none !important;
}

.phone-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 0;
}

.phone-stage .phone-wrap {
  position: relative;
  width: min(430px, 100%);
}

.phone-stage .phone-wrap .phone { width: 100%; }

.phone-stage .phone {
  width: min(430px, 100%);
  min-height: 780px;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--rh-text-primary);
  border-radius: var(--rh-radius-xl);
  border: 1px solid var(--rh-border-subtle);
  box-shadow: var(--rh-shadow-lg);
  background-color: var(--rh-bg-deep);
  background-image: url('/assets/bg-03-table-surface.jpg'),
    repeating-linear-gradient(135deg, var(--rh-accent-cyan-dim) 0 12px, var(--rh-bg-deep) 12px 24px);
  background-size: cover;
  background-position: center;
}

.phone-stage .phone.is-dim { filter: saturate(0.7) brightness(0.62); }

.phone-stage .phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
}

.phone-stage .phone-top .room {
  display: inline-flex;
  align-items: center;
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-semibold);
  letter-spacing: 0.08em;
  padding: 2px var(--rh-space-2);
  border-radius: var(--rh-radius-pill);
  background: var(--rh-bg-surface-overlay);
  color: var(--rh-text-primary);
  border: 1px solid var(--rh-border-subtle);
}

.phone-stage .more-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--rh-radius-pill);
  border: 1px solid var(--rh-border-subtle);
  background: transparent;
  color: var(--rh-text-secondary);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.phone-stage .more-btn:hover {
  border-color: var(--rh-border-strong);
  color: var(--rh-text-primary);
}

.phone-stage .live-ring {
  display: flex;
  justify-content: space-around;
  padding: 6px 10px 0;
  gap: 6px;
}

.phone-stage .seat-chip {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 8px 4px 7px;
  min-width: 0;
  border-radius: var(--rh-radius-lg);
  background: var(--rh-bg-surface-overlay);
  border: 1px solid var(--rh-border-subtle);
  color: var(--rh-text-primary);
}

.phone-stage .seat-chip .bust {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  border-radius: var(--rh-radius-pill);
  object-fit: cover;
  border: 1px solid var(--rh-border-subtle);
  background: var(--rh-bg-deep);
}

.phone-stage .seat-chip .nm {
  display: block;
  font-weight: var(--rh-weight-semibold);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-stage .seat-chip .st {
  display: block;
  font-family: var(--rh-font-display);
  font-size: 15px;
}

.phone-stage .seat-chip .role {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.phone-stage .seat-chip.is-turn {
  border-color: var(--rh-accent-cyan);
  box-shadow: var(--rh-shadow-glow-cyan);
}

.phone-stage .seat-chip .seat-bet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
  font-family: var(--rh-font-display);
  font-size: 12px;
  font-weight: var(--rh-weight-bold);
  color: var(--rh-text-primary);
  letter-spacing: 0.01em;
  animation: rh-chip-in 280ms ease-out both;
}

.phone-stage .seat-chip .seat-bet img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 1px 2px rgba(8, 12, 24, 0.5));
}

@media (prefers-reduced-motion: reduce) {
  .phone-stage .seat-chip .seat-bet { animation: none; }
}

.phone-stage .live-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 0;
  text-align: center;
}

.phone-stage .board {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.phone-stage .pcard {
  width: 62px;
  height: 88px;
  background: #f4fbfc;
  color: #0c3b42;
  border-radius: 7px;
  box-shadow: var(--rh-shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px 7px;
  font-family: var(--rh-font-display);
  line-height: 1;
  user-select: none;
}

.phone-stage .pcard b { font-size: 22px; font-weight: var(--rh-weight-bold); }
.phone-stage .pcard i { font-style: normal; font-size: 18px; margin-top: 2px; }
.phone-stage .pcard.red { color: #c81c3f; }
.phone-stage .pcard.back {
  background-image: url('/assets/card-01-back.png'),
    repeating-linear-gradient(135deg, var(--rh-accent-cyan-dim) 0 6px, var(--rh-bg-surface-overlay) 6px 12px);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rh-border-strong);
  color: transparent;
}
.phone-stage .pcard.back b,
.phone-stage .pcard.back i { display: none; }
.phone-stage .pcard.empty {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--rh-border-strong);
}

.phone-stage .pot-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  margin: 12px 0 4px;
}

.phone-stage .pot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--rh-space-2);
  font-family: var(--rh-font-display);
  font-size: 34px;
  font-weight: var(--rh-weight-bold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 4px;
}

.phone-stage .pot-stack .pot { margin: 0; }

.phone-stage .pot::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url('/assets/icon-05-stat-chips.png') center / contain no-repeat;
  flex: none;
}

.phone-stage .pot small {
  display: block;
  width: 100%;
  font-family: var(--rh-font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  font-weight: var(--rh-weight-medium);
  margin-bottom: 4px;
}

.phone-stage .street-now {
  font-family: var(--rh-font-display);
  font-size: 26px;
  font-weight: var(--rh-weight-bold);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--rh-text-primary);
}

.phone-stage .street-now small {
  display: block;
  font-family: var(--rh-font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  font-weight: var(--rh-weight-medium);
  margin-bottom: 4px;
}

.phone-stage .status-line {
  margin-top: 10px;
  font-size: 16px;
  font-weight: var(--rh-weight-semibold);
  color: var(--rh-text-primary);
}

.phone-stage .status-line a { color: inherit; text-decoration: none; }

.phone-stage .status-line.yours { color: var(--rh-accent-cyan); }

.phone-stage .timer {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--rh-font-display);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  padding: 2px 8px;
  border: 1px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-pill);
}

.phone-stage .legal-line {
  font-size: 13px;
  color: var(--rh-text-secondary);
  margin: 0 0 8px;
}

.phone-stage .hole {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px 12px;
}

.phone-stage .you-bar {
  text-align: center;
  font-size: 13px;
  color: var(--rh-text-secondary);
  padding-bottom: 8px;
}

.phone-stage .you-bar strong {
  font-family: var(--rh-font-display);
  font-size: 16px;
  color: var(--rh-text-primary);
}

.phone-stage .actions {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rh-border-subtle);
  padding: 10px 12px 22px;
}

.phone-stage .actions .act {
  flex: 1;
  min-height: 56px;
  border-radius: var(--rh-radius-md);
  border: 1px solid transparent;
  font-family: var(--rh-font-body);
  font-weight: var(--rh-weight-bold);
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: var(--rh-space-3) var(--rh-space-4);
}

.phone-stage .actions .act::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.phone-stage .actions .act.fold {
  background: transparent;
  border-color: var(--rh-danger);
  color: var(--rh-danger);
}
.phone-stage .actions .act.fold::before {
  background-image: url('/assets/icon-06-action-fold.png');
}

.phone-stage .actions .act.call {
  background: transparent;
  border-color: var(--rh-accent-cyan);
  color: var(--rh-accent-cyan);
}
.phone-stage .actions .act.call::before {
  background-image: url('/assets/icon-07-action-check-call.png');
}

.phone-stage .actions .act.raise {
  background: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
}
.phone-stage .actions .act.raise::before {
  background-image: url('/assets/icon-08-action-raise.png');
}

.phone-stage .actions.solo { padding-bottom: 28px; }

.phone-stage .actions .act.allin {
  background: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
  font-size: 20px;
  min-height: 64px;
}
.phone-stage .actions .act.allin::before {
  background-image: url('/assets/icon-08-action-raise.png');
}

.phone-stage .sheet {
  padding: var(--rh-space-4) var(--rh-space-4) var(--rh-space-5);
}

.phone-stage .presets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-stage .preset {
  text-align: center;
  text-decoration: none;
  color: var(--rh-text-primary);
  background: var(--rh-bg-surface-overlay);
  border: 1.5px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-md);
  padding: 10px 6px 8px;
}

.phone-stage .preset em {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
}

.phone-stage .preset strong {
  font-family: var(--rh-font-display);
  font-size: 22px;
  font-weight: var(--rh-weight-bold);
  color: var(--rh-text-primary);
}

.phone-stage .preset.is-on {
  border-color: var(--rh-accent-cyan);
  box-shadow: var(--rh-shadow-glow-cyan);
}

.phone-stage .illegal {
  color: var(--rh-danger);
  font-size: 13px;
  font-weight: var(--rh-weight-semibold);
  margin: 8px 0 0;
  min-height: 1.2em;
}

.phone-stage .sheet .custom-amt { margin: 8px 0 12px; }

.phone-stage .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 40;
  text-align: center;
  padding: 24px;
  background: rgba(5, 11, 20, 0.72);
  border-radius: var(--rh-radius-xl);
}

.phone-stage .overlay h1 {
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-xl);
  margin: 0 0 8px;
  color: var(--rh-text-primary);
}

.phone-stage .overlay p {
  color: var(--rh-text-secondary);
  margin: 0;
}

/* Rec 16: Live stays a phone frame on wide desktops. Do not restyle live-*.html into Standard. */
@media (min-width: 960px) {
  .phone-stage { padding-top: 28px; padding-bottom: 8px; }
  .phone-stage .phone-wrap { width: 430px; max-width: 430px; flex-shrink: 0; }
  .phone-stage .phone { width: 430px; max-width: 430px; }
}

/* ==========================================================================
   T8 — Sit dock + paper/sheet .btn fill
   Sit-dock rules stay under .tablet-stage.
   Do not extract T6/T7. .choice.is-default is cyan.
   ========================================================================== */

.tablet-stage .sit-dock {
  background: var(--rh-bg-surface);
  color: var(--rh-text-secondary);
  border-radius: var(--rh-radius-xl) var(--rh-radius-xl) 0 0;
  padding: var(--rh-space-4) var(--rh-space-4) var(--rh-space-5);
  margin: var(--rh-space-3) calc(-1 * var(--rh-space-4)) 0;
}
.tablet-stage .sit-dock .kicker {
  font-size: var(--rh-text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rh-text-muted);
  margin: 0 0 var(--rh-space-2);
}
.tablet-stage .sit-dock .page-title {
  font-family: var(--rh-font-display);
  color: var(--rh-text-primary);
}
.tablet-stage .sit-dock .note {
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
  margin: 0;
}
.tablet-stage .sit-dock .note.warn { color: var(--rh-danger); }
.tablet-stage .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rh-space-3);
}
.tablet-stage .choice {
  display: block;
  text-decoration: none;
  color: var(--rh-text-primary);
  border: 1.5px solid var(--rh-border-subtle);
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-4) var(--rh-space-3);
  text-align: center;
  background: var(--rh-bg-surface-overlay);
}
.tablet-stage .choice.is-default {
  background: var(--rh-accent-cyan);
  border-color: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
}
.tablet-stage .choice small {
  display: block;
  font-weight: var(--rh-weight-regular);
  font-size: var(--rh-text-xs);
  margin-top: var(--rh-space-1);
  opacity: 0.8;
}
.tablet-stage .choice.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.tablet-stage .buyin {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--rh-space-3);
  align-items: end;
  margin: var(--rh-space-2) 0 0;
}
.tablet-stage #name-field-wrap[hidden] { display: none !important; }
.tablet-stage .buyin:has(#name-field-wrap[hidden]) {
  grid-template-columns: minmax(120px, 200px);
}
.tablet-stage .name-set {
  font-size: var(--rh-text-sm);
  color: var(--rh-text-secondary);
}
.tablet-stage .name-set strong {
  font-family: var(--rh-font-display);
  font-size: var(--rh-text-lg);
  color: var(--rh-text-primary);
}
.tablet-stage .sit-dock label.field {
  display: flex;
  flex-direction: column;
  gap: var(--rh-space-2);
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-semibold);
  color: var(--rh-text-secondary);
  margin-bottom: 0;
}

:is(.sheet, .page-paper, #aura-overlay) .btn:not(.ghost):not(.clay):not(.danger) {
  background: var(--rh-accent-cyan);
  border-color: var(--rh-accent-cyan);
  color: var(--rh-text-on-accent);
}
:is(.sheet, .page-paper, #aura-overlay) .btn:not(.ghost):not(.clay):not(.danger):hover {
  background: var(--rh-accent-cyan-hi);
  box-shadow: var(--rh-shadow-glow-cyan);
}
