/* Seventh Street Cash. Same casino-night look as the free game: blue felt, bulb-lit rail, gold money. */
:root {
  --night: #08061a; --night-2: #130c33;
  --glass: rgba(16, 11, 44, 0.8); --line: rgba(255, 214, 120, 0.22);
  --felt: #2370e6; --felt-mid: #1748a8; --felt-edge: #0a2462;
  --rail: #2b1309; --rail-hi: #6e3517;
  --gold: #ffd25e; --gold-hi: #fff4c2; --gold-2: #f5a623; --gold-deep: #9c5e08;
  --ivory: #fffdf7; --ink: #16121c; --pip-red: #d61f2c;
  --text: #f7f2ff; --muted: #bdb3dc; --dim: #857cab;
  --win: #4ee68a; --lose: #ff6b6b; --neon: #ff4fd8; --cyan: #52e6ff;
  --f-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --f-ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--text); }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { font: 14px/1.45 var(--f-ui); min-height: 100vh; overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
a { color: var(--gold); }

.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 15% 0%, rgba(120, 60, 255, 0.35), transparent 70%),
    radial-gradient(50% 45% at 90% 10%, rgba(255, 60, 180, 0.2), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(30, 120, 255, 0.3), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night)); }
.sandbox-bar { position: relative; z-index: 2; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; padding: 6px 16px; color: #2a1a00;
  background: repeating-linear-gradient(-45deg, #ffd25e 0 14px, #f5b52a 14px 28px); }

.app { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding-block: 12px 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.money { font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-2) 70%, #c97b0c);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo .seven { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 32px; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 40%, var(--gold-2) 75%, var(--gold-deep)); box-shadow: 0 0 22px rgba(255, 210, 94, 0.5); }
.logo h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 32px; line-height: 0.9; letter-spacing: 0.04em; }
.logo .neon { color: #fff; text-shadow: 0 0 6px var(--neon), 0 0 16px var(--neon), 0 0 30px rgba(255, 79, 216, 0.55); }
.logo small { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }
.top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat { display: grid; padding: 4px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.stat span { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.stat b { font-size: 17px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pill:hover { color: var(--text); }
.pill[aria-pressed="false"] { opacity: 0.6; }
.pill.gold { color: var(--ink); border-color: transparent; background: linear-gradient(var(--gold-hi), var(--gold) 50%, var(--gold-2)); }
.pfp { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-left: -4px; }

/* forms */
.form { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.fld input, .fld select { font: 600 16px var(--f-ui); color: var(--text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); }
.err { margin: 0; min-height: 1.2em; color: var(--lose); font-weight: 600; }
.ok { color: var(--win); font-weight: 700; }
.note { color: var(--dim); font-size: 12.5px; margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font-weight: 800; color: var(--muted); }
.tabs button[aria-selected="true"] { background: linear-gradient(var(--gold-hi), var(--gold) 50%, var(--gold-2)); color: var(--ink); }

/* glossy buttons */
.b3d { --c1: #4b3f86; --c2: #2b2156; --c3: #1a1238; position: relative; overflow: hidden; border: 0; border-radius: 14px; padding: 10px 18px; min-height: 48px;
  font-weight: 800; font-size: 15px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4); background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 5px 0 var(--c3), 0 9px 18px rgba(0, 0, 0, 0.45);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transition: transform 0.08s, filter 0.15s; }
.b3d::before { content: ""; position: absolute; left: 6%; right: 6%; top: 3px; height: 45%; border-radius: 10px 10px 40% 40%; background: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)); pointer-events: none; }
.b3d:hover { filter: brightness(1.08); }
.b3d:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 1px 0 var(--c3); }
.b3d:disabled { opacity: 0.45; cursor: not-allowed; }
.b3d small { font-size: 11px; opacity: 0.85; }
.b3d.red { --c1: #ff6b6f; --c2: #c4161f; --c3: #7a0a10; }
.b3d.green { --c1: #4af08d; --c2: #129c47; --c3: #075a27; }
.b3d.gold { --c1: #ffe999; --c2: #f09a00; --c3: #9a5b00; color: #3a2000; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.b3d.blue { --c1: #6fc8ff; --c2: #1f6fd6; --c3: #0c3d80; }

/* sign-in */
#v-auth { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.auth-card { display: grid; gap: 16px; padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.pitch h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; margin: 8px 0 12px; letter-spacing: 0.02em; text-wrap: balance; }
.pitch h2 em { font-style: normal; color: var(--gold); }
.pitch p, .pitch li { color: var(--muted); font-size: 15px; max-width: 56ch; }
.pitch ul { padding-left: 20px; display: grid; gap: 6px; }

/* lobby */
.section-title { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: 0.06em; color: var(--gold); margin: 6px 0 0; }
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.check-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.check-item .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.check-item.done .dot { background: var(--win); color: #062a14; }
.check-item b { display: block; }
.check-item span { color: var(--muted); font-size: 12.5px; }
.check-item button { margin-left: auto; }
.blocked { padding: 12px 14px; border-radius: 14px; background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffd6d6; grid-column: 1 / -1; }
.tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tcard { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, var(--tc1, #1f5fd1), var(--tc2, #0c2a6e)); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.tcard.t-micro { --tc1: #16603f; --tc2: #0b3324; } .tcard.t-low { --tc1: #1f5fd1; --tc2: #0c2a6e; } .tcard.t-mid { --tc1: #7a1fbf; --tc2: #330a5a; }
.tcard.t-b5 { --tc1: #16603f; --tc2: #0b3324; } .tcard.t-b10 { --tc1: #0f7a7a; --tc2: #063b3f; } .tcard.t-b25 { --tc1: #1f5fd1; --tc2: #0c2a6e; }
.tcard.t-b50 { --tc1: #7a1fbf; --tc2: #330a5a; } .tcard.t-b100 { --tc1: #b8730a; --tc2: #4a2600; }
.tcard span b { color: #fff; font: 800 14px var(--f-ui); letter-spacing: 0; }
.tcard b { font-family: var(--f-display); font-weight: 400; font-size: 28px; letter-spacing: 0.04em; line-height: 1; }
.tcard .lim { font-size: 20px; }
.tcard span { color: rgba(255, 255, 255, 0.8); font-size: 12.5px; }
.tcard .seats-dots { display: flex; gap: 4px; margin: 4px 0; }
.tcard .seats-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.tcard .seats-dots i.on { background: var(--gold); box-shadow: 0 0 8px rgba(255, 210, 94, 0.7); }
.history { display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; }
.hrow .net { font-weight: 800; font-variant-numeric: tabular-nums; }
.hrow .net.pos { color: var(--win); } .hrow .net.neg { color: var(--lose); }
.hrow code { font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }

/* table */
.table-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.table-title { display: grid; margin-right: auto; }
.table-title b { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: 0.05em; line-height: 1; }
.table-title span { color: var(--muted); font-size: 12.5px; }
.table-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.table { position: relative; width: 100%; aspect-ratio: 16 / 9.6; margin-top: 18px; }
.rail { position: absolute; inset: 0; border-radius: 9999px; background: linear-gradient(180deg, var(--rail-hi), var(--rail) 55%, #170903);
  box-shadow: 0 0 0 2px var(--gold-deep), 0 0 0 5px #1a0b05, 0 0 0 7px rgba(255, 210, 94, 0.5), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(60, 120, 255, 0.25); }
.bulbs { position: absolute; inset: 5px; border-radius: 9999px; padding: 9px;
  background: radial-gradient(circle, #fffbe6 0 1.6px, rgba(255, 207, 90, 0.85) 2.4px, rgba(255, 170, 40, 0.2) 4px, transparent 5px) 0 0 / 15px 15px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: chase 0.9s steps(3) infinite; }
@keyframes chase { to { background-position: 15px 0; } }
.felt { position: absolute; inset: 24px; border-radius: 9999px; overflow: hidden;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 255, 255, 0.16), transparent 70%), radial-gradient(ellipse at 50% 50%, var(--felt) 0%, var(--felt-mid) 55%, var(--felt-edge) 100%);
  box-shadow: inset 0 10px 40px rgba(0, 0, 0, 0.5); }
.felt::before { content: ""; position: absolute; inset: 9%; border-radius: 9999px; border: 2px solid rgba(255, 220, 140, 0.25); }
.print { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); text-align: center; color: rgba(255, 230, 160, 0.15); font-family: var(--f-display); letter-spacing: 0.3em; white-space: nowrap; }
.print b { display: block; font-size: clamp(22px, 3.6vw, 44px); font-weight: 400; }
.print span { font-size: clamp(9px, 1vw, 12px); letter-spacing: 0.4em; }
.street-pill { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 3; font-family: var(--f-display); font-size: 19px; letter-spacing: 0.12em; padding: 3px 14px 1px; border-radius: 999px; background: rgba(5, 15, 50, 0.55); border: 1px solid rgba(255, 210, 94, 0.35); color: var(--gold); white-space: nowrap; }
.street-pill:empty { display: none; }
.pot { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; display: grid; justify-items: center; gap: 4px; }
.pot-pile { min-height: 40px; display: flex; align-items: flex-end; }
.pot-amt { background: rgba(5, 12, 40, 0.72); border: 1px solid rgba(255, 210, 94, 0.45); border-radius: 999px; padding: 3px 16px; display: flex; align-items: baseline; gap: 8px; }
.pot-amt small { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); font-weight: 700; }
.pot-amt .money { font-size: 22px; }
.pot-note { font-size: 10.5px; color: rgba(255, 235, 190, 0.7); letter-spacing: 0.08em; }
.msg { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); z-index: 3; width: 42%; text-align: center; margin: 0; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); text-wrap: balance; }
.msg strong { color: var(--gold); }

.seat { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -34px); width: 172px; z-index: 5; display: grid; justify-items: center; gap: 4px; }
.seat[data-pos="0"] { --x: 50%; --y: 76%; }
.seat[data-pos="1"] { --x: 11%; --y: 64%; } .seat[data-pos="2"] { --x: 11%; --y: 26%; }
.seat[data-pos="3"] { --x: 32%; --y: 5%; } .seat[data-pos="4"] { --x: 68%; --y: 5%; }
.seat[data-pos="5"] { --x: 89%; --y: 26%; } .seat[data-pos="6"] { --x: 89%; --y: 64%; }
.seat.empty .who, .seat.empty .cards, .seat.empty .status { display: none; }
.sit-btn { display: none; padding: 10px 16px; border-radius: 999px; border: 2px dashed rgba(255, 220, 140, 0.55); background: rgba(5, 12, 40, 0.6); color: var(--gold); font-weight: 800; }
.seat.empty.can-sit .sit-btn { display: inline-block; }
.seat.empty:not(.can-sit) .open-label { display: block; }
.open-label { display: none; color: rgba(255, 230, 160, 0.35); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px; }
.who { display: grid; justify-items: center; position: relative; }
.avatar { position: relative; width: 62px; height: 62px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--gold-hi), var(--gold), var(--gold-2), var(--gold-deep), var(--gold), var(--gold-hi)); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #222; }
.timer { position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.4); overflow: hidden; opacity: 0; }
.timer i { display: block; height: 100%; background: var(--cyan); transform-origin: left; }
.to-act .timer { opacity: 1; }
.to-act .avatar { box-shadow: 0 0 0 3px rgba(82, 230, 255, 0.35), 0 0 26px rgba(82, 230, 255, 0.6); }
.plate { margin-top: -10px; position: relative; z-index: 1; min-width: 118px; padding: 3px 12px 4px; text-align: center; border-radius: 10px; background: linear-gradient(180deg, #2a1f5e, #120b2c); border: 1px solid var(--line); }
.nm { font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.stk { font-size: 13px; }
.hn { font-size: 10.5px; font-weight: 700; color: var(--win); }
.hn:empty { display: none; }
.status { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); z-index: 4; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: rgba(8, 6, 26, 0.85); border: 1px solid var(--line); color: var(--muted); }
.status:empty { display: none; }
.status.hot { color: var(--ink); background: linear-gradient(var(--gold-hi), var(--gold-2)); border-color: transparent; }
.status.good { color: #062a14; background: linear-gradient(#b7ffd2, var(--win)); border-color: transparent; }
.status.bad { color: #fff; background: linear-gradient(#ff8c8c, #c3242c); border-color: transparent; }
.seat.folded .avatar, .seat.away .avatar { filter: grayscale(1) brightness(0.55); }
.seat.folded .cards { opacity: 0.3; }
.seat.winner .avatar { box-shadow: 0 0 0 3px rgba(255, 210, 94, 0.5), 0 0 34px rgba(255, 210, 94, 0.9); }
.bet { position: absolute; z-index: 6; left: calc(var(--x) + (50% - var(--x)) * 0.42); top: calc(var(--y) + (47% - var(--y)) * 0.46); transform: translate(-50%, -50%); display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.bet[data-pos="0"] { left: 50%; top: 63%; }
.bet .tagv { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(5, 12, 40, 0.8); border: 1px solid rgba(255, 210, 94, 0.35); }

.cards { --cw: 34px; --ch: 48px; --ov: -12px; display: flex; min-height: var(--ch); }
.seat.me { width: max-content; max-width: 100%; z-index: 8; }
.seat.me .cards { --cw: 58px; --ch: 82px; --ov: 6px; padding-bottom: 2px; }
.card { position: relative; flex: none; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * 0.12); color: var(--ink); background: linear-gradient(160deg, #fff, var(--ivory) 60%, #efe8d8); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.45); transition: transform 0.25s, filter 0.25s; }
.card + .card { margin-left: var(--ov); }
.card.red { color: var(--pip-red); }
.card .ix { position: absolute; top: 2px; left: 3px; display: grid; justify-items: center; line-height: 1; }
.card .ix b { font-weight: 900; font-size: calc(var(--cw) * 0.34); letter-spacing: -0.05em; }
.card .ix i { font-style: normal; font-size: calc(var(--cw) * 0.26); }
.card .pip { position: absolute; right: 7%; bottom: 5%; font-size: calc(var(--cw) * 0.58); line-height: 1; }
.card .court { position: absolute; right: 8%; bottom: 7%; width: 50%; height: 52%; border-radius: 3px; display: grid; place-items: center; font-weight: 900; font-size: calc(var(--cw) * 0.3); line-height: 0.9; background: linear-gradient(160deg, #fff4c9, #f3cc5a); }
.card .court i { font-style: normal; display: block; }
.card.back { background: radial-gradient(circle, var(--gold) 0 calc(var(--cw) * 0.16), transparent calc(var(--cw) * 0.17)),
  repeating-linear-gradient(45deg, rgba(255, 210, 94, 0.32) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(255, 210, 94, 0.32) 0 1px, transparent 1px 6px),
  linear-gradient(160deg, #c8102e, #6d0618); box-shadow: inset 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, 0.5); }
.card.hole { box-shadow: 0 0 0 2px rgba(82, 230, 255, 0.75), 0 3px 8px rgba(0, 0, 0, 0.45); }
.card.win { transform: translateY(-7px); box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(255, 210, 94, 0.8); }
.card.dim { filter: brightness(0.45) saturate(0.5); }
.card.fresh { animation: deal 0.32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes deal { from { transform: translate(0, -50px) rotate(-20deg) scale(0.6); opacity: 0; } }

.bar { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; gap: 8px; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 20, 74, 0.94), rgba(12, 8, 32, 0.96)); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.bar-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.bar-info b { color: var(--text); }
.bar-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bar-btns .b3d { flex: 1 1 140px; max-width: 260px; }
.waiting { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; text-align: center; }
.proof { font-size: 11px; color: var(--dim); margin: 0; overflow-wrap: anywhere; text-align: center; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4, 2, 14, 0.78); backdrop-filter: blur(4px);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet { width: min(100%, 640px); max-height: 100%; overflow-y: auto; border-radius: 22px; padding: 22px; display: grid; gap: 14px;
  background: linear-gradient(180deg, #221860, #0f0a2a); border: 1px solid rgba(255, 210, 94, 0.45); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.sheet.narrow { width: min(100%, 440px); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 34px; letter-spacing: 0.05em; line-height: 1; }
.sheet h3 { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.sheet p { margin: 0; color: var(--muted); }
.x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--muted); flex: none; }
.bankroll { display: grid; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.bankroll small { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.bankroll .money { font-size: 30px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); font-weight: 800; color: var(--text); }
.tx { display: grid; gap: 4px; font-size: 12.5px; max-height: 220px; overflow-y: auto; }
.tx div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); }
.tx b { color: var(--text); font-variant-numeric: tabular-nums; }
.tx b.pos { color: var(--win); } .tx b.neg { color: var(--lose); }
.pf-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pf-drop { position: relative; flex: none; width: 116px; height: 116px; border-radius: 50%; padding: 5px; cursor: pointer; background: conic-gradient(from 200deg, var(--gold-hi), var(--gold), var(--gold-2), var(--gold-deep), var(--gold), var(--gold-hi)); }
.pf-drop img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #222; }
.pf-drop.drag { box-shadow: 0 0 0 4px var(--cyan); }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.buyin-val { font-size: 36px; text-align: center; }
input[type="range"] { accent-color: var(--gold); padding: 0 !important; }
.toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 14px; font-weight: 700; text-align: center;
  background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.toast.bad { background: #ffe1e1; color: #6b0c10; }
.foot { text-align: center; color: var(--dim); font-size: 11.5px; display: grid; gap: 4px; margin-top: 8px; }
.foot p { margin: 0; text-wrap: balance; }
.foot b { color: var(--muted); }

@media (min-width: 761px) {
  /* keep the whole table and the action bar on screen */
  .table { max-width: max(640px, calc((100vh - 290px) * 16 / 9.6)); margin-inline: auto; }
  .seat[data-pos="0"] { --y: 73%; }
  .bar { max-width: max(640px, calc((100vh - 290px) * 16 / 9.6)); width: 100%; margin-inline: auto; }
}
@media (max-width: 860px) {
  #v-auth { grid-template-columns: minmax(0, 1fr); }
  .pitch { order: -1; }
}
@media (max-width: 760px) {
  .logo h1 { font-size: 26px; } .logo small { display: none; }
  .top-right { width: 100%; }
  .table { aspect-ratio: 10 / 13.6; margin-top: 22px; }
  .stat { padding: 3px 10px; } .stat b { font-size: 15px; }
  .pill { padding: 7px 11px; font-size: 12px; }
  .table-title b { font-size: 22px; }
  .felt { inset: 16px; }
  .bulbs { padding: 7px; background-size: 12px 12px; }
  .seat { width: 108px; transform: translate(-50%, -24px); gap: 3px; }
  .seat[data-pos="0"] { --x: 50%; --y: 76%; }
  .seat[data-pos="1"] { --x: 17%; --y: 57%; } .seat[data-pos="2"] { --x: 17%; --y: 33%; }
  .seat[data-pos="3"] { --x: 27%; --y: 6%; } .seat[data-pos="4"] { --x: 73%; --y: 6%; }
  .seat[data-pos="5"] { --x: 83%; --y: 33%; } .seat[data-pos="6"] { --x: 83%; --y: 57%; }
  .avatar { width: 44px; height: 44px; padding: 2px; }
  .plate { min-width: 0; width: 104px; padding: 2px 6px 3px; margin-top: -8px; }
  .nm { font-size: 11px; max-width: 96px; } .stk { font-size: 11.5px; }
  .cards { --cw: 22px; --ch: 32px; --ov: -8px; }
  .seat.me .cards { --cw: 41px; --ch: 59px; --ov: 3px; }
  .status { font-size: 9px; padding: 2px 6px; top: -20px; }
  .street-pill { display: none; }
  .pot { top: 48%; }
  .msg { display: none; }
  .table-head { gap: 8px; }
  .bet { flex-direction: column; align-items: center; gap: 1px; }
  .bet[data-pos="1"] { left: 40%; top: 62%; } .bet[data-pos="2"] { left: 40%; top: 37%; }
  .bet[data-pos="3"] { left: 40%; top: 25%; } .bet[data-pos="4"] { left: 60%; top: 25%; }
  .bet[data-pos="5"] { left: 60%; top: 37%; } .bet[data-pos="6"] { left: 60%; top: 62%; }
  .bet[data-pos="0"] { left: 50%; top: 70%; }
  .bet svg { transform: scale(0.8); transform-origin: bottom center; }
  .bar-btns .b3d { flex-basis: 90px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bulbs { animation: none; }
  .card.fresh { animation: none; }
}
