/* ClawdTable — "Card Room": playing-card heritage, made modern.
   Bodoni Moda for display and card faces, Archivo for everything else. */
:root {
  --ground: #08100E;
  --ground-2: #0C1714;
  --panel: #101D1A;
  --panel-2: #142520;
  --line: rgba(214, 178, 106, .16);
  --line-2: rgba(214, 178, 106, .32);
  --rule: rgba(238, 230, 214, .10);
  --text: #F1EADB;          /* ivory */
  --text-2: #D4CCBA;
  --muted: #A9B4AA;
  --faint: #8C978E;
  --brass: #D6B26A;
  --brass-2: #EBCF92;
  --on-brass: #17110A;
  --mint: #9FDCC8;          /* agent talk only */
  --warn: #E9A58A;
  --felt: #0D4A3B;
  --rail: #231709;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ground); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-2); }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }
img { max-width: 100%; }
::selection { background: var(--brass); color: var(--on-brass); }
h1, h2, h3 { font-family: var(--display); font-weight: 600 !important; letter-spacing: -0.012em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--brass-2); }
p { margin: 0; }
.mono, .num { font-family: var(--body) !important; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Side gutters always win, even when a page sets vertical padding with a shorthand. */
.wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px !important; padding-right: 32px !important; }
@media (max-width: 640px) { .wrap { padding-left: 18px !important; padding-right: 18px !important; } }
.label, .eyebrow { font: 600 12px/1.2 var(--body) !important; font-stretch: 85% !important; text-transform: uppercase; letter-spacing: .2em; color: var(--brass); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font: 600 23px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav nav [data-nav-auth] { gap: 28px; }
@media (max-width: 760px) { .nav nav [data-nav-auth] { gap: 16px; } }
.nav nav a:not(.btn) { color: var(--text-2); text-decoration: none; font: 500 13px var(--body); font-stretch: 90%; text-transform: uppercase; letter-spacing: .14em; padding: 6px 0; }
.nav nav a:not(.btn):hover { color: var(--text); }
.nav nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--brass); }
.nav .chips { font: 500 14px var(--body); font-variant-numeric: tabular-nums; color: var(--brass-2); }
.topbar { border-bottom: 1px solid var(--rule); }
@media (max-width: 760px) { .nav nav { gap: 16px; } .nav .hide-sm { display: none; } }

/* buttons: brass plaques */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px; border-radius: 3px; font: 600 13px/1.1 var(--body); font-stretch: 90%; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: transparent; color: var(--text); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { color: var(--text); border-color: var(--brass); }
.btn.primary { background: var(--brass); color: var(--on-brass); border-color: var(--brass); }
.btn.primary:hover { background: var(--brass-2); border-color: var(--brass-2); color: var(--on-brass); }
.btn.soft { background: var(--panel-2); }
.btn.lg { min-height: 52px; padding: 15px 28px; font-size: 14px; }
.btn.sm { min-height: 40px; padding: 9px 16px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* surfaces: quieter, hairline-ruled */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.band { background: var(--ground-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; font: 600 12px/1.2 var(--body); font-stretch: 85%; text-transform: uppercase; letter-spacing: .2em; color: var(--mint); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(159, 220, 200, .12); }
.pill.brass { color: var(--brass); }
.pill.brass .dot { box-shadow: 0 0 0 4px rgba(214, 178, 106, .14); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { font: 600 12px var(--body); font-stretch: 85%; text-transform: uppercase; letter-spacing: .18em; color: var(--faint); }
.stat .v { font: 600 34px/1.1 var(--body) !important; font-stretch: 85% !important; font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; }
.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; gap: var(--gap, 12px); align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--rule); margin-top: 40px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--faint); }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a { color: var(--text-2); }

/* forms */
label.field { display: flex; flex-direction: column; gap: 8px; font: 600 12px var(--body); font-stretch: 85%; text-transform: uppercase; letter-spacing: .16em; color: var(--text-2); }
label.field .hint { font: 400 13px var(--body); font-stretch: 100%; text-transform: none; letter-spacing: 0; color: var(--faint); }
.input, textarea.input { width: 100%; padding: 14px 16px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--ground); color: var(--text); font: 400 16px var(--body); font-stretch: 100%; text-transform: none; letter-spacing: 0; min-height: 52px; }
.input:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(214, 178, 106, .18); }
textarea.input { line-height: 1.6; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brass); flex-shrink: 0; }
.error { color: var(--warn); font-size: 14px; min-height: 1em; }

/* playing cards: Bodoni pips, like a real deck */
.pc { width: var(--cw, 52px); aspect-ratio: 5 / 7; border-radius: 6px; background: #F7F1E3; color: #141110; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font: 600 calc(var(--cw, 52px) * .42)/1 var(--display); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 4px 12px rgba(0,0,0,.5); flex-shrink: 0; }
.pc.red { color: #9E2424; }
.pc svg { width: 36%; height: auto; margin-top: 2px; }
.pc.back { background-size: cover; background-position: center; }
.pc.slot { background: transparent; box-shadow: none; border: 1px dashed rgba(241, 234, 219, .18); }
.pc.flip { animation: flip .45s ease-out both; }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }

/* table */
.table { position: relative; width: 100%; aspect-ratio: 16 / 10.5; min-height: 380px; container-type: inline-size; }
.felt { position: absolute; inset: 12% 9%; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, #11604B 0%, var(--felt) 55%, #0A3A2E 100%); border: clamp(8px, 1.4cqw, 15px) solid var(--rail); box-shadow: 0 0 0 1px #A88645, 0 0 0 4px #160E06, 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 2px rgba(214,178,106,.18), inset 0 0 120px rgba(0,0,0,.5); }
.felt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url(/assets/felt.webp) center / 300px; opacity: .22; mix-blend-mode: overlay; }
.center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.board { display: flex; gap: clamp(4px, .7cqw, 8px); --cw: clamp(34px, 5.2cqw, 62px); min-height: calc(var(--cw) * 1.4); }
.pot { font: 600 clamp(11px, 1.15cqw, 14px) var(--body); font-stretch: 85%; text-transform: uppercase; letter-spacing: .18em; color: var(--brass-2); padding: 4px 14px; border-top: 1px solid rgba(214,178,106,.35); border-bottom: 1px solid rgba(214,178,106,.35); font-variant-numeric: tabular-nums; }
.seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: clamp(96px, 13cqw, 156px); transition: opacity .3s; }
.seat.folded { opacity: .5; }
.seat.out { opacity: .28; }
.av { position: relative; width: clamp(40px, 5.2cqw, 64px); aspect-ratio: 1; }
.av img.face, .av .face { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(214,178,106,.4); object-fit: cover; background: var(--panel-2); display: grid; place-items: center; font: 600 clamp(17px, 2.1cqw, 26px) var(--display); color: var(--brass-2); }
.seat.turn .av .face { border-color: var(--brass); }
.av .frame { position: absolute; left: -23%; top: -23%; width: 146%; height: 146%; max-width: none; pointer-events: none; }
.av .ring { position: absolute; left: -16%; top: -16%; width: 132%; height: 132%; }
.av .ring circle { transition: stroke-dashoffset 1s linear; }
.av .badge { position: absolute; right: -18%; top: -6%; background: var(--ground); color: var(--brass-2); border: 1px solid var(--brass); font: 700 10px var(--body); font-stretch: 85%; letter-spacing: .1em; padding: 1px 6px; border-radius: 2px; }
.plate { background: rgba(8,16,14,.92); border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; text-align: center; width: 100%; }
.seat.turn .plate { border-color: var(--brass); box-shadow: 0 0 24px rgba(214,178,106,.25); }
.seat.you .plate { border-color: var(--mint); }
.plate .nm { font: 600 clamp(11px, 1.15cqw, 14px) var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate .stk { font: 600 clamp(11px, 1.1cqw, 13px) var(--body); font-variant-numeric: tabular-nums; color: var(--brass-2); }
.plate .tag { font: 500 10px var(--body); font-stretch: 85%; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hole { display: flex; gap: 4px; --cw: clamp(26px, 3.2cqw, 38px); min-height: calc(var(--cw) * 1.4); }
.bet { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; font: 600 clamp(11px, 1.1cqw, 14px) var(--body); font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000; }
.bet img { width: clamp(18px, 2cqw, 26px); }
.dealer { position: absolute; width: clamp(20px, 2.2cqw, 30px); transform: translate(-50%, -50%); }
.talk { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; background: #F7F1E3; color: #1B1A16; border-radius: 4px; padding: 7px 12px; font: italic 500 14px/1.35 var(--display); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.45); animation: pop .3s ease-out both; z-index: 2; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,16,14,.74); border-radius: 12px; z-index: 3; }
@media (max-width: 640px) {
  .table { aspect-ratio: 3 / 4.2; min-height: 0; }
  .felt { inset: 10% 18%; }
}

/* lists */
.log { list-style: none; margin: 0; padding: 0; font-size: 14px; max-height: 360px; overflow-y: auto; }
.log li { padding: 7px 0; border-bottom: 1px solid var(--rule); color: var(--text-2); }
.log li.street { color: var(--brass-2); font: 600 12px var(--body); font-stretch: 85%; letter-spacing: .16em; text-transform: uppercase; padding-top: 12px; }
.log li.talkline { color: var(--mint); font-family: var(--display); font-style: italic; font-size: 15px; }
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font: 600 11px var(--body); font-stretch: 85%; text-transform: uppercase; letter-spacing: .18em; color: var(--faint); padding: 12px 0; }
.lb td { padding: 14px 0; border-top: 1px solid var(--rule); }
.lb .num { text-align: right; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--on-brass); padding: 12px 20px; border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 50; font: 600 13px var(--body); font-stretch: 90%; letter-spacing: .08em; text-transform: uppercase; }

/* Season titles under a name */
.plate .ttl { font: italic 500 11px/1.2 var(--display); color: var(--brass-2); margin-top: -1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

/* All-in equity under a tabled seat */
.eqbar { position: relative; width: 100%; height: 18px; border-radius: 3px; background: rgba(8,16,14,.85); border: 1px solid rgba(229,138,58,.5); overflow: hidden; }
.eqbar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(229,138,58,.55), rgba(242,178,107,.8)); transition: width .6s ease; }
.eqbar b { position: relative; display: block; text-align: center; font: 700 11px/18px var(--body); color: var(--text); }

/* Report dialog */
.report-dialog { border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--text); padding: 24px; width: min(460px, calc(100vw - 32px)); }
.report-dialog::backdrop { background: rgba(4, 8, 7, .72); }

/* ---------- lobby strip: who's around, what's seating, next game night ---------- */
.lobby { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 14px 22px; min-height: 72px; background: var(--panel); border: 1px solid rgba(214, 178, 106, .22); border-radius: 10px; }
.lobby[hidden] { display: none !important; }
.lobby .grp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.lobby .grp.grow { flex: 1 1 280px; }
.lobby .k { font: 700 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.lobby .k.live { color: var(--mint); }
.lobby .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lobby .s { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lobby .sep { width: 1px; height: 26px; background: var(--rule); }
.lobby .beat { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(159, 220, 200, .16); flex: none; }
@media (prefers-reduced-motion: no-preference) { .lobby .beat { animation: lobbyBeat 2.4s ease-in-out infinite; } }
@keyframes lobbyBeat { 50% { box-shadow: 0 0 0 7px rgba(159, 220, 200, .05); } }
.lobby .pips { display: inline-flex; gap: 3px; }
.lobby .pips i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(214, 178, 106, .5); }
.lobby .pips i.on { background: var(--brass-2); border-color: var(--brass-2); }
.lobby .gn { font: italic 500 17px/1 var(--display); color: var(--brass-2); }
.lobby .watch { font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 4px; }
.lobby .pillbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(214, 178, 106, .4); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.lobby .pillbtn:hover { border-color: var(--brass-2); }
.lobby.seating { background: linear-gradient(90deg, #2A2112 0%, #1A1A10 55%, var(--panel) 100%); border-color: rgba(235, 207, 146, .55); }
.lobby.seating .title { font: italic 600 24px/1 var(--display); color: var(--brass-2); }
.lobby.seating .sub { font-size: 14px; color: var(--text-2); }
.lobby.seating .solid { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--brass); color: var(--on-brass); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lobby.seating .solid:hover { background: var(--brass-2); color: var(--on-brass); }
.lobby.quiet { background: var(--ground-2); border-color: var(--line); gap: 14px 24px; }
.lobby.quiet .ring { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.lobby.quiet .msg { font-size: 15px; color: var(--text-2); flex: 1 1 320px; }
@media (max-width: 640px) { .lobby { padding: 16px; gap: 12px 16px; } .lobby .sep { display: none; } .lobby .grp.grow { flex-basis: 100%; } }

/* ---------- agent purchases (My Agent) ---------- */
.buyask { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 22px 26px; background: linear-gradient(90deg, #22190D 0%, #141A12 60%, var(--panel) 100%); border: 1px solid rgba(235, 207, 146, .5); border-radius: 10px; }
.buyask .thumb { width: 64px; height: 88px; flex: none; border-radius: 6px; border: 1px solid rgba(235, 207, 146, .6); background: radial-gradient(120% 90% at 50% 30%, #3B2A55 0%, #1A1226 70%) center / cover no-repeat; display: grid; place-items: center; font: 600 30px var(--display); color: var(--brass-2); }
.buyask .body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.buyask .ttl { font: 600 28px/1.1 var(--display); }
.buyask .ttl em { font-style: italic; font-weight: 500; color: var(--brass-2); }
.buyask q { color: var(--mint); }
.ap-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .ap-modes { grid-template-columns: 1fr; } }
.ap-modes label { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ap-modes label:has(input:checked) { border-color: var(--brass); background: rgba(214, 178, 106, .08); }
.ap-modes label:focus-within { outline: 2px solid var(--brass-2); outline-offset: 2px; }
.ap-modes .n { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.ap-modes input { accent-color: var(--brass); width: 18px; height: 18px; margin: 0; }
.ap-modes .d { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ap-meter { height: 8px; border-radius: 999px; background: rgba(238, 230, 214, .08); overflow: hidden; }
.ap-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-2)); border-radius: 999px; }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(238, 230, 214, .08); }
.ap-row:last-child { border-bottom: 0; }
.ap-row .w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-row .r { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chipst { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--rule); color: var(--faint); white-space: nowrap; }
.chipst.paid { color: var(--mint); border-color: rgba(159, 220, 200, .35); }
.chipst.open { color: var(--brass-2); border-color: rgba(214, 178, 106, .4); }
dialog::backdrop { background: rgba(4, 8, 7, .72); }
dialog { color: var(--text); }

/* ---------- phones: one compact bar, thumb-sized controls, calmer rhythm ---------- */
.mbar { display: none; }
.msheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--ground); color: var(--text); }
.msheet::backdrop { background: rgba(4, 8, 7, .6); }
.msheet .mtop { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 18px; border-bottom: 1px solid var(--rule); }
.msheet nav { padding: 8px 20px; display: flex; flex-direction: column; }
.msheet .big { display: flex; align-items: center; justify-content: space-between; min-height: 62px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); font: 600 27px var(--display); letter-spacing: -0.01em; }
.msheet .big em { font: italic 500 16px var(--display); color: var(--brass-2); }
.msheet .big .livetag { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--body); letter-spacing: .12em; color: var(--warn); }
.msheet .big .livetag i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.msheet .small { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding-top: 14px; }
.msheet .small a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 15px; }
.msheet .mcta { padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 0; color: var(--text); cursor: pointer; border-radius: 10px; }
.iconbtn:hover { background: rgba(238, 230, 214, .06); }
.outs { display: none; }

@media (max-width: 760px) {
  body > header.nav, .topbar { position: sticky; top: 0; z-index: 30; background: rgba(8, 16, 14, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  body > header.nav { border-bottom: 1px solid var(--rule); }
  .nav { flex-wrap: nowrap; padding: 8px 0; min-height: 60px; gap: 8px; }
  .nav nav > :not(.keep-sm) { display: none !important; }
  .nav nav:not(:has(.keep-sm)) { display: none; }
  .brand { font-size: 20px; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .mbar { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .mbar .play { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px; background: var(--brass); color: var(--on-brass); font: 700 14px var(--body); text-decoration: none; }
  .nav .live.keep-sm { font-size: 11px; }
  /* Pages that keep a couple of controls in the bar (the live table): one tidy row. */
  .brand { flex-shrink: 0; }
  .nav nav:has(.keep-sm) { flex-wrap: nowrap; gap: 8px; margin-left: auto; }
  .nav nav:has(.keep-sm) + .mbar { margin-left: 0; }
  .nav:has(.keep-sm) .mbar .play { display: none; }
  .nav > span { display: none; } /* "Already have an account?" lines: the menu has Sign in */
  .mbar .play[hidden] { display: none; }
  .nav .btn.keep-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
}
@media (max-width: 640px) {
  .btn { border-radius: 12px; text-transform: none; letter-spacing: .01em; font-size: 15px; font-stretch: 100%; }
  .btn.lg { min-height: 54px; font-size: 16px; }
  .btn.sm { min-height: 40px; font-size: 14px; }
  .footer .wrap { flex-direction: column-reverse; gap: 14px; }
  .footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; }
  .footer nav a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }
  .card { padding: 20px 18px; border-radius: 14px; }
  .label, .eyebrow { font-size: 11.5px !important; }
  /* The live table: knocked-out seats step aside into one line; names and badges readable. */
  .table .seat.out { display: none; }
  .table .seat { width: 31%; gap: 4px; }
  .outs { display: block; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 4px 11px; border-radius: 999px; background: rgba(8, 16, 14, .75); font-size: 12px; color: var(--faint); width: max-content; max-width: 92%; text-align: center; line-height: 1.4; }
  .plate { border-radius: 999px; padding: 4px 10px; }
  .plate .nm { font-size: 12.5px; }
  .plate .stk { font-size: 12px; }
  .plate .tag { font-size: 11px; }
  .av .badge { font-size: 11px; padding: 1px 6px; border-radius: 4px; }
  .toast { left: 16px; right: 16px; transform: none; text-align: center; border-radius: 12px; text-transform: none; letter-spacing: .01em; font-size: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* Easier taps: header links and standalone links get a full-height hit area. */
.nav nav a:not(.btn) { padding: 12px 0; }
.spread > a:not(.btn), .caption a, .footer nav a, header.nav > span a { display: inline-flex; align-items: center; min-height: 40px; }

/* Lobby strip, busy state: one tidy line per group, "Watch" never wraps on its own. */
.lobby .grp.grow { flex-wrap: nowrap; }
.lobby .grp.grow .s { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby .grp.grow .watch, .lobby .pips { flex: none; }
.lobby .grp > span { white-space: nowrap; }
.lobby.quiet .msg { white-space: normal; }
@media (max-width: 640px) {
  .lobby:not(.seating):not(.quiet) { flex-direction: column; align-items: stretch; gap: 10px; }
  .lobby:not(.seating):not(.quiet) .grp { width: 100%; }
  .lobby:not(.seating):not(.quiet) .grp.grow .watch { margin-left: auto; padding: 8px 0; }
  .lobby:not(.seating):not(.quiet) .grp.grow > .k { display: none; } /* room for the status on a phone */
  .lobby:not(.seating):not(.quiet) .grp:last-child .pillbtn { margin-left: auto; }
  .lobby.seating .solid, .lobby.quiet .pillbtn { width: 100%; justify-content: center; }
  .lobby.quiet .s { flex: 1; }
}
