/* ---- Nexus-GM arcade sign-in (shared by index.html, dm-portal.html, player*.html; markup from nexus_login.js) ---- */
.nxl {
    --void: #05030f; --phosphor: #f4f1ff; --neon-pink: #ff3fa4; --neon-cyan: #35f2ff; --sun: #ffd23f;
    --grid: #6a2cff; --dim: #8a83b8;
    --font-display: "Press Start 2P", "Courier New", monospace;
    --font-crt: "VT323", "Lucida Console", monospace;
    color-scheme: dark;
    position: fixed; inset: 0; z-index: 99999; display: none;
    background: var(--void); color: var(--phosphor);
    font-family: var(--font-crt); font-size: 22px; text-align: left;
    overflow-x: hidden; overflow-y: auto;
}
.nxl > .screen { flex: 1 1 100%; min-width: 0; }   /* the guard may show the gate as display:flex */
.nxl #stars { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.nxl .scanlines { position: fixed; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px); mix-blend-mode: screen; }
.nxl .vignette { position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.75) 100%); }
.nxl .screen { position: relative; z-index: 1; min-height: 100%;
    display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding-block: 18px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.nxl .hud { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-family: var(--font-display); font-size: 11px; letter-spacing: 0.08em; }
.nxl .hud div { display: grid; gap: 6px; }
.nxl .hud .lbl { color: var(--neon-pink); }
.nxl .hud .val { color: var(--phosphor); font-variant-numeric: tabular-nums; }
.nxl .hud .mid .lbl, .nxl .hud .mid .val { text-align: center; }
.nxl .hud .mid .lbl { color: var(--sun); }
.nxl .stage { display: grid; place-items: center; align-content: center; gap: 34px; }
.nxl .marquee { text-align: center; display: grid; gap: 14px; }
.nxl .logo { margin: 0; font-family: var(--font-display); font-size: clamp(18px, 7.2vw, 84px); line-height: 1.1;
    letter-spacing: 0.04em; white-space: nowrap; text-shadow: none;
    background: linear-gradient(180deg, #fff 0%, var(--neon-cyan) 38%, var(--grid) 52%, var(--neon-pink) 62%, var(--sun) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 2px var(--neon-cyan)) drop-shadow(4px 4px 0 #2a0b55); }
.nxl .tagline { font-family: var(--font-display); font-size: clamp(9px, 2.2vw, 13px);
    color: var(--neon-cyan); letter-spacing: 0.25em; text-transform: uppercase; }
.nxl .tagline.enter { color: var(--sun); font-size: clamp(11px, 2.8vw, 17px); letter-spacing: 0.3em; text-shadow: 0 0 8px rgba(255,210,63,0.6); }
.nxl .nxpanel { width: min(420px, 100%); border: 3px solid var(--grid);
    box-shadow: 0 0 0 3px var(--void), 0 0 24px rgba(106,44,255,0.55), inset 0 0 18px rgba(53,242,255,0.12);
    background: rgba(5,3,15,0.78); padding: 22px 20px 20px; display: grid; gap: 16px; }
.nxl .nxpanel h2 { margin: 0; font-family: var(--font-display); font-size: 13px; color: var(--sun);
    text-align: center; letter-spacing: 0.12em; text-shadow: none; }
.nxl .field { display: grid; gap: 6px; }
.nxl .field label { font-family: var(--font-display); font-size: 10px; color: var(--neon-pink); letter-spacing: 0.1em; }
.nxl .field input { width: 100%; font-family: var(--font-crt); font-size: 26px; color: var(--phosphor);
    background: #0d0822; border: 2px solid #2b1d63; padding: 6px 10px; outline: none; caret-color: var(--sun); }
.nxl .field input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(53,242,255,0.5); }
.nxl .start { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.15em; color: var(--void);
    background: var(--sun); border: none; padding: 14px 10px; cursor: pointer; box-shadow: 4px 4px 0 var(--neon-pink); }
.nxl .start:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--neon-pink); }
.nxl .start:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 3px; }
.nxl .start:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--neon-pink); }
.nxl .start:disabled { opacity: 0.6; cursor: wait; }
.nxl .hint { margin: 0; color: var(--dim); font-size: 19px; line-height: 1.15; }
.nxl .msg { min-height: 1.2em; text-align: center; color: var(--neon-cyan); font-size: 20px; margin: 0; }
.nxl .msg.err { color: #ff8fa8; }
.nxl .blink { font-family: var(--font-display); font-size: 12px; color: var(--phosphor); text-align: center;
    letter-spacing: 0.2em; animation: nxblink 1.1s steps(1) infinite; }
@keyframes nxblink { 50% { opacity: 0; } }
.nxl .foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    font-family: var(--font-display); font-size: 9px; color: var(--dim); letter-spacing: 0.1em; }
@media (max-width: 420px) { .nxl { font-size: 20px; } .nxl .hud { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .nxl .blink { animation: none; } .nxl .start { transition: none; } }
/* cheap static starfield for overlays that skip the canvas (nexus_login.js, stars:false) */
.nxl.nxl-static { background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 12%, #35f2ff 50%, transparent 51%),
    radial-gradient(2px 2px at 33% 64%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 70%, #ffd23f 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 85%, #ff3fa4 50%, transparent 51%), radial-gradient(2px 2px at 66% 40%, #a98bff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 90%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 8%, #fff 50%, transparent 51%);
    background-size: 340px 340px; }

/* ---- Arcade flow (arcade_login.js): insert coins -> sign-in -> "are you ready?" -> boot screen -> Portal ---- */
.nxl .nxcoin { font-family: var(--font-display); font-size: clamp(11px, 2.6vw, 18px); letter-spacing: 0.18em; line-height: 1.8; color: var(--sun);
    background: transparent; border: 0; padding: 18px 12px; cursor: pointer; text-align: center; text-shadow: 0 0 10px rgba(255,210,63,0.6);
    animation: nxblink 1.1s steps(1) infinite; }
.nxl .nxcoin:hover, .nxl .nxcoin:focus-visible { color: var(--phosphor); outline: 3px solid var(--neon-cyan); outline-offset: 6px; }
.nxl .nxready { text-align: center; }
.nxl .nxready h2 { line-height: 1.7; }
.nxl .nxrow { display: flex; gap: 14px; justify-content: center; }
.nxl .nxrow .start { min-width: 110px; }
.nxl .nxrow .nxno { background: var(--neon-pink); color: var(--void); box-shadow: 4px 4px 0 var(--grid); }
.nxl .nxmute { position: fixed; top: 58px; right: 12px; z-index: 5; display: flex; gap: 8px; align-items: center; cursor: pointer;
    font-family: var(--font-display); font-size: 9px; letter-spacing: 0.1em; color: var(--neon-cyan);
    background: rgba(5,3,15,0.8); border: 2px solid var(--grid); padding: 8px 10px; }
.nxl .nxmute.off { color: var(--dim); text-decoration: line-through; }
.nxl .nxmute:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
/* Boot screen: light-blue text on blue inside a border of moving colour bars (a nod to 1980s home computers; no maker's name or logo). */
.nxl .nxboot { position: fixed; inset: 0; z-index: 10; display: none; background: #a0a0ff; }
.nxl .nxboot::before { content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(to bottom, #a0a0ff 0 14px, #3a3ad0 14px 28px, #ffffff 28px 36px, #6c5eb5 36px 56px, #a0a0ff 56px 70px, #40318d 70px 90px);
    animation: nxraster 1.1s linear infinite; }
.nxl .nxboot-screen { position: absolute; inset: clamp(26px, 7vh, 70px) clamp(24px, 7vw, 90px); margin: 0; overflow: hidden; box-sizing: border-box;
    background: #40318d; color: #a0a0ff; font-family: var(--font-display); font-size: clamp(9px, 1.7vw, 16px); line-height: 2.1;
    padding: 22px 20px; white-space: pre-wrap; text-shadow: none; }
.nxl .nxboot-screen::after { content: "\2588"; animation: nxblink 0.8s steps(1) infinite; }
@keyframes nxraster { to { background-position: 0 90px; } }
@media (prefers-reduced-motion: reduce) {
    .nxl .nxcoin { animation: none; }
    .nxl .nxboot::before { animation: none; }
    .nxl .nxboot-screen::after { animation: none; }
}
