:root {
  --bg: #0A0908;
  --bg-2: #14120F;
  --felt: #1F5A3D;
  --felt-dark: #103826;
  --rail: #2A1A10;
  --rail-hi: #5C3A20;
  --gold: #D8A93B;
  --gold-dim: #9C7A2E;
  --paper: #F4EFE4;
  --ink: #14110D;
  --red: #C8322E;
  --text: #F1ECE2;
  --muted: #A29B8E;
  --line: rgba(216, 169, 59, 0.25);
  --danger: #D9574A;
  --ok: #6FCF97;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22,.8,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1400px 800px at 50% 20%, #1A1410 0%, var(--bg) 70%);
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: var(--gold); }

.btn {
  appearance: none; border: 1px solid var(--gold-dim); background: transparent; color: var(--text);
  padding: 10px 18px; border-radius: 6px; cursor: pointer; letter-spacing: .02em;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--gold); background: rgba(212,178,94,.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.primary { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.btn.primary:hover { background: #E4C46F; }
.btn.danger { border-color: var(--danger); color: #F1A79F; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.icon { padding: 8px 10px; }

input[type=text], select {
  font-size: 16px; /* prevents phone browsers from zooming into fields */
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
}
select { padding-right: 28px; }

/* ---------- Home ---------- */
.home { max-width: 1240px; margin: 0 auto; padding: 18px 28px 60px; overflow-x: hidden; }
@media (max-width: 600px) { .home { padding: 12px 16px 40px; } .hero h1 { font-size: 52px; } .cta { min-width: 0; width: 100%; } .steps-wrap { margin: 30px -16px 0; padding: 24px 16px 30px; } }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo .mark { width: 54px; height: 54px; }
.logo .word { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .06em; color: var(--gold); line-height: 1; }
.logo .sub { font-family: var(--display); font-size: 11px; letter-spacing: .32em; color: var(--paper); display: flex; align-items: center; gap: 8px; }
.logo .sub::before, .logo .sub::after { content: ""; height: 1px; width: 22px; background: var(--red); }
.nav .links { display: flex; gap: 26px; margin-left: auto; margin-right: 24px; }
.nav .links a { color: var(--text); text-decoration: none; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.nav .links a:hover { color: var(--gold); }
.hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: center; margin-top: 24px; }
.eyebrow { font-family: var(--display); letter-spacing: .34em; font-size: 13px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 6vw, 88px); line-height: .96; margin: 0 0 22px; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 .gold { color: var(--gold); display: block; }
.hero p { font-size: 20px; line-height: 1.45; margin: 0 0 26px; max-width: 42ch; color: var(--text); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 8px; border: 1px solid var(--gold-dim); background: transparent; color: var(--text); cursor: pointer; text-align: left; min-width: 250px; transition: transform .12s, background .15s, border-color .15s; }
.cta:hover { transform: translateY(-2px); border-color: var(--gold); }
.cta.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cta.gold:hover { background: #E7BB4E; }
.cta .t { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.cta .d { font-size: 14px; opacity: .85; }
.cta svg { width: 30px; height: 30px; flex: none; }
.fine { margin-top: 20px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 14px; align-items: center; }
.fine span::before { content: "·"; margin-right: 14px; color: var(--gold-dim); }
.fine span:first-child::before { content: none; }
.preview { position: relative; width: 100%; aspect-ratio: 870/565; border-radius: 10px; overflow: hidden; box-shadow: 0 50px 80px rgba(0,0,0,.75); }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px 30px rgba(10,9,8,.9); pointer-events: none; }
.preview .table-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview .ptile { position: absolute; transform: translate(-50%,-50%); width: 15%; }
.preview .ptile .ph { aspect-ratio: 4/3; border-radius: 8px; border: 1.5px solid rgba(216,169,59,.55); background: linear-gradient(160deg, #2B1F18, #0F0B08); position: relative; overflow: hidden; }
.preview .ptile .ph::after { content: ""; position: absolute; left: 50%; top: 58%; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 50% 35%, #5C4A3A 0 32%, transparent 33%), radial-gradient(ellipse at 50% 95%, #4A3A2C 0 45%, transparent 46%); }
.preview .ptile .pn { position: absolute; top: 5px; left: 6px; font-family: var(--display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: rgba(0,0,0,.6); padding: 1px 6px; border-radius: 3px; }
.preview .ptile .ps { margin: -10px auto 0; width: max-content; font-family: var(--mono); font-size: 11px; color: var(--paper); background: rgba(0,0,0,.75); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 1px 12px; position: relative; }
.preview .pboard { position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); display: flex; gap: 1%; width: 30%; }
.preview .pboard .card { flex: 1; }
.preview .ppot { position: absolute; left: 50%; top: 30%; transform: translate(-50%,-50%); text-align: center; }
.preview .ppot .l { font-family: var(--display); font-size: 10px; letter-spacing: .3em; color: var(--paper); }
.preview .ppot .a { font-family: var(--mono); font-size: 16px; color: var(--paper); background: rgba(0,0,0,.5); border-radius: 12px; padding: 2px 14px; border: 1px solid rgba(244,239,228,.3); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); min-width: 0; border: 1px solid var(--line); border-radius: 12px; margin-top: 44px; background: rgba(20,18,15,.7); }
.feature { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature svg { width: 44px; height: 44px; flex: none; }
.feature .t { font-family: var(--display); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.feature .d { font-size: 14px; color: var(--muted); line-height: 1.4; }
.steps-wrap { margin: 40px -28px 0; padding: 30px 28px 40px; background: linear-gradient(180deg, rgba(60,10,10,.35), rgba(30,6,6,.5)); border-top: 1px solid rgba(200,50,46,.25); }
.steps-wrap h2 { text-align: center; font-family: var(--display); font-weight: 500; letter-spacing: .34em; font-size: 15px; color: var(--gold); text-transform: uppercase; margin: 0 0 22px; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; max-width: 1240px; margin: 0 auto; }
.step { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,9,8,.8); }
.step .n { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: #FF6B64; flex: none; }
.step .t { font-family: var(--display); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.step .d { font-size: 14px; color: var(--muted); line-height: 1.4; }
.arrow { color: var(--gold); font-size: 26px; }
.features.roster { margin-top: 0; grid-template-columns: repeat(5, 1fr); }
.feature { min-width: 0; }
.foot { text-align: center; font-family: var(--display); letter-spacing: .3em; font-size: 12px; text-transform: uppercase; color: var(--gold); margin-top: 34px; }
.foot span { color: var(--muted); margin-left: 24px; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: grid; place-items: center; z-index: 50; overflow-y: auto; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.7); }
.modal h3 { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 4px; }
.modal .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--display); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.opp-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.opp { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.opp .portrait { width: 34px; height: 34px; }
.opp .nm { flex: 1; }
.err { color: #F1A79F; font-size: 14px; min-height: 18px; }
@media (max-width: 900px) { .hero, .features, .features.roster { grid-template-columns: 1fr; } .feature { border-right: 0; border-bottom: 1px solid var(--line); } .steps { grid-template-columns: 1fr; } .arrow { display: none; } .nav .links { display: none; } }

/* ---------- Table page ---------- */
.stage { display: grid; grid-template-rows: 48px 1fr auto; height: 100vh; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.topbar .brand-sm { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .08em; color: var(--gold) !important; text-transform: uppercase; }
.topbar .info { color: var(--muted); font-size: 13px; display: flex; gap: 16px; }
.topbar .info b { color: var(--text); font-weight: 500; }
.topbar .spacer { flex: 1; }
.code { font-family: var(--mono); letter-spacing: .12em; color: var(--gold); }

.arena { position: relative; display: grid; place-items: center; padding: 8px 16px 0; min-height: 0; overflow: hidden;
  background:
    radial-gradient(420px 260px at 12% 18%, rgba(255,170,70,.18), transparent 70%),
    radial-gradient(360px 220px at 88% 14%, rgba(255,120,60,.14), transparent 70%),
    radial-gradient(900px 420px at 50% 100%, rgba(216,169,59,.10), transparent 70%),
    radial-gradient(6px 6px at 20% 30%, rgba(255,200,120,.55), transparent 60%),
    radial-gradient(9px 9px at 27% 22%, rgba(255,160,90,.45), transparent 60%),
    radial-gradient(5px 5px at 74% 26%, rgba(255,210,140,.5), transparent 60%),
    radial-gradient(10px 10px at 81% 33%, rgba(255,140,80,.4), transparent 60%),
    radial-gradient(7px 7px at 60% 12%, rgba(255,190,110,.45), transparent 60%),
    radial-gradient(5px 5px at 40% 9%, rgba(255,210,140,.45), transparent 60%),
    linear-gradient(180deg, #17110C 0%, #0C0907 45%, #060504 100%); }
.arena::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 220px 60px rgba(0,0,0,.85); }
.table-wrap { position: relative; width: min(100%, calc((100vh - 170px) * 1200 / 720)); aspect-ratio: 1200 / 720; perspective: 1500px; perspective-origin: 50% 20%; }
.felt-layer { position: absolute; inset: 0; transform-origin: 50% 70%; transform: rotateX(30deg) translateY(4%) scale(1.06); transform-style: preserve-3d; }
.felt-layer .table-svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 40px 40px rgba(0,0,0,.7)); }
.table-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.seat { position: absolute; width: 16%; transform: translate(-50%, -50%) scale(var(--sc, 1)); transform-origin: 50% 50%; display: flex; flex-direction: column; align-items: center; gap: 0; transition: opacity .35s; z-index: 2; }
.seat.empty { opacity: .55; }
.seat.out { opacity: .38; }
.seat .tile { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: #0A0E0C; border: 1.5px solid rgba(216,169,59,.55); box-shadow: 0 18px 30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.6); transition: border-color .3s, box-shadow .3s; }
.seat .tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.seat .tile video.mirror { transform: scaleX(-1); }
.seat .tile .portrait { position: absolute; left: 50%; top: 56%; width: 62%; height: 62%; transform: translate(-50%,-50%); }
.seat .tile .media { position: absolute; inset: 0; background: radial-gradient(70% 60% at 30% 20%, rgba(255,170,90,.28), transparent 70%), radial-gradient(50% 50% at 80% 30%, rgba(200,70,50,.18), transparent 70%), linear-gradient(160deg, #2A1D14 0%, #120D09 60%, #080605 100%); }
.seat .tile .media::before { content: ""; position: absolute; left: 0; right: 0; top: 34%; height: 1px; background: rgba(216,169,59,.25); box-shadow: 0 -18px 0 rgba(216,169,59,.15); }
.seat .tile .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 34px; color: var(--paper); }
.seat.active .tile { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,178,94,.25), 0 0 34px rgba(212,178,94,.45); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(212,178,94,.2), 0 0 24px rgba(212,178,94,.3); } 50% { box-shadow: 0 0 0 4px rgba(212,178,94,.4), 0 0 40px rgba(212,178,94,.6); } }
.seat.folded .tile { filter: grayscale(.7) brightness(.6); }
.seat .timer { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--gold); width: 100%; transform-origin: left; transition: transform 1s linear; }
.seat .nameplate { display: contents; }
.seat .nameplate .nm { position: absolute; top: 5px; left: 5px; z-index: 3; font-family: var(--display); font-size: 10px; max-width: 48%; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: rgba(0,0,0,.65); padding: 2px 7px; border-radius: 3px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .nameplate .stack { margin-top: -9px; z-index: 3; font-family: var(--mono); font-size: 12px; color: var(--paper); background: rgba(0,0,0,.85); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 1px 12px; }
.seat .badges { position: absolute; top: 5px; right: 5px; display: flex; gap: 4px; }
.badge { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,.6); color: var(--paper); border: 1px solid rgba(255,255,255,.15); }
.badge.ai { color: var(--gold); border-color: var(--gold-dim); }
.badge.conservative { color: #9FC5EA; } .badge.aggressive { color: #F1A79F; } .badge.balanced { color: var(--gold); }
.badge.status { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.badge.allin { background: var(--red); color: #fff; border-color: #E5655C; }
.badge.mic { position: absolute; bottom: 6px; right: 6px; }
.speaking .tile { border-color: var(--ok); }
.seat .finish { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: var(--paper); background: rgba(0,0,0,.55); }

/* hole cards attached to seats */
.seat .hole { position: absolute; display: flex; gap: 4px; pointer-events: none; z-index: 4; }
.seat .hole .card { flex: 1; min-width: 0; }
.card { width: 100%; aspect-ratio: 100/140; position: relative; transform-style: preserve-3d; transition: transform .38s var(--ease), opacity .35s; }
.card .card-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 9%; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.card .card-face.front { transform: rotateY(180deg); }
.card.flipped { transform: rotateY(180deg); }
.card.dealing { transition: none; }
.card.folded-away { opacity: 0; transform: translateY(-30px) rotate(8deg); }
.card-paper { fill: var(--paper); stroke: #C9BB9A; stroke-width: 1; }
.card-face.red .idx, .card-face.red .pip-sm, .card-face.red .pip-lg { fill: var(--red); }
.card-face.black .idx, .card-face.black .pip-sm, .card-face.black .pip-lg { fill: var(--ink); }
.card-face .idx { font-family: var(--display); font-weight: 600; }
.card-face .pip-sm, .card-face .pip-lg { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", var(--ui); }
.card.win .card-face.front { filter: drop-shadow(0 0 6px var(--gold)) drop-shadow(0 0 2px var(--gold)); }
.card.win .card-paper { stroke: var(--gold); stroke-width: 3; }
.card.dim { opacity: .45; }

.board { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: flex; gap: 1.4%; width: 36%; }
.board .slot { flex: 1; aspect-ratio: 100/140; border-radius: 8px; border: 1px dashed rgba(243,235,214,.18); }
.board .slot .card { position: absolute; inset: 0; }
.board .slot { position: relative; }

.pot { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pot .label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--paper); opacity: .8; }
.pot .amt { font-family: var(--mono); color: var(--paper); font-size: 20px; background: rgba(0,0,0,.45); padding: 2px 16px; border-radius: 14px; border: 1px solid rgba(243,235,214,.3); }

.bet { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-50%, -50%); transition: left .4s var(--ease), top .4s var(--ease), opacity .3s; }
.bet .amt { font-family: var(--mono); font-size: 12px; color: var(--paper); background: rgba(0,0,0,.45); padding: 1px 7px; border-radius: 10px; }
.chips { position: relative; width: 30px; height: 30px; }
.chip { position: absolute; left: 0; width: 30px; height: 30px; border-radius: 50%; border: 3.5px dashed rgba(255,255,255,.8); box-shadow: 0 2px 0 rgba(0,0,0,.7), 0 3px 4px rgba(0,0,0,.5), inset 0 0 0 4px rgba(0,0,0,.28); }
.chip.c1 { background: #E9E4D6; } .chip.c5 { background: #B8322A; } .chip.c25 { background: #2E8B57; } .chip.c100 { background: #1B1B1B; }
.chip.c500 { background: #6A3FA0; } .chip.c1000 { background: #D9B300; } .chip.c5000 { background: #C46B2A; }

.dealer-btn { position: absolute; width: 3.2%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; transform: translate(-50%, -50%); transition: left .5s var(--ease), top .5s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.6); border: 2px solid var(--gold); }

.banner { position: absolute; left: 50%; top: 21%; z-index: 5; background: rgba(0,0,0,.55); padding: 6px 22px; border-radius: 10px; border: 1px solid var(--line); transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity .3s; }
.banner.show { opacity: 1; }
.banner .h { font-family: var(--display); font-size: clamp(20px, 3.2vw, 36px); color: var(--paper); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.banner .s { font-size: 13px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Controls ---------- */
.controls { display: flex; align-items: center; gap: 14px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); min-height: 84px; flex-wrap: wrap; }
.controls .me { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; white-space: nowrap; }
.controls .spacer { flex: 1; }
.actions-bar { display: flex; gap: 10px; align-items: center; opacity: .35; pointer-events: none; transition: opacity .2s; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.actions-bar.on { opacity: 1; pointer-events: auto; }
.actions-bar .btn { min-width: 96px; padding: 12px 16px; white-space: nowrap; }
.actions-bar .btn.fold { border-color: rgba(217,87,74,.5); }
.actions-bar .btn.fold:hover { background: rgba(217,87,74,.12); border-color: var(--danger); }
.raise-box { display: flex; flex-direction: column; gap: 6px; }
.raise-box .presets { display: flex; gap: 4px; }
.raise-box .presets button { font-size: 11px; padding: 3px 8px; }
.raise-box input[type=range] { width: 200px; accent-color: var(--gold); }
.raise-box .amt { font-family: var(--mono); color: var(--gold); text-align: center; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- Overlays ---------- */
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; overflow-y: auto; background: rgba(5,8,7,.72); backdrop-filter: blur(2px); z-index: 20; }
.overlay .card-panel { max-height: calc(100dvh - 24px); overflow-y: auto; width: min(560px, 92vw); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.overlay h2 { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 4px; }
.overlay .sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.lobby-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.lobby-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; }
.lobby-row .portrait, .lobby-row .initial { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); background: #1E2A24; }
.lobby-row .nm { flex: 1; }
.lobby-row .you { color: var(--gold); font-size: 12px; }
.invite { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.invite input { flex: 1; font-family: var(--mono); font-size: 13px; }

/* ---------- Chat drawer ---------- */
.chat { position: absolute; right: 0; top: 0; bottom: 0; width: 280px; background: rgba(8,12,10,.92); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); z-index: 15; }
.chat.open { transform: none; }
.chat .log { flex: 1; overflow: auto; padding: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.chat .log .m b { color: var(--gold); font-weight: 500; }
.chat .log .sys { color: var(--muted); font-style: italic; }
.chat form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chat form input { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); background: #2A1A1A; border: 1px solid var(--danger); color: #F7D7D2; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 40; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
@media (max-width: 900px) {
  .stage { grid-template-rows: 44px 1fr auto; }
  .seat { width: 20%; }
  .controls { flex-wrap: wrap; }
  .raise-box input[type=range] { width: 140px; }
  .topbar .info { display: none; }
}

.seat .tile img.face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lobby-row img.face-sm, .opp img.face-sm { width: 46px; height: 34px; object-fit: cover; border-radius: 4px; border: 1px solid var(--gold-dim); }

/* ---------- Phone layout ---------- */
@media (max-width: 900px) {
  .topbar { height: 40px; padding: 0 10px; gap: 8px; }
  .topbar .brand-sm { font-size: 16px; }
  .topbar .btn.small { padding: 4px 8px; font-size: 12px; }
  #copy-link { display: none; }
  .stage { grid-template-rows: 40px 1fr auto; }
  .arena { padding: 4px 4px 0; }
  .controls { padding: 6px 8px 10px; gap: 6px; min-height: 0; }
  .controls .me { gap: 4px; font-size: 12px; width: 100%; justify-content: space-between; }
  .controls .me .btn.small { padding: 5px 8px; font-size: 12px; }
  #music-vol { display: none !important; }
  .controls .spacer { display: none; }
  .actions-bar { width: 100%; gap: 6px; margin-left: 0; justify-content: stretch; }
  .actions-bar .btn { min-width: 0; flex: 1; padding: 12px 6px; font-size: 15px; }
  .raise-box { width: 100%; order: -1; flex-direction: row; align-items: center; gap: 6px; }
  .raise-box .presets { gap: 3px; }
  .raise-box .presets button { padding: 3px 6px; font-size: 10px; }
  .raise-box .presets button[data-preset="0.75"], .raise-box .presets button[data-preset="0.5"] { display: none; }
  .raise-box input[type=range] { width: auto; flex: 1; min-width: 60px; }
  .raise-box .amt { font-size: 12px; white-space: nowrap; }
  .seat .nameplate .nm { font-size: 9px; padding: 1px 5px; }
  .seat .nameplate .stack { font-size: 11px; padding: 0 9px; }
  .badge { font-size: 8px; padding: 1px 4px; }
  .chat { width: min(280px, 85vw); }
  .banner .h { font-size: 18px; } .banner .s { font-size: 10px; }
  .pot .amt { font-size: 15px; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .table-wrap { width: min(100%, calc((100vh - 108px) * 1200 / 720)); }
  .seat { width: 15%; }
  .controls { flex-wrap: nowrap; padding: 5px 8px 7px; }
  .controls .me { width: auto; }
  #sound-btn, #music-btn, #status-hint { display: none; }
  .actions-bar { flex-wrap: nowrap; }
  .raise-box { order: 0; width: auto; flex: 1.4; }
  .actions-bar .btn { padding: 10px 6px; font-size: 14px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .table-wrap { width: min(100%, calc((100vh - 200px) * 720 / 1200)); aspect-ratio: 720 / 1200; perspective: 1100px; perspective-origin: 50% 25%; }
  .felt-layer { transform: rotateX(18deg) translateY(2%) scale(1.02); transform-origin: 50% 60%; }
  .felt-layer .table-svg { width: 166.7%; height: 60%; left: -33.35%; top: 20%; transform: rotate(90deg); }
  .seat { width: 30%; }
  .board { width: 92%; top: 50%; gap: 1.5%; }
  .pot { top: 40%; }
  .pot .label { font-size: 9px; }
}

.seat .tile .placeholder.enable { flex-direction: column; gap: 6px; padding: 8px; text-align: center; font-family: var(--ui); font-size: 11px; color: var(--muted); }
.seat .tile .placeholder.enable .why { line-height: 1.3; }

/* ---------- Radio ---------- */
.radio { display: flex; align-items: center; gap: 8px; padding: 3px 6px 3px 10px; border: 1px solid var(--line); border-radius: 20px; background: rgba(0,0,0,.35); cursor: pointer; max-width: 340px; }
.radio .dot { width: 8px; height: 8px; border-radius: 50%; background: #555; flex: none; }
.radio.live .dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: onair 1.6s ease-in-out infinite; }
@keyframes onair { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.radio .txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.radio .st { font-family: var(--display); font-size: 9px; letter-spacing: .22em; color: var(--gold); }
.radio .tt { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.radio .btn.icon { padding: 3px 7px; font-size: 10px; }
@media (max-width: 900px) { .radio { max-width: 46vw; } .radio .tt { max-width: 30vw; font-size: 11px; } }
