/* Clarity pass: opaque, quiet surfaces leave the action visible. */
:root{--polish-ink:#142238;--polish-mint:#adf5d6;--polish-paper:#fff9e8}
button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #67d7d1!important;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.42}
body:not(.comicUI):not(.pixelUI) :is(#panel,#clashPanel,#versusPanel,#parkPanel,#partyPanel){background:linear-gradient(145deg,#17263bf5,#101b2df5);border:1px solid #b9d7ef38;box-shadow:0 24px 80px #060c235c;border-radius:24px}
body:not(.comicUI):not(.pixelUI) :is(.mode-card){border:1px solid #b6d4ef38!important;background:linear-gradient(135deg,#20324b,#17263d)!important;color:#f6f9ff!important;box-shadow:0 5px 18px #0002}
body:not(.comicUI):not(.pixelUI) .mode-card :is(p,small,.mode-desc){color:#c1cfdf!important}.mode-card{transition:transform .16s ease,border-color .16s ease}.mode-card:hover{transform:translateY(-3px)}
:is(#clashHud,#versusHud,#parkHud){font-variant-numeric:tabular-nums;text-shadow:none;border-radius:16px;box-shadow:0 5px 22px #0a173529}meter{accent-color:#77e8ba}button small{letter-spacing:.04em}
.comicUI :is(#qolOverlay section){background:#fff9e8!important;color:#142238!important;border:2px solid #142238!important;box-shadow:5px 5px 0 #142238!important}.comicUI #qolOverlay :is(h2,label,legend,output){color:#142238!important}.comicUI #qolOverlay :is(p,.qolHint,#qolFeedback){color:#435268!important}.comicUI #qolOverlay :is(button,select){background:#e0f5ef!important;color:#142238!important;border:2px solid #142238!important}.comicUI .qolModeSearch input{background:#fff9e8;color:#142238;border:2px solid #142238}.comicUI .qolModeSearch span{color:#26394d}.comicUI .qolVisual{border-color:#14223850}
.studio-history{display:inline-flex;gap:4px;align-items:center}.studio-history button{min-height:32px;padding:5px 9px;font:600 12px system-ui}
.qolReducedMotion *{scroll-behavior:auto!important}
.qolReducedMotion .mode-card{transition:none;transform:none!important}
#sessionRecord{font:600 12px/1.6 system-ui;display:block;margin:10px 0;padding:9px 12px;border-radius:9px;background:#ffffff0c;color:inherit;font-variant-numeric:tabular-nums}.comicUI #sessionRecord{background:#1422380b;color:#142238!important}
#partyResult .resultRow,#partyPanel .resultRow{border-bottom:1px solid #a4b7d52b;padding:9px 0}
#debateAnswers button{min-height:64px;line-height:1.4}#debateAnswers button:active{transform:scale(.985)}
@media(max-width:650px){:is(#panel,#parkPanel,#clashPanel,#versusPanel){max-height:calc(100dvh - 40px);overflow:auto!important}.qolModeSearch{margin-bottom:10px}.qolModeSearch input{font-size:16px}.mode-card:hover{transform:none}#qolOverlay section{max-height:85dvh}#debateAnswers button{min-height:54px}.studio-history{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.mode-card{transition:none;transform:none!important}}
#milestoneToast{position:fixed;left:50%;top:92px;transform:translateX(-50%);z-index:45;max-width:calc(100vw - 32px);background:#142b30f5;color:#c7ffe7;border:1px solid #92edc7;border-radius:12px;padding:10px 18px;font:800 12px/1.4 system-ui;letter-spacing:.06em;box-shadow:0 8px 28px #0003;pointer-events:none;text-align:center}#milestoneToast[hidden]{display:none}.comicUI #milestoneToast{background:#fff1a9;color:#142238;border:2px solid #142238;box-shadow:3px 3px 0 #142238}
#debateReview{margin:16px 0;border:1px solid #b0d2ef40;border-radius:12px;padding:12px 16px;background:#142238e8;color:#eef7ff;font:14px/1.6 system-ui}#debateReview summary{cursor:pointer;font-weight:700}#debateReview ol{max-height:230px;overflow:auto;padding-left:22px}#debateReview li{margin:10px 0;padding-right:8px}.comicUI #debateReview{background:#fff9e8;color:#142238;border:2px solid #142238}#partyItinerary{position:relative;font:12px/1.7 system-ui}#partyItinerary summary{cursor:pointer}#partyItinerary[open]{background:#16263b;color:#fff;border:1px solid #b9d7ef40;border-radius:8px;padding:8px 12px}.party-stop{white-space:nowrap}.comicUI #partyItinerary[open]{background:#fff9e8;color:#142238;border:2px solid #142238}@media(max-width:650px){#partyItinerary{display:none}}
.mode-card{min-width:0;text-align:left}.mode-card :is(strong,small){min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:break-word}.mode-card small{line-height:1.5!important}.mode-card :is(.mode-tag){letter-spacing:.08em}.home-bottom button{min-height:36px}.comicUI .home-bottom button{background:#fffdf7!important;color:#142238!important}.comicUI .home-bottom button:hover{background:#e0f5ef!important}body:not(.comicUI):not(.pixelUI) .home-bottom button{background:#273e59;color:#eef7ff;border:1px solid #b9d7ef45}.comicUI.at-home #panel .tip{color:#4b5c72!important}
