/* The poker table (live play and replayer). Every size derives from --u, set by tableview.js */
:root { --felt-a: #1d8394; --felt-b: #123f6b; --felt-c: #0a1440; }
[data-felt=emerald] { --felt-a: #23936c; --felt-b: #0e4f3c; --felt-c: #072a21; }
[data-felt=blue] { --felt-a: #2d76b8; --felt-b: #143f73; --felt-c: #0a2140; }
[data-felt=crimson] { --felt-a: #a8324a; --felt-b: #5e1626; --felt-c: #330a13; }
[data-felt=graphite] { --felt-a: #4b5563; --felt-b: #272e39; --felt-c: #14181f; }
[data-felt=violet] { --felt-a: #6d4fc4; --felt-b: #38246f; --felt-c: #1c113b; }

body.immersive { overflow: hidden; position: fixed; inset: 0; }
main.page.page-table, main.page.page-replayer { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: none; padding: 0; margin: 0;
  background: radial-gradient(rgba(150, 165, 255, .1) 1px, transparent 1.5px) 0 0 / 30px 30px,
    radial-gradient(1200px 700px at 50% 38%, #1a1f4a, #06071a 70%); }

.tv { position: relative; flex: 1; min-height: 0; overflow: hidden; --u: 8px; user-select: none; }
.tv-felt { position: absolute; border-radius: 999px; padding: calc(var(--u) * 1.5);
  background: linear-gradient(180deg, #3d4270, #191c3c 55%, #2a2e58);
  box-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 7) rgba(0, 0, 0, .65), inset 0 2px 0 rgba(255, 255, 255, .16),
    inset 0 -3px 6px rgba(0, 0, 0, .5); }
.tv-felt-in { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18L12 21zM8.37 7.2h9.9L13.32 16z' fill='%23fff' fill-rule='evenodd' fill-opacity='.05'/%3E%3C/svg%3E") 50% 44% / auto 62% no-repeat,
    repeating-radial-gradient(ellipse 60% 62% at 50% 44%, transparent 0 11.5%, rgba(255, 255, 255, .055) 11.5% 12%),
    radial-gradient(ellipse 75% 70% at 50% 42%, var(--felt-a), var(--felt-b) 62%, var(--felt-c));
  box-shadow: inset 0 0 calc(var(--u) * 5) rgba(0, 0, 0, .55), inset 0 0 0 calc(var(--u) * .35) rgba(0, 0, 0, .35); }
.tv-felt-in::before { content: ""; position: absolute; inset: calc(var(--u) * 2.2); border-radius: inherit;
  border: 1.5px solid rgba(255, 255, 255, .11); }
.tv-felt-in::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px); background-size: 4px 4px; }
.tv-mark { position: absolute; left: 50%; top: 73%; transform: translate(-50%, -50%); display: flex; align-items: center;
  gap: calc(var(--u) * .8); color: rgba(255, 255, 255, .16); font-weight: 800; letter-spacing: .32em;
  font-size: calc(var(--u) * 1.5); white-space: nowrap; }
.tv-mark svg { width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); }
.tv.portrait .tv-mark { top: 68%; font-size: calc(var(--u) * 1.7); }

/* centre: pot, board */
.tv-center { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; z-index: 2; pointer-events: none; }
.tv-board { display: flex; gap: calc(var(--u) * .7); }
.tv-board .pcard { --cw: calc(var(--u) * 8.6); }
.tv.portrait .tv-board { gap: calc(var(--u) * .55); }
.tv.portrait .tv-board .pcard { --cw: calc(var(--u) * 7.25); }
.tv-pot { position: absolute; bottom: calc(100% + var(--u) * 1.5); display: flex; align-items: baseline; gap: calc(var(--u) * .9);
  padding: calc(var(--u) * .55) calc(var(--u) * 1.8); border-radius: 999px; background: rgba(0, 0, 0, .42);
  font-weight: 800; font-size: max(13px, calc(var(--u) * 2)); color: #fff; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tv-pot span { font-size: .68em; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 700; }
.tv-pot.bump { animation: bump .3s ease-out; }
@keyframes bump { 40% { transform: scale(1.12); } }
.tv-side { position: absolute; top: calc(100% + var(--u) * 1.1); display: flex; gap: calc(var(--u) * .8); white-space: nowrap; }
.tv-side span { display: inline-flex; align-items: center; gap: .4em; padding: .25em .7em; border-radius: 999px; background: rgba(0, 0, 0, .35);
  font-size: max(10px, calc(var(--u) * 1.35)); font-weight: 700; color: rgba(255, 255, 255, .85); }
.tv-side .chip-ico { width: 1em; height: 1em; }
.tv-msg { position: absolute; top: 50%; transform: translateY(-50%); padding: .5em 1.1em; border-radius: 999px; white-space: nowrap;
  background: rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .86); font-weight: 650; font-size: max(12px, calc(var(--u) * 1.7)); }

/* seats */
.tv-seat { position: absolute; transform: translate(-50%, -50%); width: calc(var(--u) * 13); display: grid; justify-items: center;
  z-index: 3; cursor: pointer; transition: opacity .25s, filter .25s; }
.tv-av { --p: 0; width: calc(var(--u) * 7.4); height: calc(var(--u) * 7.4); font-size: calc(var(--u) * 3); position: relative;
  box-shadow: 0 0 0 calc(var(--u) * .35) #0c0e26, 0 calc(var(--u) * .6) calc(var(--u) * 1.6) rgba(0, 0, 0, .55); z-index: 1; }
.tv-av::after { content: ""; position: absolute; inset: calc(var(--u) * -.75); border-radius: 50%;
  background: conic-gradient(var(--tc, var(--accent)) calc(var(--p) * 360deg), rgba(255, 255, 255, .0) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--u) * .55), #000 calc(100% - var(--u) * .5));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--u) * .55), #000 calc(100% - var(--u) * .5)); }
.tv-plate { margin-top: calc(var(--u) * -1.7); min-width: calc(var(--u) * 10.5); max-width: calc(var(--u) * 13);
  padding: calc(var(--u) * .5) calc(var(--u) * 1.1) calc(var(--u) * .55); border-radius: calc(var(--u) * 1.3);
  background: linear-gradient(180deg, #252a55, #12152f); text-align: center; z-index: 2; position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 calc(var(--u) * .6) calc(var(--u) * 1.4) rgba(0, 0, 0, .5); }
.tv-plate .nm { font-size: max(10px, calc(var(--u) * 1.4)); font-weight: 650; color: #bcc3ea; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; line-height: 1.25; }
.tv-plate .nm.hint { color: var(--gold); font-weight: 750; }
.tv-plate .stk { font-size: max(11.5px, calc(var(--u) * 1.65)); font-weight: 800; color: #fff; line-height: 1.2; white-space: nowrap; }
.tv-seat.acting .tv-av { box-shadow: 0 0 0 calc(var(--u) * .35) #0c0e26, 0 0 calc(var(--u) * 3) rgba(77, 214, 255, .55); }
.tv-seat.acting .tv-plate { box-shadow: 0 0 0 1.5px var(--accent), 0 0 calc(var(--u) * 2.5) rgba(77, 214, 255, .4); }
.tv-seat.folded .tv-av, .tv-seat.folded .tv-plate, .tv-seat.idle .tv-av, .tv-seat.idle .tv-plate { opacity: .45; filter: saturate(.4); }
.tv-seat.away .tv-av { filter: grayscale(1); }
.tv-seat.away .tv-plate .nm::after { content: " · away"; color: var(--gold); }
.tv-seat.gone { opacity: .35; }
.tv-seat.winner .tv-plate { background: linear-gradient(180deg, #ffe08a, #e9a62b); box-shadow: 0 0 0 1px #fff3c9, 0 0 calc(var(--u) * 4) rgba(246, 196, 83, .75);
  animation: bump .5s ease-out; }
.tv-seat.winner .tv-plate .nm { color: #5a3d00; }
.tv-seat.winner .tv-plate .stk { color: #2b1c00; }

/* hole cards: small face-down cards peek from behind the avatar, shown cards sit above it */
.tv-hole { position: absolute; display: flex; z-index: 0; top: calc(var(--u) * -.9); left: 50%; margin-left: calc(var(--u) * 1.2); pointer-events: none; }
.tv-hole .pcard { --cw: calc(var(--u) * 3.9); }
.tv-hole .pcard:nth-child(1) { transform: rotate(-6deg); }
.tv-hole .pcard:nth-child(2) { transform: rotate(9deg); margin-left: calc(var(--u) * -2.1); }
.tv-seat[data-side=r] .tv-hole { margin-left: calc(var(--u) * -6.8); }
.tv-seat.shown .tv-hole, .tv-seat.me .tv-hole { top: auto; bottom: calc(100% - var(--u) * 1.1); left: 50%; margin-left: 0; transform: translateX(-50%);
  gap: calc(var(--u) * .5); z-index: 1; }
.tv-seat.shown .tv-hole .pcard { --cw: calc(var(--u) * 6.3); transform: none; margin-left: 0; }
.tv-seat.shown.top .tv-hole { bottom: auto; top: calc(100% - var(--u) * .5); z-index: 4; }
.tv-seat.me { width: calc(var(--u) * 22); z-index: 5; }
.tv-seat.me .tv-av { display: none; }
.tv-seat.me .tv-plate { margin-top: 0; min-width: calc(var(--u) * 15); max-width: calc(var(--u) * 24); padding: calc(var(--u) * .75) calc(var(--u) * 1.6); }
.tv-seat.me .tv-plate .nm { font-size: max(11px, calc(var(--u) * 1.5)); }
.tv-seat.me .tv-plate .nm.hint { color: var(--gold); font-weight: 750; }
.tv-plate .stk { font-size: max(14px, calc(var(--u) * 2.1)); }
.tv-seat.me .tv-hole { position: relative; bottom: auto; left: auto; transform: none; margin-bottom: calc(var(--u) * -2.2); gap: calc(var(--u) * .7); }
.tv-seat.me .tv-hole .pcard { --cw: calc(var(--u) * 9.6); transform: none; margin-left: 0; }
.tv-seat.me .tv-hole .pcard:nth-child(1) { transform: rotate(-4deg) translateY(2%); }
.tv-seat.me .tv-hole .pcard:nth-child(2) { transform: rotate(4deg) translateY(2%); }
.tv.portrait .tv-seat.me .tv-hole .pcard { --cw: calc(var(--u) * 10.5); }
.tv-seat.me.folded .tv-hole { opacity: .45; filter: saturate(.3); }
.tv-seat.me.acting .tv-plate { animation: myturn 1.4s ease-in-out infinite; }
@keyframes myturn { 50% { box-shadow: 0 0 0 2px var(--accent), 0 0 calc(var(--u) * 4.5) rgba(77, 214, 255, .7); } }
.tv-seat.me .tv-plate::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--tc, var(--accent));
  width: 0; }

.pcard.deal { animation: deal .42s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes deal { from { translate: var(--fx, 0) var(--fy, 0); opacity: 0; scale: .5; rotate: -140deg; } }
.pcard.flip { animation: flip .45s cubic-bezier(.3, 1.2, .5, 1) both; }
@keyframes flip { from { transform: rotateY(90deg) translateY(-14%) scale(1.08); opacity: 0; } }

.tv-tag { position: absolute; top: calc(var(--u) * -2.6); left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap;
  padding: .22em .75em; border-radius: 999px; font-size: max(10px, calc(var(--u) * 1.3)); font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; background: #2a2f5c; color: #dfe3ff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.tv-tag.pop { animation: tagpop .3s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes tagpop { from { transform: translateX(-50%) scale(.5); opacity: 0; } }
.tv-tag.fold { background: #3b2a30; color: #ff9aa4; }
.tv-tag.check { background: #262c5e; color: #c3c9ff; }
.tv-tag.call { background: #343bb0; color: #e0e3ff; }
.tv-tag.bet, .tv-tag.raise { background: linear-gradient(100deg, #6f72ee, #2fb6e0); color: #fff; }
.tv-tag.allin { background: linear-gradient(180deg, #ffd978, #e9a62b); color: #2b1c00; }
.tv-tag.sb, .tv-tag.bb { background: rgba(0, 0, 0, .55); color: #c8d2df; }
.tv-tag.win { background: linear-gradient(180deg, #ffe08a, #e9a62b); color: #2b1c00; text-transform: none; letter-spacing: 0; }
.tv-tag.name { background: rgba(0, 0, 0, .7); color: #fff; text-transform: none; letter-spacing: 0; }
.tv-seat.me .tv-tag { top: auto; bottom: calc(100% + var(--u) * .4); }
.tv-seat.shown:not(.top):not(.me) .tv-tag { top: auto; bottom: calc(100% + var(--u) * 8.1); }
.tv-eq { position: absolute; top: calc(var(--u) * 5.2); left: 50%; transform: translateX(-50%); z-index: 7; padding: .15em .6em; border-radius: 999px;
  background: #06071a; color: var(--accent); font-weight: 800; font-size: max(11px, calc(var(--u) * 1.5));
  box-shadow: 0 0 0 1.5px var(--accent); }
.tv-seat.me .tv-eq { top: calc(var(--u) * -1.6); }
.tv-wonfx { position: absolute; left: 50%; top: 0; z-index: 9; font-weight: 900; font-size: max(15px, calc(var(--u) * 2.4)); color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8); white-space: nowrap; animation: wonfx 2.5s ease-out both; pointer-events: none; }
@keyframes wonfx { 0% { transform: translate(-50%, 20%) scale(.6); opacity: 0; } 12% { transform: translate(-50%, -60%) scale(1.15); opacity: 1; }
  75% { opacity: 1; } 100% { transform: translate(-50%, -220%); opacity: 0; } }
.tv-bubble { position: absolute; bottom: calc(100% + var(--u) * 1); left: 50%; transform: translateX(-50%); z-index: 10; max-width: calc(var(--u) * 26);
  width: max-content; padding: .45em .8em; border-radius: 12px; background: #fff; color: #111; font-weight: 600; font-size: max(12px, calc(var(--u) * 1.5));
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); animation: bubble 4.2s ease both; pointer-events: none; overflow-wrap: anywhere; }
@keyframes bubble { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.9); } 5%, 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

.tv-seat.empty { width: auto; }
.tv-open { width: calc(var(--u) * 7.4); height: calc(var(--u) * 7.4); border-radius: 50%; display: grid; place-items: center; align-content: center;
  gap: 1px; border: 1.5px dashed rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .28); font-size: max(9px, calc(var(--u) * 1.2));
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(6, 7, 26, .5); transition: .15s; }
.tv-open svg { width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); }
.tv-seat.can-sit .tv-open { border-color: rgba(77, 214, 255, .55); color: var(--accent); background: rgba(77, 214, 255, .08); }
.tv-seat.can-sit:hover .tv-open { background: rgba(77, 214, 255, .2); transform: scale(1.06); }
.tv-seat.empty:not(.can-sit) { cursor: default; }

.tv-bet { position: absolute; transform: translate(-50%, -50%); z-index: 4; display: inline-flex; align-items: center; gap: .4em;
  padding: .2em .7em .2em .25em; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-weight: 800;
  font-size: max(11.5px, calc(var(--u) * 1.6)); white-space: nowrap; pointer-events: none; }
.tv-bet .chip-ico { width: 1.25em; height: 1.25em; }
.tv-bet.pop { animation: betpop .28s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes betpop { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }
.tv-dealer { position: absolute; transform: translate(-50%, -50%); z-index: 4; width: calc(var(--u) * 2.9); height: calc(var(--u) * 2.9);
  min-width: 18px; min-height: 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #fff, #d5dbe4);
  color: #111; font-weight: 900; font-size: max(10px, calc(var(--u) * 1.5)); box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .15);
  transition: left .5s cubic-bezier(.3, 1, .4, 1), top .5s cubic-bezier(.3, 1, .4, 1); pointer-events: none; }
.tv-fx { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.tv-chipfly { position: absolute; left: 0; top: 0; width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); min-width: 14px; min-height: 14px;
  margin: calc(var(--u) * -1.1); }

/* ------------------------------------------------------------------ table page chrome */
.t-top { display: flex; align-items: center; gap: 8px; height: calc(50px + var(--safe-t)); padding: var(--safe-t) 10px 0; flex: none; z-index: 20; }
.t-title { flex: 1; min-width: 0; line-height: 1.2; }
.t-title b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-title span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-top .btn { background: rgba(255, 255, 255, .06); border-color: transparent; position: relative; }
.t-top .badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red);
  color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.t-offline { position: absolute; top: calc(56px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 40; }
.t-body { flex: 1; min-height: 0; display: flex; }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.actionbar { flex: none; padding: 8px 12px calc(10px + var(--safe-b)); min-height: calc(132px + var(--safe-b)); display: flex; flex-direction: column;
  justify-content: flex-end; gap: 8px; z-index: 15; }
.ab-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; max-width: 640px; width: 100%; margin: 0 auto; }
.ab-btn { height: 56px; border-radius: 16px; font-weight: 800; font-size: 16px; display: grid; place-items: center; align-content: center; line-height: 1.15;
  color: #fff; transition: transform .08s, filter .15s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px rgba(0, 0, 0, .35); }
.ab-btn small { font-size: 13px; font-weight: 700; opacity: .9; }
.ab-btn:active { transform: scale(.97); filter: brightness(.9); }
.ab-btn.fold { background: linear-gradient(180deg, #58303a, #3a1f27); color: #ffc2c8; }
.ab-btn.call { background: linear-gradient(180deg, #6f72f0, #4347c4); }
.ab-btn.raise { background: linear-gradient(100deg, #8a8cff, #4dd6ff 55%, #5df2c1); color: var(--accent-ink); }
.ab-btn.allin { background: linear-gradient(180deg, #ffd978, #e9a62b); color: #2b1c00; }
.ab-size { display: flex; align-items: center; gap: 8px; max-width: 640px; width: 100%; margin: 0 auto; }
.ab-size .presets { display: flex; gap: 5px; }
.ab-size .presets button { height: 34px; padding: 0 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-weight: 700; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.ab-size .presets button:active { background: var(--surface-3); }
.ab-size input[type=range] { flex: 1; min-width: 60px; }
.ab-size .amount { width: 92px; height: 34px; text-align: center; font-weight: 800; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--line-2); outline: none; -moz-appearance: textfield; }
.ab-size .amount::-webkit-outer-spin-button, .ab-size .amount::-webkit-inner-spin-button { -webkit-appearance: none; }
.ab-info { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 10px; min-height: 56px; }
.ab-info .hint { color: var(--accent); font-weight: 800; }
.ab-check { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--text); }
.ab-check i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--faint); display: grid; place-items: center; }
.ab-check.on { border-color: var(--accent); background: rgba(77, 214, 255, .12); }
.ab-check.on i { background: var(--accent); border-color: var(--accent); }
.ab-check.on i::after { content: ""; width: 8px; height: 4px; border: solid var(--accent-ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-1px); }
.ab-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100%; margin-bottom: 4px; padding: 3px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); font-weight: 750; font-size: 13px; color: var(--gold); white-space: nowrap; pointer-events: none; }
.actionbar { position: relative; }

/* chat + log panel */
.t-side { width: 320px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: rgba(9, 10, 32, .85); }
.t-side[hidden] { display: none; }
.t-side-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.t-side-head .seg { flex: 1; }
.t-side-head .seg button { flex: 1; }
.t-feed { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; overscroll-behavior: contain; }
.t-feed .msg b { color: var(--accent); font-weight: 700; margin-right: 6px; }
.t-feed .sys { color: var(--faint); font-size: 13px; }
.t-feed .log { color: var(--muted); font-size: 13px; }
.t-feed .log b { color: var(--text); font-weight: 650; }
.t-feed .log.head { color: var(--gold); font-weight: 700; margin-top: 6px; }
.t-chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
.t-chat-form .input { height: 40px; }
.t-emojis { display: flex; gap: 4px; padding: 8px 12px 0; }
.t-emojis button { flex: 1; height: 34px; border-radius: 9px; font-size: 18px; background: var(--surface-2); }
.t-emojis button:active { background: var(--surface-3); }

@media (max-width: 900px) {
  .t-side { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; width: auto; height: min(62dvh, 520px); border-left: 0;
    border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
    animation: sheet .25s cubic-bezier(.2, 1, .3, 1); }
}
@media (min-width: 901px) {
  .actionbar { min-height: 118px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .t-top { height: 40px; position: absolute; left: 0; right: 0; }
  .actionbar { min-height: 0; position: absolute; right: 0; bottom: 0; left: 0; padding-bottom: 6px; }
  .ab-btn { height: 44px; }
  .ab-row, .ab-size { margin-right: 0; max-width: 46vw; }
  .ab-info { min-height: 0; justify-content: flex-end; }
}

/* buy-in sheet */
.buyin-amount { text-align: center; font-size: 42px; font-weight: 800; letter-spacing: -.03em; color: var(--gold); line-height: 1.1; }
.buyin-range { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 600; }
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-stats div { padding: 10px 6px; border-radius: 12px; background: var(--bg-2); text-align: center; }
.quick-stats b { display: block; font-size: 18px; }
.quick-stats span { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.felt-picker { display: flex; gap: 10px; }
.felt-picker button { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.felt-picker button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.ab-slider { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .actionbar { min-height: calc(170px + var(--safe-b)); }
  .ab-size { flex-direction: column; align-items: stretch; gap: 6px; }
  .ab-size .presets button { flex: 1; padding: 0; }
  .ab-slider { flex: none; }
}
