/* v0.15.230 (#599 — Alex's HANDOFF_menus_and_deck_builder §2, rev 2): the Nexus main menu — the painting full screen with a dark left gradient, the
   living scene on one canvas, the SVG title lockup (hammered gold, the Nexus glow, the 7 s shine, the 1.6 s wipe), CLAN BLACKCORE, the menu of large
   titles down the left (hover lights, shifts, a blue diamond, the one-liner), the small links, the Settings and Credits panels. */
:root { --nx-gold: #e2b956; --nx-gold2: #ffe9a8; --nx-ink: #efe3c4; --nx-mute: #a89a7c; --nx-blue: #7fd0ff; }
body.menu-page { margin: 0; background: #05040a; color: var(--nx-ink); font-family: 'Alegreya Sans', Georgia, sans-serif; overflow: hidden; min-height: 100vh; }
body.menu-page::after { display: none; } /* the version watermark sits in .nx-ver */
.nx-stage { position: fixed; inset: 0; overflow: hidden; background: #05040a url('../assets/menu/menu_nexus_gate.jpg?v=0.15.528') center / cover no-repeat; }
.nx-canvas { position: absolute; left: 50%; top: 50%; width: max(100vw, calc(100vh * 1920 / 1074)); height: max(100vh, calc(100vw * 1074 / 1920)); transform: translate(-50%, -50%); }
.nx-vig { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #05040ad9 0, #05040a99 26%, #0000 48%), radial-gradient(ellipse at 68% 45%, #0000 40%, #0007 100%); }
.nx-menu.menu-container { position: absolute; left: 5.5%; top: 8%; width: 36%; max-width: none; margin: 0; padding: 0; text-align: left; z-index: 3; }
/* the title */
.nx-title.game-logo { position: relative; width: 100%; margin: 0 0 0 -2%; }
.nx-title svg { width: 100%; height: auto; overflow: visible; display: block; }
.nx-glowA, .nx-glowB { will-change: opacity; animation: nx-gp 4.5s ease-in-out infinite; } .nx-glowB { animation-delay: -2.25s; }
@keyframes nx-gp { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.85; } }
.nx-sub { display: flex; align-items: center; gap: 14px; margin: 10px 0 0 4%; font: 700 clamp(11px, 1.05vw, 17px) Cinzel, serif; letter-spacing: 0.42em; text-transform: uppercase; color: #d8c08a; opacity: 0; animation: nx-fu 1s ease-out 2.4s forwards; }
.nx-sub::before, .nx-sub::after { content: ''; height: 1px; width: 42px; background: linear-gradient(90deg, #0000, #e2b956, #0000); }
@keyframes nx-fu { from { opacity: 0; letter-spacing: 0.9em; } to { opacity: 1; } }
/* the menu */
.nx-items { margin-top: 5%; opacity: 0; animation: nx-fi 0.8s ease-out 2.8s forwards; }
@keyframes nx-fi { to { opacity: 1; } }
.nx-items .menu-btn.nx-mi { display: block; position: relative; padding: 0.55vw 0 0.55vw 2vw; margin: 0; cursor: pointer; background: none; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; text-align: left; width: auto; }
.nx-items .menu-btn.nx-mi[hidden] { display: none; }
.nx-mi .btn-title { display: block; font: 700 clamp(15px, 1.55vw, 26px) Cinzel, serif; letter-spacing: 0.06em; color: #e9dcb8; transition: 0.18s; margin: 0; }
.nx-mi .btn-desc { display: block; font-size: clamp(11px, 0.85vw, 14px); color: var(--nx-mute); max-height: 0; opacity: 0; overflow: hidden; transition: 0.25s; margin: 0; }
.nx-mi::before { content: ''; position: absolute; left: 0; top: 1.1vw; width: 0.8vw; height: 0.8vw; transform: rotate(45deg) scale(0.4); border: 1.5px solid var(--nx-blue); opacity: 0; transition: 0.2s; box-shadow: 0 0 10px #4aa8ff; }
.nx-mi:hover .btn-title, .nx-mi.cur .btn-title { color: var(--nx-gold2); text-shadow: 0 0 18px #7fd0ff66; transform: translateX(6px); }
.nx-mi:hover .btn-desc, .nx-mi.cur .btn-desc { max-height: 40px; opacity: 1; }
.nx-mi:hover::before, .nx-mi.cur::before { opacity: 1; transform: rotate(45deg) scale(1); }
.nx-run.save-info { margin: 6px 0 0; padding: 6px 10px; border: 1px solid #3a4a6a; border-radius: 7px; background: #05081299; font-size: clamp(10px, 0.8vw, 13px); color: #cdd6e4; width: max-content; max-width: 100%; text-align: left; }
.nx-run em { font-style: normal; color: #9ad0ff; } .nx-run b { color: var(--nx-gold2); }
.nx-links { display: flex; gap: 18px; margin: 4% 0 0 2vw; }
.nx-links a { font: 600 clamp(10px, 0.75vw, 13px) Cinzel, serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nx-mute); cursor: pointer; text-decoration: none; }
.nx-links a:hover { color: #9ad0ff; }
.nx-ver { position: fixed; right: 10px; bottom: 6px; font-size: 11px; color: #6a5e4a; }
/* the panels */
.nx-panel { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: #05040acc; opacity: 0; transition: opacity 0.2s; }
.nx-panel.on { opacity: 1; } .nx-panel[hidden] { display: none; }
.nx-panel-in { width: min(92vw, 460px); padding: 1.4rem 1.6rem 1.2rem; border-radius: 12px; background: #16110c; border: 1px solid #4a3a26; box-shadow: 0 18px 50px #000c; color: var(--nx-ink); }
.nx-panel-in h2 { margin: 0 0 0.9rem; font: 700 1.1rem Cinzel, serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-gold); }
.nx-panel-in p { margin: 0 0 0.6rem; line-height: 1.5; color: #d8ccb0; }
.nx-row { display: flex; align-items: center; gap: 10px; margin: 0 0 0.7rem; font-size: 0.92rem; }
.nx-row > span { flex: 1; color: var(--nx-ink); } .nx-row input[type=range] { flex: 2; accent-color: var(--nx-gold); } .nx-row input[type=number] { width: 4.2em; background: #0c0907; color: var(--nx-ink); border: 1px solid #4a3a26; border-radius: 6px; padding: 3px 6px; }
.nx-row > b { min-width: 3em; text-align: right; color: var(--nx-mute); font-weight: 500; }
.nx-dev-row { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid #2a2016; }
.nx-dev { display: block; text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 8px; border: 1px solid #4a3a26; color: var(--nx-ink); }
.nx-dev .btn-title { display: block; font: 700 0.85rem Cinzel, serif; letter-spacing: 0.08em; color: #cbbf9f; } .nx-dev .btn-desc { display: block; font-size: 0.78rem; color: var(--nx-mute); }
.nx-dev.on { border-color: #7ab444; background: #1e2e14; } .nx-dev.on .btn-title { color: #cde8b0; }
.nx-btn { margin-top: 0.4rem; font: 700 0.85rem Cinzel, serif; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55rem 1.4rem; border-radius: 7px; cursor: pointer; color: #1e1404; border: 1px solid #ffe9a8; background: linear-gradient(#ffe9a8, #e2b956 55%, #a8782a); }
.studio-logo { display: inline-flex; align-items: center; gap: 6px; } .studio-logo img { height: 18px; }
@media (max-aspect-ratio: 4/3) { .nx-menu.menu-container { left: 5%; width: 56%; top: 6%; } }
@media (prefers-reduced-motion: reduce) { .nx-glowA, .nx-glowB, .nx-sub, .nx-items { animation: none !important; } .nx-sub, .nx-items { opacity: 1; } }
