:root{color-scheme:light;--bg:#f7f8fc;--ink:#303348;--muted:#616579;--line:#c9cedd;--pink:#9d2864;--cyan:#087b86;--font:"Times New Roman",STKaiti,"华文楷体","Kaiti SC",KaiTi,serif;--chrome:linear-gradient(115deg,#d9dce5 0%,#fff 24%,#ecebf2 49%,#fff 72%,#d9e5e9 100%);--glow:0 8px 28px #ff69b41c,0 3px 14px #00ffff16,inset 0 2px 0 #fff}
*{box-sizing:border-box}html{background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;color:var(--ink);font-family:var(--font);font-size:18px;line-height:1.5;background:radial-gradient(ellipse at 95% 0%,#d5f9fb 0,transparent 42%),radial-gradient(ellipse at 0% 20%,#fce1ef 0,transparent 48%),var(--bg);min-height:100svh}button,a,select{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:wait}a{color:inherit;text-decoration:none}button{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid var(--cyan);outline-offset:5px}[hidden]{display:none!important}h1,h2,p{margin:0}h2{font-size:22px;line-height:1.3}.app{max-width:1200px;margin:auto;padding:24px 28px 14px}.chrome{background:var(--chrome);border:2px solid #c0c5d1;box-shadow:var(--glow)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:28px;padding:15px 24px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand h1{white-space:nowrap}.brand svg{width:35px;height:35px;flex-shrink:0;fill:var(--pink)}.brand svg circle{fill:#fff}h1{font-size:32px;letter-spacing:-.8px;line-height:1.2}.mode-pill{display:inline-flex;align-items:center;gap:9px;border:1px solid #d5a9bf;padding:7px 16px;border-radius:999px;background:linear-gradient(#fff,#f8d8e9);color:#852553;font-weight:700;white-space:nowrap;font-size:17px;box-shadow:inset 0 2px 0 #fff}.mode-pill select{font:inherit;color:inherit;font-weight:inherit;border:0;background:transparent;cursor:pointer;padding:0;max-width:100%}.mode-pill select:disabled{cursor:wait;opacity:.65}.status-dot{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--pink);box-shadow:0 0 9px #d666a480}.play-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,1fr);gap:22px;align-items:stretch;margin-top:24px}.panel{border:2px solid var(--line);border-radius:28px;background:linear-gradient(125deg,#ffffffed,#ffffffb3);box-shadow:var(--glow)}.wheel-panel{display:flex;flex-direction:column;padding:22px 22px 18px;overflow:hidden}.panel-topline.wheel-count{align-items:flex-start}.wheel-count h2{font-size:24px;line-height:1.35}.wheel-count>span{white-space:nowrap;padding-top:3px}.panel-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-topline>span{font-size:15px;color:var(--muted)}.panel-topline b{font-size:21px;color:var(--pink)}.dial{border-radius:50%;box-shadow:0 8px 10px #89889d28;position:relative;width:100%;margin:12px auto 7px;isolation:isolate}.wheel{display:block;width:100%;height:auto;aspect-ratio:1}#rotor{transform-box:view-box;transform-origin:300px 300px;transition:transform 3000ms cubic-bezier(.12,.72,.1,1)}#rotor text{fill:var(--ink);font-family:var(--font);font-size:16px;font-weight:700;pointer-events:none;letter-spacing:.5px}.wheel-sector{stroke:#fff;stroke-width:.6}.wheel-sector:hover{filter:brightness(1.06)}.pointer{position:absolute;z-index:3;left:50%;top:-3px;transform:translateX(-50%);width:29px;height:44px;filter:drop-shadow(0 3px 2px #6b536843);pointer-events:none}.pointer svg{width:100%;height:100%;fill:#9d2864;stroke:#fff;stroke-width:2;stroke-linejoin:round}.hub{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:25%;aspect-ratio:1;border-radius:50%;border:2px solid #b6bdcc;background:radial-gradient(circle at 32% 20%,#fff 0%,#fff 15%,#fae5ef 58%,#dbeff2 100%);box-shadow:inset 0 3px 1px #fff,inset 0 -5px 9px #939aae30,0 5px 14px #7e6b8b30;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;transition:box-shadow .2s,filter .2s}.hub:hover{box-shadow:inset 0 3px 1px #fff,inset 0 -5px 9px #939aae30,0 5px 20px #c8669e55;filter:brightness(1.025)}.hub:active{filter:brightness(.96)}.hub strong{white-space:nowrap;font-size:clamp(36px,4.6vw,56px);line-height:1;color:#852553}.hub:disabled{filter:saturate(.6)}.legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;max-width:455px;margin:4px auto 0;font-size:14px;color:#54596e}.legend span{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.legend i{width:11px;height:11px;flex-shrink:0;border-radius:4px;background:var(--swatch);border:1px solid #fff;box-shadow:0 1px 3px #77778d33}.wheel-note{text-align:center;margin-top:13px;color:var(--muted);font-size:14px}.side-panel{display:grid;grid-template-rows:auto minmax(170px,1fr);gap:20px;min-width:0}.result{padding:24px}.lineup{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 21px}.lineup>div{text-align:center;min-width:0}.lineup span{font-size:15px;color:var(--muted)}.lineup b{display:flex;justify-content:center;align-items:center;aspect-ratio:.88;margin:7px 0 5px;font-family:var(--font);font-size:clamp(42px,5.3vw,66px);font-weight:700;border:1px solid #ccd2df;border-radius:20px;background:linear-gradient(145deg,#fff,#edf0f7);box-shadow:inset 0 2px 0 #fff,0 3px 9px #a7a9bf14}.lineup b[data-rank="empty"]{font-size:36px;color:#aeb4c5}.lineup b[data-rank="S"]{color:#932b64;background:linear-gradient(150deg,#fff 8%,#fce4f0 65%,#f3c1da);border-color:#dfb3ca}.lineup b[data-rank="A"]{color:#087b86;background:linear-gradient(150deg,#fff 8%,#d9f4f5 65%,#b5e4e9);border-color:#acd3da}.lineup b[data-rank="B"]{color:#5c6295;background:linear-gradient(150deg,#fff,#e3e5f5);border-color:#bfc3de}.lineup b[data-rank="C"]{color:#5b6f63;background:linear-gradient(150deg,#fff,#e0eee4);border-color:#c4d8cb}.loadout{margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 0}.loadout>div{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:12px;padding:6px 2px}.loadout dt{color:#000;font-weight:700}.choice-card{display:grid;place-items:center;min-height:52px;margin:0;border:1px solid #ccd2df;border-radius:16px;background:linear-gradient(145deg,#fff,#edf0f7);box-shadow:inset 0 2px 0 #fff,0 3px 9px #a7a9bf14;font-weight:700;font-size:26px}.choice-card[data-choice="随机"]{color:#087b86;background:linear-gradient(150deg,#fff 8%,#d9f4f5 65%,#b5e4e9);border-color:#acd3da}.choice-card[data-choice="自选"]{color:#932b64;background:linear-gradient(150deg,#fff 8%,#fce4f0 65%,#f3c1da);border-color:#dfb3ca}.choice-card[data-choice="empty"]{color:#aeb4c5}.result-label{padding:17px 0 13px;font-size:17px;line-height:1.7;min-height:72px;text-align:center;overflow-wrap:anywhere}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}.secondary{min-height:44px;border:1px solid #bfc5d4;border-radius:15px;background:var(--chrome);padding:8px 16px;box-shadow:inset 0 2px 0 #fff;font-weight:700;font-size:16px}.secondary:hover{border-color:#b76d96;background:#fff}.secondary:disabled{opacity:.5;cursor:default}.small-note{color:var(--muted);font-size:13px;line-height:1.6;margin-top:12px}.history{display:flex;flex-direction:column;min-height:0;padding:21px 24px}.history .small-note{margin-top:auto;padding-top:12px}.history h2{font-size:19px}.text-button{border:0;background:none;color:var(--pink);font-size:14px;min-height:36px;padding:3px 7px;text-decoration:underline;text-underline-offset:4px}.history-empty{font-size:16px;color:var(--muted);padding:17px 0 3px}.history ol{max-height:160px;overflow-y:auto;margin:12px 0 0;padding:0;list-style:none;scrollbar-width:thin}.history li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #e3e6ef;font-size:14px}.history li:first-child{border-top:0;padding-top:0}.history li strong{color:var(--pink);font-size:19px;letter-spacing:1px;white-space:nowrap}.history li span{text-align:right;color:var(--muted)}.toast{position:fixed;z-index:10;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 22px;border:1px solid #bfc5d4;background:#fff;border-radius:18px;box-shadow:var(--glow);font-size:16px;text-align:center}.noscript{padding:20px}.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}.result[data-completed="true"] :is(.lineup b,.choice-card){animation:reveal .35s ease-out}@keyframes reveal{from{transform:translateY(6px);opacity:.3}to{transform:translateY(0);opacity:1}}

#rotor[data-mode="year"] text{font-size:30px;letter-spacing:1px}
.year-result{margin:17px 0 21px}.year-hero{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding:0 0 17px}.year-hero>strong{font-family:var(--font);font-size:58px;letter-spacing:-2px;line-height:1;color:var(--pink)}.year-hero>div{min-width:0}.year-hero span{font-size:21px}.year-hero small{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin-top:3px}.year-roster{max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-top:15px;padding-right:5px}.year-roster:empty{display:none}.year-roster:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}.year-roster section+section{margin-top:18px}.year-roster h3{font-size:17px;margin:0 0 9px;font-weight:700}.ninja-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}.ninja-grid li{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 8px;border:1px solid #d4d9e5;border-radius:14px;background:linear-gradient(135deg,#fff,#f7f9fc)}.ninja-grid li>div{min-width:0;overflow-wrap:anywhere;line-height:1.35}.ninja-grid span{display:block;font-size:15px}.ninja-grid small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
@media(max-width:360px){.ninja-grid{grid-template-columns:1fr}.ninja-grid span{font-size:16px}.year-hero>strong{font-size:52px}}
#rotor[data-label-mode="radial"] text{font-family:var(--font);font-size:18px;letter-spacing:0}.black-settings{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:12px 0 2px;padding:10px 12px;border:1px solid #d8c5d2;border-radius:17px;background:#fff9fc;font-size:14px}.black-settings small{flex-basis:100%;font-size:12px;color:var(--muted)}.odds-buttons{display:flex;gap:4px}.odds-buttons button{min-width:36px;min-height:40px;padding:4px 8px;border:1px solid #d1c4d0;border-radius:10px;background:#fff;font-size:14px}.odds-buttons button[aria-pressed="true"]{border-color:var(--pink);background:#f7d7e7;color:var(--pink);font-weight:700}.odds-buttons button:disabled{opacity:.55}.rule-title{font-size:22px;line-height:1.4;margin:15px 0 10px;overflow-wrap:anywhere}.rule-note{font-size:14px;line-height:1.6;color:var(--muted);margin-top:12px}.black-result{margin:18px 0}.black-result[data-generic="true"] .ninja-grid{grid-template-columns:1fr}.black-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:13px 16px;border:1px solid #b8dce2;border-radius:16px;background:linear-gradient(135deg,#fff,#dcf3f5)}.black-choice span{font-size:14px}.black-choice strong{font-size:24px;color:var(--cyan)}#result[data-kind="black"] .choice-card{font-size:18px;padding:8px;overflow-wrap:anywhere}.year-result:not([data-kind="year"]) .year-hero{display:block}.year-result:not([data-kind="year"]) .year-hero>strong{font-family:var(--font);font-size:28px;line-height:1.4;letter-spacing:0}.year-result:not([data-kind="year"]) .year-hero small{margin-top:7px}.year-result[data-kind="character"] .year-roster{max-height:340px}.entry-status{color:var(--pink)!important}
@media(max-width:800px){.hub strong{font-size:40px}.app{padding:15px 16px}.topbar{padding:14px 18px;border-radius:24px}h1{font-size:28px}.play-layout{grid-template-columns:minmax(0,1.3fr) minmax(270px,1fr);gap:14px}.wheel-panel{padding:17px 12px}.result{padding:19px 17px}.lineup{gap:7px}.lineup b{border-radius:16px}.legend{font-size:12px;gap:7px 5px}.history{padding:18px}}
@media(max-width:620px){.hub strong{font-size:clamp(30px,9vw,44px)}.app{padding:12px}.topbar{gap:10px;padding:13px 14px;border-radius:22px}.brand{gap:8px}.brand svg{width:26px;height:26px}h1{font-size:25px;letter-spacing:-.6px}.mode-pill{font-size:12px;padding:6px 8px;gap:4px}.mode-pill select{width:92px}.status-dot{width:5px;height:5px}.play-layout{grid-template-columns:minmax(0,1fr);gap:16px}.panel{border-radius:23px}.wheel-panel{padding:19px 14px 16px}.panel-topline h2{font-size:21px}.dial{max-width:470px;margin-top:12px}.legend{font-size:12px;max-width:365px}.result{padding:21px}.lineup{gap:12px;margin-bottom:20px}.lineup b{font-size:58px;aspect-ratio:1.12;border-radius:18px}.result-label{min-height:unset;padding:16px 0}.history{padding:20px 21px}.side-panel{gap:16px;grid-template-rows:auto auto}.history li{font-size:14px}}
@media(max-width:360px){.hub strong{font-size:30px}.app{padding:8px}.brand svg{display:none}h1{font-size:23px}.topbar{padding:13px 12px}.legend{font-size:11px;gap:6px 2px}.result{padding:19px 16px}.lineup{gap:8px}}
.ninja-art{display:block;flex:0 0 46px;width:46px;height:46px;object-fit:contain;border:1px solid #d4d9e5;border-radius:9px;box-shadow:0 2px 4px #70788c18}.ninja-grid li{padding:7px;gap:8px;min-height:76px}.rank-tag{display:inline-block;font-size:11px;line-height:1.3;color:var(--pink);margin-bottom:2px}.ninja-grid .ninja-debut{font-size:11px;color:var(--muted);letter-spacing:.2px}.picked-result{margin:14px 0 10px;padding:12px 16px;border:1px solid #ddb9cd;border-radius:17px;background:linear-gradient(110deg,#fce2ef,#fff 55%,#dcf5f6);text-align:center;overflow-wrap:anywhere}.picked-result>span{display:block;color:var(--muted);font-size:12px;margin-bottom:3px}.picked-result strong{color:var(--pink);font-size:20px;line-height:1.4}.picked-result[data-fresh="true"]{animation:reveal .35s ease-out}@media(max-width:800px){.wheel-count h2{font-size:21px}}@media(max-width:360px){.wheel-count h2{font-size:20px}.picked-result strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

.picked-slot{min-height:104px}.picked-result{width:100%}.wheel-panel[data-spinning="true"] #rotor{will-change:transform}.wheel-panel[data-spinning="true"] .wheel-sector{pointer-events:none}@media(max-width:800px){.picked-slot{min-height:132px}}

button,select,input,textarea{font-family:inherit}.history li strong,.history li span{min-width:0;overflow-wrap:anywhere}.history li strong{white-space:normal}

.load-error{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:18px;padding:16px;border:1px solid #d9b7cb;border-radius:18px;background:#fff4f9;text-align:center;font-size:16px}

#rotor[data-wheel-id="8"] text{font-size:16px}
#rotor[data-wheel-id="10"] text,#rotor[data-wheel-id="22"] text,#rotor[data-wheel-id="24"] text{font-size:14px;letter-spacing:0}
.common-result{margin-top:18px;padding:18px;border:1px solid #d9b7cb;border-radius:20px;background:linear-gradient(130deg,#fff4fa,#f1fbfc);overflow-wrap:anywhere}.common-result h3{margin:0 0 12px;color:var(--pink);font-size:23px;line-height:1.4}.common-result p{font-size:17px;line-height:1.7}.manual-choice{display:grid;gap:10px;margin-top:16px}.manual-choice label{font-size:15px;font-weight:700}.manual-choice select{width:100%;min-width:0;max-width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;padding:7px}.manual-choice button{justify-self:center}

#rotor[data-wheel-id="18"] text{font-size:14px}#rotor[data-mode="month"] text{font-size:23px}.year-result[data-kind="month"] .year-hero{display:flex}.year-result[data-kind="month"] .year-hero>strong{font-size:58px;letter-spacing:-2px}#common-instruction{white-space:pre-line} 

.event-actions{margin-top:14px}.penalty-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:16px;padding:12px;border:1px solid #d9b7cb;border-radius:16px;background:linear-gradient(120deg,#fff1f8,#ecfafb);font-size:14px}.penalty-context strong{font-weight:700;color:var(--pink)}
.wheel-guide{margin-top:24px;padding:0;border-color:#bca9d0;background:linear-gradient(115deg,#e8ddfa,#ffdceb 55%,#caf0ed)}.guide-toggle{padding:21px 24px;cursor:pointer;list-style:none;border-radius:inherit;min-height:70px}.guide-toggle::-webkit-details-marker{display:none}.guide-toggle h2{color:#722f68}.guide-toggle>span{margin-left:auto;color:#62577c}.guide-toggle::after{content:"＋";color:#852553;font-size:25px;line-height:1}.wheel-guide[open]>.guide-toggle::after{content:"−"}.wheel-guide[open]>.guide-toggle{border-bottom:1px solid #cbbbd9}.guide-toggle:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}.guide-body{padding:0 24px 24px}.guide-intro{margin-top:12px;font-size:15px;color:var(--muted)}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin-top:16px}.guide-card,.guide-rules{min-width:0;border:1px solid var(--line);border-radius:17px;background:linear-gradient(125deg,#fff,#f2f9fb)}.guide-card summary,.guide-rules summary{padding:15px 18px;cursor:pointer;overflow-wrap:anywhere;min-height:48px}.guide-card summary strong{font-size:18px;font-weight:700}.guide-card summary small{display:block;margin:5px 0 0 18px;color:var(--muted);font-size:13px}.guide-card[open] summary,.guide-rules[open] summary{border-bottom:1px solid var(--line)}.guide-card dl{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px 12px;margin:0;padding:16px 18px;font-size:15px;line-height:1.65}.guide-card dt{font-weight:700}.guide-card dd{margin:0;overflow-wrap:anywhere}.guide-rules{margin-top:15px;background:linear-gradient(115deg,#fff2f9,#f1fbfc);font-size:15px}.guide-rules summary{font-weight:700}.guide-rules p{padding:0 18px;margin:12px 0;line-height:1.7}.guide-card summary:focus-visible,.guide-rules summary:focus-visible{outline:3px solid var(--cyan);outline-offset:3px;border-radius:15px}@media(max-width:620px){.guide-toggle{padding:18px 16px}.guide-body{padding:0 16px 20px}.guide-grid{grid-template-columns:minmax(0,1fr)}.guide-card dl{grid-template-columns:64px minmax(0,1fr);gap:9px 10px;padding:14px}.guide-card summary,.guide-rules summary{padding:14px}.guide-card summary strong{font-size:17px}}

.wheel-sector{cursor:pointer;touch-action:manipulation}.wheel-sector:focus-visible{outline:none;stroke:#852553;stroke-width:2}.wheel-panel[data-spinning="true"] .wheel-sector{cursor:wait}

.wheel-order{margin-top:14px;padding:0;overflow:hidden}.wheel-order>summary{display:flex;align-items:center;gap:12px;min-height:54px;padding:11px 20px;cursor:pointer;list-style:none}.wheel-order>summary::-webkit-details-marker{display:none}.wheel-order>summary strong{color:var(--pink);font-size:17px}.wheel-order>summary span{color:var(--muted);font-size:14px}.wheel-order>summary::after{content:"＋";margin-left:auto;color:var(--pink);font-size:23px}.wheel-order[open]>summary::after{content:"−"}.wheel-order>summary:focus-visible{outline:3px solid var(--cyan);outline-offset:-3px}.wheel-order-body{padding:0 20px 18px}.wheel-order-body>p{font-size:14px;color:var(--muted);line-height:1.6}.wheel-order-list{max-height:min(58vh,520px);overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:12px 0;padding:3px;scrollbar-width:thin}.wheel-order-list li{display:grid;grid-template-columns:36px minmax(0,1fr) 48px;align-items:center;gap:10px;min-height:54px;margin-bottom:7px;padding:3px 5px 3px 11px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(115deg,#fff,#f3fafb);box-shadow:0 2px 7px #8d9fb118;user-select:none}.wheel-order-list li[data-dragging="true"]{border-color:var(--pink);background:#fce6f1;box-shadow:0 4px 14px #9d286438}.order-position{font-size:20px;font-weight:700;color:var(--pink);text-align:center}.order-label{min-width:0;overflow-wrap:anywhere;font-size:16px}.order-handle{width:44px;height:44px;border:1px solid #d9b4ca;border-radius:12px;background:linear-gradient(#fff,#f7dfe9);color:var(--pink);font-size:22px;font-weight:700;line-height:1;cursor:grab;touch-action:none}.order-handle:active{cursor:grabbing}.order-handle:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}.wheel-order-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.wheel-order-footer p{color:var(--muted);font-size:13px;line-height:1.5}.wheel-order-footer button{flex-shrink:0}.wheel-order-footer .secondary{font-size:14px;min-height:40px}
@media(max-width:620px){.wheel-order>summary{padding:10px 15px}.wheel-order-body{padding:0 13px 15px}.wheel-order-list{max-height:58vh}.wheel-order-list li{grid-template-columns:30px minmax(0,1fr) 44px;gap:7px;padding-left:6px}.order-label{font-size:14px}.wheel-order-footer{align-items:stretch;flex-direction:column}.wheel-order-footer button{align-self:flex-start}.mode-pill select{width:min(34vw,150px)}}

.match-board{margin-top:12px;padding:14px 18px}.match-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}.match-venue{font-size:20px;color:#5a466c;white-space:nowrap}.match-names{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;flex:1 1 275px}.match-names b{font-size:17px;color:#59536d}.match-names input{min-width:0;width:100%;height:40px;border:1px solid currentColor;border-radius:11px;background:#fff;padding:5px 8px;font:inherit;font-weight:700;text-align:center}.match-names input::placeholder{color:#777b8b;font-weight:400}.match-pair{display:flex;align-items:center;gap:6px;font-size:23px;font-weight:700}.match-pair small{margin-right:3px;font-size:13px;color:var(--muted);font-weight:400;white-space:nowrap}.match-pair button{min-width:38px;min-height:38px;border:1px solid currentColor;border-radius:10px;background:#fff;font:inherit;font-weight:700}.match-pair button[aria-pressed="true"]{box-shadow:0 0 0 3px #7472a044}.player-left{color:#006b77!important}.player-right{color:#92295f!important}.match-pair .player-left,.match-actions button:nth-child(-n+2){background:#e0f6f8;border-color:#83c7d0}.match-pair .player-right,.match-actions button:nth-child(n+3){background:#fce5f0;border-color:#dc9dbd}.match-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.match-actions button{flex:1 1 150px;min-height:40px;border:1px solid;border-radius:11px;padding:5px 10px;font-size:14px;font-weight:700}.match-actions button:nth-child(-n+2){color:#006b77}.match-actions button:nth-child(n+3){color:#92295f}.match-actions button:disabled,.match-pair button:disabled{opacity:.55}.match-board .small-note{margin-top:9px}.next-match-penalties{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.next-match-penalties>div{flex:1 1 220px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border:1px solid #c8cedd;border-radius:12px;background:#fff}.next-match-penalties p{font-size:14px}.next-match-penalties button{font-size:12px;min-height:36px;flex-shrink:0}.penalty-failure{margin-bottom:14px;padding:12px;border:1px solid #d9b7cb;border-radius:15px;background:#fff6fa;font-size:14px}.penalty-failure>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.penalty-failure button{font-size:13px;min-height:38px}.penalty-failure strong{display:block;margin-top:9px;color:var(--pink)}.wheel-order{margin-top:24px}.wheel-guide{margin-top:14px}
.match-mode{position:relative;z-index:5;flex:0 0 auto}.match-mode>summary{display:flex;align-items:center;gap:7px;min-height:40px;cursor:pointer;list-style:none;font-weight:700}.match-mode>summary::-webkit-details-marker{display:none}.match-mode>summary::after{content:"▾";font-size:13px;color:var(--pink)}.match-mode[open]>summary::after{content:"▴"}.match-mode>summary:focus-visible{outline:3px solid var(--cyan);outline-offset:3px;border-radius:5px}.match-mode small{font-size:13px;color:var(--pink);font-weight:700}.match-mode-options{position:absolute;top:100%;left:0;display:grid;grid-template-columns:1fr 1fr;gap:6px;width:max-content;min-width:205px;padding:9px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 10px 26px #4c4b6b35}.match-mode-options button{min-height:40px;padding:5px 10px;border:1px solid #d5a9bf;border-radius:10px;background:#fff;color:var(--pink);font-size:15px;font-weight:700}.match-mode-options button[aria-pressed="true"]{background:#f9dfeb;box-shadow:inset 0 0 0 1px var(--pink)}.match-mode-options button:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
@media(max-width:620px){.mode-pill select{width:min(30vw,115px)}.match-board{padding:12px}.match-line{gap:7px 12px}.match-venue{width:100%;font-size:18px}.match-names{flex-basis:100%}.match-pair{flex:1 1 auto;justify-content:center;font-size:20px}.match-pair small{font-size:12px}.match-actions{display:grid;grid-template-columns:1fr 1fr}.match-actions button{font-size:12px;padding:5px}.next-match-penalties>div{flex-wrap:wrap}}
@media(max-width:620px){.match-mode{width:100%}}
.match-pair .score-value{min-width:28px;min-height:36px;padding:0 3px;border:0;background:transparent;text-decoration:underline dotted;text-underline-offset:4px}.match-pair .score-value:hover{background:#ffffffa8}.match-footer{display:flex;align-items:center;gap:12px}.match-footer .small-note{flex:1}.match-footer>button{flex-shrink:0;min-height:38px;font-size:13px}
@media(max-width:620px){.match-footer{flex-wrap:wrap}.match-footer>button{margin-left:auto}}

.room-panel{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.room-row,.room-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.room-row{justify-content:space-between;gap:8px 14px}
.room-info{flex:1 1 225px}
.room-info strong{color:var(--pink)}
.room-actions .secondary{display:inline-flex;align-items:center;min-height:40px}
.room-link{width:100%;margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#fff;color:var(--ink);font-size:14px}
.room-panel button:disabled,#wheel-panel[data-room-locked="true"] .hub:disabled,.match-board[data-room-active="true"] button:disabled{cursor:default}

.round-board{margin-top:16px;padding:12px;display:grid;gap:9px}
.round-row{min-width:0;padding:10px 14px;border:1px solid;border-radius:15px;overflow-wrap:anywhere}
.round-left{border-color:#91cbd1;background:#e0f4f6;color:#165564}
.round-right{border-color:#dda5be;background:#fae7ef;color:#842953}
.round-row>header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.round-row>header span{font-size:14px;flex-shrink:0}
.round-lineup{color:var(--ink);font-weight:700}
.round-lineup:empty{display:none}
.round-events{list-style:none;padding:0;margin:4px 0 0;font-size:15px}
.round-events li{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;padding:3px 0}
.round-events .secondary{min-height:44px}
.round-details>summary{min-height:44px;padding:9px 0;cursor:pointer;font-weight:700}
.round-candidates{max-height:360px;overflow:auto;color:var(--ink)}
.round-jump{align-self:center;min-height:44px;display:inline-flex;align-items:center;margin-top:8px}
.round-candidate-note{margin-bottom:9px;white-space:pre-line}
#round-inspector .result{border:0;box-shadow:none;background:none;padding:0;overflow:visible}
#round-inspector .result:not([data-inspecting="true"]) :is(.panel-topline,.lineup,.loadout,.result-label,.year-result,.black-result,#copy,#selection-title,#rule-note){display:none}
#round-inspector .result:not([data-inspecting="true"]) .common-result{margin:0;padding:10px}
#play-layout[data-round-layout="true"]{grid-template-columns:minmax(0,1fr)}
#play-layout[data-round-layout="true"] .dial{max-width:560px}
#play-layout[data-round-layout="true"] .picked-slot{display:none}
@media(max-width:620px){
  .round-board{margin-top:12px;padding:9px}
  .round-row{padding:9px 11px}
  .round-candidates{max-height:50vh}
  .room-actions .secondary{min-height:44px}
}
