.online-coming-soon { display:flex; flex-direction:column; align-items:center; gap:10px; padding:32px 12px; color:var(--muted); text-align:center; font-size:14px; }
.online-coming-soon__cards { display:grid; place-items:center; width:38px; height:40px; color:var(--gold); }
.online-coming-soon__cards svg { display:block; width:34px; height:36px; fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
.online-coming-soon__spade { fill:currentColor; stroke:none; }
.online-coming-soon p { margin:0; }
.online-maintenance { display:flex; flex-direction:column; align-items:center; max-width:420px; margin:clamp(28px,8vh,72px) auto 0; padding:28px 22px 30px; border:1px solid rgba(96,164,231,.34); border-radius:24px; background:radial-gradient(circle at 50% 0%,rgba(65,125,190,.18),transparent 58%),linear-gradient(145deg,#10243d,#0b1728); box-shadow:0 18px 50px rgba(0,0,0,.22); color:#eaf4ff; text-align:center; }
.online-maintenance__mark { display:grid; place-items:center; width:62px; height:62px; margin-bottom:17px; border:1px solid rgba(126,188,247,.42); border-radius:20px; background:rgba(63,128,194,.14); color:#9acbff; }
.online-maintenance__mark svg { width:37px; height:39px; fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
.online-maintenance__mark path { fill:currentColor; stroke:none; }
.online-maintenance__eyebrow { margin:0 0 7px; color:#9acbff; font-size:10px; font-weight:700; letter-spacing:2.4px; }
.online-maintenance h2 { margin:0; color:#f4f8ff; font-size:clamp(23px,6vw,29px); line-height:1.12; letter-spacing:-.5px; }
.online-maintenance__text { max-width:330px; margin:12px 0 21px; color:#afc4dc; font-size:13px; line-height:1.65; }
.online-maintenance__countdown { width:100%; padding:14px 12px 12px; border:1px solid rgba(126,188,247,.2); border-radius:15px; background:rgba(4,14,28,.38); }
.online-maintenance__countdown > span { display:block; margin-bottom:7px; color:#9db7d4; font-size:11px; letter-spacing:1.4px; text-transform:uppercase; }
.online-maintenance__countdown strong { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); color:#f0c979; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:clamp(24px,6vw,34px); font-weight:700; letter-spacing:0; line-height:1.2; font-variant-numeric:tabular-nums; }
.online-maintenance__countdown strong > span { position:relative; min-width:0; white-space:nowrap; }
.online-maintenance__countdown strong > span:not(:last-child)::after { content:':'; position:absolute; right:0; transform:translateX(50%); color:#7694b5; font-size:.7em; line-height:1.7; }
.online-maintenance__labels { display:grid; grid-template-columns:repeat(4,1fr); margin-top:4px; color:#7694b5; font-size:9px; letter-spacing:.5px; text-transform:uppercase; }
.online-maintenance__launch { margin:17px 0 0; color:#b9cde2; font-size:12px; }
.online-panel { padding:0; }
.online-heading { margin:0 0 24px; }
.online-heading h2 { margin:0; font-size:30px; }
.online-title-row,.online-section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.online-title-row { flex-wrap:wrap; }
.online-section-heading h3,.online-section-title { margin:16px 0; font-size:24px; }
.online-back { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; border:0; background:none; color:#c1b9ab; font-size:13px; cursor:pointer; }
.online-back:hover { color:var(--gold); }
.online-intro { color:#b7afa3; font-size:13px; line-height:1.65; }
.online-badge { display:inline-flex; align-items:center; padding:5px 8px; border:1px solid var(--line); border-radius:5px; color:#bdb4a2; font-size:10px; letter-spacing:.03em; font-weight:600; }
.online-state { color:var(--gold); font-size:12px; }
.online-state--finished,.online-state--cancelled { color:var(--muted); }
.online-tournament-card { margin:14px 0; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.online-tournament-card h4 { margin:18px 0 8px; font-size:22px; }
.online-tournament-card h3 { font-size:24px; }
.online-tournament-card p { line-height:1.7; }
.online-stats { display:flex; flex-wrap:wrap; gap:16px 26px; margin:18px 0; }
.online-stats span { display:grid; gap:5px; color:#b7afa3; font-size:12px; }
.online-stats b { color:var(--ivory); font-size:17px; }
.online-prize { font-size:13px; color:var(--light); }
.online-button { min-height:44px; padding:10px 15px; border:1px solid var(--line); border-radius:7px; color:var(--ivory); background:var(--elevated); font-size:13px; font-weight:600; cursor:pointer; }
.online-button--gold { background:var(--gold); color:var(--bg); border-color:var(--gold); }
.online-button:disabled { opacity:.5; cursor:default; }
.online-tournament-card > .online-button { width:100%; margin-top:10px; }
.online-actions { display:flex; flex-wrap:wrap; gap:10px; }
.online-actions > * { flex:1; }
.online-blank { padding:40px 16px; text-align:center; }
.online-blank > span { display:block; color:var(--gold); font-size:48px; }
.online-blank h4 { font-size:21px; }
.online-blank p { color:#b7afa3; font-size:14px; line-height:1.7; }
.online-feedback { padding:12px 14px; margin:10px 0; background:#2a2115; border:1px solid var(--line); border-radius:7px; color:var(--light); font-size:13px; line-height:1.6; }
.online-search { display:flex; gap:8px; margin:22px 0 8px; }
.online-search input { min-width:0; flex:1; padding:12px; border-radius:7px; background:var(--card); color:var(--ivory); border:1px solid var(--line); }
.online-ranking-row,.online-friend-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; border-bottom:1px solid rgba(255,255,255,.08); font-size:14px; }
.online-ranking-row > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.online-ranking-row > strong:first-child { min-width:22px; color:var(--muted); }
.online-ranking-row > strong:last-child { color:var(--gold); }
.online-ranking-row small:not(.online-badge),.online-friend-row small { display:block; margin-top:6px; color:var(--muted); font-size:11px; }
.online-friend-row > div { min-width:0; overflow-wrap:anywhere; }
.online-bottom-nav { grid-template-columns:repeat(3,1fr); }
.online-nav-symbol { display:block; margin-bottom:3px; font-size:25px; line-height:26px; }
.online-details { margin:18px 0; padding:14px; border:1px solid var(--line); border-radius:8px; font-size:13px; }
.online-details summary { min-height:28px; cursor:pointer; }
.online-blind-table { width:100%; margin:14px 0; border-collapse:collapse; font-size:12px; }
.online-blind-table th,.online-blind-table td { padding:10px 4px; text-align:left; border-bottom:1px solid var(--line); }

.poker-player-hit { position:absolute; z-index:3; inset:0; width:100%; height:100%; min-height:44px; padding:0; border:0; border-radius:inherit; background:transparent; cursor:pointer; }
.poker-player-hit:hover { box-shadow:none; }
.poker-seat:has(.poker-player-hit:hover) .poker-avatar{border-color:var(--light)}
.poker-player-hit:focus-visible { outline:2px solid var(--light); outline-offset:3px; }
.poker-chat-count { margin-left:4px; min-width:16px; padding:2px 4px; background:var(--gold); color:var(--bg); border-radius:8px; font-size:10px; text-align:center; }
.poker-chat-panel { position:fixed; z-index:8; bottom:calc(var(--poker-controls-height,0px) + 8px); left:50%; transform:translateX(-50%); display:flex; flex-direction:column; width:min(460px,calc(100% - 24px)); max-height:min(52dvh,430px); padding:14px; background:#111916fa; border:1px solid #6c5b36; border-radius:12px; box-shadow:0 10px 40px #0008; }
.poker-chat-channels { display:flex; gap:6px; margin-bottom:8px; }
.poker-chat-channels .online-button { flex:1; min-width:0; }
.poker-chat-channels [aria-pressed="true"] { border-color:#b49860; color:#f1d493; background:#2d281c; }
.poker-social-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; }
.poker-social-heading h3 { margin:0; font-size:18px; }
.poker-social-heading .online-back { width:44px; padding:0; justify-content:center; font-size:24px; flex-shrink:0; }
.poker-social-heading small { display:block; max-width:280px; color:#b4bdaf; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:5px; }
.poker-chat-messages { min-height:65px; max-height:240px; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; padding:10px 0; }
.poker-chat-message { margin:0 0 10px; padding:9px 10px; background:#202c23; border-radius:7px; }
.poker-chat-message--own { background:#2d2a1d; border-left:1px solid var(--gold); }
.poker-chat-message header { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 12px; font-size:11px; }
.poker-chat-message header strong { color:#ece6d4; }
.poker-chat-message time { color:#b3b9a9; font-size:9px; }
.poker-chat-message p { margin:6px 0 0; color:var(--ivory); font-size:13px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.poker-chat-empty { text-align:center; color:#b4bdaf; font-size:13px; line-height:1.6; }
#online-chat-form { flex-shrink:0; border-top:1px solid #ffffff12; padding-top:10px; }
.poker-chat-label { display:block; color:#b4bdaf; font-size:10px; margin-bottom:7px; }
#online-chat-input { display:block; width:100%; min-height:54px; max-height:100px; padding:9px 10px; border:1px solid #667253; border-radius:6px; color:var(--ivory); background:#0d1410; font:13px/1.5 'DM Sans',system-ui,sans-serif; resize:vertical; }
#online-chat-input:focus-visible { outline:2px solid var(--light); outline-offset:2px; }
.poker-chat-form-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px; }
.poker-chat-form-footer small { color:#b4bdaf; font-size:9px; line-height:1.5; max-width:160px; }
.poker-social-feedback { margin:8px 0; color:var(--light); font-size:12px; line-height:1.5; }
.poker-player-dialog { width:min(420px,calc(100% - 28px)); max-height:85dvh; overflow:auto; padding:18px; border:1px solid #6c5b36; border-radius:12px; background:#111916; color:var(--ivory); }
.poker-player-dialog::backdrop { background:#0009; }
.poker-profile-identity { display:flex; align-items:center; gap:14px; margin:20px 0 12px; }
.poker-profile-identity h4 { margin:0 0 8px; font-size:24px; overflow-wrap:anywhere; }
.online-monogram { display:grid; flex:0 0 52px; place-items:center; width:52px; height:52px; background:#293a2b; border:1px solid #65794e; border-radius:50%; color:#e6dbb4; font-size:24px; }
.poker-profile-follow { width:100%; }


/* Online cabinet extends the club's existing visual system. */
.online-bottom-nav{grid-template-columns:repeat(4,1fr)}
.online-nav-emoji{display:grid;place-items:center;font-size:29px;line-height:1}
.online-lobby-tabs{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:10px;margin:12px 0 20px}
.online-lobby-tabs button{flex:1;min-height:44px;padding:8px 5px;border:0;border-radius:7px;background:none;color:#c5bdae;font:inherit;font-size:12px;cursor:pointer}
.online-lobby-tabs button.is-active{background:#302617;color:var(--light)}
.online-tournament-date{color:var(--light);font-size:14px}
.online-prize-preview{display:flex;flex-wrap:wrap;gap:15px;margin:18px 0}
.online-prize-preview>div{display:flex;align-items:center;gap:10px;font-size:12px;max-width:100%}
.online-prize-preview img{width:48px;height:48px;object-fit:contain}
.online-prize-preview b{display:block;margin-bottom:4px;color:var(--gold);font-size:10px}
.online-prize-preview span{overflow-wrap:anywhere}
.online-tournament-conditions{margin:16px 0;font-size:12px;line-height:1.6;color:#c5bdae}
.online-tournament-conditions summary{min-height:44px;padding:12px 0;cursor:pointer;color:var(--ivory)}
.online-tournament-card>.online-button{width:100%}
.online-profile-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ivory);text-align:left;font:inherit;cursor:pointer}
.online-profile-history-row small{display:block;margin-top:6px;color:#b7afa3;font-size:11px}
.online-profile-history-row strong{color:var(--gold);white-space:nowrap}
#online-own-profile .profile-counters span{display:flex;flex-direction:column;gap:5px;color:#c5bdae;font-size:12px}
#online-own-profile .profile-counters b{font-size:20px;color:var(--ivory)}
#online-own-profile .profile-stats>div{display:flex;flex-direction:column;gap:7px;text-align:center}
#online-own-profile .profile-stats strong{font-size:24px;color:var(--gold)}
#online-own-profile .profile-stats span{font-size:11px;color:#c5bdae}
.online-inventory{display:grid;gap:16px}
.online-item-card{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);min-width:0}
.online-item-card>img,.online-item-fallback{width:88px;height:100px;object-fit:contain;flex:none}
.online-item-fallback{display:grid;place-items:center;font-size:42px}
.online-item-card>div{min-width:0;flex:1;overflow-wrap:anywhere}
.online-item-card h4{font-size:17px;margin:8px 0}
.online-item-card p{font-size:12px;color:#c5bdae;line-height:1.6;margin:7px 0}
.online-item-card small{font-size:11px;line-height:1.7;color:#c5bdae}
.online-item-card--inactive>img{filter:grayscale(1);opacity:.6}
.online-item-status{font-size:11px;color:var(--gold)}
.online-item-status--expired,.online-item-status--redeemed{color:#b7afa3}
.online-item-card details{margin-top:10px;font-size:11px}
.online-item-card summary{min-height:36px;padding:10px 0;cursor:pointer}
.online-item-number{word-break:break-all}
/* Only the online playing surface owns a fixed viewport. Panels scroll inside it. */
.app-shell.app--online-table{width:min(100%,1100px);padding:0 12px max(env(safe-area-inset-bottom,0px),8px);background:var(--bg);overflow:hidden}
.app--online-table>.topbar,.online-at-table>.online-heading,.online-at-table>.online-bottom-nav{display:none}
.app-shell.app--online-table main{height:100%;overflow:hidden;min-height:0}
#section-online.online-at-table{display:flex;flex-direction:column;height:100%;min-height:0;padding:0;--muted:#b7afa3;--line:#d9bc7138;--light:#f2dca6}
.online-at-table [data-online-panel="tournaments"]{flex:1;min-height:0;display:flex;flex-direction:column}
.online-at-table #online-table-view{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
.online-at-table #online-message:not([hidden]){position:absolute;z-index:12;top:48px;left:12px;right:12px;margin:0;max-height:100px;overflow:auto}
.poker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;flex:none}
.poker-toolbar>.online-back{padding:8px;font-size:12px}
.poker-tables-button{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:44px;padding:4px 14px;border:0;background:none;color:var(--ivory);font:600 13px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.poker-tables-button span{font-size:9px;color:#c5bdae;font-weight:400}
.poker-game-heading{flex:none;text-align:center;min-width:0;padding:2px 8px}
.poker-game-heading h3{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}
.poker-game-heading p{margin:5px 0;color:#c5bdae;font-size:10px;line-height:14px;font-variant-numeric:tabular-nums}
.poker-notice{flex:none;min-height:26px;max-height:42px;overflow:hidden;text-align:center;padding:4px 10px;color:#d5cbb8;font-size:10px;line-height:15px}
.poker-felt{position:relative;flex:1;min-height:0;width:100%;max-height:720px;isolation:isolate}
.poker-felt::before{content:"";position:absolute;inset:35px 36px;border:6px solid #29231c;border-radius:47% / 38%;background:radial-gradient(ellipse at 50% 40%,#19392e,#10261f 70%);box-shadow:inset 0 0 0 1px #a0864b,0 8px 24px #0004;z-index:-1}
.poker-felt::after{content:"";position:absolute;inset:57px 55px;border:1px solid #bd9e5838;border-radius:47% / 38%;z-index:-1;pointer-events:none}
.poker-felt-logo{position:absolute;left:50%;top:62%;transform:translate(-50%,-50%);width:100px;height:84px;object-fit:contain;opacity:.24;pointer-events:none}
.poker-community{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:7px;width:auto;max-width:64%;text-align:center;z-index:1}
.poker-pot{color:#c7c8bc;font-size:11px;font-variant-numeric:tabular-nums}
.poker-pot b{display:block;margin-top:4px;color:#fff3d8;font-size:25px;font-weight:600}
.poker-board{display:flex;justify-content:center;gap:5px;min-height:52px;align-items:center}
.poker-card{display:inline-flex;position:relative;flex:none;flex-direction:column;justify-content:space-between;width:36px;height:51px;padding:4px;border-radius:5px;background:#fffaf0;color:#192e2a;box-shadow:0 2px 4px #0003;font:600 15px/1 system-ui,sans-serif;vertical-align:middle}
.poker-card i{align-self:flex-end;font-size:20px;font-style:normal}
.poker-card--red{color:#b9233e}
.poker-card--back{align-items:center;justify-content:center;background:#302920;color:#e6d2a2;border:1px solid #9f8c5a;box-shadow:inset 0 0 0 3px #201e19}
.poker-card--small{width:29px;height:41px;font-size:13px;padding:3px}
.poker-card--small i{font-size:18px}
.poker-card--tiny{width:24px;height:33px;font-size:11px;padding:3px}
.poker-card--tiny i{font-size:14px}
.poker-card--winning{outline:2px solid #e5bd59;outline-offset:2px}
.poker-card-slot{display:block;width:36px;height:51px;flex:none;border:1px solid #bca46666;border-radius:5px;background:#0d211c55}
.poker-result{display:block;max-width:230px;min-height:24px;color:#f2dca6;font-size:11px;line-height:16px}
.poker-result small{display:block;font-size:10px}
.poker-seat{position:absolute;left:var(--seat-x);top:var(--seat-y);transform:translate(-50%,-50%);display:grid;grid-template-columns:56px 66px;grid-template-rows:15px 14px 52px 17px 17px 14px;column-gap:4px;width:126px;height:129px;border:0;padding:0;background:none;color:var(--ivory);text-align:center;z-index:2;font-variant-numeric:tabular-nums}
.poker-combination{grid-column:1/-1;grid-row:1;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eadbb7;font-size:10px;line-height:15px}
.poker-bet{grid-column:1;grid-row:2;color:#f1c45d;font-size:11px;font-weight:600;line-height:14px;white-space:nowrap}
.poker-seat-identity{grid-column:1;grid-row:3;display:grid;place-items:center}
.poker-avatar{position:relative;display:grid;place-items:center;width:48px;height:48px;border:1px solid #899382;border-radius:50%;background:#2c4236;color:#f2e6c4}
.poker-avatar-initial{font-size:23px;font-weight:600}
.poker-avatar-photo{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;border-radius:50%;clip-path:circle(50%)}
.poker-seat--you .poker-avatar{border-color:#e2bc60;background:#3c462d}
.poker-turn-ring{position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);transform:rotate(-90deg);overflow:visible;pointer-events:none}
.poker-turn-ring circle{fill:none;stroke-width:2}
.poker-turn-track{stroke:#66765c55}
.poker-turn-progress{stroke:#8bc391;stroke-linecap:round;stroke-dasharray:100;visibility:hidden}
.poker-seat--acting .poker-turn-progress{visibility:visible}
.poker-clock{position:absolute;bottom:-4px;right:-5px;display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#0d1913;color:#f6e7b8;font-size:10px}
.poker-dealer{position:absolute;left:-9px;bottom:-2px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#f7f2e4;color:#183026;font-size:10px;font-weight:700}
.poker-player-name{grid-column:1/-1;grid-row:4;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;text-align:left;padding-left:3px}
.poker-stack{grid-column:1;grid-row:5;color:#edce83;font-size:13px;line-height:17px;text-align:left;padding-left:3px;white-space:nowrap}
.poker-seat-kind{grid-column:2;grid-row:5;font-size:9px;color:#c1c7b8;text-align:right;line-height:17px}
.poker-last-action{grid-column:1/-1;grid-row:6;font-size:10px;line-height:14px;color:#c1c7b8;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;padding-left:3px}
.poker-seat-hand{grid-column:2;grid-row:3;align-self:center;min-width:0}
.poker-seat-cards{display:flex;gap:3px;align-items:center;justify-content:center}
.poker-seat-cards--folded{filter:grayscale(1);opacity:.42}
.poker-seat--out .poker-avatar{filter:grayscale(1);opacity:.5}
.poker-dealt-card{display:inline-flex;animation:poker-deal var(--deal-duration,0ms) cubic-bezier(.16,1,.3,1) var(--deal-delay,0ms) both}
@keyframes poker-deal{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.poker-board-reveal{animation:poker-reveal .42s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms) both;backface-visibility:hidden}
@keyframes poker-reveal{from{opacity:.35;transform:perspective(500px) rotateY(-80deg) translateY(-3px)}to{opacity:1;transform:perspective(500px) rotateY(0) translateY(0)}}
.poker-seat--empty{width:72px;height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#c5c9bc;cursor:pointer}
.poker-empty-circle{display:grid;place-items:center;width:44px;height:44px;border:1px dashed #a6aa8f88;border-radius:50%;background:#172b23aa;color:#e2d4af;font-size:24px;font-weight:300}
.poker-seat--empty small{font-size:9px;line-height:13px}
.poker-seat--empty:disabled{opacity:.6;cursor:default}
.poker-seat--empty:not(:disabled):hover .poker-empty-circle{border-color:var(--gold);color:var(--gold);background:#293724}
.poker-panel-triggers{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;flex:none}
.poker-panel-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid #b7a36a55;border-radius:9px;background:#18221b;color:#e4dcc8;font:500 11px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.poker-panel-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.poker-turn-status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#c6c8ba;font-size:10px}
.poker-turn-status b{color:var(--light);font-variant-numeric:tabular-nums}
.poker-controls{flex:none;padding:8px 0 2px;min-height:64px}
.poker-action-buttons{display:grid;grid-template-columns:1fr 1.3fr 1.1fr;gap:8px}
.poker-action-buttons button{min-height:50px;padding:10px 5px;border:1px solid #b4bba844;border-radius:10px;font:600 14px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.poker-fold{background:#302222;color:#f4d9d5}
.poker-call{background:#20392c;color:#e2f0df}
.poker-raise{background:#d9b568;color:#171e16;border-color:#d9b568}
.poker-action-buttons button:disabled{opacity:.38;cursor:default}
.poker-waiting-actions{display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;color:#c5bdae;font-size:11px}
.poker-waiting-actions .online-button{font-size:12px;min-height:44px}
.poker-speech{position:absolute;bottom:calc(100% + 4px);left:0;max-width:145px;max-height:40px;overflow:hidden;padding:5px 8px;background:#f1ead8;color:#1c2c20;border-radius:8px;font-size:10px;line-height:14px;z-index:4;overflow-wrap:anywhere}
.poker-raise-panel{position:fixed;z-index:15;right:max(12px,calc((100vw - 1100px)/2 + 12px));bottom:calc(126px + env(safe-area-inset-bottom,0px));width:min(270px,calc(100vw - 24px));max-height:calc(var(--online-vh,100dvh) - 190px);overflow:auto;margin:0;padding:16px;border:1px solid #a2864b88;border-radius:14px;background:#131e17;box-shadow:-6px 12px 32px #0007;animation:poker-panel-right .24s cubic-bezier(.16,1,.3,1)}
.poker-raise-panel .poker-social-heading{margin-bottom:12px}
.poker-raise-panel .poker-social-heading h3{font-size:16px}
.poker-raise-value{display:block;width:calc(100% - 56px);font-size:10px;color:#c5bdae}
#online-raise-amount{display:block;width:100%;min-height:44px;margin-top:5px;padding:8px;border:1px solid #a2864b88;border-radius:7px;background:#0c1510;color:var(--ivory);font:600 20px 'DM Sans',system-ui,sans-serif;text-align:center}
.poker-raise-cards{display:flex;gap:5px;margin-top:12px}
.poker-raise-context{font-size:11px;line-height:1.8;color:#c5bdae;margin:8px 0 12px}
#online-raise-range{position:absolute;right:14px;top:72px;display:block;width:44px;height:170px;margin:0;writing-mode:vertical-lr;direction:rtl;accent-color:var(--gold);touch-action:none;cursor:pointer}
.poker-raise-presets{display:flex;gap:5px;margin:12px 0}
.poker-raise-presets button{flex:1;min-height:38px;padding:5px;border:1px solid var(--line);border-radius:6px;background:none;color:#e4dcc8;font:500 10px 'DM Sans',system-ui,sans-serif;cursor:pointer}
.poker-raise-confirm{width:100%;min-height:46px;font-size:12px}
.poker-history-dialog,.poker-tournament-dialog{position:fixed;top:max(12px,env(safe-area-inset-top,0px));bottom:calc(80px + env(safe-area-inset-bottom,0px));left:max(12px,calc((100vw - 1100px)/2 + 12px));right:auto;width:min(390px,calc(100vw - 24px));height:auto;max-height:calc(var(--online-vh,100dvh) - 104px);margin:0;padding:18px;border:1px solid #8f794c;border-radius:14px;background:#131e17;color:var(--ivory);overflow:auto;overscroll-behavior:contain;animation:poker-panel-left .25s cubic-bezier(.16,1,.3,1)}
.poker-tournament-dialog{left:auto;right:max(12px,calc((100vw - 1100px)/2 + 12px));animation-name:poker-panel-right}
.poker-history-dialog::backdrop,.poker-tournament-dialog::backdrop{background:#0005}
.poker-history-dialog>.poker-social-heading,.poker-tournament-dialog>.poker-social-heading{position:sticky;top:-18px;margin:-18px -18px 12px;padding:12px 18px;background:#131e17;z-index:2;border-bottom:1px solid var(--line)}
.online-at-table .poker-chat-panel{top:auto;bottom:calc(80px + env(safe-area-inset-bottom,0px));right:max(12px,calc((100vw - 1100px)/2 + 12px));left:auto;transform:none;width:min(360px,calc(100% - 24px));max-height:calc(var(--online-vh,100dvh) - 150px);border-color:#8f794c;background:#131e17;animation:poker-panel-right .25s cubic-bezier(.16,1,.3,1)}
.poker-history{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}
.poker-history h4{font-size:13px;margin:0 0 12px}
.poker-history-board{display:flex;gap:4px;align-items:center;font-size:11px;color:#c5bdae}
.poker-history-winner{font-size:12px;color:var(--light);line-height:1.6}
.poker-history-players p{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:11px}
.poker-history-players p>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.poker-history-players p>span:nth-child(2){display:flex;gap:2px}
.poker-history-actions{padding-left:18px;color:#d9d4c6;line-height:1.8;font-size:11px}
.poker-history-actions small{color:#b7afa3}
.poker-history summary{min-height:44px;padding:12px 0;cursor:pointer}
.poker-table-switcher{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}
.poker-table-switcher .online-button{display:flex;flex-direction:column;gap:4px;min-width:80px}
.poker-table-switcher small{font-size:10px;opacity:.8}
.poker-standings-heading,.poker-standing{display:grid;grid-template-columns:minmax(0,1fr) 38px 65px;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;font-variant-numeric:tabular-nums}
.poker-standings-heading{font-size:10px;color:#c5bdae}
.poker-standing>div{display:flex;gap:9px;min-width:0;overflow-wrap:anywhere}
.poker-standing>div>b{min-width:18px;color:#b7afa3}
.poker-standing>strong{font-size:11px;text-align:right;color:#e8d29a}
.poker-standing--you{color:var(--gold)}
@keyframes poker-panel-right{from{opacity:.4;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}
@keyframes poker-panel-left{from{opacity:.4;transform:translateX(-28px)}to{opacity:1;transform:translateX(0)}}
#section-online button:focus-visible,#section-online input:focus-visible,#section-online summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#section-online input,#section-online textarea{caret-color:var(--gold)}
#section-online ::selection{background:#cda655;color:#101810}
#section-online dialog,#section-online aside{scrollbar-width:thin;scrollbar-color:#72623d #131e17}
#section-online [hidden]{display:none!important}
@media(max-width:700px){
  .app-shell.app--online-table{padding-inline:8px}
  .poker-toolbar{min-height:44px}.poker-notice{min-height:25px}
  .poker-felt::before{inset:31px 15px;border-width:5px;border-radius:47% / 25%}.poker-felt::after{inset:48px 30px;border-radius:47% / 25%}
  .poker-seat{width:112px;height:114px;grid-template-columns:48px 60px;grid-template-rows:14px 12px 44px 16px 16px 12px}
  .poker-avatar{width:42px;height:42px}.poker-avatar-initial{font-size:20px}
  .poker-player-name{font-size:11px;line-height:16px;padding-left:3px}.poker-stack{font-size:12px;line-height:16px}
  .poker-combination{font-size:9px;line-height:14px}.poker-bet{font-size:10px;line-height:12px}.poker-last-action{font-size:9px;line-height:12px}
  .poker-card--small{width:27px;height:38px;font-size:12px}.poker-card--small i{font-size:16px}
  .poker-community{gap:5px;max-width:64%}.poker-pot b{font-size:21px}.poker-board{gap:4px;min-height:42px}
  .poker-board>.poker-card,.poker-board>.poker-card-slot{width:29px;height:41px;font-size:13px}.poker-board>.poker-card i{font-size:18px}
  .poker-felt[data-capacity="9"] .poker-board,.poker-felt[data-capacity="10"] .poker-board{gap:3px}
  .poker-felt[data-capacity="9"] .poker-board>*,.poker-felt[data-capacity="10"] .poker-board>*{width:25px;height:36px;font-size:11px;padding:3px}
  .poker-felt[data-capacity="9"] .poker-board i,.poker-felt[data-capacity="10"] .poker-board i{font-size:16px}
  .poker-felt-logo{width:76px;height:68px;top:63%}.poker-result{font-size:10px;line-height:14px;max-width:170px}
  .poker-seat--empty{width:66px;height:66px;display:flex}.poker-empty-circle{width:42px;height:42px}
  .poker-panel-triggers{min-height:44px}.poker-controls{min-height:62px;padding-top:6px}
  .poker-panel-button{font-size:10px;padding:8px;min-height:42px}.poker-action-buttons button{min-height:48px;font-size:13px}
  .poker-history-dialog,.poker-tournament-dialog{padding:14px}.poker-history-dialog>.poker-social-heading,.poker-tournament-dialog>.poker-social-heading{top:-14px;margin:-14px -14px 10px;padding:10px 14px}
  .poker-chat-form-footer small{display:none}.poker-chat-form-footer{justify-content:flex-end}
}
@media(max-width:360px){.poker-seat{width:100px;grid-template-columns:44px 52px}.poker-card--small{width:24px;height:35px}.poker-seat-cards{gap:2px}.poker-player-name{font-size:10px}.poker-stack{font-size:11px}.poker-combination{font-size:8px}.poker-toolbar>.online-back{font-size:11px}.poker-tables-button{font-size:12px;padding-inline:8px}.poker-board>.poker-card,.poker-board>.poker-card-slot{width:25px;height:36px}.poker-board{gap:3px}.poker-pot b{font-size:19px}.poker-felt-logo{width:65px}.poker-felt[data-capacity="9"] .poker-board>*,.poker-felt[data-capacity="10"] .poker-board>*{width:22px;height:32px}.online-item-card{gap:12px}.online-item-card>img{width:66px;height:84px}}
@media(max-height:700px) and (orientation:portrait){.poker-game-heading h3{font-size:13px}.poker-game-heading p{font-size:9px;margin-block:3px}.poker-notice{font-size:9px;min-height:21px;padding-block:2px}.poker-toolbar{min-height:40px}.poker-seat{height:101px;grid-template-rows:12px 11px 40px 15px 15px 8px}.poker-avatar{width:38px;height:38px}.poker-last-action{display:none}.poker-result{min-height:14px}.poker-raise-panel{bottom:114px;max-height:calc(var(--online-vh,100dvh) - 160px)}}
@media(orientation:landscape) and (max-height:600px){.app-shell.app--online-table{width:100%;padding-inline:12px}.poker-game-heading,.poker-notice{display:none}.poker-toolbar{min-height:36px}.poker-toolbar button{min-height:36px}.poker-felt{margin:0 auto;width:75%}.poker-felt::before{inset:22px 35px;border-radius:45% / 46%}.poker-felt::after{inset:36px 50px;border-radius:45% / 46%}.poker-seat{height:77px;width:94px;grid-template-columns:40px 50px;grid-template-rows:10px 10px 32px 13px 12px 0}.poker-avatar{width:30px;height:30px}.poker-avatar-initial{font-size:16px}.poker-card--small{width:22px;height:31px;font-size:10px}.poker-combination{font-size:8px;line-height:10px}.poker-player-name{font-size:9px;line-height:13px}.poker-stack{font-size:10px;line-height:12px}.poker-last-action{display:none}.poker-bet{font-size:8px;line-height:10px}.poker-panel-triggers{position:absolute;left:12px;right:12px;bottom:74px;pointer-events:none}.poker-panel-button{pointer-events:auto}.poker-turn-status{display:none}.poker-controls{min-height:54px;max-width:500px;width:70%;margin:auto}.poker-action-buttons button{min-height:42px}.poker-pot b{font-size:16px}.poker-board>*,.poker-board>.poker-card{width:24px;height:33px;font-size:10px}.poker-board i{font-size:14px}.poker-felt-logo{display:none}.poker-result{font-size:9px;line-height:12px}.poker-empty-circle{width:32px;height:32px}.poker-seat--empty{height:47px}.poker-raise-panel{bottom:62px;max-height:calc(var(--online-vh,100dvh) - 76px)}.poker-chat-panel,.poker-history-dialog,.poker-tournament-dialog{bottom:60px;max-height:calc(var(--online-vh,100dvh) - 76px)}}
@media(orientation:landscape) and (max-height:600px){.poker-seat{top:clamp(44px,var(--seat-y),calc(100% - 44px))}}
/* Approved on 20 October: quiet club palette and one integrated playing surface. */
.online-at-table{--gold:#c7a35f;--light:#eddbb4}
.poker-felt::before{inset:24px 20px;border:1px solid #b28f4d;border-radius:47% / 25%;background:radial-gradient(ellipse at 50% 43%,#142e24,#10231c 75%);box-shadow:none}
.poker-felt::after{display:none}
.poker-felt-logo{top:59%;width:86px;height:86px;opacity:.15}
.poker-seat{transform:translate(-50%,-50%) scale(var(--seat-scale,1));transform-origin:center;transition:transform .24s cubic-bezier(.16,1,.3,1)}
.poker-avatar{border-color:#8d7a50;box-shadow:none;background:#29392e}
.poker-seat--you .poker-avatar{background:#2c3a2e;border-color:#c7a35f}
.poker-player-name{font-weight:500}
.poker-stack{color:#dfc88c;font-weight:600}
.poker-turn-progress{stroke:#d2b677}
.poker-card{box-shadow:0 1px 3px #0003;border-radius:4px}
.poker-card--back{background:#1c2821;border-color:#75684a;color:#b7a575;box-shadow:none}
.poker-board:not([data-dealt="0"])>.poker-card-slot{display:none}
.poker-seat-kind{position:absolute;right:0;top:0;line-height:14px;font-size:8px;color:#c1c7b8}
.poker-seat--you{width:144px;grid-template-columns:54px 86px;grid-template-rows:14px 12px 52px 17px 17px 12px;height:124px}
.poker-seat--you .poker-avatar{width:48px;height:48px}
.poker-seat--you .poker-card--small{width:33px;height:46px;font-size:14px}
.poker-seat--you .poker-card--small i{font-size:19px}
.poker-seat--you .poker-player-name,.poker-seat--you .poker-stack{padding-left:3px}
.poker-notice:empty{display:none}
.poker-panel-triggers{position:relative;min-height:44px;height:44px;margin-top:-44px;padding-inline:4px;pointer-events:none;z-index:3}
.poker-panel-button{width:42px;min-height:42px;padding:10px;font-size:0;border:1px solid #8e7b4f77;border-radius:50%;background:#111c16;pointer-events:auto}
.poker-panel-button svg{width:19px;height:19px}
.poker-panel-button .poker-chat-count{font-size:9px;position:absolute;margin:0 0 30px 28px}
.poker-turn-status{visibility:hidden}
.online-at-table .poker-controls{display:grid;grid-template-rows:54px 0px;gap:0;width:100%;max-width:none;min-height:0;margin:0;padding:8px 0 2px;border-top:1px solid #78613a66;overflow:hidden;transition:grid-template-rows .24s cubic-bezier(.16,1,.3,1)}
.online-raising .poker-controls{grid-template-rows:0px 152px}
#online-actions{min-height:0;overflow:hidden}
.online-raising #online-actions{visibility:hidden}
.poker-action-buttons{max-width:720px;margin-inline:auto}
.poker-action-buttons button{min-height:48px;border-radius:8px;box-shadow:none;font-size:13px}
.poker-fold{background:#20201f;border-color:#625c51;color:#e5dfd1}
.poker-call{background:#1c3026;border-color:#4e6454;color:#e5eadf}
.poker-raise{background:#c7a35f;border-color:#c7a35f;color:#121810}
.online-at-table .poker-raise-panel{position:static;display:grid;grid-template-rows:44px 44px 44px;gap:6px;width:100%;max-width:720px;max-height:none;min-height:0;margin:0 auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden;animation:none;grid-row:2}
.poker-raise-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.poker-raise-heading label{display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap;color:#e7dfce}
.poker-raise-heading>span{margin-left:auto;font-size:10px;color:#b7afa3;text-align:right}
.poker-raise-heading .online-back{width:38px;min-height:42px;justify-content:center;font-size:23px;padding:0}
#online-raise-amount{width:86px;min-height:38px;margin:0;padding:5px;border:1px solid #8b734944;background:#111e17;border-radius:6px;font-size:17px;text-align:center}
#online-raise-range{position:static;display:block;width:100%;height:44px;min-height:44px;margin:0;writing-mode:horizontal-tb;direction:ltr;accent-color:#c7a35f;touch-action:pan-y}
.poker-raise-presets{display:grid;grid-template-columns:1fr 1fr 1fr 1.5fr;gap:7px;margin:0;min-height:44px}
.poker-raise-presets button{min-height:44px;margin:0;padding:6px;border:1px solid #6b634d;border-radius:7px;background:#17231b;color:#e8dfcc;font-size:12px;cursor:pointer}
.poker-raise-presets .poker-raise-confirm{width:auto;background:#c7a35f;border-color:#c7a35f;color:#151b12;font-size:11px;font-weight:600}
#section-online .poker-player-hit:focus-visible{outline:0}
.poker-seat:has(.poker-player-hit:focus-visible) .poker-avatar{outline:2px solid var(--light);outline-offset:4px}
@media(max-width:360px){.poker-raise-heading label{font-size:11px;gap:6px}.poker-raise-heading>span{font-size:9px}#online-raise-amount{width:70px}.poker-raise-presets{gap:5px}.poker-raise-presets button{font-size:11px;padding:5px}}
@media(max-width:700px) and (orientation:portrait){
  .poker-felt .poker-board[data-dealt="3"]>.poker-card{width:38px;height:54px;font-size:17px}
  .poker-felt .poker-board[data-dealt="3"]>.poker-card i{font-size:22px}
  .poker-felt .poker-board[data-dealt="4"]>.poker-card{width:30px;height:43px;font-size:14px}
  .poker-felt .poker-board[data-dealt="5"]{gap:3px}
  .poker-felt .poker-board[data-dealt="5"]>.poker-card{width:24px;height:35px;font-size:12px}
}
@media(max-width:360px) and (orientation:portrait){
  .poker-felt .poker-board{width:calc(80vw - 160px);gap:3px;min-height:0}
  .poker-felt .poker-board:not([data-dealt="0"])>.poker-card{flex:1;min-width:0;max-width:30px;width:auto;height:auto;aspect-ratio:2/3;padding:2px;font-size:11px}
  .poker-felt .poker-board:not([data-dealt="0"])>.poker-card i{font-size:12px}
  .poker-felt .poker-board[data-dealt="3"]>.poker-card{font-size:14px}
  .poker-felt .poker-board[data-dealt="3"]>.poker-card i{font-size:18px}
  .poker-felt .poker-board[data-dealt="5"]>.poker-card{font-size:10px}
}
@media(orientation:landscape) and (max-height:600px){.poker-community{top:52%}}
@media(orientation:landscape) and (max-height:600px){.poker-panel-triggers{position:absolute;bottom:70px;margin:0;padding-inline:0}.poker-seat--you{height:85px;width:112px;grid-template-columns:42px 66px;grid-template-rows:10px 10px 36px 14px 13px 0}.poker-seat--you .poker-avatar{width:34px;height:34px}.poker-seat--you .poker-card--small{width:26px;height:35px;font-size:11px}.poker-seat--you .poker-card--small i{font-size:15px}.online-raising [data-online-panel="tournaments"]{display:grid;grid-template-columns:minmax(0,1fr) 250px;height:100%}.online-raising .poker-controls{grid-template-rows:0px 152px;align-content:center;height:100%;padding:12px;border-top:0;border-left:1px solid #78613a66}.online-raising .poker-panel-triggers{left:12px;right:268px;bottom:10px}.online-raising .poker-felt{width:94%}.poker-felt-logo{display:none}}
@media(prefers-reduced-motion:reduce){#section-online *{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Telegram chrome and the keyboard must never cover the chat close controls. */
#section-online{
  --online-safe-top:max(var(--tg-top,0px),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px),env(safe-area-inset-top,0px));
  --online-safe-bottom:max(var(--tg-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px),env(safe-area-inset-bottom,0px));
}
.poker-avatar{aspect-ratio:1;flex-shrink:0}
.online-at-table #online-chat-panel{
  top:auto;
  bottom:calc(var(--online-keyboard-bottom,0px) + var(--online-safe-bottom) + 8px);
  max-height:min(430px,calc(var(--online-vh,100dvh) - var(--online-safe-top) - var(--online-safe-bottom) - 16px));
  overflow:auto;overscroll-behavior:contain;
}
#online-chat-panel>.poker-social-heading{position:sticky;top:0;z-index:2;background:#131e17}
#online-chat-panel .poker-chat-messages{min-height:0;flex-shrink:1}
#online-chat-panel .poker-chat-form-actions{display:flex;gap:8px;flex-wrap:wrap}
#online-chat-panel [data-online-chat-close]{min-width:44px;min-height:44px;touch-action:manipulation}

/* A real two-sided turn-over: the face is hidden behind the patterned back. */
.poker-card--flip{perspective:600px;background:transparent;box-shadow:none}
.poker-flip-rotor{position:absolute;inset:0;border-radius:inherit;transform-style:preserve-3d;animation:poker-card-turn 850ms cubic-bezier(.4,0,.2,1) var(--reveal-delay,0ms) both}
.poker-flip-front,.poker-flip-back{position:absolute;inset:0;border-radius:inherit;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.poker-flip-front{display:flex;flex-direction:column;justify-content:space-between;padding:3px;background:#fffaf0;box-shadow:0 2px 4px #0003}
.poker-flip-back{display:grid;place-items:center;transform:rotateY(180deg);border:1px solid #ae945a;background:repeating-linear-gradient(45deg,#302920 0 4px,#40372a 4px 5px);color:#e6d2a2;font-size:22px;box-shadow:inset 0 0 0 2px #201e19}
@keyframes poker-card-turn{0%{transform:rotateY(180deg) translateY(0)}40%{transform:rotateY(105deg) translateY(-4px)}100%{transform:rotateY(0) translateY(0)}}

/* Mobile table: one measured viewport, with separate Telegram and game controls. */
#section-online {
  --online-safe-top:max(var(--tg-top,0px),calc(var(--tg-safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px)),env(safe-area-inset-top,0px));
  --online-safe-bottom:max(var(--tg-bottom,0px),calc(var(--tg-safe-area-inset-bottom,0px) + var(--tg-content-safe-area-inset-bottom,0px)),env(safe-area-inset-bottom,0px));
}
.app-shell.app--online-table {
  padding:calc(6px + max(var(--tg-top,0px),env(safe-area-inset-top,0px))) 12px calc(10px + max(var(--tg-bottom,0px),env(safe-area-inset-bottom,0px)));
}
.online-at-table #online-message:not([hidden]) { top:calc(var(--online-safe-top) + 54px); }
.poker-toolbar { border-bottom:1px solid #ffffff0d; }
.poker-game-heading { padding:10px 8px 0; }
.poker-game-heading h3 { font-size:16px; }
.poker-game-heading p { font-size:11px; margin:5px 0 0; }
.poker-felt::before { inset:22px 18px 28px; border-color:#9a804c; }
.poker-avatar-photo { position:static; }
.poker-avatar-crop { position:absolute; inset:2px; border-radius:50%; overflow:hidden; isolation:isolate; background:#29392e; }
.poker-avatar .poker-avatar-photo { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:cover; object-position:center; border-radius:50%; }
.poker-clock { z-index:2; border:1px solid #8d7a50; min-width:23px; height:23px; right:-7px; bottom:-5px; font-weight:600; }
.poker-panel-triggers { margin:0; height:46px; min-height:46px; padding:0 2px; }
.poker-panel-button { width:auto; min-width:88px; min-height:44px; padding:8px 12px; border:0; border-radius:8px; background:transparent; color:#d3cbb9; font-size:11px; }
.poker-panel-button:hover { background:#19251e; }
.poker-panel-button .poker-chat-count { position:static; margin:0; }
.poker-turn-status { visibility:visible; font-size:11px; }
.online-at-table .poker-controls { grid-template-rows:56px 0; padding-top:8px; }
.online-raising .poker-controls { grid-template-rows:0 152px; }
.poker-action-buttons { grid-template-columns:1fr 1.15fr 1.15fr; gap:8px; }
.poker-action-buttons button { min-height:52px; font-size:14px; }
.poker-action-buttons button:active,.poker-panel-button:active { transform:scale(.97); }
.poker-fold { background:#211f20; border-color:#4c4442; }
.poker-call { background:#1c342b; border-color:#466858; }

/* Dialog headers never scroll away; only their content scrolls. */
#online-history-dialog[open],#online-tournament-dialog[open],#online-player-dialog[open] {
  display:flex; flex-direction:column; gap:0;
  top:calc(var(--online-viewport-top,0px) + var(--online-safe-top) + 8px);
  bottom:auto; height:calc(var(--online-vh,100dvh) - var(--online-safe-top) - var(--online-safe-bottom) - 16px);
  max-height:calc(var(--online-vh,100dvh) - var(--online-safe-top) - var(--online-safe-bottom) - 16px);
  overflow:hidden; padding:0; background:#142019; color:#f6f4ee; border:1px solid #66583c; border-radius:0 18px 18px 0;
}
#online-history-dialog { left:max(0px,calc((100vw - 1100px)/2)); width:min(420px,calc(100vw - 20px)); animation:online-drawer-in .26s cubic-bezier(.16,1,.3,1); }
#online-tournament-dialog { border-radius:18px 0 0 18px; }
#online-player-dialog { margin:0 auto; border-radius:18px; height:auto; }
#section-online dialog::backdrop { background:#030806b3; }
#section-online dialog>.poker-social-heading {
  position:relative; top:auto; margin:0; padding:16px; min-height:76px;
  background:#142019; border-bottom:1px solid #ffffff14; flex:none;
}
#section-online .poker-social-heading h3 { font-size:19px; line-height:1.2; }
#section-online .poker-social-heading small { font-size:11px; color:#b6c2b9; }
#section-online dialog>.poker-social-heading .online-back {
  width:auto; min-width:86px; min-height:44px; padding:8px 10px; gap:6px;
  border:1px solid #ffffff26; border-radius:9px; background:#203028; color:#f6f4ee; font-size:22px;
}
#section-online dialog>.poker-social-heading .online-back::after { content:'Закрыть'; font-size:11px; }
#online-history-content,#online-standings-content,#online-player-dialog-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:0 16px 16px; scrollbar-width:thin; scrollbar-color:#75643d #142019; }
#section-online dialog>.poker-social-feedback { flex:none; margin:10px 16px; }
#section-online dialog>[data-online-history-more] { flex:none; margin:8px 16px 16px; }
.poker-history { padding:20px 0; }
.poker-history h4 { font-size:14px; }
.poker-history-players p { font-size:12px; }
.poker-history-board { flex-wrap:wrap; }
.poker-history-winner { color:#e6cc8f; }
@keyframes online-drawer-in { from { transform:translateX(-100%); } to { transform:translateX(0); } }

/* Compact, opaque chat sheet. The composer stays above the visual keyboard. */
.online-at-table #online-chat-panel[open] {
  display:flex; position:fixed; left:auto; right:max(8px,calc((100vw - 1100px)/2 + 8px));
  top:calc(var(--online-viewport-top,0px) + var(--online-safe-top) + 8px); bottom:auto; transform:none;
  width:min(400px,calc(100vw - 16px)); height:calc(var(--online-vh,100dvh) - var(--online-safe-top) - var(--online-safe-bottom) - 16px);
  max-height:620px; min-height:0; margin:0; padding:0; overflow:hidden;
  background:#142019; color:#f6f4ee; border:1px solid #66583c; border-radius:18px;
}
#online-chat-panel .poker-chat-messages { min-height:0; max-height:none; flex:1; padding:16px; }
.poker-chat-message { display:grid; grid-template-columns:32px minmax(0,1fr); gap:9px; width:90%; margin:0 0 14px; padding:10px 12px; border-radius:4px 12px 12px; background:#22352b; }
.poker-chat-message--own { margin-left:auto; background:#363322; border:0; border-radius:12px 4px 12px 12px; }
.poker-chat-message .poker-chat-avatar { width:32px; height:32px; font-size:12px; }
.poker-chat-message header strong { overflow-wrap:anywhere; }
.poker-chat-message header { font-size:11px; gap:4px; }
.poker-chat-message time { font-size:9px; color:#c2c9bb; }
.poker-chat-message p { font-size:14px; line-height:1.5; }
#online-chat-form { padding:12px 16px 16px; background:#142019; }
.poker-chat-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#online-chat-input { min-height:48px; max-height:80px; padding:12px; border:1px solid #6e7e68; border-radius:10px; font-size:16px; resize:none; }
.poker-chat-form-footer { margin-top:8px; }
#online-chat-panel .poker-chat-form-actions { width:100%; justify-content:flex-end; }
#online-chat-panel .poker-chat-form-actions>[data-online-chat-close] { display:none; }
#online-chat-send { min-height:44px; padding-inline:20px; }

@media(max-width:700px) and (orientation:portrait) {
  .app-shell.app--online-table { padding-inline:10px; }
  .poker-felt { max-height:none; }
  .poker-seat { left:var(--mobile-x); top:clamp(44px,var(--mobile-y),calc(100% - 44px)); width:82px; height:74px; grid-template-columns:38px 42px; grid-template-rows:0 0 36px 15px 15px 8px; column-gap:2px; }
  .poker-avatar { width:34px; height:34px; }
  .poker-avatar-initial { font-size:17px; }
  .poker-seat .poker-card--small { width:19px; height:29px; font-size:10px; padding:2px; }
  .poker-seat .poker-card--small i { font-size:13px; }
  .poker-player-name { font-size:11px; line-height:15px; }
  .poker-stack { grid-column:1/-1; font-size:12px; line-height:15px; }
  .poker-seat-kind { top:10px; right:0; font-size:8px; }
  .poker-combination { font-size:8px; line-height:12px; }
  .poker-bet { font-size:10px; line-height:11px; }
  .poker-seat:not(.poker-seat--you) .poker-combination { position:absolute; left:0; right:0; top:-14px; }
  .poker-seat:not(.poker-seat--you) .poker-bet { position:absolute; left:0; top:-12px; }
  .poker-last-action { font-size:9px; line-height:10px; }
  .poker-seat--you { width:146px; height:114px; grid-template-columns:54px 88px; grid-template-rows:12px 11px 48px 16px 16px 11px; top:clamp(57px,var(--mobile-y),calc(100% - 57px)); }
  .poker-seat--you .poker-avatar { width:44px; height:44px; }
  .poker-seat--you .poker-card--small { width:37px; height:48px; font-size:17px; padding:4px; }
  .poker-seat--you .poker-card--small i { font-size:21px; }
  .poker-seat--you .poker-stack { font-size:14px; }
  .poker-seat--you .poker-player-name { font-size:12px; }
  .poker-seat--you .poker-combination { font-size:10px; }
  .poker-seat--empty { width:58px; height:64px; }
  .poker-empty-circle { width:36px; height:36px; font-size:21px; }
  .poker-community { top:48%; max-width:65%; gap:8px; }
  .poker-pot { font-size:11px; }
  .poker-pot b { font-size:26px; line-height:1.2; }
  .poker-felt .poker-board { width:auto; gap:4px; min-height:46px; }
  .poker-felt .poker-board:not([data-dealt="0"])>.poker-card { flex:none; width:clamp(26px,8vw,34px); height:46px; max-width:none; aspect-ratio:auto; font-size:15px; padding:3px; }
  .poker-felt .poker-board:not([data-dealt="0"])>.poker-card i { font-size:19px; }
  .poker-result { max-width:180px; }
  .poker-felt-logo { top:61%; width:65px; height:65px; opacity:.1; }
}
@media(max-height:700px) and (orientation:portrait) {
  .poker-game-heading { padding-top:6px; }
  .poker-game-heading h3 { font-size:14px; }
  .poker-game-heading p { font-size:10px; }
  .poker-panel-triggers { height:44px; min-height:44px; }
}
@media(orientation:landscape) and (max-height:600px) {
  .online-at-table [data-online-panel="tournaments"] { display:grid; grid-template-columns:minmax(0,1fr) 220px; height:100%; }
  .online-at-table .poker-controls { grid-template-rows:56px 0; align-content:center; height:100%; padding:12px; border-top:0; border-left:1px solid #78613a66; }
  .online-at-table .poker-action-buttons { grid-template-columns:1fr; gap:10px; }
  .online-at-table .poker-controls { grid-template-rows:188px 0; }
  .online-raising .poker-controls { grid-template-rows:0 152px; }
  .poker-action-buttons button { min-height:52px; }
  .poker-felt { width:100%; }
  .poker-felt::before { inset:8px 24px; border-radius:45% / 40%; }
  .poker-seat { top:clamp(30px,var(--seat-y),calc(100% - 32px)); height:52px; width:84px; grid-template-columns:36px 46px; grid-template-rows:0 0 28px 12px 12px 0; }
  .poker-seat:not(.poker-seat--you) .poker-combination { position:absolute; top:-12px; left:0; right:0; }
  .poker-seat:not(.poker-seat--you) .poker-bet { position:absolute; top:-10px; left:0; }
  .poker-avatar { width:26px; height:26px; }
  .poker-seat--you { top:clamp(32px,var(--seat-y),calc(100% - 32px)); height:64px; grid-template-columns:40px 66px; grid-template-rows:0 0 36px 14px 14px 0; }
  .poker-seat--you .poker-combination { position:absolute; top:-12px; left:0; right:0; }
  .poker-seat--you .poker-avatar { width:32px; height:32px; }
  .poker-community { top:50%; flex-direction:row; gap:10px; max-width:70%; }
  .poker-board { min-height:0; }
  .poker-pot { display:flex; flex-direction:column; align-items:center; gap:0; font-size:9px; }
  .poker-pot b { font-size:18px; }
  .poker-panel-triggers { position:static; margin:0; padding:0; height:44px; min-height:44px; }
  .poker-turn-status { display:block; }
  .online-raising [data-online-panel="tournaments"] { grid-template-columns:minmax(0,1fr) 250px; }
  .online-raising .poker-felt { width:100%; }
  .online-raising .poker-panel-triggers { position:static; }
  #section-online dialog>.poker-social-heading { min-height:60px; padding:8px 16px; }
  .online-at-table #online-chat-panel[open] { width:min(460px,calc(100vw - 16px)); }
}
#section-online.online-at-table #online-controls-host.poker-controls--preaction{grid-template-rows:0 0 minmax(56px,auto);height:auto;min-height:0;transition:none}
.poker-controls--preaction>#online-actions{visibility:hidden}
#online-extra-controls{grid-column:1/-1;grid-row:3;display:grid;gap:6px;min-width:0;padding-bottom:4px}
#online-preaction-label{text-align:center}
#section-online.online-at-table .poker-action-buttons--preaction{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
.poker-action-buttons--preaction button[aria-pressed="true"]{outline:2px solid #d8bc76;outline-offset:-2px}
@media(min-width:768px){
  #section-online.online-at-table .poker-action-buttons.poker-action-buttons--preaction{max-width:503px}
}
