:root {
  color-scheme: dark; font-family: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --ink:#f6f8ff; --muted:#b8c9f7; --gold:#ffd77b; --navy:#152559; --blue:#386ce8;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;color:var(--ink);background:#182752;overscroll-behavior:none}
body{background:linear-gradient(180deg,#0c123060,#14265c30 40%,#101d4dcc),url('./assets/v020/garden-table.webp') center/cover fixed}
button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:disabled{cursor:default;filter:saturate(.4);opacity:.48}
button:focus-visible,input:focus-visible{outline:3px solid #89e4ff;outline-offset:3px}
button{color:inherit}input{color:var(--ink);min-width:0}
.icon{height:1.2em;width:1.2em;flex-shrink:0;vertical-align:middle}
#shell{min-height:100dvh}#app{position:relative;min-height:calc(100dvh - 76px)}
.topbar{height:76px;padding:0 max(4vw,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;position:relative;z-index:5;background:linear-gradient(#0d173c9c,transparent)}
.brand{border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:0;text-shadow:0 2px 6px #172055}
.brand-mark{display:grid;place-items:center;width:43px;height:48px;color:#724000;font-family:Georgia,serif;font-size:31px;background:linear-gradient(135deg,#fff7c6,#fac05d);border:2px solid #ffebaf;border-radius:10px;box-shadow:0 4px 0 #a86926,0 5px 20px #0005;transform:rotate(-8deg)}
.brand strong{display:block;font-size:24px;font-weight:950;color:#fff0bf;letter-spacing:2px}
.brand small{display:block;font-size:9px;letter-spacing:4px;text-align:left;color:#d0d6e8;margin-top:3px}
.top-actions{display:flex;gap:15px}.tool-button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;padding:5px 9px;min-width:40px;color:#fff3cc;text-shadow:0 2px 4px #04103b}
.tool-button .icon{width:24px;height:24px;filter:drop-shadow(0 2px 3px #04103480)}
.tool-button:hover{color:white;filter:brightness(1.2)}
.home-shell{max-width:1140px;margin:0 auto;padding:20px 25px 18px}
.home-intro{text-align:center;margin-bottom:24px;text-shadow:0 3px 12px #13162b}
.season-chip{display:inline-block;font-size:11px;letter-spacing:2px;color:#ffecb8;background:#14254c9c;border:1px solid #ffe1a149;border-radius:99px;padding:6px 16px}
.home-intro h1{font-size:clamp(32px,4vw,55px);font-weight:950;line-height:1.18;letter-spacing:1px;margin:12px 0}
.home-intro h1 br{display:none}.home-intro h1 em{font-style:normal;color:#ffe4a0}.home-intro p{color:#e6e8ef;font-size:14px;margin:12px 0 0}
.home-content{max-width:990px;margin:auto}
.welcome-card{display:flex;align-items:center;gap:11px;margin-bottom:16px;padding:8px 14px;border-radius:16px;background:linear-gradient(100deg,#202d7199,#1c286259);border:1px solid #8eaeeb44;box-shadow:inset 0 1px #cddcff14}
.welcome-card label{display:block;color:#c5d9ff;font-size:11px}.welcome-card input{display:block;outline:0;background:transparent;border:0;padding:3px 0 0;font-size:17px;font-weight:bold;max-width:180px}
.avatar-picker{background:transparent;border:0;padding:0;flex-shrink:0}.avatar{display:block;width:64px;height:64px;background-image:url('./assets/v020/characters.webp');background-size:200% 200%;border-radius:50%;box-shadow:inset 0 0 0 2px #fff6}
.avatar-0{background-position:0 0}.avatar-1{background-position:100% 0}.avatar-2{background-position:0 100%}.avatar-3{background-position:100% 100%}
.welcome-card .avatar{width:48px;height:48px;border:2px solid #fff2b0}
.online-badge{margin-left:auto;display:flex;gap:7px;align-items:center;font-size:12px;color:#b6f3e6}.online-badge i,.connection-dot{width:7px;height:7px;border-radius:50%;background:#83ecc2;box-shadow:0 0 8px #35ffc666;display:inline-block}.connection-dot.offline{background:#ffd77b}
.home-showcase{height:104px;margin:0 0 18px;position:relative;border:1px solid #d6e6ff55;border-radius:18px;overflow:hidden;background:linear-gradient(105deg,#172b6ed9,#5a3f9fc9);box-shadow:inset 0 1px #fff3,0 8px 25px #07133d44}
.showcase-track,.showcase-slide{height:100%}.showcase-slide{position:absolute;inset:0;display:flex;align-items:center;gap:18px;padding:14px 22px 21px;opacity:0;transform:translateX(3%);pointer-events:none;transition:opacity .45s,transform .45s;background:radial-gradient(circle at 76% 0,#fdcb6b2b,transparent 38%)}
.showcase-slide.active{opacity:1;transform:none;pointer-events:auto}.showcase-suit{width:56px;height:56px;display:grid;place-items:center;flex:0 0 auto;border-radius:16px;color:#ffe9ae;background:linear-gradient(145deg,#789cf4aa,#362a7799);border:1px solid #fff7;font:700 34px Georgia,serif;box-shadow:inset 0 1px #fff5,0 5px 15px #09153d77;animation:showcase-float 2.8s ease-in-out infinite}
.showcase-copy{display:flex;flex-direction:column;min-width:0}.showcase-copy small{color:#9fe8dc;font-size:10px;letter-spacing:2px}.showcase-copy strong{color:#fff0bc;font-size:20px;margin:3px 0}.showcase-copy span{color:#dbe6ff;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.showcase-slide .btn{margin-left:auto;flex:0 0 auto}
.showcase-dots{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);display:flex;gap:7px;z-index:3}.showcase-dot{width:18px;height:4px;padding:0;border:0;border-radius:5px;background:#aebde766;transition:width .25s,background .25s}.showcase-dot.active{width:34px;background:#ffe096}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.mode-card{height:264px;padding:23px 22px 20px;border:2px solid #b3ccff80;border-radius:24px;position:relative;overflow:hidden;background:linear-gradient(118deg,#226aa9,#304fba 55%,#566cbb);box-shadow:0 8px 0 #111a5280,inset 0 2px 0 #e9f4ff77,0 15px 40px #0310304d;isolation:isolate}
.mode-card:before{content:"";position:absolute;inset:5px;border:1px solid #dbebff24;border-radius:18px;pointer-events:none}
.mode-card:after{content:"";position:absolute;width:340px;height:340px;background:radial-gradient(circle,#f6ebff30,transparent 67%);right:-20%;top:-50%;z-index:-1}
.mode-gd{background:linear-gradient(118deg,#7043bc,#723dcc 55%,#9070d0);border-color:#e3c4ff80}
.mode-tag{font-size:10px;letter-spacing:1px;color:#e4f3ff;background:#0e305944;border:1px solid #c7dfff44;padding:4px 9px;border-radius:6px}
.mode-copy{position:relative;z-index:2;margin-top:16px;pointer-events:none}
.mode-copy small{font-size:10px;letter-spacing:4px;color:#b8d4f8}.mode-gd .mode-copy small{color:#e3c7ff}
.mode-copy h2{font-size:48px;line-height:1;margin:7px 0 10px;color:#fff6ce;letter-spacing:1px;font-style:italic;font-weight:950;text-shadow:0 3px 0 #32226088,0 5px 15px #16275090}
.mode-copy p{font-size:12px;letter-spacing:.5px;color:#e5eafa;margin:0}
.mode-hero-avatar{position:absolute;right:-12px;top:-1px;width:206px;height:205px;opacity:.98;mask-image:linear-gradient(to bottom,#000 70%,transparent 100%)}
.mode-hero-avatar .avatar{width:100%;height:100%;border-radius:20%;box-shadow:none}
.decor-cards{position:absolute;left:47%;top:91px;height:90px;pointer-events:none}
.decor-cards i{position:absolute;width:42px;height:61px;background:linear-gradient(120deg,#fff,#e6e7ec);box-shadow:0 3px 9px #10195580;border:1px solid white;border-radius:5px;color:#1b244e;font:700 24px Georgia,serif;padding:2px 4px;transform:rotate(-20deg)}
.decor-cards i span{display:block;font-size:26px;text-align:center;line-height:1}.decor-cards i:nth-child(2){transform:translate(23px,-5px) rotate(2deg);color:#d83243}.decor-cards i:nth-child(3){transform:translate(46px,0) rotate(19deg)}
.mode-actions{position:absolute;bottom:20px;left:22px;right:22px;display:grid;grid-template-columns:1.15fr 1fr;gap:10px;z-index:3}
.mode-actions.three{grid-template-columns:1fr 1.12fr 1fr;gap:7px}.mode-actions.three .btn{padding-inline:8px;font-size:12px}.btn.hot{position:relative;box-shadow:inset 0 2px 0 #fff9,0 4px 0 #b75d25,0 0 22px #ffd45266}
.btn{min-height:44px;border-radius:12px;border:1px solid #fff8;padding:9px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;transition:filter .15s,transform .15s;box-shadow:0 4px 0 #11225366,0 7px 12px #0d16472b}
.btn:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.btn:active:not(:disabled){transform:translateY(2px)}
.btn.gold{color:#864612;background:linear-gradient(#fff0b1 0,#ffcf66 48%,#ffb543 100%);border-color:#fff1b6;box-shadow:inset 0 2px 0 #fff9,0 4px 0 #b77531,0 8px 20px #351c3840;text-shadow:0 1px #ffffff69}
.btn.blue{background:linear-gradient(#9bc8ff,#6995f3 47%,#4872d9);color:white;border-color:#c3deff;box-shadow:inset 0 2px #d9ebff77,0 4px 0 #294bb3;text-shadow:0 1px 2px #1c43b3}
.btn.glass{background:linear-gradient(#bbcfff33,#718ce744);color:white;border-color:#d5e6ff70;box-shadow:inset 0 1px #e5edff33,0 4px 0 #18296044}
.btn.small{min-height:36px;padding:7px 13px;font-size:12px;border-radius:9px}
.home-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:19px 0 8px}
.join-strip{display:flex;align-items:center;gap:10px}.join-strip label{color:#d6e1ff;font-size:13px}.join-strip input{background:#1220547a;border:1px solid #9baee761;border-radius:9px;padding:9px 11px;width:140px;font-size:14px;letter-spacing:2px;text-transform:uppercase}
.resume-link{border:0;background:transparent;font-size:12px;color:#ffe4a0;display:flex;align-items:center;gap:4px}.resume-link svg{transform:rotate(180deg)}
.subtle{color:#b9c9ef;font-size:12px}
.home-caption{display:flex;justify-content:center;gap:34px;color:#b6c9ff;font-size:12px;padding:14px 0 3px}
.home-footnote{text-align:center;color:#a4b5d7;font-size:10px;margin:25px 0 4px}.home-footnote span{margin-left:16px;opacity:.6}
.lobby-shell{max-width:970px;margin:0 auto;padding:35px 24px}.room-heading{text-align:center;margin-bottom:25px}.room-heading h1{font-size:clamp(25px,3vw,40px);margin:14px 0;text-shadow:0 3px 6px #001a41}.room-heading p{color:#d2ddf6;font-size:14px}
.lobby-panel{background:linear-gradient(140deg,#293775ee,#1e2b61ed);border:1px solid #a8c1ff6b;border-radius:25px;box-shadow:0 12px 50px #08123266,inset 0 2px #d0e2ff1a;overflow:hidden}
.room-code{display:flex;align-items:center;justify-content:center;gap:14px;padding:20px;background:#18265b66;color:#baccf4;font-size:13px}.room-code strong{letter-spacing:5px;font-size:24px;color:#ffdf96}
.seat-list{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:30px}
.lobby-seat{position:relative;min-height:190px;border-radius:18px;border:1px solid #a8c2ff44;background:linear-gradient(#829aeb18,#304d9a18);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:12px}
.lobby-seat .avatar{width:88px;height:88px;border:3px solid #d4e8ff}.lobby-seat strong{font-size:14px}.lobby-seat small{font-size:11px;color:#ade9da}
.lobby-seat.empty{border:1px dashed #8199dc77;background:#20305e30;color:#b1c3e7}.empty-avatar{width:72px;height:72px;border:1px dashed #b5ccff66;border-radius:50%;display:grid;place-items:center;font-size:38px;color:#adc5ec}
.remove-bot{position:absolute;right:8px;top:6px;border:0;background:#131f5880;width:24px;height:24px;border-radius:50%;font-size:18px}
.lobby-footer{display:flex;flex-wrap:wrap;gap:15px;justify-content:space-between;align-items:center;padding:20px 30px 26px;border-top:1px solid #abbfff22}
.lobby-footer input,.modal input[readonly]{background:#111d4c66;border:1px solid #a3bbee66;padding:12px;border-radius:10px;min-width:180px}
.button-cluster{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.rule-note{color:#b4c5ed;font-size:12px;line-height:1.8;text-align:center}
.loading{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading h2{color:#ffe2a1;font-size:24px}.loading p{color:#bac8ed;font-size:13px}.shuffle-cards{height:90px;width:100px;position:relative;margin-bottom:10px}.shuffle-cards i{position:absolute;inset:0 20px;border:2px solid #dfe9ff;border-radius:7px;background:linear-gradient(40deg,#4361bd,#9b83e3);animation:shuffle 1s infinite}.shuffle-cards i:nth-child(2){animation-delay:.15s}.shuffle-cards i:nth-child(3){animation-delay:.3s}
body[data-view="game"]{overflow:hidden}
body[data-view="game"] #shell{position:fixed;inset:0;width:100vw;height:100dvh;min-height:0}
body[data-view="game"] .topbar{display:none}
body[data-view="game"] #app{height:100%;min-height:0}
.game-shell{width:100%;height:100%;background:#142353}
.game-board{width:100%;height:100%;position:relative;overflow:hidden;container-type:size;isolation:isolate;background:url('./assets/v020/garden-table.webp') center/100% 100% no-repeat;--u:min(1cqw,1.85cqh);--rows:4}
.table-vignette{position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(#1120535e,transparent 35%,#1d3a990d 70%,#12338c44)}
.game-board:after{content:"";position:absolute;inset:24% 7% 9%;border-radius:50%;pointer-events:none;z-index:1;opacity:0;background:radial-gradient(ellipse,#79bbff19,transparent 68%);box-shadow:inset 0 0 65px #5cb7ff22;transition:opacity .35s}.game-board.my-turn:after{opacity:1;animation:table-breathe 2.2s ease-in-out infinite}
.game-ambient{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}.game-ambient i{position:absolute;top:-8%;width:7px;height:12px;border-radius:80% 20% 70% 30%;background:#ffd0d799;filter:blur(.2px);animation:petal-fall 9s linear infinite}.game-ambient i:nth-child(1){left:8%;animation-delay:-2s}.game-ambient i:nth-child(2){left:17%;animation-delay:-6s}.game-ambient i:nth-child(3){left:28%;animation-delay:-4s}.game-ambient i:nth-child(4){left:39%;animation-delay:-8s}.game-ambient i:nth-child(5){left:48%;animation-delay:-1s}.game-ambient i:nth-child(6){left:58%;animation-delay:-7s}.game-ambient i:nth-child(7){left:68%;animation-delay:-3s}.game-ambient i:nth-child(8){left:77%;animation-delay:-9s}.game-ambient i:nth-child(9){left:86%;animation-delay:-5s}.game-ambient i:nth-child(10){left:93%;animation-delay:-1.5s}.game-ambient i:nth-child(11){left:34%;animation-delay:-10s}.game-ambient i:nth-child(12){left:73%;animation-delay:-11s}
body[data-theme="night"] .game-board{background-image:linear-gradient(#1c246666,#304db844),url('./assets/v020/garden-table.webp')}
body[data-theme="night"]{background-image:linear-gradient(#121a5399,#10235499),url('./assets/v020/garden-table.webp')}
.game-header{position:absolute;top:0;left:0;right:0;height:12cqh;padding:1.5cqh max(2cqw,env(safe-area-inset-left));z-index:20;display:flex;justify-content:space-between;align-items:flex-start;background:linear-gradient(#091337ac,transparent)}
.game-nav,.game-tools{display:flex;align-items:center;gap:calc(var(--u)*1.5)}
.game-header .tool-button{font-size:calc(var(--u)*1);gap:3px;min-width:calc(var(--u)*3.8);padding:2px}
.game-header .icon{width:calc(var(--u)*2.3);height:calc(var(--u)*2.3)}
.game-nav>.tool-button .icon{height:calc(var(--u)*3.4);width:calc(var(--u)*3.4)}
.game-title{display:flex;flex-direction:column;gap:4px}.game-title b{font-size:calc(var(--u)*2.1);font-style:italic;color:#ffecba;letter-spacing:2px;text-shadow:0 3px 4px #161847}.game-title span{font-size:calc(var(--u)*.88);color:#c7dcff}
.room-pill{background:#14275199;border:1px solid #b8cfff44;border-radius:30px;color:#d3e1ff;padding:.7cqh 1cqw;font-size:calc(var(--u)*1);display:flex;align-items:center;gap:.6cqw}
.game-nav .room-pill .icon{width:1.3em;height:1.3em}
.rank-counter{position:absolute;left:12%;top:13.5%;display:flex;gap:.35cqw;align-items:center;z-index:4;max-width:33%}
.counter-label{font-size:calc(var(--u)*.8);color:#ccdafa;writing-mode:vertical-rl;letter-spacing:2px}
.counter-grid{display:flex;border:1px solid #cbdefca3;border-radius:5px;background:#eef2ffed;box-shadow:0 3px 9px #0b174355;overflow:hidden}
.counter-cell{display:flex;flex-direction:column;text-align:center;min-width:1.73cqw;font-family:Georgia,"Microsoft YaHei",serif}
.counter-cell b{color:#2b3863;line-height:1.5;font-size:calc(var(--u)*1.02);border-right:1px solid #2638671f;font-weight:800}.counter-cell:nth-child(-n+2) b{font-family:inherit;font-size:calc(var(--u)*.72);line-height:2.1}
.counter-cell i{color:#d95143;font-style:normal;font-size:calc(var(--u)*1.07);font-weight:700;border-top:1px solid #aebbd477;line-height:1.35}
.counter-cell.exhausted{opacity:.4}.counter-unavailable{font-size:calc(var(--u)*.9);color:#cbdaf7}
.game-meta{position:absolute;left:2.4%;top:14%;display:flex;align-items:center;gap:.7cqw;z-index:4;font-size:calc(var(--u)*.92);line-height:1.8;color:#d6e4ff}
.game-meta b{color:#ffe59c}.level-chip{position:relative;display:flex;flex-direction:column;width:3.5cqw;min-width:26px;border:1px solid #cfddff;border-radius:6px;background:linear-gradient(#fff9eb,#e6eeff);color:#d64339;text-align:center;box-shadow:0 4px 5px #06174377}
.mode-chip,.warm-chip{display:inline-block;font-style:normal;padding:.1cqh .5cqw;border:1px solid #bfe2ff77;border-radius:20px;background:#2d69b899;color:#e6f5ff;font-size:.88em}.warm-chip{border-color:#ffe39a88;background:#96632a99;color:#fff0b6}
.level-chip small{font-size:calc(var(--u)*.64);background:#4480d9;color:#e8f5ff;border-radius:5px 5px 0 0;line-height:1.6}.level-chip b{font-size:calc(var(--u)*2.3);line-height:1.1;color:#d34339;font-family:Georgia,serif}.level-chip i{font-size:calc(var(--u)*1.5);line-height:1.1;font-style:normal}
.game-board[data-game="doudizhu"] .game-meta{left:50%;transform:translateX(-50%);top:11%;flex-direction:column;gap:.7cqh}
.bottom-cards{display:flex;gap:.35cqw}.card-back{display:grid;place-items:center;border:2px solid #d7e8ff;border-radius:4px;background:repeating-linear-gradient(45deg,#5174c8 0 3px,#3f5aa9 3px 6px);width:3.4cqw;height:7.6cqh;font:700 calc(var(--u)*2) Georgia;color:#d4e1ff}
.bottom-cards .playing-card{width:3.4cqw;height:7.6cqh;border-radius:4px;font-size:calc(var(--u)*1.3)}
.bottom-cards .card-center{font-size:calc(var(--u)*1.8);bottom:4%;right:5%}.bottom-cards .card-corner-bottom{display:none}
.player-pod{position:absolute;z-index:7;display:flex;align-items:center;flex-direction:column;gap:1cqh;transition:filter .2s}
.portrait-ring{width:calc(var(--u)*7.3);height:calc(var(--u)*7.3);border-radius:50%;padding:3px;position:relative;background:linear-gradient(#e4f8ff,#a8cef2 45%,#5b7ed4);border:1px solid #fff6;box-shadow:0 3px 12px #03143b77,inset 0 0 0 2px #385ba6}
.portrait-ring:before{content:"";position:absolute;inset:-5px;border:2px solid transparent;border-radius:50%;transition:all .2s}
.player-pod .avatar{width:100%;height:100%;border:2px solid #f0f5ff55}
.role-ribbon{position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);min-width:calc(var(--u)*4.2);text-align:center;white-space:nowrap;padding:.2cqh .5cqw;border:1px solid #ffe4ab;background:linear-gradient(#ffa85e,#d45c2b);font-size:calc(var(--u)*1.07);color:#fff5d6;font-weight:800;box-shadow:0 2px 3px #411c3566;border-radius:3px}
.player-pod.ally .role-ribbon{background:linear-gradient(#69c5fb,#2c70c2);border-color:#aeebff}
.player-info{text-align:center;text-shadow:0 2px 4px #03154b}.player-info strong{display:block;font-size:calc(var(--u)*1.26);max-width:10cqw;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.player-info>span{display:block;font-size:calc(var(--u)*.82);color:#c0d1f5;margin-top:3px}
.hand-count{position:absolute;top:1cqh;left:calc(100% + .6cqw);min-width:calc(var(--u)*3.3);height:calc(var(--u)*4.2);padding:.4cqh .45cqw;border:1px solid #c5dfff;background:linear-gradient(#5287d799,#294c9799);border-radius:5px;text-align:center;display:flex;flex-direction:column;justify-content:center;box-shadow:inset 0 0 0 2px #adcbff22}
.hand-count b{font-size:calc(var(--u)*2);font-weight:700;line-height:1.1}.hand-count small{font-size:calc(var(--u)*.67)}.hand-count.low{border-color:#ffe398;color:#fff1ab;background:linear-gradient(#ee9b48cc,#bc6433cc)}
.player-left{left:2.5%;top:35%}.player-right{right:2.5%;top:35%}.player-right .hand-count{left:auto;right:calc(100% + .6cqw)}
.player-top{left:55%;top:10.8%;flex-direction:row;transform:translateX(-50%);gap:1cqw}.player-top .portrait-ring{width:calc(var(--u)*5.8);height:calc(var(--u)*5.8)}.player-top .player-info{text-align:left}.player-top .hand-count{left:auto;right:calc(100% + 1cqw);top:1cqh}
.player-bottom{left:2.3%;bottom:11%;top:auto}.player-bottom .portrait-ring{width:calc(var(--u)*6.7);height:calc(var(--u)*6.7)}.player-bottom .hand-count{display:none}.player-bottom .player-info>span{display:none}
.turn-dot{display:none;position:absolute;top:-3.3cqh;white-space:nowrap;font-size:calc(var(--u)*.9);color:#ffecae;font-weight:700;text-shadow:0 1px 3px #703c06}
.current .portrait-ring{background:linear-gradient(#fff6b7,#ffc04d);box-shadow:0 0 22px #ffc64299}
.current .portrait-ring:before{border-color:#ffdf76;box-shadow:0 0 8px #ffd35c66;animation:turn-glow 1.5s ease-in-out infinite}
.current .turn-dot{display:block}
.table-play{position:absolute;left:50%;top:25%;transform:translateX(-50%);width:58%;height:13%;z-index:5;display:flex;justify-content:center;align-items:center}
.table-watermark{display:flex;flex-direction:column;align-items:center;gap:.9cqh;opacity:.36;text-shadow:0 1px 1px #afbcff44;color:#bbd2ff}
.table-watermark>span{font-size:calc(var(--u)*1.7);letter-spacing:1.1cqw}.table-watermark strong{font-size:calc(var(--u)*3.8);font-style:italic;letter-spacing:.4cqw}.table-watermark small{font-size:calc(var(--u)*1)}
.table-trick{text-align:center;width:100%}.trick-label{font-size:calc(var(--u)*1.04);color:#e5edff;margin-bottom:1cqh;text-shadow:0 2px 4px #1c2869}.trick-label b{color:#ffe7a3;margin-left:.6cqw}
.played-cards{display:flex;justify-content:center;align-items:center;padding-left:2cqw}
.played-cards .playing-card{width:calc(var(--u)*4.8);height:calc(var(--u)*6.4);font-size:calc(var(--u)*1.6);margin-left:-1.3cqw;flex-shrink:1;min-width:2.3cqw}
.played-cards .card-center{font-size:calc(var(--u)*2.8)}.played-cards .card-corner-bottom{display:none}
.playing-card{position:relative;padding:0;color:#20233b;border-radius:7px;border:1px solid #bec5d6;background:linear-gradient(115deg,#fffefa,#ffffff 30%,#e9ecf4 100%);box-shadow:0 2px 4px #121d5860,inset 1px 1px 0 #fff;overflow:hidden;flex-shrink:0;user-select:none;-webkit-user-select:none}
.playing-card.red{color:#d73036}.playing-card:disabled{opacity:1;filter:none;cursor:default}
.card-corner{position:absolute;top:3%;left:7%;display:flex;align-items:center;gap:3px;font-family:Georgia,"Times New Roman",serif;line-height:1.08}
.card-corner b{font-weight:700}.card-corner i{font-style:normal;font-size:.9em}
.card-center{position:absolute;right:10%;bottom:5%;font-family:Georgia,"Times New Roman",serif;font-size:2.15em;line-height:1.1}
.card-corner-bottom{top:auto;left:auto;right:6%;bottom:3%;transform:rotate(180deg);font-size:.46em;display:none}
.face-card .card-center{border:1px solid currentColor;outline:1px solid #d1b584;outline-offset:3px;padding:0 4px;font-size:2em;right:12%;bottom:11%;opacity:.8}
.joker .card-corner{flex-direction:column;font-size:.58em;top:4%;gap:0;line-height:1.2;font-family:inherit}
.joker .card-center{bottom:12%;right:12%;font-size:2.4em;color:#6c529b}.joker.red .card-center{color:#cd5943}
.wild{background:linear-gradient(110deg,#fffad4,#fff 50%,#fff3c8);border-color:#edb147;color:#da731a!important}
.wild-label{position:absolute;left:3%;bottom:4%;writing-mode:vertical-rl;line-height:1.1;background:#e79731;color:#fff6d9;font-size:.3em;padding:4px 2px;border-radius:3px;letter-spacing:2px}
.select-tick{display:none;position:absolute;right:2px;top:2px;background:#ffba32;color:#765315;border-radius:50%;font:700 12px system-ui;width:16px;height:16px;text-align:center}
.my-zone{position:absolute;left:11%;width:81%;bottom:9.3%;z-index:10;--ch:min(20.5cqh,150px);--rowstep:min(6.3cqh,45px);--hand-height:calc(var(--ch) + (var(--rows) - 1)*var(--rowstep))}
.action-bar{height:8.5cqh;max-height:68px;margin-bottom:2cqh;display:flex;align-items:center;justify-content:center;gap:1.3cqw;position:relative;z-index:12}
.action-bar .btn{min-width:10cqw;min-height:0;height:6.9cqh;padding:0 1.8cqw;font-size:calc(var(--u)*1.7);border-radius:calc(var(--u)*1.2);letter-spacing:.3cqw}
.action-bar .play-button{min-width:12cqw}.turn-prompt{font-size:calc(var(--u)*1.1);color:#ffeca7;text-shadow:0 2px 4px #1a255e;margin-right:.5cqw}
.action-bar .super-double{background:linear-gradient(#fff3a9,#ffbd43 45%,#f07d2e);box-shadow:inset 0 2px #fff9,0 4px 0 #9d461f,0 0 18px #ffc94a55}
.waiting{display:inline-flex;align-items:center;gap:10px;border-radius:30px;padding:1.3cqh 2cqw;color:#fff0b9;background:#20377688;font-size:calc(var(--u)*1.3);text-shadow:0 2px 3px #09174d}
.thinking-dots{width:6px;height:6px;border-radius:50%;background:#ffdf88;box-shadow:9px 0 #ffdf8877,18px 0 #ffdf8844;margin-right:19px}
.hand-area{height:var(--hand-height);position:relative;display:flex;align-items:flex-end;justify-content:center}
.hand{display:flex;align-items:flex-end;justify-content:center;width:100%;height:100%;gap:.22cqw;touch-action:none;position:relative}
.card-stack{position:relative;flex:0 1 calc((100% - (var(--cols) - 1)*.22cqw)/var(--cols));max-width:7.4cqw;min-width:0;height:calc(var(--ch) + (var(--stack-size) - 1)*var(--rowstep));transition:height .15s}
.hand .playing-card{position:absolute;left:0;top:calc(var(--row)*var(--rowstep));width:100%;height:var(--ch);font-size:calc(var(--u)*2.8);border-radius:calc(var(--u)*.58);touch-action:none;transition:transform .13s,box-shadow .13s,background .13s;z-index:calc(var(--row) + 1)}
.hand .playing-card.selected{transform:translateY(-2.5cqh);background:linear-gradient(120deg,#fff5c2,#fffbe9 55%,#ffdc82);border:2px solid #ffc651;box-shadow:0 0 12px #ffdf7577,0 4px 5px #26305780}
.hand .selected .select-tick{display:block}.hand .playing-card:hover:not(.selected){background:#fffbea}
.hand-fan{gap:0;padding-right:calc(7.4cqw - min(3.7cqw,70%/var(--cols)));height:var(--ch)}
.hand-fan .card-stack{max-width:none;flex:0 1 min(3.7cqw,85%/var(--cols));height:var(--ch)}.hand-fan .playing-card{width:7.4cqw;max-width:100px}
.hand-fan .card-corner{flex-direction:column;align-items:flex-start;gap:0}.hand-fan .card-center{font-size:1.7em}.hand-fan .joker .card-corner{font-size:.52em}
.hand.dealing .card-stack{animation:deal-in .48s backwards;animation-delay:calc(var(--column)*.025s)}
.table-footer{position:absolute;left:0;bottom:0;width:100%;height:8%;min-height:32px;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2.5cqw;border-top:1px solid #d4deff44;background:linear-gradient(#1e3988e6,#101f52ed);box-shadow:0 -2px 15px #15367560}
.footer-status,.footer-actions{display:flex;align-items:center;gap:1.2cqw;font-size:calc(var(--u)*1.07)}.footer-status{color:#dce8ff}.footer-status .connection-dot{width:.6cqw;height:.6cqw;min-width:5px;min-height:5px}
.footer-divider{height:2cqh;width:1px;background:#d2e2ff33}.footer-actions{gap:.8cqw}
.footer-button{display:inline-flex;align-items:center;justify-content:center;gap:.4cqw;border:1px solid #bcd4ff55;border-radius:30px;background:linear-gradient(#88a9f2bb,#5c7fdbbb);font-size:calc(var(--u)*1.17);padding:.7cqh 1.3cqw;color:#fff;min-height:26px;box-shadow:inset 0 1px #eef6ff55}
.footer-button.accent{background:linear-gradient(#8dbafb,#638def)}.footer-actions .tool-button{flex-direction:row;font-size:calc(var(--u)*1.1);gap:5px;padding:0 .8cqw}.footer-actions .tool-button .icon{height:1.5em;width:1.5em}
.event-layer{position:absolute;inset:0;pointer-events:none;z-index:30}.move-callout{position:absolute;font-size:calc(var(--u)*3.8);font-weight:950;font-style:italic;color:#e4f6ff;text-shadow:0 3px 0 #195088,0 -1px 1px #fff,0 5px 15px #043778;animation:callout .52s both;white-space:nowrap}
.callout-left{left:17%;top:28%}.callout-right{right:17%;top:28%}.callout-top{top:23%;left:48%}.callout-bottom{left:44%;top:46%}
.move-callout.explosive{left:50%;top:35%;transform:translate(-50%,-50%);font-size:calc(var(--u)*7);color:#fff3b0;text-shadow:0 4px #cf6024,0 7px #8e333b,0 0 35px #ffa747;animation:bomb-text .75s both}
.move-callout.landlord-reveal{left:50%;top:31%;transform:translate(-50%,-50%);padding:.5cqh 2cqw;border:2px solid #ffe194;border-radius:50px;background:linear-gradient(100deg,#8c3c20dd,#db8731e8,#8c3c20dd);color:#fff2ba;text-shadow:0 3px #7f2c20,0 0 22px #ffd66c;animation:landlord-in .9s both}
.burst-ring{position:absolute;left:50%;top:39%;width:20cqw;height:20cqw;border:12px solid #ffdf8099;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 40px #ffa638,inset 0 0 40px #ffa638;animation:burst .7s both}
.particle-burst{position:absolute;left:50%;top:39%;width:1px;height:1px}.particle-burst i{--angle:0deg;position:absolute;width:7px;height:19px;border-radius:8px;background:linear-gradient(#fff4ab,#ff8138);box-shadow:0 0 8px #ffd45f;transform:rotate(var(--angle)) translateY(-2cqh);animation:particle-fly .8s ease-out both}.particle-burst i:nth-child(2){--angle:22.5deg}.particle-burst i:nth-child(3){--angle:45deg}.particle-burst i:nth-child(4){--angle:67.5deg}.particle-burst i:nth-child(5){--angle:90deg}.particle-burst i:nth-child(6){--angle:112.5deg}.particle-burst i:nth-child(7){--angle:135deg}.particle-burst i:nth-child(8){--angle:157.5deg}.particle-burst i:nth-child(9){--angle:180deg}.particle-burst i:nth-child(10){--angle:202.5deg}.particle-burst i:nth-child(11){--angle:225deg}.particle-burst i:nth-child(12){--angle:247.5deg}.particle-burst i:nth-child(13){--angle:270deg}.particle-burst i:nth-child(14){--angle:292.5deg}.particle-burst i:nth-child(15){--angle:315deg}.particle-burst i:nth-child(16){--angle:337.5deg}
.arrive{animation:arrive .24s both}
.history-drawer{display:none;position:absolute;right:1.5%;top:10%;width:28cqw;max-height:78%;overflow:auto;z-index:45;background:#19275ef5;border:1px solid #91b4eb99;border-radius:15px;padding:2cqw;box-shadow:0 15px 50px #03123dcc;font-size:calc(var(--u)*1.1)}
.history-drawer.open{display:block;animation:arrive .2s}.drawer-heading{display:flex;align-items:center;justify-content:space-between}.drawer-heading h3{margin:0;color:#ffe29d}.history-drawer p{color:#a9bde2;font-size:.85em}.history-drawer ol{list-style:none;padding:0;margin:0}.history-drawer li{padding:.8cqh 0;border-top:1px solid #afccff22;line-height:1.5}
.result-backdrop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#10193699;backdrop-filter:blur(5px);z-index:50}
.result-panel{position:relative;width:38cqw;max-height:95cqh;overflow:auto;text-align:center;border:2px solid #f0d699;border-radius:25px;padding:1.5cqh 3cqw 3.5cqh;background:radial-gradient(ellipse at top,#6375cb,#2c408a 55%,#243876);box-shadow:0 15px 60px #091641aa,inset 0 0 0 5px #efd58c11;animation:result-in .5s cubic-bezier(.2,1.4,.6,1)}
.result-crown{font-size:calc(var(--u)*5.4);color:#ffdb76;line-height:1;text-shadow:0 4px #a36c2b,0 0 30px #ffce6344}
.result-panel h2{margin:0 0 1cqh;color:#ffeaab;font-size:calc(var(--u)*4);font-style:italic;text-shadow:0 4px #8e5b3655}.result-panel p{font-size:calc(var(--u)*1.05);color:#dce7ff;margin:.5cqh 0 2cqh}
.score-list{background:#13225455;border-radius:12px;padding:1cqh 1.3cqw;margin:0 0 2.5cqh}.score-row{display:flex;justify-content:space-between;align-items:center;font-size:calc(var(--u)*1.12);padding:.8cqh 0;border-bottom:1px solid #c6dfff15}.score-row:last-child{border:0}.positive{color:#ffdf7c}.negative{color:#bacdf5}
.score-row b small{font-size:.68em;font-weight:500;color:#bdcef4}.settlement-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:.7cqw;margin:0 0 1cqh;padding:1cqh .8cqw;border-radius:10px;background:#f5dd8e12}.settlement-summary span{display:flex;flex-direction:column;gap:.3cqh}.settlement-summary small{color:#bcd0f3;font-size:.75em}.settlement-summary b{font-size:1.2em;color:#ffe39a}
.result-panel .btn{font-size:calc(var(--u)*1.15);min-height:6cqh;padding:1cqh 2cqw}
.victory-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}.victory-confetti i{position:absolute;left:var(--x,10%);top:-8%;width:9px;height:18px;border-radius:3px;background:#ffd75f;animation:confetti-fall 2.8s linear infinite}.victory-confetti i:nth-child(2n){animation-delay:-.65s}.victory-confetti i:nth-child(3n){background:#77e5e1;animation-delay:-1.35s}.victory-confetti i:nth-child(3n+1){background:#ff7b8f;animation-delay:-2.05s}.victory-confetti i:nth-child(1){--x:5%}.victory-confetti i:nth-child(2){--x:10%}.victory-confetti i:nth-child(3){--x:15%}.victory-confetti i:nth-child(4){--x:20%}.victory-confetti i:nth-child(5){--x:25%}.victory-confetti i:nth-child(6){--x:30%}.victory-confetti i:nth-child(7){--x:35%}.victory-confetti i:nth-child(8){--x:40%}.victory-confetti i:nth-child(9){--x:45%}.victory-confetti i:nth-child(10){--x:50%}.victory-confetti i:nth-child(11){--x:55%}.victory-confetti i:nth-child(12){--x:60%}.victory-confetti i:nth-child(13){--x:65%}.victory-confetti i:nth-child(14){--x:70%}.victory-confetti i:nth-child(15){--x:75%}.victory-confetti i:nth-child(16){--x:80%}.victory-confetti i:nth-child(17){--x:85%}.victory-confetti i:nth-child(18){--x:90%}
.modal-backdrop{position:fixed;inset:0;background:#081136a8;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;z-index:80;padding:20px}
.modal{width:min(530px,94%);max-height:90%;overflow:auto;background:linear-gradient(145deg,#3c5196,#202d65);border:1px solid #bfd5ff99;border-radius:22px;box-shadow:0 15px 80px #051036aa,inset 0 2px #c0d4ff33}
.modal>header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #cfe0ff26}.modal h2{font-size:22px;margin:0;color:#fff0ba}.modal-body{padding:4px 22px 23px}.modal-body>p{line-height:1.7;color:#dce7ff;font-size:14px}
.close-button{border:0;border-radius:50%;background:#10205355;color:#dfeaff;width:32px;height:32px;padding:7px;font-size:22px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.setting-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;gap:12px;border-bottom:1px solid #bcd1ff20;font-size:14px}.setting-row:last-child{border:0}.setting-row small{display:block;color:#b8c9f0;font-size:10px;line-height:1.6;margin-top:3px}
.switch{width:48px;height:27px;border:1px solid #9db2e399;border-radius:20px;background:#162854;position:relative;flex-shrink:0;box-shadow:inset 0 2px 5px #10204a}
.switch:before{content:"";position:absolute;width:21px;height:21px;left:2px;top:2px;background:linear-gradient(#fff,#afc3ed);border-radius:50%;transition:transform .15s}
.switch.on{background:linear-gradient(#78d8b6,#42ad91);border-color:#baefcf}.switch.on:before{transform:translateX(20px)}
.setting-row input[type=range]{width:65%;accent-color:#ffcd69}.choice-group,.avatar-choices{display:flex;gap:8px}.choice{border:1px solid #839bc966;border-radius:8px;background:#203370;padding:8px 12px;font-size:11px}.choice.chosen{border-color:#ffe19c;color:#ffe5ab;background:#5b5785}
.avatar-choice{background:transparent;padding:2px;border:2px solid transparent;border-radius:50%}.avatar-choice .avatar{width:42px;height:42px}.avatar-choice.chosen{border-color:#ffe5a3}
.share-code{font-size:37px;letter-spacing:8px;color:#ffe19c;text-align:center;padding:7px 0 20px;font-weight:800}
.modal input[readonly]{width:100%;font-size:12px;margin-bottom:20px}.rules-content h3{color:#ffdfa2;font-size:16px}.rules-content p{font-size:13px;color:#d3e2ff;line-height:1.9}.wechat-share-tip{padding:10px 12px;border:1px solid #9fe8d955;border-radius:10px;background:#1e756044;color:#caffef!important;text-align:center}
.toast{position:fixed;left:50%;top:17%;transform:translate(-50%,-10px);z-index:100;max-width:85%;padding:11px 22px;border-radius:30px;background:#162550ef;border:1px solid #b9d5ff66;box-shadow:0 6px 25px #09103966;text-align:center;font-size:14px;opacity:0;pointer-events:none;transition:all .16s}
.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#813f49ee;border-color:#ffc1a499}
.orientation-tip{display:none}
@keyframes deal-in{from{transform:translate(-10vw,-12vh) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}
@keyframes arrive{from{opacity:0;transform:translateY(-10px) scale(.94)}to{opacity:1;transform:none}}
@keyframes turn-glow{50%{box-shadow:0 0 18px #ffdd9399;opacity:.6}}
@keyframes callout{0%{opacity:0;scale:.6}45%{opacity:1;scale:1.1}100%{opacity:1;scale:1}}
@keyframes bomb-text{0%{opacity:0;scale:.2}45%{opacity:1;scale:1.3}65%{scale:.94}100%{scale:1;opacity:1}}
@keyframes burst{from{scale:.2;opacity:1}to{scale:2.4;opacity:0}}
@keyframes result-in{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}
@keyframes shuffle{0%,100%{transform:rotate(-12deg)}50%{transform:translateX(25px) rotate(22deg)}}
@keyframes showcase-float{50%{transform:translateY(-4px) rotate(3deg)}}
@keyframes table-breathe{50%{opacity:.48;transform:scale(1.03)}}
@keyframes petal-fall{0%{transform:translate(0,-10%) rotate(0deg);opacity:0}12%{opacity:.7}100%{transform:translate(8vw,115cqh) rotate(520deg);opacity:0}}
@keyframes landlord-in{0%{opacity:0;scale:.3;filter:brightness(2)}55%{opacity:1;scale:1.18}75%{scale:.94}100%{scale:1}}
@keyframes particle-fly{to{transform:rotate(var(--angle)) translateY(-18cqw) scale(.1);opacity:0}}
@keyframes confetti-fall{to{transform:translate(4vw,115cqh) rotate(560deg)}}
@media(max-width:720px){
  .topbar{height:65px;padding:0 20px}.brand strong{font-size:20px}.brand small{font-size:8px}.brand-mark{width:33px;height:40px;font-size:26px}.top-actions{gap:4px}.top-actions .tool-button{font-size:9px;padding:5px}.top-actions .icon{width:21px;height:21px}
  .home-shell{padding:15px 16px 25px}.home-intro{margin-bottom:22px}.home-intro h1{font-size:32px;line-height:1.22}.home-intro h1 br{display:block}.home-intro p{font-size:12px;line-height:1.8;margin:8px auto;max-width:270px}
  .welcome-card{border-radius:13px;margin-bottom:15px}.online-badge{font-size:10px}
  .home-showcase{height:96px}.showcase-slide{padding:12px 15px 20px;gap:11px}.showcase-suit{width:43px;height:43px;font-size:27px;border-radius:13px}.showcase-copy strong{font-size:16px}.showcase-copy span{font-size:9px}.showcase-slide .btn{padding:6px 10px;font-size:11px}
  .mode-grid{gap:16px;grid-template-columns:1fr}.mode-card{height:225px;padding:18px 20px;border-radius:20px}.mode-copy{margin-top:10px}.mode-copy h2{font-size:42px}.mode-copy p{font-size:11px}.mode-hero-avatar{right:0;top:-3px;width:175px;height:180px}.mode-actions{bottom:16px;left:20px;right:20px;gap:12px}.mode-actions .btn{font-size:14px}.mode-actions.three{gap:5px}.mode-actions.three .btn{font-size:11px;padding-inline:5px}.decor-cards{left:48%;top:69px}.decor-cards i{width:36px;height:52px;font-size:21px}.decor-cards span{font-size:21px!important}
  .home-bottom{flex-direction:column;padding-top:22px;gap:15px}.join-strip{gap:7px;width:100%;justify-content:center}.join-strip label{font-size:11px}.join-strip input{width:118px}.home-caption{gap:18px;font-size:10px}.home-footnote{font-size:9px}
  .lobby-shell{padding:25px 16px}.room-heading h1{font-size:26px}.seat-list{grid-template-columns:1fr 1fr;padding:20px;gap:12px}.lobby-seat{min-height:155px}.lobby-seat .avatar{width:66px;height:66px}.lobby-footer{padding:20px}.lobby-footer>.btn{width:100%}
  .room-code{gap:10px}.room-code strong{font-size:20px;letter-spacing:3px}.room-code .btn{font-size:11px}
}
@media(orientation:landscape) and (max-height:580px){
  body:not([data-view="game"]) .topbar{height:54px}
  .home-shell{padding-top:0;max-width:960px}.home-intro{margin-bottom:10px}.home-intro h1{font-size:29px;margin:6px 0}.home-intro p,.home-intro .season-chip{display:none}.welcome-card{padding:5px 12px;margin-bottom:9px}.welcome-card .avatar{width:33px;height:33px}.welcome-card input{font-size:13px}.welcome-card label{font-size:9px}.home-showcase{height:70px;margin-bottom:9px}.showcase-slide{padding:7px 14px 14px}.showcase-suit{height:38px;width:38px;font-size:24px}.showcase-copy strong{font-size:15px;margin:1px 0}.showcase-copy span{font-size:9px}.showcase-slide .btn{min-height:31px}.showcase-dots{bottom:4px}
  .mode-grid{grid-template-columns:1fr 1fr;gap:16px}.mode-card{height:192px;padding:14px 18px}.mode-copy{margin-top:7px}.mode-copy h2{font-size:34px}.mode-copy p{font-size:10px}.mode-tag{font-size:9px}.mode-hero-avatar{width:160px;height:160px}.mode-actions{bottom:14px;left:18px;right:18px}.mode-actions .btn{min-height:35px;padding:6px 10px;font-size:12px}.mode-actions.three .btn{padding:5px 4px;font-size:10px}.decor-cards{top:50px}.home-bottom{padding:14px 0 0;flex-direction:row}.home-caption,.home-footnote{display:none}
  .lobby-shell{padding:12px 30px}.room-heading{margin-bottom:12px}.room-heading h1{font-size:26px;margin:9px 0}.room-heading p{display:none}.seat-list{grid-template-columns:repeat(4,1fr);padding:16px}.lobby-seat{min-height:138px;gap:8px}.lobby-seat .avatar{height:58px;width:58px}.lobby-footer{padding:13px 20px}.room-code{padding:12px}
}
@media(orientation:portrait) and (max-width:900px){
  /* 微信拒绝系统方向锁定时，把完整牌桌旋转为横向；设置关闭后保留可操作的竖屏布局。 */
  body[data-view="game"] #shell{visibility:visible}
  body[data-view="game"].auto-landscape #shell{inset:auto;left:50%;top:50%;width:100dvh;height:100vw;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center}
  body[data-view="game"].auto-landscape .orientation-tip{position:fixed;left:50%;bottom:calc(8% + env(safe-area-inset-bottom));z-index:200;display:flex;align-items:center;justify-content:center;gap:8px;width:min(92vw,420px);padding:8px 12px;transform:translateX(-50%);text-align:left;background:#102053e8;border:1px solid #ffe39a66;border-radius:14px;box-shadow:0 8px 24px #07113f66;pointer-events:none;animation:portrait-tip-hide 7s 1s forwards}
  body[data-view="game"].auto-landscape .orientation-tip>span:last-child{display:flex;flex-direction:column;gap:2px}
  .orientation-tip strong{font-size:12px;color:#ffecb5}.orientation-tip small{font-size:10px;color:#c5d7ff}.rotate-phone{display:grid;place-items:center;width:33px;height:22px;border:2px solid #ffe39a;border-radius:6px;font-size:0;box-shadow:0 0 12px #ffd15d55;animation:phone-rotate 1.8s ease-in-out infinite}.rotate-phone:after{content:"";width:4px;height:4px;border:1px solid #ffe39a;border-radius:50%}
  body[data-view="game"]:not(.auto-landscape) .game-header{height:8cqh;padding:1cqh 2.5cqw}
  body[data-view="game"]:not(.auto-landscape) .game-title span{display:none}
  body[data-view="game"]:not(.auto-landscape) .game-tools{gap:1cqw}
  body[data-view="game"]:not(.auto-landscape) .game-tools .tool-button span{display:none}
  body[data-view="game"]:not(.auto-landscape) .game-tools .tool-button{min-width:28px}
  body[data-view="game"]:not(.auto-landscape) .game-header .icon{width:21px;height:21px}
  body[data-view="game"]:not(.auto-landscape) .rank-counter{display:none}
  body[data-view="game"]:not(.auto-landscape) .game-board[data-game="doudizhu"] .game-meta{top:8%;gap:1cqh}
  body[data-view="game"]:not(.auto-landscape) .bottom-cards .playing-card,body[data-view="game"]:not(.auto-landscape) .card-back{width:7cqw;height:7cqh;font-size:12px}
  body[data-view="game"]:not(.auto-landscape) .player-left,body[data-view="game"]:not(.auto-landscape) .player-right{top:23%}
  body[data-view="game"]:not(.auto-landscape) .player-left .portrait-ring,body[data-view="game"]:not(.auto-landscape) .player-right .portrait-ring{width:calc(var(--u)*5.8);height:calc(var(--u)*5.8)}
  body[data-view="game"]:not(.auto-landscape) .player-left .player-info,body[data-view="game"]:not(.auto-landscape) .player-right .player-info{display:none}
  body[data-view="game"]:not(.auto-landscape) .player-bottom{bottom:31%}
  body[data-view="game"]:not(.auto-landscape) .player-bottom .portrait-ring{width:calc(var(--u)*5.8);height:calc(var(--u)*5.8)}
  body[data-view="game"]:not(.auto-landscape) .table-play{top:27%;width:92%;height:15%}
  body[data-view="game"]:not(.auto-landscape) .my-zone{left:2%;width:96%;bottom:7%;--ch:min(12cqh,90px);--rowstep:min(3.5cqh,24px)}
  body[data-view="game"]:not(.auto-landscape) .action-bar{height:7cqh;margin-bottom:1cqh;gap:1cqw}
  body[data-view="game"]:not(.auto-landscape) .action-bar .btn{min-width:19cqw;height:6cqh;padding:0 1.2cqw;font-size:13px}
  body[data-view="game"]:not(.auto-landscape) .action-bar .play-button{min-width:22cqw}
  body[data-view="game"]:not(.auto-landscape) .hand .playing-card{font-size:calc(var(--u)*2.35)}
  body[data-view="game"]:not(.auto-landscape) .table-footer{height:7%;padding:0 2cqw}
  body[data-view="game"]:not(.auto-landscape) .footer-status>span:not(.connection-dot):not(#selection-count),body[data-view="game"]:not(.auto-landscape) .footer-divider{display:none}
  body[data-view="game"]:not(.auto-landscape) .footer-status,body[data-view="game"]:not(.auto-landscape) .footer-actions{gap:1cqw;font-size:11px}
  body[data-view="game"]:not(.auto-landscape) .footer-button{padding:.7cqh 1.4cqw;font-size:10px}
  body[data-view="game"]:not(.auto-landscape) .history-drawer{left:4%;right:4%;top:9%;width:auto;max-height:75%;padding:4vw;font-size:13px}
  body[data-view="game"]:not(.auto-landscape) .result-panel{width:90cqw;max-height:82cqh;padding:3cqh 5cqw}
}
@container (max-height:500px){
  .game-header .tool-button{font-size:10px}.game-header .icon{min-width:17px;min-height:17px}.game-title b{font-size:17px}.game-title span{font-size:9px}
  .room-pill{font-size:10px}.player-info strong{font-size:11px}.player-info>span{font-size:8px}.role-ribbon{font-size:10px}.rank-counter{top:15%}
  .modal{max-height:94%;width:480px}.modal>header{padding:11px 18px}.modal h2{font-size:18px}.modal-body{padding:0 18px 15px}.setting-row{padding:8px 0;font-size:12px}.avatar-choice .avatar{height:34px;width:34px}
}
@container (max-height:430px){
  .game-header{height:13cqh}.game-tools{gap:.45cqw}.game-tools .tool-button span{display:none}.game-tools .tool-button{min-width:30px}.room-pill{padding:.5cqh .7cqw}.rank-counter{left:10%;top:14.5%;max-width:36%}.counter-label{display:none}.counter-cell{min-width:1.85cqw}.player-top{top:10.5%}.player-left,.player-right{top:34%}.my-zone{left:10%;width:83%;bottom:8.7%;--ch:min(20cqh,96px);--rowstep:min(5.6cqh,25px)}.action-bar{margin-bottom:1cqh}.action-bar .btn{height:7.2cqh}.table-footer{height:8.5%}.footer-status span:not(.connection-dot):not(#selection-count),.footer-divider{display:none}.footer-actions{gap:.35cqw}.footer-button{padding:.55cqh .8cqw}.game-ambient i{animation-duration:12s}
}
@keyframes phone-rotate{0%,25%{transform:rotate(90deg)}70%,100%{transform:rotate(0deg)}}
@keyframes portrait-tip-hide{0%,70%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
.reduce-motion *,.reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important}
