*{scrollbar-width:none!important}*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#settingsScreen.compactOverlay,#creditScreen.compactOverlay{display:grid!important;place-items:center;padding:16px!important;overflow:hidden!important;background:#102e3bbd!important;backdrop-filter:blur(7px);z-index:30}
#settingsScreen[hidden],#creditScreen[hidden]{display:none!important}
.compactCard{width:min(620px,calc(100vw - 32px));height:min(480px,calc(100dvh - 32px));background:#fff4dc;border:3px solid #d7b77e;border-radius:25px;box-shadow:0 18px 60px #071d2d70,inset 0 2px 0 #fff;display:flex;flex-direction:column;overflow:hidden}
.compactCard .screenHeader{width:100%;flex:none;margin:0!important;padding:16px 22px!important;background:#fff4dc;border-bottom:1px solid #d9c397;gap:18px}
.compactCard .screenHeader h2{font-size:27px!important}.compactCard .screenHeader button{min-height:42px;padding:8px 18px}
.compactBody{padding:18px 24px;overflow:auto;min-height:0;flex:1}.settingsBody{display:flex;flex-direction:column;justify-content:center;gap:12px}
.gameSetting{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 12px;background:#f0e3c9;border-radius:13px;min-height:55px;font-weight:600;font-size:16px}
.appScreen .gameToggle{width:92px;min-height:37px;padding:5px 12px;border:2px solid #244b53;background:linear-gradient(#b4dca0,#7ab76b);box-shadow:inset 0 2px 0 #ffffff7a,inset 0 -4px 0 #4c81505e;color:#214d44;border-radius:12px}
.appScreen .gameToggle[aria-checked="false"]{background:linear-gradient(#e3d9cf,#bcafa3);color:#665d55}.qualityButtons{display:flex;gap:6px}
.appScreen .qualityButtons button{min-width:70px;min-height:38px;padding:6px 10px;border:2px solid #728982;border-radius:11px;background:#f9f3e7;color:#5a736d;box-shadow:inset 0 -3px 0 #c5bba833;font-size:14px}
.appScreen .qualityButtons button[aria-pressed="true"]{border-color:#244b53;background:linear-gradient(#ffdf86,#f4b745);color:#244b53;box-shadow:inset 0 2px 0 #fff4c1,inset 0 -3px 0 #bf833f6b}
.autoSaveNote{text-align:center;font-size:12px!important;margin:0!important}
#creditScreen .aboutCard{width:100%;margin:0;padding:18px 24px;flex:1;min-height:0;overflow:auto;background:transparent;border:0;border-radius:0;box-shadow:none;display:block}
#creditScreen .aboutGame{padding-bottom:10px;gap:14px}.aboutGame img{width:60px;height:60px}.aboutGame h3{font-size:22px}
#creditScreen .aboutCredits{margin:6px 0 12px}#creditScreen .aboutCredits>div{padding:8px 0}
#creditScreen .aboutLinks{gap:8px}#creditScreen .aboutLinks a,#creditScreen .aboutLinks button{min-height:42px;font-size:13px;padding:8px}
#creditScreen .aboutFoot{margin:10px 0 0;font-size:11px}
#levelDialog{padding:0!important;overflow:hidden!important;width:min(780px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);border-radius:24px;border:3px solid #d7b77e}
#levelDialog[open]{display:flex;flex-direction:column}
#levelDialog .dialogHead{position:relative;top:auto;z-index:2;flex:none;width:100%;margin:0!important;padding:17px 20px;background:#fff4dc!important;border-radius:0;border-bottom:1px solid #d9c397;box-sizing:border-box}
#levelDialog .levelScroll{overflow:auto;min-height:0;padding:16px 18px 20px;overscroll-behavior:contain;touch-action:pan-y;scroll-padding:12px}
#legalScreen .legalBody{scrollbar-gutter:auto}#mainMenu #menuSpecial[data-locked="true"]{filter:none;opacity:1}
.specialNotice{width:min(450px,calc(100vw - 32px));padding:27px;text-align:center;border:3px solid #d7b77e;border-radius:26px;background:#fff4dc;overflow:hidden}
.specialNotice::backdrop{background:#102e3bbd;backdrop-filter:blur(7px)}.specialNotice h2{font-size:30px;margin:8px 0 12px}.specialNotice p{font-size:16px;line-height:1.5;color:#527265}.specialNotice .section{font-size:10px;letter-spacing:2px}.specialNotice button{width:100%;margin-top:10px;min-height:44px}
.specialStars{display:flex;align-items:center;justify-content:center;gap:20px;color:#f2b43f;text-shadow:0 3px 0 #ba7d37;font-size:28px}.specialStars span:nth-child(2){font-size:58px;animation:starWelcome 1.4s ease-in-out infinite alternate}@keyframes starWelcome{to{transform:translateY(-4px) rotate(5deg)}}
@media(max-height:540px) and (min-width:600px){.compactCard{height:calc(100dvh - 24px);width:min(650px,calc(100vw - 28px))}.compactCard .screenHeader{padding:9px 18px!important}.compactCard .screenHeader h2{font-size:23px!important}.compactCard .screenHeader button{min-height:35px;padding:6px 14px}.compactBody{padding:12px 18px}.settingsBody{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:10px}.gameSetting{padding:8px;font-size:14px}.graphicsRow,.autoSaveNote{grid-column:1/-1}#creditScreen .aboutCard{display:grid;grid-template-columns:1fr 1fr;gap:9px 20px;padding:12px 18px}#creditScreen .aboutGame{padding:0;border:0;grid-column:1}#creditScreen .aboutGame img{width:48px;height:48px}#creditScreen .aboutGame h3{font-size:20px}#creditScreen .aboutCredits{grid-column:1;margin:0}#creditScreen .aboutCredits>div{padding:5px 0}#creditScreen .aboutCredits dt,#creditScreen .aboutCredits dd{font-size:12px}#creditScreen .aboutLinks{grid-column:2;grid-row:1/3;align-content:center}#creditScreen .aboutFoot{grid-column:1/-1;margin:0}.specialNotice{padding:14px 24px}.specialStars{font-size:20px}.specialStars span:nth-child(2){font-size:38px}.specialNotice h2{font-size:25px;margin:4px 0}.specialNotice p{margin:6px 0}}
@media(max-width:430px){.compactCard .screenHeader{padding:13px 16px!important}.compactBody,#creditScreen .aboutCard{padding:16px}.gameSetting{font-size:14px;gap:6px;padding:8px}.qualityButtons{gap:4px}.appScreen .qualityButtons button{min-width:54px;padding:5px 7px;font-size:13px}.aboutCredits dt,.aboutCredits dd{font-size:13px}.aboutCredits>div{gap:8px}.specialNotice h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){.specialStars span{animation:none!important}}
@media(max-height:500px) and (orientation:landscape){#mainMenu .menuLayout{min-height:calc(100dvh - 24px);gap:10px;justify-content:center}#mainMenu .menuHero h1{font-size:35px!important}#mainMenu .menuButtons{gap:6px!important}#mainMenu .menuButtons button{min-height:36px!important;height:36px;padding:5px 12px 8px!important;font-size:14px!important}#mainMenu .menuButtons #menuStory{min-height:40px!important;height:40px;font-size:16px!important}#mainMenu .studioName{font-size:10px!important;margin:0 0 6px!important}}
@media(max-height:360px) and (orientation:landscape){#mainMenu .menuHero h1{font-size:28px!important}#mainMenu .menuButtons{gap:4px!important}#mainMenu .menuButtons button{min-height:30px!important;height:30px;padding:3px 12px 6px!important;font-size:13px!important}#mainMenu .menuButtons #menuStory{min-height:34px!important;height:34px;font-size:15px!important}}
