@charset "UTF-8";
.land-layout{display:grid;grid-template-columns:minmax(320px,640px) minmax(220px,280px);gap:22px;justify-content:center}.land-stage{background:#e9ecdf;color:#354333;border:1px solid #a8b49b;padding:16px;border-radius:10px}.land-status{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px;min-height:36px;line-height:1.6}.land-status #countdown{font-size:11px;white-space:nowrap;color:#617151}.land-opponent,.land-self{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin:9px auto;max-width:480px;font-weight:650}.land-opponent span,.land-self span{font-size:10px;font-weight:400;color:#68775e}.land-board{position:relative;max-width:480px;margin:auto;background:#e4e9d9;border:1px solid #9ca98e;border-radius:4px;padding:9px}.land-board svg{position:absolute;inset:9px;width:calc(100% - 18px);height:calc(100% - 18px);pointer-events:none}.land-roads{stroke:#8a987b;stroke-width:1.3;opacity:.75}.land-rails{stroke:#495e43;stroke-width:4}.land-sleepers{stroke:#d7dfc9;stroke-width:1.4;stroke-dasharray:3 4}.land-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative}.land-node{min-width:0;aspect-ratio:100/60;display:grid;place-items:center;position:relative;padding:4px}.land-node:disabled{opacity:1;cursor:default}.land-piece{position:relative;display:grid;place-items:center;width:90%;height:85%;border:1px solid #b5ab91;border-radius:4px;background:#fffbec;box-shadow:0 2px 1px #42533e28;font-size:clamp(13px,1.45vw,20px);letter-spacing:2px;font-weight:750;color:#a7352a;z-index:1}.land-piece.blue{color:#28578b}.land-piece.covered{background:#6c8070;color:#eef1e4;border-color:#536951;font-size:14px;font-weight:500;letter-spacing:3px}.land-piece i{position:absolute;right:3px;top:3px;width:5px;height:5px;background:#d3a333;border-radius:50%;border:1px solid #bd8d29}.land-station{background:#e4e9d9;border:1px solid #9aa88b;border-radius:3px;width:55%;height:52%;font-size:9px;color:#657853;display:grid;place-items:center}.land-node.camp .land-station{border-radius:50%;height:65%;background:#d4dfc5}.land-node.base .land-station{border:2px solid #899770;font-size:9px;background:#e6e4ca}.land-node.selected .land-piece{outline:3px solid #dba430;outline-offset:1px;transform:translateY(-1px)}.land-node.land-target:after{content:'';position:absolute;inset:3px;border:2px solid #32824b;border-radius:4px;z-index:2;pointer-events:none}.land-node.land-target em{position:absolute;right:3px;bottom:2px;width:7px;height:7px;background:#32824b;border-radius:50%;z-index:3}.land-node.last:not(.selected) .land-piece{box-shadow:0 0 0 1px #7c9064,0 2px 1px #42533e28}.land-mountain{aspect-ratio:100/60;display:grid;place-items:center;color:#8c9c7c;font-size:9px;letter-spacing:6px}.land-toolbar{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:14px 0 8px}.land-toolbar .outline{color:#526044;border-color:#a1ae90;padding:9px 12px}.land-toolbar .primary{background:#3f6046;color:#fff;padding:9px 16px;font-size:12px}.land-legend{text-align:center;font-size:10px;color:#6f7f61;margin:10px 0 0}.land-layout .arena-side .panel{margin-bottom:12px}.land-layout .arena-side p{line-height:1.8}.land-layout .arena-side .outline{margin-top:7px}.land-report summary{cursor:pointer;font-size:13px}.land-report p{font-size:11px;color:var(--muted)}.land-options{display:grid;gap:18px;margin:24px 0}.land-options select{display:block;width:100%;margin-top:9px;padding:10px;border:1px solid #4b5746;border-radius:5px;background:#202820;color:#eee;font:inherit}.land-options label{font-size:12px}
@media(max-width:1100px){.land-layout{grid-template-columns:1fr}.land-layout .arena-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}.land-layout .arena-side .panel{margin-bottom:0}.land-board{max-width:430px}}
@media(max-width:620px){.land-stage{padding:9px 7px;border-radius:7px}.land-status{font-size:11px;min-height:30px;gap:5px}.land-status #countdown{font-size:9px}.land-opponent,.land-self{font-size:11px;margin:7px 3px}.land-self span,.land-opponent span{font-size:9px}.land-board{padding:5px}.land-board svg{inset:5px;width:calc(100% - 10px);height:calc(100% - 10px)}.land-node{padding:3px}.land-piece{font-size:16px;letter-spacing:1px;border-radius:3px;width:93%;height:88%}.land-piece.covered{font-size:12px;letter-spacing:2px}.land-node.base .land-station,.land-station{font-size:7px}.land-toolbar{gap:5px;margin:9px 0 4px}.land-toolbar .outline,.land-toolbar .primary{padding:9px 10px;font-size:10px}.land-legend{font-size:8px;margin-top:8px}.land-layout{gap:12px}.land-layout .arena-side{display:block}.land-layout .arena-side .panel{margin-bottom:10px}.land-mountain{font-size:7px;letter-spacing:3px}}
:root{color-scheme:dark;--bg:#101319;--panel:#191d25;--line:#2b303a;--muted:#959daa;--text:#f1f3f5;--lime:#d0f86f;--purple:#bdabff;font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button{transition:background .18s,transform .18s}button:hover:not(:disabled){filter:brightness(1.1)}[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:34px 23px;background:#14171e;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:10px;align-items:center;font-size:24px;font-weight:900;letter-spacing:1px}.brand-icon{display:grid;place-items:center;background:var(--lime);color:#171d15;border-radius:13px;width:43px;height:43px;transform:rotate(-7deg);font-size:24px}.brand small{display:block;font-size:7px;letter-spacing:1.5px;color:var(--muted);margin-top:6px}.nav-label{font-size:11px;color:#727b8b;letter-spacing:2px;margin:49px 12px 16px}nav{display:grid;gap:9px}nav button{display:flex;gap:13px;align-items:center;text-align:left;padding:15px 13px;color:#a9b0bc;border-radius:9px}nav button span{font-size:21px;width:23px}nav button.selected{background:#293326;color:var(--lime);font-weight:700}nav i{font-size:9px;border:1px solid #67604c;padding:2px 4px;font-style:normal;color:#ebd19c;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:24px 8px 0}.sidebar-bottom strong{display:block;margin-top:15px;font-size:14px}.sidebar-bottom p{color:var(--muted);font-size:12px;line-height:1.9}.mini-board{display:flex;color:var(--purple);gap:7px;font-size:19px}.build-tag{font-size:10px;color:#7d8794;margin-top:29px}.build-tag b{display:inline-block;width:6px;height:6px;background:var(--lime);border-radius:50%;margin-right:6px}.shell{margin-left:224px}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.crumb{color:var(--muted);font-size:12px}.crumb span{margin:0 15px;color:#434b59}.crumb strong{font-weight:500;color:#e3e6ec}.header-actions{display:flex;gap:20px;align-items:center}.balance-pill{display:flex;gap:8px;align-items:center;color:var(--lime);background:#242b21;border:1px solid #39452d;border-radius:30px;padding:8px 14px}.balance-pill small{font-size:11px;color:#b1b7a7}.avatar-button{font-size:12px}.avatar-button span{display:inline-block;padding:8px;background:#333a46;border-radius:50%;margin-left:10px}main{max-width:1500px;margin:auto;padding:30px 38px 40px;min-height:calc(100vh - 155px)}.page-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.page-head h1{font-size:26px;letter-spacing:-1px;margin:0 0 8px}.page-head p{margin:0;color:var(--muted);font-size:12px}.live-badge{display:flex;align-items:center;gap:7px;font-size:11px;color:#a6b29e}.live-badge i{width:6px;height:6px;background:var(--lime);border-radius:50%;box-shadow:0 0 10px #c7ff7055}.hero{display:grid;grid-template-columns:1fr 41%;position:relative;overflow:hidden;min-height:282px;border-radius:16px;border:1px solid #414c39;background:radial-gradient(ellipse at 80% 60%,#465641 0,transparent 55%),linear-gradient(110deg,#27352c,#1c2523);padding:34px 36px;margin-bottom:23px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--lime);margin-bottom:15px}.hero h2{font-size:38px;line-height:1.3;letter-spacing:-1px;margin:0 0 14px;font-weight:850}.hero h2 em{font-style:normal;color:var(--lime)}.hero p{font-size:12px;color:#b9c4b8;line-height:1.9;margin:0 0 22px}.primary{background:var(--lime);color:#1a2215;padding:12px 21px;border-radius:8px;font-weight:750}.primary:hover{transform:translateY(-1px)}.outline{border:1px solid #444c57;padding:11px 15px;border-radius:8px;color:#d6dbe3;font-size:12px}.hero .outline{margin-left:10px;border-color:#71806b}.full{width:100%}.hero-art{position:relative;display:grid;place-items:center;perspective:650px}.art-board{width:212px;height:212px;display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:17px;background:linear-gradient(135deg,#8b9d74,#586851);border:9px solid #53634b;border-radius:17px;box-shadow:16px 28px 0 #1b261c66,0 30px 40px #0006;transform:rotateX(27deg) rotateZ(-24deg);position:relative}.art-board:before{content:"";position:absolute;inset:31px;background:repeating-linear-gradient(0deg,transparent 0 34px,#31482f88 35px 36px),repeating-linear-gradient(90deg,transparent 0 34px,#31482f88 35px 36px)}.art-board span{position:relative;margin:3px;border-radius:50%}.art-board .black{background:radial-gradient(circle at 35% 25%,#555f4c,#151c16 70%);box-shadow:2px 5px 2px #0007}.art-board .white{background:radial-gradient(circle at 30% 20%,#fff,#d6e3ad 70%);box-shadow:2px 5px 2px #0005}.float-tag{position:absolute;background:#e1faba;color:#25301f;padding:11px 17px;font-size:12px;font-weight:800;transform:rotate(8deg);right:-8px;top:9px;border-radius:7px;box-shadow:0 10px 30px #0003}.art-caption{position:absolute;bottom:-5px;right:3px;color:#a7b99c;font-size:9px;letter-spacing:3px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px}.metric{border:1px solid var(--line);border-radius:11px;background:#171b22;padding:17px 21px;display:flex;align-items:center;gap:14px}.metric-icon{width:37px;height:37px;background:#292c3b;color:var(--purple);border-radius:10px;display:grid;place-items:center;font-size:20px}.metric:nth-child(2) .metric-icon{color:var(--lime);background:#293326}.metric:nth-child(3) .metric-icon{color:#efc294;background:#3b3028}.metric strong{font-size:21px;display:block;line-height:1.1}.metric small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px}.section-head h2{font-size:18px;margin:0}.section-head small{font-size:10px;letter-spacing:2px;color:#76818f;margin-left:10px}.filters{display:flex;gap:5px;background:#1a1e26;padding:4px;border-radius:8px}.filters button{font-size:11px;color:var(--muted);padding:6px 11px;border-radius:5px}.filters .active{background:#353d48;color:#fff}.games-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.game-card{overflow:hidden;border-radius:12px;border:1px solid var(--line);background:var(--panel)}.game-art{height:166px;position:relative;overflow:hidden;display:grid;place-items:center}.game-art.gomoku{background:radial-gradient(ellipse at 60% 40%,#a39469,#5b6248)}.game-art.connect4{background:radial-gradient(ellipse at 60% 40%,#9987c8,#494365)}.game-art.practice{background:radial-gradient(ellipse at 60% 40%,#567eb1,#2c435e)}.game-art .tag{position:absolute;top:13px;left:13px;font-size:9px;padding:5px 8px;background:#1118;backdrop-filter:blur(8px);border-radius:5px;z-index:1}.game-art .number{position:absolute;bottom:12px;right:13px;font-size:9px;letter-spacing:2px;color:#ffffff70}.stone-group{display:flex;transform:rotate(-22deg);gap:10px}.stone-group i{width:64px;height:64px;background:radial-gradient(circle at 35% 25%,#657066,#121d1d 70%);border-radius:50%;box-shadow:6px 13px 0 #18241d55,10px 20px 16px #0004}.stone-group i:nth-child(2){background:radial-gradient(circle at 35% 25%,white,#dce0c8 70%);transform:translateY(15px)}.four-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;transform:rotate(-14deg);padding:14px;background:#433266;border-radius:10px;box-shadow:8px 12px #312a4b77}.four-grid i{width:24px;height:24px;background:#b6f176;border-radius:50%;box-shadow:inset 0 2px 4px #0003}.four-grid i:nth-child(3n){background:#e4c4ff}.four-grid i:nth-child(4n){background:#241e3b}.target{width:102px;height:102px;border:1px solid #bcdcff66;box-shadow:0 0 0 18px #bcdcff15,0 0 0 37px #bcdcff09;border-radius:50%;display:grid;place-items:center}.target b{font-size:45px;color:#d4ecff;text-shadow:0 0 25px #a4d3ff}.game-body{padding:19px}.game-title{display:flex;align-items:center;justify-content:space-between}.game-title h3{font-size:17px;margin:0}.game-title span{font-size:9px;color:#a7bd8d;border:1px solid #425039;border-radius:4px;padding:3px 5px}.game-body p{font-size:11px;color:var(--muted);line-height:1.8;margin:10px 0 19px;min-height:39px}.game-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:15px}.game-bottom small{font-size:11px;color:#bfc8b4}.game-bottom button{padding:8px 12px;background:#303a2a;color:var(--lime);border-radius:6px;font-size:11px;font-weight:700}.bottom-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;margin-top:26px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px}.panel h3{font-size:16px;margin:0 0 7px}.panel p{color:var(--muted);font-size:12px;line-height:1.9}.quest{display:flex;gap:14px;align-items:center;padding:17px 0 0}.quest-icon{background:#332e41;color:var(--purple);width:40px;height:40px;border-radius:10px;display:grid;place-items:center;font-size:20px}.quest div:nth-child(2){flex:1}.quest strong{display:block;font-size:12px}.quest small{color:var(--muted);display:block;font-size:10px;margin-top:7px}.quest button{font-size:11px;color:var(--lime);border:1px solid #455137;padding:7px 11px;border-radius:6px}.empty{padding:25px 0;text-align:center;color:var(--muted);font-size:12px;line-height:1.9}.room-list{display:grid;gap:8px}.room-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:12px 0}.room-row span{flex:1;font-size:12px}.room-row small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.room-row button{color:var(--lime);font-size:11px}footer{max-width:1500px;margin:auto;border-top:1px solid var(--line);padding:22px 38px;color:#707b8b;font-size:10px;display:flex;justify-content:space-between;gap:15px}footer b{padding:0 7px}footer button{font-size:10px;color:#909ba8}dialog{background:#1d232d;color:var(--text);border:1px solid #424b58;border-radius:18px;padding:35px;width:min(440px,calc(100% - 30px));max-height:90vh;box-shadow:0 30px 90px #0009}dialog::backdrop{background:#05090cbb;backdrop-filter:blur(7px)}dialog h2{font-size:27px;margin:0 0 12px}.close{position:absolute;right:13px;top:9px;font-size:27px;color:#aeb8c5}.muted{color:var(--muted);font-size:12px;line-height:1.8}form{display:grid;gap:17px;margin-top:24px}label{display:grid;gap:9px;font-size:12px;color:#bcc4cf}input{width:100%;background:#131820;border:1px solid #3b4351;padding:12px;border-radius:8px;color:white}input::placeholder{color:#6e7a8a;font-size:11px}.text-button{color:var(--lime);font-size:11px;padding:17px 0 5px}.fine{color:#84909f;font-size:10px;line-height:1.8}.form-error{color:#ff9b9b;font-size:12px;margin:0}.form-error:empty{display:none}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(100px);background:#e0fac0;color:#26301e;padding:13px 22px;border-radius:10px;box-shadow:0 8px 40px #0008;z-index:30;transition:transform .2s;max-width:90%;font-size:13px;pointer-events:none}#toast.show{transform:translateX(-50%) translateY(0)}.back{color:var(--muted);padding:0;margin:0 0 20px;font-size:12px}.arena-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.board-wrap{border-radius:15px;background:#1b2225;border:1px solid #39423c;padding:22px}.board-status{display:flex;justify-content:space-between;margin-bottom:20px;color:var(--lime);font-size:13px}.board{display:grid;margin:auto;max-width:610px;aspect-ratio:1;gap:0;background:#b2a47c;border:14px solid #938765;border-radius:8px;overflow:hidden}.board.gomoku{grid-template-columns:repeat(15,1fr)}.board.connect4{grid-template-columns:repeat(7,1fr);aspect-ratio:7/6;background:#726a9e;border-color:#514870;gap:7px;padding:8px}.cell{padding:0;display:grid;place-items:center;position:relative;aspect-ratio:1;min-width:0}.gomoku .cell{background:linear-gradient(0deg,transparent calc(50% - .5px),#665f4580 calc(50% - .5px),#665f4580 calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(90deg,transparent calc(50% - .5px),#665f4580 calc(50% - .5px),#665f4580 calc(50% + .5px),transparent calc(50% + .5px))}.cell:disabled{opacity:1}.cell i{width:82%;height:82%;border-radius:50%;display:block}.cell.s1 i{background:radial-gradient(circle at 32% 25%,#485148,#111711 70%);box-shadow:1px 3px 3px #0005}.cell.s2 i{background:radial-gradient(circle at 32% 25%,white,#dce2c8 70%);box-shadow:1px 3px 3px #0004}.connect4 .cell{background:#302b4b;border-radius:50%;box-shadow:inset 0 3px 5px #0006}.connect4 .cell.s1 i{background:var(--lime);width:94%;height:94%}.connect4 .cell.s2 i{background:#efbaff;width:94%;height:94%}.player{display:flex;gap:10px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.player-icon{width:35px;height:35px;border-radius:50%;background:#343f31;display:grid;place-items:center;color:var(--lime)}.player strong{font-size:12px}.player small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.room-code{font-size:27px;letter-spacing:5px;color:var(--lime);margin:16px 0}.arena-side .outline{margin-top:12px}.notice{padding:13px 15px;border:1px solid #454a36;background:#2a2e22;border-radius:8px;color:#c8d1b5;font-size:12px;line-height:1.8;margin-bottom:20px}.wallet-hero{padding:30px;background:linear-gradient(115deg,#2b3c29,#1f2929);border:1px solid #455139;border-radius:14px;margin-bottom:25px}.wallet-hero h2{font-size:48px;margin:14px 0;color:var(--lime)}.wallet-hero p{color:var(--muted);font-size:12px}.wallet-hero .primary{margin-top:10px}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:var(--muted);font-weight:400;font-size:11px}th,td{padding:17px 12px;border-bottom:1px solid var(--line)}td.positive{color:var(--lime)}.rank-number{display:inline-grid;place-items:center;width:25px;height:25px;background:#30382a;color:var(--lime);border-radius:5px}.event-banner{background:linear-gradient(120deg,#34304a,#252732);padding:35px;border-radius:15px;border:1px solid #514963;margin-bottom:23px}.event-banner h2{font-size:32px;margin:14px 0}.event-banner p{color:#b6afca;line-height:1.9;font-size:13px}.event-banner .eyebrow{color:var(--purple)}.rules-list{font-size:12px;color:#bac3ce;line-height:2;padding-left:18px}.practice-stage{height:310px;display:grid;place-items:center;background:#2a3446;border-radius:12px;margin:20px 0;text-align:center;cursor:pointer;width:100%;font-size:26px;font-weight:700;padding:20px}.practice-stage.go{background:#c9f679;color:#25341a}.practice-stage.wait{background:#57404b}.result-title{font-size:23px;color:var(--lime);margin:10px 0}.table-scroll{overflow:auto}.loading{padding:80px;text-align:center;color:var(--muted)}
@media(min-width:1600px){main{padding-top:40px}.hero{min-height:330px}.hero h2{font-size:46px}.game-art{height:195px}}
@media(max-width:1150px){.sidebar{width:190px;padding:28px 16px}.shell{margin-left:190px}main{padding:26px}header{padding:0 26px}.hero{padding:28px}.hero h2{font-size:32px}.art-board{width:175px;height:175px}.float-tag{right:-15px;font-size:10px}.arena-layout{grid-template-columns:1fr 235px}.game-body{padding:15px}.game-title h3{font-size:15px}}
@media(max-width:900px){.sidebar{width:76px;padding:25px 12px}.brand>span:nth-child(2),.nav-label,.sidebar-bottom,nav button i{display:none}nav{margin-top:42px}nav button{font-size:0;justify-content:center;padding:13px 9px}nav button span{font-size:23px}.shell{margin-left:76px}.games-grid{gap:11px}.game-title span{display:none}.hero-art{transform:scale(.9)}.bottom-grid{grid-template-columns:1fr}.arena-layout{grid-template-columns:1fr}.arena-side{display:grid;grid-template-columns:1fr 1fr;gap:15px}.hero h2{font-size:29px}.game-art{height:140px}.stone-group i{width:50px;height:50px}.four-grid{gap:6px;padding:9px}.four-grid i{width:21px;height:21px}.metric{padding:14px 12px}.metric strong{font-size:18px}}
@media(max-width:620px){.sidebar{inset:auto 0 0;width:100%;height:65px;padding:0;background:#151a23f5;backdrop-filter:blur(12px);border-top:1px solid var(--line);border-right:0}.brand{display:none}nav{display:flex;margin:0;height:100%;justify-content:space-around;gap:0}nav button{font-size:9px;flex-direction:column;gap:4px;padding:8px 12px;border-radius:0}nav button span{font-size:20px}.shell{margin-left:0;padding-bottom:65px}header{height:68px;padding:0 18px}.crumb{font-size:10px}.crumb span{margin:0 8px}.header-actions{gap:10px}.avatar-button{font-size:10px}.avatar-button span{display:none}.balance-pill{font-size:11px;padding:6px 9px}.balance-pill small{display:none}main{padding:23px 17px}.page-head h1{font-size:23px}.page-head p{font-size:10px}.live-badge{font-size:9px}.hero{min-height:300px;grid-template-columns:1fr;padding:26px 22px}.hero h2{font-size:31px}.hero p{font-size:11px;max-width:65%}.hero-art{position:absolute;right:-35px;bottom:35px;width:180px;height:180px;transform:scale(.72);pointer-events:none}.hero .primary{position:relative;z-index:1}.hero .outline{display:none}.art-caption{display:none}.float-tag{right:0;top:-10px}.metrics{gap:8px;margin-bottom:25px}.metric{display:block;padding:13px 10px}.metric-icon{display:none}.metric strong{font-size:21px}.metric small{font-size:9px}.section-head{align-items:center}.section-head h2{font-size:17px}.section-head small{display:none}.filters button{padding:5px 8px;font-size:10px}.games-grid{grid-template-columns:1fr}.game-card{display:grid;grid-template-columns:114px 1fr}.game-art{height:auto;min-height:169px}.game-art .tag{font-size:8px;top:9px;left:8px}.game-art .number{display:none}.stone-group{gap:5px;transform:rotate(-35deg)}.stone-group i{width:40px;height:40px}.four-grid{transform:rotate(-15deg) scale(.7)}.target{transform:scale(.65)}.game-body{padding:17px}.game-body p{margin:8px 0 10px;min-height:35px}.game-bottom{padding-top:10px}.game-title h3{font-size:16px}.bottom-grid{margin-top:19px}.panel{padding:20px}footer{padding:20px 18px;flex-wrap:wrap;font-size:9px}.arena-side{grid-template-columns:1fr}.board-wrap{padding:12px}.board{border-width:8px}.board-status{font-size:11px}.board.connect4{gap:4px;padding:5px}.event-banner{padding:25px}.event-banner h2{font-size:26px}th,td{padding:13px 8px;font-size:11px}.wallet-hero h2{font-size:40px}.practice-stage{height:270px;font-size:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.game-art.junqi{background:radial-gradient(ellipse at 60% 40%,#91a581,#3c554b)}.mil-art{display:flex;gap:9px;transform:rotate(-13deg)}.mil-art i{display:grid;place-items:center;writing-mode:vertical-rl;width:51px;height:84px;background:#d6c99a;border:3px solid #a99c6c;border-radius:8px;color:#8c362c;font-style:normal;font-weight:900;font-size:22px;box-shadow:5px 10px #213b3566}.mil-art i:nth-child(2){background:#2b4740;color:#c3dca8;border-color:#77917b;transform:translateY(-10px)}.mil-art i:nth-child(3){color:#345768}.game-extras{display:flex;justify-content:space-between;gap:8px;margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.game-extras button{font-size:11px;color:#9daec1;padding:3px 0}.game-extras .bot-link{color:var(--purple)}.game-extras button:disabled{opacity:.4}.game-title h3{line-height:1.5}.mil-meta,.mil-legend{display:flex;align-items:center;justify-content:space-between;color:#b6c9b0;font-size:11px;gap:8px;margin:0 0 14px}.mil-meta button{color:var(--lime);font-size:11px}.mil-board{position:relative;width:min(100%,510px);margin:0 auto;background:linear-gradient(115deg,#344d41,#233b36);padding:12px;border:1px solid #668371;border-radius:12px;box-shadow:inset 0 0 50px #11282088}.mil-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative;z-index:1}.mil-roads{position:absolute;left:12px;top:12px;width:calc(100% - 24px);height:calc(100% - 24px);pointer-events:none}.road-lines{stroke:#779887;stroke-width:2;opacity:.85}.rail-lines{stroke:#c9d3ae;stroke-width:7}.rail-dashes{stroke:#415849;stroke-width:3;stroke-dasharray:5 4}.mil-cell{aspect-ratio:100/65;min-width:0;padding:4px;display:grid;place-items:center;position:relative}.mil-cell:disabled{opacity:1;cursor:default}.mil-piece{display:grid;place-items:center;width:78%;height:85%;font-size:clamp(11px,1.3vw,18px);letter-spacing:2px;border-radius:6px;box-shadow:1px 3px 2px #071b1c88;border:2px solid #c6bc93;font-weight:900;background:#eee1b9;position:relative;z-index:1}.red-piece{color:#9d342f}.blue-piece{color:#274b8b}.hidden-piece{background:repeating-linear-gradient(45deg,#324941 0 4px,#2c413a 4px 8px);border-color:#99ab83;color:#b3c894;font-size:20px}.mil-place{display:grid;place-items:center;width:64%;height:67%;background:#2c483b;border:1px solid #718d71;border-radius:5px;color:#a6b79b;font-size:11px}.camp .mil-place{border-radius:50%;background:#466349;border:2px solid #93ae7b;color:#d1e3b0}.camp .mil-piece{border-radius:14px}.base .mil-place{border-style:double;border-width:3px}.mil-cell.selected .mil-piece{outline:3px solid var(--lime);outline-offset:1px;transform:translateY(-3px)}.target-cell:after{content:'';position:absolute;inset:3px;border:2px dashed #ddff94;border-radius:9px;z-index:3;pointer-events:none}.target-dot{width:9px;height:9px;position:absolute;border-radius:50%;background:#dbff8a;right:5px;bottom:3px;z-index:4;box-shadow:0 0 10px #daff6f}.mil-legend{font-size:10px;margin-top:14px;margin-bottom:0;justify-content:center;flex-wrap:wrap;gap:15px}.battle-log{padding-left:18px;color:#b3c0c4;font-size:11px;line-height:2.1}.battle-log li:first-child{color:var(--lime)}.mine-counter{border-top:1px solid var(--line);padding-top:15px;color:#a7b49d;line-height:2;font-size:11px}.player-icon.red-side{color:#f9a194;background:#4d3433}.player-icon.blue-side{color:#a7cbff;background:#293b53}.military-layout{grid-template-columns:minmax(0,1fr) 280px}.admin-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.admin-fields small{font-size:10px;color:#758493}.admin-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.admin-games .admin-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-save{display:flex;align-items:center;gap:20px;position:sticky;bottom:15px;z-index:4;box-shadow:0 8px 30px #0005}.admin-save>div{flex:1}.admin-save p{margin:7px 0 0}.admin-save button{white-space:nowrap}.switch-label{display:flex;align-items:center;gap:8px;color:var(--lime);font-size:12px}.switch-label input{width:18px;height:18px;accent-color:var(--lime)}.admin-audit{margin-top:24px}.admin-audit td:last-child{line-height:1.9;min-width:220px}.admin-audit td:first-child{white-space:nowrap}.admin-games h3{font-size:15px}.admin-games .section-head{gap:10px}.admin-save .form-error{color:#ff9b9b}
@media(min-width:621px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.admin-games{grid-template-columns:1fr}.military-layout{grid-template-columns:1fr}.military-layout .arena-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}}
@media(max-width:620px){.military-layout .arena-side{grid-template-columns:1fr}.mil-board{padding:7px;border-radius:8px}.mil-roads{left:7px;top:7px;width:calc(100% - 14px);height:calc(100% - 14px)}.mil-cell{padding:3px}.mil-piece{font-size:12px;letter-spacing:0;width:90%;border-width:1px}.hidden-piece{font-size:17px}.mil-meta{font-size:10px;flex-wrap:wrap}.mil-legend{font-size:9px;gap:8px}.game-extras{gap:5px}.game-extras button{font-size:10px}.mil-art{transform:rotate(-17deg) scale(.67);gap:4px}.admin-fields{grid-template-columns:1fr}.admin-save{position:static;flex-wrap:wrap}.admin-save>div{flex-basis:100%}.admin-save button{flex:1}.admin-games .admin-fields{gap:12px}.admin-fields label{font-size:11px}nav button{padding:8px 8px}nav button span{font-size:18px}.military-layout .board-status{line-height:1.6;align-items:start;gap:10px}.military-layout #countdown{white-space:nowrap}}

.clipboard-temp{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}
.category-bar{display:flex;gap:8px;margin:0 0 18px;overflow:auto;scrollbar-width:none}.category-bar button{flex-shrink:0;padding:10px 17px;border:1px solid var(--line);border-radius:25px;color:var(--muted);font-size:12px}.category-bar .active{background:var(--lime);border-color:var(--lime);color:#1b2316;font-weight:700}.game-art.dagunzi,.game-art.holdem{background:radial-gradient(ellipse at 60% 40%,#467d67,#1c493f)}.game-art.blackjack{background:radial-gradient(ellipse at 60% 40%,#a47b57,#53432f)}.poker-art{display:flex;transform:rotate(-12deg);gap:0}.poker-art i{display:grid;width:58px;height:83px;padding:6px;background:#e9eadc;border:1px solid #bdbba9;border-radius:7px;color:#1e3e36;font-size:17px;font-style:normal;box-shadow:3px 7px 9px #0004}.poker-art i:nth-child(2){transform:translateY(-8px) rotate(14deg);color:#b34346}.poker-art i:nth-child(3){transform:rotate(27deg)}.poker-art b{font-size:29px;text-align:center}.poker-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px}.poker-table{background:radial-gradient(ellipse at center,#244f44,#162d2d);border:2px solid #516859;border-radius:18px;padding:22px;min-height:345px}.poker-seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}.poker-seat{padding:12px 9px;border:1px solid #3d514a;border-radius:9px;background:#12232199;min-width:0}.poker-seat b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.poker-seat small{display:block;color:#94aba1;font-size:10px;line-height:1.8;margin-top:5px}.poker-seat.ally{border-color:#8caa6a}.poker-seat.current{box-shadow:0 0 0 2px var(--lime)}.poker-score{display:flex;gap:22px;justify-content:center;align-items:center;color:#b2c9bb;font-size:11px}.poker-score b{color:var(--lime);font-size:22px;padding:0 4px}.poker-score button{color:var(--lime);font-size:11px}.trick-title{text-align:center;color:#91b5a4;font-size:10px;margin:22px 0 12px}.poker-trick{display:flex;justify-content:center;gap:18px;min-height:80px}.poker-trick>div{text-align:center}.poker-trick small{color:#b0cabd;font-size:10px;display:block;margin-bottom:9px}.poker-card{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;width:43px;height:61px;background:linear-gradient(135deg,#fffdf0,#d8dbce);border:1px solid #c1cbb6;color:#1c342a;font-size:15px;font-weight:800;padding:0;box-shadow:1px 3px 3px #0003;flex-shrink:0}.poker-card.red-card{color:#b73844}.poker-card.picked{background:#e7ffb3;border-color:var(--lime);transform:translateY(-7px);box-shadow:0 0 0 2px var(--lime)}.poker-bottom{display:flex;align-items:center;gap:5px;justify-content:center;margin-top:16px}.poker-bottom small{font-size:10px;color:#a5bdae}.poker-hand-panel{background:var(--panel);border:1px solid var(--line);padding:20px;border-radius:12px;margin-top:15px}.poker-hand-panel .section-head h3{font-size:15px}.poker-hand-panel .section-head>span{color:var(--muted);font-size:11px}.poker-hand{display:grid;grid-template-columns:repeat(auto-fill,minmax(39px,1fr));gap:11px 5px;padding:10px 0}.poker-hand .poker-card{width:100%}.poker-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:16px;min-height:60px}.poker-actions strong{color:var(--lime);font-size:13px}.poker-layout .panel{margin-top:15px}.poker-layout aside .panel:first-child{margin-top:0}.poker-trick .poker-card+.poker-card{margin-left:-12px}.practice-cards{display:flex;justify-content:center;gap:10px;margin:18px 0;min-height:95px;align-items:center}.practice-cards .poker-card{width:65px;height:91px;font-size:22px}.poker-card.back-card{background:repeating-linear-gradient(45deg,#395a49 0 4px,#294936 4px 8px);color:#c9e89c;border-color:#96a776}.casino-status{text-align:center;color:var(--lime);font-size:16px;padding:14px}.casino-meta{display:flex;justify-content:space-between;gap:10px;color:#b3c8b6;font-size:12px}.casino-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:20px 0}.casino-controls input{width:115px}.bet-buttons{display:flex;gap:8px;justify-content:center}.bet-buttons button{padding:9px 16px;border:1px solid #63775a;border-radius:6px}.bet-buttons button.active{background:var(--lime);color:#182516}.community-label{text-align:center;font-size:11px;color:#a2b9aa}.holdem-pot{text-align:center;color:var(--lime);font-size:22px;margin:16px}.holdem-reveals{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;font-size:11px;text-align:center}.holdem-reveals .poker-card{width:35px;height:48px;font-size:12px}.holdem-reveals p{color:#aebfb1}.games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1500px){.games-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.poker-layout{grid-template-columns:1fr}.poker-layout .arena-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}.poker-layout aside .panel{margin-top:0}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){header{height:52px;padding:0 12px}.crumb{font-size:9px}main{padding:14px 10px 22px}.page-head{margin-bottom:12px}.page-head h1{font-size:20px;margin-bottom:5px}.page-head p{line-height:1.5}.live-badge{display:none}.hero{min-height:0;padding:13px 15px;margin-bottom:10px;border-radius:10px;display:block}.hero .eyebrow,.hero p,.hero-art,.hero h2 br{display:none}.hero h2{font-size:19px;margin:0;display:inline-block;line-height:1.5}.hero .primary{padding:8px 11px;font-size:10px;float:right}.hero .primary span{display:none}.metrics{gap:6px;margin-bottom:16px}.metric{padding:9px 10px;display:flex;gap:6px;border-radius:8px}.metric strong{font-size:17px}.metric small{font-size:9px;margin-top:2px}.section-head{margin-bottom:10px;gap:5px;flex-wrap:wrap}.section-head h2{font-size:15px}.filters{gap:1px;padding:2px}.filters button{padding:7px 8px;font-size:9px}.category-bar{gap:5px;margin-bottom:10px}.category-bar button{font-size:11px;padding:8px 12px}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.game-card{display:block;border-radius:9px}.game-art{height:65px;min-height:0}.game-art .tag{font-size:8px;top:6px;left:6px;padding:3px 5px}.stone-group{transform:rotate(-22deg) scale(.65)}.four-grid{transform:rotate(-14deg) scale(.45)}.target{transform:scale(.4)}.mil-art{transform:rotate(-13deg) scale(.45)}.poker-art{transform:rotate(-12deg) scale(.48)}.game-body{padding:9px}.game-title{align-items:center;gap:3px}.game-title h3{font-size:13px;letter-spacing:-.3px;line-height:1.35}.game-title span{display:none}.game-body p{display:none}.game-bottom{border:0;padding-top:7px;gap:4px;flex-wrap:wrap}.game-bottom small{font-size:9px;line-height:1.5}.game-bottom button{padding:7px 9px;font-size:10px;flex:1;min-width:70px}.game-extras{margin-top:7px;padding-top:6px;gap:5px}.game-extras button{font-size:9px;padding:5px 0}.bottom-grid{gap:10px;margin-top:16px}.panel{padding:15px}.poker-table{padding:12px 9px;min-height:270px;border-radius:12px}.poker-seats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:12px}.poker-seat{padding:7px 9px}.poker-seat b{font-size:11px}.poker-seat small{margin-top:2px;font-size:9px}.poker-score{gap:12px;font-size:10px}.poker-score b{font-size:17px}.poker-score button{font-size:10px}.poker-trick{gap:12px;min-height:64px}.poker-card{width:34px;height:49px;font-size:12px}.poker-trick .poker-card+.poker-card{margin-left:-15px}.trick-title{margin-top:15px}.poker-hand-panel{padding:12px 10px}.poker-hand{grid-template-columns:repeat(auto-fill,minmax(29px,1fr));gap:9px 3px}.poker-hand .poker-card{font-size:12px;height:45px}.poker-hand-panel .section-head small{display:inline;letter-spacing:0;font-size:10px}.poker-actions{gap:7px;padding-top:9px}.poker-actions button{padding:10px 12px;font-size:11px}.poker-layout .arena-side{grid-template-columns:1fr}.poker-layout .board-status{font-size:11px;gap:8px}.poker-layout #countdown{white-space:nowrap}.practice-cards{gap:6px;min-height:75px;margin:12px 0}.practice-cards .poker-card{width:48px;height:69px;font-size:18px}.casino-controls{gap:7px;margin:12px 0}.casino-controls .primary,.casino-controls .outline{padding:10px 12px;font-size:12px}.casino-controls input{width:87px;padding:9px}.casino-status{font-size:14px}.casino-meta{font-size:10px}.bet-buttons button{padding:8px 13px}.holdem-pot{font-size:19px;margin:10px}.poker-layout .back{margin-bottom:10px}}
@media(max-width:620px){.hero{display:none}.page-head p{display:none}.page-head{margin-bottom:9px}.page-head h1{font-size:19px}.metrics{margin-bottom:12px}.metric{padding:6px 8px}.metric strong{font-size:14px}.metric small{font-size:8px}.game-art{height:53px}.game-bottom small{font-size:8px;white-space:nowrap}.game-bottom button{min-width:0;padding:7px 6px;font-size:9px}.game-title h3{font-size:12px}.game-extras button{font-size:8px}.game-body{padding:8px}.game-extras{gap:3px}.section-head .filters{margin-left:auto}}
#settlement-dialog{width:min(420px,calc(100% - 28px));padding:28px;text-align:center;border:1px solid #6c7f50}#settlement-dialog.loss{border-color:#786375}.settlement-emblem{font-size:38px;line-height:1.4;color:var(--lime)}.settlement.loss .settlement-emblem{color:#c2b9d5}.settlement h2{margin:7px 0;font-size:27px}.settlement-reason{font-size:13px;color:#bcc6cb;margin:10px 0}.settlement-total{font-size:42px;font-weight:850;color:var(--lime);padding:13px 0}.settlement-total.negative{color:#e8b6b7}.settlement-total small{font-size:11px;display:block;color:#99a6af;font-weight:400;margin-top:4px}.settlement-breakdown{display:grid;gap:11px;padding:17px;background:#141b21;border-radius:9px;margin:10px 0 22px;font-size:12px}.settlement-breakdown>div{display:flex;justify-content:space-between}.settlement-breakdown dt{color:#a6b1bd}.settlement-breakdown dd{margin:0;font-weight:700}.settlement-note{margin:11px 0 0}.settlement .eyebrow{font-size:9px;letter-spacing:1px}.settlement.loss h2{color:#dfcde5}
.sound-toggle{font-size:11px;color:#bccf9f;white-space:nowrap;border:1px solid #3e4933;border-radius:16px;padding:6px 10px}.four-seat-table{display:grid;grid-template-columns:minmax(100px,1fr) minmax(135px,1.3fr) minmax(100px,1fr);grid-template-rows:auto minmax(150px,auto) auto;gap:12px 9px;position:relative;min-height:355px}.direction-seat{min-width:0;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center}.direction-seat.north{grid-area:1/2}.direction-seat.south{grid-area:3/2;flex-direction:column-reverse}.direction-seat.west{grid-area:2/1}.direction-seat.east{grid-area:2/3}.seat-person{display:flex;align-items:center;gap:7px;padding:9px 10px;background:#142b2799;border:1px solid #4e6b5b;border-radius:10px;width:100%;max-width:230px;min-width:0}.seat-person>div{min-width:0;flex:1}.seat-person b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat-person small{display:block;font-size:10px;color:#a5beb1;margin-top:4px}.seat-avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#496153;color:#e5eddf;font-size:12px;flex-shrink:0}.ally .seat-avatar{background:#c2e58b;color:#254125}.direction-seat.current .seat-person{border:2px solid var(--lime);box-shadow:0 0 0 3px #d0f86f15}.seat-count{font-size:10px;color:#cee3c3;white-space:nowrap}.seat-play{min-height:75px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;width:100%}.seat-play-label{color:#bad5bd;font-size:10px;white-space:nowrap}.seat-play-cards{display:flex;justify-content:center;align-items:center;min-height:57px}.seat-play-cards .poker-card+.poker-card{margin-left:-9px}.seat-play.previous-trick .poker-card{filter:saturate(.55)}.seat-play.previous-trick .seat-play-label{color:#96b8a5}.table-center{grid-area:2/2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #77988335;border-radius:50%;background:#0e29251f;aspect-ratio:1;align-self:center;padding:10px}.center-kicker{font-size:10px;color:#92b9a1}.center-trump{font-size:29px;color:#d1f69d;line-height:1.2;margin-top:5px}.table-center>small{font-size:9px;color:#93b6a0;margin:3px 0}.center-score{font-size:11px;color:#bbd4bd;margin:6px 0}.center-score b{font-size:21px;color:var(--lime)}.center-score small{font-size:9px}.table-center>strong{font-size:10px;color:#d2e7c3}.table-center button{font-size:9px;color:#bdd58f;margin-top:5px}.poker-table:has(.four-seat-table){min-height:0}.poker-table:has(.four-seat-table) .board-status{margin-bottom:10px}
@media(max-width:620px){.sound-toggle{font-size:9px;padding:5px 6px}.header-actions{gap:7px}.crumb{display:none}.header-actions{width:100%;justify-content:flex-end}.sound-toggle{margin-right:auto}.four-seat-table{grid-template-columns:minmax(78px,1fr) minmax(100px,1.15fr) minmax(78px,1fr);grid-template-rows:auto 122px auto;min-height:312px;gap:4px 5px}.seat-person{gap:4px;padding:7px 5px;border-radius:7px;position:relative;flex-wrap:wrap}.seat-avatar{width:21px;height:21px;font-size:9px}.seat-person b{font-size:10px;max-width:80px}.seat-person small{font-size:8px;margin-top:2px}.seat-count{font-size:8px;display:block;flex-basis:100%;text-align:center;margin-top:2px}.direction-seat{gap:3px}.seat-play{min-height:60px;gap:4px}.seat-play-cards{min-height:42px}.seat-play-cards .poker-card{width:30px;height:43px;font-size:11px}.seat-play-cards .poker-card+.poker-card{margin-left:-9px}.seat-play-label{font-size:8px}.table-center{padding:5px;aspect-ratio:1;min-width:0}.center-kicker{font-size:8px}.center-trump{font-size:22px;margin-top:2px}.table-center>small{font-size:8px;margin:1px 0}.center-score{margin:3px 0;font-size:9px}.center-score b{font-size:17px}.table-center>strong{font-size:9px}.table-center button{font-size:8px;margin-top:2px}}
/* A quiet, traditional army board: solid pieces, warm paper, restrained roads. */
.military-layout .board-wrap{background:#e8e3d5;border-color:#c3bfaf;padding:18px;color:#26382f}.military-layout .board-status{color:#284c3a;font-size:14px;font-weight:700;margin-bottom:10px}.military-layout #countdown{color:#496453}.mil-meta{color:#596c5e;font-size:12px;margin-bottom:10px}.mil-meta button{color:#315b43;border:1px solid #aab7a1;border-radius:5px;padding:5px 9px}.mil-board{background:#e8e3d5;border:1px solid #b6b6a2;padding:12px;border-radius:5px;box-shadow:none;width:min(100%,510px)}.road-lines{stroke:#9ba58d;stroke-width:1.5;opacity:.7}.rail-lines{stroke:#68785e;stroke-width:4}.rail-dashes{stroke:#e8e3d5;stroke-width:1.2;stroke-dasharray:4 5}.mil-cell{padding:5px}.mil-piece{width:84%;height:82%;border-radius:4px;border:1px solid #b7ad91;background:#fffaf0;box-shadow:0 2px 1px #48513c22;font-size:clamp(13px,1.5vw,20px);letter-spacing:2px;font-weight:750}.red-piece{color:#aa302b}.blue-piece{color:#245283}.hidden-piece{background:#688275;border:1px solid #4f6b5b;color:#f0f0df;font-size:clamp(12px,1.25vw,16px);font-weight:600;letter-spacing:3px}.mil-place{width:57%;height:55%;border-radius:3px;background:#e8e3d5;border:1px solid #abb59f;color:#8a987c;font-size:10px}.camp .mil-place{background:#d6dfc8;border:1.5px solid #8a9b7f;color:#6b7f60;border-radius:50%;width:56%;height:65%}.camp .mil-piece{border-radius:5px}.base .mil-place{border-width:1px;border-style:solid;color:#7e8b70;background:#e1dfc9}.mil-cell.selected .mil-piece{outline:3px solid #e7a93a;outline-offset:1px;transform:translateY(-2px)}.target-cell:after{border:2px solid #56a36a;border-radius:5px;inset:5px;background:#73b47418}.target-dot{background:#33854c;box-shadow:none;width:8px;height:8px;right:5px;bottom:5px}.mil-legend{color:#7a8c73;font-size:10px;gap:18px}.military-layout .arena-side .panel{border-color:#354136}.military-layout .battle-log{line-height:2}.mil-piece:focus{outline:none}.military-layout .mine-counter{color:#9eac96}.military-layout .result-title{color:#355b42;font-size:20px}
@media(max-width:620px){.military-layout .board-wrap{padding:11px 8px}.mil-board{padding:6px}.mil-roads{left:6px;top:6px;width:calc(100% - 12px);height:calc(100% - 12px)}.mil-cell{padding:3px}.mil-piece{width:90%;height:85%;font-size:15px;letter-spacing:1px;border-radius:3px}.hidden-piece{font-size:12px;letter-spacing:2px}.military-layout .board-status{font-size:11px;line-height:1.5}.mil-meta{font-size:10px;margin-bottom:7px;gap:5px}.mil-meta button{font-size:10px;padding:4px 7px}.mil-legend{font-size:8px;gap:9px;margin-top:8px}.mil-place{font-size:8px}.target-cell:after{inset:3px}.military-layout .arena-side .panel:last-child{padding:12px}.military-layout .battle-log{max-height:130px;overflow:auto}.military-layout .mil-grid{grid-template-rows:repeat(12,minmax(0,1fr))}}

/* Keep all 65 grid slots aligned with the SVG in every selection state. */
.land-grid{aspect-ratio:500/780;grid-template-rows:repeat(13,minmax(0,1fr))}.land-grid>.land-node,.land-grid>.land-mountain{width:100%;height:100%;min-height:0;aspect-ratio:auto}

/* Traditional land board, visible casualty trays, deliberate movement. */
.land-board{background:linear-gradient(#eef1e8,#dfe4d6);border:2px solid #a7aea0;padding:15px;border-radius:9px;box-shadow:0 10px 22px #15231024}.land-board svg{inset:15px;width:calc(100% - 30px);height:calc(100% - 30px)}.land-grid{aspect-ratio:500/850}.land-roads{stroke:#7d8a6e;stroke-width:2}.land-rails{stroke:#3d4a3a;stroke-width:6}.land-sleepers{stroke:#eef1e8;stroke-width:2;stroke-dasharray:5 5}.land-piece{width:74%;height:62%;border:2px solid #bf5240;border-radius:8px;background:#fffdf2;box-shadow:0 3px 4px #29382038;font-family:"Microsoft YaHei",sans-serif;font-weight:600;letter-spacing:1px;color:#bf4234}.land-piece.blue{color:#285c9e;border-color:#285c9e}.land-piece.covered{background:#5b6b51;border-color:#285c9e;color:#e4ebd9;font-size:23px;letter-spacing:0}.land-station{width:32%;height:39%;border-radius:50%;background:#f5f7ef99;border:1px solid #9da88f}.land-node.camp .land-station{width:65%;height:78%;border:2px solid #7d8b70;border-radius:50%;background:radial-gradient(circle,transparent 56%,#abb59e 58%,transparent 62%),linear-gradient(45deg,transparent 49%,#c3cabb 50%,transparent 52%),linear-gradient(-45deg,transparent 49%,#c3cabb 50%,transparent 52%),#f2f5ed}.land-node.base .land-station{position:absolute;width:75%;height:82%;border:2px solid #927231;border-radius:0;color:#927231;background:transparent;align-items:end;font-size:8px}.land-node.base:before{content:'';position:absolute;width:76%;height:80%;border:2px solid #927231;pointer-events:none}.land-node.base:after{content:'大本营';position:absolute;bottom:-2px;font-size:8px;color:#927231}.land-node.land-target:after{border-radius:50%;inset:5%;border:2px solid #608de5;background:#5883e21b;z-index:2}.land-node.land-target em{display:none}.land-node.selected .land-piece{outline:2px dashed #3579d6;outline-offset:5px;transform:none}.land-mountain{font-size:32px;color:#8e9b83;letter-spacing:0}.land-moving-from{opacity:.65}.land-moving-to{outline:2px solid #779bda;outline-offset:-5px;border-radius:50%}.land-piece.land-flying{position:fixed;z-index:1100;margin:0;pointer-events:none;display:grid;place-items:center;min-width:0;min-height:0}.land-casualties{max-width:480px;margin:15px auto 4px;padding:12px;background:#f4f5ec;border:1px solid #bec5b3;border-radius:8px}.land-casualties h3{margin:0 0 10px;font-size:13px}.land-casualties h3 small{font-size:9px;color:#7e8974;font-weight:400;margin-left:7px}.land-loss-row{display:flex;gap:10px;align-items:center;padding:7px 0}.land-loss-row+.land-loss-row{border-top:1px solid #d9dece}.land-loss-row>strong{font-size:12px;min-width:59px;flex-shrink:0}.land-loss-row>strong small{display:block;font-size:9px;color:#7c8871;font-weight:400;margin-top:3px}.land-loss-pieces{display:flex;flex-wrap:wrap;gap:5px}.land-loss-chip{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#fffdf2;color:#bd4639;border:1px solid #c85c4b;border-radius:5px;padding:5px 7px;font-weight:600;font-size:12px;box-shadow:0 2px 2px #25302013}.land-loss-chip.blue{color:#285c9e;border-color:#537bac}.land-loss-chip b{font-size:10px;font-weight:500}.land-loss-empty{font-size:11px;color:#919a86}.land-combat-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;background:#101a2266;pointer-events:auto}.land-combat-card{width:min(330px,calc(100% - 40px));padding:20px 18px;background:#edf0e5;border:1px solid #9eac90;border-radius:12px;text-align:center;color:#33412c;box-shadow:0 12px 50px #0005}.land-combat-title{font-size:11px;color:#6c795f;letter-spacing:1px}.land-combat-pair{display:flex;align-items:center;justify-content:center;gap:30px;margin:22px 0}.combat-unit{display:grid;gap:8px}.combat-unit small{font-size:10px;color:#718263}.combat-unit .land-loss-chip{font-size:22px;padding:10px 14px;border-width:2px;border-radius:7px}.combat-arrow{color:#6d7d60;font-size:22px}.attacker{animation:land-collide 1.1s ease-in-out both}.defender{animation:land-impact .45s 1s ease-in-out both}.combat-unit.falls .land-loss-chip{animation:land-fall .6s 1.45s forwards}.land-combat-result{display:block;font-size:17px;line-height:1.5;animation:land-result .3s 1.3s both}.land-combat-note{display:block;font-size:10px;color:#7a896c;margin-top:12px}.land-casualties+.land-self{margin-top:12px}
@keyframes land-collide{0%,20%{transform:translateX(-18px)}75%{transform:translateX(22px)}100%{transform:translateX(0)}}@keyframes land-impact{0%,100%{transform:translateX(0)}40%{transform:translateX(8px)}}@keyframes land-fall{to{opacity:.4;filter:grayscale(.6);transform:translateY(6px)}}@keyframes land-result{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.attacker,.defender,.combat-unit.falls .land-loss-chip{animation:none}.land-combat-result{animation:none}}
@media(max-width:620px){.land-board{padding:9px;border-radius:6px}.land-board svg{inset:9px;width:calc(100% - 18px);height:calc(100% - 18px)}.land-piece{width:81%;height:65%;font-size:15px;border-width:1.5px;border-radius:6px}.land-piece.covered{font-size:20px}.land-node{padding:2px}.land-node.base:after{font-size:6px;bottom:0}.land-mountain{font-size:24px}.land-node.camp .land-station{width:62%;height:73%}.land-casualties{padding:9px;margin-top:10px}.land-casualties h3{font-size:12px;margin-bottom:5px}.land-loss-row{gap:7px;padding:6px 0}.land-loss-row>strong{min-width:52px;font-size:11px}.land-loss-chip{font-size:11px;padding:4px 5px}.land-loss-chip b{font-size:9px}.land-loss-pieces{gap:4px}
#settlement-dialog{width:min(310px,calc(100% - 44px));max-height:calc(100dvh - 48px);padding:16px 18px;overflow:auto}.settlement-emblem{font-size:23px;line-height:1}.settlement h2{font-size:21px;margin:6px 0}.settlement .eyebrow{font-size:8px;letter-spacing:.5px;margin-bottom:9px}.settlement-reason{font-size:11px;margin:7px 0}.settlement p{font-size:11px;line-height:1.5;margin:6px 0}.settlement-total{font-size:30px;padding:7px 0}.settlement-total small{font-size:9px;margin-top:2px}.settlement-breakdown{gap:7px;padding:10px 12px;margin:7px 0 12px;font-size:11px}#settlement-close{padding:10px;font-size:12px}.settlement-note{font-size:9px!important;margin:8px 0 0!important}}

@media(max-width:620px){#settlement-dialog{padding:14px 16px}.settlement-emblem{display:none}.settlement h2{font-size:20px;margin:4px 0}.settlement-total{font-size:28px;padding:4px 0}.settlement-breakdown{padding:8px 10px;gap:6px;margin:6px 0 9px}.settlement .eyebrow{margin-bottom:6px}.settlement-note{margin-top:6px!important}}

/* Circular stations and overlays use one diameter, never independent width/height. */
.land-node:not(.base) .land-station{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30%;height:auto;aspect-ratio:1/1;border-radius:50%;box-sizing:border-box}
.land-node.camp .land-station{width:62%;height:auto;aspect-ratio:1/1}
.land-node.land-target:after,.land-node.land-moving-to:after{content:'';position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:72%;height:auto;aspect-ratio:1/1;border:2px solid #608de5;border-radius:50%;box-sizing:border-box;background:#5883e21b;pointer-events:none;z-index:2}
.land-node.land-moving-to{outline:none;border-radius:0}

/* Board-local combat effects: no backdrop, modal, or board-wide shaking. */
.land-impact-fx{position:fixed;width:0;height:0;z-index:1102;pointer-events:none;--fx:#ffd66a;--glow:#d59f35}
.land-impact-ring,.land-impact-core,.land-impact-spark{position:absolute;display:block;left:0;top:0;pointer-events:none}
.land-impact-ring{width:var(--size);aspect-ratio:1;border:3px solid var(--fx);border-radius:50%;transform:translate(-50%,-50%);animation:land-shock .8s ease-out both}
.land-impact-core{width:calc(var(--size)*.72);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fffbd8 0%,var(--fx) 25%,transparent 70%);transform:translate(-50%,-50%);animation:land-flare .7s ease-out both}
.land-impact-spark{width:5px;height:3px;background:var(--fx);box-shadow:0 0 5px var(--glow);animation:land-spark .8s var(--delay) ease-out both}
.land-impact-label{position:absolute;top:calc(var(--size)*.68);left:0;transform:translateX(-50%);white-space:nowrap;font-size:11px;font-weight:700;color:var(--fx);background:#1e282bea;border:1px solid var(--fx);padding:3px 6px;border-radius:4px;animation:land-hit-label 1.25s both}
.fx-bomb{--fx:#ffb43e;--glow:#f5661b}.fx-bomb .land-impact-core{width:calc(var(--size)*1.5);background:radial-gradient(circle,#fff3b0,#ffb13c 20%,#df572477 48%,#4f423a88 60%,transparent 72%);animation:land-explosion 1.35s both}
.fx-mine{--fx:#d6ac72;--glow:#9c633a}.fx-mine .land-impact-core{background:radial-gradient(ellipse,#ffd588,#81634699 48%,transparent 70%);animation:land-explosion 1.1s both}.fx-mine .land-impact-spark{width:6px;height:6px;border-radius:1px;background:#8b6742}
.fx-defuse{--fx:#60e4bc;--glow:#32a8a2}.fx-defuse .land-impact-core{background:transparent;border:2px dashed #70eaca;border-radius:50%;animation:land-disarm 1.5s both}.fx-defuse .land-impact-ring{animation:land-disarm 1.4s both}
.fx-clash{--fx:#d5ebff;--glow:#8fc5e9}.fx-clash .land-impact-core{border-radius:0;background:linear-gradient(45deg,transparent 45%,#fff 48%,#a9dbff 52%,transparent 55%),linear-gradient(-45deg,transparent 45%,#fff 48%,#a9dbff 52%,transparent 55%);animation:land-flare 1s both}
.fx-capture .land-impact-core{border-radius:0;background:linear-gradient(135deg,transparent 42%,#fff6a8 48%,#ffca48 52%,transparent 58%)}
.fx-repel{--fx:#86bdff;--glow:#497ab2}.fx-repel .land-impact-core{background:#7cb5e433;border:3px solid #a1ceff;border-radius:45% 45% 55% 55%;animation:land-disarm 1s both}
.fx-flag{--fx:#ffe76c;--glow:#f4b42d}.fx-flag .land-impact-spark{width:5px;height:8px}
@keyframes land-shock{from{opacity:.9;transform:translate(-50%,-50%) scale(.2)}to{opacity:0;transform:translate(-50%,-50%) scale(1.55)}}
@keyframes land-flare{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.3)}}
@keyframes land-explosion{0%{opacity:0;transform:translate(-50%,-50%) scale(.15)}15%{opacity:.95}55%{opacity:.65}100%{opacity:0;transform:translate(-50%,-65%) scale(1.5)}}
@keyframes land-spark{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(130deg)}}
@keyframes land-disarm{0%{opacity:0;transform:translate(-50%,-50%) scale(1.2)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(.4)}}
@keyframes land-hit-label{0%{opacity:0}15%,80%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.land-impact-spark{display:none}.land-impact-fx *{animation:none!important}.land-impact-core{opacity:.35}.land-impact-ring{opacity:.6}}

.land-node.land-target:after{width:46%}

.match-clock{position:fixed;top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:1050;display:flex;align-items:center;gap:9px;max-width:calc(100vw - 24px);padding:8px 14px;background:#172022f2;border:1px solid #66796a;border-radius:12px;box-shadow:0 4px 18px #0004;color:#ecf5e7;pointer-events:none;font-variant-numeric:tabular-nums}
.match-clock[hidden]{display:none}.match-clock-label{font-size:11px;max-width:150px;line-height:1.4}.match-clock-digits{font-size:27px;line-height:1;min-width:2ch;text-align:center;display:block}.match-clock small{font-size:10px;color:#bac8b6}
.match-clock.urgent{background:#4b201ef5;border-color:#ffb681;box-shadow:0 4px 20px #45140c66}.match-clock.urgent .match-clock-digits{font-size:54px;color:#ffd398}.match-clock.urgent .match-clock-label{color:#ffe2cf}
/* All game clocks are centered on the viewport, regardless of sidebar visibility. */

.match-clock.own-clock{background:#173c2df5;border-color:#78c591;color:#deffe8}.match-clock.other-clock{background:#172e50f5;border-color:#79afe2;color:#e1efff}.match-clock.other-clock.urgent{background:#402356f5;border-color:#d0a0ed}.match-clock.other-clock.urgent .match-clock-digits{color:#eed0ff}.match-clock.own-clock.urgent{background:#4b2918f5;border-color:#ffc079}
.four-seat-table{grid-template-rows:auto minmax(240px,auto) auto;align-items:start;overflow:visible}.direction-seat{align-self:start;overflow:visible}.direction-seat.south{flex-direction:column}.direction-seat.north,.direction-seat.south{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;max-width:440px;width:100%;justify-self:center;gap:6px}.direction-seat.north{grid-row:1}.direction-seat.south{grid-row:3}.direction-seat.north .seat-history,.direction-seat.south .seat-history{grid-column:1/-1}.seat-play{min-height:70px;border:1px solid #87b09c40;border-radius:6px;padding:4px}.seat-previous{width:100%;text-align:center;min-height:65px;opacity:.82}.seat-previous small,.seat-history>small{display:block;font-size:9px;color:#b7caba;margin-bottom:4px}.seat-previous .poker-card{width:25px;height:36px;font-size:10px}.seat-previous .poker-card+.poker-card{margin-left:1px}.seat-history{width:100%;background:#0d201bb3;border-radius:5px;padding:5px;min-width:0}.seat-history-scroll{max-height:62px;overflow:auto;color:#e9f0df;font-size:10px;line-height:1.8}.seat-history-scroll b{color:#8bab96;font-weight:400;margin-right:3px}.seat-history-scroll span{display:inline-block;margin-right:3px}.red-ink{color:#ff9da2}.north .seat-history-scroll,.south .seat-history-scroll{display:flex;gap:9px;white-space:nowrap;max-height:32px}.just-played .seat-person{box-shadow:0 0 0 3px #ffe28a;border-color:#ffe28a}.just-played .seat-play-label{color:#ffe28a;font-weight:700}.just-dealt{animation:poker-new-card .4s ease-out}.seat-play-cards{flex-wrap:nowrap}.seat-play-cards .poker-card+.poker-card{margin-left:2px}
@keyframes poker-new-card{from{opacity:.2;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:620px){.four-seat-table{grid-template-columns:minmax(0,1fr) minmax(70px,.85fr) minmax(0,1fr);grid-template-rows:auto minmax(225px,auto) auto;gap:10px 5px;min-height:0}.direction-seat{gap:5px}.direction-seat.north,.direction-seat.south{max-width:100%;grid-template-columns:1fr 1fr 1fr;gap:5px}.seat-person{min-height:58px}.seat-play{min-height:64px;padding:3px}.seat-play-cards{min-height:39px}.seat-play-cards .poker-card{width:24px;height:35px;font-size:10px}.seat-previous{min-height:55px}.seat-previous .poker-card{width:21px;height:31px;font-size:9px}.seat-history-scroll{max-height:50px;font-size:9px}.seat-history{padding:4px}.seat-play-label{white-space:normal;text-align:center;line-height:1.4}.table-center{border-radius:14px;width:100%;font-size:9px}.poker-hand-panel{margin-bottom:90px}.poker-actions{position:sticky;bottom:76px;z-index:20;background:#1c2525f5;padding:8px 4px;border-radius:8px}.poker-hand{padding-bottom:8px}.poker-table{overflow:visible}}
@media(prefers-reduced-motion:reduce){.just-dealt{animation:none}}

.seat-bid{padding:3px;border:1px solid #749483;border-radius:5px;text-align:center}.seat-bid small{font-size:10px;display:block}.seat-bid .poker-card{width:24px;height:30px;font-size:10px}.winning-bid{border-color:#ffe289;background:#72602244}.poker-history-detail summary{cursor:pointer;font-size:10px;color:#bfcebd}.poker-history-detail[open]{position:relative;z-index:40}.poker-history-detail[open] .seat-history{position:absolute;bottom:20px;width:190px;max-width:85vw;box-shadow:0 5px 25px #0008}.east .poker-history-detail[open] .seat-history{right:0}.poker-history-detail .seat-history-scroll{display:block;max-height:160px;white-space:normal}.poker-history-detail{grid-column:1/-1}.poker-screen #poker-menu{margin-bottom:12px}.poker-menu-body{padding:12px;background:#182621;border:1px solid #63836f;border-radius:10px}.poker-menu-body>button{padding:10px}.poker-menu-body .arena-side{display:block}.poker-screen .seat-previous{min-height:0}.poker-screen .seat-previous .poker-card{width:20px;height:27px;font-size:9px}
@media(max-width:620px){
 body.poker-screen{height:100dvh;overflow:hidden}.poker-screen .sidebar,.poker-screen .shell>header,.poker-screen footer,.poker-screen .page-head{display:none}
 .poker-screen .shell{margin:0;padding:0;height:100dvh;min-height:0}.poker-screen #main{height:100%;padding:54px 6px max(5px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:4px;overflow:hidden}
 .poker-screen .back{position:fixed;top:15px;left:8px;font-size:11px;margin:0;z-index:1060}.poker-screen #poker-menu{position:fixed;right:8px;top:15px;z-index:1060;font-size:11px;margin:0}.poker-screen #poker-menu>summary{cursor:pointer;list-style:none}.poker-screen .poker-menu-body{position:fixed;right:6px;top:52px;width:min(360px,calc(100vw - 12px));max-height:calc(100dvh - 65px);overflow:auto;box-shadow:0 6px 35px #000a}
 .poker-screen .match-clock{padding:6px 8px;gap:5px;max-width:calc(100vw - 170px)}.poker-screen .match-clock-label{font-size:9px;max-width:88px}.poker-screen .match-clock-digits{font-size:22px}.poker-screen .match-clock small{display:none}.poker-screen .match-clock.urgent .match-clock-digits{font-size:40px}
 .poker-screen .poker-layout{display:flex;min-height:0;flex:1;margin:0}.poker-screen .poker-layout>section{display:flex;flex-direction:column;min-height:0;width:100%;gap:4px}.poker-screen .poker-table{padding:5px;flex:1;min-height:0;display:flex;flex-direction:column;overflow:visible;border-radius:9px}.poker-screen .board-status{padding:0;min-height:20px;margin:0;font-size:10px}.poker-screen #countdown{display:none}
 .poker-screen .four-seat-table{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(65px,.8fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr);gap:3px;align-items:center;padding:0}
 .poker-screen .direction-seat{align-self:center;gap:2px;padding:2px;min-height:0;max-height:100%;border-radius:6px}.poker-screen .direction-seat.north,.poker-screen .direction-seat.south{grid-template-columns:1fr 1fr 1fr;gap:2px;max-width:100%;width:100%}.poker-screen .seat-person{padding:2px;min-height:0;gap:2px;flex-wrap:wrap}.poker-screen .seat-person b{font-size:10px;max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.poker-screen .seat-person small,.poker-screen .seat-count{font-size:8px}.poker-screen .seat-avatar{display:none}
 .poker-screen .seat-play{min-height:0;padding:2px}.poker-screen .seat-play-label{font-size:9px;line-height:1.2}.poker-screen .seat-play-cards{min-height:29px}.poker-screen .seat-play-cards .poker-card{width:23px;height:30px;font-size:10px;padding:1px}.poker-screen .seat-previous small{font-size:8px;margin:0}.poker-screen .seat-previous .poker-card{width:19px;height:23px;font-size:9px;padding:1px}.poker-screen .poker-history-detail summary{font-size:8px}.poker-screen .seat-bid{padding:1px;grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:3px}.poker-screen .seat-bid small{font-size:8px}.poker-screen .seat-bid .poker-card{width:19px;height:22px;font-size:9px;padding:1px}.poker-screen .table-center{padding:3px;font-size:9px;min-height:0}.poker-screen .center-trump{font-size:23px;line-height:1.1}.poker-screen .center-kicker,.poker-screen .table-center>button{display:none}.poker-screen .center-score{margin:4px 0;font-size:10px}.poker-screen .center-score b{font-size:18px}.poker-screen .table-center strong{font-size:10px}.poker-screen .poker-bottom{padding:0;margin:0;font-size:9px}.poker-screen .poker-bottom .poker-card{height:20px;width:20px;font-size:9px}
 .poker-screen .poker-hand-panel{flex:none;padding:5px;margin:0;border-radius:8px}.poker-screen .poker-hand-panel .section-head{margin:0 0 4px;min-height:16px}.poker-screen .poker-hand-panel h3{font-size:11px;margin:0}.poker-screen .poker-hand-panel h3 small{display:inline;font-size:9px}.poker-screen .poker-hand-panel .section-head>span{font-size:9px}.poker-screen .poker-hand{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:2px;padding:3px 0 0;margin:0}.poker-screen .poker-hand .poker-card{width:100%;height:32px;padding:0;font-size:10px;min-width:0;margin:0;border-radius:3px}.poker-screen .poker-hand .picked{transform:translateY(-3px);outline:2px solid #d7ff72;z-index:1}.poker-screen .poker-actions{position:static;margin:4px 0 0;padding:2px;min-height:34px;gap:5px;flex-wrap:nowrap}.poker-screen .poker-actions button{padding:8px 9px;font-size:11px;white-space:nowrap}.poker-screen .poker-actions span{font-size:10px}
 .poker-screen .poker-live-bid{position:static;transform:none;width:100%;max-width:none;flex:none;padding:4px 7px;margin:0;order:2;box-shadow:none}.poker-screen .poker-live-bid strong{font-size:9px;margin:0 0 2px}.poker-screen .poker-live-bid button{padding:6px;font-size:10px}
}

.room-voice{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 12px;padding:9px;border:1px solid #455d50;border-radius:9px;background:#1a2924}.room-voice button{padding:8px 11px;border:1px solid #6f8e76;border-radius:7px;font-size:12px}.room-voice span{font-size:11px;color:#b4cbbb}.room-voice.mic-on{border-color:#7ae598}.room-voice.mic-on button[data-voice="mic"]{color:#9cffb7}

.watch-panel{display:flex;flex-wrap:wrap;gap:7px;align-items:center;background:#253044;padding:10px;border-radius:9px;margin-bottom:10px;font-size:12px}.watch-panel button{border:1px solid #8a9ebc;padding:7px;border-radius:5px}.watch-panel span{color:#ffce97}.watch-panel button:disabled{opacity:.5}

.poker-live-bid{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:1040;background:#233d2df5;border:1px solid #b9df82;border-radius:10px;padding:9px 12px;box-shadow:0 5px 20px #0005;max-width:calc(100vw - 20px);width:max-content}.poker-live-bid strong{font-size:11px;color:#d6f5b2;display:block;margin-bottom:6px}.poker-live-bid>div{display:flex;gap:5px;flex-wrap:wrap}.poker-live-bid button{font-size:12px;padding:9px}.poker-live-bid small{font-size:11px;color:#bdcbb6}@media(max-width:620px){.poker-live-bid{bottom:82px}}
/* Real card faces and per-seat exposed cards. */
.poker-card{position:relative;overflow:hidden;display:inline-block!important;vertical-align:middle;color:#1a2925}.poker-card.red-card{color:#b72d37}.card-corner{position:absolute;display:flex;flex-direction:column;align-items:center;font-size:clamp(7px,.72em,13px);line-height:1;letter-spacing:-.5px}.card-corner b{font-weight:800}.card-corner i{font-style:normal;font-size:.9em}.card-corner.top{top:2px;left:2px}.card-corner.bottom{bottom:2px;right:2px;transform:rotate(180deg)}.card-pip{position:absolute;inset:0;display:grid;place-items:center;font-size:1.1em}.poker-screen .seat-history{grid-column:1/-1;padding:2px}.poker-screen .seat-history>small{margin:0;font-size:8px}.poker-screen .seat-history-scroll{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;max-height:none;min-height:23px;white-space:nowrap;scrollbar-width:thin}.history-trick{display:flex;flex:none;gap:1px;align-items:center}.history-trick>small{font-size:8px;color:#8fab9b}.poker-screen .seat-history .poker-card{width:19px;height:25px;font-size:9px;margin:0;flex:none;padding:0}.poker-screen .seat-history-scroll span{margin:0}.poker-screen .seat-history .card-corner{font-size:7px}.poker-screen .seat-history .card-pip{font-size:8px;opacity:.55}
@media(max-width:620px){.poker-screen .poker-hand .card-corner{font-size:9px}.poker-screen .poker-hand .card-pip{font-size:10px;opacity:.65}.poker-screen .seat-play .card-corner{font-size:8px}.poker-screen .seat-previous .card-corner,.poker-screen .seat-bid .card-corner{font-size:6px}.poker-screen .seat-play .card-pip{opacity:.55}.poker-screen .seat-previous .card-pip,.poker-screen .seat-bid .card-pip{display:none}.poker-screen .seat-history .card-corner.bottom{display:none}.poker-screen .seat-history .card-corner.top{left:1px;top:1px}.poker-screen .seat-history-scroll{min-height:25px}.poker-screen .seat-history{max-width:100%}}
@media(max-width:620px){.poker-screen .four-seat-table{grid-template-rows:auto minmax(0,1fr) auto}.poker-screen .direction-seat{max-height:none;flex-shrink:0}.poker-screen .direction-seat.north,.poker-screen .direction-seat.south{grid-template-rows:auto auto auto}.poker-screen .north .seat-person,.poker-screen .south .seat-person{grid-column:1;grid-row:1}.poker-screen .north .seat-play,.poker-screen .south .seat-play{grid-column:2;grid-row:1}.poker-screen .north .seat-previous,.poker-screen .south .seat-previous{grid-column:3;grid-row:1}.poker-screen .north .seat-bid,.poker-screen .south .seat-bid{grid-row:2}.poker-screen .north .seat-history,.poker-screen .south .seat-history{grid-row:3}.poker-screen .seat-play-cards{min-height:27px}.poker-screen .direction-seat>*{flex-shrink:0}}
@media(max-width:620px) and (max-height:740px){.poker-screen #main{padding-top:49px}.poker-screen .poker-hand .poker-card{height:28px}.poker-screen .poker-hand-panel{padding:3px}.poker-screen .seat-play-cards{min-height:24px}.poker-screen .seat-play-cards .poker-card{height:24px;width:21px}.poker-screen .seat-play .card-corner{font-size:7px}.poker-screen .seat-person{line-height:1.05}.poker-screen .seat-person b{font-size:9px}.poker-screen .seat-previous .poker-card{height:20px}.poker-screen .seat-history .poker-card{height:21px;width:17px}.poker-screen .seat-history-scroll{min-height:21px}.poker-screen .seat-history>small{line-height:1.1;font-size:7px}.poker-screen .seat-history{padding:1px}.poker-screen .seat-bid .poker-card{height:19px}.poker-screen .seat-play-label{font-size:8px}.poker-screen .poker-actions{min-height:31px}.poker-screen .poker-actions button{padding:7px 8px}.poker-screen .board-status{min-height:16px}}
@media(max-width:620px){.poker-screen .four-seat-table{grid-template-rows:auto auto auto;align-content:space-between}.poker-screen .direction-seat{align-self:center}.poker-screen .seat-person small{margin-top:1px}.poker-screen .seat-count{margin-top:1px}}
.hand-result{font-size:12px;padding:8px;border:1px solid #91b17c;border-radius:7px;background:#24342c;line-height:1.5}.hand-result p{font-size:11px;margin:4px 0}.hand-result .poker-card{width:23px;height:32px;font-size:11px}.poker-screen .hand-result{font-size:10px;padding:5px}.poker-screen .hand-result p{font-size:9px}.poker-screen .hand-result .poker-card{width:18px;height:24px;font-size:9px}
@media(max-width:620px) and (max-height:740px){.poker-screen .west .seat-person,.poker-screen .east .seat-person{height:24px;min-height:0;line-height:1;align-items:center}.poker-screen .west .seat-play,.poker-screen .east .seat-play{height:39px;min-height:0}.poker-screen .west .seat-previous,.poker-screen .east .seat-previous{height:25px;line-height:1}.poker-screen .west .seat-previous small,.poker-screen .east .seat-previous small{line-height:8px}.poker-screen .west .seat-history,.poker-screen .east .seat-history{height:30px;line-height:1}.poker-screen .west .seat-history-scroll,.poker-screen .east .seat-history-scroll{line-height:1;min-height:20px}.poker-screen .seat-history small{line-height:8px}.poker-screen .west .seat-count,.poker-screen .east .seat-count{margin:0;font-size:7px}.poker-screen .west .seat-person b,.poker-screen .east .seat-person b{font-size:8px}.poker-screen .west .seat-person small,.poker-screen .east .seat-person small{font-size:7px}}
.revolt-option{display:flex;align-items:center;gap:9px;font-size:13px;margin:16px 0 5px}.revolt-option input{width:19px;height:19px;accent-color:#c9f87a}
@media(max-width:620px){.poker-screen.poker-many .poker-hand{grid-template-columns:repeat(16,minmax(0,1fr))}.poker-screen.poker-many .poker-hand .poker-card{height:25px}.poker-screen.poker-many .poker-hand .card-corner{font-size:7px}.poker-screen.poker-many .poker-hand .card-pip{display:none}.poker-screen.poker-preplay .seat-previous,.poker-screen.poker-preplay .seat-history{display:none}.poker-screen.poker-preplay .four-seat-table{grid-template-rows:auto 1fr auto}.poker-screen .hand-result{max-height:70px;overflow:auto}}

/* Large overlapping hands: each exposed corner remains a selectable target. */
.poker-screen .poker-hand{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));grid-auto-rows:82px;gap:4px 0;padding:8px 48px 28px 0;overflow:visible;isolation:isolate}
.poker-screen .poker-hand .poker-card{width:78px;height:106px;min-width:0;margin:0;padding:0;font-size:26px;position:relative;overflow:hidden;border-radius:7px;box-shadow:-2px 0 4px #0004}
.poker-screen .poker-hand .card-corner{font-size:20px;line-height:1}.poker-screen .poker-hand .card-corner.top{left:4px;top:4px}.poker-screen .poker-hand .card-pip{font-size:32px;opacity:.6}.poker-screen .poker-hand .picked{transform:translateY(-8px);outline:2px solid #dcff87;z-index:2}
@media(max-width:620px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{grid-template-columns:repeat(13,minmax(0,1fr));grid-auto-rows:32px;gap:2px 0;padding:5px 24px 23px 0}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:46px;height:54px;border-radius:4px;font-size:17px;box-shadow:-1px 0 2px #0005}
 .poker-screen .poker-hand .card-corner,.poker-screen.poker-many .poker-hand .card-corner{font-size:14px;letter-spacing:-.5px;line-height:1}.poker-screen .poker-hand .card-corner.top{left:2px;top:2px}.poker-screen .poker-hand .card-corner.bottom{right:2px;bottom:2px}.poker-screen .poker-hand .card-pip{display:grid;font-size:20px;opacity:.4}.poker-screen .poker-hand .picked{transform:translateY(-5px);z-index:2}
 .poker-screen .seat-person small,.poker-screen .seat-count{line-height:1}.poker-screen .seat-history{padding:1px}.poker-screen .seat-history>small{line-height:9px}.poker-screen .seat-history-scroll{min-height:21px}.poker-screen .seat-history .poker-card{height:21px}
}
@media(max-width:620px) and (max-height:740px){.poker-screen .north .seat-person,.poker-screen .south .seat-person{height:30px}.poker-screen .north .seat-play,.poker-screen .south .seat-play{min-height:0;padding:1px}.poker-screen .seat-play-cards{min-height:20px}.poker-screen .seat-play-cards .poker-card{height:21px}.poker-screen .west .seat-person,.poker-screen .east .seat-person{height:21px}.poker-screen .west .seat-play,.poker-screen .east .seat-play{height:34px}.poker-screen .west .seat-previous,.poker-screen .east .seat-previous{height:23px}.poker-screen .west .seat-history,.poker-screen .east .seat-history{height:28px}.poker-screen .direction-seat{gap:1px}.poker-screen .seat-bid .poker-card{height:18px}}
.poker-screen .poker-hand .picked{z-index:auto}
@media(max-width:620px) and (max-height:740px){.poker-screen .west .seat-person,.poker-screen .east .seat-person{height:18px}.poker-screen .west .seat-play,.poker-screen .east .seat-play{height:30px}.poker-screen .west .seat-previous,.poker-screen .east .seat-previous{height:20px}.poker-screen .west .seat-history,.poker-screen .east .seat-history{height:25px}.poker-screen .seat-play-cards{min-height:16px}.poker-screen .seat-play-cards .poker-card{height:18px}.poker-screen .north .seat-person,.poker-screen .south .seat-person{height:26px}.poker-screen .seat-history-scroll{min-height:18px}.poker-screen .seat-history .poker-card{height:18px}.poker-screen .seat-history>small{line-height:8px}.poker-screen .seat-previous .poker-card{height:17px}.poker-screen .seat-bid .poker-card{height:16px}}
.poker-screen .poker-layout{grid-template-columns:minmax(0,1fr)}

/* v4.10: exact horizontal overlaps, readable exposed card corners. */
.poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{grid-template-columns:repeat(auto-fill,52px);grid-auto-rows:82px;gap:4px 0;padding-right:26px}
.poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:60px;height:80px;font-size:22px;margin:0;padding:0}
.poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-40px}
.poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:17px}
.poker-screen .seat-history .card-corner.bottom,.poker-screen .seat-previous .card-corner.bottom{display:none}
.poker-screen .seat-history-scroll{min-height:80px}.history-trick{gap:0;margin-right:8px}
.poker-screen .seat-previous>div{display:flex;justify-content:center;overflow-x:auto}
@media(max-width:620px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{grid-template-columns:repeat(13,32px);grid-auto-rows:32px;padding-right:16px;max-height:none;overflow-y:hidden;overflow-x:auto}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:48px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:36px;height:42px;font-size:16px}
 .poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-24px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:11px;letter-spacing:-1px}
 .poker-screen .seat-history-scroll{min-height:42px;height:42px}
 .poker-screen .west .seat-history,.poker-screen .east .seat-history{height:52px}
 .poker-screen .west .seat-previous,.poker-screen .east .seat-previous{height:52px}
}

@media(max-width:620px){
 .poker-screen .west,.poker-screen .east{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}
 .poker-screen .west .seat-person,.poker-screen .east .seat-person,.poker-screen .west .seat-play,.poker-screen .east .seat-play{grid-column:1/-1}
 .poker-screen .west .seat-history,.poker-screen .east .seat-history{grid-column:2;grid-row:3;min-width:0;height:44px}
 .poker-screen .west .seat-previous,.poker-screen .east .seat-previous{grid-column:1;grid-row:3;min-width:0;height:44px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{height:34px}
 .poker-screen .seat-history-scroll{height:34px;min-height:34px;scrollbar-width:none}
 .poker-screen .poker-hand{scrollbar-width:thin}
}

@media(max-width:620px){.poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{grid-auto-rows:28px}}

.poker-screen .seat-previous>div{scrollbar-width:none}

@media(max-width:620px){.poker-screen .poker-hand{scrollbar-width:none}.poker-screen .poker-hand::-webkit-scrollbar{display:none}}

@media(max-width:620px) and (max-height:740px){.poker-screen #main{padding-top:43px}}

/* Card faces must not inherit legacy history text styles. */
.poker-screen .seat-history .card-corner{display:flex;flex-direction:column;align-items:center;margin:0;line-height:1}
.poker-screen .seat-history .card-corner b{color:inherit;font-weight:800;margin:0}
.poker-screen .seat-history .card-pip{display:grid;place-items:center;margin:0;font-size:24px;opacity:.4}
.poker-screen .seat-history .card-corner.bottom{display:none}
.poker-screen .center-trump{color:#f0f1e3;display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
.poker-screen .center-trump.trump-red{color:#ff8892}
.center-trump svg{width:28px;height:30px;fill:currentColor;flex:none}.center-trump span{font-size:13px;font-weight:700}
@media(max-width:620px){.center-trump svg{width:18px;height:20px}.center-trump span{font-size:11px}.poker-screen .seat-history .card-pip{font-size:16px}}

@media(min-width:621px){
 .poker-screen .seat-history-scroll{flex-wrap:wrap;overflow:visible;height:auto;max-height:none;row-gap:5px}
 .poker-screen .history-trick{max-width:100%;flex-wrap:wrap}
 .poker-screen .seat-previous>div{flex-wrap:wrap;overflow:visible}
 .poker-screen .poker-hand{overflow:visible;max-width:100%;grid-template-columns:repeat(auto-fill,52px)}
}

/* v4.12: dedicated desktop play surface, with no page or hand scrolling. */
.poker-screen .center-trump{color:#18221f;background:#f4f1df;border:1px solid #bac6ae;border-radius:6px;padding:3px 6px;margin:0;line-height:1}
.poker-screen .center-trump.trump-red{color:#be2433}
.poker-screen .table-center{aspect-ratio:auto;min-width:0;width:100%;max-width:100%;border-radius:12px;overflow-wrap:anywhere}
@media(min-width:621px){
 body.poker-screen{height:100dvh;overflow:hidden}
 .poker-screen .sidebar,.poker-screen .shell>header,.poker-screen footer,.poker-screen .page-head{display:none}
 .poker-screen .shell{margin:0;padding:0;height:100dvh;min-height:0}
 .poker-screen #main{height:100%;padding:48px 12px 8px;display:flex;flex-direction:column;gap:4px;overflow:hidden;max-width:none}
 .poker-screen .back{position:fixed;top:16px;left:14px;margin:0;z-index:1060}
 .poker-screen #poker-menu{position:fixed;top:14px;right:14px;z-index:1060;margin:0}
 .poker-screen .poker-menu-body{position:fixed;right:12px;top:48px;width:340px;max-height:calc(100dvh - 60px);overflow:auto}
 .poker-screen .poker-layout{display:flex;flex:1;min-height:0;margin:0}
 .poker-screen .poker-layout>section{display:flex;flex-direction:column;width:100%;min-height:0;gap:4px}
 .poker-screen .poker-table{flex:1;min-height:0;padding:6px;display:flex;flex-direction:column}
 .poker-screen .board-status{display:none}
 .poker-screen .four-seat-table{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(140px,.7fr) minmax(0,1fr);grid-template-rows:1fr 1fr 1fr;gap:4px;align-items:center}
 .poker-screen .direction-seat{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3px;align-self:center;width:100%;max-width:none;min-height:0}
 .poker-screen .north,.poker-screen .south{width:56%;max-width:780px}
 .poker-screen .seat-person{padding:3px;min-height:0;max-width:none;height:34px;gap:3px;overflow:hidden}
 .poker-screen .seat-person small{font-size:8px;margin:0}.poker-screen .seat-person b{font-size:10px}.poker-screen .seat-avatar{display:none}
 .poker-screen .seat-count{font-size:9px}.poker-screen .seat-play{padding:2px;gap:1px;min-height:0;height:55px}
 .poker-screen .seat-play-label{font-size:9px}.poker-screen .seat-play-cards{min-height:0}
 .poker-screen .seat-play-cards .poker-card{width:30px;height:38px;font-size:13px}
 .poker-screen .seat-previous{min-height:0}.poker-screen .seat-previous small{margin:0;font-size:8px}
 .poker-screen .seat-history{grid-column:1/-1;padding:1px}
 .poker-screen .seat-history-scroll{min-height:0;gap:2px;row-gap:2px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:36px;height:36px;font-size:14px}
 .poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-24px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:11px}
 .poker-screen .history-trick{margin:0 2px 0 0}.poker-screen .seat-bid{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:3px;padding:0;height:20px}
 .poker-screen .seat-bid .poker-card{width:18px;height:18px}.poker-screen .seat-bid small{font-size:8px}
 .poker-screen .table-center{padding:4px}.poker-screen .center-kicker{display:none}.poker-screen .center-score{margin:2px}
 .poker-screen .poker-hand-panel{padding:5px;margin:0;flex:none}
 .poker-screen .poker-hand-panel .section-head{margin:0;min-height:18px}.poker-screen .poker-hand-panel h3{font-size:12px;margin:0}
 .poker-screen .poker-hand{grid-template-columns:repeat(auto-fill,40px);grid-auto-rows:44px;gap:3px 0;padding:7px 20px 22px 0;overflow:visible}
 .poker-screen .poker-hand .poker-card{width:60px;height:65px;font-size:20px}.poker-screen .poker-hand .card-corner{font-size:16px}
 .poker-screen .poker-actions{position:static;min-height:30px;padding:2px;margin:0}.poker-screen .poker-actions button{padding:7px 12px;font-size:11px}
 .poker-screen .poker-live-bid{position:static;transform:none;width:100%;max-width:none;padding:4px;margin:0;order:2}
}
@media(max-width:620px){
 .poker-screen .board-status{display:none}
 .poker-screen .four-seat-table{grid-template-rows:auto minmax(0,1fr) auto;align-content:stretch}
 .poker-screen .table-center{align-self:center;padding:2px}.poker-screen .table-center>small{line-height:1.15;margin:1px 0}
 .poker-screen .table-center .center-trump{padding:2px;gap:2px}.poker-screen .center-trump svg{width:14px;height:16px}
 .poker-screen .center-trump span{font-size:10px}
}

@media(min-width:621px){
 .poker-screen .direction-seat .seat-person{grid-column:1;grid-row:1}
 .poker-screen .direction-seat .seat-play{grid-column:2;grid-row:1}
 .poker-screen .direction-seat .seat-previous{grid-column:3;grid-row:1}
 .poker-screen .direction-seat .seat-bid{grid-column:1/-1;grid-row:2}
 .poker-screen .direction-seat .seat-history{grid-column:1/-1;grid-row:3}
}

@media(max-width:620px){
 .poker-screen .north:has(.seat-bid) .seat-person,.poker-screen .south:has(.seat-bid) .seat-person{height:48px;padding-bottom:23px;align-items:flex-start}
 .poker-screen .north .seat-bid,.poker-screen .south .seat-bid{grid-column:1;grid-row:1;align-self:end;height:20px;margin:0 2px 2px;min-width:0;gap:1px;overflow:hidden}
 .poker-screen .north .seat-bid small,.poker-screen .south .seat-bid small{font-size:7px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{height:32px}
 .poker-screen .seat-history-scroll{height:32px;min-height:32px}
 .poker-screen .west .seat-history,.poker-screen .east .seat-history,.poker-screen .west .seat-previous,.poker-screen .east .seat-previous{height:42px}
 .poker-screen .table-center>small,.poker-screen .table-center strong{font-size:8px;line-height:1.1}
 .poker-screen .center-score{margin:1px 0}
}

@media(min-width:621px) and (max-height:760px){
 .poker-screen .seat-play{height:48px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{height:32px}
 .poker-screen .poker-hand{grid-auto-rows:40px}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .seat-history .poker-card{height:30px}
 .poker-screen .seat-history-scroll{height:30px;min-height:30px}
}

/* Table mini-cards show only corner indices, never an overlapping center pip. */
.poker-screen .four-seat-table .poker-card .card-pip,
.poker-screen .poker-bottom .poker-card .card-pip,
.poker-screen .hand-result .poker-card .card-pip{display:none}

/* v4.14: center actual cards instead of an empty full-width grid. */
@media(min-width:621px){
 .poker-screen .poker-hand{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:4px 0;padding-right:20px;padding-bottom:8px}
 .poker-screen .poker-hand .poker-card{flex:none;margin:0 -20px 0 0}
 .poker-screen .seat-history-scroll{justify-content:center}
 .poker-screen .seat-history>small{text-align:center}
 .poker-screen .four-seat-table{width:100%;max-width:1800px;align-self:center}
}
@media(min-width:1000px) and (min-height:850px){
 .poker-screen .poker-hand{padding-right:28px;gap:7px 0}
 .poker-screen .poker-hand .poker-card{width:84px;height:105px;margin-right:-28px;border-radius:7px}
 .poker-screen .poker-hand .card-corner{font-size:23px}.poker-screen .poker-hand .card-pip{font-size:34px}
 .poker-screen .poker-hand-panel h3{font-size:16px}.poker-screen .poker-hand-panel .section-head{min-height:25px}
 .poker-screen .poker-actions{min-height:36px;justify-content:center}.poker-screen .poker-actions button{font-size:14px;padding:9px 18px}
 .poker-screen .seat-person{height:46px;padding:5px}.poker-screen .seat-person b{font-size:15px}.poker-screen .seat-person small,.poker-screen .seat-count{font-size:12px}
 .poker-screen .seat-play{height:86px}.poker-screen .seat-play-label{font-size:12px}
 .poker-screen .seat-play-cards .poker-card{width:48px;height:64px;font-size:20px}
 .poker-screen .seat-play-cards .card-corner{font-size:17px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:48px;height:49px}
 .poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-32px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:15px}
 .poker-screen .seat-history>small,.poker-screen .seat-previous small{font-size:11px}
 .poker-screen .seat-bid{height:28px}.poker-screen .seat-bid small{font-size:11px}.poker-screen .seat-bid .poker-card{width:24px;height:25px}
 .poker-screen .north,.poker-screen .south{max-width:1000px;width:60%}
 .poker-screen .table-center>small,.poker-screen .table-center>strong{font-size:12px}
 .poker-screen .center-trump span{font-size:18px}.poker-screen .center-trump svg{width:32px;height:34px}
 .poker-screen .center-score{font-size:15px}.poker-screen .center-score b{font-size:27px}
}

@media(min-width:621px) and (max-height:760px){.poker-screen .poker-hand .poker-card{height:60px}}

/* v4.15: opponent history gets the full seat width on phones. */
@media(max-width:620px){
 .poker-screen .west .seat-play,.poker-screen .east .seat-play{grid-column:1;grid-row:2;min-width:0;overflow:hidden}
 .poker-screen .west .seat-previous,.poker-screen .east .seat-previous{grid-column:2;grid-row:2;height:34px;min-width:0}
 .poker-screen .west .seat-previous .poker-card,.poker-screen .east .seat-previous .poker-card{height:24px}
 .poker-screen .west .seat-history,.poker-screen .east .seat-history{grid-column:1/-1;grid-row:3;width:100%;min-width:0}
 .poker-screen .west .seat-bid,.poker-screen .east .seat-bid{grid-column:1/-1;grid-row:4}
 .poker-screen .seat-history-scroll{justify-content:flex-start;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;overscroll-behavior-x:contain;padding-right:8px;scroll-padding-right:8px;max-width:100%}
 .poker-screen .history-trick{flex-shrink:0}
 .poker-screen .seat-history>small::after{content:' · 横滑';font-size:7px}
 .poker-screen .seat-previous>div{justify-content:flex-start;overflow-x:auto;touch-action:pan-x}
}

/* Readable bid evidence: actual cards plus explicit suit/rank/count. */
.poker-screen .seat-bid small{font-size:13px;font-weight:700;color:#f3f5df;line-height:1.2}
@media(min-width:621px){
 .poker-screen.poker-preplay .seat-history,.poker-screen.poker-preplay .seat-previous{display:none}
 .poker-screen.poker-preplay .seat-bid{height:90px;gap:14px;padding:5px}
 .poker-screen.poker-preplay .seat-bid small{font-size:20px}
 .poker-screen.poker-preplay .seat-bid .poker-card{width:60px;height:76px}
 .poker-screen.poker-preplay .seat-bid .card-corner{font-size:23px;line-height:1;display:flex}
 .poker-screen.poker-preplay .seat-bid .card-corner.bottom{display:none}
}
@media(max-width:620px){
 .poker-screen.poker-preplay .north .seat-bid,.poker-screen.poker-preplay .south .seat-bid{grid-column:1/-1;grid-row:2;align-self:center;height:58px;gap:6px;margin:0;overflow:visible}
 .poker-screen.poker-preplay .north:has(.seat-bid) .seat-person,.poker-screen.poker-preplay .south:has(.seat-bid) .seat-person{height:30px;padding-bottom:2px}
 .poker-screen.poker-preplay .seat-bid{height:58px;gap:4px}
 .poker-screen.poker-preplay .seat-bid small{font-size:13px;white-space:normal}
 .poker-screen.poker-preplay .seat-bid .poker-card{width:38px;height:50px}
 .poker-screen.poker-preplay .seat-bid .card-corner{font-size:17px;display:flex}
 .poker-screen.poker-preplay .seat-bid .card-corner.bottom{display:none}
}

/* v4.18: larger cards and indices throughout the table. */
@media(min-width:621px){
 .poker-screen .poker-hand .poker-card{width:72px;height:76px;margin-right:-24px}
 .poker-screen .poker-hand{padding-right:24px;row-gap:3px}
 .poker-screen .poker-hand .card-corner{font-size:21px}
 .poker-screen .seat-play-cards .poker-card{width:40px;height:48px;font-size:19px}
 .poker-screen .seat-play-cards .card-corner{font-size:17px}
 .poker-screen .seat-play{height:64px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:45px;height:39px}
 .poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-30px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:14px}
 .poker-screen .seat-bid .poker-card{width:28px;height:30px}.poker-screen .seat-bid{height:32px}
 .poker-screen .seat-bid .card-corner{font-size:12px}
 .poker-screen.poker-preplay .seat-bid{height:90px}.poker-screen.poker-preplay .seat-bid .poker-card{width:60px;height:76px}.poker-screen.poker-preplay .seat-bid .card-corner{font-size:23px}
}
@media(min-width:1000px) and (min-height:850px){
 .poker-screen .poker-hand .poker-card{width:102px;height:120px;margin-right:-34px}
 .poker-screen .poker-hand{padding-right:34px}.poker-screen .poker-hand .card-corner{font-size:28px}
 .poker-screen .seat-play{height:101px}.poker-screen .seat-play-cards .poker-card{width:60px;height:78px}.poker-screen .seat-play-cards .card-corner{font-size:23px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:60px;height:58px}
 .poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-40px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:19px}
 .poker-screen .seat-bid{height:40px}.poker-screen .seat-bid .poker-card{width:34px;height:38px}.poker-screen .seat-bid .card-corner{font-size:16px}
 .poker-screen.poker-preplay .seat-bid{height:104px}.poker-screen.poker-preplay .seat-bid .poker-card{width:72px;height:92px}.poker-screen.poker-preplay .seat-bid .card-corner{font-size:28px}
}
@media(max-width:620px){
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:54px;height:60px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{grid-template-columns:repeat(13,36px);padding-right:18px;padding-bottom:29px}
 .poker-screen .poker-hand .card-corner,.poker-screen.poker-many .poker-hand .card-corner{font-size:16px}
 .poker-screen .seat-play-cards .poker-card{width:28px;height:32px}.poker-screen .seat-play .card-corner{font-size:11px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:42px}
 .poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-28px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:13px}
}

@media(min-width:621px){
 .poker-screen .direction-seat:has(.seat-bid) .seat-person{height:62px;padding-bottom:34px}
 .poker-screen .direction-seat .seat-bid{grid-column:1;grid-row:1;align-self:end;margin-bottom:1px;min-width:0;gap:2px}
 .poker-screen .direction-seat .seat-bid small{font-size:10px}
 .poker-screen.poker-preplay .direction-seat .seat-bid{grid-column:1/-1;grid-row:2;margin:0}
 .poker-screen.poker-preplay .direction-seat .seat-person{height:46px;padding-bottom:3px}
 .poker-screen.poker-preplay .direction-seat .seat-bid small{font-size:20px}
 .poker-screen .seat-history-scroll{row-gap:0}
 .poker-screen .seat-history .poker-card{margin-bottom:-9px}
 .poker-screen .seat-history-scroll{padding-bottom:9px}
}
@media(min-width:1000px) and (min-height:850px){
 .poker-screen .direction-seat:has(.seat-bid) .seat-person{height:80px;padding-bottom:42px}
 .poker-screen .direction-seat .seat-bid small{font-size:13px}
}

@media(min-width:621px){
 .poker-screen .seat-history .history-trick{display:contents}
 .poker-screen .seat-history .history-trick>small{display:none}
 .poker-screen .seat-history .history-trick .poker-card{margin:0 -30px -9px 0}
 .poker-screen .seat-history-scroll{padding-right:30px;column-gap:0}
 .poker-screen .poker-hand .poker-card{margin-bottom:-28px}
 .poker-screen .poker-hand{padding-bottom:36px}
 .poker-screen .seat-play{height:60px}
}
@media(min-width:1000px) and (min-height:850px){
 .poker-screen .seat-history .history-trick .poker-card{margin-right:-40px}
 .poker-screen .seat-history-scroll{padding-right:40px}
 .poker-screen .poker-hand .poker-card{margin-bottom:-20px}
 .poker-screen .poker-hand{padding-bottom:28px}
 .poker-screen .seat-play{height:101px}
}

@media(max-width:620px){
 .poker-screen:not(.poker-preplay) .west .seat-bid,.poker-screen:not(.poker-preplay) .east .seat-bid{height:22px;gap:1px}
 .poker-screen:not(.poker-preplay) .west .seat-bid small,.poker-screen:not(.poker-preplay) .east .seat-bid small{font-size:8px;line-height:1;min-width:0}
 .poker-screen .west .seat-play,.poker-screen .east .seat-play{height:42px}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen #main{padding-top:39px}
 .poker-screen .seat-history .poker-card{height:28px}
 .poker-screen .seat-history-scroll{height:28px;min-height:28px}
 .poker-screen .west .seat-history,.poker-screen .east .seat-history{height:36px}
}

@media(max-width:620px) and (max-height:740px){.poker-screen #main{padding-top:37px}}

.trump-count{display:inline-block;margin-left:12px;color:#e6ff98;font-size:16px;font-weight:800;white-space:nowrap}
@media(min-width:621px){
 .poker-screen .poker-hand .poker-card{width:81px;height:84px;margin-right:-27px;margin-bottom:-36px}
 .poker-screen .poker-hand{padding-right:27px;padding-bottom:44px}
 .poker-screen .poker-hand .card-corner{font-size:24px}
 .poker-screen .seat-play-cards .poker-card{width:45px;height:52px}.poker-screen .seat-play-cards .card-corner{font-size:19px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:51px;height:42px}
 .poker-screen .seat-history .history-trick .poker-card{margin-right:-34px;margin-bottom:-12px}
 .poker-screen .seat-previous .poker-card+.poker-card{margin-left:-34px}
 .poker-screen .seat-history-scroll{padding-right:34px;padding-bottom:12px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:16px}
}
@media(min-width:1000px) and (min-height:850px){
 .poker-screen .poker-hand .poker-card{width:120px;height:140px;margin-right:-40px;margin-bottom:-40px}
 .poker-screen .poker-hand{padding-right:40px;padding-bottom:48px}
 .poker-screen .poker-hand .card-corner{font-size:32px}.poker-screen .poker-hand .card-pip{font-size:44px}
 .poker-screen .seat-play-cards .poker-card{width:72px;height:90px}.poker-screen .seat-play-cards .card-corner{font-size:27px}.poker-screen .seat-play{height:113px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:72px;height:66px}
 .poker-screen .seat-history .history-trick .poker-card{margin-right:-48px;margin-bottom:-16px}
 .poker-screen .seat-previous .poker-card+.poker-card{margin-left:-48px}
 .poker-screen .seat-history-scroll{padding-right:48px;padding-bottom:16px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:23px}
 .poker-screen .seat-bid .poker-card{width:42px;height:44px}.poker-screen .seat-bid .card-corner{font-size:19px}
}
@media(max-width:620px){
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:60px;height:64px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{grid-template-columns:repeat(13,40px);padding-right:20px;padding-bottom:33px}
 .poker-screen .poker-hand .card-corner,.poker-screen.poker-many .poker-hand .card-corner{font-size:18px}
 .poker-screen .seat-play-cards .poker-card{width:32px;height:34px}.poker-screen .seat-play .card-corner{font-size:13px}
 .poker-screen .seat-history .poker-card,.poker-screen .seat-previous .poker-card{width:48px}
 .poker-screen .seat-history .poker-card+.poker-card,.poker-screen .seat-previous .poker-card+.poker-card{margin-left:-32px}
 .poker-screen .seat-history .card-corner,.poker-screen .seat-previous .card-corner{font-size:14px}
 .poker-screen .trump-count{font-size:11px;margin-left:7px}
}

/* v4.20: explicit, high-contrast player roles. */
.poker-screen .seat-person .seat-role{display:flex;align-items:center;gap:4px;white-space:nowrap;line-height:1.2;margin-top:2px}
.poker-screen .seat-person .role-tag{display:inline-block;flex:none;padding:2px 5px;border-radius:4px;font-size:12px;line-height:1.1;max-width:none;overflow:visible}
.role-you{background:#dcff91;color:#233018}.role-ally{background:#bdebd4;color:#17382b}.role-opponent{background:#d8e5f5;color:#203957}
.poker-screen .seat-person .role-dealer{background:#ffdf7d;color:#483200;box-shadow:0 0 0 1px #b58328}
.center-dealer{font-size:15px;font-weight:800;color:#ffe291;line-height:1.2;margin:3px 0;max-width:100%;overflow-wrap:anywhere}
@media(min-width:1000px) and (min-height:850px){.poker-screen .seat-person .role-tag{font-size:15px}.center-dealer{font-size:20px}}
@media(max-width:620px){
 .poker-screen .seat-person .seat-role{gap:2px;margin:0;font-size:8px}
 .poker-screen .seat-person .role-tag{font-size:9px;padding:1px 2px}
 .center-dealer{font-size:10px;margin:2px 0}
}

/* v4.21: table cards use only one clear corner, no decorative center pip. */
.poker-screen .four-seat-table .poker-card .card-pip,
.poker-screen .poker-bottom .poker-card .card-pip,
.poker-screen .hand-result .poker-card .card-pip{display:none!important}
.poker-screen .four-seat-table .poker-card .card-corner.bottom,
.poker-screen .poker-bottom .poker-card .card-corner.bottom,
.poker-screen .hand-result .poker-card .card-corner.bottom{display:none}
.poker-screen .four-seat-table .poker-card .card-corner.top{display:flex;flex-direction:column;align-items:center;line-height:1;margin:0;top:2px;left:2px}
.poker-screen .four-seat-table .poker-card .card-corner b{color:inherit;margin:0;font-weight:800}

/* v4.22: every mobile hand card is visible, including the six-card bottom. */
@media(max-width:620px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));grid-auto-rows:32px;gap:2px 0;padding:6px 22px 24px 0;overflow:visible;max-height:none;width:100%;box-sizing:border-box}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:42px;height:54px;min-width:0;margin:0;border-radius:4px}
 .poker-screen .poker-hand .card-corner,.poker-screen.poker-many .poker-hand .card-corner{font-size:15px;letter-spacing:-.7px;line-height:1}
 .poker-screen .poker-hand .card-corner.top{left:2px;top:2px}
 .poker-screen .poker-hand .card-pip{display:none}
 .poker-screen .poker-hand .card-corner.bottom{display:none}
}

/* v4.24: centered mobile hand rows and fully expanded table histories. */
@media(max-width:620px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:2px 0;padding:6px 0 24px;overflow:visible}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:42px;height:54px;flex:0 0 42px;margin:0 -10px -20px;transform-origin:center}
 .poker-screen .seat-history-scroll{display:flex;flex-wrap:wrap;justify-content:center;height:auto;min-height:0;max-height:none;overflow:visible;gap:0;padding:0 16px 8px 0;touch-action:auto}
 .poker-screen .seat-history .history-trick{display:contents}
 .poker-screen .seat-history .history-trick>small{display:none}
 .poker-screen .seat-history .history-trick .poker-card{margin:0 -32px -6px 0}
 .poker-screen .seat-history,.poker-screen .west .seat-history,.poker-screen .east .seat-history{height:auto;min-height:0;max-height:none}
 .poker-screen .seat-history>small::after{content:none}
 .poker-screen .seat-previous>div{flex-wrap:wrap;justify-content:center;overflow:visible}
 .poker-screen .west .seat-play,.poker-screen .east .seat-play{overflow:visible}
 .poker-screen .seat-play-cards{flex-wrap:wrap}
}

.history-open{display:none}.history-all-cards{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.history-all-cards .poker-card{width:100%;height:66px}.history-all-cards .card-corner{font-size:20px}.history-all-cards .card-pip,.history-all-cards .card-corner.bottom{display:none}
@media(max-width:620px){
 .history-open{display:inline-block;color:#e7ffa2;text-decoration:underline;font-size:10px;margin-left:3px;padding:2px}
 .poker-screen .seat-history .history-trick{display:flex;gap:0;margin:0 3px 0 0}
 .poker-screen .seat-history .history-trick.history-older{display:none}
 .poker-screen .seat-history-scroll{justify-content:center;flex-wrap:wrap;padding:0;gap:2px;height:auto;min-height:0}
 .poker-screen .seat-history .history-trick .poker-card{margin:0}
 .poker-screen .seat-history .history-trick .poker-card+.poker-card{margin-left:-32px}
 .history-all-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 .history-all-cards .poker-card{height:48px}.history-all-cards .card-corner{font-size:18px}
}

@media(max-width:620px){dialog:has(.history-all-cards){padding:16px}dialog:has(.history-all-cards) h2{font-size:18px;margin:4px 0 8px}.history-all-cards .poker-card{height:42px}}

.poker-screen .hand-result{max-height:none;text-align:center;font-size:20px;line-height:1.5;padding:14px}
.poker-screen .hand-result p{font-size:17px;line-height:1.5;margin:8px 0}
.poker-screen .poker-hand-panel .section-head{justify-content:center;text-align:center;gap:16px}
.poker-screen .poker-actions{justify-content:center}
.poker-screen .poker-voice-bar{position:fixed;top:6px;left:110px;z-index:1060;margin:0;padding:2px 5px;background:#17352d;max-width:330px}
.poker-screen .poker-voice-bar button{padding:5px 8px;font-size:12px}.poker-screen .poker-voice-bar span{font-size:10px}
@media(max-width:620px){
 .poker-screen .hand-result{font-size:16px;padding:9px}.poker-screen .hand-result p{font-size:14px}
 .poker-screen .poker-voice-bar{top:auto;bottom:4px;left:50%;transform:translateX(-50%);width:max-content;max-width:95vw;gap:4px}
 .poker-screen:has(.poker-voice-bar) #main{padding-bottom:42px}
 .poker-screen .seat-history .history-trick{display:contents}
 .poker-screen .seat-history .history-trick.history-older{display:none}
 .poker-screen .seat-history .history-trick .poker-card{margin-right:-32px}
 .poker-screen .seat-history-scroll{padding-right:32px}
}

/* v4.26: mobile history stays entirely on the table. */
@media(max-width:620px){
 .poker-screen .history-open{display:none}
 .poker-screen .seat-history .history-trick,.poker-screen .seat-history .history-trick.history-older{display:contents}
 .poker-screen .seat-history-scroll{display:flex;flex-wrap:wrap;justify-content:center;align-content:start;overflow:visible;height:auto;min-height:0;max-height:none;gap:0;padding:0 20px 3px 0}
 .poker-screen .seat-history .history-trick .poker-card{width:30px;height:24px;margin:0 -20px 0 0;flex-shrink:0}
 .poker-screen .seat-history .poker-card .card-corner.top{font-size:11px;top:1px;left:1px;line-height:1;letter-spacing:-.6px}
 .poker-screen .seat-history{height:auto!important;min-height:0}
 .poker-screen .west .seat-history,.poker-screen .east .seat-history{grid-column:1/-1;grid-row:3}
 .poker-screen .west .seat-play,.poker-screen .east .seat-play{grid-column:1;grid-row:2}
 .poker-screen .west .seat-previous,.poker-screen .east .seat-previous{grid-column:2;grid-row:2}
 .poker-screen .west .seat-bid,.poker-screen .east .seat-bid{grid-row:4}
 .poker-screen .seat-history>small{font-size:8px;line-height:10px;margin:0}
}

@media(max-width:620px){
 .poker-screen .seat-history-scroll{padding-right:16px;padding-bottom:1px}
 .poker-screen .seat-history .history-trick .poker-card{width:24px;height:22px;margin-right:-16px}
 .poker-screen .seat-history .poker-card .card-corner.top{font-size:10px;letter-spacing:-.8px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-top:4px;padding-bottom:20px}
}
@media(max-width:620px) and (max-height:740px){.poker-screen #main{padding-top:33px}.poker-screen .seat-history .history-trick .poker-card{height:20px}.poker-screen .seat-history .poker-card .card-corner.top{font-size:9px}}

/* v4.27: keep all three cards of the previous trick on one mobile row. */
@media(max-width:620px){
 .poker-screen .seat-previous>div{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;overflow:visible;min-width:0;gap:0}
 .poker-screen .seat-previous .poker-card{flex:0 0 48px;margin:0}
 .poker-screen .seat-previous .poker-card+.poker-card{margin-left:-34px}
 .poker-screen .west .seat-previous,.poker-screen .east .seat-previous{min-width:0}
}

/* v4.28: current plays stay on one line, including pairs and triples. */
@media(max-width:620px){
 .poker-screen .seat-play-cards{display:flex;flex-wrap:nowrap;width:100%;min-width:0;justify-content:center;gap:0}
 .poker-screen .seat-play-cards .poker-card{width:min(32px,60%);flex:0 0 min(32px,60%);margin:0}
 .poker-screen .seat-play-cards .poker-card+.poker-card{margin-left:calc(min(32px,60%) * -2 / 3)}
 .poker-screen .seat-previous>div{width:100%}
 .poker-screen .seat-previous .poker-card{width:min(48px,60%);flex:0 0 min(48px,60%)}
 .poker-screen .seat-previous .poker-card+.poker-card{margin-left:calc(min(48px,60%) * -2 / 3)}
}

/* v4.29: let mobile play frames contain the unchanged label and cards. */
@media(max-width:620px){
 .poker-screen .direction-seat .seat-play{height:auto;min-height:42px;min-width:0;align-self:stretch;box-sizing:border-box;justify-content:flex-start}
 .poker-screen .seat-play-label{display:block;width:100%;white-space:normal;overflow-wrap:anywhere;flex:none;text-align:center;line-height:1.2}
 .poker-screen .seat-play-cards{flex:none;min-height:0}
}

/* v4.30: mobile player count shares the name row. */
@media(max-width:620px){
 .poker-screen .direction-seat .seat-person{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:1px 3px;height:auto;min-height:30px;padding:3px;flex-wrap:nowrap}
 .poker-screen .seat-person>div{display:contents}
 .poker-screen .seat-person>div>b{grid-column:1;grid-row:1;max-width:100%;min-width:0}
 .poker-screen .seat-person .seat-count{grid-column:2;grid-row:1;display:inline;flex-basis:auto;margin:0;white-space:nowrap;font-size:10px;line-height:1.2}
 .poker-screen .seat-person .seat-role{grid-column:1/-1;grid-row:2;flex-wrap:wrap;min-width:0}
}

/* Bids occupy their own grid row, with a single horizontal card strip. */
.poker-screen .four-seat-table .direction-seat .seat-bid{display:flex;grid-column:1/-1;grid-row:2;align-self:stretch;align-items:center;justify-content:center;height:auto;min-height:0;min-width:0;max-width:100%;margin:0;padding:3px;gap:6px;overflow:visible;box-sizing:border-box}
.poker-screen .four-seat-table .direction-seat .seat-bid>small{flex:0 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.2}
.poker-screen .four-seat-table .direction-seat .seat-bid>div{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;flex:none;gap:2px;min-width:0}
.poker-screen .four-seat-table .direction-seat .seat-bid .poker-card{flex:none;width:32px;height:40px;margin:0}
.poker-screen .four-seat-table .direction-seat .seat-bid .card-corner.top{font-size:16px}
.poker-screen .four-seat-table .direction-seat:has(.seat-bid) .seat-person{height:auto;min-height:30px;padding-bottom:3px}
.poker-screen .four-seat-table .direction-seat .seat-history{grid-row:3}
@media(max-width:620px){
 .poker-screen .four-seat-table .direction-seat .seat-bid{gap:3px;padding:2px;flex-wrap:wrap}
 .poker-screen .four-seat-table .direction-seat .seat-bid>small{font-size:9px;line-height:1.2}
 .poker-screen .four-seat-table .direction-seat .seat-bid .poker-card{width:22px;height:27px}
 .poker-screen .four-seat-table .direction-seat .seat-bid .card-corner.top{font-size:11px;top:1px;left:1px}
 .poker-screen .four-seat-table .direction-seat.west .seat-bid,.poker-screen .four-seat-table .direction-seat.east .seat-bid{grid-row:3}
 .poker-screen .four-seat-table .direction-seat.west .seat-history,.poker-screen .four-seat-table .direction-seat.east .seat-history{grid-row:4}
}

@media(max-width:620px){
 .poker-screen .four-seat-table{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);grid-template-rows:auto minmax(min-content,1fr) auto;align-items:start;gap:3px}
 .poker-screen .four-seat-table .direction-seat{align-self:start}
 .poker-screen .four-seat-table .direction-seat.north .seat-person,.poker-screen .four-seat-table .direction-seat.south .seat-person{grid-column:1;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.north .seat-bid,.poker-screen .four-seat-table .direction-seat.south .seat-bid{grid-column:1;grid-row:2}
 .poker-screen .four-seat-table .direction-seat.north .seat-play,.poker-screen .four-seat-table .direction-seat.south .seat-play{grid-column:2;grid-row:1/3}
 .poker-screen .four-seat-table .direction-seat.north .seat-previous,.poker-screen .four-seat-table .direction-seat.south .seat-previous{grid-column:3;grid-row:1/3;height:auto;align-self:center}
 .poker-screen .four-seat-table .direction-seat .seat-bid{flex-wrap:nowrap;gap:2px}
 .poker-screen .four-seat-table .direction-seat .seat-bid>div{gap:0;padding-right:0}
 .poker-screen .four-seat-table .direction-seat .seat-bid .poker-card+.poker-card{margin-left:-14px}
 .poker-screen .table-center{min-width:0;width:100%;overflow-wrap:anywhere;padding:2px}
 .poker-screen .center-trump{flex-wrap:wrap;justify-content:center;max-width:100%}
 .poker-screen .center-dealer{font-size:8px}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:30px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{margin-bottom:-30px}
 .poker-screen .four-seat-table .direction-seat .seat-bid>small{font-size:8px}
 .poker-screen .four-seat-table .direction-seat .seat-bid .poker-card{width:20px;height:24px}
 .poker-screen .four-seat-table .direction-seat .seat-bid .poker-card+.poker-card{margin-left:-13px}
 .poker-screen .four-seat-table .direction-seat .seat-bid .card-corner.top{font-size:10px}
}

@media(max-width:620px){
 .poker-screen .four-seat-table{grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);grid-template-rows:minmax(min-content,auto) minmax(min-content,1fr) minmax(min-content,auto)}
 .poker-screen .four-seat-table .direction-seat .seat-play-label{font-size:8px;line-height:1.15}
 .poker-screen .four-seat-table .direction-seat .seat-person{min-height:26px;padding:2px;gap:0 2px}
 .poker-screen .four-seat-table .direction-seat .seat-bid>small{line-height:1}
 .poker-screen .four-seat-table .direction-seat .seat-bid{padding:1px}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:38px;padding-top:2px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{margin-bottom:-38px}
 .poker-screen .poker-actions{min-height:26px;margin-top:2px;padding:0}
 .poker-screen .poker-actions button{padding:5px 7px;font-size:10px}
}

@media(max-width:620px) and (max-height:740px){
 .poker-screen .four-seat-table{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:min-content min-content minmax(min-content,1fr) min-content;gap:2px}
 .poker-screen .four-seat-table .direction-seat.north{grid-column:1/-1;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.south{grid-column:1/-1;grid-row:4}
 .poker-screen .four-seat-table .direction-seat.west{grid-column:1;grid-row:3}
 .poker-screen .four-seat-table .direction-seat.east{grid-column:2;grid-row:3}
 .poker-screen .four-seat-table .direction-seat.north,.poker-screen .four-seat-table .direction-seat.south{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px}
 .poker-screen .four-seat-table .direction-seat.north .seat-person,.poker-screen .four-seat-table .direction-seat.south .seat-person{grid-column:1;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.north .seat-play,.poker-screen .four-seat-table .direction-seat.south .seat-play{grid-column:2;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.north .seat-previous,.poker-screen .four-seat-table .direction-seat.south .seat-previous{grid-column:3;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.north .seat-bid,.poker-screen .four-seat-table .direction-seat.south .seat-bid{grid-column:4;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.north .seat-history,.poker-screen .four-seat-table .direction-seat.south .seat-history{grid-column:1/-1;grid-row:2}
 .poker-screen .four-seat-table .table-center{grid-column:1/-1;grid-row:2;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:1px 5px;aspect-ratio:auto;border-radius:5px;padding:1px;min-height:0}
 .poker-screen .table-center>small{font-size:7px;line-height:1}
 .poker-screen .table-center br{display:none}
 .poker-screen .center-dealer{font-size:8px;margin:0}
 .poker-screen .center-score{margin:0;font-size:8px}.poker-screen .center-score b{font-size:12px}
 .poker-screen .table-center>strong{font-size:8px}
 .poker-screen .center-trump{margin:0;padding:1px 3px}.poker-screen .center-trump svg{width:11px;height:11px}.poker-screen .center-trump span{font-size:9px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:30px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{margin-bottom:-30px}
 .poker-screen .poker-hand .card-corner,.poker-screen.poker-many .poker-hand .card-corner{font-size:12px}
}

@media(max-width:620px) and (max-height:740px){
 .poker-screen .four-seat-table .direction-seat .seat-play{min-height:0;padding:1px;gap:1px}
 .poker-screen .four-seat-table .seat-play-cards .poker-card,.poker-screen .four-seat-table .seat-previous .poker-card{height:28px}
 .poker-screen .four-seat-table .seat-play .card-corner.top,.poker-screen .four-seat-table .seat-previous .card-corner.top{font-size:11px}
 .poker-screen .four-seat-table .direction-seat .seat-previous{height:auto;min-height:0}
 .poker-screen .seat-history .history-trick .poker-card{height:18px}
 .poker-screen .seat-history .poker-card .card-corner.top{font-size:8px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{height:40px;margin-bottom:-16px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:16px}
}

@media(min-width:621px){
 .poker-screen .four-seat-table{grid-template-rows:minmax(min-content,auto) minmax(min-content,1fr) minmax(min-content,auto);align-items:start}
 .poker-screen .four-seat-table .direction-seat{align-self:start}
 .poker-screen .four-seat-table .direction-seat.north,.poker-screen .four-seat-table .direction-seat.south{grid-template-columns:repeat(4,minmax(0,1fr))}
 .poker-screen .four-seat-table .direction-seat.north .seat-bid,.poker-screen .four-seat-table .direction-seat.south .seat-bid{grid-column:4;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.north .seat-history,.poker-screen .four-seat-table .direction-seat.south .seat-history{grid-row:2}
}
@media(min-width:1000px) and (min-height:850px){
 .poker-screen .four-seat-table .seat-play{height:auto;min-height:84px}
 .poker-screen .four-seat-table .seat-play-cards .poker-card{height:64px}
 .poker-screen .four-seat-table .seat-previous .poker-card{height:50px}
 .poker-screen .four-seat-table .seat-history .poker-card{height:48px}
}

@media(min-width:621px){.poker-screen .four-seat-table .direction-seat .seat-play{height:auto;min-height:0;padding:4px;gap:3px}.poker-screen .four-seat-table .seat-play-cards{flex:none}}

.poker-screen.poker-review .poker-actions{display:none}

@media(max-width:620px) and (min-height:741px){.poker-screen .four-seat-table{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr)}}

/* v4.34: readable tribute and revolt cards alongside the announcement. */
.poker-screen .hand-result .poker-card{width:56px;height:72px;margin:3px 2px;vertical-align:middle;border-radius:6px}
.poker-screen .hand-result .poker-card .card-corner.top{font-size:24px;line-height:1;top:3px;left:4px;letter-spacing:0}
.poker-screen .hand-result .poker-card .card-corner.bottom,.poker-screen .hand-result .poker-card .card-pip{display:none!important}
@media(max-width:620px){
 .poker-screen .hand-result:has(.poker-card){padding:6px;font-size:15px;line-height:1.3;overflow:visible}
 .poker-screen .hand-result .poker-card{width:40px;height:52px;margin:2px 1px}
 .poker-screen .hand-result .poker-card .card-corner.top{font-size:18px;top:2px;left:3px}
}

/* v4.36: emphasize the current trick and center opposing seats symmetrically. */
.poker-screen .four-seat-table .direction-seat.west,.poker-screen .four-seat-table .direction-seat.east{align-self:center}
.poker-screen .four-seat-table .direction-seat .seat-play{border-color:#c4de94;background:#203f32;box-shadow:inset 0 0 0 1px #d3efa51a}
.poker-screen .four-seat-table .seat-play-cards{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;min-width:0;width:100%}
.poker-screen .four-seat-table .seat-play-cards .poker-card{width:64px;flex:0 0 64px;height:80px;margin:0}
.poker-screen .four-seat-table .seat-play-cards .poker-card+.poker-card{margin-left:-40px}
.poker-screen .four-seat-table .seat-play .card-corner.top{font-size:26px}
.poker-screen .four-seat-table .seat-previous .poker-card{width:36px;flex-basis:36px;height:44px}
.poker-screen .four-seat-table .seat-previous .poker-card+.poker-card{margin-left:-24px}
.poker-screen .four-seat-table .seat-previous .card-corner.top{font-size:16px}
@media(max-width:620px){
 .poker-screen .four-seat-table .direction-seat .seat-play{padding:2px;height:auto;min-height:0}
 .poker-screen .four-seat-table .seat-play-cards .poker-card{width:min(42px,60%);flex-basis:min(42px,60%);height:56px}
 .poker-screen .four-seat-table .seat-play-cards .poker-card+.poker-card{margin-left:calc(min(42px,60%) * -2 / 3)}
 .poker-screen .four-seat-table .seat-play .card-corner.top{font-size:18px}
 .poker-screen .four-seat-table .seat-previous .poker-card{width:min(28px,60%);flex-basis:min(28px,60%);height:34px}
 .poker-screen .four-seat-table .seat-previous .poker-card+.poker-card{margin-left:calc(min(28px,60%) * -2 / 3)}
 .poker-screen .four-seat-table .seat-previous .card-corner.top{font-size:12px}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .four-seat-table .seat-play-cards .poker-card{height:42px}
 .poker-screen .four-seat-table .seat-play .card-corner.top{font-size:15px}
 .poker-screen .four-seat-table .seat-previous .poker-card{height:26px}
 .poker-screen .four-seat-table .seat-previous .card-corner.top{font-size:10px}
}

@media(max-width:620px) and (min-height:741px){
 .poker-screen .poker-table{justify-content:center}
 .poker-screen .four-seat-table{flex:0 0 auto;height:auto;grid-template-rows:min-content min-content min-content}
 .poker-screen .four-seat-table .direction-seat.west .seat-play{grid-column:2}
 .poker-screen .four-seat-table .direction-seat.west .seat-previous{grid-column:1}
}
@media(min-width:621px){.poker-screen .four-seat-table{max-width:1120px;width:100%;align-self:center}}

@media(max-width:620px){.poker-screen .four-seat-table .direction-seat .seat-previous{height:auto;min-height:0}}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{height:32px;margin-bottom:-14px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:14px}
 .poker-screen .poker-hand .card-corner.top{font-size:11px}
 .poker-screen .poker-actions{min-height:22px}.poker-screen .poker-actions button{padding:3px 5px}
 .poker-screen .seat-history .history-trick .poker-card{height:16px}.poker-screen .seat-history .poker-card .card-corner.top{font-size:7px}
 .poker-screen .four-seat-table .direction-seat{padding:0;gap:1px}
 .poker-screen .four-seat-table .table-center{gap:0 3px}
}

@media(min-width:1000px) and (min-height:850px){
 .poker-screen .four-seat-table .seat-history .history-trick .poker-card{width:54px;height:42px;margin-right:-36px;margin-bottom:-10px}
 .poker-screen .four-seat-table .seat-history-scroll{padding-right:36px;padding-bottom:10px}
 .poker-screen .four-seat-table .seat-history .card-corner.top{font-size:18px}
}

@media(min-width:621px){.poker-screen .four-seat-table{max-width:960px}}
@media(min-width:621px) and (max-height:849px){.poker-screen .four-seat-table .seat-play-cards .poker-card{height:64px}.poker-screen .four-seat-table .seat-play .card-corner.top{font-size:22px}}

@media(min-width:621px){
 .poker-screen .four-seat-table .direction-seat.north .seat-bid,.poker-screen .four-seat-table .direction-seat.south .seat-bid{flex-direction:column;gap:2px}
 .poker-screen .four-seat-table .direction-seat.north .seat-bid>small,.poker-screen .four-seat-table .direction-seat.south .seat-bid>small{width:100%;flex:none}
}

/* v4.38: reserve current-card space even while waiting for a play. */
.poker-screen .four-seat-table{--current-card-height:80px;--current-label-height:14px}
.poker-screen .four-seat-table .direction-seat .seat-play{align-self:start;justify-content:flex-start;box-sizing:border-box}
.poker-screen .four-seat-table .direction-seat .seat-play-label{display:flex;align-items:center;justify-content:center;width:100%;height:var(--current-label-height);min-height:var(--current-label-height);flex:none;margin:0;line-height:1.1}
.poker-screen .four-seat-table .seat-play-cards{height:var(--current-card-height);min-height:var(--current-card-height);max-height:var(--current-card-height);flex:none}
@media(min-width:621px) and (max-height:849px){.poker-screen .four-seat-table{--current-card-height:64px}}
@media(max-width:620px){.poker-screen .four-seat-table{--current-card-height:56px;--current-label-height:18px}}
@media(max-width:620px) and (max-height:740px){.poker-screen .four-seat-table{--current-card-height:42px}}
@media(min-width:621px) and (min-height:850px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{row-gap:0;padding-bottom:80px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{margin-bottom:-80px}
}
@media(min-width:621px) and (min-height:850px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-right:34px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:100px;flex-basis:100px;margin-right:-34px}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .four-seat-table{--current-label-height:10px}
 .poker-screen .four-seat-table .direction-seat .seat-play{padding:1px;gap:0}
 .poker-screen .four-seat-table .direction-seat .seat-play-label{font-size:7px;white-space:nowrap}
}
@media(min-width:621px) and (max-height:849px){.poker-screen .four-seat-table .direction-seat .seat-play{gap:1px}}
/* v4.39: six bottom cards revealed at hand end, inline and in settlement. */
.bottom-audit{text-align:center;padding:6px;border:1px solid #8ca969;border-radius:8px;background:#20372c;color:#f4f7e9}
.bottom-audit strong{font-size:17px}.bottom-audit p{margin:3px 0;font-size:13px}
.bottom-audit-cards{display:flex;justify-content:center;gap:5px;margin:5px 0}
.bottom-audit .poker-card{position:relative;width:52px;height:66px;margin:0;flex:0 0 52px}
.bottom-audit .card-corner.top{font-size:23px;top:3px;left:4px;line-height:1}
.bottom-audit .card-corner.bottom,.bottom-audit .card-pip{display:none!important}
@media(max-width:620px){.bottom-audit strong{font-size:14px}.bottom-audit p{font-size:11px}.bottom-audit-cards{gap:3px}.bottom-audit .poker-card{width:35px;height:46px;flex-basis:35px}.bottom-audit .card-corner.top{font-size:18px;left:2px;top:2px}}
.poker-screen .poker-layout:has(.bottom-audit) .poker-table{display:none}
.poker-screen .poker-hand-panel:has(.bottom-audit){width:100%;max-width:680px;align-self:center;margin:auto;flex:none}
.poker-screen .poker-hand-panel:has(.bottom-audit)>.section-head,.poker-screen .poker-hand-panel:has(.bottom-audit)>.poker-hand{display:none}
.poker-screen .poker-hand-panel:has(.bottom-audit) .poker-actions{justify-content:center}
/* v4.40: preserve turn controls and mirrored bid/player geometry. */
.poker-screen.poker-review .poker-actions{display:flex;visibility:hidden}
.poker-screen .bid-placeholder{visibility:hidden}
.poker-screen .four-seat-table .direction-seat.west,.poker-screen .four-seat-table .direction-seat.east{align-self:stretch;align-content:start}
@media(max-width:620px){
 .poker-screen .four-seat-table .direction-seat .seat-person{height:32px;min-height:32px;max-height:32px}
 .poker-screen .seat-person .seat-role{flex-wrap:nowrap;gap:1px;white-space:nowrap}
 .poker-screen .seat-person .seat-role .role-tag{padding:1px 2px;font-size:8px}
 .poker-screen .four-seat-table .direction-seat .seat-bid{height:30px;min-height:30px;max-height:30px}
 .poker-screen .four-seat-table .direction-seat .seat-bid>small{font-size:8px;line-height:1.1}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .four-seat-table .direction-seat .seat-person{height:26px;min-height:26px;max-height:26px}
 .poker-screen .four-seat-table .direction-seat .seat-bid{height:24px;min-height:24px;max-height:24px}
}
@media(max-width:620px) and (min-height:741px){.poker-screen .poker-actions{height:40px;min-height:40px;box-sizing:border-box;padding:4px 0;margin-top:0}}
@media(max-width:620px) and (max-height:740px){.poker-screen .poker-actions{height:24px;min-height:24px;box-sizing:border-box;padding:0;margin-top:0}}
/* v4.41: explicit pre-game seat selection. */
.seat-lobby{max-width:850px;margin:0 auto}.seat-lobby h2{font-size:22px}.seat-lobby p{line-height:1.6;color:#c0cdbd}
.lobby-seat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.lobby-seat{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:140px;padding:18px;border:1px solid #4b6654;border-radius:12px;background:#20372f;color:#f5f8ed}
.lobby-seat:disabled{opacity:1;cursor:default}.lobby-seat.mine{border:2px solid var(--lime);background:#33482e}.lobby-seat.computer{background:#263641}.lobby-seat strong{font-size:19px}.lobby-seat span{font-size:20px;max-width:100%;overflow-wrap:anywhere}.lobby-seat small{color:#b9c6b4}
.lobby-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}.lobby-economy{text-align:center}
@media(max-width:620px){.seat-lobby{padding:12px}.seat-lobby .section-head{flex-wrap:wrap;gap:8px}.lobby-seat-grid{gap:8px}.lobby-seat{min-height:120px;padding:12px 5px}.lobby-seat strong{font-size:16px}.lobby-seat span{font-size:17px}}
/* v4.42: bidding uses the same reserved action strip as normal play. */
.poker-screen .poker-actions .poker-live-bid{position:static;transform:none;inset:auto;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:3px;width:100%;max-width:100%;padding:0;margin:0;border:0;background:none;box-shadow:none}
.poker-screen .poker-actions .poker-live-bid button{flex:1 1 0;min-width:0;max-width:150px;padding:5px 2px;font-size:11px;white-space:nowrap}
@media(max-width:620px) and (max-height:740px){.poker-screen .poker-actions .poker-live-bid button{font-size:9px;padding:3px 1px}}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{height:28px;margin-bottom:-14px}
 .poker-screen .four-seat-table .direction-seat .seat-person{height:24px;min-height:24px;max-height:24px}
}

@media(max-width:620px) and (max-height:740px){.poker-screen .four-seat-table{--current-label-height:8px}}
@media(max-width:620px) and (max-height:740px){.poker-screen .four-seat-table .table-center{height:32px;min-height:32px;max-height:32px;box-sizing:border-box}}
/* v4.43: preserve cardinal seating at every phone height. */
@media(max-width:620px) and (max-height:740px){
 .poker-screen .four-seat-table{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);grid-template-rows:min-content minmax(min-content,1fr) min-content}
 .poker-screen .four-seat-table .direction-seat.north{grid-column:1/-1;grid-row:1}
 .poker-screen .four-seat-table .direction-seat.south{grid-column:1/-1;grid-row:3}
 .poker-screen .four-seat-table .direction-seat.west{grid-column:1;grid-row:2}
 .poker-screen .four-seat-table .direction-seat.east{grid-column:3;grid-row:2}
 .poker-screen .four-seat-table .table-center{grid-column:2;grid-row:2;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-self:center;gap:2px;height:auto;min-height:0;max-height:none;width:100%;padding:2px;overflow-wrap:anywhere}
 .poker-screen .table-center>small{font-size:7px;line-height:1.15}.poker-screen .table-center>strong{font-size:8px;line-height:1.15}
 .poker-screen .center-dealer{font-size:8px;line-height:1.15}.poker-screen .table-center br{display:initial}
 .poker-screen .four-seat-table .direction-seat.west .seat-play{grid-column:2}.poker-screen .four-seat-table .direction-seat.west .seat-previous{grid-column:1}
}
.lobby-seat-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,auto);align-items:center}
.lobby-seat-grid .lobby-seat:nth-child(1){grid-column:2;grid-row:3}
.lobby-seat-grid .lobby-seat:nth-child(2){grid-column:3;grid-row:2}
.lobby-seat-grid .lobby-seat:nth-child(3){grid-column:2;grid-row:1}
.lobby-seat-grid .lobby-seat:nth-child(4){grid-column:1;grid-row:2}
.lobby-seat-grid:has(.lobby-seat:nth-child(4))::after{content:'1 / 3 搭档 · 2 / 4 搭档';grid-column:2;grid-row:2;text-align:center;color:#bdd497;font-size:13px;line-height:1.6}
.lobby-seat-grid:not(:has(.lobby-seat:nth-child(3))){grid-template-columns:1fr;grid-template-rows:auto auto;max-width:360px;margin-left:auto;margin-right:auto}
.lobby-seat-grid:not(:has(.lobby-seat:nth-child(3))) .lobby-seat:nth-child(1){grid-column:1;grid-row:2}
.lobby-seat-grid:not(:has(.lobby-seat:nth-child(3))) .lobby-seat:nth-child(2){grid-column:1;grid-row:1}
@media(max-width:620px){.lobby-seat-grid{gap:5px}.lobby-seat{padding:8px 3px;min-height:100px;gap:6px}.lobby-seat strong,.lobby-seat span{font-size:13px}.lobby-seat-grid::after{font-size:11px}}
.poker-screen .four-seat-table .direction-seat.west,.poker-screen .four-seat-table .direction-seat.east{align-self:center}
/* v4.44: reserve a true timer header and restore readable mobile hands. */
@media(max-width:620px){
 .poker-screen #main{padding-top:calc(56px + env(safe-area-inset-top))}
 .poker-screen .match-clock{top:max(4px,env(safe-area-inset-top));height:40px;box-sizing:border-box;padding:3px 8px;align-items:center}
 .poker-screen .match-clock.urgent .match-clock-digits{font-size:30px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-top:5px;padding-bottom:34px;row-gap:2px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:48px;height:64px;flex:0 0 48px;margin:0 -12px -30px}
 .poker-screen .poker-hand .card-corner.top{display:flex;flex-direction:row;align-items:center;gap:1px;font-size:20px;line-height:1;letter-spacing:-.5px;top:2px;left:2px}
}
@media(max-width:620px) and (max-height:740px){
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:40px;height:54px;flex-basis:40px;margin:0 -10px -24px}
 .poker-screen .poker-hand .card-corner.top{font-size:18px}
}

@media(max-width:620px){
 .poker-screen .poker-hand .card-corner.top{flex-direction:column;align-items:flex-start;gap:0;line-height:16px}
 .poker-screen .poker-hand .card-corner.top span{font-size:12px;line-height:12px}
}

@media(max-width:620px){.poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:30px}}
@media(max-width:620px) and (max-height:740px){.poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:24px}}

/* v4.45: reserve the first played row before any card is played. */
@media(max-width:620px){
 .poker-screen .four-seat-table .seat-history{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;min-height:26px;padding:1px;box-sizing:border-box;gap:1px}
 .poker-screen .four-seat-table .seat-history>small{margin:0;line-height:1.1}
 .poker-screen .four-seat-table .seat-history-scroll{min-height:22px;box-sizing:border-box}
}
@media(max-width:620px) and (min-height:601px){
 .poker-screen .four-seat-table{--current-card-height:48px}
 .poker-screen .four-seat-table .seat-play-cards .poker-card{height:48px;width:min(46px,65%);flex-basis:min(46px,65%)}
 .poker-screen .four-seat-table .seat-play-cards .poker-card+.poker-card{margin-left:calc(min(46px,65%) * -2 / 3)}
 .poker-screen .four-seat-table .seat-play .card-corner.top{font-size:17px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:44px;flex-basis:44px;height:60px;margin:0 -12px -30px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:30px}
 .poker-screen .poker-hand .card-corner.top{font-size:20px}
}
@media(max-width:620px) and (min-height:741px){
 .poker-screen .four-seat-table{--current-card-height:64px}
 .poker-screen .four-seat-table .seat-play-cards .poker-card{height:64px}
 .poker-screen .four-seat-table .seat-play .card-corner.top{font-size:20px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:52px;flex-basis:52px;height:70px;margin:0 -14px -36px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:36px}
 .poker-screen .poker-hand .card-corner.top{font-size:22px}
}
@media(max-width:620px) and (max-height:600px){
 .poker-screen .four-seat-table .seat-history{min-height:18px;padding:0}
 .poker-screen .four-seat-table .seat-history-scroll{min-height:16px;padding-top:0;padding-bottom:0}
}

/* v4.46: give the hand more of the screen, keeping the same columns. */
@media(max-width:620px) and (min-height:601px){
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:52px;flex-basis:52px;height:76px;margin:0 -16px -40px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:40px}
 .poker-screen .poker-hand .card-corner.top{font-size:22px;line-height:20px}
 .poker-screen .poker-hand .card-corner.top span{font-size:14px;line-height:14px}
}
@media(max-width:620px) and (min-height:741px){
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{width:54px;flex-basis:54px;height:90px;margin:0 -15px -48px}
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-bottom:48px}
 .poker-screen .poker-hand .card-corner.top{font-size:24px;line-height:22px}
 .poker-screen .poker-hand .card-corner.top span{font-size:16px;line-height:16px}
}

/* v4.47: large, stable action targets throughout the hand. */
.poker-screen .poker-actions{height:52px;min-height:52px;box-sizing:border-box;padding:4px 0;margin-top:0;gap:8px;flex-wrap:nowrap;justify-content:center}
.poker-screen .poker-actions>button{height:44px;min-height:44px;box-sizing:border-box;font-size:16px;font-weight:700;padding:8px 20px;line-height:1.1;touch-action:manipulation}
@media(max-width:620px){
 .poker-screen .poker-actions{height:48px;min-height:48px;padding:2px 0;gap:5px}
 .poker-screen .poker-actions>button{flex:1 1 0;min-width:0;max-width:180px;padding:6px 3px;font-size:15px;white-space:nowrap}
 .poker-screen .poker-actions .poker-live-bid button{height:44px;min-height:44px;font-size:12px;padding:5px 1px}
}
@media(max-width:620px) and (max-height:600px){
 .poker-screen .poker-actions{height:38px;min-height:38px;padding:1px 0}
 .poker-screen .poker-actions>button,.poker-screen .poker-actions .poker-live-bid button{height:36px;min-height:36px;font-size:13px}
}

/* v4.48: two centered overlapping hand rows. */
@media(max-width:620px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{padding-left:22px;padding-right:22px}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{margin-left:calc((var(--hand-stride,20px) - 52px)/2);margin-right:calc((var(--hand-stride,20px) - 52px)/2)}
 .poker-screen .poker-hand .card-corner.top{font-size:var(--hand-rank-size,14px);letter-spacing:-1px}
}
@media(max-width:620px) and (max-height:600px){.poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{margin-left:calc((var(--hand-stride,20px) - 40px)/2);margin-right:calc((var(--hand-stride,20px) - 40px)/2)}}
@media(max-width:620px) and (min-height:741px){.poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{margin-left:calc((var(--hand-stride,24px) - 54px)/2);margin-right:calc((var(--hand-stride,24px) - 54px)/2)}}

/* v4.51: explicit rows prevent fractional flex widths spilling one card. */
@media(max-width:620px){
 .poker-screen .poker-hand,.poker-screen.poker-many .poker-hand{display:grid;grid-template-columns:repeat(var(--hand-columns,20),var(--hand-stride,15px));grid-auto-rows:var(--hand-row-step,36px);column-gap:0;align-content:start;justify-content:center}
 .poker-screen .poker-hand .poker-card,.poker-screen.poker-many .poker-hand .poker-card{position:relative;align-self:start}
}

.king-exchange{text-align:center;padding:8px}.king-exchange>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:8px}.king-exchange button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:4px}.king-exchange button:disabled{opacity:.4}.king-exchange small{font-size:11px}.king-exchange .poker-card{width:100%;height:70px}.poker-hand-panel:has(.king-exchange)>.poker-hand{display:none!important}

.poker-actions:has([data-poker="king-offer"]){height:auto;min-height:48px;flex-wrap:wrap}.poker-actions:has([data-poker="king-offer"])>button{flex:1 1 28%;max-width:none}

.poker-actions #king-choice{height:44px;min-width:0;max-width:35%;font-size:15px;padding:4px}.poker-actions:has(#king-choice){flex-wrap:nowrap}

/* v4.61: one clear score in the center; consistent red/blue partnerships. */
.poker-screen .team-red .seat-person{border-color:#ff8c91;background:#472e32}
.poker-screen .team-blue .seat-person{border-color:#80bdff;background:#253d56}
.poker-screen .team-red .seat-person b:first-child,.team-red-text{color:#ffadb2}
.poker-screen .team-blue .seat-person b:first-child,.team-blue-text{color:#9aceff}
.poker-screen .team-levels{display:inline-flex;align-items:center;gap:5px;margin-left:8px;white-space:nowrap;font-size:18px;font-weight:800}
.poker-screen .four-seat-table .table-center{padding:4px;border:0;background:none;box-shadow:none}
.poker-screen .table-center .center-score{font-size:22px;display:flex;flex-direction:column;align-items:center;gap:4px;white-space:nowrap}
.poker-screen .table-center .center-score b{font-size:48px;line-height:1.05;padding:0}
.poker-screen .four-seat-table .direction-seat .seat-bid{flex-direction:row;align-items:center;justify-content:center;gap:3px}
.poker-screen .four-seat-table .direction-seat .seat-bid>small{width:auto;flex:none;font-size:14px;white-space:nowrap}
@media(max-width:620px){
 .poker-screen .table-center .center-score{font-size:14px}.poker-screen .table-center .center-score b{font-size:30px}
 .poker-screen .team-levels{font-size:14px;gap:3px;margin-left:4px}
 .poker-screen .poker-hand-panel .section-head>span{display:none}
 .poker-screen .four-seat-table .direction-seat .seat-bid>small{font-size:11px}
}

/* v470: persistent voice controls live in the header, away from play buttons. */
.room-voice .voice-controls{position:relative}
.room-voice .voice-controls>summary{cursor:pointer;list-style:none;font-size:12px;line-height:22px;white-space:nowrap}
.room-voice .voice-controls>summary::-webkit-details-marker{display:none}
.room-voice .voice-controls-panel{display:flex;flex-wrap:wrap;gap:6px;padding:8px}
.room-voice .voice-controls-panel span{flex-basis:100%;overflow-wrap:anywhere}
.poker-screen .poker-voice-bar{position:fixed;top:calc(32px + env(safe-area-inset-top));bottom:auto;left:8px;right:auto;transform:none;width:auto;max-width:140px;margin:0;padding:0 7px;border-radius:7px;z-index:1061}
.poker-screen .poker-voice-bar .voice-controls-panel{position:fixed;top:calc(58px + env(safe-area-inset-top));left:8px;width:min(340px,calc(100vw - 16px));box-sizing:border-box;max-height:45dvh;overflow:auto;background:#17352d;border:1px solid #7aa38b;border-radius:9px;box-shadow:0 5px 20px #0008}
.poker-screen .poker-voice-bar .voice-controls-panel span{font-size:12px;line-height:1.5}
.poker-screen:has(.poker-voice-bar) #main{padding-bottom:4px}

/* v473: full-height Land Battle with essential information in the play area. */
body.land-screen{height:100dvh;overflow:hidden}
.land-screen>.sidebar,.land-screen .shell>header,.land-screen .shell>footer,.land-screen #main>.page-head{display:none}
.land-screen .shell{margin:0;height:100dvh;min-height:0;display:flex;flex-direction:column}
.land-screen #main{width:100%;max-width:none;margin:0;padding:calc(58px + env(safe-area-inset-top)) 8px max(5px,env(safe-area-inset-bottom));flex:1;min-height:0;display:flex;box-sizing:border-box}
.land-screen .back{position:fixed;left:8px;top:14px;margin:0;font-size:12px;z-index:1060}
.land-screen #land-menu{position:fixed;right:10px;top:14px;z-index:1062;font-size:13px}
#land-menu>summary{list-style:none;cursor:pointer}
.land-menu-body{position:fixed;right:8px;top:58px;width:min(350px,calc(100vw - 16px));max-height:75dvh;overflow:auto;background:#182621;padding:10px;border:1px solid #63836f;border-radius:10px}
.land-menu-body .arena-side{display:block}
.land-screen .land-layout{width:100%;height:100%;min-height:0;display:block}
.land-screen .land-stage{max-width:720px;height:100%;box-sizing:border-box;margin:auto;padding:5px 8px;display:flex;flex-direction:column;gap:3px;min-height:0}
.land-screen .land-status{min-height:22px;font-size:12px;line-height:1.3;flex-shrink:0}
.land-screen .land-status #countdown{display:none}
.land-screen .land-opponent,.land-screen .land-self{width:100%;max-width:none;margin:0;font-size:12px;min-height:18px;flex-shrink:0}
.land-screen .land-board-slot{flex:1;min-height:0;container-type:size;display:flex;align-items:center;justify-content:center}
.land-screen .land-board{width:min(100%,58cqh);max-width:none;aspect-ratio:500/850;padding:5px;margin:0;box-sizing:border-box;flex-shrink:0}
.land-screen .land-grid{height:100%;aspect-ratio:auto}
.land-screen .land-board svg{inset:5px;width:calc(100% - 10px);height:calc(100% - 10px)}
.land-screen .land-piece{font-size:clamp(11px,3.5cqw,19px);letter-spacing:0}
.land-screen .land-piece.covered{font-size:17px}
.land-screen .land-casualties{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:3px 5px;flex-shrink:0}
.land-screen .land-casualties h3{display:none}
.land-screen .land-loss-row{padding:2px 0;gap:4px;align-items:start}
.land-screen .land-loss-row>strong{min-width:42px;font-size:10px}
.land-screen .land-loss-row>strong small{display:inline;margin-left:3px}
.land-screen .land-loss-pieces{gap:2px}
.land-screen .land-loss-chip{padding:1px 3px;font-size:10px;gap:2px}
.land-screen .land-toolbar{margin:0;display:flex;gap:4px;flex-wrap:nowrap;flex-shrink:0}
.land-screen .land-toolbar button{flex:1;padding:7px 3px;font-size:12px;white-space:nowrap}
.land-screen .land-legend{margin:0;font-size:11px;line-height:16px;max-height:32px;overflow:hidden;flex-shrink:0}
.land-screen #room-voice{position:fixed;left:8px;top:33px;bottom:auto;transform:none;margin:0;padding:0 5px;z-index:1061}
.land-screen #room-voice .voice-controls-panel{position:fixed;left:8px;top:58px;width:min(340px,calc(100vw - 16px));background:#17352d;border:1px solid #7aa38b;border-radius:8px;box-sizing:border-box}

.land-screen .shell{padding:0}
.land-screen .land-piece{height:76%;width:84%}
.land-screen .land-piece.covered{font-size:14px}

/* v474: active tables and immutable room rule summaries. */
.lobby-live{margin-bottom:18px}.lobby-live-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}.lobby-live-room{padding:12px;border:1px solid #3c5149;border-radius:9px;background:#192921}.lobby-live-room .section-head{margin-bottom:5px}.lobby-live-room button{padding:7px 12px}.lobby-host{font-size:12px;color:#bac9c0;margin-bottom:8px}.lobby-rule-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;line-height:1.5}.lobby-rule-tags span{display:inline-block;border:1px solid #4d6357;background:#22392f;color:#dce9df;border-radius:5px;padding:2px 6px;font-size:12px;white-space:normal}.room-row>span{min-width:0;flex:1}.room-row>button{flex-shrink:0}
@media(max-width:620px){.lobby-live{padding:12px}.lobby-live-grid{grid-template-columns:1fr}.lobby-live-room{padding:9px}.lobby-rule-tags{gap:4px}.lobby-rule-tags span{font-size:12px}}

/* v475: reserve casualty space so captures never resize the board. */
.land-screen .land-casualties{height:68px;min-height:68px;max-height:68px;padding:2px 4px;flex:0 0 68px}
.land-screen .land-loss-row{height:31px;box-sizing:border-box;padding:2px 0;gap:4px;align-items:center}
.land-screen .land-loss-row>strong{width:32px;min-width:32px;font-size:10px;line-height:14px}
.land-screen .land-loss-row>strong small{display:block;margin:0;font-size:9px;white-space:nowrap}
.land-screen .land-loss-pieces{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,13px);gap:1px 2px;flex:1;min-width:0}
.land-screen .land-loss-chip{padding:0 1px;gap:1px;font-size:10px;line-height:11px;min-width:0;height:13px;box-sizing:border-box;border-radius:3px;box-shadow:none;white-space:nowrap}
.land-screen .land-loss-chip b{font-size:9px}
.land-screen .land-loss-empty{grid-column:1/-1;grid-row:1/3;align-self:center;font-size:10px}
.land-screen .land-legend{height:16px;min-height:16px;max-height:16px;white-space:nowrap;text-overflow:ellipsis}
.land-screen .land-status{height:22px;min-height:22px;max-height:22px;white-space:nowrap}

/* v477: put both players on one line; the fixed clock already names the turn. */
.land-screen .land-players{display:flex;align-items:center;justify-content:space-between;gap:8px;height:18px;min-height:18px;flex:0 0 18px;overflow:hidden}
.land-screen .land-players .land-opponent,.land-screen .land-players .land-self{width:auto;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px}
.land-screen .land-players .land-self{text-align:right;display:block}
.land-screen .land-players .land-self>span{display:none}
.land-screen .land-stage:not(:has(.land-toolbar)) .land-status{display:none}

/* v479: the camp stays fixed while its piece moves. */
.land-node.camp.land-moving-from{opacity:1}
/* Xiangqi: fixed proportions, circular pieces, one-screen play. */
.xq-focus .sidebar,.xq-focus .shell>header,.xq-focus footer{display:none!important}.xq-focus .shell{margin:0!important}.xq-focus #main{padding:8px!important;margin:0!important}.xq-room{height:calc(100dvh - 24px);max-width:820px;margin:auto;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:0}.xq-top{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:50px}.xq-top .back{margin:0}.xq-top details{position:relative}.xq-top details[open]{z-index:20;background:#202932;padding:8px;border-radius:10px}.xq-top details button{display:block;margin-top:8px}.xq-top strong{visibility:hidden}.xq-status{color:#daeda3;font-size:16px;min-height:24px}.xq-player{width:100%;max-width:660px;font-weight:700;color:#e6d4b3;font-size:16px;min-height:24px;display:flex;justify-content:space-between}.xq-player small{font-weight:400;color:#a9b5b3}.xq-board{position:relative;aspect-ratio:730/810;height:calc(100dvh - 195px);max-width:100%;flex-shrink:1;min-height:0;background:#ead6ae;border:5px solid #a78253;border-radius:9px;box-shadow:0 7px 22px #0004}.xq-board svg{display:block;width:100%;height:100%}.xq-node{position:absolute;transform:translate(-50%,-50%);width:9%;aspect-ratio:1;border:0;padding:0;background:transparent!important;display:grid;place-items:center;opacity:1!important}.xq-piece{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;border:2px solid currentColor;box-shadow:inset 0 0 0 3px #f6e7c8,0 3px 3px #52391966;background:#f7e7c8;color:#263738;font-family:serif;font-weight:800;font-size:clamp(20px,4.8vh,40px);line-height:1}.xq-piece.red{color:#b1362c}.xq-node.selected .xq-piece{outline:3px solid #55a6d0;outline-offset:2px}.xq-node.target:after{content:'';position:absolute;width:22%;height:22%;border-radius:50%;background:#30927a;box-shadow:0 0 0 3px #d2edacaa}.xq-node.last:before{content:'';position:absolute;inset:-4%;border:2px dashed #a3622a;border-radius:50%}.xq-log{font-size:13px;color:#a9b5b3;min-height:20px}.xq-focus:has(#room-voice) .xq-board{height:calc(100dvh - 250px)}.xq-focus #room-voice{max-width:600px;left:50%;transform:translateX(-50%);bottom:4px}.xq-focus .match-clock{top:8px!important;left:50%!important;transform:translateX(-50%)!important}@media(max-width:600px){.xq-board{border-width:3px}.xq-piece{font-size:clamp(19px,6vw,28px)}.xq-player{font-size:14px}.xq-status{font-size:14px}.xq-top{min-height:54px}}

.xq-focus .shell{padding:0!important;min-height:0!important}.xq-top{padding:0!important;height:54px!important;flex-shrink:0}.xq-board,.xq-focus:has(#room-voice) .xq-board{width:min(calc((100dvh - 195px)*.90123),calc(100vw - 20px),720px);height:auto;flex:none}.xq-focus:has(#room-voice) .xq-board{width:min(calc((100dvh - 255px)*.90123),calc(100vw - 20px),720px)}.xq-room{height:auto;min-height:0}.xq-top details[open]{position:absolute;right:10px;top:8px;max-width:250px}.xq-top .watch-panel{display:block;font-size:12px}.xq-focus .shell>header{display:none!important}
.xq-x0{left:6.164383561643835%}.xq-x1{left:17.123287671232877%}.xq-x2{left:28.08219178082192%}.xq-x3{left:39.04109589041096%}.xq-x4{left:50.0%}.xq-x5{left:60.95890410958904%}.xq-x6{left:71.91780821917808%}.xq-x7{left:82.87671232876713%}.xq-x8{left:93.83561643835617%}.xq-y0{top:5.555555555555555%}.xq-y1{top:15.432098765432098%}.xq-y2{top:25.308641975308642%}.xq-y3{top:35.18518518518518%}.xq-y4{top:45.06172839506173%}.xq-y5{top:54.93827160493827%}.xq-y6{top:64.81481481481481%}.xq-y7{top:74.69135802469135%}.xq-y8{top:84.5679012345679%}.xq-y9{top:94.44444444444444%}