/* Actual UI only. Court/camera/body drawing and gameplay are deliberately untouched. */
:root{--sport-paper:#f3f2ee;--sport-ink:#172b3b;--sport-muted:#59696f;--sport-line:#ccd3d2;--sport-accent:#b7402c}
.modal.basu-ui{background:#071b28d9;font:16px/1.45 system-ui,-apple-system,'Hiragino Sans',sans-serif;color:var(--sport-ink);padding:12px}
.modal.basu-ui .win{font:16px/1.45 system-ui,-apple-system,'Hiragino Sans',sans-serif;max-width:1200px;width:100%;max-height:calc(100svh - 24px);background:var(--sport-paper);border:1px solid var(--sport-line);border-radius:2px;box-shadow:none;color:var(--sport-ink);overflow:auto}
.modal.basu-ui .hd{font:700 20px/1.3 system-ui;background:var(--sport-ink);color:#fff;padding:12px 18px;border:0;border-radius:0;position:sticky;top:0;z-index:4}
.modal.basu-ui .bd{padding:16px 20px}.modal.basu-ui :is(h1,h2,h3,.pc-name,.rc-name,.rc-sec>h3,.pc-sk-h b){font-family:system-ui,-apple-system,'Hiragino Sans',sans-serif;letter-spacing:-.025em;color:var(--sport-ink)}
.modal.basu-ui :is(button,select,input){font-family:inherit;font-size:15px}.modal.basu-ui :is(button,select){min-height:44px;touch-action:manipulation;border-radius:2px;box-shadow:none}.modal.basu-ui button{padding:8px 14px}.modal.basu-ui .go{background:var(--sport-accent);color:white;border:1px solid var(--sport-accent)}.modal.basu-ui .go.sub,.modal.basu-ui .opt{background:transparent;color:var(--sport-ink);border:1px solid var(--sport-line)}.modal.basu-ui .opt.sel{background:#dbe4e4;border-color:var(--sport-accent)}.modal.basu-ui :is(button,summary,select,input):focus-visible{outline:3px solid var(--sport-accent);outline-offset:2px}.modal.basu-ui summary{min-height:44px;cursor:pointer;padding:10px 0}.modal.basu-ui .muted{font-size:13px;color:var(--sport-muted)}.modal.basu-ui .sec{border:0;background:none;box-shadow:none;border-top:1px solid var(--sport-line);padding:14px 0}.modal.basu-ui .sec>h3{font-size:18px;border:0;background:none;padding:0;margin:0 0 12px}.modal.basu-ui table{font-size:14px;border-collapse:collapse}.modal.basu-ui th,.modal.basu-ui td{padding:8px;border-bottom:1px solid var(--sport-line)}.modal.basu-ui th{background:#e2e7e4;color:var(--sport-ink)}
/* Home uses its existing selected-starter model; faces never exceed 48px. */
.modal.home-modal{padding:0}.modal.home-modal .arena-home-win{width:100%;height:100svh;max-height:100svh;max-width:1400px;border:0;border-radius:0;padding:0;margin:auto}
.sport-home{font:16px/1.45 system-ui;color:var(--sport-ink);background:var(--sport-paper);min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:56px minmax(0,1fr);gap:0 24px;padding:0 20px 12px 124px;position:relative;overflow:hidden}
.sport-home .bha-mast{grid-column:1/-1;display:flex;align-items:center;padding:0;border:0;gap:20px;min-height:56px;background:none}.sport-home .bha-brand{font:800 20px/1 system-ui;color:var(--sport-ink)}.sport-phase{font-size:13px;color:var(--sport-muted);margin:0}.sport-home .bha-mast nav{position:absolute;inset:56px auto 0 0;width:104px;background:#102938;display:flex;flex-direction:column;justify-content:flex-start;gap:0;padding:8px 0}.sport-home .bha-mast nav button{width:100%;min-height:64px;border:0;border-radius:0;background:none;color:white;padding:12px 6px;font-size:14px;text-align:center}.sport-home .bha-mast nav button:hover{background:#294654}
.sport-duel{min-width:0;min-height:0;overflow:auto}.sport-controls{min-width:0;min-height:0;overflow:auto;padding-right:2px}.sport-home .bha-ribbon{display:flex;gap:12px;align-items:center;padding:8px 0;border:0;background:none;font-size:13px;flex-wrap:wrap}.sport-home .bha-ribbon h1{font-size:24px;margin-right:auto;color:var(--sport-ink)}.sport-home .bha-stage{height:214px;margin:0;background:#e4e8e4;border-top:3px solid var(--sport-ink)}.sport-home .arena-scene{height:100%;block-size:100%;background:none;color:var(--sport-ink)}.sport-home .arena-scene__background{display:none}.sport-home .arena-scene__characters{inset:0;display:flex;align-items:center;justify-content:space-around}.sport-home .bha-fighter{position:static;transform:none!important;width:48px!important;height:48px!important;max-height:none!important;max-width:none!important;image-rendering:pixelated}.sport-home .arena-scene__ui{pointer-events:none}.sport-home .bha-teams{position:absolute;inset:8px 10px auto;display:grid;grid-template-columns:1fr 1fr;gap:16px}.sport-home .bha-team{position:static;padding:0;background:none;border:0;color:var(--sport-ink);min-width:0}.sport-home .bha-team h2{font-size:25px;line-height:1.15;color:var(--sport-ink)}.sport-home .bha-team h2 span{display:inline}.sport-home .bha-team.bha-away{text-align:right}.sport-home .bha-side,.sport-home .bha-record{font-size:12px;margin:3px 0;color:var(--sport-muted)}.sport-home .bha-middle{position:absolute;inset:83px 0 auto;display:block;text-align:center}.sport-home .bha-versus{font:800 30px/1 system-ui;color:var(--sport-ink);text-shadow:none}.sport-home .bha-featured{font-size:12px;margin:8px 0}.sport-home .bha-caps{position:absolute;inset:auto 10px 10px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.sport-home .bha-cap{position:static;padding:0;background:none;border:0;color:var(--sport-ink);text-align:center}.sport-home .bha-cap strong{font-size:18px;color:var(--sport-ink)}.sport-home .bha-cap p,.sport-home .bha-cap small{font-size:12px;margin:2px 0;color:var(--sport-muted)}.sport-home .bha-primary{width:100%;min-height:48px;margin:8px 0 12px;background:var(--sport-accent);color:#fff;font-size:16px;border:0;box-shadow:none;border-radius:2px}.sport-home .bha-rosters{display:block;margin:0}.sport-home .bha-rosters section{margin-bottom:12px}.sport-home .bha-rosters h2{font-size:16px;color:var(--sport-ink);border:0;margin:0 0 4px;padding:0}.sport-home .bha-rosters h2 span{display:none}.sport-home .bha-rosters ol{display:block;list-style:none;padding:0;margin:0}.sport-home .bha-rosters li{border:0}.sport-home .bha-rosters button{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:8px;width:100%;min-height:44px;padding:4px 0;background:none;border:0;border-bottom:1px solid var(--sport-line);border-radius:0;color:var(--sport-ink);box-shadow:none}.sport-home .bha-rosters button[aria-pressed=true]{background:#dce3df;border-left:3px solid var(--sport-accent);padding-left:6px}.sport-home .bha-rosters canvas{width:30px;height:30px}.sport-home .bha-name{font-size:14px}.sport-home .bha-pos{font-size:12px}.sport-home .bha-note,.sport-home .bha-story{font-size:13px;margin:10px 0;color:var(--sport-muted)}
.sport-info>summary{font-size:14px;font-weight:700;border-top:1px solid var(--sport-line)}.sport-info[open]{position:absolute;inset:56px 16px 12px 124px;background:var(--sport-paper);z-index:8;overflow:auto;border:1px solid var(--sport-line);padding:0 18px 18px}.sport-info[open]>summary{position:sticky;top:0;background:var(--sport-ink);color:#fff;margin:0 -18px;padding:12px 18px;min-height:48px}.sport-info[open]>summary:after{content:'（閉じる）';float:right}.sport-home .bha-info{display:block;margin:0}.sport-home .bha-info section{padding:16px 0;border-bottom:1px solid var(--sport-line);background:none}.sport-home .bha-info h2{font-size:20px;color:var(--sport-ink)}.sport-home .bha-info dl{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.sport-home .bha-info dt{font-size:13px}.sport-home .bha-info dd{font-size:22px;margin:0}.sport-home .bha-scroll{overflow:auto}
/* Team and details retain every original control, meter and expanded section. */
#menuWin:has(#roster) .rc-grid{display:block}#menuWin:has(#roster) #roster{display:grid;grid-template-columns:1fr 1fr;gap:24px}.rc-sec>h3{font:700 18px system-ui!important;background:none!important;border:0!important}.rc{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;border:0!important;border-bottom:1px solid var(--sport-line)!important;box-shadow:none!important;background:none!important;padding:12px 0!important}.rc.sel{background:#dce3df!important}.rc-face{width:48px!important}.rc-face canvas{width:40px!important;height:40px!important;image-rendering:pixelated}.rc-face .tg{display:none}.rc-face .nm{font:12px system-ui!important;background:none!important;color:var(--sport-muted)!important;position:static!important;padding:0!important}.rc-name{font-size:19px!important}.rc-name small{font-size:12px}.rc-chips{font-size:12px!important}.pc-chip{background:none!important;border:0!important;box-shadow:none!important;padding:2px 6px 2px 0!important;font-size:12px!important}.rc-st,.rc-act,.rc-more{grid-column:1/-1}.rc-st{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px 14px!important}.rc-st>div{grid-template-columns:68px 1fr 26px!important;font-size:12px!important}.rc-st .v{font:13px system-ui!important}.rc-act{display:flex!important;justify-content:flex-end!important;gap:8px!important}.rc-more{border-top:0!important;font-size:13px!important}.rc-msg{background:#e4e8e4!important;border:0!important;color:var(--sport-ink)!important;font-size:15px!important}
.pc-head{display:grid!important;grid-template-columns:48px 1fr!important;background:none!important;border:0!important;border-bottom:2px solid var(--sport-ink)!important;box-shadow:none!important;padding:0 0 16px!important;gap:16px!important}.pc-face{width:48px!important}.pc-face canvas{width:48px!important;height:48px!important;image-rendering:pixelated}.pc-face .pc-num{position:static!important;background:none!important;color:var(--sport-muted)!important;font:13px system-ui!important;padding:0!important}.pc-name{font-size:28px!important}.pc-name small{font-size:15px}.pc-fig{display:none!important}.pc-ab .v{font:16px system-ui!important}.pc-ab{grid-template-columns:90px 1fr 36px!important}.pc-sk{box-shadow:none!important;border:0!important;border-bottom:1px solid var(--sport-line)!important}.pc-sk-h b{font-size:17px!important}
/* Broadcast remains HTML over the original court. No camera/scaling changes. */
#bug,#chip{font-family:system-ui,sans-serif;--f:16px}#bug{height:48px;bottom:8px;filter:none;max-width:94%}#bug .bt,#bug .bm{background:#102938;border-radius:0}#bug .nm{font-size:14px;max-width:12em}#bug .sc{font-size:28px}#bug .bm .c{font-size:22px}#bug .bm .q,#bug .bm .k{font-size:14px}#chip{filter:none;border-radius:0;background:#102938}#hudBtns{gap:8px}#hudBtns button{min-width:44px;min-height:44px;border-radius:2px}#rotHint{display:none!important}
.rb-result .rb-sprite{width:64px!important;align-self:center!important}.rb-result .rb-sprite canvas{width:48px!important;height:48px!important;image-rendering:pixelated}.rb-result .rb-mvp{gap:16px!important;min-height:0!important;padding:24px!important}.rb-result .rb-profile h2{font:700 30px system-ui!important}.rb-result .rb-actions button:first-child{background:var(--sport-accent)!important;color:white!important;border-color:var(--sport-accent)!important}
.market-design{font-family:system-ui!important}.modal.basu-ui .market-face{width:40px!important;height:40px!important}.modal.basu-ui .market-face.large{width:48px!important;height:48px!important}
@media(min-width:1100px){.sport-home{grid-template-columns:minmax(0,1fr) 340px;gap:32px}.sport-home .bha-stage{height:320px}.sport-home .bha-team h2{font-size:38px}.sport-home .bha-middle{top:130px}.sport-home .bha-fighter{width:48px!important;height:48px!important}.sport-home .bha-ribbon h1{font-size:34px}}
@media(max-width:700px){.sport-home{padding-left:92px;padding-right:12px;grid-template-columns:minmax(0,1fr) 190px;gap:14px}.sport-home .bha-mast nav{width:80px}.sport-home .bha-mast nav button{font-size:12px}.sport-home .bha-brand{font-size:16px}.sport-home .bha-team h2{font-size:20px}.sport-phase{font-size:12px}.sport-info[open]{left:92px}#menuWin:has(#roster) #roster{grid-template-columns:1fr}}
@media(max-width:540px) and (orientation:portrait){.sport-home{overflow:auto;display:block;padding:12px}.sport-home .bha-mast{flex-wrap:wrap}.sport-home .bha-mast nav{position:static;flex-direction:row;width:100%;padding:0}.sport-home .bha-mast nav button{min-height:44px}.sport-home .sport-controls{overflow:visible}.sport-home .sport-info[open]{inset:8px}.sport-home .bha-stage{height:230px}.modal.basu-ui{padding:4px}.modal.basu-ui .win{max-height:calc(100svh - 8px)}}
.sport-home *{box-sizing:border-box}.sport-home p,.sport-home h1,.sport-home h2,.sport-home dl,.sport-home dd{margin:0}.sport-home .bha-mast nav{box-sizing:border-box}.sport-home .bha-rosters li{list-style:none}.sport-home .bha-audio{margin-top:16px;padding:12px 0;border-top:1px solid var(--sport-line)}.sport-home .bha-audio label{display:flex;gap:12px;align-items:center;padding:10px 0}.sport-home .bha-info table{width:100%}.sport-home .bha-team{max-width:none}.sport-home .bha-info h2{margin-bottom:12px}.sport-home .bha-info ul{padding-left:20px}
#menuWin:has(.pc-head) .bd{display:grid;grid-template-columns:220px minmax(0,1fr);gap:0 24px}#menuWin:has(.pc-head) .bd>*{grid-column:2;min-width:0}#menuWin:has(.pc-head) .pc-head{grid-column:1;grid-row:1/span 24;align-self:start;position:sticky;top:62px;max-height:calc(100svh - 104px);overflow:auto;grid-template-columns:48px 1fr!important}.pc-head .pc-line{font-size:13px;line-height:1.55;margin:8px 0}.pc-head .pc-chips{margin-top:6px}.pc-head .pc-name{font-size:26px!important}.pc-head .pc-name small{display:block;font-size:13px}.pc-head .pc-face{grid-column:1}.pc-head>div:nth-child(2){grid-column:2}.pc-head .pc-chip{display:inline-block}#menuWin:has(.pc-head) .bd>.sec{margin:0;padding:14px 0}#menuWin:has(.pc-head) table{display:block;max-width:100%;overflow:auto}.rc-more .rc-st{padding:10px 0}.rc-name .pos{font-family:system-ui;background:none;color:var(--sport-accent)}
@media(max-width:600px){#menuWin:has(.pc-head) .bd{display:block}#menuWin:has(.pc-head) .pc-head{position:static;max-height:none}}
.pc-chip.role,.pc-chip.kind,.rc-chips .pc-chip{color:var(--sport-ink)!important}.rc-face{border:0!important;background:none!important;box-shadow:none!important}.pc-face{border:0!important;background:none!important;box-shadow:none!important}.pcm{gap:1px!important}.pcm i{height:5px!important;border:0!important;box-shadow:none!important}.rc-more{margin:0!important;padding:0!important}.rc-more summary{font-size:13px!important;color:var(--sport-muted)!important}.rc-act .opt{margin:0!important}.modal.basu-ui .rc-chips{margin:4px 0!important}
.pc-ab{grid-template-columns:100px minmax(90px,1fr) 32px 86px!important;gap:12px 10px!important;font-size:14px!important}.pc-ab .pcm{width:100%}.pc-ab .pcm i{flex:1;width:auto;min-width:2px}.pc-ab .note{font-size:12px!important;margin:0!important;grid-column:auto!important}.pc-ab .n{white-space:nowrap}.pc-ab .v{text-align:right}.pc-tend{grid-template-columns:140px auto minmax(0,1fr)!important}.pc-learn>div{display:flex;flex-wrap:wrap;gap:8px}.pc-sk-h{flex-wrap:wrap}
@media(max-width:600px){.pc-ab{grid-template-columns:90px minmax(50px,1fr) 30px!important}.pc-ab .note{grid-column:1/-1!important}.pc-tend{grid-template-columns:140px auto!important}.pc-tend .note{display:block;grid-column:1/-1}}
.rb-result .rb-arena{display:none!important;background:none!important}.rb-result .rb-stage{min-height:0}.rb-result .rb-final{padding:12px 24px 0;border-top-color:var(--sport-accent)}#menuWin .rb-result .rb-final h1{color:white}.rb-result .rb-profile .rb-label{color:#d6e3e8}.rb-result .rb-numbers strong{font-size:64px}.rb-result .rb-quarter{padding:10px 0}.rb-result .rb-leaders{padding:16px 20px}.rb-result .rb-statline strong{font-size:28px}.rb-result .rb-profile h2{margin-bottom:10px}.rb-result .rb-actions{padding:14px 20px}.rb-result .rb-mvp{background:#102938}.rb-result .rb-side li{padding:5px 0}.rb-result .rb-profile .rb-label span{margin-bottom:6px}
.rb-result .rb-mvp{align-items:flex-start!important}.rb-result .rb-sprite{align-self:flex-start!important;margin-top:32px}.rb-result .rb-profile{align-self:flex-start}.rb-result .rb-profile .rb-label span{font-size:16px;margin:4px 0 8px}.rb-result .rb-club{font-size:13px;margin:8px 0}.rb-result .rb-credit{font-size:12px;line-height:1.5;margin-top:12px}
