:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif;color:#f4f2e9;background:#0b211d;font-size:16px;font-synthesis:none;--gold:#e2c185;--muted:#a0b6ac;--line:#ffffff18;--green:#163e33;--red:#b64843}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 35% 50%,#20493955,transparent 65%),#0b211d}button,input,textarea,select{font:inherit}button{color:inherit;border:1px solid #ffffff29;background:#ffffff06;border-radius:12px;padding:15px 20px;cursor:pointer;transition:transform .16s,background .16s}button:hover{background:#ffffff14}button:active{transform:scale(.98)}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.primary{background:var(--gold);color:#19291e;border-color:var(--gold);font-weight:700}.primary:hover{background:#f3d497}input,textarea,select{background:#ffffff08;color:inherit;border:1px solid #ffffff25;border-radius:9px;padding:14px;width:100%;margin-top:10px}option{background:#17382d}textarea{min-height:95px;font-size:14px;overflow-wrap:anywhere}label{display:block;font-size:14px;color:#c5d2c9}.topbar{height:90px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;font-size:31px;color:var(--gold)}.brand b{color:#fff;font-size:25px;letter-spacing:3px}.brand span{font-size:12px;letter-spacing:2px;color:var(--muted);margin-left:14px}.status{font-size:14px;color:var(--muted)}.home{max-width:1250px;margin:auto;padding:48px 36px 20px}.eyebrow{font-size:12px;letter-spacing:3px;color:var(--gold);font-weight:600}h1{font-size:clamp(38px,4.6vw,64px);font-weight:500;line-height:1.15;letter-spacing:2px;margin:18px 0}h1 br{display:none}.intro{color:var(--muted);margin-bottom:32px;line-height:1.7}.home-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:28px}.hero-table{background:radial-gradient(ellipse,#245b46,#123b2f);border:1px solid #648b6555;border-radius:24px;padding:25px 30px;position:relative;overflow:hidden;box-shadow:inset 0 0 80px #0002,0 20px 50px #0002}.table-caption,.table-bottom{display:flex;justify-content:space-between;font-size:14px;color:#c2d0ba}.table-caption span{color:var(--gold);letter-spacing:3px}.empty-table{position:relative;height:292px;margin:15px 0;border:1px solid #b8cb8b22;border-radius:45%}.seat{position:absolute;border:1px solid #c2d0ba35;border-radius:50%;width:50px;height:50px;display:grid;place-items:center;background:#163e33;font-size:14px;color:#acbeaa}.north{top:-8px;left:calc(50% - 25px)}.south{bottom:-8px;left:calc(50% - 25px);background:#ddbe81;color:#1b3b2e}.west{left:-8px;top:calc(50% - 25px)}.east{right:-8px;top:calc(50% - 25px)}.center-mark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;font-family:serif;font-size:88px;color:#b5c99748}.center-mark span{font-family:system-ui;font-size:11px;letter-spacing:4px;margin-top:8px}.table-bottom{font-size:13px;color:#a6bea7}.start-panel{background:#152f28;border:1px solid var(--line);border-radius:22px;padding:28px}.start-panel h2{font-size:28px;font-weight:500;margin:12px 0 25px}.start-panel button{width:100%;display:flex;justify-content:space-between;margin-top:12px}.start-panel input{margin-bottom:8px}.divider{font-size:12px;color:#a0b6ac;text-align:center;margin:20px 0 8px}.quiet{border:0;background:#ffffff05}.quiet span{font-size:13px;color:var(--muted)}.subtle{font-size:13px;line-height:1.7;color:var(--muted)}footer{display:flex;align-items:center;gap:25px;padding:22px 0;color:var(--muted);font-size:13px}footer span{margin-right:auto}.link{border:0;background:none;padding:8px;color:var(--muted);font-size:14px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#e7d7b1;color:#15332a;padding:14px 24px;border-radius:14px;z-index:99;max-width:90vw;text-align:center;box-shadow:0 10px 50px #0006;display:none}dialog{color:#f4f2e9;background:#132f27;border:1px solid #627c5c;border-radius:22px;padding:28px;width:min(520px,94vw);max-height:90dvh;overflow:auto}dialog::backdrop{background:#0009;backdrop-filter:blur(7px)}dialog h2{font-size:24px;margin:0 0 18px}dialog p{line-height:1.7;color:#b8c9bd}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}dialog .close{float:right;padding:4px 10px;margin:-10px -10px 0 10px}.badge{display:inline-block;padding:5px 9px;border:1px solid #dfbe7844;color:var(--gold);border-radius:6px;font-size:12px}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}canvas.qr{display:block;max-width:100%;height:auto;margin:16px auto;border-radius:12px}.notice{padding:14px;background:#e2c1850d;border:1px solid #e2c18533;border-radius:12px;font-size:14px;line-height:1.7;color:#dacbaf}.lobby{max-width:850px;margin:40px auto;padding:0 24px}.players{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:30px 0}.player-tile{background:#183b2f;padding:20px 12px;border:1px solid #ffffff22;border-radius:16px;text-align:center}.avatar{width:48px;height:48px;display:grid;place-items:center;margin:0 auto 10px;background:#dfbe7822;border:1px solid #dfbe7855;color:var(--gold);border-radius:14px;font-size:20px}.player-tile small{color:var(--muted)}.big-actions{display:flex;gap:12px;flex-wrap:wrap}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.stat{padding:15px;background:#ffffff06;border-radius:12px}.stat strong{display:block;font-size:28px;color:var(--gold);margin-bottom:5px}.stat span{color:var(--muted);font-size:13px}table{border-collapse:collapse;width:100%;font-size:14px}td,th{text-align:left;padding:14px 8px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:400}.scroll{overflow:auto}.game{max-width:1200px;margin:auto;padding:15px 22px}.score-strip{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}.board{position:relative;min-height:360px;height:43vh;max-height:480px;border-radius:160px;background:radial-gradient(ellipse,#255d45,#123d30);border:8px solid #1e4738;outline:1px solid #c6af6b44;margin:26px 50px 18px;box-shadow:inset 0 0 60px #0002,0 15px 40px #0003}.opponent{position:absolute;display:flex;flex-direction:column;align-items:center;gap:5px;z-index:2;text-align:center;font-size:14px}.opponent.top{left:50%;top:-24px;transform:translateX(-50%)}.opponent.left{left:-50px;top:38%}.opponent.right{right:-50px;top:38%}.opponent .avatar{margin:0;background:#233d32;box-shadow:0 4px 14px #0004}.opponent.active .avatar{box-shadow:0 0 0 3px var(--gold)}.opponent small{background:#0d251dd9;border-radius:5px;padding:3px 7px;color:#c5d5c8}.trick{position:absolute;inset:32% 16% 13%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px}.trick-label{color:#c0d1b9;font-size:14px;text-align:center}.played{display:flex;justify-content:center}.card{position:relative;flex-shrink:0;background:linear-gradient(140deg,#fffef7,#e5e6dc);border:1px solid #cbd0be;border-radius:8px;color:#1d3129;width:57px;height:82px;padding:5px;text-align:left;box-shadow:1px 3px 5px #0004;font-family:Georgia,serif;font-size:21px;line-height:1.05;touch-action:manipulation;transition:transform .16s,box-shadow .16s}.card:hover{background:#fffdf1;transform:translateY(-5px)}.card.red{color:#b53c37}.card .suit{display:block;font-size:19px;margin-top:2px}.card .bottom-suit{position:absolute;bottom:7px;right:7px;font-size:23px}.card.wild{border:2px solid #dbb56e}.card .wild-label{position:absolute;bottom:5px;right:4px;font:10px system-ui;background:#b7483a;color:white;padding:2px;border-radius:3px}.played .card+.card{margin-left:-14px}.hand{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 0;padding:20px 8px 10px;min-height:110px}.hand .card{margin-left:-14px}.hand .card:first-child{margin-left:0}.card.selected{transform:translateY(-17px);box-shadow:0 0 0 2px #edc575,0 8px 12px #0005}.hand-meta{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted);gap:10px}.controls{display:flex;justify-content:center;gap:12px;margin-top:12px;flex-wrap:wrap}.controls button{min-width:90px}.turn-message{text-align:center;color:var(--gold);font-size:14px;min-height:20px;margin-top:12px}.feed{color:#93ac9c;font-size:13px;text-align:center;margin-top:12px;line-height:1.7}.board-watermark{position:absolute;inset:0;display:grid;place-items:center;font:90px serif;color:#c9d6a410;pointer-events:none}.ranking{max-width:900px;margin:40px auto;padding:0 24px}.results-list{display:grid;gap:12px;margin:22px 0}.result-row{display:flex;align-items:center;gap:15px;padding:15px;border:1px solid var(--line);border-radius:14px}.rank-num{font:30px Georgia;color:var(--gold);width:35px}.result-row .detail{flex:1}.result-row .detail small{display:block;color:var(--muted);margin-top:6px}video{width:100%;border-radius:12px;background:#061913;max-height:280px}.hidden{display:none!important}a{color:var(--gold)}.empty-state{padding:35px 20px;text-align:center;border:1px dashed #ffffff25;border-radius:16px;color:var(--muted);line-height:1.8}@media(max-width:700px){.topbar{height:70px;padding:0 20px}.brand span{display:none}.brand{font-size:27px}.brand b{font-size:22px}.status{font-size:12px}.home{padding:28px 20px 12px}h1{font-size:43px;margin:16px 0}h1 br{display:block}.intro{font-size:14px;margin-bottom:24px}.home-grid{grid-template-columns:1fr;gap:18px}.hero-table{padding:20px;order:2}.empty-table{height:200px}.start-panel{padding:24px;order:1}.start-panel h2{margin:10px 0 18px}.hero-table .center-mark{font-size:65px}footer{gap:8px;flex-wrap:wrap}footer span{width:100%;padding-bottom:5px}.players{grid-template-columns:repeat(2,1fr)}.game{padding:12px 12px}.board{height:32vh;min-height:250px;margin:30px 30px 14px;border-radius:70px;border-width:5px}.opponent.left{left:-35px}.opponent.right{right:-35px}.opponent .avatar{width:40px;height:40px;font-size:16px}.opponent{font-size:12px}.trick{inset:32% 12% 12%;gap:10px}.card{width:44px;height:65px;font-size:18px;border-radius:6px}.card .suit{font-size:16px}.card .bottom-suit{font-size:18px;right:4px;bottom:4px}.hand{padding:20px 0 6px;row-gap:22px}.hand .card{margin-left:-19px}.controls{gap:7px}.controls button{padding:12px 16px;min-width:76px}.hand-meta{font-size:12px}.score-strip{font-size:12px}.game .score-strip .link{font-size:12px}.trick-label{font-size:12px}.stats-grid{gap:8px}.stat{padding:12px}.stat strong{font-size:24px}dialog{padding:22px}.lobby,.ranking{margin:25px auto}.feed{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:700px){.hand{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));padding-right:20px;gap:22px 0}.hand .card{margin-left:0}.played:has(.card:nth-child(7)) .card+.card{margin-left:-25px}}

#toast{pointer-events:none}

/* 飞飞掼蛋：旅行牌桌 */
:root{--gold:#f6b269;--muted:#a8c1d9;--green:#173f68;--red:#bf464b;background:#102b47;color:#fafcff}body{background:radial-gradient(ellipse at 25% 15%,#285f8840,transparent 65%),#102b47}.hero-table{background:radial-gradient(ellipse,#28618b,#173f68);border-color:#75a4c755}.primary{background:#f08a38;color:#172b3d;border-color:#f08a38}.primary:hover{background:#ffab68}.brand span{letter-spacing:0}.brand b{letter-spacing:1px}.eyebrow{letter-spacing:1px}.home-ribbon{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 25px}.home-ribbon button{padding:12px 16px;min-height:44px}.home-ribbon span,.home-ribbon small{color:var(--muted);font-size:12px;margin-left:6px}.bot-tile{border-style:dashed;background:#ffffff05}.social-bar{display:flex;justify-content:center;gap:12px;margin:12px 0}.social-bar button{padding:10px 22px;min-height:44px}.emote-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.emote-grid button{display:flex;align-items:center;gap:12px}.emote-grid span{font-size:28px}.sound-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.sound-row input{width:24px;height:24px;margin:0}.sound-row+label{margin:10px 0 20px}input[type=range]{padding:0;accent-color:#f08a38}#toast{pointer-events:none}option{background:#173f68}.board{background:radial-gradient(ellipse,#245779,#153751)}.player-tile .link{min-height:44px}li{line-height:1.8;margin-bottom:8px}@media(max-width:600px){.brand span{display:none}.brand b{font-size:21px}.home-ribbon{display:grid;grid-template-columns:1fr 1fr}.home-ribbon button{font-size:13px;padding:10px}.home-ribbon span{display:block;margin-top:4px}.topbar .status{max-width:125px;font-size:11px;text-align:right}.players{grid-template-columns:1fr 1fr}.controls{position:relative}.home{padding:28px 18px}.emote-grid button{padding:12px}.social-bar{margin:8px 0}.brand{gap:6px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.event-page{max-width:1080px;margin:auto;padding:32px 24px 60px}.event-page h1{font-size:clamp(30px,4vw,48px)}.event-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:25px 0}.event-table{padding:22px;background:#ffffff06;border:1px solid #ffffff24;border-radius:18px}.event-table p{font-size:14px;line-height:1.6;color:#bbcede}.event-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px}#event-clock{display:inline-block;min-width:90px;color:var(--gold);font-size:22px;margin-right:12px}.score-entry{display:flex;align-items:center;gap:12px;margin:20px 0}.score-entry label{flex:1;min-width:0}.score-entry input{font-size:24px}.confirmed{color:#78d3b4!important}.podium{display:flex;flex-wrap:wrap;gap:20px;margin:28px 0}.podium h2{width:100%}.podium>div{flex:1;min-width:180px;padding:24px;background:#ffffff09;border-radius:18px}.podium strong{color:var(--gold)}@media(max-width:600px){.event-tables{grid-template-columns:1fr}.event-page{padding:24px 16px}.event-heading{align-items:flex-start;flex-direction:column}.event-table{padding:18px}}

/* 视觉迭代：口袋里的蓝色牌桌，2026-10-06 */
:root{--line:#a8c1d930;--muted:#b0c7dd;--gold:#ffc481}
body{background:radial-gradient(ellipse at 15% 0,#245780 0,transparent 55%),#102b47;min-height:100dvh}
.topbar{height:78px;background:#102b4755}.brand{gap:10px}.brand b{font-size:24px}.brand span{font-size:12px;color:#b0c7dd}.home{max-width:1240px;padding:38px 36px 16px}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.home-heading h1{font-family:"Songti SC","STSong",serif;font-weight:700;font-size:clamp(36px,4.5vw,58px);letter-spacing:1px;margin:12px 0 16px}.home-heading .intro{margin:0 0 24px}.edition-stamp{flex-shrink:0;border:1px solid #82a7c65c;border-radius:50%;width:92px;height:92px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:12px;line-height:1.8;color:#b0c7dd;transform:rotate(9deg)}.edition-stamp b{font-size:15px;color:#f6c38e}.home-ribbon{gap:8px;margin-bottom:22px}.home-ribbon button{border-radius:30px;padding:10px 18px;background:#ffffff07;font-size:14px}.home-grid{grid-template-columns:1.5fr 1fr;gap:24px}.hero-table{border-radius:28px;background:radial-gradient(ellipse at 50% 40%,#35799e,#18496f 72%);padding:26px 32px;box-shadow:inset 0 0 0 7px #0b294433,inset 0 0 75px #081f4344,0 16px 40px #061a3326;border:1px solid #7ca8c565}.table-caption{color:#d5e8f4;font-size:15px}.table-caption span{color:#f6c38e}.empty-table{height:285px;border:1px solid #afd6ea33;margin:32px 0 18px;isolation:isolate}.seat{background:#153b5b;color:#dcecf7;border:1px solid #84b2d05c;box-shadow:0 4px 10px #001a2c30;z-index:2;width:44px;height:44px;font-size:12px}.seat.north{left:calc(50% - 22px)}.seat.south{left:calc(50% - 22px);background:#f6bb7a;color:#21354b;border-color:#ffdcab}.seat.west,.seat.east{top:calc(50% - 22px)}.hero-fan{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-bottom:12px}.show-card{position:absolute;width:108px;height:154px;border-radius:10px;background:linear-gradient(145deg,#fffefb,#e9e8e0);border:1px solid #fff;box-shadow:0 16px 20px #061a3a50,inset 0 0 0 4px #fff8;color:#193752;transform-origin:50% 110%;transition:transform .35s}.show-card b{font:30px Georgia,serif;position:absolute;left:10px;top:9px}.show-card b span{display:block;font-size:23px}.show-card i{font:64px Georgia,serif;position:absolute;right:14px;bottom:18px}.show-card.spade{transform:translateX(-60px) rotate(-24deg)}.show-card.heart{transform:translateX(-20px) rotate(-8deg);color:#c0444e}.show-card.club{transform:translateX(20px) rotate(8deg)}.show-card.diamond{transform:translateX(60px) rotate(24deg);color:#c0444e}.table-tagline{text-align:center;color:#e1eef6;font-size:16px;font-family:"Songti SC",serif;letter-spacing:2px;margin:18px 0 24px}.table-bottom{border-top:1px solid #b7d4e52b;padding-top:15px;color:#bdd5e6}.start-panel{background:#f5f7f8;color:#173954;border:1px solid #fff;border-radius:22px;padding:28px;box-shadow:0 16px 40px #061a3326}.start-panel .eyebrow{color:#637d90;font-size:12px}.start-panel h2{font-size:29px;font-weight:700;margin:10px 0 20px}.start-panel label{color:#526e82;font-size:13px}.start-panel input{background:#fff;border:1px solid #c5d3dc;color:#173954;font-size:16px}.start-panel input::placeholder{color:#8195a3}.start-panel button{background:#e8eef3;border-color:#ccd8e2;color:#214764;font-weight:600}.start-panel .primary{background:#ed9145;border-color:#ed9145;color:#142c42;box-shadow:0 4px 0 #cc7330}.start-panel .primary:hover{background:#ffa75f}.start-panel .quiet{background:transparent;border-style:dashed}.start-panel .quiet span{color:#607d91;font-size:12px;font-weight:400}.start-panel .divider,.start-panel .subtle{color:#627a8b}.start-panel .subtle{font-size:12px;margin-bottom:0}.start-panel .divider{margin-top:21px}footer{font-size:12px;gap:16px}footer .link{font-size:12px}
dialog{background:#173b5b;border-color:#7096b457;box-shadow:0 24px 100px #00122880}dialog p{color:#c3d8e9}.notice{background:#ffc4810a;border-color:#ffc48140;color:#dfd5c7}.player-tile{background:#204763;border-color:#86aac53d}.avatar{border-radius:16px;background:#47759a;color:#fff;border:1px solid #8fb5d250}.bot-tile{background:#15334e}.score-strip{padding:10px 16px;background:#183e5c;border:1px solid #87a8c32b;border-radius:14px}.board{background:radial-gradient(ellipse,#347496,#1b4a6c 76%);border-color:#173b59;outline-color:#8aadc65c;box-shadow:inset 0 0 0 2px #81adc130,inset 0 0 80px #0e355a80,0 12px 32px #071a323b}.board::after{content:"";position:absolute;inset:12px;border:1px solid #a8d1e52b;border-radius:inherit;pointer-events:none}.board-watermark{font:64px "Songti SC",serif;color:#d4e9f215;display:flex;flex-direction:column;justify-content:center;align-items:center;letter-spacing:8px}.board-watermark span{font:11px system-ui;letter-spacing:2px;margin-top:8px}.opponent .avatar{background:linear-gradient(145deg,#487f9f,#244b70);border:1px solid #7fa5c5}.opponent.active .avatar{box-shadow:0 0 0 3px #ffbf78,0 0 0 7px #ffbf7820}.opponent small{background:#102e49;color:#cbe0ef}.opponent b{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trick-label{color:#e0edf4;background:#13334c7a;border-radius:20px;padding:5px 12px}.card{background:linear-gradient(140deg,#fffefa,#e7edf1);border-color:#d4dfe6;color:#19354d;box-shadow:1px 4px 5px #081c3445}.card.red{color:#bd3948}.card.wild{border-color:#efad56}.card.selected{background:#fff8e8;box-shadow:0 0 0 2px #ffbd70,0 10px 16px #001a3c66}.my-turn .turn-message{font-weight:600;color:#ffd194}.controls .primary{min-width:130px;box-shadow:0 4px 0 #aa6229}.hand-meta{color:#bed3e4}.feed{color:#a6c1d6}.result-page{text-align:center;max-width:760px;padding-bottom:28px}.result-emblem{width:88px;height:88px;margin:0 auto 24px;border-radius:50%;display:grid;place-items:center;font:56px Georgia;background:#416889;color:#e4edf5;border:5px double #a2bed3}.victory .result-emblem{background:#f8c585;color:#724321;border-color:#ffebbd;box-shadow:0 0 0 12px #f8c5850b}.result-page .results-list{text-align:left}.result-page .result-row{background:#1b405f}.victory .result-row:first-child{border-color:#ffc48190;background:#31526a}.result-page .big-actions{justify-content:center}.result-row .badge{border-radius:20px;padding:6px 12px}.result-page h1{font-family:"Songti SC",serif}.event-table{background:#21486480}.podium>div:first-of-type{border:1px solid #ffc48180;background:#ffc48114}
@media(hover:hover){.hero-table:hover .show-card.spade{transform:translateX(-72px) rotate(-28deg)}.hero-table:hover .show-card.diamond{transform:translateX(72px) rotate(28deg)}}
@media(prefers-reduced-motion:no-preference){.result-emblem{animation:award-arrive .5s ease-out both}@keyframes award-arrive{from{transform:scale(.75) rotate(-12deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}}
@media(max-width:700px){.topbar{height:64px;padding:0 16px}.home{padding:24px 16px 12px}.home-heading h1{font-size:35px;letter-spacing:0;margin:9px 0 12px}.home-heading .intro{font-size:13px;max-width:270px;line-height:1.8;margin-bottom:18px}.edition-stamp{display:none}.home-ribbon{gap:7px;margin-bottom:18px}.home-ribbon button{border-radius:14px;font-size:13px;padding:10px 8px}.home-grid{grid-template-columns:1fr;gap:18px}.start-panel{order:1;padding:22px}.hero-table{order:2;padding:22px}.empty-table{height:205px;margin:24px 0 16px}.show-card{width:81px;height:117px}.show-card b{font-size:24px;left:8px;top:7px}.show-card b span{font-size:18px}.show-card i{font-size:43px;right:10px;bottom:14px}.show-card.spade{transform:translateX(-45px) rotate(-24deg)}.show-card.heart{transform:translateX(-15px) rotate(-8deg)}.show-card.club{transform:translateX(15px) rotate(8deg)}.show-card.diamond{transform:translateX(45px) rotate(24deg)}.table-tagline{font-size:14px;letter-spacing:1px}.game{padding:10px}.score-strip{padding:8px 10px}.board{min-height:230px;height:29vh;margin-top:30px}.board-watermark{font-size:48px}.board-watermark span{display:none}.hand-meta>span:nth-child(2){display:none}.controls .primary{min-width:110px}.result-page h1{font-size:30px!important}.result-page .intro{font-size:13px}.result-emblem{width:72px;height:72px;font-size:44px}.result-page .big-actions button{flex:1 1 42%;font-size:14px}.result-row{padding:13px 10px;gap:10px}.result-row .detail small{font-size:11px}.result-page .rank-num{font-size:26px}.ranking>.row{flex-wrap:wrap}.ranking>.row button{padding:12px;font-size:13px}footer{gap:4px}}

/* Seat identity and readable turns: navy felt, ivory cards, amber action. */
.game{max-width:1120px}.game h2,.tribute-panel h2{font-family:"Songti SC","STSong",serif;letter-spacing:1px}.avatar{overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar{width:96px;height:96px;font-size:40px}.turn-banner{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:12px 18px;background:#143854;border:1px solid #6286a1;border-radius:14px;margin:12px 0;color:#d6e5ee}.turn-banner.your-turn{background:#ffe2ad;color:#25334a;border-color:#ffb963;box-shadow:0 3px 0 #ad713d}.turn-banner b{font-size:19px}.turn-banner small{width:100%;text-align:center;font-size:12px}.board{height:410px;min-height:410px;margin:35px 54px 14px}.opponent{max-width:130px}.opponent.left,.opponent.right{top:32%}.trick{inset:35% 23% 27%;gap:10px}.seat-action{margin-top:3px;max-width:135px;font-size:11px;color:#d9e7f1;display:grid;gap:4px;justify-items:center}.seat-action.holding>span{color:#ffd594}.seat-action strong{font-size:10px;font-weight:500;color:#ffd594}.mini-cards{display:flex;justify-content:center;flex-wrap:wrap;gap:2px;max-width:125px}.mini-cards i{font-style:normal;font-family:Georgia,"Songti SC",serif;font-weight:700;color:#15344b;background:#fff7e9;padding:3px 4px;border-radius:3px;box-shadow:0 1px 2px #07182b88}.mini-cards i.red{color:#b02f48}.acting-label{padding:4px 8px;background:#ffbe75;color:#25334a;border-radius:20px;font-size:11px;font-weight:700}.self-play{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);text-align:center;font-size:10px;color:#b5d0e4}.self-play>small{display:block;margin-top:5px}.self-play .mini-cards{max-width:210px;flex-wrap:nowrap}.my-identity{display:flex;align-items:center;gap:8px}.my-identity .avatar{width:34px;height:34px;border-radius:10px;margin:0}.tribute-panel{padding:22px;background:#204862;border:1px solid #cba96d;border-radius:20px;margin:16px 0}.tribute-panel p{line-height:1.8;color:#d9e8f3}.tribute-flow b{color:#ffcb8c}.tribute-record{font-size:12px;color:#bdd3e3;margin:10px 0}.speech-bubble{position:absolute;top:-64px;width:160px;background:#fff5de;color:#243c53;border-radius:14px;padding:10px;box-shadow:0 5px 20px #0004;font-size:13px;z-index:10}.emote-grid button{font-size:14px;text-align:left;line-height:1.5}.game .controls .primary{min-width:130px;font-size:19px}.opponent.top{top:-26px}.opponent.top .mini-cards{max-width:260px;flex-wrap:nowrap}.opponent.top .seat-action{max-width:260px}.my-turn .hand{border-bottom:2px solid #ffbf78}.team-note{color:#ffd29a;font-size:12px;margin:6px 0}
@media(max-width:700px){.board{height:370px;min-height:370px;margin:34px 25px 12px;border-radius:75px}.opponent{max-width:86px;font-size:11px}.opponent.left{left:-28px}.opponent.right{right:-28px}.opponent b{max-width:84px}.opponent.top{max-width:180px}.opponent .avatar{width:42px;height:42px}.seat-action{max-width:84px}.mini-cards{max-width:82px}.mini-cards i{font-size:10px;padding:3px}.trick{inset:39% 20% 28%}.trick .card{width:33px;height:49px;font-size:14px}.trick .card .suit{font-size:12px}.trick .card .bottom-suit{font-size:13px}.played .card+.card{margin-left:-17px}.turn-banner{gap:6px;padding:10px}.turn-banner b{font-size:16px}.hand-meta{gap:8px}.speech-bubble{width:120px;font-size:11px}.opponent.left .speech-bubble{left:0}.opponent.right .speech-bubble{right:0}.emote-grid{gap:8px}.emote-grid button{font-size:12px;padding:10px 8px}.emote-grid span{font-size:22px}.self-play{bottom:14px}.game .controls .primary{min-width:105px;font-size:17px}}
@media(max-width:700px){.board{height:310px;min-height:310px}.game .controls{position:sticky;bottom:0;background:#18364fef;padding:10px 0;z-index:6;border-top:1px solid #94bad347;backdrop-filter:blur(8px)}.opponent.top .avatar{width:36px;height:36px}.opponent.top{gap:3px}.opponent.top .mini-cards i{padding:2px 3px}.trick{inset:43% 20% 26%}.self-play{bottom:8px}}
.live-event h1{font-family:"Songti SC","STSong",serif;font-size:clamp(34px,5vw,52px)}.live-event .brand{text-decoration:none}.live-event #status{padding:12px 16px;min-height:46px;background:#244d6b;border-radius:12px;line-height:1.6}.live-event #status:empty{display:none}.live-event #progress,.live-event #score,.live-event #pair{padding:22px;border:1px solid #789db64a;border-radius:20px;margin:20px 0;background:#163956}.live-event #pair:empty,.live-event #score:empty{display:none}.live-event #exchange canvas{display:block;margin:20px auto;max-width:100%;height:auto}.live-event #reply-qr{display:block;margin:20px auto}.live-event textarea{min-height:120px}.live-event #roster{min-height:200px}.live-event #summary h3{line-height:1.5}.live-event [role=alert]{background:#734438;padding:14px;border-radius:10px;line-height:1.7}.live-event #score input{max-width:180px;font-size:24px}.live-event #score label{display:inline-block;width:48%;vertical-align:top;margin:10px 1% 20px}.live-event #score button{display:block;width:100%;background:#f6b269;color:#142e45;font-weight:700}.live-event #progress ol{padding:0;list-style:none;display:grid;gap:12px}.live-event #progress li{padding:18px;background:#ffffff0a;border-radius:12px;font-size:20px}.live-event #exchange button{margin:8px 8px 8px 0}.live-event .event-page>.notice{line-height:1.8}@media(max-width:600px){.live-event .event-page{padding:25px 16px}.live-event #progress,.live-event #score,.live-event #pair{padding:18px 14px}.live-event h2{font-size:22px}.live-event .topbar .brand b{font-size:20px}.live-event #exchange button{width:100%;margin:7px 0}.live-event .big-actions>button{flex:1;min-width:130px}.live-event label{line-height:1.8}}

.header-actions{display:flex;gap:10px;align-items:center}.header-actions .link{white-space:nowrap;border:1px solid #88a6c344;border-radius:10px;padding:10px}.turn-countdown{text-align:center;color:#b9d6ec;font-size:14px;min-height:20px}.turn-countdown.urgent{color:#ffc171;font-weight:700}#settings-avatar-preview{margin:18px 0;width:64px;height:64px}#settings-avatar-preview img{width:100%;height:100%;object-fit:cover;border-radius:inherit}@media(max-width:700px){.header-actions{gap:4px}.header-actions .status{max-width:105px;font-size:10px}.header-actions .link{font-size:12px;padding:9px}.turn-countdown{font-size:12px}}

/* 飞飞竞技舱 · 2026-10-15. Keep the cards readable, put light on the table. */
:root{--gold:#ffb573;--muted:#9fb8d1;--line:#79ceff30;--cyan:#68dcff;--green:#13365a;background:#071426;color:#edf6ff;font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif}
body{background:radial-gradient(ellipse at 12% 8%,#16457770,transparent 48%),radial-gradient(ellipse at 95% 50%,#123e5555,transparent 44%),#071426}
body::before{content:"";position:fixed;inset:0;background-image:linear-gradient(#74cfff06 1px,transparent 1px),linear-gradient(90deg,#74cfff06 1px,transparent 1px);background-size:52px 52px;pointer-events:none;z-index:-1}
.topbar{background:#08172bd9;border-bottom:1px solid #88d9ff26;box-shadow:0 6px 28px #0002;height:76px}.brand{color:#7ce3ff}.brand b{font-weight:800;letter-spacing:2px}.brand span{color:#8eacc6}.status{color:#a9c6df}.topbar .link{border:1px solid #6bcaff35;border-radius:12px;color:#c7e9ff;background:#14344d55;padding:9px 15px}
.home{padding-top:34px}.home-heading{margin-bottom:12px}.home-heading h1{font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;font-weight:850;font-size:clamp(44px,5.3vw,70px);line-height:1.15;letter-spacing:-1px;text-shadow:0 4px 28px #9ddfff13;margin:12px 0 18px}.home-heading h1 br{display:block}.home-heading .eyebrow{color:#78d9ff;letter-spacing:2px}.home-heading .intro{color:#a9c4dc}.edition-stamp{border-radius:20px;border:1px solid #77d5ff50;background:linear-gradient(140deg,#173b5999,#091c31);transform:rotate(0);box-shadow:inset 0 0 22px #4db3df15,0 0 24px #3f9dff0c;width:100px;height:100px}.edition-stamp b{color:#75e4ff}.home-ribbon{gap:9px}.home-ribbon button{background:#102b44cc;border:1px solid #79ceff29;color:#d5eaff;border-radius:12px;box-shadow:inset 0 1px 0 #ffffff08}.home-grid{gap:26px;align-items:stretch;grid-template-columns:1.3fr 1fr}
.hero-table{border-radius:34px 14px 34px 14px;padding:28px 32px 20px;background:radial-gradient(ellipse at 50% 35%,#1d5277 0,#102f4d 52%,#0a1c33 100%);border:1px solid #6cd8ff55;box-shadow:inset 0 0 0 7px #102e4766,inset 0 0 85px #0006,0 20px 60px #0005,0 0 35px #3fa5ff12}.table-caption{justify-content:flex-start;align-items:center;gap:9px;color:#c1e8fb;font-size:14px}.table-caption>span:last-child{margin-left:auto;color:#85c9e2;letter-spacing:0}.table-signal{width:7px;height:7px;border-radius:100%;background:#74e3c8;box-shadow:0 0 12px #74e3c8;display:inline-block}.empty-table{height:280px;border:1px solid #6fddff4d;box-shadow:0 0 0 10px #80ddff04,0 0 0 11px #78d9ff15,inset 0 0 70px #66d9ff08;background:radial-gradient(ellipse,#3c89af20,transparent 60%)}.seat{background:#0d263f;border-color:#6cc9f55c;color:#addef5;box-shadow:0 0 18px #42adf315,inset 0 0 12px #4ea4cb15}.seat.south{background:#ffb573;color:#112237;box-shadow:0 0 20px #ffb57335}.show-card{border-radius:12px;background:linear-gradient(125deg,#fff,#d9eff9);box-shadow:0 22px 32px #001326bb,inset 0 0 0 4px #fff9;border-color:#c0e7f7}.show-card.spade{transform:translateX(-68px) rotate(-24deg)}.show-card.heart{transform:translateX(-22px) rotate(-8deg)}.show-card.club{transform:translateX(22px) rotate(8deg)}.show-card.diamond{transform:translateX(68px) rotate(24deg)}.hero-fan{animation:deal-in .7s cubic-bezier(.2,.7,.2,1) both}.table-tagline{font-family:inherit;color:#b8ddef;letter-spacing:1px;font-size:15px}.table-bottom{color:#8eafc9;border-color:#79ceff22}
.start-panel{background:linear-gradient(145deg,#152e48ee,#0c1c32f5);border-color:#7ccfff33;box-shadow:inset 0 1px 0 #a8e5ff19,0 18px 45px #0004;border-radius:18px;color:#f0f7ff;padding:28px}.start-panel .eyebrow{color:#6bb9df}.start-panel h2{color:#eef8ff;font-size:30px;font-weight:800}.start-panel label{color:#a9c5db}.start-panel input{background:#07192c;border-color:#63b6e34d;color:#eff8ff;box-shadow:inset 0 3px 10px #0002}.start-panel input:focus{border-color:#78ddff;outline-color:#78ddff55}.start-panel input::placeholder{color:#668ca9}.start-panel button{color:#d9f0ff;background:#1c4868;border-color:#70bbdf44;min-height:52px}.start-panel button:hover{background:#265d82}.start-panel .primary,.primary{background:linear-gradient(120deg,#ffca86,#ff9a52);border-color:#ffcf91;color:#16283c;box-shadow:0 4px 0 #ad6131,0 6px 22px #ff9b4320;font-weight:800}.start-panel .primary:hover,.primary:hover{background:linear-gradient(120deg,#ffdfaa,#ffb26e)}.start-panel .quiet{border-style:solid;background:#0e263e;color:#bbdaee}.start-panel .quiet span,.start-panel .divider,.start-panel .subtle{color:#98b5cb}.start-panel .subtle{line-height:1.8}.start-panel .divider{margin:21px 0 8px}
dialog{background:linear-gradient(145deg,#15324d,#091b30);border:1px solid #73cfff55;box-shadow:0 30px 100px #0009,0 0 40px #57b8ee12;border-radius:20px}dialog h2{font-weight:800;color:#e4f7ff}input,textarea,select{background:#0b2238;border-color:#73bded3b;color:#e8f5ff}option{background:#0e263f}.notice{background:#ffb5730a;border-color:#ffb57344}.player-tile{background:#112f49;border-color:#67b9ef33}.avatar{background:linear-gradient(145deg,#2e6b8b,#173651);border-color:#75d3ff60;box-shadow:inset 0 0 10px #6de2ff15}.score-strip{background:#0e2942;border-color:#76d5ff2e;box-shadow:inset 0 1px 0 #ffffff08}.score-strip b{font-size:18px;color:#d6f4ff}.badge{border-color:#ffa66550;background:#ffb5730c;color:#ffc78e}
.board{background:radial-gradient(ellipse,#164361,#0b2943 70%,#081e33);border:7px solid #0c2138;outline:1px solid #5bcaef70;box-shadow:inset 0 0 0 2px #5cceff38,inset 0 0 65px #07182e88,0 0 0 7px #77cbff06,0 16px 45px #0005,0 0 32px #46b5ec14}.board::before{content:"";position:absolute;inset:22px;border-radius:inherit;background:repeating-linear-gradient(0deg,#75d3ff04 0,#75d3ff04 1px,transparent 1px,transparent 10px);pointer-events:none}.board::after{inset:10px;border:1px solid #71d3f92e}.board-watermark{font-family:inherit;font-weight:800;color:#b0eeff13;letter-spacing:12px;font-size:60px}.board-watermark span{font-weight:400;color:#8ed6f125;letter-spacing:2px}.opponent .avatar{background:linear-gradient(135deg,#285879,#102b44);border-color:#83c9ee70}.opponent.active .avatar{border-color:#89e9ff;box-shadow:0 0 0 3px #75dbff,0 0 20px #61ccff66}.opponent.active .acting-label{color:#97ebff}.opponent small{background:#061a2dd9}.trick-label{background:#071a2ddd;border:1px solid #7bcfff26;color:#d8f1ff}.played{animation:cards-arrive .22s ease-out}.card{background:linear-gradient(145deg,#fff,#e4f0f6);color:#12344c;box-shadow:1px 4px 6px #0005;font-weight:700;border-color:#cae3ed}.card.red{color:#ce354e}.card.selected{background:#fff9ec;box-shadow:0 0 0 2px #ffbc78,0 0 18px #ffb16a44,0 8px 12px #001a3c66}.card .suit{font-weight:500}.my-turn .turn-banner{background:linear-gradient(110deg,#113c55,#174b60);border:1px solid #78e2f4;color:#d2fbff;box-shadow:0 0 20px #5de1ff15,inset 4px 0 0 #87ebff}.turn-banner small{color:#a8e8f6}.turn-countdown{color:#8ab7d1;font-variant-numeric:tabular-nums}.turn-countdown.urgent{color:#ffbd88}.controls button{border-color:#78c9ee38;background:#13354f}.controls .primary{background:linear-gradient(120deg,#ffca86,#ff9a52)}.controls #hint{color:#9cecff;border-color:#77ddff5c}.turn-message{color:#b2d5eb}.self-play{color:#90bed6}.feed{color:#7d9fb8}.speech-bubble{border-color:#8ce2ff66;background:#123c57;color:#ddf8ff}.social-bar button{background:#102a43;border-color:#75c6ff29}.hand-meta{color:#adc7da}.game{max-width:1180px}.controls{padding-bottom:env(safe-area-inset-bottom,0px)}
@keyframes deal-in{from{opacity:0;transform:translateY(22px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes cards-arrive{from{opacity:.4;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.topbar{height:66px}.home{padding:25px 18px 12px}.home-heading h1{font-size:44px;letter-spacing:-1px}.home-heading .intro{font-size:13px;max-width:230px}.edition-stamp{width:80px;height:80px;font-size:10px;border-radius:16px}.edition-stamp b{font-size:13px}.home-grid{grid-template-columns:1fr;gap:20px}.hero-table{padding:21px 25px 17px}.empty-table{height:225px;margin-top:23px}.start-panel{padding:24px}.home-ribbon button{font-size:12px;border-radius:10px}.home-ribbon span,.home-ribbon small{font-size:11px}.board{border-width:5px}.board-watermark{font-size:44px}.score-strip{padding:9px 11px}.score-strip b{font-size:15px}.turn-message{font-size:12px;min-height:32px;line-height:1.6}.controls{background:#091c31eb;border-top:1px solid #76c9ff25;backdrop-filter:blur(12px)}.controls button{min-height:48px}.turn-banner{padding:10px}.turn-banner small{font-size:11px}.home-heading{gap:8px}.brand b{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Single-screen table: the hand and action buttons always have their own rows. */
body:has(main.game){overflow:hidden;height:100dvh}
#app:has(>main.game){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
#app:has(>main.game)>.topbar{height:50px;min-height:50px;padding:0 18px;flex-shrink:0}
#app:has(>main.game)>.topbar .brand b{font-size:20px}
main.game{flex:1;min-height:0;width:100%;max-width:1180px;position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"score" "turn" "board" "handmeta" "hand" "countdown" "message" "controls" "social";grid-template-rows:32px 40px minmax(90px,1fr) 26px 136px 18px 23px 48px 36px;gap:4px;padding:6px 16px max(6px,env(safe-area-inset-bottom))}
.game>.score-strip{grid-area:score;min-height:0;padding:3px 12px;border-radius:10px}.game>.turn-banner{grid-area:turn;min-height:0;margin:0;padding:5px 12px;border-radius:12px;gap:4px}.game>.turn-banner>b{font-size:14px}.game>.turn-banner small{font-size:11px}.game>.board{grid-area:board;min-height:0;height:auto;max-height:none;margin:18px 35px 9px;border-radius:80px}.game>.hand-meta{grid-area:handmeta;margin:0;font-size:12px;min-width:0}.game>.hand{grid-area:hand;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));grid-template-rows:repeat(2,56px);gap:10px 0;align-content:center;padding:8px 20px 0 0;margin:0;min-height:0}.game>.hand .card{margin:0;width:40px;height:56px;font-size:17px;padding:4px;border-radius:5px}.game>.hand .card .suit{font-size:15px}.game>.hand .card .bottom-suit{font-size:15px;bottom:4px;right:4px}.game>.hand .card.selected{transform:translateY(-7px)}.game>.turn-countdown{grid-area:countdown;line-height:18px;margin:0;min-height:0;font-size:12px}.game>.turn-message{grid-area:message;min-height:0;line-height:22px;margin:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game>.controls{grid-area:controls;position:static;margin:0;min-height:0;padding:0;border:0;background:transparent;gap:10px;flex-wrap:nowrap;align-items:stretch}.game>.controls button{min-height:0;min-width:85px;padding:8px 16px;font-size:15px}.game>.social-bar{grid-area:social;margin:0;gap:10px;min-height:0}.game>.social-bar button{padding:4px 16px;min-height:30px;font-size:12px}.game>.feed{display:none}.game .hand-meta .avatar{width:24px;height:24px;font-size:13px;min-width:24px;margin:0;border-radius:8px}.game .my-identity{min-width:0;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game .hand-meta .link{padding:3px 0;font-size:11px}.game .opponent .avatar{width:30px;height:30px;font-size:14px;border-radius:10px}.game .opponent{font-size:10px;gap:2px}.game .opponent.top{top:-18px}.game .opponent.left{left:-35px;top:30%}.game .opponent.right{right:-35px;top:30%}.game .opponent b{max-width:82px}.game .opponent small{font-size:9px;padding:2px 4px}.game .acting-label{font-size:9px;padding:0}.game .seat-action{font-size:9px}.game .mini-cards{max-width:95px;gap:1px}.game .mini-cards i{font-size:9px;min-width:15px;padding:2px}.game .seat-action strong{font-size:9px}.game .trick{inset:32% 17% 15%;gap:5px}.game .trick-label{font-size:10px;padding:3px 8px}.game .played .card{width:39px;height:55px;font-size:17px;padding:3px}.game .played .card .suit{font-size:14px}.game .played .card .bottom-suit{font-size:15px}.game .played .card+.card{margin-left:-12px}.game .self-play{bottom:4px;font-size:9px}.game .self-play>span,.game .self-play>small{font-size:9px}.game>.tribute-panel{grid-area:board;overflow:auto;min-height:0;margin:0;padding:12px}.game>.tribute-panel h2{font-size:18px}.game>.tribute-panel p{font-size:12px;margin:5px 0}.game>.tribute-record{grid-area:board;align-self:end;justify-self:center;z-index:6;margin:0 0 2px;font-size:10px;background:#0b223be8;border-radius:8px;max-width:95%;max-height:100%;overflow:auto;padding:2px 8px}.game>.tribute-record[open]{padding:10px}.game>.notice{grid-area:board;align-self:start;z-index:8;background:#142b43f5;margin:0;font-size:12px}
@media(min-width:701px) and (min-height:700px){main.game{grid-template-rows:34px 42px minmax(130px,1fr) 28px 152px 20px 24px 50px 36px;max-width:1100px;padding:8px 24px}.game>.hand{grid-template-rows:repeat(2,63px);max-width:800px;width:100%;justify-self:center}.game>.hand .card{width:49px;height:65px;font-size:21px}.game>.hand .card .suit{font-size:18px}.game>.board{margin-left:75px;margin-right:75px}.game .opponent .avatar{width:40px;height:40px}.game .opponent{font-size:13px}.game .opponent small{font-size:11px}.game .mini-cards i{font-size:11px;min-width:18px}.game .trick{inset:30% 20% 15%}}
@media(max-height:700px) and (orientation:portrait){#app:has(>main.game)>.topbar{height:44px;min-height:44px}.game>.board{margin-top:16px;margin-bottom:6px}main.game{grid-template-rows:26px 32px minmax(70px,1fr) 22px 112px 14px 18px 42px 30px;gap:3px;padding-top:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}.game>.hand{grid-template-rows:repeat(2,48px);gap:7px 0;padding-top:6px}.game>.hand .card{height:48px;width:35px;font-size:15px}.game>.hand .card .suit{font-size:13px}.game>.hand .card .bottom-suit{font-size:13px}.game>.controls button{font-size:14px;padding:6px 15px}.game>.turn-banner>b{font-size:12px}.game>.turn-banner small{font-size:10px}.game>.turn-message{font-size:10px;line-height:18px}.game>.turn-countdown{font-size:10px;line-height:14px}.game .score-strip b{font-size:13px}.game .board-watermark{font-size:34px}.game .board-watermark span{display:none}.game .played .card{height:44px;width:32px;font-size:15px}.game .played .card .bottom-suit{display:none}.game .opponent .avatar{width:23px;height:23px;font-size:12px}.game .opponent.top .seat-action{max-width:120px}.game .self-play>small{display:none}}
@media(max-height:540px) and (orientation:landscape){#app:has(>main.game)>.topbar{height:36px;min-height:36px;padding:0 16px}#app:has(>main.game)>.topbar .brand b{font-size:17px}.topbar .status{font-size:11px}main.game{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"score turn" "board handmeta" "board hand" "board message" "board controls" "board social";grid-template-rows:28px 24px minmax(80px,1fr) 18px 40px 28px;column-gap:16px;row-gap:3px;padding:4px max(12px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));max-width:none}.game>.board{margin:20px 30px 10px;border-radius:80px}.game>.turn-banner{padding:3px 8px;display:flex;align-items:center;justify-content:center;gap:5px}.game>.turn-banner b{font-size:12px}.game>.turn-banner small{display:none}.game>.hand{grid-template-rows:repeat(2,49px);gap:8px 0;padding-top:6px;padding-right:16px}.game>.hand .card{height:49px;width:34px;font-size:15px}.game>.hand .card .suit{font-size:13px}.game>.hand .card .bottom-suit{font-size:14px}.game>.turn-countdown{position:absolute;right:max(15px,env(safe-area-inset-right));top:36px;font-size:0;line-height:20px;max-width:110px}.game>.turn-countdown::after{content:attr(data-short);font-size:11px;color:#9feaff}.game>.hand-meta{padding-right:85px;font-size:11px}.game .hand-meta .link{font-size:0}.game .hand-meta .link::after{content:'排序';font-size:10px}.game .hand-meta .badge{font-size:10px;padding:3px 5px}.game>.controls button{font-size:14px;min-width:65px;padding:5px 12px}.game>.turn-message{font-size:10px;line-height:18px}.game>.social-bar button{min-height:26px;font-size:11px;padding:2px 12px}.game .board-watermark{font-size:40px}.game>.score-strip{font-size:11px}.game>.score-strip b{font-size:13px}.game .self-play{bottom:6px}.game .trick{inset:34% 19% 17%}.game>.tribute-panel{margin-top:0}.game .opponent.top{top:-15px}}
.game>.turn-banner{display:grid;grid-template-columns:auto auto;grid-template-rows:18px 13px;justify-content:center;align-content:center;align-items:center;column-gap:6px;row-gap:0;padding:3px 8px;line-height:1}.game>.turn-banner>span{font-size:17px}.game>.turn-banner>b{line-height:18px}.game>.turn-banner small{grid-column:1 / -1;line-height:13px;margin:0;text-align:center}
#app:has(>main.game)>.topbar #home-link{padding:0;min-height:0;height:auto;background:transparent;border:0;box-shadow:none;border-radius:0}
#app:has(>main.game)>.topbar #table-settings{min-height:28px;padding:4px 10px;font-size:12px}
@media(max-height:700px) and (orientation:portrait){.game>.turn-banner{grid-template-rows:15px 11px;padding:2px 6px}.game>.turn-banner>b{line-height:15px}.game>.turn-banner>span{font-size:14px}.game>.turn-banner small{line-height:11px}}
@media(max-height:540px) and (orientation:landscape){.game>.turn-banner{display:flex;flex-direction:row;padding:2px 8px}.game>.hand{grid-template-rows:repeat(2,clamp(44px,16dvh,65px));gap:10px 0}.game>.hand .card{width:clamp(34px,4.8vw,45px);height:clamp(44px,16dvh,65px);font-size:clamp(15px,2.1vw,20px)}.game>.hand .card .suit{font-size:clamp(13px,1.9vw,18px)}.game>.hand .card .bottom-suit{font-size:clamp(14px,1.8vw,18px)}.game .played .card{height:58px;width:40px}}

/* Shared type system: one UI family, predictable headings, readable form controls. */
:root{--font-ui:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;--font-card:Georgia,"Times New Roman",var(--font-ui);--type-body:14px;--type-label:13px;--type-small:12px;--type-heading:24px}
body{font-family:var(--font-ui);font-size:var(--type-body);line-height:1.5;-webkit-font-smoothing:antialiased;font-kerning:normal}
button,input,select,textarea{font-family:var(--font-ui)}
h1,h2,h3{font-family:var(--font-ui);line-height:1.3;letter-spacing:0;text-wrap:balance}
p,li{line-height:1.7}label{font-size:var(--type-label);line-height:1.5}
dialog h2{font-size:var(--type-heading);line-height:1.35;margin:0 0 16px}dialog h3{font-size:18px;margin:20px 0 10px}dialog p{font-size:var(--type-body);line-height:1.7}
input,textarea,select{font-size:16px;line-height:1.5}button{line-height:1.4}
.brand b{font-family:var(--font-ui);line-height:1.2;white-space:nowrap}.badge{font-family:var(--font-ui);font-weight:600;line-height:1.35}
.live-event .event-page h1{font-family:var(--font-ui);font-size:clamp(30px,5vw,44px);font-weight:750}.live-event .intro,.live-event .notice{font-size:14px}.live-event .topbar .brand{white-space:nowrap}

input[type=file]::file-selector-button{font:inherit;font-size:14px;color:#eaf0f8;background:#26364d;border:1px solid #9cafd64d;border-radius:7px;padding:8px 12px;margin-right:10px;cursor:pointer}

.telemetry-choice{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-size:13px!important;font-weight:500!important}.telemetry-choice input{width:18px!important;height:18px!important;margin:0;flex:none}.telemetry-details{font-size:12px;text-align:left;margin:12px 0;max-width:680px}.telemetry-details .settings-note{line-height:1.7;color:#b3c3d9}.telemetry-settings a{color:#c8d8ef;text-decoration:underline}

.telemetry-summary{flex-basis:100%;font-size:11px;line-height:1.7;color:#a8b7ca}.telemetry-summary .link{font-size:11px;padding:0 4px}
