#gameMenu{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:max(18px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:radial-gradient(circle at 50% 28%,rgba(56,24,84,.88),rgba(7,6,13,.96) 68%);opacity:0;visibility:hidden;pointer-events:none;transition:.22s ease}
#gameMenu.show{opacity:1;visibility:visible;pointer-events:auto}
.menuShell{width:min(760px,96vw);max-height:94vh;overflow:auto;padding:22px;border:1px solid rgba(207,186,255,.24);border-radius:24px;background:rgba(11,9,20,.88);box-shadow:0 26px 90px rgba(0,0,0,.48);backdrop-filter:blur(18px);text-align:center}
.menuEyebrow{font-size:10px;font-weight:900;letter-spacing:.17em;color:#bfefff}
.menuShell h1{margin:7px 0 5px;font-size:clamp(26px,6vw,48px);line-height:1;letter-spacing:-.045em}
.menuSub{max-width:600px;margin:0 auto 16px;color:#bcb8cf;font-size:12px;line-height:1.45}
.heroChoices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.heroChoice{display:grid;grid-template-rows:minmax(150px,1fr) auto auto;min-height:280px;padding:12px;border-radius:20px;background:linear-gradient(180deg,rgba(34,25,51,.90),rgba(13,11,22,.94));border:1px solid rgba(203,181,255,.22);box-shadow:0 12px 30px rgba(0,0,0,.26);overflow:hidden}
.heroChoice:active{transform:scale(.985)}
.heroChoice.gb1:hover,.heroChoice.gb1:focus-visible{border-color:rgba(255,84,190,.74);box-shadow:0 0 30px rgba(239,61,159,.17),0 12px 30px rgba(0,0,0,.3)}
.heroChoice.gb2:hover,.heroChoice.gb2:focus-visible{border-color:rgba(76,226,223,.74);box-shadow:0 0 30px rgba(30,201,200,.17),0 12px 30px rgba(0,0,0,.3)}
.heroArt{display:grid;place-items:center;min-height:0}
.heroArt svg{width:min(100%,230px);height:auto;filter:drop-shadow(0 14px 16px rgba(0,0,0,.3))}
.heroChoice strong{font-size:19px;letter-spacing:.04em}.heroChoice span{margin-top:3px;font-size:11px;color:#c7c3d5}
.menuSettings{display:flex;justify-content:center;gap:10px 18px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}
.menuSettings label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:750;color:#d8d4e4;cursor:pointer}
.menuSettings input{width:18px;height:18px;accent-color:#b969ff}
.menuNote{margin-top:12px;font-size:10px;color:#9d98ae;letter-spacing:.035em}
body.menuOpen #ui{filter:blur(1.5px);opacity:.32!important}
body.cleanMode .top,body.cleanMode #lightingPanel,body.cleanMode #characterPanel,body.cleanMode .playBadge,body.cleanMode #hint,body.cleanMode #activateBtn,body.cleanMode #dropBtn,body.cleanMode #viewBtn{display:none!important}
body.cleanMode .portalControls{width:auto;left:50%;bottom:max(12px,env(safe-area-inset-bottom));gap:0}
body.cleanMode .minorRow{display:block}body.cleanMode #resetBtn{min-width:116px;min-height:40px;font-size:9px;background:rgba(9,8,17,.76)}
body.gb83 #actionTouchBtn{border-color:rgba(95,225,255,.68);background:linear-gradient(180deg,rgba(25,66,87,.92),rgba(9,26,40,.94));box-shadow:0 0 0 1px rgba(95,225,255,.12) inset,0 0 18px rgba(68,208,255,.08),0 8px 22px rgba(0,0,0,.2)}
body.gb83 #actionTouchBtn.active{border-color:#c9f7ff;background:linear-gradient(180deg,rgba(70,132,158,.96),rgba(27,68,94,.96));box-shadow:0 0 24px rgba(92,224,255,.42),0 0 48px rgba(155,91,255,.18)}
@media(max-width:620px){#gameMenu{padding:10px}.menuShell{padding:15px;border-radius:19px}.menuShell h1{font-size:29px}.menuSub{font-size:10.5px;margin-bottom:10px}.heroChoices{gap:8px}.heroChoice{min-height:220px;padding:8px;border-radius:16px;grid-template-rows:minmax(115px,1fr) auto auto}.heroArt svg{width:min(100%,175px)}.heroChoice strong{font-size:16px}.menuSettings{margin-top:10px;padding-top:10px;gap:9px 14px}.menuSettings label{font-size:10px}.menuNote{font-size:9px;margin-top:8px}}
@media(max-height:620px) and (orientation:landscape){.menuShell{padding:10px 16px}.menuShell h1{font-size:24px}.menuSub{display:none}.heroChoices{max-width:560px;margin:auto}.heroChoice{min-height:185px;grid-template-rows:130px auto auto}.heroArt svg{height:130px;width:auto}.menuSettings{margin-top:8px;padding-top:8px}.menuNote{display:none}}
