/* Shared game-menu materials: plum frame, warm gold bevels, colored toy icons. */
#shell{--gm-panel:#382a37;--gm-deep:#251d2b;--gm-text:#fff0d2;--gm-gold:#e9bd7e;--gm-ink:#56372c}
#menu .gameIcon{width:36px;height:36px;flex:none;filter:drop-shadow(0 2px 0 #54342c20)}
#menu .menuHubGrid .gameHubTile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:104px;margin:0;padding:13px 6px;font-size:14px;line-height:1.3}
#menu .menuHubGrid .gameHubTile .gameIcon{width:38px;height:38px}
#menu .menuHubGrid #installAppButton{grid-column:1/-1;flex-direction:row;min-height:56px;background:linear-gradient(#b6e6dc,#7dcac2);border-color:#82bfb2}
#menu .menuHubGrid #installAppButton .gameIcon{width:29px;height:29px}
#menu .menuHubGrid #friendShareButton,#menu .menuHubGrid #cloudSettingsButton{grid-column:auto;width:100%;margin:0}
#menu .menuHubCard{max-height:88%;padding:20px}
#menu #menuOverlay{padding:18px;background:#170f27a3;backdrop-filter:blur(3px)}
#menu .menuOverlayCard{width:min(100%,460px);max-width:460px;max-height:90%;height:auto;min-height:0;border:3px solid var(--gm-gold);border-radius:24px;background:var(--gm-panel);color:var(--gm-text);box-shadow:0 0 0 4px #251b2a,0 9px 0 4px #17132188;overflow:hidden;text-shadow:none}
#menu .menuOverlayTop{background:var(--gm-panel);border-bottom:1px solid #74533e;padding:13px 16px;color:#ffe2a1;gap:12px}
#menu #menuPanelTitle{font-size:20px;letter-spacing:-.035em;color:#ffe2a1;text-shadow:0 2px #16101c}
#menu #closeMenuPanel{width:44px;height:44px;min-width:44px;border:2px solid #a67258;border-radius:14px;background:#765044;color:#fff1d5;box-shadow:0 3px #201726;font-size:24px}
#menu .menuOverlayScroll{padding:18px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bc9161 #2c212f;min-height:0}
#menu .menuPage{color:var(--gm-text);background:none}
#menu .menuPage h2{color:#ffdf9f;font-size:20px;text-shadow:none}
#menu .menuSettingsPage>h2{display:none}
#menu .settings{display:flex;flex-direction:column;gap:0;width:100%;margin:0;padding:0;border:0;background:none;box-shadow:none;color:var(--gm-text)}
#menu .gameControlSource,#menu .advancedSettings[hidden],#menu .gameSettingsPanel[hidden]{display:none!important}
#menu .gameSettingsTabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 20px;padding:0 0 15px;border-bottom:1px solid #775340}
#menu .gameSettingsTabs button{min-width:0;min-height:73px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:2px solid #87614c;border-radius:16px;background:#251d2b;color:#e5c6a0;font-size:12px;font-weight:850;box-shadow:0 3px #1e1624;padding:8px 2px;text-shadow:none}
#menu .gameSettingsTabs .gameIcon{width:29px;height:29px}
#menu .gameSettingsTabs button[aria-pressed=true]{border-color:#ffe3a0;background:linear-gradient(#ffe8a6,#efbd72);color:#56372c;box-shadow:inset 0 2px #fff7d1,0 3px #79503b}
#menu .gameSettingsPanel{display:flex;flex-direction:column;gap:18px}
#menu .gameChoiceField{border:0;padding:0;margin:0;min-width:0}
#menu .gameChoiceField legend{display:block;font-size:13px;font-weight:800;color:#ead0aa;margin:0 0 10px;padding:0}
#menu .gameChoiceGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#menu .gameChoiceGrid button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:86px;padding:10px 5px;border:2px solid #8a6650;border-radius:16px;background:#251d2b;color:#edd4b0;font-size:13px;font-weight:850;line-height:1.3;text-shadow:none;box-shadow:0 3px #1f1725}
#menu .gameChoiceGrid button[aria-pressed=true]{border-color:#ffda83;background:linear-gradient(#ffedbc,#edc78c);color:#59392a;box-shadow:inset 0 2px #fff7da,0 3px #835137}
#menu .gameChoiceGrid button[aria-pressed=true]::after{content:'✓';position:absolute;top:5px;right:7px;font-size:12px;font-weight:950;color:#68422b}
#menu .musicChoices .gameChoiceGrid,#menu .stairChoices .gameChoiceGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
#menu .musicChoices .gameChoiceGrid button,#menu .stairChoices .gameChoiceGrid button{min-height:77px;font-size:12px}
#menu .musicChoices .gameIcon,#menu .stairChoices .gameIcon{width:28px;height:28px}
#menu .touchControlChoices .gameChoiceGrid button{min-height:123px;font-size:13px}
#menu .touchControlChoices .gameIcon{width:53px;height:53px}
#menu .gameToggle{display:flex;align-items:center;gap:12px;border:2px solid #aa805b;border-radius:16px;background:#251d2b;color:#fce4bc;padding:11px 12px;min-height:62px;text-shadow:none;box-shadow:0 3px #201725;font-size:14px;font-weight:850}
#menu .gameToggleState{margin-left:auto;font-size:12px;background:#8d6254;padding:7px 11px;border-radius:20px;color:#fff2dc}
#menu .gameToggle[aria-pressed=true] .gameToggleState{background:#88d1be;color:#274a42}
#menu .effectSettings{padding:0;margin:0;border:0;background:none;box-shadow:none;display:flex;flex-direction:column;gap:9px}
#menu .effectSettings label{width:100%;color:#eed6b1;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:space-between;margin:0}
#menu .effectSettings output{color:#ffdc8b;font-size:13px}
#menu .volumeControls{display:flex;gap:10px;align-items:center;margin:0 0 5px}
#menu .volumeControls input[type=range]{flex:1;min-width:0;width:100%;height:44px;margin:0;padding:0;appearance:none;background:transparent;accent-color:#ffd375;cursor:pointer;touch-action:pan-y}
#menu .volumeControls input[type=range]::-webkit-slider-runnable-track{height:9px;border-radius:10px;background:#1e1726;border:1px solid #a47953}
#menu .volumeControls input[type=range]::-webkit-slider-thumb{appearance:none;width:25px;height:25px;margin-top:-9px;border:2px solid #73482e;border-radius:50%;background:linear-gradient(#fff3b6,#f8bf56);box-shadow:inset 0 2px #fffbe6,0 2px #1e152a}
#menu .volumeControls input[type=range]::-moz-range-track{height:8px;border-radius:10px;background:#1e1726;border:1px solid #a47953}
#menu .volumeControls input[type=range]::-moz-range-thumb{width:23px;height:23px;border:2px solid #73482e;border-radius:50%;background:#ffd375}
#menu .volumeControls button{min-width:66px;min-height:44px;padding:7px;border:2px solid #b58a5a;background:linear-gradient(#fff0ce,#e9c693);color:#593b2b;border-radius:13px;box-shadow:0 3px #76503b;font-size:11px;font-weight:850;text-shadow:none}
#menu .settingsHelp{margin:0;border:1px solid #775c48;border-radius:17px;padding:16px;background:#251d2b;color:#dcc7ac;box-shadow:none}
#menu .settingsHelp strong{color:#ffdda0;font-size:14px}
#menu .settingsHelp .help{color:#dcc7ac;line-height:1.8;font-size:12px;white-space:pre-line}
#menu .settings .gameNotification{display:flex;justify-content:center;align-items:center;min-height:48px;margin:0;border:2px solid #a5805b;background:#57403e;color:#ffe5b4;border-radius:14px;box-shadow:0 3px #211727;font-size:13px;font-weight:850}
/* Shop, records and ranking use the same surfaces; existing data/actions are retained. */
#menu .shopCatalogHero{min-height:0;padding:15px 17px;border:1px solid #785d48;border-radius:18px;background:#251d2b;color:#ffe2a0;box-shadow:none}
#menu .shopCatalogHero>span,#menu .shopCatalogHero>b{display:none}
#menu .shopCatalogHero strong{font-size:23px;line-height:1.3;color:#ffe2a0;text-shadow:none}
#menu .shopCatalogHero small{color:#c7b19b;font-size:11px}
#menu :is(.shopCategoryTabs button,.rankingModeTabs button,.rankRecordLink,.shopBackButton,.fashionShopAction,#rankSubmit,#rankRefresh){min-height:44px;border:2px solid #b28a5a;border-radius:13px;background:linear-gradient(#fff0ce,#e8c590);color:#59392a;text-shadow:none;box-shadow:0 3px #78503d;font-weight:850}
#menu :is(.shopCategoryTabs button.selected,.rankingModeTabs button.selected){border-color:#ffe3a1;background:linear-gradient(#ffe699,#edb953);color:#56372a}
#menu .shopCategoryHeading{color:#f5dbaa;margin-top:17px}
#menu .shopCategoryHeading span{color:#bfa387}
#menu .shopCollectionCard{border:2px solid #bc9264;border-radius:17px;background:#251d2b;box-shadow:0 4px #1e1625;overflow:hidden}
#menu .shopCardArt{background:radial-gradient(ellipse at center,#80684e,#42313d);border-radius:0}
#menu .shopCardNumber{background:#2d2231;color:#d9ba8d;border:0}
#menu .shopCardRibbon{background:#e2ba7f;color:#543829;border-color:#c7945c}
#menu .shopCardInfo{background:#251d2b;color:#ffe2a6;border:0}
#menu .shopCardInfo strong{color:#ffe2a6}
#menu .shopCardInfo small,#menu .shopCardInfo>span{color:#d3bba0}
#menu .shopEmptyCard .shopEmptyArt{color:#b99571}
#menu :is(.shopWallet,.recordEntry,.rankingMySummary,.rankForm,.rankLeaderboard,.fashionProduct,.fashionRequirements>div){border:1px solid #856345;background:#251d2b;color:#ecd0a5;border-radius:17px;box-shadow:none}
#menu .walletTitle,#menu .walletItems b{color:#ffe2a1}
#menu .recordGrid{gap:12px}
#menu .recordEntry{padding:17px 12px}
#menu .recordEntry span{color:#c9b197;font-size:12px}
#menu .recordEntry strong{color:#ffdb88;font-size:25px}
#menu .recordTop{background:linear-gradient(#64513b,#483337);border:2px solid #dcba78}
#menu :is(.rankingMySummary small,.rankLocalRecord,.rankingIntro,.rankDisclaimer,.recordFootnote,.shopCatalogHint,.shopFootnote){color:#ceb69c}
#menu .rankingMySummary strong,#menu .rankBoardHeading{color:#ffde99}
#menu .rankForm label{color:#ecd0a5}
#menu .rankForm input{min-height:48px;border:2px solid #9f7a54;border-radius:12px;background:#fff0d2;color:#4b3429}
#menu .rankList li{background:#493541;border-color:#7a5947;color:#f6d9ac}
#menu :is(.fashionPreviewBox,.fashionRequirements,.shopPureCosmetic){background:#42303b;border-color:#8b684b;color:#f1d8b5}
#menu .fashionProduct h2,#menu .fashionProduct p,#menu .fashionRequirements strong,#menu .fashionRequirements small{color:#ead2b1}
#menu :is(.comingPill,.shopPureCosmetic){color:#ffe1a4;background:#59433b;border:1px solid #9c7855}
#menu .menuPage[data-menu-page=characters] p{color:#d9c0a2}
/* Other menu dialogs, including cloud recovery and install, share the game frame. */
#shell :is(.cloudCard,.installCard,.dogpanVideoCard,.fashionConfirmCard,.dogpanExitCard,.dogpanPromptCard){border:3px solid var(--gm-gold);border-radius:24px;background:var(--gm-panel);color:var(--gm-text);box-shadow:0 0 0 4px #251b2a,0 9px 0 4px #17132188;text-shadow:none}
#shell :is(.cloudCard,.installCard,.dogpanVideoCard){max-width:460px}
#shell :is(.cloudCard,.installCard,.dogpanVideoCard,.fashionConfirmCard,.dogpanExitCard,.dogpanPromptCard) :is(h2,h3,strong){color:#ffe1a2;text-shadow:none}
#shell :is(.cloudSub,.cloudHint,.cloudWarning,.cloudStatus,.cloudCodeGroup label,.installCard p,.dogpanVideoCard p,.dogpanExitCard p,.dogpanPromptCard p){color:#e0c6a7}
#shell :is(.cloudCodeGroup,.cloudWelcome,.fashionConfirmTop,.fashionConfirmBody,.fashionConfirmCost,.fashionConfirmPicture,.fashionConfirmCondition,.dogpanVideoHeader){background:#2b2030;border-color:#795b47;color:#eed3a9}
#shell :is(.cloudCard input,.cloudCard textarea){border:2px solid #af8359;border-radius:12px;background:#fff0d2;color:#4b3429;font-size:15px}
#shell :is(.cloudCard,.installCard,.dogpanVideoCard,.fashionConfirmCard,.dogpanExitCard,.dogpanPromptCard) button{min-height:44px;border:2px solid #b58a5b;border-radius:13px;background:linear-gradient(#fff0ce,#e9c693);color:#593b2b;box-shadow:0 3px #76503b;text-shadow:none}
#shell :is(#cloudClose,#installClose,#videoClose,#fashionConfirmClose){min-width:44px;min-height:44px;background:#765044;color:#fff1d5;border-color:#a67258;font-size:22px}
#shell :is(.cloudWarning,.dogpanVideoLikeInvite){background:#4a3539;border:1px solid #98704d;border-radius:12px;padding:12px}
#shell .cloudTextButton,#shell .cloudLaterButton{background:none;box-shadow:none;border-color:transparent;color:#e7c9a2}
#shell .dogpanVideoHeader{padding:12px}
#shell .dogpanVideoCard a{color:#ffdf96}
#shell .fashionConfirmBadge{color:#4e3527;background:#f5d490}
#shell button:disabled{cursor:not-allowed}
#menu .gameChoiceGrid button:active,#menu .gameSettingsTabs button:active,#menu .gameHubTile:active{transform:translateY(2px)}
/* Same-origin embedded pet catalogue. Cosmetic skin only; purchase logic is untouched. */
html.gamePetSkin,html.gamePetSkin body{background:#382a37;color:#fff0d2}
.gamePetSkin .lab-frame,.gamePetSkin main,.gamePetSkin .catalog,.gamePetSkin .details{background:#382a37;color:#fff0d2;border-color:#bc9468;box-shadow:none}
.gamePetSkin :is(.hero,.wallet,.infopanel,.requirements,.cost-row,.condition,.levelselector,.stage,.pet-card){background:#251d2b;border-color:#a98056;color:#f5d8aa;box-shadow:none;border-radius:17px}
.gamePetSkin :is(h1,h2,h3,strong,.sectionhead,.pet-name,.abilityhero b){color:#ffdfa1;text-shadow:none}
.gamePetSkin :is(p,small,.detailcount,.paneltop,.disclaimer,.catalog-footer,.detailnotice){color:#d8bea2}
.gamePetSkin .hero{min-height:0;padding:17px}
.gamePetSkin .hero h1{font-size:25px}
.gamePetSkin .hero .eyebrow,.gamePetSkin .hero-decor{display:none}
.gamePetSkin button{min-height:44px;border:2px solid #b68b5d;border-radius:13px;background:linear-gradient(#fff0ce,#e8c38f);color:#593b2b;box-shadow:0 3px #76503b;text-shadow:none}
.gamePetSkin button.selected{background:#f6cb73;border-color:#ffe3a1}
.gamePetSkin .pet-info,.gamePetSkin .pet-art{background:#3d2d38;color:#f5d8aa}
.gamePetSkin .levelbuttons{gap:8px}
@media(max-width:350px){#menu #menuOverlay{padding:12px}#menu .menuOverlayScroll{padding:13px}#menu .gameSettingsTabs{gap:5px}#menu .gameSettingsTabs button{font-size:10px;min-height:67px}#menu .gameChoiceGrid{gap:8px}#menu .gameChoiceGrid button{font-size:12px}#menu .menuHubGrid .gameHubTile{min-height:89px;font-size:13px}#menu .menuHubCard{padding:16px}}
@media(max-height:650px){#menu .menuOverlayCard{max-height:94%}#menu .menuOverlayTop{padding:8px 13px}#menu .menuHubCard{max-height:94%}#menu .menuHubGrid .gameHubTile{min-height:84px;gap:5px}#menu .menuHubGrid .gameHubTile .gameIcon{width:30px;height:30px}#menu .menuHubHeader{margin-bottom:12px}#menu .lobbyVersion{margin-top:12px}}
/* Contrast and responsive finishing for nested catalogue surfaces. */
#menu .menuPage p{color:#d6bea2}
#menu :is(.shopFootnote,.recordFootnote,.shopCatalogHint){color:#cdb59d!important}
#menu .shopCategoryTabs{background:#251d2b;border-color:#795b47}
#menu .shopCategoryHeading>strong{color:#ffdfa1}
#menu .shopCategoryHeading>span{background:#251d2b;color:#d3b38c;border-color:#876849}
#menu .shopCatalogHero::before{display:none}
#menu .shopEmptyArt{background:#56464a;border-color:#8e775d}
#menu .rankingMySummary>div,#menu .rankBoardHeading{background:#493541;border-color:#896647;color:#ffdda1}
#menu .rankBoardHeading strong{color:#ffe2a1}
#menu .difficultyChoices .gameChoiceGrid{grid-template-columns:repeat(3,minmax(0,1fr))}
#menu .touchControlChoices .gameIcon{width:70px;height:60px}
#menu .gameSettingsTabs{position:sticky;top:-18px;z-index:2;background:#382a37;padding-top:8px}
.gamePetSkin .walletname,.gamePetSkin .money,.gamePetSkin .pet-number,.gamePetSkin .sectionhead small,.gamePetSkin .pet-card-info small,.gamePetSkin .card-foot span,.gamePetSkin .card-foot b{color:#d9b78f}
.gamePetSkin .pagebadge{background:#251d2b;color:#ffdfa1;border-color:#b58c60}
.gamePetSkin .pet-card:nth-child(n){background:#251d2b}
.gamePetSkin .pet-card:nth-child(n) .pet-art{background:radial-gradient(ellipse at center,#9d8e80,#635662)}
.gamePetSkin .pet-card[data-pet='1'] .pet-art{background:radial-gradient(ellipse at center,#7f674d,#42313d)}
.gamePetSkin .hero::before{display:none}
.gamePetSkin .abilityhero,.gamePetSkin .lvcomparison div,.gamePetSkin .cost-item{background:#493541;border-color:#876647;color:#f0d2ab}
.gamePetSkin .lvcomparison .active{background:#6a5140;border-color:#e2b77c}
.gamePetSkin .levelbuttons button.selected{background:#f6cb73;border-color:#ffe3a1;color:#563b2b;box-shadow:0 3px #76503b}
.gamePetSkin .lvcomparison b,.gamePetSkin .cost-item strong,.gamePetSkin .condition strong{color:#ffe1a0}
.gamePetSkin .cost-item em,.gamePetSkin .cost-item small,.gamePetSkin .infopanel p,.gamePetSkin .abilityhero small{color:#d8bea2}
#shell #paused{background:#382a37ed;color:#fff0d2}
#shell #paused h1{color:#ffe1a0;text-shadow:0 3px #22182b}
#shell #paused .tagline{color:#d9bfa3}
#shell #paused button{min-height:52px;border:3px solid #b9905e;border-radius:17px;background:linear-gradient(#fff0ce,#e9c693);color:#593b2b;box-shadow:0 4px #76503b;text-shadow:none}
#menu .rankStatus{color:#d6bd9d}
#menu .rankDisclaimer{color:#c8b29d!important}
#menu .volumeControls input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,#e8b65b var(--gm-fill,0%),#1e1726 var(--gm-fill,0%))}
#menu .volumeControls input[type=range]::-moz-range-progress{background:#e8b65b;height:8px;border-radius:9px}
#shell .dogpanVideoEntry{background:#251d2b;border-color:#9b7553;border-radius:15px}
#shell .dogpanVideoEntry img{background:#251d2b}
#shell .dogpanChannelLink{background:linear-gradient(#fff0ce,#e9c693);border:2px solid #b58a5b;border-radius:13px;color:#593b2b!important;box-shadow:0 3px #76503b;text-shadow:none}
.gamePetSkin .levelselector>span{color:#d6b68f}
.gamePetSkin .coming-small,.gamePetSkin .stage-overlay{background:#71543f;color:#ffe2aa}
.gamePetSkin .stage-tag{background:#edc88e;color:#593b2b}
.pushNotice .pushNoticeCard{background:#382a37;color:#fff0d2;border:3px solid #e9bd7e;border-radius:24px;box-shadow:0 0 0 4px #251b2a,0 9px 0 4px #17132188}
.pushNotice .pushNoticeCard h2{color:#ffdfa1}
.pushNotice .pushNoticeCard #pushStatus{color:#d8bea2!important}
.pushNotice .pushNoticeCard button{min-height:48px;background:linear-gradient(#fff0ce,#e9c693);border:2px solid #b58a5b;color:#593b2b;border-radius:13px;box-shadow:0 3px #76503b}

/* Existing Bangtan artwork, decorative next to the localized mode name. */
#modeChooser .modeChoice>strong{display:flex;align-items:center;gap:8px}
#modeEscape .modeBangtanIcon{width:36px;height:36px;object-fit:contain;image-rendering:pixelated;flex:none}
#modeChooser .modeChoice small{white-space:normal;line-height:1.65;overflow-wrap:break-word}

#modeTime .modeClockIcon{width:36px;height:36px;flex:none;display:grid;place-items:center;font-size:22px;line-height:1}
