/* Table surfaces, compact card vectors and chip art are adapted from FeltForge
   (MIT). Static derivatives and attribution live in /poker/LICENSE.txt. */
.menu-trigger{display:none}
html:has(body[data-view="play"]){scrollbar-gutter:stable}
.header-bankroll{display:none}
body[data-view="play"] .site-header{height:76px;padding:0 28px;gap:20px;background:linear-gradient(110deg,#101321f5,#171124f5);border-bottom:1px solid #50405e}
body[data-view="play"] .menu-trigger{display:grid;place-items:center;width:42px;height:42px;padding:0;background:#1c1a2b;border:1px solid #514360;border-radius:12px;flex:none}
body[data-view="play"] .menu-trigger .icon{width:22px;height:22px;color:#d7c8e9}
body[data-view="play"] .main-nav{display:none}
body[data-view="play"] .header-right{margin-left:auto;gap:14px}
body[data-view="play"] .header-bankroll:not([hidden]){position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:47px;padding:7px 29px 7px 14px;border:1px solid #397e70;border-radius:12px;background:linear-gradient(120deg,#153932,#131b2b);box-shadow:inset 0 1px #8dfbd916,0 0 22px #40f1c707;text-align:left}
.header-bankroll .bankroll-heading{display:flex;flex-wrap:nowrap;gap:8px;margin:0}
.header-bankroll .section-label{font-size:8px;line-height:1;letter-spacing:1px;color:#acddce}
.header-bankroll .balance{display:block;font-size:21px;line-height:1.2;letter-spacing:-.7px;margin:4px 0 0;font-weight:750;color:#e1fff3;font-variant-numeric:tabular-nums}
.header-bankroll .balance-updated{font-size:8px;color:#86ad9d}
.header-bankroll .balance-chevron{position:absolute;right:10px;top:16px;font-size:13px;color:var(--green)}
body[data-view="play"] .wallet-controls #connect{min-height:43px;padding:11px 16px;font-size:12px;border-radius:11px;background:linear-gradient(135deg,#362343,#1c1b2c)}
/* A single, generous playing stage replaces both permanent sidebars. */
#play-view{display:block;max-width:none;min-height:calc(100dvh - 76px);background:radial-gradient(ellipse at 49% 37%,#25314255,transparent 55%),radial-gradient(ellipse at 0 50%,#4b236221,transparent 45%),#090d17}
#play-view .game{padding:19px 46px 20px;max-width:1300px;margin:auto;overflow:visible;min-width:0;flex:none;background:none}
#play-view .table-heading{max-width:1120px;margin:0 auto;align-items:center;min-height:45px;padding:0 16px}
#play-view .table-heading>div:first-child{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
#play-view .table-heading .eyebrow{display:none}
#play-view .table-heading h1{font-size:20px;margin:0;letter-spacing:-.5px}
#play-view .table-heading p{font-size:11px;color:#8f99ac}
#play-view .table-heading .hand-meta{display:flex;flex-direction:row;align-items:center;gap:16px;font-size:10px}
#play-view .table-heading #street{padding:5px 9px;border-radius:6px;border:1px solid #2d5c50;background:#143a2d45;color:#7aedc7}
#play-view .arena{position:relative;width:100%;max-width:1100px;height:clamp(460px,calc(100svh - 325px),650px);min-height:0;margin:0 auto 12px;isolation:isolate}
#play-view .ambient{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 55%,#3ad4b51a,transparent 65%);filter:blur(12px);pointer-events:none}
#play-view .felt{position:absolute;inset:43px 3% 36px;border:0;border-radius:0;background:transparent url('/poker/table-wide.svg') center/100% 100% no-repeat;box-shadow:none;transform:none}
#play-view .felt::before{display:none}
#play-view .felt-inner{position:absolute;inset:46% 0 auto;transform:translateY(-50%);width:100%;height:auto;padding:0!important;border:0;border-radius:0;box-shadow:none;background:none;overflow:visible;display:flex;flex-direction:column;align-items:center}
#play-view .felt-brand{position:absolute;bottom:-42px;color:#cdf9e747;letter-spacing:3px;font-family:inherit;font-size:15px;font-style:normal;font-weight:750;visibility:visible}
#play-view .has-result .felt-brand{visibility:hidden}
#play-view .pot-label{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;color:#bfe3d1;font-size:8px;font-weight:650;letter-spacing:1.4px}
.pot-chips{display:inline-flex;align-items:center;margin-right:3px;height:25px}
.pot-chips img{width:25px;height:25px;filter:drop-shadow(0 2px 2px #0009);margin-right:-9px;transform:rotate(-12deg)}
.pot-chips img:nth-child(2){transform:translateY(-4px) rotate(8deg)}
.pot-chips img:nth-child(3){transform:rotate(20deg)}
#play-view .pot{margin:6px 0 20px;font-size:29px;font-weight:800;letter-spacing:-1px;line-height:1.1;text-shadow:0 2px 10px #001b18}
#play-view .board{display:flex;align-items:center;justify-content:center;gap:8px;min-height:75px}
#play-view .board .card{width:54px;height:75px;border-radius:5px;flex:none}
.card.illustrated-card{padding:0;background:#faf9f5;border:0;overflow:hidden}
.card>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;border-radius:inherit}
#play-view .card{box-shadow:0 2px 3px #0007,0 5px 16px #0004,inset 0 0 0 1px #ffffff33}
#play-view .board .card.empty{position:relative;border:1px solid #a1e2c824;background:#003b2b45;box-shadow:inset 0 0 12px #00251c44}
#play-view .board .card.empty img{opacity:0}
#play-view .board .card.empty::after{content:'♠';position:absolute;inset:0;display:grid;place-items:center;font-family:Georgia,serif;font-size:25px;color:#a0d0b525}
#play-view .table-message{margin-top:16px;font-size:10px;letter-spacing:.2px;color:#a5cdbb;max-width:65%;line-height:1.5}
/* Portraits and fanned cards form one player unit, visibly joined to its plaque. */
#play-view .seat{position:absolute;width:180px;min-height:119px;padding-top:49px;text-align:left;transform:translate(-50%,-50%)!important;z-index:2}
#play-view .arena .seat-0{left:50%;top:86%}
#play-view .arena .seat-1{left:14%;top:69%}
#play-view .arena .seat-2{left:14%;top:29%}
#play-view .arena .seat-3{left:50%;top:13%}
#play-view .arena .seat-4{left:86%;top:29%}
#play-view .arena .seat-5{left:86%;top:69%}
#play-view .seat-avatar{position:absolute;left:-4px;top:45px;width:70px;height:70px;margin:0;min-width:0;min-height:0;padding:0;border:3px solid #c58ff4;border-radius:50%;background:#29233c;box-shadow:0 0 0 4px #151923,0 6px 20px #0009,0 0 20px #b875e826;z-index:4;overflow:visible}
#play-view .seat-avatar img{border-radius:50%;width:100%;height:100%;object-fit:cover}
#play-view .seat-avatar-edit::after{right:-3px;bottom:-1px;width:19px;height:19px;font-size:12px;border:2px solid #101820;background:var(--green);color:#122c25}
#play-view .seat-box{position:relative;min-height:64px;padding:12px 12px 10px 76px;border:1px solid #79568e;border-radius:33px 13px 13px 33px;background:linear-gradient(125deg,#2b2239ee,#151827f5 65%);box-shadow:0 7px 20px #0007,inset 0 1px #e5c1ff12}
#play-view .seat-heading{min-height:16px;display:flex;align-items:center;gap:5px;flex-wrap:nowrap;justify-content:flex-start;margin:0 0 4px}
#play-view .seat-heading .seat-name{font-size:10px;letter-spacing:.15px;font-weight:600;color:#e8d9f7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:none;min-width:0;flex:1}
#play-view .seat-stack{font-size:18px;line-height:1.2;font-weight:750;letter-spacing:-.4px;color:#f6f7ff}
#play-view .seat-status{font-size:8px;line-height:1.4;margin:5px 0 0;color:#d5b2ed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#play-view .seat-cards{position:absolute;left:76px;bottom:calc(100% - 2px);display:flex;align-items:flex-end;justify-content:flex-start;gap:0;padding:0;margin:0;height:53px;z-index:-1}
#play-view .seat-cards .card{width:36px;height:50px;margin:0;flex:none;border-radius:4px;background:#faf9f5;border:0;transform-origin:center bottom}
#play-view .seat-cards .card:first-child{transform:rotate(-11deg) translateY(2px);z-index:1}
#play-view .seat-cards .card:last-child{transform:rotate(9deg) translate(-5px,0);z-index:2}
#play-view .seat-cards .card.empty{background:#33234a}
#play-view .seat.self{width:207px;min-height:141px;padding-top:62px}
#play-view .seat.self .seat-box{padding-left:85px;min-height:69px;border-color:#4f9a85;background:linear-gradient(125deg,#164238,#142c2b 65%)}
#play-view .seat.self .seat-avatar{width:79px;height:79px;top:55px;border-color:#68f6d3;background:#123a30;box-shadow:0 0 0 4px #102125,0 6px 20px #0009,0 0 22px #42f5cd21}
#play-view .seat.self .seat-cards{left:90px;height:69px}
#play-view .seat.self .seat-cards .card{width:48px;height:67px}
#play-view .seat.self .seat-heading .seat-name{font-size:10px;color:#8cffdb;letter-spacing:1px}
#play-view .seat.self .seat-stack{font-size:21px}
#play-view .seat.acting .seat-box{border-color:#56ffd5;box-shadow:0 0 0 1px #48f7ca,0 0 24px #42f5cd44,inset 0 1px #b2ffe233;background:linear-gradient(125deg,#164b3f,#12302d 75%)}
#play-view .seat.acting .seat-avatar{border-color:#82ffe1;box-shadow:0 0 0 4px #15362f,0 0 24px #42f5cd88}
#play-view .seat.acting::before{position:absolute;bottom:calc(100% - 43px);left:75px;transform:none;content:'THINKING';color:#a8ffe5;font-size:7px;letter-spacing:1.3px;font-weight:800;white-space:nowrap;text-shadow:0 1px 5px #000;z-index:5}
#play-view .seat.self.acting::before{content:'YOUR TURN';bottom:calc(100% - 51px);left:87px}
#play-view .seat-timer{font-size:17px;font-weight:850;border-radius:20px;min-width:29px;padding:4px 5px;line-height:1;background:#65ffdb;color:#062e25;box-shadow:0 0 12px #42f5cd22}
#play-view .seat-timer.urgent{background:#ff8a9b;color:#480e24}
#play-view .seat.folded{opacity:.42;filter:saturate(.6)}
#play-view .seat:has(.seat-empty){display:grid;place-items:center;padding:0;min-height:80px}
#play-view .seat-empty{display:flex;align-items:center;justify-content:center;gap:10px;width:143px;min-height:51px;padding:9px 14px;border:1px dashed #c6a9e46b;border-radius:30px;background:linear-gradient(110deg,#202138b8,#171d2bb8);color:#bfb0d3;font-size:11px;box-shadow:0 4px 14px #0003}
#play-view .seat-empty::before{content:'+';display:grid;place-items:center;width:29px;height:29px;border:1px solid #9874b393;background:#32223f80;border-radius:50%;color:#c89fe8;font:300 22px/1 system-ui;flex:none}
/* Keep the seat hit target fixed at its edges, including while hovered. */
#play-view .seat-empty{transform:none;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
#play-view .seat-empty:hover:not(:disabled){border-color:var(--green);color:var(--green);background:#1e3f3c}
#play-view .dealer{right:-7px;bottom:10px;width:20px;height:20px;border:2px solid #1a1421;background:#eee8f3;color:#30263a;font-size:10px;z-index:5;box-shadow:0 3px 8px #0007}
#play-view .seat.winner .seat-box{border-color:#ffe3a1;background:linear-gradient(125deg,#4b3f2b,#29251f);box-shadow:0 0 0 1px #e9bf6a55,0 0 20px #e8be7630}
#play-view .seat.winner .seat-avatar{border-color:#ffdf92;box-shadow:0 0 0 4px #352b22,0 0 18px #ffd78244}
#play-view .seat-result{display:flex;gap:3px;margin:7px 0 0 -56px;padding:6px 4px 2px;width:calc(100% + 56px);border-top:1px solid #f8cc8433;border-radius:0;text-align:center;box-shadow:none}
#play-view .seat-result strong{font-size:10px}
#play-view .seat-result span{font-size:9px;color:#f6e3bc}
#play-view .seat-result small{font-size:8px;white-space:normal}
#play-view .card.winning-card{outline:2px solid #ffdd93;box-shadow:0 0 18px #ffd58988,0 3px 5px #0008}
#play-view .seat-cards .winning-card:first-child{transform:rotate(-11deg) translateY(-5px)}
#play-view .seat-cards .winning-card:last-child{transform:rotate(9deg) translate(-5px,-7px)}
#play-view .card.unused-card{opacity:.55}
/* Betting stays central; stack management, history and navigation live in Menu. */
#play-view .action-bar{max-width:850px;margin:0 auto;padding:14px 18px;border-radius:16px;background:linear-gradient(135deg,#232036ee,#131a29f5);border:1px solid #5c456b;box-shadow:0 7px 25px #0005,inset 0 1px #d7b0f512}
#play-view .your-hand{justify-content:center}
#play-view .your-hand .section-label{display:none}
#play-view #position{font-size:10px;color:#bcabc9}
#play-view .controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#play-view .controls> .deal-control{grid-column:1/-1;display:contents}
#play-view .deal-control #start{grid-column:1/-1;min-height:45px;width:100%}
#play-view .controls #fold,#play-view .controls #call,#play-view .controls #raise{min-height:48px;border-radius:10px;font-size:14px;font-weight:700}
#play-view .controls #fold{border-color:#d05c83;background:linear-gradient(140deg,#702d47,#301823);color:#ffd9e5}
#play-view .controls #call{background:linear-gradient(140deg,#453052,#201e31);border-color:#a57cc9}
#play-view .raise-sizing>label{font-size:9px;letter-spacing:.2px;margin:2px 0 7px}
#play-view .raise-editor{grid-template-columns:32px 100px 32px minmax(80px,1fr);gap:10px}
#play-view .raise-editor #raise-amount{font-size:16px;height:35px}
#play-view .raise-editor>button{min-height:35px}
#play-view .raise-presets .secondary{min-height:39px;background:linear-gradient(130deg,#24313a,#181d29);border-color:#425356;color:#c9e9df}
/* Native dialog menu: the same controls, with one place for secondary actions. */
.play-menu{inset:0 auto 0 0!important;margin:0!important;width:360px!important;max-width:90vw!important;height:100dvh!important;max-height:100dvh!important;padding:27px 23px 30px!important;border-radius:0 20px 20px 0!important;border:1px solid #6a4c7d!important;background:radial-gradient(ellipse at 0 0,#6e34833b,transparent 40%),linear-gradient(160deg,#1a1c2c,#0d1421)!important;overflow-y:auto}
.menu-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:750;letter-spacing:-.7px;margin:0 0 17px}
.menu-brand small{font-size:7px;color:#bd96df;letter-spacing:1px;margin-left:5px;border:1px solid #76518e;padding:3px 4px;border-radius:4px}
:is(.play-menu,.desktop-tools) #table-drawer-title{font-size:15px;letter-spacing:0;font-weight:500;color:#a797b9;margin:0 0 23px}
.menu-nav,.menu-links{display:grid!important;grid-template-columns:1fr;margin:0;padding:0;gap:6px;flex:none}
.menu-nav a,.menu-links a{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 12px;font-size:13px;border:1px solid transparent;border-radius:10px;color:#d5c8e4}
.menu-nav a:hover,.menu-links a:hover{background:#49325455;border-color:#9269a4;color:var(--green)}
.menu-nav a .live-dot{margin-left:auto;margin-right:0;width:5px;height:5px}
.menu-nav a[href="#tables"]{background:linear-gradient(110deg,#22524755,#63417855);border-color:#77608a}
.menu-funds{margin-top:20px;padding:19px 16px;background:linear-gradient(145deg,#1b3030,#1e2032);border:1px solid #415e59;border-radius:13px}
.menu-funds>.section-label{font-size:9px;color:#a5cebf}
.menu-funds #balance-status{font-size:11px;max-width:none;margin:10px 0 0;color:#f8cc84}
.menu-funds #wallet-balance{margin-top:11px}
.menu-funds .bank-actions{display:flex;align-items:center;gap:9px;margin-top:13px;flex-wrap:wrap}
.menu-funds .bank-actions button{flex:1;min-height:39px;padding:10px;font-size:12px}
.menu-funds #deposit{background:linear-gradient(130deg,#66ffda,#22dcb5);border-color:#70ffe0;color:#092f25;font-weight:750}
.menu-funds #cashout{border:1px solid #7a658b;background:#262337!important;color:#d7c5e7}
.menu-funds #menu-avatar{display:flex;align-items:center;justify-content:flex-start;gap:9px;font-size:11px;min-height:41px;padding:8px 10px;border-color:#5b496b;margin-top:15px}
#menu-avatar-image{border-radius:50%}
#menu-avatar>span{margin-left:auto;color:#b29bc7}
.menu-funds #disconnect{position:static;display:block;margin:13px auto 0;padding:6px 12px;min-height:28px;color:#a99ab9;font-size:10px}
.menu-funds #disconnect[hidden]{display:none}
.menu-tables{margin-top:25px}
.menu-tables>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;font-size:12px;font-weight:700;color:#dacbe7;cursor:pointer;min-height:38px}
.menu-tables>summary::after{content:'⌄';font-size:16px;color:#b591d1;margin-left:8px}
.menu-tables>summary .small{margin-left:auto;font-size:10px;font-weight:400}
:is(.play-menu,.desktop-tools) #desktop-table-nav{display:block!important}
:is(.play-menu,.desktop-tools) #table-navigation>.section-label{display:none}
:is(.play-menu,.desktop-tools) #lobby{display:flex;flex-direction:column;gap:9px;margin-top:10px}
:is(.play-menu,.desktop-tools) .lobby-table{display:block;width:100%;flex:none;padding:13px 15px;border-radius:12px;background:linear-gradient(120deg,#222033,#171d2b);border:1px solid #4b3a5d;min-height:80px}
:is(.play-menu,.desktop-tools) .lobby-table.selected{border-color:#55c9aa;background:linear-gradient(110deg,#17443b88,#3d295c88);box-shadow:inset 3px 0 #42f5cd,0 0 15px #42f5cd0b}
:is(.play-menu,.desktop-tools) .lobby-name{font-size:13px;margin-bottom:7px}
:is(.play-menu,.desktop-tools) .lobby-count{font-size:10px;color:var(--green)}
:is(.play-menu,.desktop-tools) .lobby-detail{font-size:10px;line-height:1.7;color:#a99ab9}
/* Card rows must shrink with the sidebar instead of setting its minimum width. */
:is(.play-menu,.desktop-tools) .table-insights{display:grid;grid-template-columns:minmax(0,1fr);width:auto;padding:0;margin:23px 0 0;gap:10px;background:none;border:0}
:is(.play-menu,.desktop-tools) .table-insights>*{width:100%;min-width:0;margin:0}
:is(.play-menu,.desktop-tools) .table-insights .insight-card,:is(.play-menu,.desktop-tools) .table-insights .history-panel{padding:14px 13px;background:#171e2b;border-color:#46374f;border-radius:11px}
:is(.play-menu,.desktop-tools) #hand-history{font-size:11px;max-height:290px;overflow:auto}
:is(.play-menu,.desktop-tools) .history-hand .card{width:27px;height:38px;display:inline-flex;padding:0;border:0;overflow:hidden;margin:3px 2px}
:is(.play-menu,.desktop-tools) .menu-links{margin-top:25px;padding-top:17px;border-top:1px solid #493b56}
.menu-links a{font-size:12px;padding:9px 4px;gap:10px}
.menu-links a .icon{width:20px;height:20px;color:#b28bd3}
.menu-links a>span{font-size:8px;color:#9e84b3;margin-left:auto;border:1px solid #624873;border-radius:4px;padding:3px 5px}
.menu-footer{display:flex;flex-direction:column;align-items:flex-start;gap:12px;border-top:1px solid #493b56;margin-top:18px;padding-top:20px}
.menu-footer .network{display:inline-block;font-size:8px;min-height:0}
.menu-footer #sidebar-status{font-size:9px;line-height:1.6;color:#9f8daf}
.menu-footer a{font-size:10px;color:#ba9bd4}
@media(max-width:1100px){body[data-view="play"] .site-header{padding:0 22px;gap:16px}#play-view .game{padding:15px 25px 20px}#play-view .arena{height:clamp(460px,calc(100svh - 330px),620px)}#play-view .seat{width:160px}#play-view .seat-box{padding-left:65px;padding-right:9px}#play-view .seat-avatar{width:62px;height:62px;top:48px;left:-2px}#play-view .seat-cards{left:65px}#play-view .seat.self{width:190px}#play-view .seat.self .seat-avatar{width:73px;height:73px;top:59px}#play-view .seat.self .seat-box{padding-left:77px}#play-view .seat.self .seat-cards{left:82px}#play-view .board .card{width:48px;height:67px}#play-view .board{min-height:67px}#play-view .seat-stack{font-size:16px}}
@media(max-width:760px){body[data-view="play"] .site-header{height:64px;padding:0 12px;gap:9px}body[data-view="play"] .menu-trigger{width:34px;height:36px;border-radius:9px}body[data-view="play"] .menu-trigger .icon{width:19px;height:19px}body[data-view="play"] .site-header .brand{font-size:21px;letter-spacing:-.7px;gap:5px}body[data-view="play"] .site-header .brand .brand-mark{width:25px;height:25px}body[data-view="play"] .site-header .brand-poker,body[data-view="play"] .site-header .brand-beta{display:none}body[data-view="play"] .header-right{gap:7px;min-width:0}body[data-view="play"] .header-bankroll:not([hidden]){min-height:37px;min-width:70px;padding:6px 13px 6px 9px;border-radius:9px}body[data-view="play"] .header-bankroll .section-label{font-size:6px;letter-spacing:.4px;white-space:nowrap}body[data-view="play"] .header-bankroll .balance{font-size:14px;letter-spacing:-.3px;margin-top:3px;max-width:95px;overflow:hidden;text-overflow:ellipsis}body[data-view="play"] .header-bankroll .balance-updated{display:none}body[data-view="play"] .balance-chevron{right:4px;top:12px;font-size:9px}body[data-view="play"] .wallet-controls #connect{font-size:9px;min-height:37px;max-width:103px;padding:8px 9px;border-radius:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body[data-view="play"] .header-bankroll .bankroll-heading{gap:0}#play-view{min-height:calc(100dvh - 64px)}#play-view .game{padding:11px 12px 15px}#play-view .table-heading{padding:0 4px;min-height:36px;gap:8px}#play-view .table-heading>div:first-child{gap:7px;align-items:center;display:block}#play-view .table-heading h1{font-size:15px;display:inline-block;margin-right:8px}#play-view .table-heading p{display:inline;font-size:8px}#play-view .table-heading .divider{padding:0 4px}#play-view .table-heading .hand-meta{display:flex;gap:5px;flex-direction:column;align-items:flex-end;font-size:8px}#play-view .table-heading #street{padding:3px 6px;border-radius:5px}#play-view .table-heading #hand{font-size:6px;letter-spacing:.8px}#play-view .arena{width:100%;height:clamp(380px,calc(100svh - 360px),525px);margin:4px auto 10px;max-width:560px}#play-view .felt{inset:24px 8% 24px;background-image:url('/poker/table-tall.svg')}#play-view .felt-inner{inset:46% 0 auto;transform:translateY(-50%);height:auto;padding:0!important}#play-view .felt-brand{font-size:10px;letter-spacing:2px;bottom:-33px}#play-view .pot-label{font-size:6px;gap:4px;letter-spacing:.9px}#play-view .pot-chips{height:18px;margin-right:5px}#play-view .pot-chips img{width:19px;height:19px;margin-right:-8px}#play-view .pot{font-size:22px;margin:5px 0 14px;letter-spacing:-.8px}#play-view .board{gap:4px;min-height:47px}#play-view .board .card{width:33px;height:46px;border-radius:3px}#play-view .table-message{font-size:7px;margin-top:11px;max-width:75%;line-height:1.6}#play-view .seat{width:107px;min-height:88px;padding-top:37px}#play-view .arena .seat-3{top:13%;left:50%}#play-view .arena .seat-0{top:85%;left:50%}#play-view .arena .seat-1{top:70%;left:14%}#play-view .arena .seat-2{top:30%;left:14%}#play-view .arena .seat-4{top:30%;left:86%}#play-view .arena .seat-5{top:70%;left:86%}#play-view .seat-avatar{width:48px;height:48px;top:36px;left:-2px;border-width:2px;box-shadow:0 0 0 3px #151923,0 4px 11px #0008}#play-view .seat-box{min-height:47px;padding:8px 5px 7px 50px;border-radius:24px 9px 9px 24px}#play-view .seat-heading{min-height:11px;gap:2px;margin-bottom:3px}#play-view .seat-heading .seat-name{font-size:7px;letter-spacing:0;max-width:none}#play-view .seat-stack{font-size:11px;letter-spacing:-.3px}#play-view .seat-status{font-size:6px;line-height:1.3;margin-top:4px}#play-view .seat-cards{left:47px;height:39px;bottom:calc(100% - 2px)}#play-view .seat-cards .card{width:27px;height:38px;border-radius:3px}#play-view .seat.self{width:152px;min-height:116px;padding-top:51px}#play-view .seat.self .seat-avatar{width:61px;height:61px;top:48px;border-width:2px;left:0;box-shadow:0 0 0 3px #102125,0 0 18px #42f5cd22}#play-view .seat.self .seat-box{min-height:56px;padding:9px 8px 9px 67px;border-radius:29px 10px 10px 29px}#play-view .seat.self .seat-cards{left:63px;height:53px}#play-view .seat.self .seat-cards .card{width:37px;height:52px}#play-view .seat.self .seat-heading .seat-name{font-size:8px;letter-spacing:.5px}#play-view .seat.self .seat-stack{font-size:16px}#play-view .seat-timer{font-size:13px;min-width:23px;padding:3px 4px}#play-view .seat.self .seat-timer{font-size:16px;min-width:28px}#play-view .seat.acting::before{font-size:6px;bottom:calc(100% - 30px);left:49px;letter-spacing:.5px}#play-view .seat.self.acting::before{bottom:calc(100% - 44px);left:67px;font-size:6px;letter-spacing:1px}#play-view .seat-avatar-edit::after{width:15px;height:15px;font-size:9px;right:-2px;bottom:-1px}#play-view .seat:has(.seat-empty){min-height:55px;padding:0}#play-view .seat-empty{min-height:37px;width:98px;padding:6px 7px;gap:5px;font-size:8px}#play-view .seat-empty::before{width:20px;height:20px;font-size:17px}#play-view .dealer{width:15px;height:15px;font-size:7px;right:-5px;bottom:7px;border-width:1px}#play-view .seat-result{margin:5px 0 0 -41px;width:calc(100% + 41px);padding:5px 0 1px;gap:2px}#play-view .seat-result strong,#play-view .seat-result span{font-size:7px}#play-view .seat-result small{font-size:6px}#play-view .arena.has-result{height:clamp(410px,calc(100svh - 315px),550px)}#play-view .arena.has-result .felt-inner{padding:0!important}#play-view .action-bar{padding:10px 11px;border-radius:13px;gap:7px;max-width:560px}#play-view #position{font-size:8px}#play-view .controls{gap:7px}#play-view .controls #fold,#play-view .controls #call,#play-view .controls #raise{min-height:44px;font-size:12px;border-radius:8px}#play-view .raise-sizing>label{font-size:8px;margin:0 0 5px}#play-view .raise-editor{grid-template-columns:28px 80px 28px minmax(45px,1fr);gap:8px}#play-view .raise-editor #raise-amount{font-size:16px;height:34px}#play-view .raise-editor>button{min-height:33px;font-size:16px}#play-view .raise-presets{gap:6px}#play-view .raise-presets .secondary{min-height:36px;font-size:8px;padding:6px 2px}#play-view .raise-presets small{font-size:8px}.play-menu{padding:25px 21px!important;width:340px!important;max-width:91vw!important}:is(.play-menu,.desktop-tools) .menu-brand{font-size:21px}:is(.play-menu,.desktop-tools) #table-drawer-title{font-size:14px}:is(.play-menu,.desktop-tools) .bank-actions{display:flex;grid-column:auto;grid-row:auto;align-self:auto}:is(.play-menu,.desktop-tools) .bank-actions button{font-size:11px}:is(.play-menu,.desktop-tools) .table-insights .insight-card,:is(.play-menu,.desktop-tools) .table-insights .history-panel{padding:14px}:is(.play-menu,.desktop-tools) .insight-card summary,:is(.play-menu,.desktop-tools) .history-panel summary{font-size:11px}:is(.play-menu,.desktop-tools) .insight-card dl>div,:is(.play-menu,.desktop-tools) .insight-card dd{font-size:10px}}
@media(max-width:359px){body[data-view="play"] .site-header{padding:0 9px;gap:7px}body[data-view="play"] .menu-trigger{width:30px;height:34px}body[data-view="play"] .site-header .brand{font-size:19px;gap:4px}body[data-view="play"] .site-header .brand .brand-mark{width:22px;height:22px}body[data-view="play"] .header-right{gap:5px}body[data-view="play"] .wallet-controls #connect{font-size:8px;max-width:88px;padding:7px}body[data-view="play"] .header-bankroll:not([hidden]){min-width:61px;padding:5px 11px 5px 7px}body[data-view="play"] .header-bankroll .balance{font-size:13px;max-width:74px}body[data-view="play"] .header-bankroll .section-label{font-size:5px}#play-view .seat{width:91px}#play-view .seat-avatar{width:42px;height:42px;top:37px}#play-view .seat-box{padding-left:43px;min-height:44px}#play-view .seat-stack{font-size:10px}#play-view .seat-heading .seat-name{font-size:6px}#play-view .seat-cards{left:40px;height:34px}#play-view .seat-cards .card{width:23px;height:33px}#play-view .arena .seat-1,#play-view .arena .seat-2{left:12%}#play-view .arena .seat-4,#play-view .arena .seat-5{left:88%}#play-view .seat.self{width:143px}#play-view .seat.self .seat-avatar{width:57px;height:57px}#play-view .seat.self .seat-box{padding-left:62px}#play-view .seat.self .seat-cards{left:61px}#play-view .board{gap:3px;min-height:40px}#play-view .board .card{width:29px;height:40px}#play-view .pot{font-size:21px}#play-view .seat-empty{width:86px;font-size:7px;gap:4px}#play-view .seat-empty::before{width:17px;height:17px}#play-view .table-heading p{font-size:7px}#play-view .table-heading h1{font-size:14px}#play-view .table-heading .hand-meta{font-size:7px}#play-view .raise-editor{grid-template-columns:25px 70px 25px minmax(40px,1fr);gap:7px}}

/* A real scanned CC0 felt adds material detail without competing with the cards. */
#play-view .felt::after{content:"";position:absolute;inset:6% 5%;border-radius:999px;background:url('/poker/felt-grey.jpg') center/360px;opacity:.18;mix-blend-mode:soft-light;pointer-events:none}
#play-view .felt-inner{z-index:1}
#play-view .seat.acting::before,#play-view .seat.self.acting::before{top:-17px;bottom:auto;left:68%;transform:translateX(-50%)}
@media(max-width:760px){#play-view .dealer{right:0}#play-view .seat.acting::before,#play-view .seat.self.acting::before{top:-13px;bottom:auto;left:68%}#play-view .felt::after{inset:5% 6%;background-size:280px}}

.menu-funds-heading{display:flex;align-items:center;gap:8px}.menu-funds-heading .section-label{color:#a5cebf;font-size:9px}.menu-funds-heading time{color:#94b9a9;font-size:9px}#menu-balance{display:block;font-size:28px;line-height:1.25;color:#d6fff0;letter-spacing:-.7px;margin:8px 0 3px}
.avatar-dialog{width:500px}.avatar-choice{border-radius:13px;background:linear-gradient(140deg,#34253f,#171e2c);border-color:#5a426d}.avatar-choice img{box-shadow:0 0 0 2px #725382,0 4px 10px #0005}.avatar-choice[aria-pressed="true"]{border-color:#6bffd6;background:#174639}.avatar-choice[aria-pressed="true"] img{box-shadow:0 0 0 2px #7effdc,0 0 15px #42f5cd22}
@media(max-width:760px){body[data-view="play"] .header-bankroll .balance-updated{display:inline;font-size:5px;color:#9ac1b0}body[data-view="play"] .header-bankroll .section-label{font-size:5px}body[data-view="play"] .header-bankroll .bankroll-heading{gap:3px}}
@media(max-width:760px){#play-view .seat.winner .seat-result strong{font-size:9px}#play-view .seat.self .seat-result strong{font-size:10px}#play-view .seat.self .seat-result span{font-size:9px}}

.card>svg{display:block;width:100%;height:100%;flex:none;border-radius:inherit;pointer-events:none}

/* Wide windows keep the most-used information visible beside the table. */
.desktop-dock{display:none}
@media(min-width:1180px){
  #play-view{display:grid;grid-template-columns:clamp(198px,16vw,232px) minmax(0,1fr) clamp(224px,18vw,274px);align-items:start;gap:18px;padding:20px;max-width:1920px;margin:0 auto;min-height:calc(100dvh - 76px)}
  #play-view .game{min-width:0;width:100%;max-width:none;padding:0;margin:0}
  #play-view .desktop-dock:not([hidden]){position:sticky;top:18px;display:flex;flex-direction:column;gap:0;width:auto;min-width:0;max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#60496f transparent;padding:0 3px 8px;border:0;border-radius:0;background:none;flex:none}
  .desktop-tools .menu-nav{gap:5px}
  .desktop-tools .menu-nav a{min-height:37px;font-size:11px;padding:9px 11px;gap:9px}
  .desktop-tools .menu-nav .icon{width:18px;height:18px}
  .desktop-tools .menu-funds{margin-top:13px;padding:14px 12px;border-radius:12px}
  .desktop-tools .menu-funds-heading{flex-wrap:wrap;gap:5px}
  .desktop-tools .menu-funds-heading .section-label{font-size:8px;letter-spacing:.7px}
  .desktop-tools .menu-funds-heading time{font-size:8px}
  .desktop-tools #menu-balance{font-size:25px;margin-top:6px}
  .desktop-tools .menu-funds>.muted.small{font-size:9px}
  .desktop-tools .menu-funds #wallet-balance{font-size:9px;margin-top:8px}
  .desktop-tools .menu-funds .bank-actions{gap:6px;margin-top:11px}
  .desktop-tools .menu-funds .bank-actions button{font-size:10px;min-height:35px;padding:8px 6px}
  .desktop-tools .menu-funds #menu-avatar{padding:7px;font-size:10px;gap:7px;margin-top:11px;min-height:38px}
  .desktop-tools #menu-avatar-image{width:24px;height:24px}
  .desktop-tools .menu-funds #disconnect{font-size:9px;margin-top:7px;min-height:25px}
  .desktop-tools .menu-tables{margin-top:0}
  .desktop-tools .menu-tables>summary{font-size:11px;flex-wrap:wrap;gap:5px;padding:0 2px}
  .desktop-tools .menu-tables>summary #mobile-table-name{display:none}
  .desktop-tools .menu-tables>summary::after{margin-left:auto}
  .desktop-tools #lobby{gap:8px;margin-top:8px}
  .desktop-tools .lobby-table{padding:11px 12px;min-height:74px}
  .desktop-tools .lobby-name{font-size:12px;margin-bottom:6px}
  .desktop-tools .lobby-detail{font-size:9px}
  .desktop-tools .table-insights{padding:0;margin:0;gap:13px}
  .desktop-tools .table-insights .insight-card,.desktop-tools .table-insights .history-panel{padding:16px 13px;border-radius:12px;background:linear-gradient(135deg,#202032,#131b28);border-color:#4b3b58}
  .desktop-tools .insight-card summary,.desktop-tools .history-panel summary{font-size:11px}
  .desktop-tools .insight-card dl>div,.desktop-tools .insight-card dd{font-size:10px}
  .desktop-tools #hand-history{font-size:10px;max-height:340px;overflow-y:auto;line-height:1.7}
  #play-view .table-heading{padding:0 7px;min-height:44px}
  #play-view .table-heading h1{font-size:19px}
  #play-view .table-heading>div:first-child{gap:11px}
  #play-view .table-heading p{font-size:9px}
  #play-view .table-heading .hand-meta{gap:7px;font-size:9px}
  #play-view .table-heading #hand{font-size:8px;letter-spacing:.7px}
  #play-view .arena{height:clamp(420px,calc(100svh - 380px),620px);margin:4px auto 17px}
  #play-view .action-bar{padding:12px 13px;border-radius:13px}
  #play-view .controls #fold,#play-view .controls #call,#play-view .controls #raise{min-height:44px;font-size:13px}
  #play-view .raise-presets .secondary{font-size:9px;min-height:37px}
  #play-view .raise-editor{grid-template-columns:29px 90px 29px minmax(60px,1fr);gap:8px}
}
@media(min-width:1180px) and (max-width:1535px){
  #play-view .seat{width:146px;min-height:109px;padding-top:43px}
  #play-view .seat-avatar{width:59px;height:59px;top:41px;left:-2px}
  #play-view .seat-box{padding:10px 8px 9px 62px;min-height:57px;border-radius:29px 11px 11px 29px}
  #play-view .seat-heading .seat-name{font-size:8px}
  #play-view .seat-stack{font-size:15px}
  #play-view .seat-cards{left:60px;height:47px}
  #play-view .seat-cards .card{width:32px;height:45px}
  #play-view .seat.self{width:181px;min-height:131px;padding-top:55px}
  #play-view .seat.self .seat-avatar{width:69px;height:69px;top:50px}
  #play-view .seat.self .seat-box{padding-left:74px;min-height:63px}
  #play-view .seat.self .seat-cards{left:78px;height:59px}
  #play-view .seat.self .seat-cards .card{width:42px;height:59px}
  #play-view .seat.self .seat-stack{font-size:19px}
  #play-view .board{gap:6px;min-height:65px}
  #play-view .board .card{width:46px;height:64px}
  #play-view .pot{font-size:25px;margin-bottom:16px}
  #play-view .table-message{font-size:9px;margin-top:12px}
  #play-view .seat-empty{width:125px;font-size:10px;gap:7px;padding:8px 10px}
  #play-view .seat-empty::before{width:25px;height:25px}
  #play-view .seat-result strong{font-size:9px}
  #play-view .seat-result span{font-size:8px}
}

/* Match the texture to the artwork's actual felt, including letterboxing. */
#play-view .felt::after{inset:0;border-radius:0;--felt-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='520' viewBox='0 0 1000 520' preserveAspectRatio='none'%3E%3Crect x='30' y='30' width='940' height='460' rx='230' fill='white'/%3E%3C/svg%3E");-webkit-mask-image:var(--felt-mask);mask-image:var(--felt-mask);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
@media(max-width:760px){#play-view .felt::after{inset:0;--felt-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='620' viewBox='0 0 420 620'%3E%3Crect x='28' y='28' width='364' height='564' rx='182' fill='white'/%3E%3C/svg%3E")}}
@media(min-width:1180px){.desktop-tools #menu-balance,.desktop-tools .menu-funds>div.muted.small:not(#wallet-balance){display:none}}

/* Funding stays in a dialog, independent of the responsive table sidebars. */
.funds-dialog-balance{display:block;font-size:38px;line-height:1.2;color:var(--green);margin-top:20px;letter-spacing:-1px}
#bankroll-dialog .deposit-choice{align-items:flex-start;text-align:left;gap:8px}
#bankroll-dialog .deposit-choice>span{font-size:12px;color:#c5b9d6}
#deposit-connect-prompt .primary{margin-top:14px}

/* Desktop navigation follows the homepage; secondary destinations sit below play. */
@media(min-width:761px){
  body[data-view="play"] .menu-trigger{display:none}
  body[data-view="play"] .main-nav{display:flex}
  body[data-view="play"] .site-header{gap:22px}
  body[data-view="play"] .main-nav a{padding:10px 12px}
  #play-view .desktop-dock:not([hidden]){display:flex;flex-direction:column;min-width:0;padding:0 3px 8px}
  .desktop-game-footer:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;margin:0 auto;padding:25px 28px;max-width:1880px;border-top:1px solid #3c304b}
  .desktop-game-footer .menu-links{display:flex!important;flex-wrap:wrap;gap:14px;margin:0;padding:0;border:0}
  .desktop-game-footer .menu-links a{min-height:40px;padding:10px 14px;gap:10px;font-size:11px}
  .desktop-game-footer .menu-links a[href="#tournaments"],.desktop-game-footer .menu-links a[href="#rewards"]{display:none}
  .desktop-game-footer .menu-links .icon{width:16px;height:16px}
  .desktop-game-footer .menu-links a>span{margin-left:2px;padding:4px 8px;border-radius:5px;font-size:8px;line-height:1.4;white-space:nowrap}
  .desktop-game-footer .menu-footer{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:0;padding:0;border:0}
  .desktop-game-footer #sidebar-status{max-width:260px}
}
@media(min-width:761px) and (max-width:1179px){
  body[data-view="play"] .site-header{height:auto;min-height:114px;flex-wrap:wrap;gap:8px 18px;padding:14px 22px 8px}
  body[data-view="play"] .main-nav{order:3;flex:1 0 100%;justify-content:center}
  body[data-view="play"] .main-nav a{padding:8px 16px}
  #play-view{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:18px 22px}
  #play-view .game{grid-column:1/-1;grid-row:1;width:100%;padding:0;min-width:0}
  #play-view .desktop-dock:not([hidden]){position:static;width:auto;max-width:none;max-height:none;overflow:visible;border:0;background:none;align-self:start}
  .desktop-tools .menu-funds{margin-top:0}
  .desktop-tools .table-insights{margin-top:0}
}

.bankroll-wallet-details{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}
.bankroll-wallet-details:empty{display:none}
#bankroll-dialog #wallet-balance{flex:1 1 100%;margin:0}
#bankroll-dialog #disconnect{position:static;font-size:11px;min-height:32px;padding:6px 0;color:#c8afd9}

/* Studio artwork supplies the materials, lighting and cast shadows. */
body[data-view="play"]{--play-control-height:48px;background:#090c16 url('/poker/lounge-scene-v1.webp') center top/cover fixed no-repeat}
body[data-view="play"] .site-header{align-items:center;background:#0b0e19ed}
body[data-view="play"] .site-header :is(.menu-trigger,.header-bankroll:not([hidden]),.wallet-controls #connect){box-sizing:border-box;height:var(--play-control-height);min-height:var(--play-control-height);max-height:var(--play-control-height);align-self:center;margin-block:0}
body[data-view="play"] .header-right{height:var(--play-control-height);align-items:center}
body[data-view="play"] .wallet-controls{display:flex;align-items:center;height:100%}
body[data-view="play"] .header-bankroll:not([hidden]){padding:5px 28px 5px 13px;justify-content:center}
body[data-view="play"] .header-bankroll .bankroll-heading{align-items:center;line-height:9px}
body[data-view="play"] .header-bankroll .section-label{line-height:9px}
body[data-view="play"] .header-bankroll .balance{font-size:20px;line-height:22px;margin:2px 0 0}
body[data-view="play"] .header-bankroll .balance-chevron{top:50%;transform:translateY(-50%)}
body[data-view="play"] .wallet-controls #connect{display:flex;align-items:center;justify-content:center;padding-block:8px}
body[data-view="play"] .main-nav a{display:flex;align-items:center;justify-content:center;min-height:48px}
#play-view{background:transparent}
#play-view .ambient{display:none}
#play-view .felt{background-image:url('/poker/table-studio-wide-v1.webp');background-size:100% 100%}
#play-view .felt::after{display:none}
#play-view .seat:not(:has(.seat-empty))::after{content:"";position:absolute;left:-19%;right:-19%;height:110px;bottom:-30px;background:url('/poker/player-contact-shadow-v1.webp') center/100% 100% no-repeat;opacity:.48;pointer-events:none;z-index:-1}
#play-view .seat-box{box-shadow:none;background:#121621 url('/poker/obsidian-panel-v1.webp') center/cover}
#play-view .seat.self .seat-box,#play-view .seat.acting .seat-box{background:#153930 url('/poker/obsidian-panel-v1.webp') center/cover;background-blend-mode:soft-light;box-shadow:none}
#play-view .seat.winner .seat-box{background:#3a3121 url('/poker/obsidian-panel-v1.webp') center/cover;background-blend-mode:soft-light;box-shadow:none}
#play-view .action-bar{background:#131623 url('/poker/obsidian-panel-v1.webp') center/cover;border-color:#69608080}
#play-view .desktop-left:not([hidden]){padding:12px 10px;background:#0e111e url('/poker/obsidian-panel-v1.webp') center/cover;border:1px solid #64577160;border-radius:16px}
#play-view .desktop-right:not([hidden]){padding:0;gap:13px;background:none;border:0;border-radius:0;box-shadow:none}
#play-view .desktop-right>.table-insights{margin:0;gap:13px}
#play-view .desktop-tools .menu-tables{margin-top:0}
#play-view .desktop-tools .menu-tables>summary{height:44px;min-height:44px;padding:0 3px}
#play-view .desktop-tools .lobby-table{height:88px;min-height:88px;padding:12px;background:#141724 url('/poker/obsidian-panel-v1.webp') center/cover;border-color:#62547280;box-shadow:none}
#play-view .desktop-tools .lobby-table.selected{background:#163e35 url('/poker/obsidian-panel-v1.webp') center/cover;background-blend-mode:soft-light;border-color:#69e1c1;box-shadow:inset 3px 0 #61ecc5}
#play-view .desktop-tools .table-insights :is(.insight-card,.history-panel){background:#121521 url('/poker/obsidian-panel-v1.webp') center/cover;border-color:#62547280}
body[data-view="play"] .desktop-game-footer{background:#090d17cc}
@media(min-width:761px) and (max-width:1179px){body[data-view="play"] .main-nav a{min-height:40px}}
@media(max-width:760px){
  body[data-view="play"]{--play-control-height:44px;background-position:42% top}
  body[data-view="play"] .site-header{height:68px}
  body[data-view="play"] .header-bankroll:not([hidden]){padding:5px 14px 5px 8px}
  body[data-view="play"] .header-bankroll .balance{font-size:15px;line-height:17px;margin-top:2px}
  body[data-view="play"] .header-bankroll .section-label{font-size:6px;line-height:8px}
  body[data-view="play"] .header-bankroll .balance-updated{font-size:5px;line-height:8px}
  body[data-view="play"] .menu-trigger{width:36px}
  #play-view .felt{background-image:url('/poker/table-studio-tall-v1.webp')}
  #play-view .seat:not(:has(.seat-empty))::after{height:80px;bottom:-25px}
  .play-menu{background-image:url('/poker/obsidian-panel-v1.webp')!important;background-color:#101420!important;background-size:cover!important}
}

#play-view :is(.seat-box,.action-bar,.desktop-left:not([hidden])){background-blend-mode:soft-light}
#play-view .desktop-tools :is(.lobby-table,.insight-card,.history-panel){background-blend-mode:soft-light}
@media(max-width:760px){
  #play-view .arena :is(.seat-1,.seat-2)::after{left:0;right:-10%}
  #play-view .arena :is(.seat-4,.seat-5)::after{left:-10%;right:0}
}
@media(max-width:359px){
  #play-view .arena :is(.seat-1,.seat-2){left:14%}
  #play-view .arena :is(.seat-4,.seat-5){left:86%}
}

/* Clear the pot label with the whole top player unit, including winner rows.
   Reserve room above the table so lifted cards never cover the table heading. */
#play-view .arena{margin-top:var(--top-seat-headroom,0px)}
#play-view .arena .seat-3{transform:translate(-50%,calc(-50% - var(--top-seat-lift,0px)))!important}

/* Let the bottom player's status/results expand without covering the controls. */
#play-view .arena{margin-bottom:calc(12px + var(--bottom-seat-clearance,0px))}
@media(min-width:1180px){#play-view .arena{margin-bottom:calc(17px + var(--bottom-seat-clearance,0px))}}
@media(max-width:760px){#play-view .arena{margin-bottom:calc(10px + var(--bottom-seat-clearance,0px))}}

/* Point empty-bankroll players to the existing deposit entry point. */
#header-bankroll.deposit-hint{outline:2px solid var(--green);outline-offset:4px;box-shadow:0 0 0 4px #42f5cd26,0 0 28px #42f5cd55;animation:bankroll-deposit-pulse 1.1s ease-in-out 3}
@keyframes bankroll-deposit-pulse{
  0%,100%{outline-color:#42f5cd99;box-shadow:0 0 0 3px #42f5cd19,0 0 16px #42f5cd33}
  50%{outline-color:#a2ffe7;box-shadow:0 0 0 6px #42f5cd33,0 0 32px #42f5cd77}
}
@media(prefers-reduced-motion:reduce){#header-bankroll.deposit-hint{animation:none}}

/* Licensed chip faces form persistent piles; only confirmed transfers move. */
#play-view .arena,#play-view .arena.has-result{height:var(--table-stage-height,680px);min-height:0}
#play-view .seat-cards.reserved-cards{visibility:hidden}
.table-chip-layer,.chip-motion-layer{position:absolute;inset:0;pointer-events:none;z-index:2}
.chip-motion-layer{z-index:6}
.player-chip-pile{--chip-diameter:32px;--chip-rise:2.6px;--chip-step:18px;position:absolute;width:calc(var(--chip-diameter) + (var(--chip-columns) - 1)*var(--chip-step));height:calc(var(--chip-diameter)*var(--chip-face-squash,.62) + (var(--chip-high) - 1)*var(--chip-rise));pointer-events:none;filter:drop-shadow(0 3px 3px #0008)}
.player-chip-pile .chip-stack{position:absolute;left:calc(var(--chip-column)*var(--chip-step));bottom:0;width:var(--chip-diameter);height:100%}
.player-chip-pile img{position:absolute;left:0;bottom:calc(var(--chip-tier)*var(--chip-rise));width:var(--chip-diameter);height:var(--chip-diameter);transform:scaleY(var(--chip-face-squash,.62));transform-origin:center bottom;filter:drop-shadow(0 2px .7px #051b24b3)}
.player-chip-pile[data-empty="true"] .chip-stack{visibility:hidden}
.chip-flight{position:absolute;left:0;top:0;width:24px;height:24px;will-change:transform,opacity;pointer-events:none}
.chip-flight img{position:absolute;width:22px;height:22px;left:0;top:0;transform:scaleY(.7);filter:drop-shadow(0 2px 2px #0008)}
.chip-flight img:nth-child(2){left:3px;top:-3px}.chip-flight img:nth-child(3){left:-2px;top:-5px}
@media(max-width:760px){.player-chip-pile{--chip-diameter:23px;--chip-rise:1.9px;--chip-step:13px}}
@media(max-width:359px){.player-chip-pile{--chip-diameter:16px;--chip-rise:1.7px;--chip-step:8px}}

/* Tilt only the photographed table plane. Labels and cards remain upright. */
#play-view .arena{--chip-face-squash:.49}
#play-view .felt{--table-art:url('/poker/table-studio-wide-v1.webp');background:none}
#play-view .felt-art{position:absolute;inset:0;transform-origin:50% 50%;transform:perspective(var(--table-perspective,1200px)) rotateX(44deg) scale(.92);pointer-events:none;isolation:isolate}
#play-view .felt-art::before,#play-view .felt-art::after{content:"";position:absolute;inset:0;background:var(--table-art) center/100% 100% no-repeat}
#play-view .felt-art::before{transform:translateY(18px);filter:brightness(.3) drop-shadow(0 18px 16px #000a)}
#play-view .felt-art::after{filter:drop-shadow(0 5px 7px #0006)}
#play-view .felt-inner{inset:56% 0 auto}
#play-view .felt-brand{visibility:hidden}
#play-view .table-pot{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:16px;max-width:90%}
#play-view .table-pot .pot{margin:0;white-space:nowrap}
#play-view .arena .seat{--seat-depth:1;--seat-lift:0px;left:var(--seat-x,50%);top:var(--seat-y,50%);transform:translate(-50%,calc(0px - var(--seat-row-offset,80px) - var(--seat-lift))) scale(var(--seat-depth))!important;transform-origin:50% var(--seat-row-offset,80px);z-index:3}
#play-view .arena .seat-3{--seat-depth:.9;--seat-lift:var(--top-seat-lift,0px);z-index:2}
#play-view .arena :is(.seat-2,.seat-4){--seat-depth:.95;z-index:2}
#play-view .arena .seat-0{--seat-depth:1.04;z-index:4}
#play-view .arena :is(.seat-2,.seat-3,.seat-4)::after{opacity:.32}
#play-view .arena .seat-0::after{opacity:.62}
.player-chip-pile{--chip-diameter:calc(32px * var(--chip-depth,1));--chip-rise:calc(2.6px * var(--chip-depth,1));--chip-step:calc(18px * var(--chip-depth,1))}
@media(max-width:760px){
  #play-view .arena{--chip-face-squash:.59}
  #play-view .felt{--table-art:url('/poker/table-studio-tall-v1.webp')}
  #play-view .felt-art{transform:perspective(var(--table-perspective,1600px)) rotateX(22deg) scale(.97)}
  #play-view .felt-art::before{transform:translateY(10px);filter:brightness(.3) drop-shadow(0 12px 12px #0009)}
  #play-view .felt-inner{inset:48% 0 auto}
  #play-view .table-pot{gap:7px;margin-bottom:13px;flex-wrap:wrap;row-gap:5px;max-width:85%}
  #play-view .arena .seat-3{--seat-depth:.95}
  #play-view .arena :is(.seat-2,.seat-4){--seat-depth:.98}
  #play-view .arena .seat-0{--seat-depth:1.02}
  .player-chip-pile{--chip-diameter:calc(23px * var(--chip-depth,1));--chip-rise:calc(1.9px * var(--chip-depth,1));--chip-step:calc(13px * var(--chip-depth,1))}
  .chip-flight{width:20px;height:20px}
  .chip-flight img{width:18px;height:18px}
}
@media(max-width:359px){.player-chip-pile{--chip-diameter:calc(16px * var(--chip-depth,1));--chip-rise:calc(1.7px * var(--chip-depth,1));--chip-step:calc(8px * var(--chip-depth,1))}}
