/* Release candidate layout only. Approved neon Online dialogs are deliberately unmodified. */
:is(#playerAccount,#moveList,#help,#musicTracks,#scoreBoard,#cheatMenu,#fullscreenHelp,.story-save-dialog){scrollbar-width:none;overscroll-behavior:contain}
:is(#playerAccount,#moveList,#help,#musicTracks,#scoreBoard,#cheatMenu,#fullscreenHelp,.story-save-dialog)::-webkit-scrollbar{display:none}
#playerAccount.player-account{width:min(1080px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 36px));max-width:none;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);padding:10px 16px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto}
#playerAccount::backdrop{background:linear-gradient(#020714d9,#020714ed);backdrop-filter:blur(3px)}
#playerAccount .account-heading{border:0;padding:0 100px 0 0;margin:0 0 3px}
#playerAccount .account-heading p{font-size:9px;margin:0}
#playerAccount h2{font-size:34px;background:none;padding:0;margin:0 0 5px}
#playerAccount .account-tabs{justify-content:flex-start;gap:6px;margin:0;padding:0 0 4px}
#playerAccount .account-tabs button{flex:0 0 auto;min-width:110px}
#playerAccount button{min-height:44px;padding:6px 12px;margin:2px 3px 2px 0;font-size:15px}
#playerAccount #accountStatus{background:transparent;border:0;min-height:0;margin:3px 0;padding:2px 0;font-size:13px}
#playerAccount #accountStatus:empty{display:none}
#playerAccount #accountSetupNotice{margin:2px 0;font-size:11px}
#playerAccount #accountPanel-account{position:relative}
#playerAccount #accountPanel-account>.account-secondary{position:absolute;right:0;top:0}
#playerAccount #openScores{font-size:12px;min-height:44px;padding:6px 12px}
#playerAccount form{width:100%;max-width:none;margin:6px 0}
#playerAccount #accountForm-signin{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 14px;padding:0;border:0;background:transparent;box-shadow:none}
#playerAccount #accountForm-signin .hub-welcome{grid-column:1/-1;background:none;font-size:30px;margin:2px 210px 0 0;padding:0;line-height:1.05}
#playerAccount .hub-welcome small{font-size:13px;display:inline;margin-right:6px}
#playerAccount #accountForm-signin>.account-note{grid-column:1/-1;margin:0;font-size:12px}
#playerAccount label{font-size:13px;margin:3px 0}
#playerAccount input{min-height:44px;height:44px;padding:8px 10px;font-size:16px;margin:3px 0 0}
#playerAccount .password-field button{margin:3px 0 0;min-height:44px;height:44px}
#playerAccount #accountForm-signin>button[type=submit]{width:auto;min-height:44px;margin:3px 0;font-size:20px}
#playerAccount #accountForm-signin>.account-secondary{gap:4px;align-items:center;justify-content:flex-end}
#playerAccount .account-secondary button{flex:0 1 auto;min-width:0;font-size:13px}
#playerAccount :is(#accountForm-signup,#accountForm-recover){max-width:780px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px}
#playerAccount :is(#accountForm-signup,#accountForm-recover)>:is(h3,p){grid-column:1/-1;margin:3px 0}
#playerAccount .profile-title{padding:4px 0;border:0;box-shadow:none;background:transparent}
#playerAccount #profileUsername{font-size:26px}#playerAccount #accountEmail{margin:2px 0}
#playerAccount .account-metrics{margin:6px 0;gap:8px}
#playerAccount .account-metrics div{padding:7px 5px;border-width:1px;background:#071529aa;box-shadow:none}
#playerAccount .account-metrics dd{font-size:28px;margin:0}#playerAccount h4{margin:8px 0 3px}
#playerAccount .unverified-stats{border:0;padding:0;background:none;margin:5px 0}
#playerAccount details{margin:5px 0;border:0;padding:0}#playerAccount summary{padding:6px 0}
#playerAccount .ranking-empty{border:0;box-shadow:none;background:transparent;min-height:100px;padding:12px}
#playerAccount #accountPanel-redeem{padding:6px 0;background:none}#playerAccount .account-eyebrow{border:0;font-size:24px;padding:0;margin:4px 0}
#playerAccount .reward-print{font-size:30px;margin:8px auto}#playerAccount .reward-heading{font-size:38px;margin:6px 0}#playerAccount .point-balance{font-size:40px}
#playerAccount #accountPanel-redeem p{margin:4px 0}
/* Narrow and short screens retain readable controls and unobtrusive overflow when needed. */
@media(max-width:620px){#playerAccount #accountForm-signin{grid-template-columns:1fr}#playerAccount #accountPanel-account>.account-secondary{position:static}#playerAccount #accountForm-signin .hub-welcome{margin-right:0}#playerAccount .account-tabs button{min-width:0}#playerAccount #accountForm-signin>.account-secondary{justify-content:flex-start}}
@media(orientation:landscape) and (max-height:600px){#playerAccount.player-account{padding:4px 10px;max-height:calc(100dvh - 12px)}#playerAccount h2{font-size:28px}#playerAccount .account-heading p{display:none}#playerAccount .account-tabs button{min-height:44px;padding:4px 10px}#playerAccount #accountForm-signin .hub-welcome{font-size:25px}#playerAccount #accountForm-signin>.account-note{font-size:11px}#playerAccount .account-secondary button{font-size:12px;padding:5px 8px}}
/* Let the SVG's intrinsic ratio set banner height; no stretching/cropping/negative target margins. */
#online #onlineHome .online-menu{width:min(410px,100%);gap:0 6px;grid-auto-rows:min-content;align-items:start;margin-bottom:0}
#online #onlineHome .online-art-action{min-height:44px;border:0;align-self:start}
#online #onlineHome .online-art-action .online-action-art{height:auto;max-height:none;aspect-ratio:auto}
#online #onlineHome :is(#onlineBack,#inviteFriend){margin-top:2px}
#online #onlineHome :is(#onlineBack,#inviteFriend) .online-action-art{height:44px;max-height:44px}
@media(orientation:landscape) and (max-height:600px){#online #onlineHome .online-menu{width:min(330px,100%)}#online #onlineHome{gap:0}}
/* Wide move list, two readable columns, no enclosing box or nested card frames. */
#moveList.frameless-moves{width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 32px);max-width:1400px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);padding:8px 12px;border:0;border-radius:0;background:linear-gradient(90deg,#061023ef,#07102ae6);box-shadow:none;overflow:auto}
#moveList::backdrop{background:#020715c9}
#moveList .move-list-top{display:flex;align-items:center;gap:16px;position:sticky;top:-8px;z-index:5;background:#061023ed;padding:4px 0}
#moveList #closeMoves{position:static;flex:none;margin:0;min-height:44px;font-size:15px;padding:7px 16px;box-shadow:none;border-width:1px}
#moveList #moveTitle{font:900 italic clamp(22px,3vw,32px)/1.05 'Barlow Condensed',Impact,sans-serif;margin:0}
#moveList.frameless-moves #moveRows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
#moveList .move-column{min-width:0;display:grid;gap:8px}
#moveList .move-group{min-width:0}
#moveList .move-group-title{font:900 15px/1.1 'Barlow Condensed',sans-serif;color:#00edff;margin:5px 0 4px;letter-spacing:1.5px}
#moveList.frameless-moves #moveRows article{min-height:0;padding:5px 0;margin:0 0 3px;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
#moveList.frameless-moves #moveRows article h3{font:900 16px/1.1 'Barlow Condensed',sans-serif;margin:0 0 3px;color:#ffec76}
#moveList.frameless-moves #moveRows strong{display:inline-block;font:800 14px/1.15 Arial,sans-serif;white-space:normal;margin:0;padding:2px 5px;border:0;background:#020713aa;color:#fff}
#moveList.frameless-moves #moveRows p{font:12px/1.25 Arial,sans-serif;margin:3px 0 0;color:#fff}
#moveList.frameless-moves #moveRows img{display:none}
#moveList.frameless-moves #moveRows .universal-combos{padding:0;border:0;background:none}
#moveList .universal-combos h3{display:none}
#moveList.frameless-moves #moveRows .universal-combos p{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin:4px 0}
#moveList.frameless-moves #moveRows .transformation-locked{border:0!important;background:none!important;opacity:.85}
#moveList.frameless-moves>p{font:12px/1.25 Arial,sans-serif;margin:7px 0;color:#c1cfdf}
#moveList :is(#practiceFinisher,#pinMoves){box-shadow:none;min-height:44px;margin:4px 8px 0 0;padding:6px 12px;font-size:14px}
@media(orientation:landscape) and (max-height:600px){#moveList.frameless-moves{max-height:calc(100dvh - 8px);padding:3px 8px}#moveList .move-list-top{top:-3px;padding:2px 0;gap:12px}#moveList #moveTitle{font-size:23px}#moveList .move-column{gap:3px}#moveList .move-group-title{margin:4px 0 2px;font-size:13px}#moveList.frameless-moves #moveRows article{padding:3px 0;margin:0}#moveList.frameless-moves #moveRows article h3{font-size:14px}#moveList.frameless-moves #moveRows p{font-size:12px;line-height:1.2}#moveList.frameless-moves>p{margin:5px 0;font-size:11px}}
@media(max-width:620px){#moveList.frameless-moves #moveRows{grid-template-columns:1fr}#moveList .move-list-top{align-items:flex-start}#moveList #moveTitle{font-size:23px}}
/* Other existing oversized overlays: remove enclosing frame, retain their controls. */
:is(#help,#musicTracks,#scoreBoard,#cheatMenu,#fullscreenHelp){width:min(1050px,94vw);max-width:none;max-height:92dvh;padding:14px 20px;border:0;border-radius:0;box-shadow:none;background:#061023ed;color:#fff;overflow:auto}
#help .guide{grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:12px}
#cheatMenu{columns:2;column-gap:20px}#cheatMenu>:is(h2,p,.story-debug,#cheatClose){column-span:all}#cheatMenu button[data-cheat]{break-inside:avoid;margin:4px 0;padding:8px;min-height:44px}
@media(max-width:620px){#cheatMenu{columns:1}#help .guide{grid-template-columns:auto 1fr}}
.story-save-dialog{box-sizing:border-box;width:min(780px,94vw);max-width:none;max-height:92dvh;overflow:auto;background:transparent;border:0;box-shadow:none;padding:12px 18px;color:#fff}
.story-save-dialog::backdrop{background:#020715ed;backdrop-filter:blur(3px)}
.story-save-dialog h2{font:900 italic clamp(28px,5vw,44px)/1 'Barlow Condensed',Impact,sans-serif;color:#fff300;text-shadow:3px 3px #ff008c;margin:6px 0 12px}
.story-save-dialog p{font:15px/1.4 'Barlow',Arial,sans-serif;max-width:700px;margin:8px 0}
.story-save-dialog button{min-height:44px;padding:8px 16px;margin:4px 6px 4px 0;background:#ed008f;color:white;border:1px solid #ff83df;font:900 italic 17px 'Barlow Condensed',Impact,sans-serif}
.story-save-dialog button:focus-visible,.story-save-dialog button.nav-selected{outline:3px solid #fff300;outline-offset:3px}
.story-save-dialog button:disabled{opacity:.4}
#storySaveScope{color:#a5eaff;font-size:13px}.story-menu-buttons{display:flex;gap:6px;flex-wrap:wrap}
#storySaveToast{position:fixed;left:50%;top:12px;transform:translateX(-50%);z-index:9999;background:#031325e8;color:#fff300;padding:10px 20px;font:900 18px 'Barlow Condensed',sans-serif;max-width:90vw;text-align:center}
#overlay:has(#storyPauseSave:not([hidden])){background:#041024eb!important;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:20px}
#overlay:has(#storyPauseSave:not([hidden]))::before{display:none}
#overlay:has(#storyPauseSave:not([hidden])) :is(h2,p,button){position:static!important;width:auto!important;height:auto!important;inset:auto!important;margin:2px 0;color:#fff;text-shadow:2px 2px #000}
#overlay:has(#storyPauseSave:not([hidden])) h2{font-size:32px}
#overlay:has(#storyPauseSave:not([hidden])) button{min-height:44px;padding:8px 20px;background:#071a32;border:1px solid #08d9ff;font-size:17px}
#overlay:has(#storyPauseSave:not([hidden])) button:is(:focus,.menu-selected){background:#bb0076;outline:2px solid #fff300}
#moveList.frameless-moves{background:transparent}
#moveList .move-list-top{background:transparent}
#moveList.frameless-moves #moveRows article:not(.universal-combos){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:start}
#moveList.frameless-moves #moveRows article:not(.universal-combos)>p{grid-column:1/-1}
#moveList.frameless-moves #moveRows article:not(.universal-combos)>strong{justify-self:end;max-width:180px}
#moveList.frameless-moves #moveRows p{font-size:14px}
@media(orientation:landscape) and (max-height:600px){#moveList.frameless-moves #moveRows p{font-size:12px}#moveList.frameless-moves #moveRows .move-group-title{font-size:14px;line-height:1.1;margin:4px 0 3px}}
.home-links{scrollbar-width:none}.home-links::-webkit-scrollbar{display:none}
#moveList::backdrop{background:#020715ed}
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden;scrollbar-width:none}
