:root{font-family:Inter,"Microsoft YaHei",Arial,sans-serif;color:#17243a;background:#f5f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}.wrap{max-width:1180px;margin:auto;padding:0 24px}.topbar{height:72px;background:#142236;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1132px)/2));border-bottom:1px solid #29384b}.brand{font-size:21px;font-weight:800;letter-spacing:-.05em;display:flex;align-items:center;gap:10px}.brand-mark{background:#ff705c;border-radius:9px;width:32px;height:34px;display:grid;place-items:center;font-size:23px}.brand-light{font-weight:400;color:#b8c3cf}.top-tag{font-size:12px;letter-spacing:.08em;border:1px solid #556579;color:#d2dae4;padding:7px 12px;border-radius:999px}.welcome{padding-top:90px;padding-bottom:80px}.hero{text-align:center;max-width:660px;margin:0 auto 48px}.eyebrow,.section-kicker{font-size:11px;letter-spacing:.18em;color:#ed6a58;font-weight:800}.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.14;letter-spacing:-.07em;margin:18px 0}.hero h1 em,.game-top h1 em{color:#f36d58;font-style:normal}.hero p{color:#687587;font-size:17px;line-height:1.8}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:850px;margin:auto}.panel{background:#fff;border:1px solid #e5e9ee;border-radius:18px;box-shadow:0 9px 35px #17243a09}.entry-card{padding:32px}.entry-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:white;font-size:27px;font-weight:600}.coral{background:#f36d58}.blue{background:#4379a8}.entry-card h2{font-size:23px;letter-spacing:-.04em;margin:22px 0 7px}.entry-card p,.help{color:#738094;font-size:13px;line-height:1.65}.entry-card p{margin:0 0 25px}.entry-card label{display:block;font-size:12px;font-weight:800;color:#35455b;margin:17px 0 8px}.entry-card input{width:100%;height:45px;border:1px solid #d9e0e7;background:#fbfcfd;border-radius:9px;padding:0 13px;outline:none}.entry-card input:focus{border-color:#f36d58;box-shadow:0 0 0 3px #f36d5822}.full{width:100%}.primary,.secondary,.dark{border:0;border-radius:9px;min-height:47px;padding:11px 16px;font-weight:800;margin-top:22px;display:flex;align-items:center;justify-content:space-between}.primary{background:#f36d58;color:white}.primary:hover{background:#df5b48}.secondary{background:#e9f0f6;color:#27547d}.secondary:hover{background:#dbe8f3}.dark{background:#142236;color:white;justify-content:center}.dark:hover{background:#263a55}.game{padding-top:47px}.game-top{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:25px}.game-top h1{font-size:clamp(27px,3.2vw,42px);letter-spacing:-.055em;margin:10px 0 0}.room-box{display:flex;align-items:center;gap:12px;background:white;border:1px solid #e5e9ee;padding:9px 10px 9px 16px;border-radius:10px;white-space:nowrap}.room-box span{font-size:12px;color:#8490a0}.room-box strong{letter-spacing:.12em;font-size:16px}.room-box button{border:0;background:#edf2f6;color:#315373;border-radius:7px;font-size:12px;font-weight:700;padding:9px 11px}.banner{padding:14px 18px;border-radius:10px;background:#e5f5eb;color:#24704c;font-weight:700;margin-bottom:20px}.game-grid{display:grid;grid-template-columns:minmax(300px,.86fr) minmax(390px,1.14fr);gap:20px;align-items:start}.left-col,.right-col{display:grid;gap:20px}.board,.history,.recorder,.host-panel{padding:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-heading h2{margin:5px 0 0;font-size:22px;letter-spacing:-.04em}.pill{border-radius:999px;background:#f1f4f6;padding:7px 11px;color:#647287;font-size:12px;font-weight:800}.rank-row{display:grid;grid-template-columns:32px 1fr auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #edf0f3}.rank-num{font-size:14px;color:#a2adba;font-weight:800}.rank-row:first-child .rank-num{color:#ef715c}.rank-name{font-weight:800}.rank-name small{display:block;font-size:11px;font-weight:500;color:#91a0ae;margin-top:3px}.rank-score{font-size:23px;font-weight:800;letter-spacing:-.04em}.rank-score small{font-size:12px;color:#96a2b0;font-weight:500;margin-left:3px}.history-list:empty:before{content:"结算后，这里会显示每一轮的分数。";font-size:13px;color:#94a0ad}.history-round{border-top:1px solid #edf0f3;padding:14px 0}.history-round:first-child{border-top:0;padding-top:0}.history-round>strong{font-size:13px}.history-entries{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.history-chip{font-size:11px;background:#f2f5f7;border-radius:6px;padding:5px 8px;color:#637386}.history-chip b{color:#22364d}.recorder .help{margin:-6px 0 18px}.group-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:21px 0 11px}.group-head h3{font-size:14px;margin:0}.group-head span{font-size:11px;color:#98a4b0}.number-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.card-btn{border:1px solid #dbe2e9;background:#fff;color:#23364d;min-height:55px;border-radius:9px;font-size:21px;font-weight:800;position:relative}.card-btn.selected{background:#243b56;color:white;border-color:#243b56}.card-btn.special{font-size:15px}.card-btn .small-mark{position:absolute;right:5px;top:4px;font-size:9px}.penalty-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.penalty-grid .card-btn{font-size:16px;min-height:45px;color:#bb6557;background:#fff8f6}.penalty-grid .card-btn.selected{color:white;background:#e47561;border-color:#e47561}.option-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.check-card{display:flex;align-items:flex-start;gap:8px;border:1px solid #dfe6ec;border-radius:9px;padding:11px 9px;cursor:pointer;min-height:67px}.check-card:has(input:checked){border-color:#6487a8;background:#f1f7fb}.check-card input,.bust-row input{accent-color:#f36d58;margin:3px 0}.check-card b{display:block;font-size:12px}.check-card small{display:block;font-size:10px;color:#8a99a8;line-height:1.5;margin-top:3px}.half-card{margin-top:8px;min-height:0;text-align:left;width:100%;background:#fff}.half-card.selected{border-color:#6487a8;background:#f1f7fb}.bust-row{border-top:1px solid #e7ebef;margin-top:22px;padding-top:17px;display:flex;gap:10px;font-size:14px;font-weight:800;cursor:pointer}.bust-row small{font-weight:500;color:#8c98a7}.score-preview{background:#f3f6f8;border-radius:12px;padding:16px 18px;margin-top:21px}.score-preview>div{display:flex;align-items:baseline;justify-content:space-between}.score-preview span{font-size:13px;font-weight:800}.score-preview strong{font-size:36px;line-height:1;color:#e86654}.score-preview p{color:#7b8897;font-size:12px;margin:8px 0 0;line-height:1.5}.fineprint{font-size:11px;color:#9aa5b2;text-align:center;margin:12px 0 0}.host-panel .help{margin-top:0}.host-panel .dark{margin-top:14px}.text-button{border:0;background:none;color:#7d8b9b;font-size:12px;padding:12px 0}.text-button:hover{text-decoration:underline}footer{display:flex;justify-content:space-between;gap:20px;color:#a1aab5;font-size:11px;padding:27px 0 40px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);background:#25364b;color:white;padding:11px 17px;border-radius:9px;box-shadow:0 8px 28px #17243a44;font-size:13px;z-index:10;text-align:center}@media(max-width:850px){.game-grid{grid-template-columns:1fr}.game-top{align-items:start}.room-box{flex-wrap:wrap;justify-content:flex-end}.left-col{order:2}.right-col{order:1}}@media(max-width:600px){.wrap{padding:0 16px}.topbar{padding:0 16px;height:62px}.top-tag{font-size:10px;padding:6px 8px}.welcome{padding-top:55px}.hero{margin-bottom:35px}.hero p{font-size:14px}.entry-grid{grid-template-columns:1fr}.entry-card{padding:25px}.game{padding-top:27px}.game-top{display:block}.game-top h1{margin-bottom:18px}.room-box{justify-content:space-between}.board,.history,.recorder,.host-panel{padding:19px}.option-row{grid-template-columns:1fr}.check-card{min-height:0}.number-grid{gap:5px}.card-btn{min-height:48px;font-size:18px}.penalty-grid{gap:5px}.penalty-grid .card-btn{font-size:14px}footer{display:block}footer button{display:block;margin-top:8px}}
/* v4：手机端卡面与操作区 */
:root{background:#f6f4f0;color:#1f2b3d}
body{background:linear-gradient(180deg,#f4efe8 0,#f7f8fa 320px,#f7f8fa 100%)}
.panel{border-color:#e7e8ec;box-shadow:0 10px 28px #1523350b}
.game{padding-top:28px}
.game-grid{grid-template-columns:minmax(300px,.78fr) minmax(450px,1.22fr)}
.recorder{padding:24px}
.recorder .help{margin:0 0 18px;font-size:13px}
.bust-button{width:100%;border:2px solid #e8b7a9;border-radius:15px;background:linear-gradient(135deg,#fff1ea,#fff8f5);color:#9a3e33;padding:16px;display:flex;align-items:center;gap:13px;text-align:left;box-shadow:0 5px 14px #bb4e3220}
.bust-button .bust-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:12px;background:#e66550;color:white;font-size:27px;font-weight:900}
.bust-button strong{display:block;font-size:16px;line-height:1.2}
.bust-button small{display:block;font-size:11px;line-height:1.4;margin-top:5px;color:#a96b61}
.bust-arrow{margin-left:auto;font-size:20px;font-weight:800}
.bust-button.active{background:linear-gradient(135deg,#d64e44,#aa302e);border-color:#a72d2c;color:white}
.bust-button.active .bust-icon{background:#ffffff30}
.bust-button.active small{color:#ffe0d9}
.group-head{margin:23px 0 10px;align-items:center}
.group-head h3{font-size:16px}
.group-head span{font-size:11px;white-space:nowrap}
.number-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.penalty-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.card-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-width:0;padding:6px 3px 5px;border:2px solid #e5e8ef;border-radius:13px;background:#fff;color:#25344b;transition:transform .12s,border-color .12s,background .12s;box-shadow:0 3px 8px #1422360c}
.card-tile:active{transform:scale(.95)}
.card-tile.selected{border-color:#f06d58;background:#fff1eb;box-shadow:0 0 0 2px #f06d5830}
.card-art{display:block;flex:none;width:72px;height:112px;border-radius:4px;background-repeat:no-repeat;background-size:648px 864px;background-color:#fff9dc}
.card-caption{font-size:12px;font-weight:850;line-height:1.25;white-space:nowrap}
.card-caption b{color:#e56754}
.selected-mark{display:none;position:absolute;right:4px;top:4px;width:19px;height:19px;line-height:19px;border-radius:50%;background:#e76552;color:white;font-size:13px;font-weight:900;text-align:center;box-shadow:0 1px 5px #0004}
.card-tile.selected .selected-mark{display:block}
.card-help{color:#7b8795;font-size:11px;line-height:1.5;margin:10px 0 0}
.recorder.is-bust .number-grid,.recorder.is-bust .penalty-grid{opacity:.45}
.score-preview{background:#f3f6fa;border:1px solid #e7ebf1;margin-top:22px}
.recorder-actions{display:flex;align-items:center;gap:14px;margin-top:16px}
.recorder-actions .primary{flex:1;justify-content:space-between;margin:0}
.recorder-actions .text-button{flex:none;font-size:12px;padding:12px}
.empty-history{color:#8996a5;font-size:13px;line-height:1.6;margin:0}
footer a{color:#69829b;text-decoration:none}
footer a:hover{text-decoration:underline}
@media(max-width:1100px){.number-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.penalty-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.game-grid{display:flex;flex-direction:column}.right-col,.left-col{width:100%;order:unset}.right-col{order:1}.left-col{order:2}.number-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.penalty-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:600px){
  .wrap{padding:0 12px}
  .topbar{height:56px;padding:0 14px}
  .brand{font-size:18px}
  .brand-mark{width:29px;height:31px;font-size:21px}
  .top-tag{font-size:10px}
  .welcome{padding-top:45px}
  .hero h1{font-size:45px}
  .entry-grid{gap:13px}
  .game{padding-top:16px}
  .game-top{margin-bottom:14px}
  .game-top h1{font-size:29px;margin:5px 0 11px}
  .room-box{padding:8px;gap:7px}
  .room-box strong{font-size:13px;letter-spacing:.06em}
  .room-box button{font-size:11px}
  .left-col,.right-col{gap:12px}
  .board,.history,.recorder,.host-panel{padding:16px;border-radius:15px}
  .section-heading{margin-bottom:13px}
  .section-heading h2{font-size:20px}
  .recorder .help{font-size:12px}
  .bust-button{padding:12px}
  .bust-button strong{font-size:14px}
  .number-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .penalty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .card-tile{padding:5px 2px}
  .card-art{width:72px;height:112px}
  .card-caption{font-size:11px}
  .group-head span{font-size:10px}
  .score-preview{padding:14px}
  .score-preview strong{font-size:32px}
  .recorder-actions{gap:5px}
  .recorder-actions .primary{min-height:51px}
  footer{display:flex;flex-direction:column;gap:5px;padding-bottom:24px}
}
@media(max-width:370px){.number-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.card-art{width:72px}}
.card-art{height:118px}
