:root{--ink:#243b35;--green:#174b3f;--green2:#236855;--muted:#687972;--bg:#f6f5f0;--line:#e1e6dd;--soft:#edf3ec;--cream:#f5eddc;--gold:#aa8040;--red:#a64a3f;--white:#fffefa;--shadow:0 12px 42px #193b2b09;--r:22px;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.45}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #c5944b}button{border:0}a{color:var(--green)}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.025em}svg{display:inline-block;flex:none;vertical-align:middle}small{font-size:12px}input,select,textarea{border:1px solid var(--line);background:white;border-radius:12px;min-height:46px;padding:10px 12px;max-width:100%;font-size:16px}input[type=number]{width:100px}input[type=checkbox]{min-height:20px;width:20px;accent-color:var(--green)}textarea{width:100%;resize:vertical}summary{cursor:pointer;padding:16px 0;font-weight:600;font-size:14px}details[open]>summary{margin-bottom:8px}label{font-size:14px}button{background:none}.shell{max-width:1200px;margin:auto;padding:0 36px}.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-align:left;padding:0}.logo{display:grid;place-items:center;width:42px;height:48px;border-radius:11px;background:var(--green);color:var(--cream);font-size:25px;font-family:serif;box-shadow:0 3px 0 #b8c7bc}.brand strong{font-size:21px;letter-spacing:1px;display:block}.brand small{font-size:10px;letter-spacing:2px;color:var(--muted);display:block;margin-top:4px}.top-actions{display:flex;gap:10px;align-items:center}.save-state{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center}.dot{width:6px;height:6px;border-radius:50%;background:#79986e}.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--white);flex-shrink:0}.text-btn{min-height:44px;font-size:13px;color:var(--muted);padding:8px 10px;border-radius:10px}.text-btn:hover{background:var(--soft)}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2.4px;font-weight:600}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:30px;padding:6px 11px;font-size:12px;background:var(--white)}.pill.green{background:var(--soft);border-color:#d7e3d7;color:var(--green)}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.center{text-align:center}.hidden{display:none!important}.intro-grid{display:grid;grid-template-columns:1fr 1.18fr;gap:26px;align-items:stretch;margin-top:16px}.hero{position:relative;overflow:hidden;min-height:594px;background:var(--green);border-radius:28px;padding:43px;color:#fbf7ed;display:flex;flex-direction:column}.hero .eyebrow{color:#b6c6af}.hero h1{font-size:43px;font-weight:600;line-height:1.4;margin:26px 0 16px}.hero p{font-size:14px;line-height:1.9;color:#c4d3c5;max-width:275px}.hero-note{margin-top:auto;padding-top:22px;display:flex;align-items:center;gap:10px;font-size:12px;color:#c6d6c7}.tile-art{height:215px;position:relative;flex:1;min-height:180px;margin-top:10px}.tile-orbit{position:absolute;width:310px;height:310px;left:10px;top:10px;border:1px solid #ffffff13;border-radius:50%}.tile-orbit:after{content:"";position:absolute;inset:35px;border:1px solid #ffffff13;border-radius:50%}.mahjong{position:absolute;display:flex;align-items:center;justify-content:center;width:88px;height:120px;background:linear-gradient(145deg,#fffdf5,#e4e1d4);border-radius:14px;color:var(--green);box-shadow:0 7px 0 #93b1a0,0 14px 25px #08271a48;border:1px solid #fff8;top:60px;left:125px;font-family:serif;font-size:54px;font-weight:bold;transform:rotate(8deg)}.mahjong.a{left:28px;top:82px;transform:rotate(-16deg);font-size:44px}.mahjong.c{left:214px;top:82px;transform:rotate(22deg);font-size:24px}.tile-dots{display:grid;grid-template-columns:repeat(2,16px);gap:17px}.tile-dots i{width:16px;height:16px;border-radius:50%;border:4px solid var(--green);box-shadow:inset 0 0 0 2px #ece9de;background:var(--green)}.setup{background:var(--white);border:1px solid var(--line);border-radius:28px;padding:32px;box-shadow:var(--shadow)}.setup h2{font-size:24px;margin:6px 0 8px}.setup>.muted{font-size:13px;line-height:1.6}.field-label{display:flex;justify-content:space-between;align-items:center;margin:23px 0 10px;font-size:13px;font-weight:600}.field-label .muted{font-weight:400;font-size:11px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-card{position:relative;text-align:left;border:1.5px solid var(--line);border-radius:16px;padding:17px 16px;background:#fff;min-height:104px;transition:background .15s,border-color .15s}.mode-card b{display:block;font-size:16px;margin:9px 0 5px}.mode-card small{font-size:11px;color:var(--muted);display:block;line-height:1.5}.mode-card.selected{background:var(--soft);border-color:var(--green)}.mode-card .check{position:absolute;right:13px;top:13px;color:var(--green)}.segmented{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:13px;background:#f5f6f1}.segmented>button{flex:1;min-height:44px;border-radius:9px;font-size:14px;white-space:nowrap;padding:9px 8px}.segmented>button.selected{background:var(--white);box-shadow:0 1px 5px #12332414;color:var(--green);font-weight:600}.seg-desc{color:var(--muted);font-size:12px;line-height:1.6;margin:8px 0 0;min-height:20px}.rule-strip{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px dashed #cdd9c9;border-radius:13px;padding:13px 14px;margin:19px 0 15px;background:#fafbf5;text-align:left;width:100%;min-height:48px;font-size:12px;line-height:1.7}.rule-strip strong{font-weight:600}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:12px 19px;border-radius:13px;font-size:14px;font-weight:600;border:1px solid transparent;transition:background .12s,transform .12s}.btn:active:not(:disabled){transform:translateY(1px)}.btn.primary{background:var(--green);color:#fff}.btn.primary:hover{background:var(--green2)}.btn.secondary{background:var(--soft);color:var(--green);border-color:#dbe4d7}.btn.outline{background:var(--white);border-color:var(--line)}.btn.danger{background:#faeae5;color:var(--red)}.full{width:100%}.home-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.home-bottom p{font-size:11px;color:var(--muted);line-height:1.5}.footer{padding:26px 0 30px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#849087;gap:12px}.features{display:flex;gap:24px}.features span{display:flex;align-items:center;gap:6px}.warning{padding:12px 16px;border-radius:12px;background:#fff1df;color:#8b6638;font-size:12px;line-height:1.7}.error{padding:12px 16px;border-radius:12px;background:#faeeea;color:#a04238;font-size:13px;line-height:1.6}.global-error{margin:4px 0 15px}.demo-bar{background:#eee8d8;color:#755a31;border-radius:12px;padding:10px 16px;margin:0 0 18px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.board-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:15px 0 22px}.board-heading h1{font-size:29px;margin-bottom:9px}.board-heading p{font-size:12px;color:var(--muted);line-height:1.6}.board-layout{display:grid;grid-template-columns:355px 1fr;gap:24px;align-items:start}.score-panel{background:var(--green);color:#f4f8ed;padding:25px;border-radius:24px;position:sticky;top:20px;overflow:hidden}.score-panel .muted{color:#b4ccbb}.score-title{font-size:14px;display:flex;align-items:center;justify-content:space-between}.score-panel .text-btn{color:#d0dbcd}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:18px 0}.player-card{background:#ffffff0b;border:1px solid #ffffff24;border-radius:15px;padding:15px 14px;text-align:left;min-width:0;color:inherit}.player-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.player-head b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.seat-icon{width:23px;height:25px;display:grid;place-items:center;border-radius:5px;background:#fff1;font-family:serif;font-size:13px;flex-shrink:0}.player-value{font-size:31px;font-weight:500;margin:10px 0 6px;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.player-foot{font-size:11px;color:#bed0bf;line-height:1.8}.won-tag{font-size:10px;border-radius:5px;padding:2px 5px;background:#d9ddb025;color:#dce5ab}.score-meta{border-top:1px solid #ffffff20;padding-top:17px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#bed0bf}.score-help{font-size:11px;line-height:1.8;color:#adc4b4;margin-top:14px}.panel{background:var(--white);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.log-panel{overflow:hidden}.panel-head{padding:23px 25px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{font-size:18px}.panel-head p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.6}.step-track{display:flex;gap:8px;padding:0 25px 20px;font-size:11px;border-bottom:1px solid var(--line)}.step{display:flex;gap:6px;align-items:center;color:#8c9990;flex:1}.step.active{color:var(--green);font-weight:600}.step-num{width:19px;height:19px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-size:10px}.step.active .step-num{background:var(--green);color:white}.empty{padding:42px 25px 34px;text-align:center}.empty-icon{width:62px;height:66px;margin:0 auto 18px;display:grid;place-items:center;border:1px solid var(--line);border-radius:15px;background:#f4f5ed;color:var(--green);box-shadow:0 4px 0 #e2e7db}.empty h3{font-size:18px;font-weight:600}.empty p{font-size:13px;line-height:1.9;max-width:330px;margin:11px auto 0;color:var(--muted)}.timeline{padding:8px 25px 0}.event{position:relative;padding:18px 0;border-bottom:1px solid var(--line);display:flex;gap:12px}.event:last-child{border-bottom:0}.event-index{font-size:10px;color:#84958a;width:24px;height:26px;display:grid;place-items:center;flex-shrink:0;border:1px solid #e1e7dc;border-radius:7px;margin-top:2px}.event-title{font-size:14px;font-weight:600;line-height:1.65;word-break:break-word}.event-meta{font-size:11px;color:var(--muted);line-height:1.8;margin-top:4px}.event-amount{font-size:12px;margin-top:7px;display:flex;gap:10px;flex-wrap:wrap;color:var(--green)}.event-action{width:34px;min-height:38px;align-self:flex-start;display:grid;place-items:center;color:#849589;border-radius:10px}.event-action:hover{background:var(--soft)}.pending-label{color:#a2793c}.record-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px 25px}.minor-actions{display:flex;justify-content:space-between;align-items:center;padding:0 17px 12px;gap:8px}.finish-bar{padding:18px 25px;border-top:1px solid var(--line);background:#f9faf5}.finish-bar p{font-size:11px;color:var(--muted);margin:0 0 12px;line-height:1.7}.hint-card{display:flex;gap:12px;padding:18px 20px;margin-top:16px;border:1px solid var(--line);border-radius:17px;background:#f0f2e9}.hint-card p{font-size:12px;line-height:1.8;color:var(--muted)}.hint-card b{display:block;color:var(--ink);margin-bottom:3px}.sheet{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:560px;max-width:100%;background:var(--white);color:var(--ink);border:0;padding:0;box-shadow:-15px 0 75px #10291c1f;overflow:hidden}.sheet::backdrop{background:#122a224d;backdrop-filter:blur(3px)}.sheet-inner{display:flex;flex-direction:column;height:100%}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 26px 18px;border-bottom:1px solid var(--line);flex-shrink:0}.sheet-header h2{font-size:22px}.sheet-subtitle{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.6}.sheet-body{padding:0 26px 24px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-width:thin}.sheet-footer{padding:15px 26px max(19px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--white);flex-shrink:0;box-shadow:0 -6px 25px #233c2605}.section-label{font-size:13px;font-weight:600;margin:22px 0 11px;display:flex;justify-content:space-between;align-items:center;gap:8px}.section-label small{font-weight:400;color:var(--muted)}.choices{display:flex;gap:8px;flex-wrap:wrap}.choice{min-height:46px;border:1px solid var(--line);border-radius:11px;padding:10px 14px;background:#fff;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.4}.choice.selected{background:var(--soft);color:var(--green);border-color:#7e9c85;font-weight:600}.choices.players>.choice{flex:1;min-width:70px;word-break:break-all;padding:10px 8px}.choices.patterns>.choice{flex:1 0 calc(33.33% - 8px)}.choices.equal>.choice{flex:1}.subtle{font-size:12px;color:var(--muted);line-height:1.8;margin-top:9px}.preview{background:#f0f5ed;border-radius:13px;padding:13px 15px;margin-bottom:13px;font-size:12px;color:var(--green);line-height:1.7}.preview .preview-scores{display:flex;gap:10px;flex-wrap:wrap;font-size:14px;font-weight:600;margin-bottom:3px}.preview .detail{font-size:11px;color:#6f816e;line-height:1.6;margin-top:6px}.preview.pending{background:#faf0df;color:#94703d}.divider{border:0;border-top:1px solid var(--line);margin:20px 0}.inline-note{background:var(--cream);border-radius:10px;padding:12px;font-size:11px;line-height:1.7;color:#83673d}.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden;width:max-content}.stepper button{width:46px;height:44px;background:var(--soft)}.stepper strong{display:block;min-width:55px;text-align:center;font-size:15px}.rule-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.rule-row small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:5px;max-width:280px}.rule-row select{font-size:13px;min-height:42px;padding:6px 8px;max-width:200px}.names-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.names-grid input{width:100%;margin-top:8px}.names-grid label{font-size:12px;color:var(--muted)}.result-hero{text-align:center;padding:32px 20px 24px}.result-check{width:55px;height:55px;display:grid;place-items:center;border-radius:50%;margin:0 auto 16px;background:var(--soft);color:var(--green)}.result-hero h2{font-size:27px}.result-hero p{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.7}.result-list{padding:0 25px}.result-player{padding:15px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.result-player .amount{font-size:23px;font-weight:500;letter-spacing:-.6px}.positive{color:var(--green)}.negative{color:var(--red)}.settle-list{margin:18px 25px;background:var(--soft);border-radius:14px;padding:17px}.settle-list h3{font-size:13px;margin-bottom:12px}.settle-line{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:10px;padding:8px 0;border-top:1px solid #d9e3d6}.settle-line:first-of-type{border-top:0}.result-controls{padding:3px 25px 22px;display:flex;gap:10px}.result-controls>.btn{flex:1}.draw-player{margin:16px 0 0;padding:17px;border:1px solid var(--line);border-radius:15px}.draw-player .choices{margin-top:12px}.draw-player .choice{font-size:12px;min-height:43px;padding:9px 10px}.draw-player .choices.equal>.choice{min-width:65px}.draw-player .section-label{margin-top:15px;font-size:12px}.draw-player .subtle{font-size:11px}.order-controls{display:flex;gap:6px;margin-top:9px}.order-controls .text-btn{min-height:35px;border:1px solid var(--line);font-size:11px}.history-card{border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:14px;width:100%;text-align:left;background:#fff}.history-card .row{margin-bottom:10px}.history-values{display:flex;flex-wrap:wrap;gap:11px;font-size:12px}.toast{position:fixed;bottom:max(28px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,12px);max-width:calc(100vw - 32px);background:#193c31;color:white;border-radius:14px;box-shadow:0 8px 35px #173d3533;padding:13px 20px;font-size:13px;line-height:1.7;z-index:99;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.source-links{font-size:12px;line-height:2;margin-top:15px}.source-links a{display:block}.help h3{font-size:15px;margin:24px 0 9px}.help p{font-size:13px;line-height:1.9;color:var(--muted)}.badge-round{font-size:11px;border:1px solid #d9e4d5;padding:5px 9px;border-radius:8px;background:var(--soft);color:var(--green)}.name-tabs{border-bottom:1px solid var(--line);padding:8px 0 12px;display:flex;gap:8px;flex-wrap:wrap}.mob-only{display:none}.statline{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:12px;padding:18px 0}.list-note{font-size:11px;color:var(--muted);line-height:1.8;padding:0 25px 18px}
@media(min-width:1400px){.intro-grid{margin-top:40px}.hero{min-height:620px}.topbar{height:110px}}
@media(max-width:950px){.shell{padding:0 24px}.intro-grid{gap:20px;grid-template-columns:.85fr 1.15fr}.hero{padding:32px 26px}.hero h1{font-size:34px}.mahjong{left:85px}.mahjong.a{left:2px}.mahjong.c{left:170px}.tile-orbit{left:-20px}.setup{padding:26px 24px}.board-layout{grid-template-columns:300px 1fr;gap:18px}.score-panel{padding:20px}.timeline,.panel-head{padding-left:20px;padding-right:20px}.features{gap:12px}}
@media(max-width:720px){.shell{padding:0 18px}.topbar{height:77px}.brand strong{font-size:18px}.brand small{font-size:9px;letter-spacing:1.6px}.logo{width:34px;height:40px;font-size:22px;border-radius:9px}.top-actions{gap:7px}.save-state{font-size:10px}.save-state .desktop-extra{display:none}.icon-btn{width:39px;height:39px}.intro-grid{display:flex;flex-direction:column;margin:7px 0 0;gap:15px}.hero{min-height:190px;padding:25px 24px;border-radius:22px}.hero h1{font-size:29px;line-height:1.4;margin:13px 0 8px;position:relative;z-index:1}.hero h1 br{display:none}.hero p{font-size:12px;max-width:220px;position:relative;z-index:1}.hero .eyebrow{font-size:10px;letter-spacing:1.8px}.hero-note{display:none}.tile-art{position:absolute;right:-20px;bottom:-2px;width:130px;height:150px;min-height:0;margin:0;opacity:.28;transform:scale(.65);transform-origin:right bottom}.tile-orbit{left:-100px;top:-130px}.mahjong{left:-5px;top:5px}.mahjong.a{left:-105px;top:25px}.mahjong.c{left:89px;top:30px}.setup{border-radius:22px;padding:23px 20px}.setup h2{font-size:21px}.mode-card{padding:14px;min-height:104px}.field-label{margin-top:20px}.home-bottom{gap:5px}.home-bottom p{font-size:10px;max-width:175px}.home-bottom .text-btn{white-space:nowrap;padding-right:0;font-size:12px}.footer{padding:22px 2px;display:block;font-size:10px;line-height:1.9;text-align:center}.features{justify-content:center;gap:14px;margin-bottom:9px}.board-heading{margin:10px 0 17px;align-items:flex-start}.board-heading h1{font-size:25px}.board-heading .btn{min-height:43px;padding:9px 12px;font-size:12px}.board-heading p{font-size:11px;max-width:255px}.board-layout{display:flex;flex-direction:column;gap:17px}.score-panel{position:static;width:100%;padding:18px 19px;border-radius:21px}.score-grid{margin:13px 0;gap:9px;grid-template-columns:repeat(2,1fr)}.player-card{padding:12px 13px}.player-value{font-size:29px;margin:7px 0 3px}.player-foot{font-size:10px}.score-meta{padding-top:12px;font-size:11px}.score-help{display:none}.score-title{font-size:13px}.score-title .text-btn{min-height:30px;padding-top:3px;padding-bottom:3px}.board-layout>.stack{width:100%}.panel{border-radius:21px}.panel-head{padding:20px 20px 15px}.panel-head h2{font-size:17px}.step-track{padding:0 20px 18px;gap:5px;font-size:10px}.timeline{padding:2px 19px 0}.record-actions{padding:15px 18px}.record-actions .btn{min-height:51px}.finish-bar{padding:17px 19px}.hint-card{margin-top:0;padding:16px}.empty{padding:26px 19px}.empty p{font-size:12px}.event{gap:9px;padding:15px 0}.event-title{font-size:13px}.sheet{inset:auto 0 0;margin:0;width:100%;height:auto;max-height:94dvh;border-radius:24px 24px 0 0}.sheet-inner{max-height:94dvh;height:auto}.sheet-header{padding:18px 21px 14px}.sheet-header h2{font-size:20px}.sheet-body{padding:0 20px 20px;max-height:calc(94dvh - 155px)}.sheet-footer{padding:12px 20px max(16px,env(safe-area-inset-bottom))}.section-label{margin-top:20px}.choice{font-size:13px;padding:10px 12px}.sheet .preview{max-height:145px;overflow:auto}.sheet-subtitle{font-size:11px}.result-hero{padding:26px 20px 21px}.result-list{padding:0 20px}.result-controls{padding:3px 20px 20px}.settle-list{margin:15px 20px}.mob-only{display:block}.board-shell{padding-bottom:12px}.demo-bar{font-size:11px;padding:7px 12px}.result-player .amount{font-size:22px}}
@media(max-width:360px){.shell{padding:0 12px}.hero h1{font-size:26px}.hero{padding:22px 20px}.setup{padding:21px 16px}.topbar .save-state{display:none}.hero p{max-width:205px}.choice{padding:10px}.sheet-body{padding:0 16px 16px}.sheet-footer{padding-left:16px;padding-right:16px}.player-value{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media print{.top-actions,.record-actions,.minor-actions,.finish-bar,.result-controls,.hint-card,.footer,dialog,.toast,.board-heading>.btn{display:none!important}.shell{padding:0}.topbar{height:65px}.board-layout{display:block}.score-panel{position:static;background:#fff;color:#000;border:1px solid #ccc;margin-bottom:20px}.score-grid{grid-template-columns:repeat(4,1fr)}.score-panel .muted,.player-foot,.score-meta{color:#444}.player-card{border-color:#ccc}.panel{box-shadow:none}.score-help{display:none}}

.tile-wan{display:flex;flex-direction:column;align-items:center;font-size:22px;line-height:1.3;color:#9a4c3e}.tile-wan b{font-size:34px}.mobile-quickbar{display:none}.position-detail{margin:8px 0 0;border-bottom:1px solid var(--line)}.position-detail summary{font-size:11px;font-weight:400;line-height:1.8;padding:12px 0}.position-detail select{width:100%;margin:0 0 15px}.position-detail[open]>summary{margin-bottom:0}
@media(max-width:720px){.mobile-quickbar{position:fixed;left:0;right:0;bottom:0;z-index:8;display:grid;grid-template-columns:1.3fr 1.3fr .85fr;gap:9px;padding:12px 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffefaf5;backdrop-filter:blur(8px);box-shadow:0 -6px 24px #203c1c06}.mobile-quickbar .btn{padding:12px 9px;font-size:13px;min-height:49px}.board-shell:has(.mobile-quickbar){padding-bottom:90px}.record-actions{display:none}}
@media print{.mobile-quickbar{display:none!important}}

.hand-addons{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0 6px}.hand-addons .stepper button{width:40px}.hand-addons .stepper strong{min-width:38px}.choices.compact-patterns>.choice{flex:1 0 calc(25% - 8px);padding:10px 6px;min-width:60px;max-width:calc(50% - 4px)}.preview-explain summary{font-size:11px;padding:2px 0;font-weight:400;margin:0}.preview-explain[open]>summary{margin-bottom:0}.section-label .text-btn{min-height:30px;font-size:11px;padding:6px 0 6px 8px}
@media(max-width:720px){.section-label{margin-top:16px}.hand-addons{gap:8px}.hand-addons>.choice{min-width:95px}.hand-addons .row{gap:8px}}
