:root{color-scheme:light;--ink:#1c3155;--muted:#8191aa;--blue:#2865ee;--border:#dfe7f4;--red:#df6171;--font:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif}*{box-sizing:border-box}body{margin:0;font:14px/1.7 var(--font);color:var(--ink);background:#f3f6fc}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9dbdff;outline-offset:3px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}button{border:0}input,select{width:100%;min-height:47px;border:1px solid #d6e0f0;border-radius:9px;background:white;color:#263f65;padding:11px 14px;outline:none}input:focus,select:focus{border-color:#6597f6;box-shadow:0 0 0 3px #ecf2ff}input::placeholder{color:#a3aec0}input#room-input{text-transform:uppercase;letter-spacing:1px}h1,h2,h3,p{margin:0}button,a{transition:background .15s,transform .15s,border-color .15s}button:active{transform:translateY(1px)}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:13px;border-radius:9px;min-height:42px;padding:10px 19px;font-weight:600}.primary{background:var(--blue);color:white;box-shadow:0 4px 12px #2563eb22}.primary:hover{background:#1e55d3}.secondary{background:white;border:1px solid #d3def0;color:#4774b5}.secondary:hover{background:#f1f6ff}.quiet,.link-button,.copy-btn,.clear-btn{background:transparent;color:#7087ab;padding:6px 8px;border-radius:6px}.quiet:hover,.link-button:hover,.copy-btn:hover,.clear-btn:hover{background:#e7effe;color:#2c65c8}.eyebrow{font-size:10px;letter-spacing:2px;color:#8a9dbd;font-weight:600}.site-header{max-width:1216px;margin:auto;padding:24px 28px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:650;letter-spacing:.8px}.brand-mark{width:41px;height:45px;display:grid;place-items:center;border-radius:12px;background:#2d6bf0;color:#fff;font-size:30px;box-shadow:0 5px 13px #2865ee20}.brand small{display:block;font-size:9px;font-weight:400;color:#91a2be;letter-spacing:2px;line-height:1.5}.header-actions{display:flex;align-items:center;gap:22px;font-size:12px}.friends-badge{background:#e7effe;border:1px solid #d3e1fb;color:#6482b4;padding:5px 12px;border-radius:20px}.hero{padding:49px 0 32px}.hero h1{font-size:56px;letter-spacing:-1px;line-height:1.25;margin:15px 0 18px;font-weight:700}.hero h1 br{display:none}.hero h1 span{color:var(--blue)}.hero p{color:#8698b4;line-height:1.9;font-size:15px}.hero p br{display:none}.hero-tags{display:flex;gap:24px;margin-top:22px;font-size:11px;color:#7e96ba}.hero-tags span:before{content:'✓';color:#6c97e7;margin-right:6px}.game-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;position:relative;border:1px solid #dce6f5;background:#fff;border-radius:17px;padding:28px 25px;min-width:0;overflow:hidden;box-shadow:0 3px 15px #2d598207}.game-choice:hover{border-color:#94b6f2;transform:translateY(-3px)}.game-choice.selected{background:#eef4ff;border-color:#7fa8f3;box-shadow:0 0 0 3px #e8f0ff}.game-number{font-size:9px;letter-spacing:1.6px;color:#8b9fbd}.mini-hand{height:148px;display:flex;align-items:center;justify-content:center;align-self:center;padding:20px 0 12px;width:100%}.mini-hand i{font-style:normal;background:white;border:1px solid #d6e3f8;color:#2c548d;border-radius:9px;width:68px;height:95px;padding:8px 12px;font:bold 26px Georgia,serif;box-shadow:0 8px 15px #34548914;transform:rotate(-16deg)}.mini-hand i+ i{margin-left:-24px;transform:translateY(-9px);color:#db6679}.mini-hand i:last-child{transform:rotate(16deg);color:#2b548e}.mini-hand small{display:block;font:25px Georgia;margin-top:5px}.zjh-choice .mini-hand i:first-child,.zjh-choice .mini-hand i:last-child{color:#dc6f7f}.game-name{font-size:26px;font-weight:650;letter-spacing:1px;display:flex;align-items:center;gap:13px;margin:8px 0 9px}.game-name b{font-size:10px;letter-spacing:0;font-weight:400;padding:2px 7px;border:1px solid #cbdcf6;color:#7294c5;border-radius:5px;background:#f4f8ff}.game-copy{font-size:12px;color:#899dbb}.game-link{display:flex;justify-content:space-between;align-items:center;width:100%;border-top:1px solid #dce7f8;padding-top:15px;margin-top:27px;color:#477bd0;font-size:12px}.game-link span{font-size:19px}.create-panel{background:#fff;border:1px solid #dbe5f3;border-radius:17px;padding:29px 30px;box-shadow:0 4px 18px #335a8b06}.panel-title h2{font-size:22px;letter-spacing:.2px;margin:5px 0 7px}.panel-title p{font-size:12px;color:#8b9cba}.field{display:block;font-size:12px;color:#6984ad;margin:24px 0 15px}.field input{margin-top:9px}.chosen-game{display:flex;align-items:center;justify-content:space-between;border-radius:8px;background:#f3f7ff;padding:11px 13px;margin-bottom:17px;font-size:11px;color:#7c92b4}.chosen-game strong{font-size:12px;color:#4479ca;font-weight:500}.big{width:100%;justify-content:space-between;min-height:49px;padding:12px 18px}.divider{display:flex;align-items:center;gap:13px;color:#a2aec1;font-size:10px;margin:23px 0 17px}.divider:before,.divider:after{content:'';height:1px;background:#e8edf6;flex:1}.join-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.small-note{font-size:10px;color:#a0aec4;margin-top:16px}.howto{display:flex;justify-content:center;align-items:center;gap:30px;margin:37px 0 25px;font-size:11px;color:#8c9fbf}.howto>div{display:flex;align-items:center;gap:10px}.howto b{width:25px;height:25px;display:grid;place-items:center;background:#e7effe;border:1px solid #d9e5fa;border-radius:50%;font-size:10px;color:#6e90c4}.step-arrow{color:#bccbe2}.site-footer{max-width:1160px;margin:35px auto 0;border-top:1px solid #dee7f5;padding:21px 0 29px;font-size:10px;color:#91a5c3;display:flex;align-items:center;justify-content:space-between}.site-footer i{font-style:normal;color:#bdcbe0;margin:0 7px}.site-footer a:hover{color:#3777dd}.room-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0 23px}.room-toolbar h1{font-size:27px;font-weight:600;letter-spacing:.5px;margin-top:5px}.room-toolbar h1>span{color:#2c6be9;letter-spacing:3px}.copy-btn{font-size:10px;vertical-align:middle;letter-spacing:0;margin-left:13px;border:1px solid #d3e0f4;padding:5px 9px;background:white}.room-tools{display:flex;align-items:center;gap:12px;font-size:11px}.sync-state{color:#6c95b7;font-size:10px}.sync-state:before{content:'';display:inline-block;background:#61b59e;width:6px;height:6px;border-radius:50%;margin-right:6px}.sync-state.bad{color:#bb7868}.sync-state.bad:before{background:#d29377}.table-panel{border-radius:19px;background:radial-gradient(ellipse at 50% 30%,#254b80,#17355f 65%);border:1px solid #315386;box-shadow:0 10px 34px #15365b16;color:#edf5ff;min-width:0;overflow:hidden}.table-topline{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #ffffff10;padding:16px 22px;color:#a0b8d9;font-size:10px}.players{display:flex;align-items:stretch;justify-content:center;gap:12px;padding:22px 20px 10px;flex-wrap:wrap}.player-tile{display:flex;align-items:center;gap:10px;border:1px solid #a9cbff24;background:#ffffff08;border-radius:10px;padding:11px 12px;min-width:130px;max-width:210px;flex:1}.player-tile.turn{border-color:#91c3ff;background:#4e83c62b;box-shadow:0 0 0 2px #8ebeff15}.player-tile.out{opacity:.47}.avatar{width:35px;height:38px;flex:none;display:grid;place-items:center;border:1px solid #91b7ec40;background:#a8ceff1c;border-radius:8px;font-size:15px;font-weight:500;color:#d4e9ff}.player-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.player-name small{color:#86a8d5;font-size:9px;margin-left:6px}.player-info{font-size:9px;color:#a0b9d9;margin-top:3px}.player-ready{color:#a5dfce}.role-badge{font-size:9px;color:#a7c6f0;margin-left:5px}.role-badge.landlord{color:#f1d39c}.empty-seat{border-style:dashed;justify-content:center;color:#718fba;font-size:11px;background:transparent;min-height:66px}.table-center{min-height:208px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:18px 15px;gap:12px;text-align:center}.table-center>p{color:#b9d1ed;font-size:14px;line-height:1.8}.bottom-cards{display:flex;align-items:center;justify-content:center;gap:5px}.played-cards{display:flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap}.card{position:relative;background:#fff;border:1px solid #d7e4f5;box-shadow:0 3px 8px #102c4b1c;border-radius:8px;width:62px;height:87px;padding:6px 8px;color:#1c365e;flex:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;user-select:none;font:600 21px/1.1 Georgia,serif}.card.red{color:#d95470}.card .suit{font-size:21px}.card.joker .rank{font:600 12px/1.3 var(--font);writing-mode:vertical-rl;letter-spacing:1px}.card-back{background:repeating-linear-gradient(45deg,#568be0,#568be0 3px,#6495e5 3px,#6495e5 6px);border:3px solid #e4efff;color:#dbeaff;align-items:center;justify-content:center;font-size:26px;box-shadow:inset 0 0 0 1px #ffffff45}.bottom-cards .card,.played-cards .card{width:40px;height:56px;border-radius:5px;font-size:15px;padding:4px 5px}.bottom-cards .card .suit,.played-cards .card .suit{font-size:15px}.bottom-cards .card.joker .rank,.played-cards .card.joker .rank{font-size:8px}.round-result{background:#e3efff0d;border:1px solid #98c5ff39;border-radius:10px;padding:11px 20px;max-width:100%;color:#deedff}.round-result strong{display:block;font-size:18px;font-weight:500}.round-result p{font-size:10px;color:#9fbddd;margin-top:5px}.my-area{padding:18px 20px 22px;background:#10284d75;border-top:1px solid #ffffff0f}.my-caption{display:flex;align-items:center;justify-content:space-between;color:#a3bfdf;font-size:11px;margin-bottom:23px}.my-caption strong{font-weight:400}.clear-btn{font-size:10px;color:#8cafd9}.clear-btn:hover{background:#a5caff18;color:#d5eaff}.hand{display:flex;align-items:center;justify-content:center;padding:3px 8px;min-height:93px}.hand .card{transition:transform .12s,border-color .12s,background .12s;cursor:pointer}.hand .card+.card{margin-left:-32px}.hand .card.selected{transform:translateY(-16px);background:#ebf3ff;border-color:#68a2fb;box-shadow:0 -3px 8px #8bb8fa22}.hand.zjh .card{width:72px;height:98px;margin:0 6px;font-size:25px}.hand.zjh .suit{font-size:27px}.selection-note{text-align:center;font-size:10px;color:#82a6d1;min-height:22px;margin:15px 0 10px}.game-controls{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;min-height:44px}.game-controls .primary{min-height:38px;font-size:12px;padding:8px 19px;background:#5d9bff;color:#122a4b;box-shadow:none}.game-controls .primary:hover{background:#8cb8ff}.game-controls .secondary{background:#ffffff0a;border-color:#8db7ee4d;color:#bdd7f7;min-height:38px;padding:8px 15px;font-size:12px}.game-controls .secondary:hover{background:#ffffff14}.game-controls select{background:#1b3b68;border-color:#668bc366;color:#c5dcfb;width:auto;min-height:38px;font-size:11px;padding:7px 10px}.game-controls .ready-mark{color:#a5ddca;font-size:11px}.room-panel{background:#fff;border:1px solid #dce6f4;border-radius:13px;overflow:hidden}.room-panel .panel-title{padding:17px 18px;border-bottom:1px solid #e6edf6}.room-panel h2{font-size:14px;margin:0}.subtle{font-size:9px;color:#9bafca}.room-log{list-style:none;padding:5px 18px 15px;margin:0;max-height:440px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#cdddf6 transparent}.room-log li{font-size:11px;color:#7d94b6;border-bottom:1px solid #edf2f9;padding:10px 0;overflow-wrap:anywhere}.room-log li:first-child{color:#416da5}.room-log li:last-child{border:0}.room-tips{margin-top:15px;padding:17px 18px}.room-tips h3{font-size:12px;font-weight:500;margin-bottom:7px}.room-tips p{font-size:11px;color:#94a5bf;line-height:1.9}.link-button{font-size:10px;padding:0;margin-top:12px}.message{position:fixed;bottom:27px;left:50%;transform:translateX(-50%);padding:12px 20px;border:1px solid #c3d7f7;background:white;color:#416aab;border-radius:10px;box-shadow:0 6px 25px #244e841c;z-index:100;max-width:90vw;font-size:12px;text-align:center}.message.error{color:#aa5266;border-color:#edc2cc;background:#fff7f9}dialog{border:1px solid #d5e1f3;border-radius:17px;background:#fff;color:#38577e;max-width:640px;width:calc(100% - 30px);padding:24px 27px;max-height:85vh;overflow:auto;box-shadow:0 20px 90px #112d5e30}dialog::backdrop{background:#16305b66;backdrop-filter:blur(4px)}.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #e4ecf8;padding-bottom:15px}.dialog-title h2{font-size:20px}.rules-content h3{font-size:14px;color:#4373b5;margin:22px 0 9px}.rules-content p{font-size:12px;color:#8095b2;margin:9px 0;line-height:1.9}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.game-choice{color:var(--ink)}.player-reveal{display:flex;align-items:center;gap:3px;flex-basis:100%;margin-top:5px}.player-tile:has(.player-reveal){flex-wrap:wrap}.player-reveal .card{width:28px;height:40px;padding:3px 4px;border-radius:4px;font-size:12px}.player-reveal .card .suit{font-size:12px}.player-reveal>small{font-size:9px;color:#a1bddf;margin-left:5px}
