:root {
  --gold: #e9c46a; --gold2: #b8862b; --ink: #f6efe4; --muted: #b9ab97; --bg: #0d0a07;
  --glass: rgba(20, 15, 11, .72); --line: rgba(243, 201, 105, .22);
  --red: #e0413b; --green: #2fbf71; --blue: #3b82f6;
  --r: 16px; --shadow: 0 20px 60px rgba(0,0,0,.55);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { -webkit-font-smoothing: antialiased; user-select: none; -webkit-tap-highlight-color: transparent; }
input { user-select: text; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
#bg { position: fixed; inset: 0; background: url(/img/welcome.png) center/cover; filter: brightness(.45) saturate(1.1); transition: background-image .6s; }
body.in-lobby #bg { background-image: url(/img/lobby.png); filter: brightness(.3) blur(2px); }
body.in-game #bg { filter: brightness(.22) blur(6px); }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; }
.glass { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- buttons ---------- */
.btn { font: inherit; font-weight: 700; color: var(--ink); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07);
  padding: 10px 18px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform .12s, background .15s, box-shadow .15s, opacity .15s; font-size: 16px; white-space: nowrap; outline: none; }
.btn:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn.gold { background: linear-gradient(180deg, #f8d88a, #d49a34); color: #2a1a05; border-color: #ffe3a3; box-shadow: 0 6px 20px rgba(212,154,52,.35); }
.btn.gold:hover { filter: brightness(1.08); }
.btn.big { font-size: 22px; padding: 16px 28px; width: 100%; }
.btn.ghost { background: rgba(0,0,0,.35); }
.btn.icon { padding: 10px 12px; }
.btn.link { background: none; border: none; color: var(--muted); font-weight: 500; font-size: 14px; text-decoration: underline; }
.btn.danger { background: linear-gradient(180deg, #ef5b52, #b92c26); border-color: #ff8a82; }
:focus-visible, .pad-focus { outline: 3px solid var(--gold) !important; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(243,201,105,.25), 0 0 30px rgba(243,201,105,.35) !important; }
.field { font: inherit; font-size: 20px; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.45); color: var(--ink); outline: none; }
.field:focus { border-color: var(--gold); }
.field.sm { font-size: 15px; padding: 9px 12px; }

/* gamepad glyphs */
.gp { display: none; min-width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; align-items: center; justify-content: center;
  background: #222; color: #fff; border: 2px solid rgba(255,255,255,.5); padding: 0 5px; }
.gp.a { background: #3aa845; } .gp.b { background: #d83a34; } .gp.x { background: #2f6fd8; } .gp.y { background: #e6b422; color: #222; }
body.pad .gp { display: inline-flex; }
.pad-hints { display: none; gap: 18px; position: fixed; bottom: 14px; right: 20px; font-size: 14px; color: var(--muted); }
.pad-hints span { display: inline-flex; gap: 6px; align-items: center; }
body.pad .pad-hints { display: flex; }
.pad-hints.inline { position: static; justify-content: center; margin-top: 8px; }

/* ---------- logo ---------- */
.logo { font-weight: 900; font-size: 64px; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; justify-content: center;
  background: linear-gradient(180deg, #fff3cf, #f3c969 45%, #b07a22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo b { font-weight: 900; }
.logo .suit { color: var(--ink); -webkit-text-fill-color: #f6efe4; font-size: .7em; }
.logo .suit.red { -webkit-text-fill-color: var(--red); }
.logo.sm { font-size: 28px; }

/* ---------- welcome ---------- */
#welcome { align-items: center; justify-content: center; padding: 16px; }
.welcome-card { width: min(520px, 100%); padding: 36px; display: flex; flex-direction: column; gap: 18px; align-items: stretch; animation: rise .6s ease-out; }
.tag { text-align: center; margin: -8px 0 6px; color: var(--muted); font-size: 18px; }
.avatar-pick { display: flex; gap: 20px; align-items: center; justify-content: center; }
.avatar-actions { display: flex; flex-direction: column; gap: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- avatar ---------- */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #333 center/cover; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #fff; border: 2px solid rgba(255,255,255,.25); overflow: hidden; position: relative; }
.avatar.sm { width: 42px; height: 42px; font-size: 17px; }
.avatar.xs { width: 28px; height: 28px; font-size: 12px; border-width: 1px; }
.avatar.xl { width: 128px; height: 128px; font-size: 52px; border: 3px solid var(--gold); box-shadow: 0 0 40px rgba(243,201,105,.3); }
.avatar.emoji { font-size: 1.5em; }

/* ---------- lobby ---------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: linear-gradient(180deg, rgba(0,0,0,.7), transparent); }
.me-chip { display: flex; gap: 10px; align-items: center; padding: 6px 16px 6px 6px; border-radius: 40px; background: rgba(0,0,0,.45); border: 1px solid var(--line); cursor: pointer; }
.me-name { font-weight: 700; }
.me-bank { color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.chip-ico { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #f3c969 30%, #b07a22 32%, #b07a22 45%, #fff 47%, #fff 55%, #b07a22 57%); display: inline-block; }
.lobby-grid { flex: 1; display: grid; grid-template-columns: 1fr 380px; gap: 20px; padding: 8px 24px 24px; min-height: 0; }
.side { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.side .panel:first-child { flex: 1; }
.panel { padding: 18px; display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel h2 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; overflow-y: auto; padding: 4px; }
.tcard { position: relative; border-radius: 14px; padding: 18px; cursor: pointer; overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(0,0,0,.2), rgba(0,0,0,.55)), var(--felt-img, #1d5a33) center/cover; min-height: 170px; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--ink); font: inherit; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tcard h3 { margin: 0; font-size: 22px; }
.tcard .stakes { color: var(--gold); font-weight: 800; font-size: 18px; }
.tcard .row { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.tcard .row .avatar { margin-left: -8px; }
.tcard .row .avatar:first-child { margin-left: 0; }
.tcard .count { margin-left: auto; font-weight: 700; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 20px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 8px var(--green); margin-right: 6px; }
.board, .online { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.brow { display: grid; grid-template-columns: 26px 36px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.brow .rank { font-weight: 900; color: var(--muted); text-align: center; }
.brow:nth-child(1) .rank { color: #ffd54a; } .brow:nth-child(2) .rank { color: #d9d9d9; } .brow:nth-child(3) .rank { color: #d08a4a; }
.brow .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .sub { font-size: 12px; color: var(--muted); }
.brow .net { font-weight: 800; }
.pos { color: var(--green); } .neg { color: #ff6b61; }
.orow { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.orow .sub { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- game stage (fixed 1600x900, scaled to fit) ---------- */
#game { align-items: center; justify-content: center; }
#stage, #hud { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: 1600px; height: 900px; transform: translate(-50%, -50%) scale(var(--scale, 1)); transform-origin: center; }
#hud { pointer-events: none; z-index: 20; }
#hud > * { pointer-events: auto; }
.t-top { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; gap: 10px; align-items: center; z-index: 30; }
.t-top .btn { font-size: 15px; padding: 8px 14px; }
.t-title { margin-left: 8px; }
#t-name { font-weight: 800; font-size: 20px; }
#t-meta { font-size: 14px; }

#table { position: absolute; left: 150px; top: 150px; width: 1300px; height: 600px; }
.rail { position: absolute; inset: 0; border-radius: 300px; background: linear-gradient(180deg, #3a2a1c, #1b120b 60%, #0e0906);
  box-shadow: 0 30px 80px rgba(0,0,0,.8), inset 0 2px 0 rgba(255,220,160,.25), inset 0 -6px 16px rgba(0,0,0,.6); }
.rail::after { content: ''; position: absolute; inset: 14px; border-radius: 290px; border: 2px solid rgba(243,201,105,.35); }
.felt { position: absolute; inset: 34px; border-radius: 270px; background: #1d5a33 url(/img/green.jpg) center/cover; overflow: hidden;
  box-shadow: inset 0 0 120px rgba(0,0,0,.75), inset 0 0 0 3px rgba(0,0,0,.4); }
.felt::before { content: ''; position: absolute; inset: 60px 130px; border-radius: 200px; border: 2px solid rgba(255,255,255,.08); }
.felt[data-felt=amber] { background-image: url(/img/amber.jpg); }
.felt[data-felt=gray] { background-image: url(/img/gray.jpg); }
.felt[data-felt=blue] { background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.015) 0 2px, transparent 2px 5px), radial-gradient(ellipse at 50% 45%, #2a6fd0 0%, #164a98 45%, #0a2a5e 100%); }
.felt[data-felt=crimson] { background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.015) 0 2px, transparent 2px 5px), radial-gradient(ellipse at 50% 45%, #b3263a 0%, #7d1426 45%, #450914 100%); }
.felt-logo { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); font-weight: 900; font-size: 64px; letter-spacing: 6px; color: rgba(255,255,255,.07); }
.felt-logo b { color: rgba(243,201,105,.1); }

.pot { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800;
  color: var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,.8); z-index: 5; flex-wrap: wrap; justify-content: center; }
.side-pots { width: 100%; text-align: center; font-size: 15px; color: var(--ink); font-weight: 600; }
.chip-stack { width: 34px; height: 34px; display: inline-block; background:
  radial-gradient(circle at 50% 50%, #fff 18%, transparent 19%), radial-gradient(circle, #d8a03a 55%, #7a4e10 57%); border-radius: 50%;
  box-shadow: 0 3px 0 #7a4e10, 0 6px 0 #d8a03a, 0 8px 0 #7a4e10, 0 10px 12px rgba(0,0,0,.6); margin-bottom: 8px; }

.boardcards { position: absolute; left: 50%; top: 220px; transform: translateX(-50%); display: flex; gap: 12px; z-index: 5; height: 150px; }
.banner { position: absolute; left: 50%; top: 395px; transform: translateX(-50%); z-index: 20; padding: 12px 28px; border-radius: 40px; font-size: 22px; font-weight: 800;
  background: linear-gradient(180deg, rgba(40,28,10,.95), rgba(18,12,6,.95)); border: 2px solid var(--gold); color: var(--gold); white-space: nowrap;
  box-shadow: 0 0 40px rgba(243,201,105,.4); animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
.banner small { display: block; text-align: center; font-size: 16px; color: var(--ink); font-weight: 600; }
@keyframes pop { from { transform: translateX(-50%) scale(.5); opacity: 0; } }

/* ---------- cards ---------- */
.card { width: 104px; height: 146px; border-radius: 10px; position: relative; flex: none; perspective: 800px; }
.card .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3,1.3,.5,1); }
.card.down .in { transform: rotateY(180deg); }
.card .face, .card .back { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.card .face { background: linear-gradient(160deg, #ffffff, #efe9df); color: #151515; border: 1px solid rgba(0,0,0,.15); }
.card .back { transform: rotateY(180deg); background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px),
  radial-gradient(circle at 50% 50%, #c23a35, #7e1714); border: 4px solid #f4ecdf; }
.card .back::after { content: '♠'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; color: rgba(243,201,105,.85); text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.card .rk { position: absolute; left: 9px; top: 5px; font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.card .st { position: absolute; left: 10px; top: 44px; font-size: 28px; line-height: 1; }
.card .big { position: absolute; right: 8px; bottom: 2px; font-size: 64px; line-height: 1; }
.card.red .face { color: #d42a24; }
body.fourcolor .card.d .face { color: #1f5fd6; }
body.fourcolor .card.c .face { color: #178a3f; }
.card.win .face { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(243,201,105,.9); }
.card.dim { filter: brightness(.45); }
.card.flip-in .in { animation: flipIn .55s ease-out both; }
@keyframes flipIn { 0% { transform: rotateY(180deg) translateY(-30px) scale(.8); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; } }
.card.deal-in { animation: dealIn .45s cubic-bezier(.2,.9,.3,1) both; }
@keyframes dealIn { from { transform: translate(var(--dx), var(--dy)) rotate(-160deg) scale(.4); opacity: 0; } 30% { opacity: 1; } }
.card.sm { width: 58px; height: 82px; border-radius: 7px; }
.card.sm .face, .card.sm .back { border-radius: 7px; }
.card.sm .rk { font-size: 24px; left: 5px; top: 3px; }
.card.sm .st { font-size: 18px; left: 6px; top: 27px; }
.card.sm .big { font-size: 34px; right: 4px; }
.card.sm .back { border-width: 3px; }
.card.sm .back::after { font-size: 26px; }
.card.hero { width: 132px; height: 184px; }
.card.hero .rk { font-size: 50px; } .card.hero .st { font-size: 36px; top: 56px; } .card.hero .big { font-size: 84px; }
.card.slot { border: 2px dashed rgba(255,255,255,.1); border-radius: 10px; background: rgba(0,0,0,.08); }

/* ---------- seats ---------- */
.seat { position: absolute; width: 190px; height: 150px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 10; transition: opacity .3s; }
.seat .ring { position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 5px; background: rgba(0,0,0,.5); }
.seat .ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ringc, var(--gold)) calc(var(--t, 0) * 1turn), transparent 0); opacity: 0; transition: opacity .2s; }
.seat.turn .ring::before { opacity: 1; }
.seat .ring .avatar { width: 94px; height: 94px; font-size: 38px; position: relative; border: 3px solid #1a130d; }
.seat.turn .ring { box-shadow: 0 0 30px rgba(243,201,105,.6); }
.seat .plate { margin-top: -14px; z-index: 2; min-width: 150px; padding: 6px 14px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, rgba(30,22,15,.95), rgba(10,7,5,.95)); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.6); }
.seat .nm { font-weight: 700; font-size: 16px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .stk { font-weight: 800; font-size: 19px; color: var(--gold); }
.seat.folded .ring, .seat.folded .cards { opacity: .4; filter: grayscale(.7); }
.seat.out .ring { opacity: .5; }
.seat .tagline { position: absolute; top: -26px; font-size: 14px; font-weight: 800; padding: 3px 12px; border-radius: 20px; background: rgba(0,0,0,.75); letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; animation: pop2 .25s ease-out; }
@keyframes pop2 { from { transform: scale(.6); opacity: 0; } }
.tagline.fold { color: #bbb; } .tagline.check { color: #9fd3ff; } .tagline.call { color: #8fe3a9; }
.tagline.bet, .tagline.raise { color: var(--gold); } .tagline.allin { color: #fff; background: linear-gradient(90deg, #d42a24, #f39c12); }
.tagline.sb, .tagline.bb { color: var(--muted); }
.seat .cards { position: absolute; top: 14px; left: 124px; display: flex; z-index: 1; }
.seat .ring { z-index: 2; }
.seat .cards .card + .card { margin-left: -30px; transform: rotate(8deg) translateY(2px); }
.seat .cards .card:first-child { transform: rotate(-4deg); }
.seat.me .cards { display: none; }
.seat .hand-label { position: absolute; bottom: -24px; font-size: 14px; font-weight: 700; color: var(--gold); background: rgba(0,0,0,.75); padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.seat.winner .ring { box-shadow: 0 0 0 4px var(--gold), 0 0 60px rgba(243,201,105,.9); animation: glow 1s ease-in-out infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 0 4px #fff3cf, 0 0 90px rgba(243,201,105,1); } }
.seat .won { position: absolute; top: 10px; z-index: 8; font-size: 30px; font-weight: 900; color: var(--gold); text-shadow: 0 2px 10px #000; animation: floatUp 2.4s ease-out both; }
@keyframes floatUp { from { transform: translateY(20px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-30px); opacity: 0; } }
.seat .dc { position: absolute; right: 30px; top: 70px; font-size: 18px; }
.seat.empty .sit { width: 104px; height: 104px; border-radius: 50%; border: 2px dashed rgba(243,201,105,.45); background: rgba(0,0,0,.35); color: var(--gold);
  font: inherit; font-weight: 800; font-size: 18px; cursor: pointer; }
.seat.empty .sit:hover { background: rgba(243,201,105,.15); }
.seat.empty .sit.noop { border-color: rgba(255,255,255,.08); background: rgba(0,0,0,.15); cursor: default; }
.bubble { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; padding: 6px 12px; border-radius: 14px;
  font-weight: 600; font-size: 15px; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 25; animation: bub 4s ease both; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.bubble.emo { font-size: 44px; background: none; box-shadow: none; padding: 0; top: -58px; overflow: visible; }
@keyframes bub { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

.bet { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; color: #fff;
  background: rgba(0,0,0,.55); padding: 3px 10px 3px 4px; border-radius: 20px; z-index: 6; transition: left .45s cubic-bezier(.4,0,.2,1), top .45s cubic-bezier(.4,0,.2,1), opacity .45s; }
.bet .chip-stack { width: 22px; height: 22px; margin: 0; box-shadow: 0 2px 0 #7a4e10, 0 4px 0 #d8a03a, 0 5px 6px rgba(0,0,0,.6); }
.dealer-btn { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9d2c4); color: #222; font-weight: 900;
  display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 -3px 0 rgba(0,0,0,.2); transform: translate(-50%, -50%); z-index: 7;
  transition: left .6s cubic-bezier(.4,0,.2,1), top .6s cubic-bezier(.4,0,.2,1); }
.fly { position: absolute; z-index: 40; pointer-events: none; transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .6s; }

/* ---------- hero hud & actions ---------- */
.hero-hud { position: absolute; left: 448px; bottom: 26px; z-index: 12; display: flex; align-items: flex-end; gap: 10px; }
.hero-hand { display: flex; gap: 8px; }
.hero-hand .card:first-child { transform: rotate(-5deg); } .hero-hand .card:last-child { transform: rotate(5deg); }
.hero-label { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 3; background: rgba(0,0,0,.8); color: var(--gold); font-weight: 800; padding: 4px 14px; border-radius: 14px; white-space: nowrap; font-size: 16px; }
.actions { position: absolute; right: 22px; bottom: 22px; width: 560px; z-index: 30; padding: 16px; border-radius: 20px; background: rgba(12,9,6,.82); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .25s ease-out; }
.act-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 10px; }
.btn.act { font-size: 21px; padding: 18px 10px; border-radius: 14px; flex-direction: row; }
.btn.act.fold { background: linear-gradient(180deg, #5b2522, #3a1715); border-color: #8a3a35; }
.btn.act.call { background: linear-gradient(180deg, #1f6d44, #134a2d); border-color: #2fbf71; }
.btn.act.raise { background: linear-gradient(180deg, #f8d88a, #d49a34); color: #2a1a05; border-color: #ffe3a3; }
.raise-box { margin-bottom: 12px; }
.presets { display: flex; gap: 8px; margin-bottom: 10px; }
.presets .btn { flex: 1; font-size: 14px; padding: 8px 4px; }
.presets .btn.on { border-color: var(--gold); color: var(--gold); background: rgba(243,201,105,.12); }
.raise-row { display: flex; gap: 10px; align-items: center; }
.btn.step { width: 44px; height: 44px; padding: 0; font-size: 24px; }
.r-amt { min-width: 120px; text-align: right; font-weight: 900; font-size: 26px; color: var(--gold); }
input[type=range] { flex: 1; accent-color: var(--gold); height: 30px; }
.waiting { position: absolute; left: 50%; top: 395px; transform: translateX(-50%); z-index: 8; font-size: 20px; font-weight: 700; color: var(--ink); background: rgba(0,0,0,.6); padding: 10px 24px; border-radius: 30px; }
.presit { position: absolute; right: 22px; bottom: 22px; z-index: 29; display: flex; gap: 8px; }

.social { position: absolute; left: 20px; bottom: 20px; width: 420px; z-index: 25; }
.chat-log { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: hidden; justify-content: flex-end; margin-bottom: 8px; mask-image: linear-gradient(transparent, #000 30%); }
.chat-log div { font-size: 15px; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 10px; width: fit-content; max-width: 100%; animation: rise .2s; }
.chat-log b { color: var(--gold); }
.chat-log .sys { color: var(--muted); font-style: italic; }
.chat-row { display: flex; gap: 8px; }
.reacts { position: absolute; bottom: 52px; left: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px; }
.reacts .btn { font-size: 26px; padding: 6px; }

.log { position: absolute; right: 16px; top: 70px; width: 360px; max-height: 560px; padding: 14px; z-index: 35; overflow-y: auto; font-size: 14px; }
.log h3 { margin: 0 0 8px; }
.log div div { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--muted); }
.log div div.h { color: var(--gold); font-weight: 700; padding-top: 10px; }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: min(560px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 16px; animation: rise .25s ease-out; max-height: 92vh; overflow-y: auto; }
.modal-card h2 { margin: 0; font-size: 26px; }
.modal-card .row { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-card .row > .btn { flex: 1; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg .btn { flex: 1; font-size: 15px; padding: 10px 6px; }
.seg .btn.on { border-color: var(--gold); color: var(--gold); background: rgba(243,201,105,.14); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--gold); }
.stat span { font-size: 12px; color: var(--muted); }
.big-amt { font-size: 40px; font-weight: 900; color: var(--gold); text-align: center; }
.code { font-size: 44px; font-weight: 900; letter-spacing: 10px; text-align: center; color: var(--gold); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-grid .btn { font-size: 26px; padding: 6px; }
.toast { position: fixed; left: 50%; top: 24px; transform: translate(-50%, -120px); background: rgba(20,15,11,.95); border: 1px solid var(--gold); color: var(--ink);
  padding: 12px 22px; border-radius: 30px; font-weight: 700; z-index: 200; transition: transform .35s cubic-bezier(.2,1.4,.4,1); box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }
.rotate-hint { display: none; }
@media (max-width: 900px) {
  .lobby-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  .logo { font-size: 44px; }
  .welcome-card { padding: 24px; }
}
@media (orientation: portrait) and (max-width: 700px) {
  body.in-game .rotate-hint { display: block; position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); padding: 8px 16px; border-radius: 20px; z-index: 300; font-size: 14px; }
}

.presit .btn { font-size: 16px; padding: 12px 18px; }
.presit .btn.on { border-color: var(--gold); color: #2a1a05; background: linear-gradient(180deg, #f8d88a, #d49a34); }
.presit .btn.on::before { content: '✓ '; }

.banner.big { font-size: 28px; background: linear-gradient(180deg, #4a3208, #1c1204); box-shadow: 0 0 80px rgba(243,201,105,.8); animation: pop .4s cubic-bezier(.2,1.6,.4,1), shimmer 1.2s ease-in-out infinite alternate; }
@keyframes shimmer { to { box-shadow: 0 0 120px rgba(255,220,140,1); border-color: #fff3cf; } }
.confetti { position: absolute; z-index: 45; pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,.6); animation: burst 2s cubic-bezier(.1,.8,.3,1) both; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(.2); opacity: 1; } 70% { opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 120px)) rotate(540deg) scale(1); opacity: 0; } }

.howto { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06); font-size: 14px; color: var(--muted); }
.howto h4 { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.howto p { margin: 4px 0; line-height: 1.9; }
.k { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; margin: 0 2px; border-radius: 6px; align-items: center; justify-content: center; background: #2a2420; color: #fff; font-size: 12px; font-weight: 800; border: 1px solid rgba(255,255,255,.2); }
.k.a { background: #3aa845; border-radius: 50%; } .k.b { background: #d83a34; border-radius: 50%; } .k.x { background: #2f6fd8; border-radius: 50%; } .k.y { background: #e6b422; color: #222; border-radius: 50%; }
@media (max-width: 900px) { .howto { grid-template-columns: 1fr; } }
.seat.me .hand-label { display: none; }

/* ---------- v1.1 brand: black & gold ---------- */
body { background: #07060a; }
.glass { background: linear-gradient(180deg, rgba(18,15,11,.88), rgba(8,7,6,.92)); border-color: rgba(233,196,106,.28); }
.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ico.fill { fill: currentColor; }
.ico.sm { width: 15px; height: 15px; vertical-align: -2px; }
.btn .ico { width: 20px; height: 20px; }
.brand { display: flex; align-items: center; gap: 14px; justify-content: center; }
.brand .mark { width: 72px; height: 72px; filter: drop-shadow(0 6px 18px rgba(233,196,106,.35)); }
.brand.sm .mark { width: 40px; height: 40px; }
.wordmark { font-weight: 900; font-size: 46px; letter-spacing: 6px; line-height: 1; color: #f4ecdc; }
.wordmark b { background: linear-gradient(180deg, #fff1c4, #e9c46a 50%, #9c6a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.sm .wordmark { font-size: 24px; letter-spacing: 4px; }
.beta { margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: 8px; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.beta::before, .beta::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.welcome-card { border: 1px solid rgba(233,196,106,.4); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 30px 90px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,236,190,.12); }
.welcome-card #gate-view, .welcome-card #auth-view { display: flex; flex-direction: column; gap: 14px; }
.welcome-card #gate-view.hidden, .welcome-card #auth-view.hidden { display: none; }
.seg.tabs .btn { font-size: 17px; padding: 12px; }
.small { font-size: 13px; text-align: center; margin: 0; }
.me-bank .ico { color: var(--gold); width: 16px; height: 16px; }
.me-bank.big { font-size: 22px; }
.t-bank { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold); padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid var(--line); }
.avatar.iconav { color: var(--gold); border-color: rgba(233,196,106,.55); }
.avatar.iconav .ico { width: 55%; height: 55%; }
.avatar.xs.iconav .ico, .avatar.sm.iconav .ico { width: 60%; height: 60%; }
.panel-head .row { display: flex; gap: 10px; }
.panel h2 { display: flex; align-items: center; gap: 8px; }
.panel h2 .ico { color: var(--gold); }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-card h2 { display: flex; align-items: center; gap: 10px; }
.modal-card h2 .ico { color: var(--gold); width: 26px; height: 26px; }
.namebox { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.namebox b { flex: 1; font-size: 22px; color: var(--gold); }
.invite-list { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-list .btn { font-size: 15px; }
.invite-list .btn.on { border-color: var(--gold); background: rgba(233,196,106,.16); color: var(--gold); }
.invite-list .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.acct { display: flex; gap: 18px; align-items: center; }
.acct-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.acct-name { font-size: 26px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; background: rgba(233,196,106,.16); color: var(--gold); border: 1px solid rgba(233,196,106,.4); vertical-align: middle; }
.badge.red { background: rgba(224,65,59,.15); color: #ff8078; border-color: rgba(224,65,59,.5); }
.modal-card { width: min(720px, 100%); }
.sec { margin: 6px 0 0; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.adm-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.adm-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.adm-row.banned { opacity: .55; }
.adm-name { flex: 1; font-weight: 700; min-width: 0; }
.adm-name .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.invite { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.brow .net { text-align: right; color: var(--gold); }
.brow .net .sub { font-size: 12px; }
.reacts { grid-template-columns: repeat(3, 1fr); width: 420px; }
.reacts .btn { font-size: 15px; padding: 10px 6px; }
.bubble { font-weight: 700; }
.seat .nm .ico { color: var(--gold); }
#l-daily:disabled { opacity: .6; background: rgba(0,0,0,.35); color: var(--muted); border-color: rgba(255,255,255,.14); box-shadow: none; pointer-events: none; }
.emoji-grid .btn { padding: 6px; display: grid; place-items: center; }
.tcard h3 .ico { color: var(--gold); }

/* ---------- tabled hands: slide out from behind the avatar, scale up ---------- */
.seat .cards.reveal { left: 50%; top: 75px; right: auto; z-index: 6; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; width: 124px;
  transform: translate(calc(-50% + var(--rx, 0px)), calc(-50% + var(--ry, 0px))) scale(var(--rs, 1.45)); transform-origin: center;
  animation: revealOut .45s cubic-bezier(.2,1.3,.4,1) both; pointer-events: none; }
.seat .cards.reveal .card, .seat .cards.reveal .card:first-child, .seat .cards.reveal .card + .card { transform: none; margin-left: 0; }
.seat .cards.reveal .card + .card { margin-left: 6px; }
.seat .cards.reveal .card .face { box-shadow: 0 6px 18px rgba(0,0,0,.7); }
.seat .cards.reveal .card.win .face { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(233,196,106,.9); }
.seat .cards.reveal .card.dim { filter: brightness(.55); }
.reveal-label { flex-basis: 100%; text-align: center; font-size: 9px; font-weight: 800; color: var(--gold); background: rgba(0,0,0,.85);
  padding: 2px 8px; border-radius: 8px; white-space: nowrap; margin-top: 3px; border: 1px solid rgba(233,196,106,.35); }
.seat.winner .cards.reveal .reveal-label { background: linear-gradient(180deg, #3a2806, #1a1103); }
@keyframes revealOut { from { transform: translate(-50%, -50%) scale(.6); opacity: .2; } }

/* ---------- show / muck window ---------- */
.showmuck { position: absolute; right: 22px; bottom: 22px; width: 460px; z-index: 31; padding: 16px; border-radius: 20px; background: rgba(12,9,6,.92);
  border: 1px solid rgba(233,196,106,.45); box-shadow: 0 0 40px rgba(233,196,106,.18), var(--shadow); display: flex; flex-direction: column; gap: 10px; animation: rise .25s ease-out; }
.sm-title { font-weight: 800; font-size: 19px; text-align: center; }
.act-row.two { grid-template-columns: 1fr 1.3fr; }
.btn.act.muck { background: linear-gradient(180deg, #2c2620, #1a1612); border-color: rgba(255,255,255,.18); }
.sm-track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.sm-bar { height: 100%; background: linear-gradient(90deg, #9c6a1c, #e9c46a); transform-origin: left; }
.hero-hud.shown::after { content: 'SHOWN'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 900; letter-spacing: 2px;
  color: #1a1103; background: linear-gradient(180deg, #f8d88a, #d49a34); padding: 3px 10px; border-radius: 8px; z-index: 5; }

/* =================== v1.2: HUD, pre-actions, menu, progress, unlocks, mobile =================== */
.t-top .btn .ico { width: 18px; height: 18px; }
.t-top #t-menu { padding: 9px 11px; }
.turn-flag { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 32; padding: 8px 22px; border-radius: 30px; font-weight: 900; letter-spacing: 3px;
  text-transform: uppercase; font-size: 15px; color: #1a1103; background: linear-gradient(180deg, #f8d88a, #d49a34); box-shadow: 0 0 30px rgba(233,196,106,.6);
  animation: flagPulse 1.2s ease-in-out infinite alternate; pointer-events: none; }
@keyframes flagPulse { from { box-shadow: 0 0 12px rgba(233,196,106,.4); } to { box-shadow: 0 0 40px rgba(233,196,106,.9); } }

/* pre-actions */
.preacts { position: absolute; right: 22px; bottom: 22px; z-index: 29; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 18px;
  background: rgba(10,8,6,.72); border: 1px solid rgba(255,255,255,.08); }
.pre-cap { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.preacts .btn { font-size: 16px; padding: 12px 18px; min-width: 120px; }
.preacts .btn.on { border-color: var(--gold); color: #1a1103; background: linear-gradient(180deg, #f8d88a, #d49a34); }
.preacts .btn.on::before { content: '✓'; font-weight: 900; }

/* one clear call to action (out of chips / watching) */
.seat-cta { position: absolute; right: 22px; bottom: 22px; z-index: 28; display: flex; gap: 12px; align-items: center; padding: 12px 14px 12px 20px; border-radius: 18px;
  background: rgba(10,8,6,.85); border: 1px solid rgba(233,196,106,.4); font-weight: 700; }
.seat-cta .btn { font-size: 17px; padding: 12px 18px; }

/* table menu */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn.menu-item { justify-content: flex-start; text-align: left; padding: 12px 14px; gap: 12px; white-space: normal; }
.btn.menu-item .ico { color: var(--gold); width: 24px; height: 24px; }
.btn.menu-item span { display: flex; flex-direction: column; }
.btn.menu-item b { font-size: 16px; }
.btn.menu-item small { font-size: 12px; color: var(--muted); font-weight: 500; }
.btn.menu-item.danger-soft { border-color: rgba(224,65,59,.45); }
.btn.menu-item.danger-soft .ico { color: #ff8078; }
.log .modal-head h3 { margin: 0; }

/* auth: remembered player + PIN pad */
.known { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.known-name { font-size: 22px; font-weight: 800; }
.known .btn.link { margin-left: auto; }
.left { text-align: left !important; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn.pk { font-size: 24px; padding: 12px 0; min-height: 54px; }
.btn.pk .ico { width: 24px; height: 24px; }

/* dailies + trophies */
.dailies { flex: none !important; }
.daily-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.daily { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.dchk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(233,196,106,.45); display: grid; place-items: center; color: #1a1103; }
.dchk .ico { width: 16px; height: 16px; }
.daily.done .dchk { background: linear-gradient(180deg, #f8d88a, #d49a34); border-color: #f8d88a; }
.daily.bonus .dchk { color: var(--gold); border-style: dashed; }
.daily.bonus.done .dchk { color: #1a1103; }
.daily.done .dtext { color: var(--muted); text-decoration: line-through; }
.dtext { font-weight: 600; font-size: 14px; }
.dbar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 5px; overflow: hidden; }
.dbar i { display: block; height: 100%; background: linear-gradient(90deg, #9c6a1c, #e9c46a); border-radius: 3px; }
.dside { text-align: right; line-height: 1.1; }
.dside b { color: var(--gold); display: block; font-size: 14px; }
.dside span { font-size: 11px; color: var(--muted); }
#l-trophies { width: 100%; justify-content: space-between; }
#l-trophies .ico { color: var(--gold); }
.trophy-count { margin-left: auto; color: var(--gold); font-weight: 800; }
.lb-tabs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.lb-tabs .btn { flex: none; font-size: 13px; padding: 7px 10px; }
.lb-cap { margin-bottom: 4px; }
.brow { grid-template-columns: 26px 36px 1fr auto; }
.brow.me { background: rgba(233,196,106,.1); border: 1px solid rgba(233,196,106,.3); }
.board .empty { padding: 12px 4px; }
.modal-card.wide { width: min(980px, 100%); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); opacity: .7; }
.ach.got { opacity: 1; border-color: rgba(233,196,106,.35); background: linear-gradient(135deg, rgba(233,196,106,.08), rgba(0,0,0,.2)); }
.medal { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #7d6d58; background: #1d1813; border: 2px solid #3a3129; }
.medal .ico { width: 26px; height: 26px; }
.ach.got .medal { color: #1a1103; box-shadow: 0 0 18px rgba(233,196,106,.35); }
.ach.got.t-easy .medal { background: radial-gradient(circle at 35% 30%, #f3c7a0, #b06a35); border-color: #f0b27c; }
.ach.got.t-medium .medal { background: radial-gradient(circle at 35% 30%, #ffffff, #9aa3ad); border-color: #e3e8ee; }
.ach.got.t-hard .medal { background: radial-gradient(circle at 35% 30%, #fff1c4, #d49a34); border-color: #ffe39a; }
.ach.got.t-legendary .medal { background: conic-gradient(from 0deg, #ff6b6b, #f8d88a, #7af0c5, #7aa8ff, #d58bff, #ff6b6b); border-color: #fff; color: #120c03; }
.ach-name { font-weight: 800; }
.ach-desc { font-size: 13px; color: var(--muted); }
.ach-date { font-size: 11px; color: var(--gold); margin-top: 4px; }

/* unlock celebration */
.unlocks { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 400; pointer-events: none; }
.unlock { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 18px; min-width: min(560px, 92vw); padding: 18px 26px 18px 18px; border-radius: 22px; cursor: pointer;
  background: linear-gradient(180deg, rgba(40,28,8,.97), rgba(14,10,4,.97)); border: 2px solid var(--gold); box-shadow: 0 0 80px rgba(233,196,106,.55), 0 30px 80px rgba(0,0,0,.7);
  animation: unlockIn .7s cubic-bezier(.2,1.5,.35,1) both; overflow: visible; }
.unlock.out { animation: unlockOut .45s ease-in both; }
@keyframes unlockIn { 0% { transform: scale(.3) translateY(-40px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes unlockOut { to { transform: scale(.85) translateY(-30px); opacity: 0; } }
.u-rays { position: absolute; left: 16px; top: 50%; width: 110px; height: 110px; margin-top: -55px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,230,160,.35) 0 10deg, transparent 10deg 30deg); animation: spin 6s linear infinite; filter: blur(.5px); }
@keyframes spin { to { transform: rotate(360deg); } }
.u-medal { position: relative; flex: none; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; color: #1a1103;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #d49a34 60%, #8a5a14); border: 3px solid #fff3cf; box-shadow: 0 0 40px rgba(233,196,106,.9);
  animation: medalPop .9s cubic-bezier(.2,1.8,.4,1) .15s both; }
.u-medal .ico { width: 54px; height: 54px; }
.unlock.t-easy .u-medal { background: radial-gradient(circle at 35% 30%, #f3c7a0, #b06a35 60%, #6b3a18); border-color: #f7d2b0; }
.unlock.t-medium .u-medal { background: radial-gradient(circle at 35% 30%, #ffffff, #b7bfc8 60%, #6b737c); border-color: #fff; }
.unlock.t-legendary .u-medal { background: conic-gradient(from 0deg, #ff6b6b, #f8d88a, #7af0c5, #7aa8ff, #d58bff, #ff6b6b); }
.unlock.daily .u-medal, .unlock.sweep .u-medal { width: 84px; height: 84px; }
.unlock.daily .u-rays, .unlock.sweep .u-rays { width: 84px; height: 84px; margin-top: -42px; }
@keyframes medalPop { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: none; } }
.u-head { font-size: 13px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.u-name { font-size: 28px; font-weight: 900; line-height: 1.1; margin: 2px 0; background: linear-gradient(180deg, #fff, #f3d38a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-desc { color: var(--muted); font-size: 15px; }
.u-reward { margin-top: 6px; font-weight: 900; color: #7df0a8; display: flex; align-items: center; gap: 6px; }
.u-reward .ico { color: var(--gold); }
.u-spark { position: absolute; left: 70px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 10px #ffd35a;
  animation: spark 1.1s ease-out both; pointer-events: none; }
@keyframes spark { from { transform: translate(0, 0) scale(1.4); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }

/* mobile hero cards (portrait) */
.m-hero { display: none; }
.card.mh { width: 92px; height: 128px; }
.card.mh .rk { font-size: 40px; } .card.mh .st { font-size: 28px; top: 46px; } .card.mh .big { font-size: 56px; }

/* =================== COMPACT: phones & tablets =================== */
body.compact #hud { left: 0; top: 0; width: 100vw; height: 100dvh; height: 100vh; transform: none; }
body.compact .t-top { top: 0; left: 0; right: 0; height: 44px; padding: 4px 8px; gap: 6px; background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.35)); }
body.compact .t-top .btn { font-size: 13px; padding: 7px 10px; min-height: 36px; }
body.compact .t-top .lbl { display: none; }
body.compact #t-sitout.gold .lbl { display: inline; }
body.compact .t-title { margin-left: 2px; min-width: 0; }
body.compact #t-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
body.compact #t-meta { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
body.compact .t-bank { padding: 5px 9px; font-size: 13px; }
body.compact .turn-flag { top: 50px; font-size: 12px; padding: 5px 14px; }
body.compact .social .chat-log, body.compact .social #chat-in { display: none; }
body.compact .social { left: 8px; bottom: 8px; width: auto; }
body.compact .reacts { width: min(360px, 90vw); bottom: 52px; }
body.compact .log { right: 8px; left: 8px; width: auto; top: 50px; max-height: 70vh; }
body.compact .pad-hints.inline { display: none; }
body.compact .btn.act { font-size: 18px; padding: 10px 8px; min-height: 58px; }
body.compact .actions .raise-box { display: none; }
body.compact .actions.raising .raise-box:not(.hidden) { display: block; }
body.compact .unlock { gap: 12px; padding: 12px 16px 12px 12px; }
body.compact .u-medal, body.compact .u-rays { width: 72px !important; height: 72px !important; margin-top: -36px !important; }
body.compact .u-medal .ico { width: 36px; height: 36px; }
body.compact .u-name { font-size: 20px; }
body.compact .unlocks { top: 60px; }
body.compact .menu-grid { grid-template-columns: 1fr 1fr; }
body.compact .modal-card { padding: 18px; }

/* landscape: decision rail on the right */
body.compact:not(.portrait) .actions, body.compact:not(.portrait) .showmuck, body.compact:not(.portrait) .preacts, body.compact:not(.portrait) .seat-cta {
  top: 48px; right: 6px; bottom: 6px; left: auto; width: min(200px, 20vw); padding: 8px; border-radius: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
body.compact:not(.portrait) .actions.hidden, body.compact:not(.portrait) .showmuck.hidden, body.compact:not(.portrait) .preacts.hidden, body.compact:not(.portrait) .seat-cta.hidden { display: none; }
body.compact:not(.portrait) .act-row { grid-template-columns: 1fr; gap: 8px; }
body.compact:not(.portrait) .act-row .btn.act { min-height: 64px; }
body.compact:not(.portrait) .actions.raising .raise-box:not(.hidden) { position: absolute; right: calc(100% + 8px); bottom: 6px; width: min(460px, 58vw); padding: 12px; border-radius: 16px;
  background: rgba(12,9,6,.95); border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
body.compact:not(.portrait) .preacts { justify-content: flex-end; }
body.compact:not(.portrait) .preacts .btn { min-width: 0; width: 100%; min-height: 50px; font-size: 14px; padding: 8px; }
body.compact:not(.portrait) .showmuck .act-row.two { grid-template-columns: 1fr; }
body.compact:not(.portrait) .sm-title { font-size: 15px; }
body.compact:not(.portrait) .seat-cta { justify-content: center; text-align: center; }

/* portrait: table on top, big cards + bottom sheet controls below */
body.compact.portrait #hero-hud { display: none; }
body.compact.portrait .m-hero:not(.hidden) { display: flex; position: fixed; left: 50%; transform: translateX(-50%); top: calc(64px + 900px * var(--scale)); gap: 10px; align-items: flex-end; flex-wrap: wrap; justify-content: center; width: 260px; }
.m-label { flex-basis: 100%; text-align: center; font-weight: 800; color: var(--gold); font-size: 16px; margin-top: 4px; }
body.compact.portrait .actions, body.compact.portrait .showmuck, body.compact.portrait .preacts, body.compact.portrait .seat-cta {
  left: 6px; right: 6px; bottom: 6px; width: auto; padding: 10px; border-radius: 18px; }
body.compact.portrait .preacts { flex-wrap: wrap; justify-content: center; }
body.compact.portrait .pre-cap { flex-basis: 100%; text-align: center; margin: 0; }
body.compact.portrait .preacts .btn { flex: 1; min-width: 0; min-height: 52px; font-size: 15px; padding: 8px; }
body.compact.portrait .act-row .btn.act { min-height: 64px; }
body.compact.portrait .social { bottom: auto; top: 52px; }
body.compact.portrait .reacts { bottom: auto; top: 50px; }
body.compact.portrait .seat-cta { justify-content: space-between; }
body.compact .rotate-hint { display: none !important; }

/* =================== v1.3: Casino deck, real chips, aligned decision bar =================== */
/* Casino card art */
body.deck-casino .card .back { background: #1a0f0a url(/img/cards/back04.webp) center/100% 100% no-repeat; border: none; }
body.deck-casino .card .back::after { display: none; }
.card.img .face { background-color: transparent; background-size: 100% 100%; background-repeat: no-repeat; border: none; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.card.img .face > * { display: none; }
.card.img.win .face { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(233,196,106,.9); }
.card.img.sm .face, body.deck-casino .card.sm .back { border-radius: 6px; }
.card .face, .card .back { border-radius: 9px; }

/* real chip stacks */
.chips { position: relative; display: inline-block; width: 26px; height: calc(26px + (var(--n) - 1) * 4px); flex: none; }
.chips img { position: absolute; left: 0; bottom: calc(var(--i) * 4px); width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)); }
.chips.lg { width: 38px; height: calc(38px + (var(--n) - 1) * 5px); }
.chips.lg img { width: 38px; height: 38px; bottom: calc(var(--i) * 5px); }
.bet { gap: 8px; padding: 4px 12px 4px 6px; align-items: flex-end; }
.bet span { line-height: 26px; }
.pot { align-items: flex-end; }
.pot-chips { display: inline-flex; gap: 2px; align-items: flex-end; margin-right: 4px; }
img.fly.chip-img { width: 30px; height: 30px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }

/* decision bar: pre-actions sit exactly where Fold / Call / Raise will appear */
.preacts { right: 22px; bottom: 22px; width: 560px; padding: 16px; border-radius: 20px; display: block; background: rgba(12,9,6,.82); border: 1px solid var(--line); box-shadow: var(--shadow); }
.preacts.hidden { display: none; }
.preacts .btn.act { font-size: 21px; padding: 18px 10px; min-width: 0; min-height: 0; }
.btn.act.pre { background: #0d0b09; border-color: rgba(255,255,255,.16); color: #e9e2d6; font-weight: 700; }
.btn.act.pre:hover { background: #17130f; }
.btn.act.pre .tick { display: none; width: 20px; height: 20px; }
.btn.act.pre.on { border-color: var(--gold); color: var(--gold); box-shadow: inset 0 0 0 2px rgba(233,196,106,.55); }
.btn.act.pre.on .tick { display: inline-block; }
.btn.act.pre.on::before { content: none; }
.actions .turn-flag { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 13px; padding: 6px 18px; white-space: nowrap; }
.turn-flag.urgent { background: linear-gradient(180deg, #ff8a6b, #d8452e); color: #fff; animation: flagPulse .5s ease-in-out infinite alternate; }
.showmuck { width: 560px; }
.sm-head { display: flex; align-items: center; gap: 14px; justify-content: center; }
.sm-cards { display: flex; gap: 4px; }
.sm-cards .card.sm { width: 46px; height: 66px; }
.showmuck.mini { width: 360px; padding: 10px 12px; gap: 6px; }
.showmuck.mini .sm-title { font-size: 15px; color: var(--muted); font-weight: 700; }
.showmuck.mini #sm-muck, .showmuck.mini .sm-note { display: none; }
.showmuck.mini .act-row.two { grid-template-columns: 1fr; }
.showmuck.mini .btn.act { font-size: 16px; padding: 10px; min-height: 0; background: #0d0b09; color: var(--gold); border-color: rgba(233,196,106,.45); }
body.compact .preacts .btn.act { font-size: 18px; min-height: 58px; padding: 10px 8px; }
body.compact:not(.portrait) .preacts .btn.act { min-height: 64px; width: 100%; }
body.compact:not(.portrait) .preacts, body.compact:not(.portrait) .showmuck { width: min(200px, 20vw); }
body.compact:not(.portrait) .actions .turn-flag { top: -14px; font-size: 11px; padding: 4px 10px; }
body.compact.portrait .preacts { display: block; }
body.compact.portrait .preacts.hidden { display: none; }
body.compact .showmuck.mini { width: auto; }
body.compact.portrait .actions .turn-flag { top: -14px; font-size: 11px; padding: 4px 12px; }

/* =================== v1.4: showdown callout, winner ribbon, odds, quick replies =================== */
.banner.has-callout { background: none; border: none; box-shadow: none; padding: 0; top: 372px; animation: none; text-align: center; }
.banner .callout { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 60px; font-weight: 900; letter-spacing: 2px; line-height: 1;
  background: linear-gradient(180deg, #fff6d8, #f3c969 45%, #b07a22); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.85)); animation: calloutIn .6s cubic-bezier(.2,1.6,.4,1) both; }
.banner .callout .kr { -webkit-text-fill-color: #f3c969; font-style: normal; font-size: 34px; min-width: 44px; padding: 2px 8px; border: 3px solid #f3c969; border-radius: 8px;
  box-shadow: 0 0 14px rgba(243,201,105,.5); background: rgba(0,0,0,.45); }
@keyframes calloutIn { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.banner .who { display: inline-block; margin-top: 8px; padding: 8px 22px; border-radius: 30px; font-size: 20px; font-weight: 800; color: var(--gold);
  background: linear-gradient(180deg, rgba(40,28,10,.95), rgba(18,12,6,.95)); border: 2px solid var(--gold); box-shadow: 0 0 30px rgba(243,201,105,.35); }
.banner.has-callout small { display: block; margin-top: 4px; color: var(--ink); text-shadow: 0 2px 6px #000; }
.banner.big.has-callout .callout { font-size: 72px; }
.winner-ribbon { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; flex-direction: column; align-items: center; pointer-events: none;
  animation: ribbonIn .5s cubic-bezier(.2,1.6,.4,1) both; }
.winner-ribbon span { font-weight: 900; font-size: 22px; letter-spacing: 3px; padding: 2px 16px; border-radius: 6px; color: #2a1a05;
  background: linear-gradient(180deg, #fff1c4, #e9c46a 50%, #b07a22); box-shadow: 0 4px 14px rgba(0,0,0,.6), 0 0 24px rgba(243,201,105,.6); }
.winner-ribbon b { font-size: 24px; font-weight: 900; color: #7df0a8; text-shadow: 0 2px 8px #000; margin-top: 2px; }
@keyframes ribbonIn { from { transform: translateX(-50%) scale(.3); opacity: 0; } }
.seat.winner .plate { opacity: 0; }
.reveal-label b { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.eq-badge { flex-basis: 100%; text-align: center; margin-bottom: 3px; font-size: 13px; font-weight: 900; color: #fff; padding: 1px 8px; border-radius: 8px; order: -1;
  background: rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.25); }
.eq-badge.lead { color: #1a1103; background: linear-gradient(180deg, #f8d88a, #d49a34); border-color: #ffe39a; }
.seat .eq-badge.me { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 18px; padding: 3px 12px; }
.hero-res-wrap { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap; z-index: 4; }
.hero-result { font-weight: 900; font-size: 18px; padding: 5px 16px; border-radius: 20px; animation: ribbonIn .4s ease-out both; text-transform: uppercase; letter-spacing: 1px; }
.hero-result.win { color: #1a1103; background: linear-gradient(180deg, #f8d88a, #d49a34); box-shadow: 0 0 24px rgba(233,196,106,.7); }
.hero-result.lose { color: #eee; background: rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.2); }
.odds-pill { position: absolute; left: 20px; bottom: 76px; z-index: 26; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px;
  background: rgba(10,8,6,.85); border: 1px solid rgba(255,255,255,.14); font-weight: 700; }
.odds-pill .lbl { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.odds-pill b { font-size: 22px; color: #fff; }
.odds-pill.good b { color: var(--gold); }
.odds-pill .bar { width: 90px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; display: block; }
.odds-pill .bar u { display: block; height: 100%; background: linear-gradient(90deg, #9c6a1c, #e9c46a); }
.odds-pill small { color: var(--muted); font-size: 12px; }
.quick { position: absolute; right: 22px; bottom: 150px; z-index: 27; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 420px; }
.quick .btn.qr { background: #fff; color: #151515; border: none; border-radius: 22px; font-size: 20px; font-weight: 800; padding: 12px 10px; box-shadow: 0 6px 16px rgba(0,0,0,.5); animation: rise .3s ease-out both; }
.quick .btn.qr:hover { background: #f3ead8; }
body.compact .quick { right: 8px; left: 8px; width: auto; bottom: auto; top: 52px; grid-template-columns: repeat(4, 1fr); gap: 6px; }
body.compact .quick .btn.qr { font-size: 13px; padding: 8px 4px; }
body.compact .odds-pill { left: 8px; bottom: 60px; padding: 6px 10px; }
body.compact.portrait .odds-pill { bottom: auto; top: calc(64px + 900px * var(--scale) + 150px); left: 50%; transform: translateX(-50%); }

.hero-hud.has-res::after { display: none; }
.hero-result.eq { text-transform: none; letter-spacing: 0; }

/* =================== v1.5: last-10-hands viewer =================== */
.log { width: 460px; max-height: 720px; }
.hh { border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; }
.hh[open] { border-color: rgba(233,196,106,.3); }
.hh summary { list-style: none; cursor: pointer; padding: 10px 12px; }
.hh summary::-webkit-details-marker { display: none; }
.hh-top { display: flex; align-items: center; gap: 10px; }
.hh-no { font-weight: 800; color: var(--muted); min-width: 38px; }
.hh-cards { display: inline-flex; gap: 2px; padding-right: 8px; border-right: 1px solid rgba(255,255,255,.12); }
.hh-board { display: inline-flex; gap: 2px; flex: 1; }
.hh-res { font-weight: 800; white-space: nowrap; }
.hh-win { margin-top: 6px; font-size: 13px; color: var(--gold); }
.hh-shown { padding: 0 12px 4px; font-size: 13px; }
.hh-lines { padding: 4px 12px 10px; font-size: 13px; color: var(--muted); }
.hh-lines div { padding: 2px 0; border: none; color: var(--muted); }
.hh-lines .h { color: var(--gold); font-weight: 700; }
.hh-lines .st { color: var(--ink); font-weight: 700; padding-top: 6px; }
.mc { display: inline-block; min-width: 26px; padding: 1px 4px; border-radius: 4px; background: #f4efe6; color: #141414; font-weight: 800; font-size: 13px; text-align: center; line-height: 18px; }
.mc.r { color: #d42a24; }
.mc.back { background: repeating-linear-gradient(45deg, #6b1a16 0 3px, #8a2a24 3px 6px); height: 20px; }
body.compact .log { width: auto; }

/* =================== v1.6: calmer showdown, no replaying animations =================== */
.settled, .settled .card, .settled .card .in { animation: none !important; }
.felt-logo { top: 84%; font-size: 48px; }
.banner.has-callout { top: 385px; }
.banner.has-callout .who { font-size: 16px; padding: 6px 16px; }
/* your own chat bubbles pop out beside your avatar instead of over the results */
.seat.me .bubble { top: 8px; left: calc(50% + 62px); transform: none; animation: bubSide 4s ease both; }
.seat.me .bubble.emo { top: -6px; }
@keyframes bubSide { 0% { opacity: 0; transform: translateX(-10px) scale(.6); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* =================== v1.7: break fork, classic cards default =================== */
.fork-wrap { position: relative; }
.fork { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 270px; padding: 10px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(14,11,8,.97); border: 1px solid rgba(233,196,106,.45); box-shadow: var(--shadow); animation: rise .18s ease-out; }
.fork.hidden { display: none; }
.fork-cap { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.fork .btn { justify-content: flex-start; text-align: left; white-space: normal; padding: 10px 12px; gap: 12px; background: #0d0b09; }
.fork .btn:hover { border-color: var(--gold); }
.fork .btn .ico { color: var(--gold); width: 22px; height: 22px; }
.fork .btn span { display: flex; flex-direction: column; }
.fork .btn b { font-size: 15px; }
.fork .btn small { font-size: 12px; color: var(--muted); font-weight: 500; }
#t-sitout.pending { border-color: var(--gold); color: var(--gold); animation: pendGlow 1.4s ease-in-out infinite alternate; }
#t-sitout.pending .lbl { display: inline !important; }
@keyframes pendGlow { from { box-shadow: 0 0 6px rgba(233,196,106,.25); } to { box-shadow: 0 0 22px rgba(233,196,106,.6); } }
body.compact .fork { right: -40px; width: 250px; }
/* the Casino deck's dark copper back is used with every card style */
.card .back { background: #1a0f0a url(/img/cards/back04.webp) center/100% 100% no-repeat !important; border: none !important; }
.card .back::after { display: none !important; }

/* =================== v1.8: subtle felts, per-player felt, mobile lobby =================== */
/* Smooth felt: fine grain + soft spotlight, no repeating pattern (easy on the eyes for long sessions) */
:root { --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.09'/></svg>"); }
.felt, .felt[data-felt] { background-color: #6e1422; background-image: var(--grain), radial-gradient(ellipse at 50% 40%, var(--f1) 0%, var(--f2) 52%, var(--f3) 100%) !important;
  background-size: 180px 180px, 100% 100% !important; background-blend-mode: normal !important; }
.felt[data-felt=crimson], .felt:not([data-felt]) { --f1: #a3263a; --f2: #74152a; --f3: #3c0812; }
.felt[data-felt=blue] { --f1: #2b62b3; --f2: #173f7e; --f3: #0a1f45; }
.felt[data-felt=amber] { --f1: #8f5d24; --f2: #5f3b16; --f3: #2d1b09; }
.felt[data-felt=slate] { --f1: #4d5561; --f2: #323841; --f3: #171b21; }
.felt::before { border-color: rgba(255,255,255,.06); }
.felt-logo { color: rgba(255,255,255,.05); }
.tcard { background-image: var(--grain), radial-gradient(ellipse at 30% 20%, var(--f1), var(--f3)) !important; background-size: 180px 180px, 100% 100% !important; }
.felt-crimson { --f1: #a3263a; --f2: #74152a; --f3: #3c0812; }
.felt-blue { --f1: #2b62b3; --f2: #173f7e; --f3: #0a1f45; }
.felt-amber { --f1: #8f5d24; --f2: #5f3b16; --f3: #2d1b09; }
.felt-slate { --f1: #4d5561; --f2: #323841; --f3: #171b21; }
.tc-tag { margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; vertical-align: middle;
  background: rgba(0,0,0,.45); color: var(--gold); border: 1px solid rgba(233,196,106,.4); }
.felt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.felt-sw { height: 90px; border-radius: 14px; border: 2px solid rgba(255,255,255,.12); color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start; padding: 10px 12px; text-align: left; background-image: var(--grain), radial-gradient(ellipse at 40% 30%, var(--f1), var(--f3)); background-size: 180px 180px, 100% 100%; }
.felt-sw b { font-size: 15px; text-shadow: 0 2px 6px #000; }
.felt-sw small { font-size: 12px; opacity: .8; }
.felt-sw.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(233,196,106,.4), 0 0 20px rgba(233,196,106,.3); }

/* mobile lobby: app-style tabs, one section at a time */
.l-tabs { display: none; }
@media (max-width: 900px) {
  #lobby .topbar { gap: 8px; padding: 10px 12px; }
  #lobby .brand.sm .wordmark { font-size: 18px; letter-spacing: 3px; }
  #lobby .brand.sm .mark { width: 30px; height: 30px; }
  #lobby .me-chip { padding: 4px 12px 4px 4px; }
  #l-full { display: none; }
  #l-daily span:last-child { font-size: 13px; }
  .l-tabs { display: flex; gap: 6px; padding: 0 12px 10px; }
  .l-tabs button { flex: 1; font: inherit; font-weight: 800; font-size: 15px; color: var(--muted); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 10px 4px; cursor: pointer; }
  .l-tabs button.on { color: #1a1103; background: linear-gradient(180deg, #f8d88a, #d49a34); border-color: #ffe39a; }
  .l-tabs i { font-style: normal; font-size: 12px; opacity: .85; margin-left: 2px; }
  .lobby-grid { display: flex !important; flex-direction: column; overflow-y: auto; padding: 0 12px 16px; gap: 12px; -webkit-overflow-scrolling: touch; }
  .lobby-grid .side { display: contents; }
  .lobby-grid .panel { min-height: auto; flex: none !important; }
  .lobby-grid .tables, .lobby-grid .board, .lobby-grid .online { overflow: visible; }
  .lobby-grid:not([data-tab="tables"]) [data-sec="tables"], .lobby-grid:not([data-tab="daily"]) [data-sec="daily"],
  .lobby-grid:not([data-tab="ranks"]) [data-sec="ranks"], .lobby-grid:not([data-tab="online"]) [data-sec="online"] { display: none !important; }
  .panel-head { flex-wrap: wrap; gap: 10px; }
  .panel-head .row { width: 100%; }
  .panel-head .row .btn { flex: 1; padding: 12px 8px; }
  .tables { grid-template-columns: 1fr; }
  .tcard { min-height: 130px; }
  .howto { display: none; }
  #lobby .pad-hints { display: none !important; }
}

/* =================== v1.9: update notice + admin system panel =================== */
.update-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 500; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  padding: 10px 20px; border-radius: 24px; color: #1a1103; background: linear-gradient(180deg, #f8d88a, #d49a34); border: 1px solid #ffe39a;
  box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 24px rgba(233,196,106,.5); animation: rise .3s ease-out; }
.update-bar.hidden { display: none; }
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sys-grid .stat span { display: block; }
