:root{color-scheme:dark;font-family:system-ui,sans-serif;color:#f5eacb;background:#091710}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#243b29,#091710 70%);min-height:100vh;min-height:100dvh}main{max-width:540px;margin:auto;padding:12px 12px 24px}.brand{text-align:center;color:#daba70;font-weight:800;letter-spacing:2px;margin:6px 0 14px}.brand span{font-weight:400}.brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:7px;color:#aabaac}h1{font-size:30px;line-height:1.3}h2{font-size:20px}section,details{background:#14251d;border:1px solid #72603c;border-radius:16px;padding:14px;margin:12px 0}label{display:block;font-size:13px;color:#bccaaf;margin:8px 0}input,select{font:inherit;color:#fff;width:100%;padding:12px;margin:6px 0;background:#0a1911;border:1px solid #6d634b;border-radius:8px;min-width:0}button{min-height:44px;cursor:pointer;padding:10px 14px;border:1px solid #b69a5b;background:#cead65;color:#192018;border-radius:10px;font:600 14px system-ui;margin:4px 3px;touch-action:manipulation}button:disabled{opacity:.5}.danger{background:#692e2b;color:#fff}.actions{display:flex;flex-wrap:wrap;gap:4px}.actions button{flex:1}header,.pair{display:flex;justify-content:space-between;gap:12px}.pair>*{min-width:0;flex:1}header{font-size:13px;align-items:center}header b{overflow-wrap:break-word;min-width:0}header span{white-space:nowrap}.meta{font-size:11px;color:#bacaad;margin:10px 0}.seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.seat{border:1px solid #345744;background:#142c20;border-radius:12px;padding:6px 10px;min-height:62px;position:relative;overflow:hidden}.seat b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;max-width:100%}.seat span,.seat small{display:block;font-size:11px;color:#bdcbbb}.seat.active{border:2px solid #ffce6e;padding:5px 9px;background:#30412a}.miniCards{font-size:12px}.miniCards .card{font-size:13px;min-width:23px;padding:2px}.felt{border:6px solid #3a2d1a;border-radius:32px;padding:10px 5px;margin:10px 0;text-align:center;background:radial-gradient(ellipse,#286442,#153f29);box-shadow:inset 0 0 0 1px #ab9056}.dealer{font-size:11px;letter-spacing:1px;color:#e0c687}.pot{font-weight:800;font-size:20px;margin:8px 0}.board{display:flex;justify-content:center;gap:4px;flex-wrap:nowrap;margin:10px 0;min-height:46px;align-items:center}.card{display:inline-flex!important;align-items:center;justify-content:center;color:#172b24!important;background:#f6f1dd;border-radius:5px;min-width:38px;padding:10px 5px;font-weight:750;font-size:22px!important;box-shadow:0 2px 3px #0005}.card.red{color:#b23834!important}.miniCards .card{min-width:22px;font-size:12px!important;padding:3px}.muted{color:#b6c2b0;font-size:13px;line-height:1.5}summary{cursor:pointer;min-height:32px}.messages{max-height:200px;overflow:auto;overflow-wrap:break-word;overflow-wrap:anywhere;font-size:13px}#notice{color:#e3c483;min-height:24px;font-size:13px;margin:12px 0;overflow-wrap:break-word;overflow-wrap:anywhere}.myzone{margin-top:8px;border-color:#b69a5b}.myzone .pair{font-size:13px}#countdown{text-align:right;color:#ffcf75}.recovery{border-color:#ffcf75;background:#493b20}.recovery p{font-size:13px}@media(max-width:350px){main{padding:8px}.card{min-width:33px;font-size:19px!important}.seat{padding:6px}.actions button{padding:10px 8px}section{padding:10px}}
.miniCards .cardback{display:inline-flex;align-items:center;justify-content:center;width:22px;height:26px;margin:3px 3px 0 0;border:1px solid #b69a5b;border-radius:4px;background:repeating-linear-gradient(45deg,#173d2b,#173d2b 3px,#204d36 3px,#204d36 6px);color:#e3c483;font-size:15px;box-shadow:0 1px 2px #0005}

.at-table main{max-width:1200px;padding:4px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))}
.at-table .brand{position:absolute;top:8px;left:50%;transform:translateX(-50%);font-size:11px;pointer-events:none;white-space:nowrap}
.at-table .brand small{display:none}.at-table header{height:26px;font-size:11px}.at-table header b{max-width:28%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.table-meta{display:flex;gap:18px;justify-content:center;font-size:11px;color:#bfceb9;height:22px;align-items:center}
.table-scene{position:relative;height:calc(100vh - 130px);height:calc(100dvh - 130px);min-height:245px;max-height:650px;margin:0 8px}
.table-rail{position:absolute;inset:15% 10% 9%;border:12px solid #49372a;border-radius:50%;background:radial-gradient(ellipse,#286b4e,#12472f 75%);box-shadow:0 8px 20px #0009,inset 0 0 0 2px #b28a50,0 0 0 2px #936943}
.table-rail:after{content:'';position:absolute;inset:12px;border:1px solid #e4c88430;border-radius:50%}
.table-seat{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;gap:5px;width:150px;z-index:2;padding:4px;border-radius:14px;background:linear-gradient(140deg,#20312be8,#0c1b17f5);border:1px solid #68816c;box-shadow:0 4px 9px #0007}
.table-seat.active{border:2px solid #f7d481;box-shadow:0 0 15px #f5bf4544}.table-seat.winning{border-color:#ffe097;background:#42402b}.table-seat.folded .person,.table-seat.folded .seat-cards{opacity:.45}
.person{position:relative;flex-shrink:0;width:39px}.avatar{width:100%;display:block;background:linear-gradient(#263f3a,#112821);border-radius:22px 22px 8px 8px}
.position-badge{position:absolute;bottom:-3px;left:0;background:#e3cf99;color:#20271c;font-size:8px;border-radius:8px;padding:0 4px;white-space:nowrap}.position-badge:empty{display:none}
.seat-info{min-width:0;flex:1}.seat-info b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat-info .stack{display:block;color:#fff1b8;font-size:12px;font-weight:700}.seat-info small{display:block;font-size:8px;white-space:nowrap;color:#c6d7c7}
.chips{height:21px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.seat-info .chips{justify-content:flex-start;height:18px}.chip-pile{position:relative;display:inline-block;width:18px;height:20px;--chip:#e0d9bd}.chip-pile i{position:absolute;width:18px;height:8px;border-radius:50%;background:var(--chip);border:2px dashed #fff8;box-shadow:0 2px 0 #000a}.color-0{--chip:#986caf}.color-1{--chip:#304151}.color-2{--chip:#bb4f47}.color-3{--chip:#447ca5}.color-4{--chip:#ddd8c4}.empty-chips{color:#788675}
.seat-cards{position:absolute;display:flex;gap:3px;top:100%;left:50%;transform:translateX(-50%);padding-top:3px}.playing-card{display:inline-flex;flex-shrink:0;position:relative;width:40px;height:54px;border-radius:5px;background:#fffaeb;box-shadow:0 3px 5px #0006;color:#192c28;padding:4px;line-height:1;font-weight:800}.playing-card.red{color:#bb343f}.playing-card>span{font-size:17px;display:block}.playing-card small{display:block;font-size:14px;margin-top:2px}.playing-card strong{position:absolute;bottom:4px;right:4px;font-size:25px}.card-back{display:inline-flex;width:24px;height:31px;align-items:center;justify-content:center;border:1px solid #d8be83;border-radius:4px;background:repeating-linear-gradient(45deg,#213d53,#213d53 3px,#2e4d60 3px,#2e4d60 5px);color:#ddc99a}
.seat-cards .playing-card{width:29px;height:39px;padding:3px}.seat-cards .playing-card>span{font-size:13px}.seat-cards .playing-card small{font-size:10px}.seat-cards .playing-card strong{font-size:17px}
.top-seat .seat-cards{left:100%;top:50%;transform:translateY(-50%);padding:0 0 0 5px}
.chip-0{bottom:0}.chip-1{bottom:3px}.chip-2{bottom:6px}.chip-3{bottom:9px}.chip-4{bottom:12px}
[data-position$="-0"]{--x:50%;--y:83%}
[data-position="small-1"]{--x:12%;--y:42%}[data-position="small-2"]{--x:50%;--y:13%}[data-position="small-3"]{--x:88%;--y:42%}
[data-position="large-1"]{--x:10%;--y:48%}[data-position="large-2"]{--x:17%;--y:15%}[data-position="large-3"]{--x:39%;--y:12%}[data-position="large-4"]{--x:61%;--y:12%}[data-position="large-5"]{--x:83%;--y:15%}[data-position="large-6"]{--x:90%;--y:48%}[data-position="large-7"]{--x:75%;--y:77%}
.hero-seat{width:185px;top:84%;padding-right:75px;min-height:62px}.hero-seat .seat-cards{top:50%;left:auto;right:4px;transform:translateY(-50%);padding:0}.hero-seat .playing-card{width:33px;height:48px}.hero-seat .playing-card>span{font-size:17px}.hero-seat .playing-card strong{font-size:20px}
.community{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);text-align:center;z-index:1;min-width:230px}.pot-label{font-size:16px;font-weight:800;color:#ffe6a7}.community-cards{display:flex;gap:5px;justify-content:center;align-items:center;margin-top:5px;min-height:54px}.waiting-cards{font-size:11px;color:#b9d0bb}
.croupier{position:absolute;top:1%;left:70%;display:flex;align-items:center;gap:4px;color:#decda1;font-size:9px}.croupier .avatar{width:30px}
.action-dock{display:flex;align-items:center;justify-content:center;gap:12px;min-height:53px;background:#101e19;border:1px solid #526344;border-radius:13px;padding:3px 10px}.poker-actions{display:flex;gap:8px}.poker-actions button{min-width:90px;margin:0}.turn-label{font-size:12px;max-width:180px}.hand-result{font-size:12px;max-width:70%;color:#ffe5a0}.at-table #notice{margin:4px 2px;font-size:11px;min-height:14px}.at-table details{margin:6px 0;padding:8px 14px}.at-table details summary{font-size:12px;min-height:22px}
.raise-overlay{position:fixed;inset:0;z-index:30;background:#000a;display:flex;align-items:center;justify-content:center;padding:10px;overflow:auto}.raise-panel{width:min(470px,100%);max-height:100%;overflow:auto;margin:auto;border-color:#d2b16b;box-shadow:0 10px 40px #0009}.raise-panel h2{margin:8px 0}.raise-panel .pair button{flex:0 0 44px;margin:0}.raise-panel input{font-size:20px}.raise-panel .muted{font-size:11px;margin:4px 0}.raise-panel .all-in{background:#78442d;color:#ffe6b6}.raise-panel button{min-height:42px}#raiseError{color:#ffc29f;font-size:12px;margin:4px 0}
@media(min-width:1000px) and (min-height:600px){.table-seat{width:195px;padding:7px}.person{width:55px}.seat-info b{font-size:14px}.seat-info .stack{font-size:16px}.seat-info small{font-size:11px}.hero-seat{width:260px;padding-right:110px}.hero-seat .playing-card{width:46px;height:64px}.playing-card{width:55px;height:75px}.playing-card>span{font-size:22px}.playing-card strong{font-size:35px}.seat-cards .playing-card{width:37px;height:49px}.community{min-width:320px}.croupier .avatar{width:55px}}
@media(max-height:370px) and (orientation:landscape){.table-scene{min-height:205px}.table-meta{height:18px}.table-seat{width:125px;padding:2px}.person{width:27px}.seat-info b{font-size:9px}.seat-info .stack{font-size:10px}.hero-seat{width:166px;padding-right:69px;min-height:52px}.community .playing-card{height:44px;width:34px}.community .chips{height:15px}.community-cards{min-height:44px}.croupier .avatar{width:23px}.pot-label{font-size:13px}.action-dock{min-height:48px}.poker-actions button{min-width:76px}.seat-info .chips{height:14px}}
@media(orientation:portrait){.at-table main{min-width:660px}.at-table .table-scene{height:320px}.at-table:before{content:'↻ Поверните телефон для горизонтального стола';display:block;text-align:center;padding:12px;color:#ffe2a0;font-size:13px}}
/* Each effect is attached only to new events, not menu rerenders. */
.action-bubble{position:absolute;top:-23px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:2px 8px;border:1px solid #b89754;border-radius:9px;background:#17271f;color:#f5dfa4;font-size:11px;z-index:5}
.hero-seat .action-bubble{left:auto;right:100%;top:25%;margin-right:8px;transform:none}
.top-seat .action-bubble{left:100%;top:100%;margin-left:6px;transform:none}
.action-pop{animation:action-pop .3s ease-out}
.moving-chip{position:absolute;left:50%;top:50%;color:#e4b74c;font-size:25px;pointer-events:none;animation:chip-bet .65s ease-out forwards;z-index:6}
.hero-seat .moving-chip{--chip-y:-85px}
.table-seat:not(.hero-seat){--chip-y:55px}
.deal-card{animation:deal-card .38s ease-out both}
.community-cards .deal-card:nth-child(2){animation-delay:.08s}
.community-cards .deal-card:nth-child(3){animation-delay:.16s}
.community-cards .deal-card:nth-child(4){animation-delay:.24s}
.community-cards .deal-card:nth-child(5){animation-delay:.32s}
.hand-result small{display:block;color:#f3d793}
.showdown-details{margin:16px 0;padding:16px}
.showdown-details h2{font-size:18px;margin:0 0 12px}
.result-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #465441;font-size:14px}
.result-row>b{min-width:110px}
.winning-five{display:inline-flex;gap:4px}
.winning-five .playing-card{width:32px;height:44px;font-size:13px}
.winning-five .playing-card strong{font-size:20px}
.best-card{outline:2px solid #d8b458;box-shadow:0 0 9px #d8b45855}
@keyframes action-pop{from{opacity:0}to{opacity:1}}
@keyframes deal-card{from{opacity:0;transform:translateY(-18px) rotate(-6deg)}to{opacity:1;transform:none}}
@keyframes chip-bet{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(var(--chip-y,55px))}}
@media(prefers-reduced-motion:reduce){.action-pop,.moving-chip,.deal-card{animation:none}.moving-chip{display:none}}

/* 0.8: one-screen table, photo portraits and touch-friendly controls. */
[hidden]{display:none!important}
.at-table{height:100vh;height:100dvh;min-height:0;overflow:hidden;background:radial-gradient(ellipse at center,#243931,#090e0c 78%)}
.at-table main{height:100vh;height:100dvh;min-width:0;padding:3px 12px;display:flex;flex-direction:column;overflow:hidden}
.at-table header{height:36px;flex:0 0 36px;justify-content:space-between}
.at-table header b{display:none}
.at-table .brand{top:10px}
.table-menu{min-height:30px;margin:0;padding:4px 12px;font-size:12px;background:#192b23;color:#e8d9b6}
.table-meta{flex:0 0 18px;height:18px}
.table-scene{flex:1 1 auto;height:auto;min-height:0;max-height:none;margin:0 8px}
.action-dock{flex:0 0 auto;min-height:50px}
.at-table #notice{flex:0 0 16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:1px;font-size:10px}
.table-rail{inset:17% 9% 15%;border:14px solid #392920;background:repeating-linear-gradient(35deg,#ffffff03 0px,#ffffff03 1px,transparent 1px,transparent 4px),radial-gradient(ellipse,#236047,#0d3429);box-shadow:0 12px 16px #000a,0 0 0 3px #ad8754,inset 0 0 0 2px #c5a363,inset 0 0 24px #00170be0}
.table-rail:after{inset:8px;border:1px dashed #ddcc9b40}
.table-seat{background:none;border:0;box-shadow:none;padding:0;width:157px;gap:6px}
.table-seat.active,.table-seat.winning{border:0;background:none;box-shadow:none}
.table-seat.active .portrait{outline:3px solid #e9c66d;box-shadow:0 0 15px #e9c66d88}
.table-seat.winning .seat-info{border-color:#edce83;background:#453c22}
.person{width:59px}.portrait{display:block;width:59px;height:64px;border-radius:22px 22px 12px 12px;background-image:url('portraits.png');background-size:200% 200%;box-shadow:0 3px 8px #000a}
.portrait-0{background-position:0 0}.portrait-1{background-position:100% 0}.portrait-2{background-position:0 100%}.portrait-3{background-position:100% 100%}
.seat-info{padding:5px 7px;border:1px solid #a7a17b66;border-radius:9px;background:#0b1c17e8}
.seat-info b{font-size:10px}.seat-info .stack{font-size:13px}
.seat-info small{min-height:10px;overflow:hidden;text-overflow:ellipsis}
.table-stack{position:absolute;top:85%;left:70%;filter:drop-shadow(1px 3px 2px #0009)}
.table-stack .chips{height:22px;gap:2px}.chip-pile{width:16px}.chip-pile i{width:16px}
[data-position="small-1"] .table-stack{left:100%;top:60%;margin-left:4px}
[data-position="small-3"] .table-stack{left:auto;right:100%;top:60%;margin-right:4px}
.top-seat .table-stack{top:85%;left:auto;right:100%;margin-right:8px}
.hero-seat{width:226px;top:77%;min-height:60px;padding-right:80px}
.hero-seat .table-stack{top:25%;left:100%;margin-left:12px}
.hero-seat .seat-cards{right:0}
.hero-seat .playing-card{width:36px;height:50px}
.hero-seat .action-bubble{top:20%;right:100%}
.top-seat .action-bubble{top:90%;left:100%}
.table-seat .seat-cards{z-index:3}
.community{top:46%}.community-cards{gap:6px}
.playing-card{font-family:Arial,sans-serif;color:#101214;background:#fffdf4;border:1px solid #d4cbb8}
.playing-card.red{color:#b61f36}
.playing-card svg{width:100%;height:100%;display:block}
.playing-card small{width:13px;height:13px}
.playing-card strong{width:23px;height:25px;right:3px;bottom:3px}
.seat-cards .playing-card strong{width:17px;height:18px}
.seat-cards .playing-card small{width:10px;height:10px}
.hero-seat .playing-card strong{width:21px;height:22px}
.combination-label{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#ffe2a0;font-size:12px;font-weight:650;line-height:22px}
.croupier{display:none}
.table-extras,.results-overlay{position:fixed;inset:0;z-index:25;background:#000b;padding:12px;overflow:auto}
.table-extras>section,.showdown-details{max-width:760px;margin:0 auto;max-height:100%;overflow:auto}
.panel-close{float:right}
.compact-raise{width:520px;display:grid;grid-template-columns:1fr 190px;column-gap:16px;padding:12px;max-height:100%;overflow:auto}
.compact-raise>.pair{grid-column:1;grid-row:1}
.compact-raise>label{grid-column:1;grid-row:2;margin:0}
.compact-raise>.muted{grid-column:1;grid-row:3}
.compact-raise>.number-pad{grid-column:2;grid-row:1/6;display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.number-pad button{min-height:44px;margin:0;padding:5px;font-size:20px}
.compact-raise>[data-do=raise]{grid-column:1;grid-row:4;margin:4px 0}
.compact-raise>.all-in{grid-column:1;grid-row:5;margin:4px 0}
.compact-raise>#raiseError{grid-column:1/-1;min-height:14px}
.compact-raise input{margin:3px 0;font-size:24px;padding:6px;caret-color:transparent}
@media(max-height:370px){.person{width:42px}.portrait{width:42px;height:48px}.table-seat{width:135px}.hero-seat{width:209px;padding-right:78px;min-height:50px}.seat-info{padding:3px 5px}.community .playing-card{width:35px;height:45px}.combination-label{font-size:11px;line-height:18px}.table-stack .chips{height:18px}.compact-raise{padding:8px;column-gap:10px}.compact-raise button{min-height:38px}.number-pad button{min-height:42px}.at-table header{height:32px;flex-basis:32px}}
@media(min-width:1000px) and (min-height:550px){.person{width:80px}.portrait{width:80px;height:90px}.table-seat{width:210px}.hero-seat{width:290px;padding-right:108px}.hero-seat .playing-card{width:48px;height:66px}.community .playing-card{width:52px;height:70px}.playing-card strong{width:29px;height:32px}.seat-info b{font-size:13px}.seat-info .stack{font-size:16px}.seat-info small{font-size:10px}}
@media(orientation:portrait){.at-table:before{position:fixed;bottom:0;z-index:50;font-size:10px;padding:4px}.at-table main{min-width:0}.at-table .table-scene{height:auto}.compact-raise{grid-template-columns:1fr 150px}.poker-actions{gap:3px}.poker-actions button{min-width:55px;padding:8px}.turn-label{max-width:85px}}
[data-position="heads-1"]{--x:50%;--y:13%}
.login-view main{max-width:940px}
.login-card h1{font-size:25px;margin:0 0 8px}
.login-card h2{font-size:16px;margin:8px 0}
.login-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.avatar-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.avatar-picker button{padding:5px;margin:0;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;background:#193227;color:#eee0bb;font-size:12px}
.avatar-picker button[aria-pressed=true]{border:2px solid #f6ce72;background:#475037}
.avatar-picker .portrait{width:48px;height:54px;border-radius:14px}
.avatar-toha,.avatar-zheka,.avatar-serzh,.avatar-egrik{background-size:cover;background-position:center}
.avatar-toha{background-image:url('toha.png')}
.avatar-zheka{background-image:url('zheka.png')}
.avatar-serzh{background-image:url('serzh.png')}
.avatar-egrik{background-image:url('egrik.png')}
.table-rail{inset:2% 0 3%;border:0;border-radius:24px;background:url('table-background.png') center/100% 100% no-repeat;box-shadow:0 8px 16px #0006}
.table-rail:after{display:none}
.practice-entry{display:flex;align-items:center;gap:12px;border-top:1px solid #485941;margin-top:15px;padding-top:8px;font-size:12px}
.practice-entry button{background:#213b2f;color:#e4d7ad}
.lobby-player{display:flex;align-items:center;gap:10px}
.lobby-player .portrait{width:42px;height:48px;flex-shrink:0}
.turn-label small{display:block;font-size:9px;color:#b8cbb4;margin-top:3px}
.pre-actions button{font-size:12px;min-width:85px;padding:8px}
.pre-actions .selected{outline:2px solid #f4df97;background:#f3d078}
.at-table .recovery{position:fixed;top:5%;left:5%;right:5%;z-index:40;max-height:90%;overflow:auto}
@media(max-height:370px){.pre-actions{gap:4px}.pre-actions button{min-width:74px;font-size:11px;padding:5px}.pre-actions~.turn-label{max-width:140px}}
@media(max-width:650px){.login-columns{grid-template-columns:1fr;gap:8px}.pre-actions button{min-width:64px;font-size:10px}.turn-label{max-width:145px}}
@media(orientation:landscape) and (max-height:650px) and (min-width:651px){
 .login-view{height:100vh;height:100dvh;min-height:0;overflow:hidden}
 .login-view main{height:100vh;height:100dvh;padding:3px 12px 5px;display:flex;flex-direction:column;overflow:hidden}
 .login-view .brand{flex:0 0 auto;margin:1px 0 4px;font-size:12px;line-height:16px}.login-view .brand small{display:none}
 .login-card{flex:1 1 auto;min-height:0;overflow:hidden;margin:2px 0;padding:7px 14px}.login-card h1{font-size:17px;line-height:20px;margin:0 0 2px}
 .login-card>h1+.muted{font-size:10px;line-height:1.2;margin:2px 0 3px}.login-card h2{font-size:14px;line-height:18px;margin:1px 0 3px}.login-card label{font-size:10px;margin:2px 0}
 .login-card input{padding:6px 9px;margin:2px 0}.login-card button{min-height:34px;padding:5px 9px}
 .login-columns{gap:18px}.login-card .avatar-picker{gap:4px}.login-card .avatar-picker button{padding:2px;gap:1px;font-size:10px}.login-card .avatar-picker .portrait{width:34px;height:37px}
 .login-columns>div:nth-child(2)>.muted{font-size:9px;line-height:1.25;margin:3px 0}
 .practice-entry{margin-top:3px;padding-top:2px;gap:8px;font-size:10px}.practice-entry button{margin:1px}.login-view #notice{flex:0 0 13px;min-height:13px;margin:1px 0 0;font-size:10px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* 0.10: readable cards, unmistakable showdown, table ambience. */
.playing-card{overflow:hidden;isolation:isolate;padding:4px;font-variant-numeric:tabular-nums}
.playing-card .card-corner{display:flex;flex-direction:column;align-items:center;position:absolute;left:4px;top:3px;line-height:.82;z-index:2}
.playing-card .card-corner b{font-size:16px;line-height:1;font-weight:850}
.playing-card .card-corner i{font:normal 15px/1 Georgia,serif;margin-top:1px}
.playing-card .card-center{position:absolute;right:4px;bottom:1px;width:auto;height:auto;font:700 27px/1 Georgia,serif}
.seat-cards .playing-card .card-corner{left:3px;top:2px}
.seat-cards .playing-card .card-corner b{font-size:12px}
.seat-cards .playing-card .card-corner i{font-size:11px}
.seat-cards .playing-card .card-center{right:2px;bottom:1px;font-size:18px;width:auto;height:auto}
.hero-seat .playing-card .card-corner b{font-size:15px}
.hero-seat .playing-card .card-corner i{font-size:13px}
.hero-seat .playing-card .card-center{font-size:22px}
.community{z-index:4}
.table-seat{z-index:5}
.best-card{outline:3px solid #ffd86c;box-shadow:0 0 14px #ffd86ccc,0 3px 5px #0006;transform:translateY(-3px)}
.winner-badge{position:absolute;bottom:calc(100% + 7px);left:0;display:block;max-width:210px;padding:3px 6px;border-radius:8px;background:#fff;color:#252015;font-size:11px;line-height:1.2;white-space:normal;box-shadow:0 0 10px #fff9}
.table-seat.winning .avatar{box-shadow:0 0 0 3px white,0 0 20px 5px #ffffffb0}
.table-seat.winning .portrait{outline:3px solid white;box-shadow:0 0 22px 4px #ffffffaa}
.table-seat.winning .seat-info{border:2px solid #ffe096;background:#5a451df2;box-shadow:0 0 16px #e9ba4f77}
.winner-dock{border:2px solid #d9b45e;background:linear-gradient(90deg,#1a291e,#4a3a1b,#1a291e);box-shadow:0 0 16px #dfb75355}
.winner-dock .hand-result{font-size:13px;color:#fff2bf;text-align:center;max-width:none}
.winner-dock .hand-result b{color:#ffe07f;font-size:15px}
.table-drink{position:absolute;left:-38px;top:46%;width:46px;height:54px;background-image:url('drinks-sprite.png');background-size:200% 200%;background-repeat:no-repeat;filter:drop-shadow(0 4px 3px #000a);pointer-events:none;z-index:2}
.drink-0{background-position:0 0}.drink-1{background-position:100% 0}.drink-2{background-position:0 100%}.drink-3{background-position:100% 100%}
.hero-seat .table-drink{left:-48px;top:22%}.top-seat .table-drink{left:auto;right:-48px;top:40%}
.table-smoke{position:absolute;inset:5% 7% 8%;overflow:hidden;border-radius:38%;pointer-events:none;z-index:2;opacity:.46;mix-blend-mode:screen}
.table-smoke i{position:absolute;display:block;width:34%;height:28%;border-radius:50%;background:radial-gradient(ellipse,#d8ddd8aa 0,#b9c3bc40 38%,transparent 72%);filter:blur(15px);animation:table-smoke 22s ease-in-out infinite alternate}
.table-smoke i:nth-child(1){left:5%;top:57%;animation-delay:-7s}.table-smoke i:nth-child(2){left:40%;top:7%;animation-duration:27s;animation-delay:-16s}.table-smoke i:nth-child(3){right:3%;top:45%;animation-duration:31s;animation-delay:-4s}
@keyframes table-smoke{0%{transform:translate3d(-8%,12%,0) scale(.75);opacity:.1}50%{opacity:.45}100%{transform:translate3d(24%,-48%,0) scale(1.45);opacity:.08}}
@media(prefers-reduced-motion:reduce){.table-smoke{display:none}.best-card{transform:none}}

/* The waiting room stays on one landscape screen. */
.lobby-view{height:100vh;height:100dvh;overflow:hidden}
.lobby-view main{max-width:1100px;height:100vh;height:100dvh;padding:5px 12px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);grid-template-rows:28px 1fr auto auto;gap:6px 12px;overflow:hidden}
.lobby-view .brand{position:absolute;top:8px;left:50%;transform:translateX(-50%);margin:0;font-size:11px;pointer-events:none}.lobby-view .brand small{display:none}
.lobby-view header{grid-column:1/-1;grid-row:1;height:28px;align-items:center;font-size:11px}
.lobby-view .lobby-table{grid-column:1;grid-row:2/4;margin:0;padding:9px 12px;min-height:0;overflow:hidden}.lobby-table h2{font-size:17px;margin:0 0 5px}.lobby-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px}.lobby-player{margin:0;padding:3px 5px;border:1px solid #4c674f;border-radius:10px;background:#0d1f17}.lobby-player span{min-width:0}.lobby-player b,.lobby-player small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-player b{font-size:12px}.lobby-player small{font-size:10px;color:#b8c8b5}.lobby-player .portrait{width:34px;height:38px}.lobby-actions{display:flex;margin-top:5px}.lobby-actions button{flex:1;min-height:37px;margin:2px}
.lobby-view .room-topup{grid-column:2;grid-row:2;margin:0;padding:9px 12px;min-height:0;overflow:hidden}.lobby-view .room-topup h2{font-size:15px;margin:0}.lobby-view .room-topup .muted{font-size:10px;line-height:1.25;margin:4px 0}.lobby-view .room-topup label{margin:2px 0;font-size:10px}.lobby-view .room-topup input{padding:6px;margin:2px 0}.lobby-view .room-topup button{min-height:35px;padding:5px 9px}
.lobby-view .room-details{grid-column:2;grid-row:3;margin:0;padding:6px 10px;font-size:11px}.lobby-view .room-details summary{min-height:20px}
.lobby-view .room-footer{grid-column:1/-1;grid-row:4;display:flex;justify-content:center;gap:5px}.lobby-view .room-footer button{min-height:34px;margin:0;padding:5px 10px;font-size:11px}
.lobby-view #notice{position:fixed;left:12px;bottom:2px;margin:0;font-size:10px;min-height:12px;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand em{margin-left:6px;font:normal 8px/1 system-ui;letter-spacing:0;color:#879b8d}
.card-corner i svg{display:block;width:11px;height:11px}
.card-center svg{display:block;width:100%;height:100%;max-width:30px;max-height:34px;margin:auto}
.playing-card .card-center{width:25px;height:27px}
.seat-cards .playing-card .card-center{width:17px;height:19px}
.hero-seat .playing-card .card-center{width:22px;height:25px}
.connection-status{position:fixed;top:2px;right:8px;font:10px/1.3 system-ui;color:#c8d9ca;z-index:20;pointer-events:none}
.at-table header button[data-do="invite"],.lobby-view header button[data-do="invite"]{min-height:26px;padding:3px 7px;font-size:11px}
@media(max-height:370px) and (orientation:landscape){.lobby-view main{grid-template-rows:24px 1fr auto auto}.lobby-view .lobby-table{padding:6px 9px}.lobby-table h2{font-size:14px}.lobby-player{padding:1px 4px}.lobby-player .portrait{width:28px;height:31px}.lobby-actions{margin-top:2px}.lobby-actions button{min-height:31px}.lobby-view .room-topup{padding:6px 9px}.lobby-view .room-footer button{min-height:29px;padding:3px 8px}}
