/* © doudizhu — 压缩产物，源码见仓库 public/ */
:root{--bg: #8e1116;--bg-2: #7c0f14;--felt: #2f9455;--felt-2: #1f7a44;--felt-3: #145a32;--felt-hi: #4cb271;--rail: #f2dca4;--panel: rgba(255, 252, 243, .94);--panel-2: rgba(255, 250, 240, .97);--line: rgba(150, 108, 44, .22);--line-2: rgba(212, 152, 62, .55);--gold: #d98f1f;--gold-2: #b06f10;--gold-3: #ffd98a;--text: #43301a;--muted: #8a7350;--pos: #e23c3c;--neg: #1fa856;--accent: #e8762a;--danger: #e23c3c;--cta-hi: #ff8a4d;--cta: #e8482f;--cta-lo: #b02a1a;--radius: 16px;--shadow: 0 16px 38px rgba(140, 90, 20, .22);--font: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--font);overflow:hidden}#app{height:100%}::selection{background:#e8762a40}.screen{display:none;height:100%}.screen.active{display:block}button{font-family:inherit;font-size:14px;cursor:pointer;border:1px solid #d9c194;background:linear-gradient(180deg,#fffdf6,#f4e8cb);color:#5a4326;border-radius:12px;padding:10px 16px;box-shadow:0 2px 5px #96641e24;transition:transform .08s ease,filter .15s ease,box-shadow .15s ease,border-color .15s ease}@media(hover:hover){button:hover:not(:disabled){filter:brightness(1.04);border-color:var(--line-2)}}button:active:not(:disabled){transform:translateY(1px) scale(.99);box-shadow:0 1px 2px #96641e29}button:disabled{opacity:.42;cursor:not-allowed;filter:none!important}button.primary{background:linear-gradient(180deg,var(--cta-hi) 0%,var(--cta) 55%,var(--cta-lo) 100%);border-color:#c23018;color:#fff;font-weight:800;letter-spacing:2px;text-shadow:0 1px 2px rgba(120,20,10,.5);box-shadow:0 5px #8c1f12,0 10px 22px #e8482f59,inset 0 1px #fff6}button.primary:active:not(:disabled){box-shadow:0 2px #8c1f12,0 6px 14px #e8482f4d}button.ghost{background:#fff9;border-color:#dcc69a;color:#8a7350}@media(hover:hover){button.ghost:hover:not(:disabled){color:var(--text)}}.icon{width:14px;height:14px;vertical-align:-2px;margin-right:3px}.row{display:flex;align-items:center;gap:10px}.row .spacer,.spacer{flex:1}input{font-family:inherit;font-size:14px;width:100%;padding:11px 13px;border-radius:12px;border:1px solid #dcc69a;background:#fffdf6;color:var(--text);outline:none;transition:border-color .15s ease,box-shadow .15s ease}input:focus{border-color:var(--gold);box-shadow:0 0 0 3px #d98f1f2e}input::placeholder{color:#b49a6e}@media(pointer:coarse){input,.chat-input{font-size:16px}}.field{margin-bottom:13px}.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;letter-spacing:.5px}.pill{display:inline-flex;align-items:center;gap:4px;padding:4px 11px;border-radius:999px;background:#78501412;border:1px solid var(--line);font-size:12px;color:var(--muted);white-space:nowrap}.pill--room{color:var(--gold-2);border-color:var(--line-2);font-weight:600;background:#e8762a14}.pill--phase{color:#c05e14;border-color:#e8762a73}.pill--mult{color:#a35c00;cursor:pointer;font-weight:800;border-color:var(--line-2);background:#e8762a1a}#screen-lobby.active{display:flex;flex-direction:column}.lobby-bg{position:fixed;inset:0;z-index:0;background:radial-gradient(ellipse 1100px 560px at 50% -8%,rgba(255,198,92,.5) 0%,rgba(255,140,44,.18) 45%,transparent 68%),radial-gradient(circle at 50% 118%,rgba(255,190,90,.25),transparent 55%),linear-gradient(180deg,#cf2c24,#a5161a 44%,#7c0f14)}.lobby-bg__rays{position:absolute;left:50%;top:-36vh;width:170vmax;height:170vmax;transform:translate(-50%);background:repeating-conic-gradient(from 0deg,rgba(255,216,120,.09) 0deg 6deg,transparent 6deg 17deg);border-radius:50%;animation:raysSpin 90s linear infinite;-webkit-mask-image:radial-gradient(circle,#000 0%,transparent 60%);mask-image:radial-gradient(circle,#000 0%,transparent 60%)}@keyframes raysSpin{to{transform:translate(-50%) rotate(360deg)}}.lobby-lantern{position:absolute;top:0;z-index:1;width:54px;height:60px;background:radial-gradient(circle at 50% 40%,#ff7052,#e23524 52%,#9c1206);border-radius:50% 50% 46% 46%/58% 58% 42% 42%;box-shadow:inset 0 -6px 10px #5a08048c,0 12px 22px #46060480;transform-origin:top center;animation:lanternSway 5.6s ease-in-out infinite}.lobby-lantern:before{content:"";position:absolute;top:-13px;left:50%;width:3px;height:13px;transform:translate(-50%);background:linear-gradient(180deg,#d9a441,#f3c96a);border-radius:2px 2px 0 0;box-shadow:-15px 12px 0 -1px #c8892a,15px 12px 0 -1px #c8892a}.lobby-lantern:after{content:"";position:absolute;bottom:-13px;left:50%;width:3px;height:13px;transform:translate(-50%);background:linear-gradient(180deg,#d9a441 0 4px,#f3b34a 4px 6px,#d9a441 6px);border-radius:0 0 2px 2px}.lobby-lantern--l{left:max(10px,3vw)}.lobby-lantern--r{right:max(10px,3vw);animation-delay:-2.6s}@keyframes lanternSway{0%,to{transform:rotate(4deg)}50%{transform:rotate(-4deg)}}.lobby-cloud{position:absolute;bottom:-40px;height:110px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,202,100,.3),transparent 70%);filter:blur(2px)}.lobby-cloud--1{left:-6%;width:46%}.lobby-cloud--2{right:-8%;width:52%;bottom:-60px}.lobby-cloud--3{left:28%;width:44%;bottom:-80px;opacity:.7}.lobby-top{position:relative;z-index:3;display:flex;align-items:flex-start;gap:10px;padding:14px 14px 6px}.player-chip{display:flex;align-items:center;gap:10px;padding:7px 10px 7px 7px;border-radius:999px;background:linear-gradient(180deg,#4e0a0aa8,#680e0e85);border:1px solid rgba(255,206,110,.6);box-shadow:0 6px 18px #42060473,inset 0 1px #ffdc9647;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);max-width:min(64vw,460px)}.lobby-avatar{flex:0 0 auto;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(160deg,#fff3d2,#f6cf7e);border:2px solid #ffd76e;box-shadow:0 0 0 2px #ffa03c59,0 4px 10px #3c060480;color:#a05a10}.player-chip__id{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}.player-chip__name{display:flex;align-items:center;gap:6px;font-size:12px;color:#ffe2b2cc;overflow:hidden;white-space:nowrap}.player-chip__name b{color:#ffe9bd;font-size:14px;overflow:hidden;text-overflow:ellipsis}#screen-lobby .rank-chip{flex:0 0 auto;background:#ffd6782e;border-color:#ffd6788c;color:#ffd98a}.player-chip__beans{display:inline-flex;align-items:center;gap:6px;font-size:17px;font-weight:800;color:#ffd76e;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px rgba(70,8,4,.6)}.player-chip__side{display:flex;flex-direction:column;gap:5px;flex:0 0 auto}.chip-btn{font-size:11px;font-weight:700;letter-spacing:1px;padding:4px 11px;border-radius:999px;min-height:32px;display:inline-flex;align-items:center;background:linear-gradient(180deg,#ffe08e,#f2b13e);border:1px solid #c8892a;color:#5c2c04;box-shadow:0 2px #783c068c;text-shadow:0 1px 0 rgba(255,240,200,.5)}.chip-btn--aid{background:linear-gradient(180deg,#ffd2c2,#f2987e);border-color:#c05a3a;color:#6e2410}button,.card,.pill--mult,.dock__btn,.qc-btn,.chip-btn,.room-card,.mode-card,.seat,.co-suit,.hist-replay,.ghost,.pill{touch-action:manipulation}.dock{display:flex;gap:8px}.dock__btn{flex-direction:column;gap:3px;width:58px;padding:9px 4px 7px;border-radius:16px;font-size:10.5px;letter-spacing:2px;font-weight:700;background:linear-gradient(180deg,#ffd87af2,#eea43af2);border:1px solid #b47614;color:#5c2c04;box-shadow:0 4px #6e38068c,0 8px 16px #3c060466,inset 0 1px #ffffff80;text-shadow:0 1px 0 rgba(255,240,200,.6)}.dock__btn:active:not(:disabled){box-shadow:0 1px #6e38068c,0 4px 8px #3c060466}.dock__btn--muted{filter:saturate(.55) brightness(.92)}.lobby-stage{position:relative;z-index:2;flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.lobby-stage__inner{width:100%;max-width:660px;margin:0 auto;padding:2px 16px 10px;display:flex;flex-direction:column}.brand{text-align:center;margin:4px 0 12px}.brand__crown{width:54px;height:32px;display:block;margin:0 auto 2px;filter:drop-shadow(0 3px 6px rgba(80,8,4,.5))}.brand h1{margin:0 0 8px;font-size:52px;letter-spacing:8px;font-weight:900;background:linear-gradient(180deg,#fff3b0 4%,#ffd75e 30%,#f7952c 62%,#e04e2a 92%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 0 #8e3a06) drop-shadow(0 5px 0 rgba(110,24,6,.8)) drop-shadow(0 10px 18px rgba(60,6,4,.55))}.brand .sub{color:#ffd98a;font-size:12px;letter-spacing:3px;display:inline-block;padding:4px 18px;border:1px solid rgba(255,214,120,.55);border-radius:999px;background:#600c0a73}.guest-card{width:100%;max-width:430px;margin:0 auto 16px;padding:16px 16px 13px;border-radius:20px;background:linear-gradient(180deg,#fff9e8,#ffedc6);border:1px solid #e8b64c;box-shadow:0 14px 34px #46080680,inset 0 1px #fff}.auth-tabs{display:flex;gap:6px;margin-bottom:12px;padding:4px;border-radius:12px;background:#7850141a;border:1px solid rgba(150,100,30,.25)}.auth-tab{flex:1;padding:8px;font-size:13px;background:transparent;border:none;border-radius:9px;box-shadow:none;color:var(--muted)}.auth-tab.active{color:#5a2c00;background:linear-gradient(180deg,#ffe08e,#f2b13e);font-weight:800;box-shadow:0 3px 10px #e8762a59}.auth-tip{margin-top:10px;font-size:11px;color:var(--muted);text-align:center;line-height:1.7}.auth-tip b{color:#c05e14}.section-title{font-size:12px;letter-spacing:4px;color:#ffd98a;margin:2px 0 10px;display:flex;align-items:center;gap:10px;text-shadow:0 1px 2px rgba(70,8,4,.6)}.section-title:before,.section-title:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,rgba(255,214,120,.6),transparent)}.room-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.room-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 11px;border-radius:16px;text-align:left;background:linear-gradient(170deg,#ffe9b2,#f6bd55);border:1px solid #c8892a;color:#5c2c04;overflow:hidden;box-shadow:0 5px #6e380666,0 8px 18px #3c060459,inset 0 1px #ffffff8c;transition:transform .12s ease,box-shadow .15s ease}@media(hover:hover){.room-card:hover:not(:disabled){transform:translateY(-3px)}}.room-card.active{border:2px solid #fff6d8;transform:translateY(-2px);box-shadow:0 0 0 3px #ffd67873,0 10px 22px #3c060473}.room-card__icon{font-size:19px;line-height:1}.room-card__name{font-size:14px;font-weight:800;color:#8a3d06;letter-spacing:1px}.room-card__desc{font-size:10.5px;color:#7c5626;line-height:1.45}.room-card__gate{font-size:10px;color:#14682f;font-weight:700}.room-card__gate:before{content:"\1f6aa  "}.room-card--wild{border-color:#b03a1a;background:linear-gradient(170deg,#ffd9a8,#f2955a)}.room-card--wild:after{content:"\1f525";position:absolute;top:7px;right:9px;font-size:13px;filter:drop-shadow(0 0 5px rgba(255,150,60,.8))}.room-tip{min-height:16px;font-size:11px;color:#ffd9a0;margin:9px 0 4px;text-align:center;text-shadow:0 1px 2px rgba(70,8,4,.5)}.room-tip b,.room-tip .warn{color:#ffe08e}.mode-cards{display:flex;flex-direction:column;gap:11px;margin:8px 0 16px}.mode-cards--casual{display:grid;grid-template-columns:1fr 1fr;gap:11px}.mode-card--casual .mode-card__icon{background:linear-gradient(160deg,#7de0a8,#2f9455)}.mode-card{position:relative;display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:13px 15px;border-radius:18px;background:linear-gradient(165deg,#680e0ec7,#480808b3);border:1px solid rgba(255,206,110,.55);box-shadow:0 8px 20px #38060466,inset 0 1px #ffdc9638;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);transition:transform .12s ease,box-shadow .15s ease}@media(hover:hover){.mode-card:hover:not(:disabled){transform:translateY(-3px)}}.mode-card__icon{flex:0 0 auto;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(160deg,#ffd87af2,#eea43ae6);border:1px solid #b47614;color:#6e3204;box-shadow:inset 0 1px #ffffff80}.mode-card__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.mode-card__title{font-size:15.5px;font-weight:800;letter-spacing:1px;color:#ffe9bd}.mode-card__desc{font-size:11.5px;color:#ffe2b4b8;line-height:1.55}.mode-card__go{flex:0 0 auto;font-size:12px;font-weight:800;color:#6e3204;background:linear-gradient(180deg,#ffe08e,#f2b13e);border:1px solid #c8892a;padding:7px 13px;border-radius:999px;white-space:nowrap;box-shadow:0 2px #783c0680;text-shadow:0 1px 0 rgba(255,240,200,.5)}.mode-card__tag{position:absolute;top:-9px;right:12px;font-size:10px;font-weight:700;letter-spacing:1px;color:#6e3204;padding:2px 9px;border-radius:999px;background:linear-gradient(180deg,#ffe08e,#f2b13e);border:1px solid #c8892a}.mode-card__tag--on{color:#fff;background:linear-gradient(180deg,#ff6a4a,#d92c18);border-color:#a81f0e;text-shadow:0 1px 2px rgba(90,10,4,.6)}.mode-card--hero{padding:16px 17px;background:linear-gradient(165deg,#e8402c,#c22418 55%,#96140e);border-color:#ffe296d9;box-shadow:0 10px 26px #4608048c,inset 0 1px #ffe6aa80,inset 0 -10px 18px #5a0a0459}.mode-card--hero .mode-card__icon{background:linear-gradient(160deg,#fff3b0,#ffce56)}.mode-card--hero .mode-card__title{font-size:17px;color:#fff6d8;text-shadow:0 2px 3px rgba(90,10,4,.55)}.mode-card--hero .mode-card__desc{color:#ffe8bed9}.mode-card--hero .mode-card__go{font-size:13px;padding:9px 16px;background:linear-gradient(180deg,#fff3b0,#ffce56);box-shadow:0 3px #783c0699,0 0 16px #ffd6788c}#custom-form{width:100%;margin:0 0 16px;padding:15px 15px 13px;border-radius:20px;background:linear-gradient(180deg,#fff9e8,#ffedc6);border:1px solid #e8b64c;box-shadow:0 14px 34px #46080680,inset 0 1px #fff}.mode-toggle{font-size:12.5px;padding:7px 13px;border-radius:999px;background:#ffffffb3;border:1px solid #dcc69a;color:#8a7350}.mode-toggle.active{color:#5a2c00;font-weight:800;background:linear-gradient(180deg,#ffe08e,#f2b13e);border-color:#e8a23c;box-shadow:0 3px 10px #e8762a4d}.match-status{display:flex;align-items:center;gap:12px;padding:13px 16px;margin-bottom:16px;border-radius:16px;background:linear-gradient(135deg,#48b26a38,#fffaebf5 62%);border:1px solid rgba(31,168,86,.55);box-shadow:0 8px 20px #38060466}.match-status__pulse{flex:0 0 auto;width:12px;height:12px;border-radius:50%;background:var(--neg);box-shadow:0 0 #1fa85699;animation:matchPulse 1.4s ease-out infinite}@keyframes matchPulse{0%{box-shadow:0 0 #1fa8568c}70%{box-shadow:0 0 0 12px #1fa85600}to{box-shadow:0 0 #1fa85600}}.match-status__text{flex:1;font-size:13px;color:var(--text)}.match-status__text b{color:#168a45}.rules-wrap{margin-top:2px;border-radius:14px;background:#3a080894;border:1px solid rgba(255,206,110,.4);overflow:hidden;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.rules-wrap summary{cursor:pointer;-webkit-user-select:none;user-select:none;padding:11px 15px;font-size:12px;letter-spacing:3px;font-weight:700;color:#ffd98a;list-style:none;display:flex;align-items:center;gap:8px}.rules-wrap summary::-webkit-details-marker{display:none}.rules-wrap summary:before{content:"\25b8";color:#ffce6e;transition:transform .15s ease}.rules-wrap[open] summary:before{transform:rotate(90deg)}.rules{font-size:11px;color:#ffe7bed9;line-height:1.85;padding:0 15px 13px;background:transparent;border:none;border-radius:0}.rules b{color:#ffd98a}.lobby-bottom{position:relative;z-index:3;padding:8px 14px calc(12px + env(safe-area-inset-bottom,0px))}.notice-bar{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#3a080899;border:1px solid rgba(255,206,110,.45);overflow:hidden;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.notice-bar__horn{width:15px;height:15px;flex:0 0 auto;color:#ffce6e}.notice-bar__viewport{overflow:hidden;flex:1}.notice-bar__track{display:inline-block;white-space:nowrap;font-size:11.5px;color:#ffd98a;animation:noticeScroll 26s linear infinite}@keyframes noticeScroll{0%{transform:translate(0)}to{transform:translate(-50%)}}.overlay{display:none;position:fixed;inset:0;z-index:60;align-items:center;justify-content:center;padding:18px;background:#3c220880;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.overlay.show{display:flex;animation:fadeIn .18s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.result-card{width:100%;max-width:480px;max-height:92vh;max-height:92dvh;overflow-y:auto;background:linear-gradient(180deg,#ffecbecc,#ffecbe00 26%),var(--panel-2);border:1px solid rgba(212,152,62,.55);border-radius:22px;padding:22px;box-shadow:var(--shadow);animation:popIn .22s cubic-bezier(.2,1.3,.4,1)}@keyframes popIn{0%{transform:scale(.92);opacity:0}to{transform:none;opacity:1}}.result-card--action{max-width:380px}.result-card h2{margin:0 0 6px;text-align:center;font-size:21px;letter-spacing:3px}.result-card h2.win{font-size:30px;letter-spacing:6px;background:linear-gradient(180deg,#ffd75e,#f7952c 55%,#d97706);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 0 rgba(150,70,10,.4)) drop-shadow(0 6px 12px rgba(160,90,20,.35))}.result-card h2.lose{font-size:30px;letter-spacing:6px;background:linear-gradient(180deg,#aeb9c6,#78899c 60%,#57687c);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 3px 8px rgba(60,70,90,.35))}.act-sub{color:var(--muted);font-size:13px;text-align:center;margin:0 0 4px;line-height:1.6}.act-info{color:#96804f;font-size:11px;text-align:center;margin-bottom:16px;min-height:16px}.act-buttons{justify-content:center;flex-wrap:wrap;margin-top:8px}.act-buttons button{min-width:92px}.act-wait{color:var(--muted);font-size:13px;padding:10px;text-align:center}.score-list{margin:14px 0}.score-row{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:12px;background:#faf3e0;border:1px solid #ecdcba;margin-bottom:7px;font-size:13px}.score-row .name{color:var(--text)}.score-row .name b{color:#b06f10;font-size:11px}.score-row .row-right{display:flex;align-items:center;gap:10px}.beans-mini{font-size:11px;color:var(--muted)}.delta{font-weight:800;font-variant-numeric:tabular-nums;font-size:15px}.delta.pos{color:var(--pos)}.delta.neg{color:var(--neg)}.pos{color:var(--pos)}.neg{color:var(--neg)}.mult-breakdown{margin:8px 0 4px;padding:11px 12px;border-radius:12px;background:#ffd68238;border:1px dashed rgba(212,152,62,.55);font-size:11px;color:var(--muted)}.mb-head{color:var(--text);margin-bottom:6px}.mb-head b{color:#c05e14;font-size:15px}.mb-items{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}.mb-item{padding:1px 8px;border-radius:999px;background:#fff;border:1px solid #ecdcba;color:#a35c00}.mb-dbl{color:var(--muted)}.hist-list{max-height:52vh;max-height:52dvh;overflow-y:auto;margin:12px 0}.hist-summary{font-size:12px;color:#b06f10;margin-bottom:8px}.hist-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding:9px 11px;border-radius:11px;background:#faf3e0;border:1px solid transparent;margin-bottom:6px}.hist-row--win{border-left:3px solid var(--gold);background:#ffd68247}.hist-time{color:#b49a6e}.hist-role{color:#a35c00;font-weight:700}.hist-result{font-weight:700}.hist-mult{color:#a35c00;margin-left:auto}.hist-empty{padding:30px;text-align:center;color:var(--muted);font-size:13px}.hist-replay{font-size:10.5px;padding:3px 9px;border-radius:999px;min-height:32px;display:inline-flex;align-items:center;color:#1e66b8;border-color:#508cdc66;background:#508cdc1a}@media(hover:hover){.hist-replay:hover{color:#144e93}}.lb-row{font-size:12.5px}.lb-no{width:26px;text-align:center;font-weight:900;color:#b49a6e}.lb-row:first-child .lb-no{color:#d98f1f}.lb-row:nth-child(2) .lb-no{color:#8a94a0}.lb-row:nth-child(3) .lb-no{color:#b87333}.lb-rank{color:#96804f;font-size:10.5px}.lb-name{color:var(--text);font-weight:600}.lb-beans{color:#b9760f;font-weight:800;font-variant-numeric:tabular-nums}.lb-rate{color:var(--muted);font-size:11px}.lb-row--me{border:1px solid var(--line-2)!important;background:#ffd6824d!important}.rp-meta{font-size:11.5px;color:var(--muted);text-align:center;margin-bottom:8px}.rp-stage{display:flex;gap:8px;justify-content:center;min-height:130px;align-items:flex-start;padding:10px 4px;border-radius:14px;background:radial-gradient(ellipse at 50% 30%,#48b26a38,#78501414 75%);border:1px solid #ecdcba}.rp-seat{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.rp-seat__name{font-size:11px;color:var(--muted);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.rp-seat--landlord .rp-seat__name{color:#b06f10;font-weight:800}.rp-seat__cards{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;min-height:30px}.rp-bottom{margin-top:6px;min-height:34px}.rp-wait{color:var(--muted);font-size:12px;text-align:center;padding:8px}.rp-progress{text-align:center;font-size:11px;color:var(--muted);margin:8px 0 4px}.rp-controls{justify-content:center;margin-top:6px}.rank-chip{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:1px;padding:2px 9px;border-radius:999px;background:#ffd68266;border:1px solid rgba(212,152,62,.6);color:#a35c00}.res-rank{text-align:center;font-size:14px;min-height:18px;margin:6px 0 0}.res-rank .pos,.res-rank .neg{margin-left:8px}#toasts{position:fixed;top:calc(16px + env(safe-area-inset-top,0px));left:50%;transform:translate(-50%);z-index:100;display:flex;flex-direction:column;gap:6px;pointer-events:none;width:max-content;max-width:90vw}.toast{padding:10px 18px;border-radius:999px;background:#c8281ef2;color:#fff;font-size:13px;border:1px solid rgba(255,170,150,.5);box-shadow:0 10px 26px #78280a66;animation:toastIn .2s ease;text-align:center}.toast.info{background:#167642f2;border-color:#8ce6b473}@keyframes toastIn{0%{transform:translateY(-10px);opacity:0}to{transform:none;opacity:1}}#table{position:relative;height:100%;display:flex;flex-direction:column;padding:8px 10px 10px;background:radial-gradient(ellipse 120% 90% at 50% 26%,var(--felt-hi) 0%,var(--felt) 38%,var(--felt-2) 68%,var(--felt-3) 100%);box-shadow:inset 0 0 110px #00281080,inset 0 0 0 1px #001e0c59}#table:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.015) 0 2px,transparent 2px 5px),repeating-linear-gradient(-45deg,rgba(0,0,0,.02) 0 2px,transparent 2px 5px)}#table:after{content:"";position:absolute;inset:6px;pointer-events:none;border-radius:26px;border:2px solid rgba(255,232,180,.4);box-shadow:inset 0 0 40px #ffe8b41a,0 0 24px #001e0c59}.topbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:calc(7px + env(safe-area-inset-top,0px)) 10px 7px;background:#08341a73;border:1px solid rgba(255,232,180,.35);border-radius:14px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);position:relative;z-index:10}.topbar .room{font-size:13px;font-weight:700;color:#ffe9b8}.topbar button{background:linear-gradient(180deg,#fffdf4,#ffe9bd);border-color:#e8c887;color:#7a4a00;box-shadow:0 2px 4px #001e0c4d}.topbar button.ghost{background:#ffffff24;border-color:#ffe8b466;color:#ffe9b8}.topbar button.primary{color:#fff}.topbar button.active-trustee{background:linear-gradient(180deg,#ffe08e,#f2b13e);border-color:#e8a23c;color:#5a2c00;font-weight:700;box-shadow:0 0 10px #ffd75e8c}.mult-panel{max-height:0;overflow:hidden;transition:max-height .25s ease,margin .25s ease,opacity .2s ease;opacity:0;margin-top:0;position:relative;z-index:10}.mult-panel.show{max-height:240px;opacity:1;margin-top:6px}.mult-panel__title{font-size:11px;color:#cfe6d4;letter-spacing:2px;margin-bottom:4px}.mult-panel__rows{background:#08341a8c;border:1px solid rgba(255,232,180,.35);border-radius:12px;padding:8px 12px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.mult-row{display:flex;align-items:center;gap:8px;font-size:12px;padding:2px 0;color:#d8ecda}.mult-row b{color:#ffe9b8;font-variant-numeric:tabular-nums}.mult-row i{font-style:normal;font-size:11px;color:#9dc4a5;margin-left:auto}.mult-row--empty{color:#8fb998}.mult-row--total{border-top:1px dashed rgba(255,232,180,.4);margin-top:4px;padding-top:6px;color:#fff;font-weight:700}.mult-row--total b{color:#ffb347;font-size:15px}.middle{flex:1;position:relative;min-height:0;padding:4px 0}.seat--side{position:absolute;top:8px;width:150px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 6px 7px;border-radius:16px;background:linear-gradient(180deg,#08341a80,#08341a4d);border:1px solid rgba(255,232,180,.38);box-shadow:0 6px 16px #001e0c59;transition:border-color .2s ease,box-shadow .2s ease;z-index:5;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.seat--left{left:0}.seat--right{right:0}.seat--side.turn{border-color:#ffd75e;box-shadow:0 0 0 1px #ffd75e8c,0 0 26px #ffd75e73}.seat--side.turn:after{content:"";position:absolute;inset:-3px;border-radius:18px;border:1px solid rgba(255,215,94,.45);animation:seatPulse 1.3s ease-in-out infinite;pointer-events:none}@keyframes seatPulse{0%,to{opacity:.3}50%{opacity:1}}.seat--side.offline{opacity:.55}.seat--side.empty{border-style:dashed;border-color:#ffffff4d;background:#00281033;animation:emptyBreath 2.2s ease-in-out infinite}.seat--side.empty .seat__avatar{opacity:.45}@keyframes emptyBreath{0%,to{opacity:.55}50%{opacity:.95}}.seat__frame{position:relative}.seat__frame--me{flex:0 0 auto;margin-right:2px}.seat__avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(160deg,#fff8e6,#ffe4ac);border:2px solid rgba(255,236,190,.85);color:#a0620c;box-shadow:0 3px 10px #001e0c66}.seat__avatar.bot{border-color:#9fd0ff;color:#2f6cb4;background:linear-gradient(160deg,#eaf4ff,#c9e2ff);box-shadow:0 0 0 2px #78b4f066,0 3px 10px #001e0c66}.seat__count{position:absolute;top:-7px;right:-9px;min-width:21px;height:21px;display:grid;place-items:center;padding:0 5px;border-radius:999px;font-size:11px;font-weight:800;color:#7a4a00;background:linear-gradient(180deg,#ffe08e,#f2b13e);border:1px solid #fff2cf;box-shadow:0 2px 6px #001e0c73;font-variant-numeric:tabular-nums}.myinfo .seat__count{position:static;background:#08341a80;color:#ffe9b8;border:1px solid rgba(255,232,180,.4)}.seat__name{font-size:12px;color:#fff;text-shadow:0 1px 2px rgba(0,30,12,.5);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.seat__chips{display:flex;flex-wrap:wrap;gap:3px;justify-content:center}.chip{font-size:10px;padding:1px 7px;border-radius:999px;background:#00281059;border:1px solid rgba(255,255,255,.18);color:#d8ecda;white-space:nowrap}.chip--beans{color:#ffe9b8;border-color:#ffe8b466;font-variant-numeric:tabular-nums}.chip--double{color:#ffc59d;border-color:#ff8a3d80;font-weight:700}.chip--super{color:#fff;font-weight:800;background:linear-gradient(180deg,var(--cta-hi),var(--cta));border-color:#ffdcbeb3;box-shadow:0 0 10px #e8482f80}.chip--ming{color:#dcc5ff;border-color:#aa82ff80}.badge{position:absolute;top:-18px;left:50%;transform:translate(-50%);line-height:0;filter:drop-shadow(0 2px 4px rgba(0,30,12,.5));z-index:2;transform-origin:50% 100%;animation:hatSway 2.6s ease-in-out infinite}.badge svg{width:24px;height:19px}@keyframes hatSway{0%,to{transform:translate(-50%) rotate(-6deg)}50%{transform:translate(-50%) rotate(6deg)}}.seat__reveal{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;max-height:58px;overflow:hidden;pointer-events:none}.seat__bubble{position:absolute;top:calc(100% + 7px);left:50%;transform:translate(-50%) scale(.9);transform-origin:top center;max-width:170px;padding:6px 11px;border-radius:12px;background:linear-gradient(180deg,#fffef8,#f3ecd8);color:#3a3325;font-size:12px;line-height:1.4;box-shadow:0 6px 16px #001e0c59;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;z-index:9;word-break:break-all}.seat__bubble.show{opacity:1;transform:translate(-50%) scale(1)}.seat__bubble:after{content:"";position:absolute;top:-5px;left:50%;transform:translate(-50%) rotate(45deg);width:10px;height:10px;background:#fffef8;border-radius:2px}.played{position:absolute;top:42%;display:flex;flex-wrap:wrap;gap:2px;align-items:center;max-width:30%;z-index:6}.played--left{left:12px;justify-content:flex-start}.played--right{right:12px;justify-content:flex-end}.played .card{width:44px;height:62px}.played .card+.card{margin-left:-16px}.play-tag,.pass-tag{font-size:11px;padding:2px 9px;border-radius:999px;background:#00281073;color:#d8ecda;border:1px solid rgba(255,255,255,.2)}.pass-tag{color:#ffc59d;border-color:#ff8a3d80;font-weight:700}.center{position:absolute;top:6px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;z-index:4}.center__label{font-size:10px;color:#fff9;letter-spacing:2px}.center__label b{color:#ffe9b8}.bottom-cards,.lastplay{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;min-height:46px;align-items:center}.lastplay{min-height:30px}.timer{font-size:12px;color:#fffc;min-height:18px;text-shadow:0 1px 2px rgba(0,30,12,.45)}.timer b{color:#ffe9b8;font-size:15px;font-weight:900}.phase-actions{display:none;align-items:center;justify-content:center;gap:14px;min-height:54px}.phase-actions.show{display:flex;animation:fadeIn .18s ease}.phase-actions__tip{font-size:12px;color:#ffffffd9;margin-right:6px;text-shadow:0 1px 2px rgba(0,30,12,.45)}.act-btn{min-width:108px;padding:12px 24px;font-size:16px;font-weight:800;letter-spacing:2px;border-radius:999px;border:1px solid rgba(255,255,255,.3);text-shadow:0 1px 2px rgba(0,0,0,.28);box-shadow:0 5px #001e0c66,0 8px 18px #001e0c52,inset 0 1px #ffffff6b}.act-btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px #001e0c66}.act-btn--yes{background:linear-gradient(180deg,#ff8a4d,#e8482f);color:#fff;border-color:#ffb08a;text-shadow:0 1px 2px rgba(120,20,10,.5)}.act-btn--mid{background:linear-gradient(180deg,#ffe08e,#f2a72e);color:#5a2c00;border-color:#fff0c4;text-shadow:none}.act-btn--no{background:linear-gradient(180deg,#6fb2e8,#3a7cc2);color:#fff;border-color:#a8d0f2}.my-played{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;align-items:center;min-height:8px}.my-played .card{width:46px;height:65px}.my-played .card+.card{margin-left:-18px}.counter{display:flex;align-items:center;gap:10px;margin-top:6px;padding:6px 12px;background:#08341a80;border:1px solid rgba(255,232,180,.32);border-radius:12px;font-size:11px;overflow-x:auto;scrollbar-width:thin;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);position:relative;z-index:10;mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}.counter.fade-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 26px);mask-image:linear-gradient(90deg,transparent,#000 26px)}.counter.fade-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}.counter.fade-l.fade-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 26px,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,transparent,#000 26px,#000 calc(100% - 26px),transparent)}.counter::-webkit-scrollbar{height:4px}.counter__title{color:#ffe9b8;white-space:nowrap;letter-spacing:1px;font-weight:700}.counter__grid{display:flex;gap:8px;flex-wrap:nowrap}.counter__cell{color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap;padding:2px 8px;border-radius:8px;background:#ffffff1f;border:1px solid rgba(255,255,255,.1)}.counter__cell--out{color:#86a88e;text-decoration:line-through;background:#001e0c59;border-color:transparent}.bottom{display:flex;flex-direction:column;gap:6px;position:relative}.myinfo{display:flex;align-items:center;gap:8px;padding:6px 10px;background:#08341a73;border:1px solid rgba(255,232,180,.28);border-radius:12px;font-size:12px;flex-wrap:wrap;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#my-role{font-weight:800;color:#fffc;text-shadow:0 1px 2px rgba(0,30,12,.45)}#my-role.is-landlord{color:#ffe9b8}.strength-chip{color:#ffd98a}.chat-box{display:flex;flex-direction:column;gap:2px;min-width:130px;max-width:240px}.chat-log{font-size:11px;color:#d8ecda;max-height:38px;overflow:hidden;line-height:1.3}.chat-input{padding:4px 9px;font-size:16px;border-radius:9px}.quick-chat{display:flex;gap:4px;flex-wrap:wrap;flex-basis:100%;justify-content:flex-end}.qc-btn{font-size:10px;padding:3px 8px;border-radius:999px;min-height:30px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;background:#ffffff1f;color:#d8ecda;border:1px solid rgba(255,255,255,.2)}@media(hover:hover){.qc-btn:hover{color:#fff;border-color:#ffe8b480}}.btn-ming{color:#fff;border-color:#ffb08a;background:linear-gradient(90deg,#e8482f,#ff8a3d);font-weight:700;box-shadow:0 4px 12px #e8482f66}.hand-viewport{position:relative;overflow:hidden;min-height:122px;padding:28px 10px 2px;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.hand{display:flex;justify-content:flex-start;align-items:flex-end;width:max-content;will-change:transform;transform:translateZ(0);backface-visibility:hidden}.hand-viewport.is-scrollable:before,.hand-viewport.is-scrollable:after{content:"";position:absolute;top:24px;bottom:0;width:18px;pointer-events:none;z-index:3;opacity:0;transition:opacity .18s ease}.hand-viewport.is-scrollable:before{left:0;background:linear-gradient(90deg,rgba(4,46,22,.55),transparent)}.hand-viewport.is-scrollable:after{right:0;background:linear-gradient(270deg,rgba(4,46,22,.55),transparent)}.hand-viewport.is-scrollable.can-left:before{opacity:1}.hand-viewport.is-scrollable.can-right:after{opacity:1}.hand>.card:first-child{margin-left:0}.hand>.card:last-child{margin-right:0}.actions{display:flex;align-items:center;gap:10px;justify-content:center;position:relative;margin-bottom:env(safe-area-inset-bottom,0px)}.actions .primary{min-width:110px;font-size:15px;padding:10px 22px}.actions button:not(.ghost){font-size:14px;padding:10px 20px}.actions .ghost{position:absolute;right:0;top:50%;transform:translateY(-50%)}.actions .ghost:active{transform:translateY(-50%) scale(.98)}.card{position:relative;flex:0 0 auto;width:62px;height:87px;border-radius:8px;background:linear-gradient(160deg,#fff,#fbf6ea);border:1px solid #d9d2c0;box-shadow:0 3px 8px #00281059,inset 0 0 0 1px #fff9;color:#23272f;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform .12s ease,box-shadow .15s ease}.card--red{color:#dd3352}.card--small{width:36px;height:51px;border-radius:5px}.card--tiny{width:20px;height:28px;border-radius:3px}.card--static{cursor:default}@media(hover:hover){.card--static:hover{transform:none}}.card__corner{position:absolute;top:3px;left:5px;font-size:13px;font-weight:900;line-height:1.05;display:flex;flex-direction:column;align-items:center;font-family:"Segoe UI",var(--font)}.card__corner i{font-style:normal;font-size:11px}.card__corner--br{inset:auto 5px 3px auto;transform:rotate(180deg)}.card--small .card__corner{font-size:10px;top:2px;left:3px}.card--small .card__corner i{font-size:8px}.card--small .card__corner--br{inset:auto 3px 2px auto}.card--tiny .card__corner{font-size:7px;top:1px;left:2px}.card--tiny .card__corner i,.card--tiny .card__center,.card--tiny .card__corner--br{display:none}.card__center{position:absolute;inset:0;display:grid;place-items:center;font-size:30px;text-shadow:0 2px 3px rgba(0,0,0,.18)}.card--small .card__center{font-size:16px}.card--joker .card__center{color:inherit;opacity:1;text-shadow:0 2px 4px rgba(0,0,0,.25)}.card--joker .card__corner{font-size:10px;letter-spacing:1px}@media(hover:hover){.card:hover:not(.card--static):not(.selected){transform:translateY(-9px);box-shadow:0 10px 20px #00281073}}.hand .card+.card{margin-left:-24px}.hand .card{touch-action:pan-y}.card.selected{transform:translateY(-20px) scale(1.02);transition:transform .18s cubic-bezier(.34,1.56,.64,1),box-shadow .18s ease;box-shadow:0 0 0 2.5px #ffd75e,0 12px 24px #00281080,0 0 20px #ffd75e80}@media(hover:hover){.card.selected:hover{transform:translateY(-20px) scale(1.02)}}.card.focus{transform:translateY(-9px) scale(1.03);box-shadow:0 0 0 2px #ffffffd9,0 10px 18px #00281073;z-index:2}.card.selected.focus{transform:translateY(-20px) scale(1.02)}.card--back{background:repeating-linear-gradient(45deg,rgba(255,255,255,.12) 0 3px,transparent 3px 9px),repeating-linear-gradient(-45deg,rgba(255,255,255,.12) 0 3px,transparent 3px 9px),linear-gradient(160deg,#3a7cd4,#1e4fa0);border:1px solid #9cc0ec;box-shadow:inset 0 0 0 2.5px #fffc,inset 0 0 0 3.5px #285aaa,0 3px 8px #001e0c66;cursor:default}.card--back:after{content:"\2756";position:absolute;inset:0;display:grid;place-items:center;color:#ffffff8c;font-size:15px}.card--small.card--back:after{font-size:10px}.card--wild{box-shadow:0 0 0 2px #ffd75ed9,0 0 16px #ffd75e8c,0 3px 8px #00281059}.card__wild{position:absolute;bottom:4px;left:50%;transform:translate(-50%);font-size:9px;font-weight:900;color:#7a4a00;background:linear-gradient(180deg,#ffe08e,#f2b13e);border-radius:999px;padding:0 5px;line-height:1.5;box-shadow:0 1px 4px #001e0c4d}.card--small .card__wild{font-size:8px;padding:0 3px;bottom:2px}.teammate{display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 12px;border-radius:12px;background:linear-gradient(90deg,#48b26a4d,#08341a73);border:1px solid rgba(120,230,170,.4);font-size:12px}.teammate__label{color:#b8f0d2;font-weight:600}.teammate__cards{display:flex;gap:2px;flex-wrap:wrap}.teammate__cards .card{margin:0}.seat--top{left:50%;right:auto;transform:translate(-50%);top:8px}.seat--top.turn{transform:translate(-50%)}.seat--top .seat__bubble{top:calc(100% + 7px)}.table--four .center{top:158px}.table--four .counter{margin-top:4px}.hand-vp--many{min-height:104px;padding-top:24px}.hand--many .card{width:42px;height:60px}.hand--many .card+.card{margin-left:-27px}.hand--many .card.selected{transform:translateY(-14px) scale(1.02)}@media(hover:hover){.hand--many .card:hover:not(.card--static):not(.selected){transform:translateY(-6px)}}.hand--many .card__center{display:none}.hand--many .card__corner{font-size:10px;top:2px;left:3px}#deal-layer{position:fixed;inset:0;pointer-events:none;z-index:70;overflow:hidden}.deal-ghost{position:fixed;width:46px;height:64px;border-radius:6px;background:linear-gradient(160deg,#4a86cc,#1d4e8f 60%,#163d72);border:1px solid rgba(255,232,180,.5);box-shadow:0 4px 12px #00140866;will-change:transform,opacity}body.dealing #my-hand,body.dealing .phase-actions,body.dealing .actions{pointer-events:none}body.dealing .actions>*{opacity:.55}#my-hand .card--back{margin-left:-22px;transform:rotate(var(--rot, 0deg));box-shadow:0 3px 8px #00140859}#my-hand .card--back:first-of-type{margin-left:auto}#my-hand .card--back.deal-back-in{animation:dealBackIn .3s cubic-bezier(.25,.7,.35,1) backwards}@keyframes dealBackIn{0%{opacity:0;transform:translateY(-46px) rotate(calc(var(--rot, 0deg) - 14deg)) scale(.72)}to{opacity:1;transform:translateY(0) rotate(var(--rot, 0deg)) scale(1)}}#my-hand .card.deal-in{animation:dealFlip .38s cubic-bezier(.25,.7,.35,1) both}@keyframes dealFlip{0%{opacity:0;transform:translateY(-52px) rotateY(180deg) scale(.72)}60%{opacity:1}to{opacity:1;transform:translateY(0) rotateY(0) scale(1)}}#fx-layer{position:fixed;inset:0;pointer-events:none;z-index:80;overflow:hidden}.fx-flash{position:absolute;inset:0;animation:fxFlash .5s ease-out forwards}.fx-flash.fx-bomb{background:radial-gradient(circle,rgba(255,150,40,.55),transparent 68%)}.fx-flash.fx-rocket{background:radial-gradient(circle,rgba(255,220,120,.62),transparent 70%)}.fx-flash.fx-spring{background:radial-gradient(circle,rgba(255,150,210,.35),transparent 70%)}.fx-flash.fx-grab{background:radial-gradient(circle,rgba(140,200,255,.45),transparent 70%)}@keyframes fxFlash{0%{opacity:1}to{opacity:0}}.fx-bigtext{position:absolute;top:34%;left:50%;transform:translate(-50%,-50%);font-size:48px;font-weight:900;letter-spacing:4px;animation:fxBig 1.4s cubic-bezier(.2,1.4,.4,1) forwards;text-shadow:0 4px 20px rgba(0,30,12,.65),0 0 30px rgba(255,200,100,.3);white-space:nowrap}.fx-bigtext.fx-bomb{color:#ffb347}.fx-bigtext.fx-rocket{color:#ffe9a3}.fx-bigtext.fx-spring{color:#ff9ed2;font-size:40px}.fx-bigtext.fx-grab{color:#a8d8ff;font-size:40px}@keyframes fxBig{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}25%{transform:translate(-50%,-50%) scale(1.15);opacity:1}70%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-50%) scale(1.3);opacity:0}}.fx-ring{position:absolute;top:50%;left:50%;width:90px;height:90px;border-radius:50%;border:4px solid rgba(255,180,70,.85);transform:translate(-50%,-50%);animation:fxRing .9s ease-out forwards}.fx-ring.fx-rocket{border-color:#ffeb96e6}.fx-ring.fx-grab{border-color:#96cdffe6}@keyframes fxRing{0%{width:60px;height:60px;opacity:1}to{width:620px;height:620px;opacity:0}}.fx-particle{position:absolute;top:50%;left:50%;width:9px;height:9px;border-radius:50%;background:#ffb347;animation:fxParticle .95s ease-out forwards}.fx-particle.fx-rocket{background:#ffe9a3;width:11px;height:11px}.fx-particle.fx-grab{background:#a8d8ff}.fx-particle.fx-spring{width:auto;height:auto;background:none;font-size:20px;animation:fxFall 1.6s linear forwards}@keyframes fxParticle{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.2);opacity:0}}@keyframes fxFall{0%{transform:translate(0) rotate(0);opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(540deg);opacity:0}}.fx-bolt{position:absolute;top:0;width:3px;height:100%;background:linear-gradient(180deg,transparent,#fff8d0,transparent);animation:fxBolt .5s ease-out forwards}@keyframes fxBolt{0%{opacity:1}to{opacity:0}}#table.fx-shake{animation:shake .42s ease}#table.fx-shake-hard{animation:shakeHard .6s ease}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-5px,3px)}40%{transform:translate(5px,-3px)}60%{transform:translate(-4px,-2px)}80%{transform:translate(4px,2px)}}@keyframes shakeHard{0%,to{transform:translate(0)}15%{transform:translate(-11px,6px)}30%{transform:translate(11px,-6px)}45%{transform:translate(-9px,-5px)}60%{transform:translate(9px,5px)}75%{transform:translate(-5px,3px)}}@media(max-width:720px){.seat--side{width:116px;padding:7px 4px 5px}.seat__avatar{width:38px;height:38px}.badge{top:-15px}.badge svg{width:18px;height:15px}.seat__count{min-width:19px;height:19px;font-size:10px;top:-6px;right:-8px}.card{width:47px;height:66px}.card--small{width:30px;height:43px}.hand .card+.card{margin-left:-21px}.counter{font-size:10px;gap:7px}.counter__grid{gap:6px}.fx-bigtext{font-size:32px}.brand h1{font-size:30px;letter-spacing:4px}.brand__crown{width:42px;height:25px}.lobby-top{flex-wrap:wrap;row-gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 10px 10px 4px;gap:8px}.lobby-top .spacer{display:none}.dock{order:2;margin-left:auto}#online-pill{order:3}.player-chip{max-width:calc(100vw - 196px);padding:5px 8px 5px 5px;gap:8px}.lobby-avatar{width:38px;height:38px}.lobby-avatar svg{width:21px;height:21px}.player-chip__name{flex-wrap:wrap;row-gap:2px}.player-chip__name b{max-width:100%}.rank-chip{font-size:10px;padding:1px 6px}.player-chip__beans{font-size:15px;gap:5px}.chip-btn{font-size:10px;padding:3px 8px}.dock{gap:6px}.dock__btn{width:50px;padding:7px 3px 6px;border-radius:13px;font-size:9.5px;letter-spacing:1px}.dock__btn svg{width:17px;height:17px}.lobby-lantern{width:40px;height:46px}.lobby-stage__inner{padding:2px 12px 8px}.guest-card,#custom-form{padding:14px 13px 12px}.mode-card__go{font-size:11px;padding:6px 10px}.mode-card--hero .mode-card__go{font-size:12px;padding:8px 13px}.lobby-bottom{padding:6px 10px 10px}.act-btn{min-width:86px;font-size:14px;padding:10px 16px}.played{max-width:32%;top:42%}.played .card{width:32px;height:46px}.my-played .card{width:36px;height:51px}.room-grid{grid-template-columns:repeat(2,1fr)}.mode-cards--casual{grid-template-columns:1fr}.table--four .center{top:148px}}:root{--sp-w: 74px;--sp-h: 96px;--sp-up: 30px;--sp-down: 13px}#screen-24,#screen-spider,#screen-online{display:none;flex-direction:column;position:relative;background:var(--bg)}#screen-24.active,#screen-spider.active,#screen-online.active{display:flex}.casual-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:calc(9px + env(safe-area-inset-top,0px)) 14px;background:linear-gradient(180deg,#921218f7,#700d12eb);border-bottom:2px solid rgba(255,210,120,.38);color:#ffe9bd;box-shadow:0 4px 14px #3c00004d;z-index:3}.casual-bar__title{font-size:17px;font-weight:800;letter-spacing:2px;color:#ffe9bd;text-shadow:0 2px 3px rgba(90,10,4,.5)}.casual-bar .ghost{color:#ffe9bd;border-color:#ffdc966b;background:#00000029}@media(hover:hover){.casual-bar .ghost:hover:not(:disabled){background:#ffdc9629}}.casual-bar .ghost:disabled{opacity:.4;cursor:not-allowed}.casual-bar .pill{color:#ffe9bd;border-color:#ffdc9659;background:#0003}.casual-bar .pill--timer{font-variant-numeric:tabular-nums;min-width:52px;text-align:center}.casual-bar .spacer{flex:1}.diff{display:inline-flex;border-radius:10px;overflow:hidden;border:1px solid rgba(255,220,150,.38)}.diff button{background:#0003;color:#ffebc8c7;border:0;padding:5px 10px;font-size:12px;cursor:pointer;font-family:inherit;transition:background .15s,color .15s}.diff button.active{background:#ffd35c;color:#7c0f14;font-weight:800}.c24-wrap{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:20px;padding:26px 16px 44px}.c24-wrap:before,.c24-wrap:after{content:"";margin:auto 0}.c24-tip{color:#ffe9bd;font-size:15px;text-align:center;min-height:24px;transition:color .2s}.c24-tip.win{color:#ffd35c;font-weight:800;font-size:19px;text-shadow:0 2px 6px rgba(255,180,40,.35)}.c24-cards{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}.c24-card{width:86px;height:120px;border-radius:15px;padding:0;background:linear-gradient(170deg,#fffdf6,#f3e2ba);color:#b3450f;font-size:34px;font-weight:900;font-family:inherit;border:2px solid rgba(212,152,62,.65);box-shadow:0 10px 22px #0000004d;cursor:pointer;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;transition:transform .13s ease,box-shadow .13s ease}@media(hover:hover){.c24-card:hover{transform:translateY(-4px)}}.c24-card.sel{outline:3px solid #ffd35c;transform:translateY(-7px) scale(1.05);box-shadow:0 16px 28px #0006}.c24-ops{display:flex;gap:14px}.c24-ops button{width:64px;height:64px;border-radius:50%;font-size:27px;font-weight:800;font-family:inherit;background:linear-gradient(160deg,#ff8a4d,#e8482f);color:#fff;border:2px solid rgba(255,220,150,.6);cursor:pointer;box-shadow:0 9px 18px #781e0a61;transition:transform .13s ease,background .15s ease}@media(hover:hover){.c24-ops button:hover{transform:translateY(-3px)}}.c24-ops button.sel{background:linear-gradient(160deg,#ffe08a,#f3b34a);color:#8e5a12;transform:scale(1.1)}.c24-actions{display:flex;gap:10px}.c24-actions .ghost{color:#ffe9bd;border-color:#ffdc966b;background:#0000002e;font-size:13.5px;padding:8px 18px}@media(hover:hover){.c24-actions .ghost:hover:not(:disabled){background:#ffdc9629}}.c24-actions .ghost:disabled{opacity:.4;cursor:not-allowed}.c24-log{width:min(580px,100%);color:#ffebc8d1;font-size:13px;line-height:1.7;font-variant-numeric:tabular-nums}.c24-log__line{padding:3px 2px;border-bottom:1px dashed rgba(255,220,150,.16)}.c24-log__line.win{color:#ffd35c;font-weight:700}.c24-log__line.bad{color:#ff9a9a}.c24-log__line.ans{color:#9ee6b8}.sp-board{flex:1;min-height:0;display:flex;flex-direction:column;background:radial-gradient(120% 80% at 50% 0%,var(--felt-hi),var(--felt-2) 55%,var(--felt-3))}.sp-top{display:flex;align-items:center;gap:10px;padding:9px 14px 4px}.sp-found{display:flex;gap:4px}.sp-found__slot{width:26px;height:36px;border-radius:5px;border:1px dashed rgba(255,255,255,.4);display:flex;align-items:center;justify-content:center;color:#ffd35c;font-size:15px;font-weight:800}.sp-found__slot.done{border-style:solid;background:#ffd35c38;box-shadow:0 0 8px #ffd35c66}.sp-stock{position:relative;width:var(--sp-w);height:var(--sp-h);cursor:pointer}.sp-stock__back{width:100%;height:100%;border-radius:7px;background:repeating-linear-gradient(45deg,#3a7cd4,#3a7cd4 6px,#2d63ad 6px 12px);border:2px solid #eaf2ff;box-shadow:0 4px 10px #00000059}.sp-stock__num{position:absolute;right:-7px;top:-7px;background:#e8482f;color:#fff;font-size:11px;font-weight:800;border-radius:999px;padding:1px 7px;box-shadow:0 2px 5px #0000004d}.sp-stock.empty{opacity:.32;cursor:default}.sp-cols{flex:1;min-height:0;overflow:auto;padding:0}.sp-cols__inner{display:flex;gap:8px;align-items:flex-start;width:max-content;margin:0 auto;padding:8px 14px 18px}.sp-col{position:relative;width:var(--sp-w);flex:0 0 var(--sp-w);min-height:var(--sp-h);border-radius:8px}.sp-col:before{content:"";position:absolute;inset:0 0 auto;height:var(--sp-h);border-radius:7px;border:1px dashed rgba(255,255,255,.16)}.sp-card{position:absolute;left:0;width:var(--sp-w);height:var(--sp-h);border-radius:7px;background:#fffdf6;border:1px solid rgba(0,0,0,.3);box-shadow:0 2px 5px #00000047;display:flex;flex-direction:column;padding:3px 5px;font-weight:800;-webkit-user-select:none;user-select:none}.sp-card.up{color:#1d1d1d}.sp-card.up.red{color:#d3282f}.sp-card.down{background:repeating-linear-gradient(45deg,#3a7cd4,#3a7cd4 6px,#2d63ad 6px 12px);border-color:#eaf2ff}.sp-card__top{display:flex;align-items:baseline;gap:2px;line-height:1.05}.sp-card__r{font-size:calc(var(--sp-h) * .21);line-height:1.05}.sp-card__s{font-size:calc(var(--sp-h) * .18);line-height:1.05}.sp-card.sel{outline:3px solid #ffd35c;box-shadow:0 0 0 3px #ffd35c66,0 5px 12px #0006}.sp-msg{padding:0 14px 12px;color:#ffffffe0;font-size:12.5px;min-height:18px}.sp-win{position:absolute;inset:0;z-index:10;background:#14000080;display:flex;align-items:center;justify-content:center}.sp-win[hidden]{display:none!important}.sp-win__card{background:var(--panel);border-radius:20px;padding:28px 34px 24px;text-align:center;box-shadow:var(--shadow);border:2px solid rgba(212,152,62,.5)}.sp-win__card h2{margin:0 0 8px;color:#b3450f;font-size:24px}.sp-win__card p{margin:0 0 18px;color:var(--muted);font-size:14px}@media(max-width:720px){:root{--sp-w: 50px;--sp-h: 66px;--sp-up: 21px;--sp-down: 10px}.sp-cols{gap:6px;padding:6px 10px 16px}.sp-found__slot{width:20px;height:28px;font-size:12px}.casual-bar{padding:8px 10px;gap:6px}.casual-bar__title{font-size:15px;letter-spacing:1px}.casual-bar .pill{font-size:11px}.diff button{padding:4px 7px;font-size:11px}.c24-wrap{gap:15px;padding:18px 12px 34px}.c24-card{width:66px;height:92px;font-size:26px;border-radius:12px}.c24-cards{gap:10px}.c24-ops button{width:54px;height:54px;font-size:23px}.c24-ops{gap:10px}}#screen-online{background:radial-gradient(125% 85% at 50% 0%,#8f1a21,#6d1015 58%,#4a0a0e)}.co-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.co-center{flex:1;min-height:0;display:flex;padding:24px 16px;overflow-y:auto}.co-center>*{margin:auto}.co-card{width:min(430px,100%);background:var(--panel);border-radius:20px;padding:22px 22px 20px;box-shadow:var(--shadow);border:2px solid rgba(212,152,62,.5)}.co-card__title{font-size:22px;font-weight:900;color:#b3450f;text-align:center}.co-card__sub{text-align:center;color:var(--muted);font-size:13px;margin:6px 0 16px}.co-card__tip{margin-top:12px;color:var(--muted);font-size:12px;text-align:center;min-height:16px}.co-card--over .co-ranklist{margin:8px 0 18px}.co-copybox{position:fixed;inset:0;z-index:110;background:#0009;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px}.co-copybox input{width:min(520px,100%);padding:12px 14px;font-size:16px;border-radius:10px;border:2px solid rgba(212,152,62,.6);background:#fffdf6;color:#4a2c12;font-family:inherit;-webkit-user-select:text;user-select:text}.co-wrap{flex:1;min-height:0;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;align-items:center}.co-head{width:min(680px,100%);text-align:center}.co-code{font-size:15px;color:#ffe9bd;display:flex;align-items:center;justify-content:center;gap:10px}.co-code b{font-size:22px;letter-spacing:3px;color:#ffd35c;font-variant-numeric:tabular-nums}.co-code .ghost{color:#ffe9bd;border-color:#ffdc966b;background:#0000002e;font-size:12px;padding:5px 12px}.co-hint{color:#ffebc8b3;font-size:12.5px;margin-top:4px}.co-wait{flex:1;display:flex;align-items:center;justify-content:center;color:#ffe9bd;font-size:14px}.co-playhead{padding:12px 16px 0}.co-hud{width:min(680px,100%);margin:0 auto;display:flex;flex-direction:column;gap:10px}.co-strip{display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap}.co-strip .pill{color:#ffe9bd;border-color:#ffdc9659;background:#00000038}.co-strip .pill--timer{font-variant-numeric:tabular-nums;min-width:54px;text-align:center;color:#ffd35c;font-weight:800}.co-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.co-player{background:#0000003d;border:1px solid rgba(255,220,150,.3);border-radius:12px;padding:8px 11px;color:#ffe9bd}.co-player.me{border-color:#ffd35cbf;box-shadow:0 0 0 1px #ffd35c59 inset}.co-player.off{opacity:.5}.co-player__top{display:flex;align-items:center;justify-content:space-between;gap:8px}.co-player__name{font-weight:700;font-size:14px;display:flex;align-items:center;gap:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-host{font-size:10px;background:#ffd35c;color:#7c0f14;border-radius:6px;padding:1px 5px;font-weight:800}.co-you{font-size:10px;background:#ffd35c38;color:#ffd35c;border-radius:6px;padding:1px 5px}.co-player__score{font-weight:800;color:#ffd35c;font-size:13px;white-space:nowrap}.co-player__st{font-size:12px;color:#ffebc8b8;margin-top:2px}.co-player__st .ok{color:#9ee6b8;font-style:normal;font-weight:700}.co-bar{height:5px;border-radius:999px;background:#ffffff29;margin-top:6px;overflow:hidden}.co-bar i{display:block;height:100%;background:linear-gradient(90deg,#ffd35c,#ff9a3d)}.co-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center;padding:4px 0 calc(2px + env(safe-area-inset-bottom,0px))}.co-actions__hint{color:#ffebc8b3;font-size:12.5px}.co-actions .ghost{color:#ffe9bd;border-color:#ffdc966b;background:#0000002e}@media(hover:hover){.co-actions .ghost:hover:not(:disabled){background:#ffdc9629}}.co-actions button:disabled{opacity:.45;cursor:not-allowed}.co-suits{display:flex;align-items:center;gap:6px}.co-suits__label{color:#ffebc8b3;font-size:12px}.co-suit{background:#0003;color:#ffebc8cc;border:1px solid rgba(255,220,150,.38);border-radius:8px;padding:4px 10px;font-size:12px;cursor:pointer;font-family:inherit;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}.co-suit.on{background:#ffd35c;color:#7c0f14;font-weight:800}.co-emote-bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding-bottom:6px}.co-emote-bar .qc-btn{font-size:11px;padding:4px 10px}.co-feed{position:absolute;left:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:20;display:flex;flex-direction:column;gap:6px;pointer-events:none}.co-feed__item{background:#0000009e;color:#ffe9bd;font-size:12.5px;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,220,150,.3);animation:coFeedIn .25s ease}@keyframes coFeedIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.co-ranklist{display:flex;flex-direction:column;gap:7px}.co-rank{display:flex;align-items:center;gap:10px;background:#f7ecd2;border:1px solid rgba(212,152,62,.45);border-radius:12px;padding:9px 13px;color:#6b3a10;font-weight:700}.co-rank.me{background:#fff4d6;border-color:#f3b34a;box-shadow:0 0 0 2px #f3b34a59}.co-rank__no{font-size:17px;width:26px;text-align:center}.co-rank__name{flex:1;display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-rank__val{color:#b3450f;font-variant-numeric:tabular-nums}.co-rank .co-you{background:#f3b34a40;color:#8e5a12}@media(max-width:720px){.co-wrap{padding:12px 10px}.co-playhead{padding:10px 10px 0}.co-code{flex-wrap:wrap}.co-code b{font-size:19px}.co-players{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))}.co-feed{left:10px;bottom:10px}.co-card{padding:18px 16px 16px}}.bd-stage{flex:1 1 auto;min-height:0;display:flex;padding:10px 12px;overflow:auto}.bd-stage>*{margin:auto}.bd-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}.bd-svg{display:block;width:100%;height:auto;max-height:100%}.bd-svg--gomoku{max-width:min(540px,70vh);max-width:min(540px,70dvh)}.bd-svg--xiangqi{max-width:min(440px,68vh);max-width:min(440px,68dvh)}.bd-svg--junqi{max-width:min(600px,72vh);max-width:min(600px,72dvh)}.bd-hit{fill:transparent;cursor:pointer}.bd-stage{touch-action:pan-x pan-y}.bd-hit,.bd-go-hit{touch-action:none}.bd-hint{font-size:13px;color:#ffe9bd;opacity:.8}.bd-wrap.is-myturn .bd-hint{color:#ffd35c;font-weight:700;opacity:1}.bd-svg--gomoku{background:#f3e3c3;border-radius:10px;padding:2px}.bd-line{stroke:#6b5330;stroke-width:.7;opacity:.55}.bd-star{fill:#6b5330;opacity:.6}.bd-stone--black{fill:#24211d;stroke:#0d0c0b;stroke-width:.8}.bd-stone--white{fill:#fdfbf5;stroke:#a99a7d;stroke-width:.8}.bd-stone.is-last{stroke:#e8762a;stroke-width:2.6}.bd-stone.is-win{stroke:#e23c3c;stroke-width:2.8}.bd-winline{stroke:#e23c3c;stroke-width:3;stroke-linecap:round;opacity:.7}.bd-svg--xiangqi{background:#f6e7c6;border-radius:10px}.bd-svg--xiangqi .bd-line{stroke:#7a5c33;stroke-width:1;opacity:.72}.bd-river{fill:#8a7350;font-size:21px;letter-spacing:5px;opacity:.8}.bd-xq__disc{fill:#fdf6e6;stroke:#b08a4a;stroke-width:2}.bd-xq__inner{fill:none;stroke:#cbb07c;stroke-width:1}.bd-xq__txt{font-size:25px;font-weight:700}.bd-xq.is-red .bd-xq__txt{fill:#c62828}.bd-xq.is-black .bd-xq__txt{fill:#2f2a24}.bd-xq.is-sel .bd-xq__disc{stroke:#e8762a;stroke-width:3.4;fill:#fff4e0}.bd-xq.is-last .bd-xq__inner{stroke:#e8762a;stroke-width:2}.bd-dot{fill:#e8762a;opacity:.85}.bd-capture{fill:none;stroke:#e8762a;stroke-width:2.6;stroke-dasharray:4 3}.bd-jq__face{fill:#fdf6e6;stroke:#b08a4a;stroke-width:1.6}.bd-jq.is-back .bd-jq__face{fill:#6f5a3c;stroke:#4d3d27}.bd-jq__backtxt{fill:#ffffff80;font-size:30px;font-weight:700}.bd-jq__txt{font-size:26px;font-weight:700}.bd-jq.is-red .bd-jq__txt{fill:#c62828}.bd-jq.is-black .bd-jq__txt{fill:#2f2a24}.bd-jq.is-sel .bd-jq__face{stroke:#e8762a;stroke-width:3.4;fill:#fff4e0}.bd-jq.is-last .bd-jq__face{stroke:#e8762a;stroke-width:2.2}.bd-jq__tip{fill:#e8762a2e;stroke:#e8762a;stroke-width:1.6;stroke-dasharray:4 3}.bd-jq-empty{fill:#785a3212;stroke:#966c2c38;stroke-width:1}.co-rank--win .co-rank__val{color:#e23c3c;font-weight:800}.co-rank--lose .co-rank__val{color:#1fa856}.co-rank--draw .co-rank__val{color:#8a7350}.co-rank--off{opacity:.55}.co-rank .co-off{background:#0000001f;color:#8a7350;font-size:11px;padding:1px 6px;border-radius:8px;font-weight:600}.mode-cards--board{grid-template-columns:1fr 1fr}@media(max-width:560px){.mode-cards--board{grid-template-columns:1fr}}@media(max-width:720px){.bd-stage{padding:8px 6px}.bd-svg--gomoku{max-width:min(360px,56vh);max-width:min(360px,56dvh)}.bd-svg--xiangqi{max-width:min(330px,54vh);max-width:min(330px,54dvh)}.bd-svg--junqi{max-width:min(420px,56vh);max-width:min(420px,56dvh)}.bd-hint{font-size:12px}}.bd-svg--go{width:100%;max-width:640px;background:linear-gradient(160deg,#d9b978,#c9a45e);border-radius:12px}.bd-svg--go .bd-line{stroke:#4a3413;stroke-width:1}.bd-svg--go .bd-star{fill:#4a3413}.bd-go-hit{fill:transparent}.bd-go-b{fill:#111;stroke:#444;stroke-width:1}.bd-go-w{fill:#f5f5f0;stroke:#999;stroke-width:1}.bd-go-last-b{fill:#7de0a8}.bd-go-last-w{fill:#2f9455}.bd-svg--jstd{width:100%;max-width:min(560px,36vh);max-width:min(560px,36dvh);background:repeating-linear-gradient(92deg,rgba(120,80,30,.045) 0 2px,transparent 2px 9px),linear-gradient(155deg,#f3e6c4,#e3cfa2 52%,#d2b783);border-radius:16px;box-shadow:inset 0 0 0 1px #5a3c1438,0 10px 26px #0000004d}.jstd-frame{fill:none;stroke:#8a6534;stroke-width:3}.jstd-frame-inner{fill:none;stroke:#78552852;stroke-width:1}.jstd-zone--b{fill:#303e5c1a}.jstd-zone--r{fill:#962d2016}.jstd-front{stroke:#8c281e61;stroke-width:2;stroke-dasharray:10 7}.jstd-slot{fill:#fffcf04d;stroke:#7855282e;stroke-width:1}.jstd-rail{stroke:#6b4a1f;stroke-width:2;stroke-linecap:round}.jstd-tie{stroke:#6b4a1f80;stroke-width:1.3}.jstd-camp{fill:#b8904829;stroke:#8a6a34;stroke-width:1.6;stroke-dasharray:5 4}.jstd-camp__txt{fill:#6e4e206b;font-size:14px;font-weight:700;font-family:inherit}.jstd-hq{fill:#a834281a;stroke:#a33;stroke-width:1.8;stroke-dasharray:2 3}.jstd-hq__txt{fill:#96281e80;font-size:14px;font-weight:700;font-family:inherit}.jstd-piece .jstd-disc{fill:#fdf6e6;stroke:#b06a34;stroke-width:2}.jstd-piece .jstd-gloss{fill:#ffffffad}.jstd-piece.is-red .jstd-disc{fill:#fffdf6;stroke:#c0442c}.jstd-piece.is-black .jstd-disc{fill:#2b3444;stroke:#7d8ca6}.jstd-piece.is-black .jstd-gloss{fill:#ffffff29}.jstd-piece .jstd-inner{fill:none;stroke:#ffffff29;stroke-width:1}.jstd-piece.is-mine .jstd-disc{stroke-width:2.6}.jstd-piece .jstd-txt{fill:#8f2a16;font-size:15px;font-weight:800;font-family:inherit;letter-spacing:.5px}.jstd-piece.is-black .jstd-txt{fill:#c7d3e6}.jstd-piece.is-sel .jstd-disc{stroke:#fc3;stroke-width:3.2}.jstd-piece.is-sel{filter:drop-shadow(0 0 6px rgba(255,200,60,.7))}.jstd-piece.is-last .jstd-disc{stroke:#f0a02a;stroke-width:2.6}.jstd-tip{fill:#2ea05ae6}.jstd-tip--attack{fill:none;stroke:#e05a3a;stroke-width:3;stroke-dasharray:5 4}@media(hover:hover){.bd-go-hit:hover{fill:#fff2}}@media(max-width:560px){.topbar{flex-wrap:wrap;gap:4px 5px;padding-bottom:6px}.topbar>*{flex:0 0 auto}.topbar .room{font-size:12px}.topbar .pill{font-size:10.5px;padding:2px 7px}.topbar button{font-size:11.5px;padding:4px 8px}.topbar .spacer{flex:1 1 100%;height:0}.quick-chat{flex-wrap:wrap;justify-content:flex-start;gap:4px}.qc-btn{font-size:10px;padding:3px 7px}.counter{gap:6px;padding:5px 10px}.counter__grid{gap:5px}.counter__cell{padding:2px 6px}.seat--side{width:126px;padding:8px 4px 6px}.seat__name{font-size:11px}.played{top:196px;max-width:40%}.played .card{width:34px;height:48px}.played .card+.card{margin-left:-18px}.center{z-index:12}.actions{gap:6px}.act-btn{min-width:86px;padding:10px 14px;font-size:14.5px;letter-spacing:1px}.co-actions{gap:8px}.co-actions .ghost{padding:9px 16px}.chat-box{position:relative;z-index:5}.hand{position:relative;z-index:12}.played{pointer-events:none}}.custom-stage{height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;max-width:760px;margin:0 auto;width:100%;padding:16px 14px calc(20px + env(safe-area-inset-bottom,0px));box-sizing:border-box}@media(max-width:560px){.custom-stage{padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px))}.custom-stage .field label{font-size:12.5px}}.hall-list{display:flex;flex-direction:column;gap:8px;margin-top:4px}.hall-empty{text-align:center;padding:42px 16px;color:#ffd9a0;border:1px dashed rgba(255,210,120,.35);border-radius:12px;font-size:15px;font-weight:700;line-height:1.9}.hall-empty span{font-size:12.5px;font-weight:400;opacity:.75}.hall-room{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-radius:12px;background:linear-gradient(160deg,#92121880,#5a080c8c);border:1px solid rgba(255,210,120,.28)}.hall-room__main{display:flex;flex-direction:column;gap:3px;min-width:0}.hall-room__game{font-size:14.5px;font-weight:800;color:#ffe9bd}.hall-room__id{font-size:12.5px;color:#ffd28a;font-family:ui-monospace,monospace}.hall-room__host{font-size:12px;color:#f3c98c;opacity:.85}.hall-room__side{display:flex;align-items:center;gap:10px;flex:0 0 auto}.hall-room__count{font-size:13px;font-weight:700;color:#ffe9bd}.hall-room__count.full{color:#ff9d8a}.hall-room__btn{padding:8px 18px;font-size:13.5px}.hall-join{padding:12px 14px 14px;margin-bottom:12px;border-radius:12px;background:#3c080a80;border:1px solid rgba(255,210,120,.3)}@media(max-width:560px){.casual-bar .hall-create{padding:8px 14px;font-size:13.5px}.hall-room{padding:10px 11px}}#online-pill{font-weight:800;color:#fff6e0;background:#3c080a73;border:1px solid rgba(255,210,120,.45);text-shadow:0 1px 2px rgba(40,0,0,.6);white-space:nowrap}@media(orientation:landscape)and (max-height:480px){.topbar{padding:2px 8px;gap:4px}.topbar .room{font-size:11px}.topbar .pill{font-size:10px;padding:1px 6px}.topbar button{font-size:11px;padding:3px 7px}.quick-chat{gap:3px}.qc-btn{font-size:9.5px;padding:2px 6px;min-height:28px}.counter{padding:3px 8px;margin-top:2px;gap:6px}.counter__grid{gap:4px}.counter__cell{padding:1px 5px}.hand{min-height:84px;padding:14px 8px 2px}.card{width:48px;height:68px}.my-played .card{width:38px;height:54px}.played .card{width:34px;height:48px}.played{top:28%;max-width:34%}.middle{padding:2px 0}.seat--side{width:104px;padding:5px 4px 4px;top:4px;gap:1px;border-radius:12px}.seat__name{font-size:10px}.seat__avatar{width:34px;height:34px}.seat__count{min-width:18px;height:18px;font-size:10px}.seat__reveal{max-height:40px}.actions{gap:6px}.actions .primary{min-width:92px;font-size:14px;padding:8px 16px}.actions button:not(.ghost){font-size:13px;padding:8px 14px}.act-btn{min-width:92px;padding:8px 16px;font-size:14px;letter-spacing:1px}.phase-actions{min-height:40px;gap:10px}.phase-actions__tip{font-size:11px}.chat-box{min-width:108px;max-width:170px}.chat-log{max-height:22px;font-size:10px}.chat-input{padding:3px 8px}.center{top:2px;gap:2px}.bottom-cards,.lastplay{min-height:34px}.lastplay{min-height:22px}.timer{min-height:14px;font-size:11px}.timer b{font-size:13px}}.cheat-overlay{position:fixed;inset:0;z-index:9999;background:#d9453f;color:#fff;display:flex;flex-direction:column;align-items:stretch;padding:20px 0 30px;animation:cheat-in .25s ease}.cheat-overlay.cheat-out{opacity:0;transition:opacity .22s ease}@keyframes cheat-in{0%{opacity:0}to{opacity:1}}.cheat-line{height:1px;background:#ffffff8c;flex:0 0 auto}.cheat-mid{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 24px 20px}.cheat-logo{width:128px;height:58px;margin-bottom:6px;overflow:visible}.cheat-logo-t{font-family:Arial Black,Avenir Heavy,Segoe UI,sans-serif;font-size:46px;font-weight:900;font-style:italic;letter-spacing:3px;text-anchor:middle}.cheat-logo-shadow{fill:#ffffffe6}.cheat-logo-face{fill:#d9453f;stroke:#fff;stroke-width:2.4;paint-order:stroke}.cheat-title{font-size:30px;font-weight:700;letter-spacing:3px;margin:6px 0 18px}.cheat-sub{font-size:16px;margin-bottom:10px}.cheat-desc{font-size:11px;opacity:.92;margin:0}.cheat-btn{flex:0 0 auto;margin:0 auto 26px;min-width:150px;padding:9px 34px;background:#ffffff24;color:#fff;border:1px solid rgba(255,255,255,.85);font-size:14px;letter-spacing:4px;cursor:pointer;transition:background .15s ease,transform .1s ease}.cheat-btn:hover{background:#ffffff42}.cheat-btn:active{transform:scale(.98)}

/* ===== 用户名进入房间（v2） ===== */
.username-display{width:100%;padding:11px 13px;border-radius:12px;border:1px solid #dcc69a;background:#fffdf6;color:var(--text);font-size:14px;font-weight:700;box-sizing:border-box}
.username-display.is-me{color:var(--gold-2,#b06f10)}
.username-display:not(.is-me){color:var(--muted);font-weight:400}

/* ===== 排行榜-我的排名（v2） ===== */
.lb-me{display:flex;align-items:center;gap:10px;font-size:12.5px;font-weight:700;color:var(--text);padding:10px 12px;border-radius:11px;background:linear-gradient(90deg,#fdeec9,#faf3e0);border:1px solid var(--line-2);margin-bottom:8px}
.lb-me b{color:var(--gold-2);margin-left:auto;font-size:13.5px}
.lb-me-beans{font-weight:400;color:var(--muted);font-size:12px}
.lb-me--none b{color:var(--muted)}

/* ===== 历史记录-玩法标签（v2） ===== */
.hist-game{padding:1px 8px;border-radius:999px;background:#eef4ff;border:1px solid #c9d9f5;color:#3f6bb5;font-size:11.5px;font-weight:700;white-space:nowrap}

/* ===== extras.js：音效 / 特效 / 游戏历史分类 ===== */
#fx-layer{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}
.fx-float{position:absolute;transform:translate(-50%,-50%);font-weight:800;font-size:22px;text-shadow:0 2px 6px rgba(0,0,0,.45);animation:fxFloat 1s ease-out forwards}
@keyframes fxFloat{0%{opacity:0;transform:translate(-50%,-30%) scale(.6)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-120%) scale(1.1)}}
.fx-shake{animation:fxShake .45s}
@keyframes fxShake{0%,100%{transform:translate(0,0)}20%{transform:translate(-8px,4px)}40%{transform:translate(8px,-4px)}60%{transform:translate(-6px,3px)}80%{transform:translate(6px,-2px)}}
.fx-flash{position:absolute;inset:0;animation:fxFlash .32s ease-out forwards}
@keyframes fxFlash{0%{opacity:.9}100%{opacity:0}}
.fx-ripple{position:absolute;width:14px;height:14px;border:3px solid #ffd86b;border-radius:50%;transform:translate(-50%,-50%);animation:fxRipple .72s ease-out forwards}
@keyframes fxRipple{0%{opacity:.85;width:14px;height:14px}100%{opacity:0;width:170px;height:170px}}
.fx-pop{position:absolute;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle,#fff,#ffd86b);transform:translate(-50%,-50%);animation:fxPop .52s ease-out forwards}
@keyframes fxPop{0%{opacity:.9;width:10px;height:10px}100%{opacity:0;width:130px;height:130px}}
.fx-banner{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%);font-size:42px;font-weight:900;text-shadow:0 4px 16px rgba(0,0,0,.5);animation:fxBanner 1.3s ease-out forwards;white-space:nowrap}
@keyframes fxBanner{0%{opacity:0;transform:translate(-50%,-50%) scale(.4)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}100%{opacity:0;transform:translate(-50%,-58%) scale(1)}}
.fx-deal{position:absolute;inset:0;background:radial-gradient(circle at 50% 82%,rgba(255,216,107,.28),transparent 60%);animation:fxFlash .5s ease-out forwards}
.fx-confetti{position:absolute;top:-20px;width:9px;height:14px;border-radius:2px;animation:fxConfetti 1.5s ease-in forwards}
@keyframes fxConfetti{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--rot))}}
.hist-cats{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.hist-cat{padding:4px 10px;border-radius:999px;border:1px solid #333;background:#1c1c22;color:#cfcfd6;font-size:12px;cursor:pointer}
.hist-cat.active{background:#ffcf5b;color:#221a00;border-color:#ffcf5b;font-weight:700}
.hist-cat .badge{margin-left:4px;opacity:.65;font-size:11px}
.hist-search{display:flex;gap:6px;margin:6px 0}
.hist-search input{flex:1;padding:7px 10px;border-radius:8px;border:1px solid #333;background:#14141a;color:#fff;min-width:0}
.hist-search button{padding:0 14px;border-radius:8px;border:none;background:#ffcf5b;color:#221a00;font-weight:700;cursor:pointer}
.hist-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;background:#181820;margin:6px 0;border:1px solid #26262e}
.hist-item .hi-cat{font-size:11px;padding:2px 7px;border-radius:6px;background:#2a2a34;color:#9fb6ff;white-space:nowrap}
.hist-item .hi-main{flex:1;min-width:0}
.hist-item .hi-name{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-item .hi-sub{font-size:11px;color:#9a9aa6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-item .hi-res{font-weight:800;font-size:15px;white-space:nowrap}
.hi-win{color:#5bd58a}.hi-lose{color:#ff6b6b}.hi-draw{color:#c9c9d2}
.hist-loadmore{width:100%;margin:8px 0;padding:8px;border-radius:8px;border:1px solid #333;background:#1c1c22;color:#cfcfd6;cursor:pointer}
.dock__btn--admin{background:linear-gradient(180deg,#ffd98a,#e8a52a);border-color:#b06f10;color:#5a3b00;box-shadow:0 2px 8px #b06f1055;font-weight:700}

/* ===== 象棋翻棋：暗子背面 ===== */
.bd-xq.is-hidden{cursor:pointer;animation:xqHiddenPulse 2.4s ease-in-out infinite}
.bd-xq.is-hidden .bd-xq__disc{fill:#3b2f6b;stroke:#9380dd;stroke-width:2}
.bd-xq.is-hidden .bd-xq__inner{fill:#4b3b86;stroke:#b6a6ee;stroke-width:1.5;stroke-dasharray:3 2}
.bd-xq.is-hidden .bd-xq__txt{fill:#f0ebff;font-weight:900;font-size:21px}
.bd-xq.is-hidden.is-sel .bd-xq__disc{stroke:#ffe08a;stroke-width:3}
@keyframes xqHiddenPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.2)}}
.bd-xq.bd-flip-in{animation:xqFlipIn .42s ease-out}
@keyframes xqFlipIn{0%{opacity:.2;transform:scale(.6) rotateY(90deg)}60%{opacity:1;transform:scale(1.1) rotateY(-12deg)}100%{transform:scale(1) rotateY(0)}}

/* ===== 通用玩法特效：火花 / 光环 / 加分徽章 ===== */
.fx-spark{position:absolute;width:7px;height:7px;border-radius:50%;transform:translate(-50%,-50%);animation:fxSpark .6s ease-out forwards;box-shadow:0 0 8px currentColor}
@keyframes fxSpark{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(calc(-50% + var(--sx)),calc(-50% + var(--sy))) scale(.3)}}
.fx-ring2{position:absolute;width:20px;height:20px;border:3px solid #ffd86b;border-radius:50%;transform:translate(-50%,-50%);animation:fxRing2 .7s ease-out forwards}
@keyframes fxRing2{0%{opacity:.9;width:20px;height:20px}100%{opacity:0;width:150px;height:150px}}
.fx-badge{position:absolute;transform:translate(-50%,-50%);font:800 18px/1 system-ui,sans-serif;text-shadow:0 2px 6px rgba(0,0,0,.5);animation:fxBadge .9s ease-out forwards;white-space:nowrap}
@keyframes fxBadge{0%{opacity:0;transform:translate(-50%,-30%) scale(.7)}20%{opacity:1;transform:translate(-50%,-60%) scale(1.15)}100%{opacity:0;transform:translate(-50%,-160%) scale(1)}}
@media (prefers-reduced-motion:reduce){.fx-spark,.fx-ring2,.fx-badge,.bd-xq.is-hidden{animation-duration:.01ms!important;animation-iteration-count:1!important}}