/* Cutoff Poker design system
   Tokens first (color, type, space, radius, elevation, motion), then components.
   Rules applied throughout: one accent color (gold) for the primary action, semantic colors only for
   meaning (green = win/success, red = danger/fold, blue = information), tabular numerals for every
   amount, touch targets of at least 44 px, motion only on transform/opacity, enter = ease-out and
   120 to 280 ms, exits shorter, nothing blocks input, and prefers-reduced-motion switches motion off. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&display=swap");

:root {
  /* surfaces (dark, desaturated navy so the gold and the felt read warm) */
  --bg: #04050a;
  --bg-2: #0b0e18;
  --bg-3: #121728;
  --bg-4: #1a2138;
  --line: rgba(120, 160, 255, .12);
  --line-2: rgba(120, 160, 255, .22);
  /* text */
  --text: #eef3ff;
  --muted: #94a3c4;
  --dim: #66718f;
  /* accent (electric blue) + pink splash + semantics. The --gold names are kept for the component rules below. */
  --gold: #2f8cff;
  --gold-2: #7cc0ff;
  --gold-deep: #1a63cc;
  --cyan: #19d6ff;
  --pink: #ff3d9a;
  --pink-2: #ff7cc0;
  --green: #3ddc84;
  --red: #ff5a5f;
  --blue: #4ea1ff;
  --orange: #ffb347;
  /* table: deep-space felt by default */
  --felt: #0f1c38;
  --felt-dark: #070b18;
  --felt-light: #1c3466;
  --display: "Rajdhani", "Inter", system-ui, sans-serif;
  --card-red: #d7263d;
  --card-blue: #1e5bd6;
  --card-green: #1f8a4c;
  --card-black: #1b1f24;
  /* shape + depth */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px; --radius: 12px;
  --e1: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25);
  --e2: 0 4px 14px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --e3: 0 14px 40px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .05) inset;
  --shadow: var(--e3);
  /* motion */
  --t-press: 110ms; --t-fast: 180ms; --t-enter: 260ms; --t-modal: 320ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1);
  /* type */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--font);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background-color: var(--bg);
  background-image: radial-gradient(1px 1px at 12px 18px, rgba(255, 255, 255, .9), transparent 1.6px), radial-gradient(1px 1px at 88px 64px, rgba(255, 255, 255, .55), transparent 1.6px), radial-gradient(1.4px 1.4px at 150px 120px, rgba(25, 214, 255, .9), transparent 2px), radial-gradient(1px 1px at 190px 30px, rgba(255, 255, 255, .5), transparent 1.5px), radial-gradient(1.2px 1.2px at 60px 170px, rgba(255, 61, 154, .8), transparent 1.8px), radial-gradient(1px 1px at 230px 200px, rgba(255, 255, 255, .7), transparent 1.5px), radial-gradient(1px 1px at 300px 90px, rgba(124, 192, 255, .8), transparent 1.5px);
  background-size: 260px 260px, 340px 340px, 420px 420px, 300px 300px, 380px 380px, 460px 460px, 520px 520px; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(47, 140, 255, .18), transparent 60%), radial-gradient(ellipse 40% 30% at 100% 100%, rgba(255, 61, 154, .10), transparent 60%); }
body { font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.num, .st, .stakes, .v, td.num, .pot b, .bet-chip, .balance-pill { font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
button { font: inherit; cursor: pointer; border: 0; border-radius: var(--r-md); padding: 9px 14px; background: var(--bg-4); color: var(--text); font-weight: 600; transition: filter var(--t-fast) var(--ease-out), transform var(--t-press) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
button:hover { filter: brightness(1.12); }
button:active { transform: scale(.97); filter: brightness(.96); }
button:disabled { opacity: .4; cursor: default; filter: none; transform: none; }
button.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #061021; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px rgba(47, 140, 255, .25); }
button.danger { background: linear-gradient(180deg, #ff6b70, #d9363b); color: #fff; }
button.success { background: linear-gradient(180deg, #58e69a, #2fbf6e); color: #06230f; font-weight: 800; }
button.ghost { background: transparent; border: 1px solid var(--line-2); box-shadow: none; }
button.small { padding: 5px 11px; font-size: 13px; border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 9px 11px; width: 100%; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(47, 140, 255, .22); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 28px; padding: 0; background: transparent; border: 0; box-shadow: none; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--bg-4); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border: 3px solid #061021; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); cursor: grab; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--bg-4); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #061021; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; }
label.pref { padding: 10px 0; border-bottom: 1px dashed var(--line); margin: 0; }
label.pref span { display: flex; flex-direction: column; }
label.pref small { font-size: 12px; }
kbd { background: var(--bg-4); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-family: inherit; font-size: 12px; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; } h2 { font-size: 20px; font-weight: 700; } h3 { font-size: 16px; font-weight: 700; }
h1, h2, .brand, .stakes, .seat .plate .st, .pot b, .action-btns .big, .tile .t-label, .lh-brand, .hero h1, .gtab b, .mini .m-status { font-family: var(--display); letter-spacing: .02em; }
.gold { color: var(--gold-2); }
.pink { color: var(--pink); }
button.pink { background: linear-gradient(180deg, var(--pink-2), var(--pink)); color: #fff; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(255, 61, 154, .35); }
.pill.pink { background: rgba(255, 61, 154, .16); color: var(--pink-2); }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); } .green { color: var(--green); } .red { color: var(--red); }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--e1); }
.card-box.mine { border-color: rgba(78, 161, 255, .6); }
.stat { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--e1); }
.stat .v { font-size: 26px; font-weight: 800; margin-top: 2px; letter-spacing: -.01em; }
.stat .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--bg-4); color: var(--muted); }
.pill.gold { background: rgba(47, 140, 255, .16); color: var(--gold-2); }
.pill.green { background: rgba(61, 220, 132, .14); color: var(--green); }
.pill.red { background: rgba(255, 90, 95, .14); color: #ff9a9e; }
.pill.blue { background: rgba(78, 161, 255, .14); color: #9ccbff; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.list th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
table.list tr:hover td { background: rgba(255, 255, 255, .03); }
table.list tr.me td { background: rgba(47, 140, 255, .08); }
table.list tr.live td:first-child { box-shadow: inset 3px 0 0 var(--green); }
table.list.facts td { padding: 6px 8px; border: 0; }
table.list.lobby td { padding: 12px; }
table.list.lobby td:nth-child(2) { min-width: 190px; }
table.list.lobby .stakes { white-space: nowrap; }
.scroll { max-height: 420px; overflow: auto; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; padding: 48px; color: var(--muted); }

/* ---------- shell ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(4, 5, 10, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(47, 140, 255, .08); }
header.top .inner { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: auto; height: 36px; display: block; filter: drop-shadow(0 0 10px rgba(47, 140, 255, .55)); }
.brand span:not(.logo) { font-size: 19px; text-transform: uppercase; letter-spacing: .08em; background: linear-gradient(90deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.main { display: flex; gap: 2px; margin-left: 6px; }
nav.main a { padding: 7px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 600; font-size: 14px; position: relative; }
nav.main a:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
nav.main a.active { color: var(--text); }
nav.main a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--gold); }
.spacer { flex: 1; }
.mode-switch { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px; }
.mode-switch button { padding: 4px 12px; font-size: 12px; font-weight: 700; border-radius: var(--r-pill); background: transparent; color: var(--muted); box-shadow: none; }
.mode-switch button.on { background: var(--gold); color: #061021; }
.balance-pill { display: flex; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 5px 14px; font-size: 13px; color: var(--muted); }
.balance-pill:hover { text-decoration: none; border-color: var(--gold); }
.balance-pill .main { color: var(--text); font-size: 14px; }
.balance-pill .main b { color: var(--gold-2); }
.balance-pill b { color: var(--text); font-weight: 700; }
.balance-pill small { font-size: 11px; }
.hdr-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 16px; margin-right: 7px; border: 2px solid rgba(255, 255, 255, .6); color: #fff; font-weight: 700; box-shadow: var(--e1); }
.hdr-avatar:not(.pic) { font-size: 11px; }
.who-wrap { display: inline-flex; align-items: center; }
.geo-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.geo-pill.ok { color: var(--green); border-color: rgba(61, 220, 132, .4); }
.geo-pill.bad { color: var(--pink-2); border-color: rgba(255, 61, 154, .5); animation: miniact 1.2s ease-in-out infinite alternate; }
.geo-pill:hover { text-decoration: none; filter: brightness(1.15); }
.who-wrap:hover { text-decoration: none; }
#conn { display: none; background: var(--red); color: #fff; text-align: center; font-size: 13px; padding: 4px; font-weight: 600; }
.multi { position: sticky; top: 49px; z-index: 19; display: flex; gap: 8px; padding: 6px 12px; overflow-x: auto; background: rgba(4, 5, 10, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.multi::-webkit-scrollbar { display: none; }
.multi[hidden] { display: none; }
.mini { flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; min-width: 190px; max-width: 240px; height: 50px; padding: 4px 8px 4px 6px; border-radius: 12px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1.5px solid var(--line-2); color: var(--text); text-decoration: none; box-shadow: var(--e1); transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.mini:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--gold); }
.mini.cur { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(47, 140, 255, .25), var(--e1); }
.mini.act { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255, 61, 154, .3), 0 0 18px rgba(255, 61, 154, .4); animation: miniact 1s ease-in-out infinite alternate; }
.mini.act.low { border-color: var(--red); }
@keyframes miniact { from { box-shadow: 0 0 0 2px rgba(255, 61, 154, .2), 0 0 8px rgba(255, 61, 154, .3); } to { box-shadow: 0 0 0 2px rgba(255, 61, 154, .5), 0 0 22px rgba(255, 61, 154, .6); } }
.mini.fold { opacity: .7; }
.mini .m-cards { display: flex; gap: 2px; }
.mini .mc { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; letter-spacing: -.04em; width: 20px; height: 28px; border-radius: 3px; background: #fff; color: #111; font-style: normal; font-weight: 800; font-size: 11px; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.mini .mc small { font-size: 9px; }
.mini .mc.red { color: var(--card-red); }
.mini .mc.back { background: radial-gradient(circle, #1d4fd8, #0b2a7a); border: 1.5px solid #e8eefc; }
.mini .mc.none { background: transparent; border: 1px dashed var(--line-2); }
.mini.fold .mc { filter: grayscale(1) brightness(.6); }
.mini .m-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.mini .m-body b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .m-body small { font-size: 11px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.mini .m-status { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; position: relative; min-width: 40px; text-align: center; }
.mini .m-status.act { color: #fff; width: 40px; height: 40px; display: grid; place-items: center; }
.mini .m-status.act svg { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.mini .m-status.act circle { fill: none; stroke-width: 3; }
.mini .m-status.act .bg { stroke: rgba(255, 255, 255, .15); }
.mini .m-status.act .fg { stroke: var(--pink); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.mini.low .m-status.act .fg { stroke: var(--red); }
.mini .m-status.act .m-secs { position: relative; font-style: normal; font-size: 15px; font-weight: 800; font-family: var(--display); line-height: 1; }
.mini .m-status.act span { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 7px; letter-spacing: .12em; }
.mini.add { min-width: 54px; max-width: 54px; grid-template-columns: 1fr; text-align: center; font-size: 20px; font-weight: 800; color: var(--muted); border-style: dashed; line-height: 1; }
.mini.add small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
main.view { max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }
main.view.full { max-width: none; padding: 10px 12px 20px; background: radial-gradient(ellipse at 50% 30%, rgba(47, 140, 255, .10) 0%, transparent 70%); min-height: calc(100vh - 56px); }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--bg-3); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: var(--r-md); box-shadow: var(--e3); max-width: 360px; animation: toast-in var(--t-enter) var(--ease-out); display: flex; gap: 10px; align-items: center; font-size: 14px; }
.toast.err { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 8, 13, .66); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 22px; width: 100%; max-width: 440px; box-shadow: var(--e3); max-height: 92vh; overflow: auto; animation: modal-in var(--t-modal) var(--ease-out); }
/* overlays animate on transform only: a paused animation (background tab) must never leave a dialog invisible */
@keyframes modal-in { from { transform: translateY(14px) scale(.98); } to { transform: none; } }
.modal.wide { max-width: 640px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.modal .prize { font-size: 32px; font-weight: 800; color: var(--green); margin: 6px 0; }
.help p { font-size: 14px; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
button.choice { text-align: left; padding: 12px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line-2); background: var(--bg); }
button.choice:hover { border-color: var(--gold); }
button.choice small { color: var(--muted); font-size: 12px; white-space: normal; font-weight: 400; }
.notice { background: rgba(47, 140, 255, .1); border: 1px solid rgba(47, 140, 255, .35); padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; }
.notice.red { background: rgba(255, 90, 95, .1); border-color: rgba(255, 90, 95, .4); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; align-items: center; }
.tabs button { background: transparent; border-radius: var(--r-sm) var(--r-sm) 0 0; color: var(--muted); padding: 8px 14px; box-shadow: none; }
.tabs button.active { color: var(--text); background: var(--bg-3); box-shadow: inset 0 -2px 0 var(--gold); }
.tabs.big button { font-size: 15px; font-weight: 600; padding: 10px 18px; }
.tabs .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--bg); color: var(--muted); font-size: 11px; line-height: 18px; }
.tabs button.active .cnt { background: var(--gold); color: #061021; }

/* ---------- landing: space-cowboy hero ---------- */
.landing { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: stretch; margin-top: 6px; }
.hero { position: relative; min-height: 520px; border-radius: var(--r-xl); overflow: hidden; background-size: cover; background-position: 62% 40%; border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(47, 140, 255, .15), 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(47, 140, 255, .15); display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 5, 10, .92) 0%, rgba(4, 5, 10, .72) 42%, rgba(4, 5, 10, .15) 75%, transparent), linear-gradient(0deg, rgba(4, 5, 10, .9), transparent 55%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--gold), var(--pink)); box-shadow: 0 0 18px var(--gold); }
.hero-inner { position: relative; padding: 36px 34px 34px; max-width: 640px; }
.kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.kicker span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-2); border: 1px solid rgba(47, 140, 255, .45); border-radius: var(--r-pill); padding: 3px 10px; background: rgba(4, 5, 10, .5); }
.hero h1 { font-size: 58px; line-height: .98; text-transform: uppercase; letter-spacing: .01em; font-weight: 700; margin: 0 0 14px; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.hero h1 .blue { color: var(--gold-2); text-shadow: 0 0 24px rgba(47, 140, 255, .9); }
.hero h1 .pink { color: var(--pink); text-shadow: 0 0 24px rgba(255, 61, 154, .8); }
.hero p.lead { font-size: 16px; color: #c9d4ea; max-width: 520px; margin: 0 0 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-btn { padding: 14px 22px; font-size: 16px; border-radius: 14px; min-height: 52px; }
.cta .ghost { border-color: rgba(255, 255, 255, .35); background: rgba(4, 5, 10, .45); }
.hero-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; color: var(--muted); }
.hero-facts b { color: #fff; font-family: var(--display); font-size: 18px; margin-right: 4px; }
.auth-box { background: linear-gradient(180deg, rgba(18, 23, 40, .92), rgba(11, 14, 24, .96)); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--e3), 0 0 40px rgba(47, 140, 255, .08); backdrop-filter: blur(8px); }
.auth-box .tabs { margin-bottom: 8px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; }
.land-games { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.land-games .lg { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; align-items: center; transition: border-color var(--t-fast), transform var(--t-fast); }
.land-games .lg:hover { border-color: var(--gold); transform: translateY(-2px); }
.land-games .lg i { grid-row: 1 / span 2; font-style: normal; font-size: 26px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(47, 140, 255, .14); color: var(--gold-2); }
.land-games .lg.pink i { background: rgba(255, 61, 154, .16); color: var(--pink); }
.land-games .lg b { font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .04em; }
.land-games .lg small { color: var(--muted); font-size: 12px; }
.land-info { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 4px; }
.land-info h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.steps { margin: 0; padding: 0 0 0 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: start; }
.steps li::before { content: counter(st); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 140, 255, .18); color: var(--gold-2); font-family: var(--display); font-weight: 700; font-size: 16px; border: 1px solid rgba(47, 140, 255, .45); }
.steps li b { font-size: 15px; }
.steps li span { color: var(--muted); font-size: 13px; }
table.rates td, table.rates th { padding: 6px 8px; }
table.rates td.stakes { font-size: 15px; }
.promo-list { display: grid; gap: 10px; }
.promo-list > div { display: flex; gap: 12px; align-items: flex-start; background: rgba(4, 5, 10, .5); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.promo-list i { font-style: normal; font-size: 22px; width: 32px; text-align: center; }
.promo-list b { display: block; font-family: var(--display); font-size: 16px; text-transform: uppercase; letter-spacing: .03em; color: var(--pink-2); }
.promo-list small { color: var(--muted); font-size: 12.5px; }
.li-faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.li-faq summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.li-faq p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* ---------- lobby ---------- */
.lobby-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background-size: cover; background-position: center 35%; border: 1px solid var(--line-2); min-height: 150px; margin-bottom: 14px; box-shadow: var(--e2), 0 0 40px rgba(47, 140, 255, .1); }
.lobby-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 5, 10, .94) 0%, rgba(4, 5, 10, .75) 50%, rgba(4, 5, 10, .25) 100%); }
.lobby-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--gold), var(--pink)); }
.lh-inner { position: relative; padding: 18px 20px 16px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.lh-title { display: flex; flex-direction: column; min-width: 220px; }
.lh-brand { font-size: 34px; text-transform: uppercase; letter-spacing: .08em; line-height: 1; background: linear-gradient(90deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(47, 140, 255, .5)); }
.lh-tag { color: var(--muted); font-size: 13px; margin-top: 4px; }
.lh-meta { flex-basis: 100%; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.lh-meta .online i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 8px var(--green); }
.lh-meta .small { margin-left: auto; }
.room-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.room-switch { display: inline-flex; background: rgba(4, 5, 10, .6); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 4px; gap: 4px; }
.room-switch button { background: transparent; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px; border-radius: var(--r-md); color: var(--muted); min-width: 150px; text-align: left; box-shadow: none; }
.room-switch button b { font-size: 15px; }
.room-switch button small { font-size: 11px; font-weight: 400; }
.room-switch button.on { background: var(--bg-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.room-switch button.on b { color: var(--gold-2); }
.lobby-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters button { padding: 6px 12px; font-size: 13px; border-radius: var(--r-pill); }
.filters button.active { background: var(--gold); color: #061021; font-weight: 700; }
.filter-box { display: flex; gap: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; flex-wrap: wrap; }
.filter-box .fgroup { padding: 8px 14px 10px; border-right: 1px solid var(--line); min-width: 160px; }
.filter-box .fgroup:last-child { border-right: 0; }
.filter-box .fgroup .fk { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.filter-box label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 0 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.filter-box label.check input { width: 15px; height: 15px; }
.lobby-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.promos { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 70px; }
.promo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 150px; border: 1px solid var(--line-2); background-size: cover; background-position: center; display: flex; align-items: flex-end; box-shadow: var(--e2); transition: transform var(--t-fast); color: #fff; }
.promo:hover { transform: translateY(-2px); text-decoration: none; }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 5, 10, .92) 20%, rgba(4, 5, 10, .2)); }
.promo .pr-body { position: relative; padding: 14px; }
.promo .pr-kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-2); font-weight: 800; }
.promo b { display: block; font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; margin: 2px 0 4px; }
.promo small { color: #c9d4ea; font-size: 12px; }
.promo.blue .pr-kicker { color: var(--gold-2); }
.promo.p-grad1 { background-image: linear-gradient(135deg, #0b2a66, #04050a); }
.promo.p-grad2 { background-image: linear-gradient(135deg, #5a1240, #04050a); }
.promo.p-grad3 { background-image: linear-gradient(135deg, #0a4a3c, #04050a); }
.game-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gtab { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 74px; padding: 12px 86px 12px 16px; border-radius: 12px; border: 2px solid transparent; color: #fff; text-align: left; overflow: hidden; box-shadow: var(--e2); transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast); }
.gtab b { font-size: 19px; text-transform: uppercase; line-height: 1; letter-spacing: .03em; font-weight: 700; }
.gtab small { font-size: 11px; opacity: .85; margin-top: 3px; font-weight: 600; letter-spacing: .04em; }
.gtab i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-8deg); font-style: normal; font-size: 46px; line-height: 1; opacity: .9; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.gtab::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .22), transparent 40%); pointer-events: none; }
.gtab:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: var(--e3); }
.gtab.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(47, 140, 255, .35), 0 0 30px rgba(47, 140, 255, .35), var(--e3); }
.gtab.g-nlhe { background: linear-gradient(135deg, #0a8a4a, #063a22); }
.gtab.g-plo { background: linear-gradient(135deg, #0f8fa8, #073a4a); }
.gtab.g-mixed { background: linear-gradient(135deg, #7a1d9c, #2e0a3f); }
.gtab.g-tour { background: linear-gradient(135deg, #1d4fd8, #0a1f5c); }
.gtab.g-spin { background: linear-gradient(135deg, #e0318c, #5a1240); }
.gtab.g-board { background: linear-gradient(135deg, #b8720f, #4a2c05); }
.gtab .new { position: absolute; left: 10px; top: -1px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .1em; padding: 2px 8px; border-radius: 0 0 8px 8px; }
table.list.lobby tr td:first-child { font-family: var(--display); font-size: 17px; }
.room-row-id { display: inline-block; font-size: 11px; color: var(--muted); background: var(--bg-3); border-radius: var(--r-pill); padding: 1px 8px; margin-left: 8px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.dots { display: inline-grid; grid-template-columns: repeat(5, 8px); gap: 3px; vertical-align: middle; margin-left: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-4); border: 1px solid var(--line-2); }
.dots i.on { background: #cfd8e8; border-color: #fff; }
.dots i.bot { background: var(--blue); border-color: var(--gold-2); }
.stakes { font-weight: 800; }
.seats-bar { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 6px; }
.seats-bar i { width: 7px; height: 12px; border-radius: 2px; background: var(--bg-4); display: inline-block; }
.seats-bar i.on { background: var(--green); }
.seats-bar i.bot { background: var(--blue); }
.game-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); border: 2px solid transparent; color: #fff; text-align: left; background: linear-gradient(135deg, #2b3340, #1a2029); box-shadow: var(--e2); min-height: 88px; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .18), transparent 45%); pointer-events: none; }
.tile:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--e3); }
.tile .t-ico { font-size: 24px; line-height: 1; }
.tile .t-label { font-weight: 800; font-size: 15px; margin-top: 4px; }
.tile .t-sub { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-weight: 500; }
.tile.active { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(47, 140, 255, .22), var(--e3); }
.tile.t-cash { background: linear-gradient(135deg, #1f6b45, #0f3d28); }
.tile.t-sng { background: linear-gradient(135deg, #2a5a8a, #163552); }
.tile.t-spin { background: linear-gradient(135deg, #b8842a, #6b4a12); }
.tile.t-mtt { background: linear-gradient(135deg, #7a2430, #451018); }
.tile.t-board { background: linear-gradient(135deg, #5b3fb8, #30205f); }

/* ---------- tournament page ---------- */
.tour-head .facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.tour-head .facts-grid .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tour-head .facts-grid .v { font-size: 18px; font-weight: 800; }
.tour-head .headline { background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; margin: 0; font-size: 14px; }
.tour-cols h3 { margin-bottom: 6px; }

/* ---------- Spin & Gold ---------- */
.spin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.spin-card { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--e1); }
.spin-card.live { border-color: rgba(47, 140, 255, .55); }
.spin-card .sc-top { display: flex; justify-content: space-between; align-items: center; }
.spin-card .sc-buyin { font-size: 26px; font-weight: 800; color: var(--gold-2); }
.spin-card .sc-name { font-weight: 700; }
.spin-card .sc-name a { color: var(--text); }
.spin-card .sc-mid { font-size: 13px; color: var(--muted); min-height: 20px; }
.spin-wrap { text-align: center; }
.wheel-box { position: relative; width: 240px; height: 240px; margin: 14px auto 6px; }
.wheel-box .pointer { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--gold-2); z-index: 2; filter: drop-shadow(0 2px 3px #000); }
.wheel { width: 240px; height: 240px; border-radius: 50%; border: 6px solid var(--gold); box-shadow: 0 0 0 4px #061021, var(--e3), inset 0 0 40px rgba(0, 0, 0, .6); position: relative; transition: transform 3.6s cubic-bezier(.15, .75, .1, 1); will-change: transform; }
.wheel span { position: absolute; left: 50%; top: 50%; width: 64px; margin-left: -32px; margin-top: -10px; text-align: center; font-weight: 800; font-size: 15px; color: #fff; text-shadow: 0 1px 2px #000; }
.wheel span.big { color: var(--gold-2); }
.spin-result { font-size: 20px; margin: 6px 0; min-height: 56px; }
.spin-result b { font-size: 30px; }
.modal.spin { max-width: 420px; }

/* ---------- table page ---------- */
.table-page { display: grid; grid-template-columns: 1fr 300px; gap: 12px; height: calc(100vh - 98px); min-height: 520px; }
body.multi-on .table-page { height: calc(100vh - 164px); }
body.multi-on main.view.full { min-height: calc(100vh - 140px); }
.table-page.felt-green { --felt: #1f6b45; --felt-dark: #134a2f; --felt-light: #2b8a5a; }
.table-page.felt-space { --felt: #0f1c38; --felt-dark: #070b18; --felt-light: #1c3466; }
.table-page.felt-blue { --felt: #1f4f78; --felt-dark: #163a58; --felt-light: #2a6aa0; }
.table-page.felt-red { --felt: #7a2430; --felt-dark: #561821; --felt-light: #9a3040; }
.table-page.felt-dark { --felt: #2b3038; --felt-dark: #1d2127; --felt-light: #3a414b; }
.table-main { display: flex; flex-direction: column; min-width: 0; }
.table-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 4px 8px; font-size: 14px; }
.table-bar .small { padding: 5px 10px; }
.table-bar .name { font-weight: 700; }
.side-toggle { display: none; }
.felt-wrap { position: relative; flex: 1; min-height: 360px; margin-top: 24px; }
.felt { position: absolute; left: 9%; right: 9%; top: 12%; bottom: 14%; border-radius: 50% / 50%; z-index: 0; }
.felt::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; z-index: -2; background: linear-gradient(160deg, #262c3c, #0d1019 48%, #1b2130); box-shadow: 0 26px 60px rgba(0, 0, 0, .7), 0 0 50px rgba(47, 140, 255, .18), inset 0 2px 6px rgba(255, 255, 255, .14), inset 0 -3px 8px rgba(0, 0, 0, .6); }
.felt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; box-shadow: inset 0 0 0 3px rgba(47, 140, 255, .7), inset 0 0 24px rgba(47, 140, 255, .35), inset 0 0 110px rgba(0, 0, 0, .6); background-image: radial-gradient(ellipse at center, var(--felt-light) 0%, var(--felt) 55%, var(--felt-dark) 100%), repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px); }
.felt-space .felt::after { background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5), transparent 1.5px), radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, .4), transparent 1.5px), radial-gradient(1px 1px at 40% 80%, rgba(25, 214, 255, .6), transparent 1.5px), radial-gradient(1px 1px at 85% 25%, rgba(255, 61, 154, .6), transparent 1.5px), radial-gradient(ellipse at center, var(--felt-light) 0%, var(--felt) 55%, var(--felt-dark) 100%); }
.felt .logo-text { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); color: rgba(124, 192, 255, .14); font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .22em; text-transform: uppercase; pointer-events: none; z-index: 1; text-shadow: 0 0 20px rgba(47, 140, 255, .25); }
.center { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pot { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-pill); padding: 4px 12px 4px 8px; font-size: 13px; color: rgba(255, 255, 255, .78); transition: transform var(--t-fast) var(--ease-out); }
.pot b { color: var(--gold-2); font-size: 15px; font-weight: 800; }
.pot.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.board { display: flex; gap: 6px; min-height: 70px; align-items: center; }
.boards { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.board.run { position: relative; padding-left: 34px; min-height: 0; }
.board.run .run-tag { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; color: var(--gold-2); background: rgba(0, 0, 0, .5); border-radius: 6px; padding: 2px 5px; }
.board.run .run-win { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--green); background: rgba(0, 0, 0, .5); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.rabbit-sep { font-size: 18px; margin: 0 4px; opacity: .85; }
.result-banner { position: absolute; left: 50%; top: 69%; transform: translateX(-50%); background: rgba(0, 0, 0, .72); border: 1px solid rgba(47, 140, 255, .5); color: var(--gold-2); padding: 7px 16px; border-radius: var(--r-md); font-weight: 700; font-size: 14px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; animation: fade var(--t-enter) var(--ease-out); z-index: 1; box-shadow: var(--e2); }
.waiting-msg { position: absolute; left: 50%; top: 63%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; background: rgba(0, 0, 0, .3); padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.rit-pill { background: rgba(0, 0, 0, .6); border: 1px solid var(--gold); color: var(--gold-2); border-radius: var(--r-pill); padding: 4px 12px; font-size: 13px; font-weight: 700; animation: fade var(--t-enter) var(--ease-out); }
.rit-pill b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #061021; margin-left: 4px; }

/* ---------- cards: corner indices + center pip, dealt from the table center ---------- */
.card { --cw: 50px; --ch: 70px; width: var(--cw); height: var(--ch); border-radius: 7px; background: linear-gradient(160deg, #ffffff, #eef1f5); border: 1px solid #cfd5dd; color: var(--card-black); position: relative; box-shadow: 0 2px 6px rgba(0, 0, 0, .45), inset 0 1px 0 #fff; font-weight: 800; line-height: 1; animation: deal .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); user-select: none; flex-shrink: 0; }
@keyframes deal { from { transform: translate(var(--dx, 0px), var(--dy, -40px)) scale(.7) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* face-up cards fly in face down, then flip over like a real deal */
.card.flipin { animation: dealflip .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 140ms); transform-style: preserve-3d; }
.card.flipin > span { backface-visibility: hidden; }
.card.flipin::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; backface-visibility: hidden; transform: rotateY(180deg); background: radial-gradient(circle at 50% 50%, #1d4fd8 0, #0b2a7a 55%, #061a4a 100%), #0b2a7a; border: 3px solid #e8eefc; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); background-clip: padding-box; }
@keyframes dealflip { 0% { transform: translate(var(--dx, 0px), var(--dy, -40px)) rotateY(180deg) scale(.8); opacity: 0; } 45% { transform: translate(0, 0) rotateY(180deg) scale(1); opacity: 1; } 100% { transform: rotateY(0deg); opacity: 1; } }
.card.shine { box-shadow: 0 0 0 2px var(--cyan), 0 0 22px rgba(25, 214, 255, .75), 0 2px 6px rgba(0, 0, 0, .45); }
.card.shine::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%); background-size: 260% 100%; animation: shine 2.2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.card.sel { transform: translateY(-14px) !important; box-shadow: 0 0 0 2px var(--pink), 0 0 18px rgba(255, 61, 154, .7); }
/* face layout: rank over a small suit in the top-left corner, one big suit bottom-right. Everything scales with
   the card width, so the index and the pip never touch at any size (the old mirrored index crowded small cards). */
.card .ix { position: absolute; left: calc(var(--cw) * .09); top: calc(var(--cw) * .07); display: flex; flex-direction: column; align-items: center; font-size: calc(var(--cw) * .40); line-height: .95; }
.card .ix b { letter-spacing: -.02em; }
.card.t10 .ix { left: calc(var(--cw) * .05); }
.card.t10 .ix b { letter-spacing: -.1em; font-size: .9em; padding-right: .08em; }
.card .ix i { font-style: normal; font-size: calc(var(--cw) * .28); line-height: 1; margin-top: calc(var(--cw) * .01); }
.card .pip { position: absolute; right: calc(var(--cw) * .08); bottom: calc(var(--cw) * .05); font-size: calc(var(--cw) * .56); line-height: 1; opacity: .95; }
.card.red { color: var(--card-red); } .card.blue { color: var(--card-blue); } .card.green { color: var(--card-green); }
.card.back { background: radial-gradient(circle at 50% 50%, #1d4fd8 0, #0b2a7a 55%, #061a4a 100%); border: 3px solid #e8eefc; }
.card.back::before { content: ""; position: absolute; inset: 4px; border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 7px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 7px); }
.card.back::after { content: "♠"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); font-weight: 900; font-size: calc(var(--cw) * .46); text-shadow: 0 0 10px rgba(25, 214, 255, .9); }
.card.sm { --cw: 36px; --ch: 50px; border-radius: 5px; }
.card.dim { opacity: .45; }
.card.hi { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(47, 140, 255, .8); transform: translateY(-5px); z-index: 1; }
.card.lo { opacity: .45; filter: saturate(.6); }
.card.rabbit { opacity: .6; outline: 2px dashed rgba(255, 255, 255, .55); }
.cards-large .card { --cw: 58px; --ch: 82px; }
.cards-large .card.sm { --cw: 42px; --ch: 58px; }
.boards .card { --cw: 42px; --ch: 58px; }

/* ---------- seats ---------- */
.seat { position: absolute; width: 150px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 2; transition: opacity var(--t-fast); }
.seat .hole { display: flex; gap: 3px; height: 50px; margin-bottom: -22px; z-index: 1; justify-content: center; }
.seat.n4 .hole, .seat.n5 .hole { gap: 0; }
.seat.n4 .hole .card, .seat.n5 .hole .card { margin: 0 -7px; }
.seat .who { display: flex; flex-direction: column; align-items: center; cursor: pointer; width: 100%; }
.seat .avatar-wrap { position: relative; width: 70px; height: 70px; display: grid; place-items: center; z-index: 2; }
.seat .avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; border: 2.5px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 3px rgba(4, 5, 10, .6); background: #3a4656; letter-spacing: .02em; transition: filter var(--t-fast); }
.seat .avatar.pic { font-size: 32px; }
.seat .avatar.bot { background: #26303d; font-size: 28px; }
.seat .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.seat .ring circle { fill: none; stroke-width: 5; }
.seat .ring .bg { stroke: rgba(0, 0, 0, .5); }
.seat .ring .fg { stroke: var(--gold); stroke-linecap: round; }
.seat .ring.mid .fg { stroke: #19d6ff; }
.seat .ring.low .fg { stroke: var(--red); }
.seat .ring.tb .fg { stroke: var(--blue); }
.seat .secs { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: #111; color: var(--gold-2); border: 2px solid var(--gold); border-radius: var(--r-pill); min-width: 32px; padding: 0 7px; font-size: 13px; font-weight: 800; line-height: 18px; text-align: center; z-index: 4; white-space: nowrap; box-shadow: var(--e1); }
.seat .secs.low { color: #fff; background: var(--red); border-color: #ff9a9e; animation: pulse .5s infinite alternate; }
.seat .secs.tb { color: #fff; background: var(--blue); border-color: #a9d2ff; }
@keyframes pulse { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.15); } }
.seat .note-dot { position: absolute; right: 1px; top: 1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--e1); }
.seat .plate { width: 100%; margin-top: -14px; background: linear-gradient(180deg, #1a2138, #0b0e18); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 15px 8px 6px; text-align: center; position: relative; box-shadow: var(--e2); z-index: 1; transition: box-shadow var(--t-fast), border-color var(--t-fast), opacity var(--t-fast); }
.seat.me .plate { border-color: rgba(47, 140, 255, .7); }
.seat .plate .nm { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #dbe3ee; }
.seat .plate .nm small { color: var(--muted); font-weight: 400; font-size: 11px; }
.seat .plate .st { font-size: 15px; color: var(--gold-2); font-weight: 800; letter-spacing: -.01em; }
.seat .act { position: absolute; right: -2px; top: -24px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-4); border: 1px solid var(--line-2); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; z-index: 3; animation: fade var(--t-fast) var(--ease-out); box-shadow: var(--e1); }
.seat .act.fold { color: var(--muted); }
.seat .act.raise, .seat .act.bet, .seat .act.all-in { color: #061021; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold-deep); }
.seat .act.call, .seat .act.check { color: #cfe6ff; background: #1f4d7a; border-color: #2d6aa6; }
.seat .plate .hlabel { font-size: 10.5px; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.seat .plate .tbar { height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.seat .plate .tbar i { display: block; height: 100%; width: 100%; background: var(--gold); }
.seat .hud { margin-top: 3px; display: flex; gap: 7px; align-items: flex-end; font-size: 10.5px; color: var(--muted); background: rgba(0, 0, 0, .5); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.seat .hud span { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; }
.seat .hud i { font-style: normal; font-size: 8px; color: var(--muted); letter-spacing: .04em; }
.seat .hud b { color: #cfe3ff; font-weight: 700; }
.seat .hud .n { margin-left: 2px; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .15); }
.seat .tag { font-size: 10px; color: var(--muted); }
.seat.to-act .plate { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(47, 140, 255, .6), 0 0 24px rgba(47, 140, 255, .35); }
.seat.urgent .plate { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 0 28px rgba(255, 90, 95, .6); }
.seat.urgent .plate .tbar i { background: var(--red); }
.seat.folded .avatar, .seat.out .avatar { filter: grayscale(.85) brightness(.6); }
.seat.folded .plate, .seat.out .plate { opacity: .55; }
.seat.folded .hole .card { filter: grayscale(1) brightness(.45); opacity: .7; }
.seat.me.folded .hole .card { filter: grayscale(1) brightness(.4); opacity: .55; }
.seat.won .plate { border-color: rgba(61, 220, 132, .6); opacity: 1; }
.seat.winner .plate { border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 0 28px rgba(61, 220, 132, .55); opacity: 1; }
.seat.winner .avatar { border-color: var(--green); }
.seat.winner .avatar-wrap { animation: winpop .7s var(--ease-out); }
.you-win { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); font-family: var(--display); font-size: 42px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; text-shadow: 0 0 24px var(--green), 0 0 60px rgba(61, 220, 132, .8); z-index: 6; animation: youwin 2.4s var(--ease-out) forwards; pointer-events: none; white-space: nowrap; }
@keyframes youwin { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
@keyframes winpop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.seat .empty-btn { width: 100%; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 255, 255, .35); border-radius: var(--r-md); padding: 12px 6px; color: rgba(255, 255, 255, .75); font-size: 13px; min-height: 44px; box-shadow: none; }
.seat .empty-btn:hover { background: rgba(0, 0, 0, .55); color: #fff; border-color: var(--gold); }
.seat .empty-btn:disabled { opacity: .3; }
/* hero seat: cards beside the avatar, fanned */
.seat.me { flex-direction: row; align-items: center; gap: 8px; width: 290px; }
.seat.me .hole { height: auto; margin: 0 0 14px; order: 0; }
.seat.me .who { width: 150px; order: 1; }
.seat.me .avatar-wrap { width: 86px; height: 86px; }
.seat.me .avatar { width: 74px; height: 74px; font-size: 24px; }
.seat.me .avatar.pic { font-size: 42px; }
.seat.me .plate { margin-top: -18px; padding-top: 19px; }
.seat.me .hole .card { margin: 0 -6px; transform: rotate(calc((var(--i, 0) - (var(--n, 2) - 1) / 2) * 9deg)) translateY(calc(abs(var(--i, 0) - (var(--n, 2) - 1) / 2) * 3px)); transform-origin: 50% 120%; }
.seat.me .hole .card.flipin { animation-name: dealflip-fan; }
@keyframes dealflip-fan { 0% { transform: translate(var(--dx, 0px), var(--dy, -40px)) rotateY(180deg) scale(.8); opacity: 0; } 45% { transform: translate(0, 0) rotateY(180deg) scale(1); opacity: 1; } 100% { transform: rotate(calc((var(--i, 0) - (var(--n, 2) - 1) / 2) * 9deg)) translateY(calc(abs(var(--i, 0) - (var(--n, 2) - 1) / 2) * 3px)) rotateY(0deg); opacity: 1; } }

/* ---------- chips, bets, dealer, movement ---------- */
.bet-chip { position: absolute; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: var(--r-pill); padding: 2px 9px 2px 4px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; z-index: 1; animation: betin .3s var(--ease-out) both; transition: left .35s var(--ease-out), top .35s var(--ease-out); }
@keyframes betin { from { transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, 0px))) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
.stack { display: inline-flex; align-items: flex-end; gap: 3px; }
.stack .col { display: inline-flex; flex-direction: column-reverse; align-items: center; position: relative; }
.stack .col em { position: absolute; right: -8px; top: -8px; font-style: normal; font-size: 9px; font-weight: 800; background: #061021; color: #fff; border-radius: var(--r-pill); padding: 0 4px; line-height: 13px; }
.chip { --chip: #e8ecf1; --edge: #ffffff; --ink: #061021; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: -12px; position: relative; box-sizing: border-box; color: var(--ink); font-size: 7.5px; font-weight: 900; letter-spacing: -.02em; font-family: var(--font);
  background: radial-gradient(circle at 50% 50%, var(--chip) 0 56%, transparent 57%), repeating-conic-gradient(from 8deg, var(--edge) 0 22deg, var(--chip) 22deg 60deg);
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, .55), 0 2px 3px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(255, 255, 255, .0); }
.chip::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .55); pointer-events: none; }
.chip::after { content: attr(data-v); position: relative; z-index: 1; }
.chip:first-child { margin-top: 0; }
.chip.d1 { --chip: #e8ecf1; --edge: #2b2f36; }
.chip.d5 { --chip: #d7263d; --edge: #fff; --ink: #fff; }
.chip.d25 { --chip: #1f9e5a; --edge: #fff; --ink: #fff; }
.chip.d100 { --chip: #1b1f24; --edge: #fff; --ink: #fff; }
.chip.d500 { --chip: #7b3fb8; --edge: #fff; --ink: #fff; }
.chip.d1k { --chip: #f2c01c; --edge: #061021; }
.chip.d5k { --chip: #ff3d9a; --edge: #fff; --ink: #fff; }
.pot .stack { margin-right: 6px; }
.pot .chip { width: 20px; height: 20px; margin-top: -10px; font-size: 6.5px; }
.pot .chip:first-child { margin-top: 0; }
.chip-ico { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #7cc0ff, #1a63cc 70%); border: 2px dashed #fff; box-sizing: border-box; display: inline-block; }
.dealer-btn { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #fff6d6, var(--gold)); color: #061021; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: var(--e1); z-index: 3; border: 1px solid var(--gold-deep); transition: left .45s var(--ease-out), top .45s var(--ease-out); }
.pot-fly { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .72); border: 1px solid var(--line-2); color: #fff; border-radius: var(--r-pill); padding: 3px 10px 3px 5px; font-weight: 800; font-size: 13px; display: flex; gap: 5px; align-items: center; z-index: 4; animation: fly 1.1s .25s ease-in-out forwards; pointer-events: none; }
.pot-fly.mine { border-color: var(--green); color: var(--green); box-shadow: 0 0 18px rgba(61, 220, 132, .6); }
@keyframes fly { 0% { left: 50%; top: 47%; opacity: 1; } 80% { opacity: 1; } 100% { left: var(--x); top: var(--y); opacity: 0; } }
.reaction { position: absolute; transform: translate(-50%, -50%); font-size: 32px; z-index: 6; animation: react 2.5s ease-out forwards; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
@keyframes react { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 80% { opacity: 1; transform: translate(-50%, -80%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(.9); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; animation: confetti 1.9s ease-in forwards; }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(640px) rotate(720deg); opacity: 0; } }

/* ---------- action area ---------- */
.action-bar { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; padding: 6px 4px 2px; min-height: 92px; }
.action-left { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.action-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: 1; min-width: 0; }
.me-hand { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.me-hand .hs { color: var(--green); font-weight: 700; }
.me-hand .odds { color: var(--muted); font-size: 12px; }
.social { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-pick { display: flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 4px; width: max-content; animation: fade var(--t-fast) var(--ease-out); box-shadow: var(--e2); }
.emoji-pick button { font-size: 20px; padding: 4px 7px; background: transparent; line-height: 1; box-shadow: none; }
.emoji-pick button:hover { background: var(--bg-4); }
.my-timer { position: relative; width: 100%; max-width: 660px; height: 18px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.my-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }
.my-timer.low i { background: var(--red); }
.my-timer span { position: absolute; inset: 0; text-align: center; font-size: 12px; font-weight: 700; line-height: 18px; color: #fff; text-shadow: 0 1px 2px #000; }
.action-bar .sizer { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 6px 10px; width: 100%; max-width: 660px; box-shadow: var(--e1); }
.action-bar .sizer input[type=range] { flex: 1; min-width: 60px; }
.action-bar .sizer input[type=text] { width: 92px; text-align: right; padding: 6px 8px; font-weight: 700; }
.action-bar .sizer .pm { padding: 4px 10px; font-size: 15px; border-radius: var(--r-sm); min-width: 32px; }
.action-bar .quick { display: flex; gap: 4px; }
.action-bar .quick button { padding: 5px 9px; font-size: 12px; border-radius: var(--r-sm); white-space: nowrap; background: var(--bg-3); }
.action-bar .quick button:hover { background: var(--bg-4); }
.action-btns { display: flex; gap: 10px; justify-content: flex-end; width: 100%; max-width: 660px; }
.action-btns .big { flex: 1; min-width: 110px; min-height: 54px; padding: 12px 14px; font-weight: 800; font-size: 17px; white-space: nowrap; border-radius: 14px; letter-spacing: .01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(0, 0, 0, .35); }
.action-btns .big:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px rgba(0, 0, 0, .4); }
.action-btns .big:active { transform: translateY(1px) scale(.98); }
.action-bar .fold { background: linear-gradient(180deg, #5a2a30, #3a1b20); color: #ffb3b6; }
.action-bar .callb { background: linear-gradient(180deg, #2a5a8a, #1c3d60); color: #cfe6ff; }
.action-bar .raiseb { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #061021; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px rgba(47, 140, 255, .45); }
.action-bar .callb { background: linear-gradient(180deg, #1f9e5a, #136b3b); color: #e6fff0; }
.me-note { font-size: 13px; color: var(--muted); text-align: right; }
.preacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.preacts .pre { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 600; min-height: 44px; transition: border-color var(--t-fast), background var(--t-fast); }
.preacts .pre.on { border-color: var(--gold); background: rgba(47, 140, 255, .12); }
.rit-ask { width: 100%; max-width: 660px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--gold); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: 0 0 0 3px rgba(47, 140, 255, .18), var(--e3); animation: fade var(--t-enter) var(--ease-out); }
.rit-ask .rit-q { font-size: 18px; font-weight: 800; }
.rit-ask .rit-btns { display: flex; gap: 10px; margin-bottom: 8px; }
.rit-ask .rit-btns .big { flex: 1; }
.hide-narrow { display: inline; }
.lvl-wrap { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.lvl-bar { display: block; width: 90px; height: 4px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.lvl-bar i { display: block; height: 100%; width: 100%; background: var(--gold); }

/* ---------- side panel ---------- */
.side { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); min-height: 0; overflow: hidden; box-shadow: var(--e1); }
.side .tabs { margin: 0; padding: 6px 8px 0; }
.side .tabs .small { padding: 3px 8px; margin-bottom: 4px; }
.side .log { flex: 1; overflow: auto; padding: 8px 12px; font-size: 13px; }
.side .log div { padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .05); }
.side .log .ev-hand { color: var(--gold-2); font-weight: 700; margin-top: 6px; }
.side .log .ev-street { color: #9ccbff; }
.side .log .ev-result, .side .log .ev-show { color: var(--green); }
.side .log .ev-seat, .side .log .ev-fee, .side .log .ev-clock { color: var(--muted); }
.side .log .chat b { color: var(--gold-2); }
.side form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.side form input { padding: 7px 10px; }

/* ---------- player popup, settings, notes ---------- */
.hud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.hud-grid > div { background: var(--bg); border-radius: var(--r-md); padding: 8px 10px; }
.hud-grid .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hud-grid .v { font-size: 18px; font-weight: 800; }
.hud-grid small { color: var(--muted); font-size: 11px; display: block; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; padding: 0; border: 2px solid var(--line-2); box-shadow: none; }
.color-dot.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.av-big { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: #fff; font-weight: 800; border: 3px solid rgba(255, 255, 255, .85); box-shadow: var(--e2); flex-shrink: 0; }
.av-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.av-grid button { font-size: 22px; padding: 6px 0; background: var(--bg); border: 2px solid transparent; border-radius: var(--r-md); line-height: 1.2; box-shadow: none; }
.av-grid button.on { border-color: var(--gold); background: rgba(47, 140, 255, .12); }
.av-colors { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.av-colors button { width: 28px; height: 28px; border-radius: 50%; padding: 0; border: 2px solid transparent; box-shadow: none; }
.av-colors button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.graph svg { width: 100%; height: 190px; display: block; }
.graph .axis { stroke: var(--line-2); stroke-width: 1; }
.graph .zero { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 4 4; }
.graph .line { fill: none; stroke: var(--gold); stroke-width: 2; }
.graph .area { fill: rgba(47, 140, 255, .12); }
.graph text { fill: var(--muted); font-size: 11px; }

/* ---------- cashier, hands ---------- */
.amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.amounts button { min-width: 70px; }
code.code { font-size: 20px; letter-spacing: .08em; background: var(--bg); padding: 6px 10px; border-radius: var(--r-sm); border: 1px dashed var(--gold); color: var(--gold-2); }
.hand-detail .street-block { margin: 10px 0; padding: 10px; background: var(--bg); border-radius: var(--r-md); }
.hand-detail .street-block h4 { margin: 0 0 6px; color: #9ccbff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lobby-grid { grid-template-columns: 1fr; }
  .promos { display: none; }
}
@media (max-width: 980px) {
  .landing { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 42px; }
  .auth-box { position: static; }
  .table-page { grid-template-columns: 1fr; height: auto; }
  .side { display: none; height: 300px; }
  .table-page.side-open .side { display: flex; }
  .side-toggle { display: inline-block; }
  .felt-wrap { min-height: 430px; }
}
@media (max-width: 640px) {
  header.top .inner { gap: 8px; padding: 8px 10px; overflow-x: auto; }
  .brand span:not(.logo) { display: none; }
  nav.main { margin-left: 0; }
  nav.main a { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .balance-pill { padding: 4px 10px; font-size: 12px; }
  .balance-pill .chips, .who, .hide-narrow { display: none; }
  .mode-switch button { padding: 3px 9px; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .stat .v { font-size: 20px; }
  .room-switch button { min-width: 0; padding: 6px 10px; }
  .room-switch button small { display: none; }
  .tabs.big button { padding: 8px 10px; font-size: 14px; }
  .felt { left: 4%; right: 4%; top: 10%; bottom: 10%; }
  .felt-wrap { margin-top: 30px; }
  .table-bar { gap: 6px; }
  .table-bar .name { font-size: 13px; }
  .seat { width: 100px; }
  .seat .plate .nm, .seat .plate .st { font-size: 11px; }
  .seat .plate .hlabel, .seat .hud { display: none; }
  .seat .avatar-wrap { width: 46px; height: 46px; }
  .seat .avatar { width: 38px; height: 38px; font-size: 12px; }
  .seat .avatar.pic, .seat .avatar.bot { font-size: 20px; }
  .seat .hole { height: 44px; margin-bottom: -18px; }
  .seat.me { width: 210px; gap: 4px; }
  .seat.me .who { width: 100px; }
  .seat.me .avatar-wrap { width: 58px; height: 58px; }
  .seat.me .avatar { width: 50px; height: 50px; }
  .seat.me .avatar.pic { font-size: 28px; }
  .seat.me .hole { height: 56px; margin-bottom: -8px; }
  .hero-inner { padding: 22px 18px; }
  .hero h1 { font-size: 34px; }
  .lh-brand { font-size: 26px; }
  .gtab { min-height: 60px; padding-right: 60px; }
  .gtab b { font-size: 15px; }
  .gtab i { font-size: 32px; }
  .multi { top: 47px; }
  .you-win { font-size: 28px; }
  .card { --cw: 38px; --ch: 54px; }
  .card.sm { --cw: 28px; --ch: 40px; }
  .hero h1 { font-size: 30px; }
  .action-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .action-left { min-width: 0; }
  .action-right { align-items: stretch; }
  .action-bar .sizer { max-width: none; flex-wrap: wrap; }
  .action-btns { max-width: none; }
  .action-btns .big { min-width: 0; padding: 12px 8px; font-size: 15px; min-height: 52px; }
  .me-note { text-align: left; }
  .felt .logo-text { font-size: 16px; }
  .welcome-grid { grid-template-columns: 1fr; }
  main.view.full { padding: 6px 6px 16px; }
}

/* ---------- loading screen: logo, a quote, a slow bar ---------- */
.loading-screen { position: relative; min-height: 60vh; border-radius: var(--r-xl); overflow: hidden; display: grid; place-items: center; background-size: cover; background-position: center; background-color: var(--bg-2); }
.loading-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(4, 5, 10, .55), rgba(4, 5, 10, .92) 75%); }
.ls-inner { position: relative; text-align: center; max-width: 560px; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ls-logo { width: 72px; height: auto; filter: drop-shadow(0 0 18px rgba(47, 140, 255, .7)); animation: lsfloat 2.6s ease-in-out infinite; }
@keyframes lsfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ls-quote { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.25; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); min-height: 70px; }
.ls-quote.out { opacity: 0; transform: translateY(-6px); }
.ls-quote cite { display: block; margin-top: 8px; font-family: var(--font); font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-2); }
.ls-bar { width: 220px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ls-bar i { display: block; height: 100%; width: 40%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--gold), var(--pink)); animation: lsbar 1.4s ease-in-out infinite; }
@keyframes lsbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.ls-inner small { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
/* ---------- image avatars ---------- */
.seat .avatar.pic, .hdr-avatar.pic, .av-big.pic { padding: 0; overflow: hidden; background: #0b0e18; border-width: 2.5px; border-style: solid; }
.seat .avatar.pic img, .hdr-avatar.pic img, .av-big.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hdr-avatar.pic { border-width: 2px; }
.av-grid.pics { grid-template-columns: repeat(6, 1fr); }
.av-grid.pics button { padding: 0; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 3px solid transparent; background: var(--bg); }
.av-grid.pics button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-grid.pics button.on { border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 61, 154, .6); }
button.icon { display: inline-grid; place-items: center; min-width: 32px; }
button.icon svg { display: block; }
.geo-pill svg { display: inline-block; vertical-align: -2px; }
.hud .hot, .hud .cold { width: 7px; height: 7px; border-radius: 50%; display: inline-block; align-self: center; }
.hud .hot { background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.hud .cold { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.gtab i svg { width: 46px; height: 46px; }
.land-games .lg i svg { width: 24px; height: 24px; }
.finish-ico svg { width: 56px; height: 56px; }
.finish-ico.gold { color: var(--gold-2); } .finish-ico.green { color: var(--green); } .finish-ico.muted { color: var(--muted); }
/* reactions as text pills */
.reaction { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, var(--pink-2), var(--pink)); padding: 4px 12px; border-radius: var(--r-pill); box-shadow: 0 0 18px rgba(255, 61, 154, .6); }
.emoji-pick button { font-size: 12px; font-weight: 700; padding: 6px 10px; text-transform: uppercase; letter-spacing: .06em; }
/* stud: up to seven cards per seat */
.seat.n6 .hole, .seat.n7 .hole { gap: 0; }
.seat.n6 .hole .card, .seat.n7 .hole .card { margin: 0 -9px; }
.seat.me.n7 { width: 330px; }
.seat.me.n7 .hole .card, .seat.me.n6 .hole .card { margin: 0 -10px; }
.lo-lab { color: var(--cyan); }
.rabbit-sep { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); align-self: center; }

/* ---------- top seats: cards hang below the plate so nothing is clipped ---------- */
.seat.low .hole { order: 3; margin: -8px 0 0; height: auto; }
.seat.low .hole .card { --cw: 32px; --ch: 44px; }
/* ---------- side games ---------- */
.sidegames { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sidegames button.on { background: linear-gradient(180deg, var(--pink-2), var(--pink)); color: #fff; }
.sidegames .cnt { background: rgba(0, 0, 0, .35); border-radius: var(--r-pill); padding: 0 6px; font-size: 11px; }
.seat .badges { position: absolute; display: flex; }
.seat .sg { font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .08em; padding: 1px 5px; border-radius: 5px; background: var(--bg-4); color: var(--muted); border: 1px solid var(--line-2); }
.seat .sg.b72 { color: #fff; background: #7a1d9c; border-color: #b65ad8; }
.seat .sg.nit { color: #fff; background: #b8720f; border-color: #f2c01c; }
.seat .sg.str { color: #fff; background: var(--gold-deep); border-color: var(--gold-2); }
.seat .avatar.clown { border-color: var(--pink); animation: clownin .6s var(--ease-out); filter: saturate(1.2); }
@keyframes clownin { 0% { transform: scale(.6) rotate(-20deg); } 60% { transform: scale(1.15) rotate(8deg); } 100% { transform: none; } }
.pay-fly { position: absolute; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .75); border: 1px solid var(--pink); color: #fff; border-radius: var(--r-pill); padding: 3px 10px 3px 5px; font-weight: 800; font-size: 13px; display: flex; gap: 5px; align-items: center; z-index: 7; opacity: 0; animation: payfly 1.6s ease-in-out forwards; pointer-events: none; }
.pay-fly.nit { border-color: #f2c01c; }
@keyframes payfly { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; left: var(--tx); top: var(--ty); } 100% { opacity: 0; left: var(--tx); top: var(--ty); } }
.sg-banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 8; text-align: center; pointer-events: none; opacity: 0; animation: sgbanner 4.4s ease-out forwards; padding: 14px 28px; border-radius: var(--r-xl); background: rgba(4, 5, 10, .82); border: 1px solid var(--line-2); box-shadow: var(--e3); min-width: 260px; }
.sg-banner b { display: block; font-family: var(--display); font-size: 40px; letter-spacing: .12em; line-height: 1; }
.sg-banner span { display: block; margin-top: 6px; font-size: 14px; color: #dfe7f5; }
.sg-banner em { display: block; margin-top: 6px; font-family: var(--display); font-style: normal; font-size: 20px; letter-spacing: .2em; color: #f2c01c; text-transform: uppercase; }
.sg-banner.b72 { border-color: var(--pink); }
.sg-banner.b72 b { color: var(--pink); text-shadow: 0 0 24px rgba(255, 61, 154, .9); }
.sg-banner.nit { border-color: #f2c01c; }
.sg-banner.nit b { color: #f2c01c; text-shadow: 0 0 24px rgba(242, 192, 28, .8); }
@keyframes sgbanner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 8% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 14% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.sg-banner .flash { position: fixed; inset: 0; background: #fff; opacity: 0; animation: gunflash .5s ease-out .35s; pointer-events: none; }
@keyframes gunflash { 0% { opacity: 0; } 10% { opacity: .85; } 100% { opacity: 0; } }
.rabbit-panel { display: flex; gap: 4px; align-items: center; background: rgba(0, 0, 0, .55); border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 4px 8px; animation: fade var(--t-enter) var(--ease-out); }
.rabbit-panel > span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 6px; }
.rabbit-panel .card { --cw: 26px; --ch: 36px; animation: none; }

/* laptops (about 1024 to 1280 px wide): the bet-sizing row wraps instead of sliding under the side panel */
.action-bar .sizer { flex-wrap: wrap; row-gap: 6px; }
.action-bar .sizer input[type=range] { min-width: 110px; }
.action-bar .quick { flex-wrap: wrap; }

/* the left column (hand strength, reactions, side-game buttons) never squeezes the bet controls */
@media (min-width: 641px) { .action-left { flex: 0 1 250px; max-width: 250px; } }
/* short windows (768 px laptops): the felt gives up height before the action buttons leave the screen */
@media (max-height: 820px) { .felt-wrap { min-height: 290px; } }

/* ---------- seat labels sit beside the portrait, never under it ----------
   --av is the portrait box. The action label (BLIND, STRADDLE, CALL...) hangs off its right edge and the side-game
   labels (NIT, STR, 7-2) stack up its left edge; both are children of .who so they paint above the portrait. */
.seat { --av: 70px; }
.seat.me { --av: 86px; }
.seat .who { position: relative; }
.seat .act { right: auto; left: calc(50% + var(--av) / 2 - 12px); top: calc(var(--av) - 40px); z-index: 6; }
.seat .badges { right: calc(50% + var(--av) / 2 - 10px); top: calc(var(--av) - 18px); transform: translateY(-100%); flex-direction: column; align-items: flex-end; gap: 2px; z-index: 6; }
.seat .act.post, .seat .act.straddle { color: #fff; background: var(--gold-deep); border-color: var(--gold-2); }
@media (max-width: 640px) { .seat { --av: 46px; } .seat.me { --av: 58px; } }
/* the nit button: a round token in front of each nit player who has not won a hand this round */
.nit-btn { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a8, #f2a81c 60%, #b8720f); color: #2a1700; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: var(--e1), 0 0 10px rgba(242, 168, 28, .6); z-index: 3; border: 1px solid #7a4a05; transition: left .45s var(--ease-out), top .45s var(--ease-out); }
/* new player: wait for the big blind or post */
.entry-choice { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
input[type=radio] { width: 18px; height: 18px; accent-color: var(--gold); }
.kyc-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
main.view.wide { max-width: 1760px; }


/* ---------------------------------------------------------------- test-site marquee (index.html) */
.test-banner { overflow: hidden; white-space: nowrap; background: #ffcc33; color: #111; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; }
.test-banner span { display: inline-block; padding-left: 100%; animation: test-marquee 22s linear infinite; }
@keyframes test-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .test-banner span { animation: none; padding-left: 0; } }

/* ---------------------------------------------------------------- account security (web/security.js) */
.maint-banner { position: sticky; top: 0; z-index: 400; padding: 8px 16px; text-align: center; font-weight: 600;
  background: linear-gradient(90deg, var(--pink), var(--pink-2)); color: #fff; letter-spacing: .02em; }
.sec-qr { display: flex; justify-content: center; margin: 10px 0; }
.sec-qr img { background: #fff; padding: 8px; border-radius: var(--r-md, 12px); }
.sec-key { text-align: center; margin: 10px 0; }
.sec-key code { font-size: 18px; letter-spacing: .08em; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06);
  display: inline-block; word-break: break-all; user-select: all; }
.sec-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.sec-codes code { text-align: center; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 15px; user-select: all; }

/* ---------------------------------------------------------------- cash deposits (web/cage.js) */
.cage-ticket { text-align: center; }
.cage-ticket .ct-head { font-family: var(--font-display, inherit); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--pink-2); margin: 0 0 6px; }
.cage-ticket .ct-amount { font-size: 46px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cage-ticket .ct-sub { color: var(--muted, #8a93a6); font-size: 13px; margin-bottom: 12px; }
.cage-ticket .ct-code code { display: inline-block; font-size: 26px; font-weight: 700; letter-spacing: .1em; padding: 10px 16px; border-radius: 12px;
  background: rgba(47, 140, 255, .12); border: 1px solid rgba(47, 140, 255, .55); user-select: all; }
.cage-ticket .ct-qr { margin: 12px 0 4px; }
.cage-ticket .ct-qr img { background: #fff; padding: 6px; border-radius: 10px; }
.cage-ticket .ct-facts { margin: 10px auto; width: auto; text-align: left; }
.cage-ticket .ct-steps { text-align: left; margin: 10px auto; max-width: 380px; padding-left: 20px; color: var(--muted, #8a93a6); font-size: 14px; }
.cage-ticket .ct-steps li { margin: 3px 0; }
.cage-ticket .ct-status { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-weight: 600; }
.cage-ticket .ct-status.ok { background: rgba(53, 196, 106, .16); color: #7be3a0; }
.cage-ticket .ct-status.bad { background: rgba(229, 72, 77, .16); color: #ff9a9d; }
.cage-ticket .actions { justify-content: center; }
