@font-face { font-family: "Barlow SC"; src: url("fonts/barlowsc-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlowsc-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("fonts/barlowsc-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #07110d;
  --bg2: #0c1b15;
  --panel: #111f19;
  --panel2: #172a22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef3ef;
  --muted: #95a59c;
  --gold: #eab84b;
  --gold2: #c98f22;
  --red: #d8394b;
  --green: #2fae66;
  --blue: #3c8ce8;
  --felt1: #238055;
  --felt2: #0f4d31;
  --felt3: #0a3823;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --cw: 26px;   /* bot card width (set by JS) */
  --bw: 50px;   /* board card width */
  --hw: 60px;   /* hero card width */
  --av: 52px;   /* avatar size */
  --card-back: none;
  --felt-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: "Barlow SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg);
  overscroll-behavior: none; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 22px; height: 22px; display: block; }
#safe { position: absolute; visibility: hidden; pointer-events: none; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
#app { position: fixed; inset: 0; background: radial-gradient(120% 80% at 50% 0%, #143226 0%, var(--bg) 60%); }
.screen { position: absolute; inset: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- lobby */
#lobby { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(12px + var(--safe-top)) 14px calc(24px + var(--safe-bottom)); }
.lobby-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #f4cf6c, #b8801c); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(233, 184, 75, 0.25), inset 0 1px 0 rgba(255,255,255,.5); }
.brand-mark svg { width: 26px; height: 26px; fill: #1b1204; }
.brand h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.brand h1 span { color: var(--gold); }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.brand .profile { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.brand .profile .av-sm { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.brand .profile b { font-size: 14px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bankroll { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #1b3a2c, #10241b); border: 1px solid rgba(233, 184, 75, 0.25); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bankroll .chipico { width: 42px; height: 42px; border-radius: 50%; background-size: cover; flex: none; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.bankroll .lbl { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bankroll .val { font-size: 28px; font-weight: 800; line-height: 1.05; }
.bankroll .sub { color: var(--muted); font-size: 13px; }
.bankroll .sub b { color: var(--text); }
.bankroll .reload { margin-left: auto; }

.resume { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #3a2a0c, #2a1e08); border: 1px solid rgba(233, 184, 75, 0.45); }
.resume .t { font-weight: 800; font-size: 16px; }
.resume .d { color: #d8c79c; font-size: 13px; }
.resume .btn { margin-left: auto; }

.seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.seg button { flex: 1; padding: 8px 6px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: linear-gradient(#2c4a3c, #213a2f); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 6px rgba(0,0,0,.3); }
.row-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

.mode { position: relative; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.mode::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--accent, rgba(233,184,75,.22)), transparent 70%); pointer-events: none; }
.diff-note { margin: -6px 2px 0; color: var(--muted); font-size: 13px; }
.mode .art { position: absolute; right: 14px; top: 12px; pointer-events: none; }
.art-cards { display: flex; }
.art-cards { top: 8px !important; right: 18px !important; }
.art-cards .card { --w: 27px; box-shadow: none; }
.art-cards .card:nth-child(1) { transform: rotate(-14deg) translate(8px, 4px); }
.art-cards .card:nth-child(2) { transform: rotate(-2deg); z-index: 1; }
.art-cards .card:nth-child(3) { transform: rotate(12deg) translate(-8px, 4px); z-index: 2; }
.art-chips { width: 70px; height: 50px; }
.art-chips i { position: absolute; width: 30px; height: 30px; border-radius: 50%; background-size: cover; right: calc(var(--i) * 9px); top: calc(12px - var(--i) * 3px + (var(--i) % 2) * 12px); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.art-hu { display: flex; align-items: center; gap: 4px; }
.art-hu span { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.art-hu span svg { width: 100%; height: 100%; display: block; }
.art-hu b { font-size: 12px; color: var(--gold); font-weight: 800; }
.mode h2 { margin: 0; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mode h2 .tagline { font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(233,184,75,.12); border: 1px solid rgba(233,184,75,.3); padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.mode p { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.mode .opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mode .opts .seg { flex: 1; }
.mode .go { display: flex; gap: 10px; align-items: center; }
.mode .go .meta { color: var(--muted); font-size: 13px; line-height: 1.3; }
.mode .go .meta b { color: var(--text); }
.mode .go .btn { margin-left: auto; }

.stakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stakes button { padding: 8px 4px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stakes button b { font-size: 15px; }
.stakes button span { font-size: 11px; color: var(--muted); }
.stakes button[aria-pressed="true"] { border-color: var(--gold); background: rgba(233,184,75,.1); }
.stakes button:disabled { opacity: .45; cursor: not-allowed; }
.stakes button .ic { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; color: var(--muted); }

.opponents { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.opponents::-webkit-scrollbar { display: none; }
.opp { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 14px; border: 1px solid transparent; }
.opp .av-md { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.opp b { font-size: 13px; }
.opp span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; text-align: center; line-height: 1.1; }
.opp[aria-pressed="true"] { border-color: var(--gold); background: rgba(233,184,75,.08); }
.opp[aria-pressed="true"] .av-md { box-shadow: 0 0 0 2px var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 13px; font-weight: 800; font-size: 16px; letter-spacing: 0.03em; text-transform: uppercase; background: linear-gradient(#f4c85d, #d99a26); color: #231704; box-shadow: 0 4px 14px rgba(217, 154, 38, 0.35), inset 0 1px 0 rgba(255,255,255,.45); white-space: nowrap; }
.btn:active { transform: translateY(1px); filter: brightness(.95); }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.green { background: linear-gradient(#3cc47a, #22924f); color: #fff; box-shadow: 0 4px 14px rgba(34, 146, 79, .35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.toggle i { width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #d7dcd9; transition: transform .2s; }
.toggle[aria-pressed="true"] { color: var(--text); }
.toggle[aria-pressed="true"] i { background: var(--green); }
.toggle[aria-pressed="true"] i::after { transform: translateX(16px); background: #fff; }

.navrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.navrow button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: #cbd6cf; }
.navrow button .ic { width: 22px; height: 22px; color: var(--gold); }
.fine { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.4; margin: 2px 8px 0; }

/* ---------------------------------------------------------------- table screen */
#table { display: flex; flex-direction: column; background: radial-gradient(100% 70% at 50% 45%, #183a2c 0%, #0a1712 70%, #060d0a 100%); }
.topbar { flex: none; display: flex; align-items: center; gap: 4px; padding: calc(6px + var(--safe-top)) 6px 4px; z-index: 20; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #d9e2dc; }
.icon-btn:active { background: rgba(255,255,255,.08); }
.topbar .title { flex: 1; text-align: center; min-width: 0; }
#tb-title { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tb-sub { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
#tb-sub b { color: var(--gold); }

.table-wrap { position: relative; flex: 1; min-height: 0; }
.felt {
  position: absolute; border-radius: 50% / 50%;
  border: 11px solid transparent;
  background:
    var(--felt-noise) padding-box,
    radial-gradient(ellipse at 50% 42%, var(--felt1) 0%, var(--felt2) 62%, var(--felt3) 100%) padding-box,
    linear-gradient(170deg, #8a5a33 0%, #4a2d18 38%, #2c1a0d 70%, #1b1008 100%) border-box;
  box-shadow:
    0 0 0 1px #140b05, 0 0 0 3px rgba(233, 184, 75, 0.35), 0 0 0 4px #140b05,
    0 26px 60px rgba(0,0,0,.65), inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.5), inset 0 3px 0 rgba(255,255,255,.04);
}
.felt::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 2px solid rgba(255,255,255,.06); pointer-events: none; }
.felt-logo { position: absolute; left: 50%; top: 79%; transform: translate(-50%, -50%); font-weight: 800; font-size: 22px; letter-spacing: 0.35em; color: rgba(0,0,0,.18); text-shadow: 0 1px 0 rgba(255,255,255,.05); pointer-events: none; white-space: nowrap; }
.hash-pill { position: absolute; left: 50%; top: 64%; z-index: 1; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.28); color: rgba(235,245,238,.7); font-size: 11px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.hash-pill .ic { width: 12px; height: 12px; color: var(--gold); }
.pot { position: absolute; left: 50%; top: 29%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; transition: opacity .2s; }
.pot-label { padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.45); font-weight: 800; font-size: 14px; white-space: nowrap; }
.pot-label small { color: var(--muted); font-weight: 700; font-size: 11px; margin-right: 4px; text-transform: uppercase; }
.pot.empty { opacity: 0; }
.side-pots { position: absolute; left: 50%; top: 36%; transform: translateX(-50%); display: flex; gap: 5px; white-space: nowrap; }
.side-pots span { padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.4); font-size: 11px; font-weight: 700; color: #d8e4dc; }
.side-pots span b { color: #fff; }
.board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: calc(var(--bw) * 0.08); }
.board .slot { width: var(--bw); height: calc(var(--bw) * 1.4); border-radius: calc(var(--bw) * .1); background: rgba(0,0,0,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); position: relative; }
.board .card { --w: var(--bw); position: absolute; inset: 0; }
.banner { position: absolute; left: 50%; top: 63%; transform: translate(-50%, 0) scale(.9); padding: 5px 14px; border-radius: 999px; background: linear-gradient(#f6d272, #d99a26); color: #231704; font-weight: 800; font-size: 15px; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 6px 18px rgba(0,0,0,.45); pointer-events: none; z-index: 6; }
.banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* cards */
.card { --w: var(--cw); width: var(--w); height: calc(var(--w) * 1.4); position: relative; perspective: 800px; flex: none; }
.card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.3,.7,.3,1); transform: rotateY(180deg); }
.card.up .card-inner { transform: rotateY(0deg); }
.face, .back { position: absolute; inset: 0; border-radius: calc(var(--w) * 0.11); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 2px 5px rgba(0,0,0,.45); }
.back { transform: rotateY(180deg); background: var(--card-back) center / 100% 100% no-repeat; }
.face { background: linear-gradient(170deg, #ffffff, #f1ede2); overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.08); }
.face .rk { position: absolute; left: 7%; top: 1%; font-weight: 800; font-size: calc(var(--w) * 0.5); line-height: 1.02; letter-spacing: -0.06em; }
.face .s1 { position: absolute; left: 9%; top: 38%; width: 30%; }
.face .s2 { position: absolute; right: 7%; bottom: 6%; width: 54%; }
.face .court { position: absolute; right: 6%; bottom: 7%; width: 58%; opacity: .95; }
.face svg { fill: currentColor; display: block; overflow: visible; }
.suit-h, .suit-d { color: #d3263b; }
.suit-s, .suit-c { color: #17191f; }
.four-color .suit-d { color: #1f63d6; }
.four-color .suit-c { color: #138a3c; }
.card.dim .face { filter: brightness(.55) saturate(.6); }
.card.win .face { box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(234,184,75,.85), 0 2px 6px rgba(0,0,0,.45); }
.card.win { transform: translateY(-5px); transition: transform .25s; }

/* seats */
#seats { position: absolute; inset: 0; }
.seat { position: absolute; left: var(--x); top: var(--y); width: calc(var(--av) + 34px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 3; }
.seat .av-wrap { position: relative; width: var(--av); height: var(--av); }
.seat .avatar { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #22342b; box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 5px 12px rgba(0,0,0,.55); transition: filter .3s, box-shadow .3s; }
.seat .avatar svg { width: 100%; height: 100%; display: block; }
.seat .ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; opacity: 0; transition: opacity .2s; }
.seat .ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.seat .ring .bgc { stroke: rgba(0,0,0,.35); }
.seat .ring .fg { stroke: #6ee39a; }
.seat.acting .ring { opacity: 1; }
.seat.acting .avatar { box-shadow: 0 0 0 2px #6ee39a, 0 0 18px rgba(110,227,154,.6), 0 5px 12px rgba(0,0,0,.55); }
.seat .plate { position: relative; margin-top: -9px; padding: 3px 6px 3px; min-width: calc(var(--av) + 26px); max-width: calc(var(--av) + 40px); border-radius: 9px; background: linear-gradient(#18221d, #0b110e); border: 1px solid rgba(255,255,255,.12); text-align: center; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.seat .plate .nm { font-size: max(12px, calc(var(--av) * 0.225)); font-weight: 700; color: #c9d4ce; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.seat .plate .st { font-size: max(14px, calc(var(--av) * 0.265)); font-weight: 800; color: #fff; line-height: 1.1; }
.seat .plate .st.allin { color: var(--gold); }
.seat.folded .avatar { filter: grayscale(.85) brightness(.55); }
.seat.folded .plate { opacity: .7; }
.seat.out .avatar { filter: grayscale(1) brightness(.35); }
.seat.out .plate .st { color: var(--muted); font-size: 12px; }
.seat.winner .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(234,184,75,.8); }
.seat.winner .plate { border-color: var(--gold); }
.seat .cards { position: absolute; display: flex; z-index: 1; }
.seat:not(.hero) .cards { top: -2px; left: calc(50% + var(--av) * 0.18); }
.seat:not(.hero) .cards .card:nth-child(1) { transform: rotate(-8deg); }
.seat:not(.hero) .cards .card:nth-child(2) { transform: rotate(8deg); margin-left: calc(var(--cw) * -0.55); }
.seat:not(.hero) .cards.shown { top: calc(var(--av) - var(--cw) * 1.93 - 13px); left: 50%; right: auto; transform: translateX(-50%); z-index: 4; }
.seat:not(.hero) .cards.shown .card { --w: calc(var(--cw) * 1.38); transform: none; margin-left: 0; }
.seat:not(.hero) .cards.shown .card + .card { margin-left: 2px; }
.seat.left:not(.hero) .cards:not(.shown) { left: auto; right: calc(50% + var(--av) * 0.18); }
.seat .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; z-index: 5; background: #2c3a33; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.seat .tag.fold { background: #3a3f45; color: #b8c0bb; }
.seat .tag.check { background: #3f5f86; }
.seat .tag.call { background: #2b8c55; }
.seat .tag.raise, .seat .tag.bet { background: #d08a1e; color: #1f1403; }
.seat .tag.allin { background: #d8394b; }
.seat .tag.win { background: linear-gradient(#f6d272, #d99a26); color: #231704; }
.seat.left:not(.hero) .hname { left: 0; transform: none; }
.seat.right:not(.hero) .hname { left: auto; right: 0; transform: none; }
.seat .hname { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px; background: rgba(0,0,0,.72); font-size: 11px; font-weight: 700; white-space: nowrap; z-index: 5; }
.seat .hname.best { color: var(--gold); }
.seat .gain { position: absolute; top: calc(var(--av) * 0.25); left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 18px; color: #7cf0a8; text-shadow: 0 2px 6px rgba(0,0,0,.7); white-space: nowrap; z-index: 7; animation: gain 1.8s ease-out forwards; pointer-events: none; }
@keyframes gain { 0% { opacity: 0; transform: translate(-50%, 8px); } 15% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px); } }
.seat .think { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; opacity: 0; }
.seat.thinking .think { opacity: 1; }
.seat .think i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: dot 1s infinite; }
.seat .think i:nth-child(2) { animation-delay: .15s; } .seat .think i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* hero seat: bigger cards beside the avatar */
.seat.hero { width: calc(var(--av) + 34px); }
.seat.hero .cards { left: calc(100% - 8px); bottom: 6px; }
.seat.hero .cards .card { --w: var(--hw); }
.seat.hero .cards .card:nth-child(1) { transform: rotate(-5deg) translateY(2px); }
.seat.hero .cards .card:nth-child(2) { transform: rotate(5deg); margin-left: calc(var(--hw) * -0.28); }
.seat.hero .cards .card.win { transform: translateY(-6px); }
.seat.hero.folded .cards .card { filter: brightness(.5); }

.marker { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; z-index: 4; transition: left .5s ease, top .5s ease; box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 -2px 0 rgba(0,0,0,.15); }
.marker.dealer { background: radial-gradient(circle at 40% 35%, #ffffff, #d8d8d8); color: #1b1b1b; font-size: 12px; }
.marker.sb { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #3c8ce8; color: #fff; font-size: 8px; }
.marker.bb { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #eab84b; color: #231704; font-size: 8px; }

.bet { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 3px; z-index: 2; pointer-events: none; }
.bet .amt { padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 800; white-space: nowrap; }
.pile { position: relative; width: 20px; height: 20px; flex: none; }
.pile .chip { position: absolute; width: 18px; height: 18px; left: calc(var(--x) * 9px); bottom: calc(var(--y) * 2.6px); border-radius: 50%; background-size: cover; box-shadow: 0 1.5px 1.5px rgba(0,0,0,.55); }
.pot .pile { width: 28px; }

#fx { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
#fx > * { position: absolute; left: 0; top: 0; will-change: transform; }
#fx .card { --w: var(--cw); }

.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 8px); transform: translate(-50%, -10px); padding: 7px 14px; border-radius: 999px; background: rgba(12,20,16,.95); border: 1px solid rgba(233,184,75,.4); font-weight: 700; font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .25s, transform .25s; z-index: 30; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* hero dock + actions */
.hero-dock { flex: none; display: flex; justify-content: center; min-height: 26px; padding: 0 10px; }
.hint { display: flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; background: rgba(0,0,0,.35); font-size: 13px; font-weight: 700; color: #d4ddd7; white-space: nowrap; }
.hint:empty { visibility: hidden; }
.hint b { color: var(--gold); }
.hint .meter { width: 54px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.hint .meter i { display: block; height: 100%; background: linear-gradient(90deg, #d8394b, #eab84b 45%, #3cc47a); background-size: 54px 100%; }
.actionbar { flex: none; padding: 6px 10px calc(10px + var(--safe-bottom)); height: calc(192px + var(--safe-bottom)); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; z-index: 10; }
.act-row { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 8px; }
.act-btn { height: 58px; border-radius: 15px; font-weight: 800; font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; box-shadow: 0 5px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.act-btn small { font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; opacity: .95; }
.act-btn:active { transform: translateY(1px); filter: brightness(.95); }
.act-btn.fold { background: linear-gradient(#c43447, #93202f); color: #fff; }
.act-btn.call { background: linear-gradient(#35b870, #1f8a4b); color: #fff; }
.act-btn.raise { background: linear-gradient(#f6ca5e, #d4921f); color: #231704; }
.act-btn.allin { background: linear-gradient(#ff6b6b, #c7263a); color: #fff; }
.act-btn:disabled { opacity: .35; }
.sizer { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.presets button { height: 32px; border-radius: 9px; background: rgba(255,255,255,.08); font-weight: 800; font-size: 13px; color: #e1e8e3; }
.presets button[aria-pressed="true"] { background: rgba(233,184,75,.22); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(233,184,75,.6); }
.presets button:disabled { opacity: .3; }
.slide-row { display: flex; align-items: center; gap: 8px; }
.slide-row .step { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.slide-row .step .ic { width: 18px; height: 18px; }
.slide-row input { flex: 1; min-width: 0; }
.slide-row .val { min-width: 76px; text-align: center; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.4); font-weight: 800; font-size: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 34px; background: transparent; touch-action: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p, 0%), rgba(255,255,255,.14) var(--p, 0%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #d9d9d9); box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(233,184,75,.6); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--gold); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(233,184,75,.6); }
.pre-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pre-row button { height: 46px; border-radius: 13px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #cfd9d3; }
.pre-row button i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid rgba(255,255,255,.35); flex: none; display: grid; place-items: center; }
.pre-row button[aria-pressed="true"] { border-color: rgba(60,196,122,.8); color: #fff; background: rgba(47,174,102,.18); }
.pre-row button[aria-pressed="true"] i { background: var(--green); border-color: var(--green); }
.pre-row button[aria-pressed="true"] i::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 0 6px 2px; font-size: 13px; color: #9fb0a6; font-weight: 500; overflow: hidden; }
.feed div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed div:last-child { color: #dfe8e2; }
.feed b { color: inherit; font-weight: 700; }
.feed .st { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }
.pc { font-style: normal; font-weight: 800; display: inline-flex; align-items: center; padding: 0 3px; border-radius: 4px; background: #f6f2e8; line-height: 1.3; }
.pc svg { width: 10px; height: 10px; fill: currentColor; margin-left: 1px; }
.waiting { text-align: center; color: var(--muted); font-weight: 700; font-size: 14px; padding: 0 0 14px; }
.waiting .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- overlays */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.55); animation: fade .2s ease; }
.sheet .panel { width: 100%; max-width: 560px; max-height: calc(92% - var(--safe-top)); overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 22px 22px 0 0; background: linear-gradient(#15251e, #0e1a15); border: 1px solid var(--line); border-bottom: 0; padding: 14px 16px calc(18px + var(--safe-bottom)); box-shadow: 0 -20px 50px rgba(0,0,0,.5); animation: up .28s cubic-bezier(.2,.8,.2,1); -webkit-user-select: text; user-select: text; }
.sheet.center { align-items: center; }
.sheet.center .panel { border-radius: 22px; border-bottom: 1px solid var(--line); max-width: 420px; margin: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-head h3 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
.panel-head .icon-btn { width: 36px; height: 36px; }
.panel h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.panel p { color: #c6d1ca; font-size: 14px; line-height: 1.45; margin: 6px 0; }
.list { display: flex; flex-direction: column; gap: 6px; }
.list .item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: left; width: 100%; }
.list .item .mini { display: flex; gap: 2px; }
.list .item .mini .card { --w: 22px; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .item .d { color: var(--muted); font-size: 12px; }
.pos { color: #6fe39f; } .neg { color: #ff7d8a; }
.menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 10px; border-radius: 12px; font-size: 16px; font-weight: 700; text-align: left; }
.menu-list button:active { background: rgba(255,255,255,.06); }
.menu-list button .ic { color: var(--gold); }
.menu-list button.danger { color: #ff8a96; }
.menu-list button.danger .ic { color: #ff8a96; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.setting > span { font-weight: 700; font-size: 15px; }
.setting > span small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.setting .seg { flex: 0 1 auto; }
.setting .seg button { padding: 7px 9px; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding: 6px 4px 0; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; font-size: 11px; color: var(--muted); font-weight: 700; }
.bars div i { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(#f4c85d, #b77f1c); min-height: 2px; }
.bars div.paid i { background: linear-gradient(#5ee39a, #1f8a4b); }
.hh-street { margin: 8px 0 4px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.hh-street .mini { display: flex; gap: 2px; }
.hh-street .mini .card { --w: 24px; }
.hh-act { font-size: 14px; color: #d0dad4; padding: 1px 0 1px 8px; border-left: 2px solid rgba(255,255,255,.08); }
.hh-act b { color: #fff; }
.hh-players { display: flex; flex-direction: column; gap: 4px; }
.hh-players .p { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hh-players .p .av-xs { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: none; }
.hh-players .p .mini { display: flex; gap: 2px; margin-left: auto; }
.hh-players .p .mini .card { --w: 22px; }
.hh-players .p .mini.hidden-cards { opacity: .45; }
.btn-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; line-height: 1.45; color: #dfe7e2; background: rgba(0,0,0,.35); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); -webkit-user-select: all; user-select: all; }
.verify-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(47,174,102,.15); border: 1px solid rgba(47,174,102,.5); font-weight: 700; }
.verify-ok .ic { color: #5ee39a; width: 26px; height: 26px; flex: none; }
.verify-bad { background: rgba(216,57,75,.15); border-color: rgba(216,57,75,.6); }
.verify-bad .ic { color: #ff7d8a; }
.deckgrid { display: grid; grid-template-columns: repeat(13, 24px); justify-content: space-between; row-gap: 6px; }
.deckgrid .dc { position: relative; width: 24px; }
.deckgrid .dc .card { --w: 24px; }
.deckgrid .dc em { position: absolute; left: -1px; right: -1px; bottom: -3px; overflow: hidden; white-space: nowrap; font-style: normal; font-size: 8px; font-weight: 800; text-align: center; background: rgba(0,0,0,.75); border-radius: 0 0 3px 3px; color: var(--gold); line-height: 1.3; }
.deckgrid .dc.unused { opacity: .38; }
.replay-box { position: relative; height: min(56vh, 460px); margin: 6px -6px; border-radius: 16px; overflow: hidden; background: radial-gradient(100% 70% at 50% 45%, #183a2c 0%, #0a1712 80%); }
.replay-box .table-wrap { position: absolute; inset: 0; }
.replay-caption { text-align: center; font-weight: 700; font-size: 14px; min-height: 22px; color: #e3ebe6; }
.replay-ctrl { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.replay-ctrl .icon-btn { background: rgba(255,255,255,.06); }
.result-hero { text-align: center; padding: 6px 0 4px; }
.result-hero .medal { width: 88px; height: 88px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #231704; background: radial-gradient(circle at 40% 35%, #ffe8a0, #d99a26); box-shadow: 0 0 0 5px rgba(233,184,75,.25), 0 10px 30px rgba(233,184,75,.35); }
.result-hero .medal.silver { background: radial-gradient(circle at 40% 35%, #ffffff, #9aa3ad); box-shadow: 0 0 0 5px rgba(200,210,220,.2); }
.result-hero .medal.bronze { background: radial-gradient(circle at 40% 35%, #ffd2a6, #b06a2c); box-shadow: 0 0 0 5px rgba(200,120,60,.2); }
.result-hero .medal.none { background: radial-gradient(circle at 40% 35%, #3a4a42, #1f2a25); color: #cfd9d3; box-shadow: none; }
.result-hero h2 { margin: 4px 0; font-size: 26px; font-weight: 800; }
.result-hero p { margin: 0; color: var(--muted); }
.result-hero .pts { margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--gold); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 41; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.who { display: flex; align-items: center; gap: 12px; }
.who .av-lg { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.who b { font-size: 20px; }
.who .style { color: var(--gold); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.avatars button { border-radius: 50%; overflow: hidden; aspect-ratio: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.avatars button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--gold); }
.namefield { width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; padding: 0 12px; }

/* ---------------------------------------------------------------- wide screens */
body.wide .actionbar { position: absolute; right: 16px; bottom: 12px; width: 440px; min-height: 0; padding: 0; }
body.wide .hero-dock { position: absolute; left: 16px; bottom: 16px; }
body.wide #table { display: block; }
body.wide .topbar { position: absolute; left: 0; right: 0; top: 0; }
body.wide .table-wrap { position: absolute; left: 0; right: 0; top: 52px; bottom: 96px; }
body.wide .sheet { align-items: center; }
body.wide .sheet .panel { border-radius: 22px; border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .card-inner { transition: none; }
  .sheet, .sheet .panel { animation: none; }
  .seat .gain { animation-duration: 2.2s; }
  .marker { transition: none; }
}
body.reduce-motion .card-inner { transition: none; }
body.reduce-motion .marker { transition: none; }

/* Sit & Go rating */
.prov { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(233,184,75,.12); border: 1px solid rgba(233,184,75,.3); white-space: nowrap; }
.rating-change span { color: var(--text); }
.rating-change b { margin-left: 6px; }
.stat sup { font-size: 11px; color: var(--gold); margin-left: 1px; }
.spark-wrap { margin-top: 10px; padding: 8px 10px 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.spark { display: block; width: 100%; height: 70px; margin-top: 4px; }
.spark .base { stroke: rgba(255,255,255,.18); stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark .line { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark .dot { fill: var(--gold); }
.list .item .paid { font-size: 12px; font-weight: 700; color: #6fe39f; text-transform: uppercase; letter-spacing: .05em; }

/* ---- friends' tables (online) ---------------------------------------------------------------- */
.mode.friends .art-friends { width: 44px; height: 44px; color: #c9a2ff; opacity: .9; }
.mode.friends .art-friends .ic { width: 44px; height: 44px; }
.mode.friends .rejoin { align-self: flex-start; }
.join-row { display: flex; gap: 8px; align-items: center; }
.join-row input { width: 92px; min-width: 0; flex: 1 1 92px; height: 44px; padding: 0 10px; border-radius: 13px; background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 800; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.join-row input::placeholder { color: rgba(255,255,255,.25); letter-spacing: .1em; }
.join-row .btn { flex: none; padding: 0 14px; }
.fine.left { text-align: left; margin: -4px 0 0; }
.panel p.center, p.center { text-align: center; }
.invite-code { margin: 4px auto 6px; text-align: center; font-size: 40px; font-weight: 800; letter-spacing: .22em; color: var(--gold); text-shadow: 0 2px 12px rgba(234,184,75,.35); }
.setting.col { flex-direction: column; align-items: stretch; gap: 6px; }
.setting.col .seg { flex: 1 1 auto; }
.setting.col .seg button { padding: 7px 2px; font-size: 13px; }
.pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: rgba(233,184,75,.15); color: var(--gold); vertical-align: 1px; }
.list .item .av-xs, .av-xs { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; }
.av-xs svg { width: 100%; height: 100%; display: block; }
/* seats */
.seat.empty { cursor: pointer; }
.seat.empty .avatar { display: grid; place-items: center; background: rgba(0,0,0,.25); box-shadow: 0 0 0 2px rgba(255,255,255,.18) inset; border: 2px dashed rgba(255,255,255,.22); color: rgba(255,255,255,.5); }
.seat.empty .avatar .ic { width: 40%; height: 40%; }
.seat.empty .plate { opacity: .75; }
.seat.empty .plate .nm { color: #b9c6bf; }
.seat.empty .plate .st { display: none; }
.seat .status { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 6px; background: rgba(40,50,46,.92); color: #c9d4ce; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; z-index: 5; }
.seat .hname ~ .status { display: none; }
.seat .react-float { position: absolute; top: calc(var(--av) * -0.1); left: 50%; transform: translateX(-50%); font-size: calc(var(--av) * 0.55); z-index: 8; pointer-events: none; animation: react 2.1s ease-out forwards; }
@keyframes react { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -22px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -40px) scale(.9); } }
/* top bar */
.chat-btn { position: relative; }
.chat-btn .badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #d8394b; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
#tb-sub .net { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(216,57,75,.25); color: #ff9aa5; }
#tb-sub .ic { width: 11px; height: 11px; vertical-align: -1px; color: var(--gold); }
/* chat */
.chat-log { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; min-height: 90px; overflow-y: auto; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.chat-line b { color: var(--gold); }
.chat-line.me b { color: #7cf0a8; }
.reacts { display: flex; justify-content: space-between; gap: 4px; margin: 10px 0; }
.reacts button { flex: 1; height: 42px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 22px; }
.reacts button:active { transform: scale(.92); }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; }
.chat-form .btn { height: 40px; }
.deckgrid .dc.sealed .card { filter: saturate(.6) brightness(.8); }
.waiting .btn-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.waiting .btn-row .btn { margin-top: 0; }
.waiting .btn-row .btn { flex: 0 1 auto; }
