.practice-dialog.score-dialog{width:460px;max-width:100vw;height:min(890px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #29392e;border-radius:22px;background:#101612;color:#eef3e8;overflow:auto;overscroll-behavior:contain}
.score-dialog>#form>h2,.score-dialog>.secondary{display:none}.score-dialog>#form{height:100%}.score-dialog button{font:inherit;font-weight:500;cursor:pointer}.score-dialog button:disabled{cursor:default;opacity:.28}.score-dialog button:focus-visible{outline:2px solid #C6A56A;outline-offset:3px}.sb-topbar{display:flex;align-items:center;justify-content:space-between;height:60px;padding:0 18px;border-bottom:1px solid #223026;color:#eef3e8}.sb-topbar>button{width:34px;height:34px;background:#202b24;border-radius:50%;font-size:28px;color:#d9e3d7;padding:0;margin:0}.sb-topbar strong{font-size:16px;letter-spacing:2px}.sb-topbar>span{font-size:10px;letter-spacing:1px;color:#738574}
.sb-content{display:flex;flex-direction:column;min-height:calc(100% - 60px);padding:0 16px 15px}.sb-content button{margin:0;border:0;box-shadow:none}.sb-head{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:48px;font-size:11px;color:#7c8e7d}.sb-head>span{display:flex;align-items:center;gap:6px}.sb-status-dot{display:inline-block;width:5px;height:5px;margin-right:5px;background:#C6A56A;border-radius:50%}.sb-content .sb-link{padding:8px 0;background:transparent;color:#9aab94;font-size:11px}.sb-modes{display:flex;gap:4px;background:#1a251e;border:1px solid #243328;border-radius:13px;padding:4px;flex-shrink:0}.sb-modes>button{position:relative;flex:1;min-width:0;background:transparent;color:#809382;padding:14px 0;border-radius:9px;font-size:13px;white-space:nowrap}.sb-modes>button.selected{background:#2b392d;color:#f4f6ed;font-weight:650}.sb-modes>button.selected:after{content:'';position:absolute;bottom:4px;left:40%;right:40%;height:2px;background:#C6A56A;border-radius:2px}
.sb-options{display:flex;align-items:center;justify-content:space-between;padding:16px 0 14px;min-height:64px}.sb-race{display:flex;align-items:center;gap:7px;font-size:12px;color:#899a85}.sb-race>button{width:30px;height:30px;border-radius:8px;background:#1d2a21;color:#b9cbb0;font-size:18px;padding:0}.sb-race>button.sb-race-value{width:auto;min-width:48px;padding:0 10px;font-size:13px;color:#d6e5cb}.sb-count{display:flex;gap:4px}.sb-count>button{padding:8px 17px;border-radius:8px;font-size:12px;background:#1d2a21;color:#7c8f7c}.sb-count>button.selected{color:#C6A56A;background:#2b3620}
.sb-players{position:relative;display:flex;flex:1;gap:38px;min-height:365px}.sb-card{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 10px 12px;border:1px solid #587023;border-radius:24px;color:#E8D5A3;background:linear-gradient(160deg,#283222,#151f18 75%)}.sb-card.sb-tone-1{color:#ff714d;border-color:#79412e;background:linear-gradient(160deg,#36281f,#1b211b 75%)}.sb-card.sb-tone-2{color:#67dcd7;border-color:#315c58;background:linear-gradient(160deg,#243a34,#151f1c 75%)}
.sb-content .sb-minus{position:absolute;left:10px;top:11px;width:29px;height:29px;border-radius:9px;background:#111c15;color:#97a990;font-size:24px;padding:0;line-height:1}.sb-avatar{height:43px;width:43px;display:flex;align-items:center;justify-content:center;border:1px solid currentColor;box-shadow:inset 0 0 0 4px #101612;border-radius:50%;background:#354032;font-size:18px;font-weight:600;margin:0 0 11px;color:inherit}.sb-content .sb-name{display:block;flex-shrink:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;color:#f0f2e8;padding:3px 0;font-size:15px;font-weight:650}.sb-name>small{font-size:11px;color:#85917c;margin-left:5px}.sb-player-note{font-size:10px;color:#9ca78e;min-height:20px;line-height:20px}.sb-score-touch{display:flex;align-items:center;flex:1;width:100%;touch-action:none;user-select:none;-webkit-user-select:none}.sb-content .sb-number{display:flex;align-items:center;justify-content:center;flex:1;width:100%;padding:8px 0;background:transparent;color:inherit;border-radius:0;font-family:'Arial Narrow',Arial,sans-serif;font-variant-numeric:tabular-nums;font-size:112px;line-height:1.2;font-weight:750;letter-spacing:-6px;min-height:155px;touch-action:none;user-select:none;-webkit-user-select:none}.sb-content .sb-number.sb-small-number{font-size:78px;letter-spacing:-4px}
.sb-clears{display:flex;gap:5px;width:100%;margin:12px 0 8px}.sb-clears>button{flex:1;min-width:0;border:1px solid #4d6127;background:#172018;border-radius:7px;padding:7px 1px;font-size:10px;color:#c0d59a;white-space:nowrap}.sb-tone-1 .sb-clears>button{border-color:#663d29;color:#d5ad96}.sb-clears b{font-size:12px;color:#c9f541;margin-left:3px}.sb-tone-1 .sb-clears b{color:#ff754e}.sb-content .sb-add{width:100%;background:#C6A56A;color:#14200d;border-radius:14px;font-size:38px;line-height:1;font-weight:400;padding:15px 0}.sb-tone-1 .sb-add{background:#ff7049;color:#23170e}.sb-content .sb-frame{width:100%;background:#293b25;color:inherit;font-size:12px;padding:12px 3px;border-radius:10px;margin-top:10px}.sb-vs{position:absolute;left:50%;top:51%;transform:translate(-50%,-50%);font-size:10px;color:#657c68;letter-spacing:1px}.sb-compact{min-height:250px;flex:none}.sb-compact .sb-number{min-height:100px;font-size:80px}.sb-active{outline:1px solid #c9f541;outline-offset:2px}.sb-three{gap:9px;min-height:230px}.sb-three .sb-card{padding:18px 5px 10px;border-radius:18px}.sb-three .sb-number{font-size:62px;letter-spacing:-3px}.sb-three .sb-avatar{width:35px;height:35px;font-size:15px}.sb-three .sb-name{font-size:12px}.sb-three .sb-player-note{font-size:8px}.sb-three .sb-small-number{font-size:43px}
.sb-controls{border:1px solid #2e3c2e;border-radius:15px;padding:14px 12px 12px;background:#172119;margin-top:16px}.sb-control-title{font-size:12px;color:#c0d3b3;margin-bottom:12px}.sb-donor{display:flex;align-items:center;gap:12px;font-size:11px;color:#a2b197}.sb-donor select{width:auto;flex:1;background:#202e22;border:1px solid #3a4c35;color:#d2e1c6;font-size:12px;padding:9px 10px;margin:0 0 9px}.sb-action-row{display:flex;gap:7px;margin-top:9px}.sb-action-row>button{flex:1;min-width:0;background:#283825;color:#d5e8c2;border-radius:8px;padding:11px 2px;font-size:11px;white-space:nowrap}.sb-balls{display:flex;justify-content:space-between;gap:6px}.sb-balls>button{width:35px;height:35px;border-radius:50%;border:2px solid #ffffff19;color:#fff;font-family:Arial,sans-serif;font-size:14px;padding:0;text-shadow:0 1px 3px #0008}.sb-foul-note{font-size:10px;color:#84987d;margin:12px 0 0}
.sb-toolbar{display:flex;gap:8px;margin-top:16px;flex-shrink:0}.sb-toolbar>button{flex:1;min-width:0;background:transparent;border:1px solid #344835;border-radius:12px;color:#b4c9a7;padding:16px 4px;font-size:14px;white-space:nowrap}.sb-toolbar>button.sb-finish{flex:1.5;background:#C6A56A;border-color:#C6A56A;color:#1c2a0b;font-weight:650}.sb-hint{text-align:center;font-size:9px;color:#7b8d72;padding:13px 0 9px;line-height:1.6}.sb-content .sb-last{display:flex;justify-content:space-between;align-items:center;background:transparent;color:#8d9e84;border-top:1px solid #243325;padding:10px 0 0;font-size:10px;text-align:left;line-height:1.6}.sb-last>span{color:#a2b08f;white-space:nowrap;margin-left:8px}.sb-logs{font-size:11px;color:#a8b99a;padding:8px 0}.sb-logs>div{border-bottom:1px solid #233125;padding:9px 0}.sb-result{background:#24321e;border:1px solid #455b2d;border-radius:12px;padding:13px 10px;text-align:center;color:#d3f791;margin-top:12px;font-size:17px}.sb-result small{display:block;font-size:10px;color:#98b080;margin-top:6px}
.sb-history-title{font-size:25px;color:#d5e7c5;letter-spacing:1px;padding:20px 0 24px}.sb-history-title small,.sb-empty small{display:block;font-size:11px;color:#8b9d80;letter-spacing:0;margin-top:10px}.sb-record{background:#1b281d;border:1px solid #34452f;border-radius:16px;padding:17px 15px;margin-bottom:15px}.sb-record-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#8b9f7c}.sb-record-names,.sb-record-scores,.sb-record-clears{display:flex;gap:8px;text-align:center}.sb-record-names>span,.sb-record-scores>span,.sb-record-clears>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sb-record-names{font-size:12px;color:#d8e5cb;margin-top:18px}.sb-record-scores{font-family:Arial,sans-serif;font-size:42px;font-weight:700;color:#c7ed6b;margin:12px 0}.sb-record-clears{font-size:9px;color:#8da37c}.sb-empty{text-align:center;color:#becfae;font-size:15px;padding:100px 10px}
@media(max-width:600px){.practice-dialog.score-dialog{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;max-width:100vw}.sb-content{padding-bottom:calc(15px + env(safe-area-inset-bottom))}.sb-players{gap:36px;min-height:340px}.sb-compact{min-height:230px}.sb-three{min-height:230px;gap:8px}.sb-number{font-size:100px}}
@media(max-height:750px){.sb-players{min-height:285px}.sb-content .sb-number{font-size:84px;min-height:100px}.sb-avatar{height:35px;width:35px;margin-bottom:7px}.sb-card{padding-top:15px}.sb-options{padding:10px 0;min-height:50px}.sb-compact,.sb-three{min-height:210px}.sb-compact .sb-number{font-size:65px}.sb-toolbar>button{padding:13px 3px}.sb-clears{margin-top:8px}.sb-three .sb-number{font-size:56px}}
.chase-options{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:13px 0;flex-shrink:0}.chase-base{display:flex;align-items:center;gap:4px;font-size:11px;color:#85948c}.chase-base>button{width:24px;height:27px;padding:0;border-radius:7px;background:#202d26;color:#a7b9ab;font-size:16px}.chase-base>button.chase-base-value{width:auto;min-width:34px;padding:0 2px;background:transparent;color:#f3f7ef;font-size:16px;font-weight:650}.sb-content .chase-toggle{display:flex;align-items:center;gap:5px;padding:0;background:transparent;color:#99ac91;font-size:11px;white-space:nowrap}.chase-switch{display:flex;align-items:center;width:32px;height:18px;padding:2px;border-radius:18px;background:#344238;box-sizing:border-box}.chase-switch>i{width:14px;height:14px;border-radius:50%;background:#b6c2b1;transition:transform .18s}.is-on .chase-switch{background:#C6A56A}.is-on .chase-switch>i{background:#162110;transform:translateX(14px)}.chase-count{display:flex;padding:2px;background:#19251f;border-radius:7px}.chase-count>button{width:27px;padding:5px 0;border-radius:5px;background:transparent;color:#7d9386;font-size:12px}.chase-count>button.selected{background:#2b3931;color:#edf4e8;font-weight:650}
.chase-players{display:flex;flex-direction:column;gap:9px}.chase-card{position:relative;display:flex;align-items:center;gap:10px;min-height:96px;box-sizing:border-box;border:1px solid #29362e;border-radius:16px;padding:13px;background:#141e18;color:#b8c3b7}.chase-card.is-shooter{background:linear-gradient(105deg,#25331f,#18221a 80%);border-color:#4b6336;color:#cdf746}.chase-card.is-shooter:before{content:'';position:absolute;left:0;top:14px;bottom:14px;width:3px;background:#C6A56A;border-radius:4px}.sb-content .chase-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;padding:0;border:1px solid #57634b;border-radius:50%;box-shadow:inset 0 0 0 4px #172117;background:#303d29;color:#bbcda2;font-size:16px;font-weight:650}.sb-content .is-shooter .chase-avatar{border-color:#a9c829;background:#d9c145;color:#1c2812}.chase-person{min-width:0;flex:1}.sb-content .chase-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;background:transparent;color:#edf2e9;font-size:16px;line-height:1.3;text-align:left;font-weight:650}.chase-name>small{margin-left:5px;color:#73826f;font-size:10px}.chase-role{display:flex;gap:7px;color:#829181;font-size:10px;margin:4px 0 6px;line-height:1.2}.chase-role .chase-shooting{color:#c9f541;font-weight:650}.chase-stats{display:flex;gap:2px}.chase-stats>div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;background:#1a251c;border-radius:3px;color:#a0b28e;font-size:9px;line-height:1.25;white-space:nowrap}.chase-stats>div.chase-foul-stat{color:#e78b70}.chase-stats>div:last-child{color:#d5bc65}.chase-stats>div>span:last-child{font-family:Arial,sans-serif;font-size:11px}.sb-content .chase-score{flex-shrink:0;min-width:69px;padding:0;background:transparent;color:inherit;text-align:right;font-family:Arial,sans-serif;font-size:43px;line-height:1;font-weight:700;letter-spacing:-2px;font-variant-numeric:tabular-nums}.sb-content .chase-score.chase-score-small{font-size:31px;letter-spacing:-1px}
.chase-pair{display:flex;align-items:center;gap:9px;margin:10px 0;color:#829580;font-size:12px;min-height:30px}.chase-opponents{display:flex;gap:5px;flex:1;min-width:0}.chase-opponents>button{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 10px;background:#1b281e;color:#91a58a;font-size:12px;border-radius:7px}.chase-opponents>button.selected{background:#2a3821;color:#E8D5A3}.sb-content .chase-yield-button{padding:6px 9px;white-space:nowrap;border:1px solid #405435;border-radius:7px;color:#bed292;background:transparent;font-size:12px}.chase-yield-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#2b2018;border:1px solid #79412c;padding:10px 11px;border-radius:14px;margin:0 0 9px;color:#ff8851;font-size:12px}.chase-yield-notice>div{min-width:0}.chase-yield-notice span{display:block;overflow-wrap:anywhere}.chase-yield-notice small{display:block;font-size:10px;color:#c68d64;margin-top:3px}.chase-yield-notice>button{flex-shrink:0;background:#4d2c1f;border-radius:15px;color:#ff985a;padding:7px 13px;font-size:12px}.chase-actions{display:flex;gap:5px}.chase-actions>button{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-width:0;min-height:81px;padding:10px 0;border:1px solid #3a4939;border-radius:15px;background:#233127;color:#d9e4c9;font-size:12px}.chase-actions .chase-action-value{font-family:Arial,sans-serif;font-size:24px;line-height:1.3;font-weight:650}.chase-actions>button.chase-action-0{background:#301f19;border-color:#79412c;color:#ff8157}.chase-actions>button.chase-action-2{color:#d8c977}.chase-actions>button.chase-action-3{color:#f0cd54;border-color:#6b602a}.chase-actions>button.chase-action-4{color:#20290f;background:#f4cb52;border-color:#f4cb52}.chase-current{text-align:center;color:#E8D5A3;font-size:12px;margin:10px 0 0;line-height:1.5}.chase-current>span{color:#8a9b7c;font-size:11px}.chase-legacy{font-size:12px;line-height:1.6;color:#c9b784;margin:0 0 9px}.sb-record-chase{font-size:11px;color:#99b184;line-height:1.8}.sb-record-chase>div+div{display:flex;justify-content:space-between;gap:7px}.sb-record-chase span:first-child{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
