/* ════════════════════════════════════════════════════════════════════════
   megacode.css — the Megacode Simulator's page (megacode.html, 2026-11-12)

   The simulator itself is megacode-sim.html (GENERATED, data/build_megacode_page.mjs):
   a whole window of 3D with its own styles, so it runs in a frame that fills the
   page under the top bar, as a game does on games.html. This file is the frame's
   box, the title's mark, and the "Coming soon" card that a level which may not
   open the simulator yet sees instead (js/megacode-gate.mjs).

   The sidebar is the 56 px rail for good (js/sidebar-rail.js data-fixed; css/sidebar-rail.css
   moves <main>), and beside it there is NO top bar (2026-11-14, the owner: "remove the
   standard header, and leave only the compacted side bar", for the height): body.rail-mode
   is set everywhere but on a phone, where the sidebar is the drawer and the top bar holds
   its menu button, so the bar is hidden by that class and a phone keeps it. On a phone
   css/mobile.css takes the margin away.
   ════════════════════════════════════════════════════════════════════════ */

body.mg-page { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: #e9edf2; overflow: hidden; }

body.rail-mode .app-sidebar > .h-\[62px\] { display: none !important; }   /* the logo row's inline display would beat the rail's rule */

/* the page is the frame: everything under the top bar, nothing scrolls outside it */
.mg-main { margin-left: 230px; padding-top: 62px; height: 100vh; height: 100dvh; box-sizing: border-box; }
/* no top bar beside the rail: the frame runs from the top of the window to the bottom */
body.mg-page.rail-mode #topBar { display: none !important; }
body.mg-page.rail-mode .mg-main { padding-top: 0; }
.mg-frame { display: block; width: 100%; height: 100%; border: 0; background: #e9edf2; }

/* the title in the top bar, with the simulator's own mark */
.mg-crumbs { display: flex; align-items: center; gap: 8px; margin-left: 4px; flex-shrink: 0; color: #26408b; }
.mg-crumbs h1 { margin: 0; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.2px; color: #181c1f; white-space: nowrap; }
.mg-pill { margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(38, 64, 139, .08); border: 1px solid rgba(38, 64, 139, .22);
    font: 700 10.5px/1.6 'Inter', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #26408b; white-space: nowrap; }
.mg-pill[hidden] { display: none; }

/* "Coming soon": what a level that may not open it yet sees */
.mg-soon { height: 100%; display: grid; place-items: center; padding: 24px; box-sizing: border-box;
    background: radial-gradient(1200px 700px at 50% 30%, #f6f8fb 0%, #e9edf2 70%); }
.mg-soon[hidden] { display: none; }
.mg-soon-card { max-width: 440px; text-align: center; padding: 40px 36px 34px; border-radius: 24px; background: #fff;
    border: 1px solid #e0e3e7; box-shadow: 0 12px 40px rgba(22, 31, 41, .10); }
.mg-soon-mark { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: rgba(38, 64, 139, .08); color: #26408b; }
.mg-soon-tag { margin: 18px 0 6px; font: 700 11.5px/1 'Inter', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #b07a12; }
.mg-soon-card h2 { margin: 0; font: 700 1.6rem/1.15 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; letter-spacing: -0.3px; color: #181c1f; text-wrap: balance; }
.mg-soon-sub { margin: 10px 0 24px; font-size: 0.94rem; line-height: 1.55; color: #5b6678; text-wrap: pretty; }
.mg-soon-btn { display: inline-block; padding: 11px 22px; border-radius: 12px; background: #26408b; color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background .15s; }
.mg-soon-btn:hover { background: #1d3269; color: #fff; }
.mg-soon-btn:focus-visible { outline: 2px solid #26408b; outline-offset: 3px; }
