.game-menu-button { position:fixed; z-index:40; right:12px; top:calc(10px + var(--safe-top)); width:46px; height:46px; border:1px solid rgba(255,255,255,.14); border-radius:15px; background:linear-gradient(145deg,#29435f,#16283e); color:#eef6ff; font-size:24px; font-weight:900; line-height:1; box-shadow:0 7px 20px #06111f66; }
.game-menu { position:fixed; inset:0; z-index:40; display:grid; place-items:center; padding:18px; background:rgba(5,9,16,.68); backdrop-filter:blur(6px); }
.game-menu[hidden], .game-confirm[hidden] { display:none; }
.game-menu-panel { position:relative; width:min(344px,100%); border:1px solid rgba(148,180,218,.28); border-radius:26px; background:linear-gradient(155deg,#1d2c41,#111b2a); color:#edf5ff; padding:20px; box-shadow:0 24px 70px #000b,inset 0 1px rgba(255,255,255,.06); }
.game-menu-panel h2 { margin:1px 48px 17px 2px; font-size:24px; }
.game-menu-action { display:grid; grid-template-columns:50px 1fr; align-items:center; width:100%; border:1px solid rgba(154,184,220,.2); border-radius:17px; background:linear-gradient(145deg,rgba(54,76,105,.78),rgba(38,55,78,.78)); color:#eef5ff; padding:10px 12px; margin:0 0 9px; text-align:left; }
.game-menu-action:active { transform:scale(.985); }
.game-menu-icon { display:grid; place-items:center; width:40px; height:40px; border:1px solid rgba(163,195,235,.16); border-radius:13px; background:#142135; color:#dceaff; font-size:17px; font-style:normal; font-weight:900; }
.game-menu-copy b,.game-menu-copy span { display:block; }.game-menu-copy b{font-size:15px}.game-menu-copy span{color:#aebfd3;font-size:11px;line-height:1.35;margin-top:3px}
.game-menu-close { position:absolute; right:15px; top:15px; width:36px; height:36px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:#111d2d; color:#bfcde0; font-size:22px; line-height:1; }
.game-confirm { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:18px; background:rgba(5,8,13,.74); backdrop-filter:blur(7px); }
.game-confirm-box { width:min(330px,100%); border:1px solid rgba(154,184,220,.25); border-radius:24px; padding:22px; background:linear-gradient(155deg,#202e42,#121c2b); color:#eef2f6; text-align:left; box-shadow:0 24px 70px #000b; }
.game-confirm-box b { display:block; margin-bottom:8px; font-size:21px; }.game-confirm-box p{margin:0 0 20px;color:#aebed0;font-size:13px;line-height:1.45}.game-confirm-row{display:flex;justify-content:flex-end;gap:9px}.game-confirm-row button{border:0;border-radius:13px;min-width:96px;min-height:44px;padding:0 16px;font-weight:850}.game-confirm-cancel{background:#29384c;color:#dce7f5}.game-confirm-yes{background:linear-gradient(145deg,#50dc7d,#32bb62);color:#0d2616}
/* Keep the board and its numerical game pieces; move prose and restart into menus. */
#menuButton.game-menu-button{left:max(12px,env(safe-area-inset-left));right:auto;top:max(12px,env(safe-area-inset-top));z-index:45;padding:0;display:grid;place-items:center}
.game-menu,.game-confirm{z-index:1000}.game-menu button,.game-confirm button{font-family:inherit;cursor:pointer}
.back,.top,.score,#stats,#status,#message,.caption,#level-controls,#hammer-prompt,#quest,#quest-banner,.hud{display:none!important}
.cube #controls{display:none!important}
.cube #scene,.bridge #scene{top:0;height:100dvh;width:100%;left:0}
.blast #scene{top:0;height:calc(100dvh - 175px)}
.controls-row button{font-size:0!important;min-width:42px}.controls-row button::after{content:attr(data-icon);font-size:23px}
#attempt-hud{top:150px} .game-menu-copy,.game-confirm-box{font-size:14px}
