:root {
    --ink: #102033;
    --night: #08131f;
    --panel: #132536;
    --line: rgba(120, 210, 220, 0.16);
    --cyan: #2ce4ff;
    --magenta: #d86cff;
    --teal: #2bbbad;
    --orange: #f08a3a;
    --gold: #f4c430;
    --paper: #f4f1ea;
    --muted: #9bb0c4;
    --danger: #ff6b7a;
    --ok: #3dce8b;
    --dock: 214px;
    --wrap: 1080px;
    --radius: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: Outfit, "Segoe UI", sans-serif;
    color: var(--paper);
    background:
        radial-gradient(720px 360px at 12% -8%, rgba(44, 228, 255, 0.16), transparent 55%),
        radial-gradient(640px 320px at 88% 8%, rgba(216, 108, 255, 0.14), transparent 50%),
        linear-gradient(180deg, #07111c 0%, #0c1a2b 42%, #102433 100%);
    min-height: 100vh;
    line-height: 1.62;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 {
    font-family: Rajdhani, Outfit, sans-serif;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
    line-height: 1.12;
    text-transform: uppercase;
}

.nx-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--dock);
    grid-template-areas: "canvas dock";
    grid-template-rows: 1fr;
}

.nx-canvas {
    min-width: 0;
    display: flex;
    flex-direction: column;
    grid-area: canvas;
}

.nx-main { flex: 1; padding: 12px 28px 56px; }
.nx-main > :first-child { margin-top: 0; }

.nx-dock {
    grid-area: dock;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 40;
    background:
        linear-gradient(180deg, rgba(13, 32, 48, 0.96), rgba(10, 24, 38, 0.98));
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.22);
}

.nx-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--paper);
    text-align: center;
}
.nx-brand img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(44, 228, 255, 0.25));
}
.nx-brand strong {
    font-family: Rajdhani, sans-serif;
    letter-spacing: 0.12em;
    font-size: 15px;
}

.nx-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--paper);
    cursor: pointer;
}

.nx-rail ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nx-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 12px;
    color: var(--paper);
    font-weight: 650;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.nx-link:hover { color: #07111c; transform: translateX(-4px); }

.nx-link-home { border-radius: 6px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.nx-link-home:hover, .nx-link-home.is-current { background: var(--cyan); box-shadow: 0 8px 18px rgba(44, 228, 255, 0.28); }

.nx-link-company { border-radius: 16px 4px; }
.nx-link-company:hover, .nx-link-company.is-current { background: var(--magenta); box-shadow: 0 8px 18px rgba(216, 108, 255, 0.28); }

.nx-link-game { border-radius: 4px 18px 4px 18px; }
.nx-link-game:hover, .nx-link-game.is-current { background: var(--orange); box-shadow: 0 8px 18px rgba(240, 138, 58, 0.28); }

.nx-link-contact { border-radius: 999px; }
.nx-link-contact:hover, .nx-link-contact.is-current { background: var(--teal); box-shadow: 0 8px 18px rgba(43, 187, 173, 0.28); }

.nx-link-shop {
    margin-top: 8px;
    border-radius: 14px;
    min-height: 54px;
    justify-content: center;
    background: linear-gradient(135deg, #f4c430, #f08a3a);
    color: #1b1408;
    font-size: 16px;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(244, 196, 48, 0.35);
    border: 0;
}
.nx-link-shop:hover, .nx-link-shop.is-current {
    color: #1b1408;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px rgba(244, 196, 48, 0.45);
}

.nx-skin-home .nx-dock { border-left-color: rgba(44, 228, 255, 0.35); }
.nx-skin-nucleus .nx-dock { border-left-color: rgba(216, 108, 255, 0.35); }
.nx-skin-fyrenn .nx-dock { border-left-color: rgba(240, 138, 58, 0.4); }
.nx-skin-contact .nx-dock { border-left-color: rgba(43, 187, 173, 0.4); }
.nx-skin-shop .nx-dock { border-left-color: rgba(244, 196, 48, 0.45); }

.nx-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: 8px;
}
.nx-title { font-size: clamp(32px, 5vw, 52px); }
.nx-lead { color: var(--muted); font-size: 17px; max-width: 64ch; }

.nx-billboard {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
    margin: 0 0 32px;
}
.nx-billboard-art {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.nx-billboard-art img { width: 100%; height: auto; object-fit: cover; }

.nx-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }
.nx-launch-link { display: inline-flex; line-height: 0; flex: 0 0 auto; }
.nx-launch-link img {
    height: 48px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.nx-band { margin-top: 36px; }
.nx-mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.nx-card {
    background: rgba(19, 37, 54, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.nx-card h3 { font-size: 22px; color: var(--gold); }
.nx-more { font-weight: 700; }

.nx-shot-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.nx-shot-row img,
.nx-frame-shot {
    border-radius: 16px;
    border: 1px solid var(--line);
    width: 100%;
    object-fit: cover;
    min-height: 160px;
}

.nx-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 22px;
}

.nx-timeline { display: grid; gap: 14px; }
.nx-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
}
.nx-step b {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(44, 228, 255, 0.12);
    color: var(--cyan);
}

.nx-about-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.nx-about-photo {
    margin: 0;
    max-width: 240px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.nx-about-photo img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: top center;
}
.nx-pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}
.nx-pillar {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(43, 187, 173, 0.12), rgba(19, 37, 54, 0.8));
    border: 1px solid var(--line);
}

.nx-game-top {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
}
.nx-game-top > img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid var(--line);
}
.nx-game-top .nx-launch-link img {
    width: auto;
    height: 48px;
    max-width: 210px;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}
.nx-zigzag {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}
.nx-zig {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(19, 37, 54, 0.75);
    border: 1px solid var(--line);
}
.nx-zig:nth-child(even) { margin-left: 48px; }
.nx-zig i {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(240, 138, 58, 0.16);
    color: var(--orange);
    font-size: 22px;
}

.nx-contact-photo {
    margin: 0 0 22px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    max-height: 340px;
}
.nx-contact-photo img { width: 100%; height: 340px; object-fit: cover; }
.nx-contact-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.nx-contact-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(19, 37, 54, 0.8);
    border: 1px solid var(--line);
}
.nx-ico {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
}
.nx-ico.pin { background: rgba(240, 138, 58, 0.16); color: var(--orange); }
.nx-ico.mail { background: rgba(44, 228, 255, 0.14); color: var(--cyan); }
.nx-ico.phone { background: rgba(43, 187, 173, 0.16); color: var(--teal); }

.nx-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 107, 122, 0.12);
    border: 1px solid rgba(255, 107, 122, 0.35);
    color: #ffd6db;
    margin-bottom: 16px;
}

.nx-money-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 18px;
}
.nx-money-btn {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--paper);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}
.nx-money-btn.is-on {
    background: var(--gold);
    color: #1b1408;
    border-color: transparent;
}

.nx-shop-stack { display: grid; gap: 22px; }

.nx-delivery {
    margin-top: 36px;
    padding-top: 8px;
}
.nx-delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}
.nx-delivery-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(19, 37, 54, 0.78);
    border: 1px solid var(--line);
}
.nx-delivery-card h3 {
    font-size: 20px;
    color: var(--gold);
    text-transform: none;
    letter-spacing: 0;
}
.nx-delivery-card p { margin: 0; color: var(--muted); }
.nx-delivery-card a { font-weight: 700; }
.nx-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.nx-pack {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(19, 37, 54, 0.86);
    border: 1px solid var(--line);
    cursor: pointer;
}
.nx-pack img { width: 48px; height: 48px; object-fit: contain; }
.nx-pack.is-on {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}
.nx-pack-title { font-weight: 700; }
.nx-pack-price { color: var(--gold); font-family: Rajdhani, sans-serif; font-size: 22px; }

.nx-ticket {
    background:
        linear-gradient(180deg, rgba(244, 196, 48, 0.08), rgba(19, 37, 54, 0.92));
    border: 1px dashed rgba(244, 196, 48, 0.4);
    border-radius: 22px;
    padding: 22px;
}
.nx-field { margin-bottom: 14px; }
.nx-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.nx-field input[type="text"],
.nx-field input[type="email"] {
    width: 100%;
    border: 1px solid var(--line);
    background: #0d1b29;
    color: var(--paper);
    border-radius: 12px;
    min-height: 44px;
    padding: 0 12px;
    font: inherit;
}
.nx-field input[readonly] { opacity: 0.8; }
.nx-err { color: var(--danger); font-size: 13px; min-height: 16px; display: block; }
.nx-picked {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(8, 19, 31, 0.7);
}
.nx-pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    cursor: pointer;
}
.nx-pay input { display: none; }
.nx-pay.is-on { border-color: var(--gold); background: rgba(244, 196, 48, 0.12); }
.nx-agree { display: flex; gap: 10px; align-items: flex-start; }
.nx-honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.nx-btn-gold { background: linear-gradient(135deg, #f4c430, #f08a3a); color: #1b1408; width: 100%; }
.nx-btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.nx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.nx-load, .nx-empty { color: var(--muted); padding: 18px; }

.nx-pass {
    max-width: 640px;
    margin: 0 auto;
    background: #f4f1ea;
    color: #1b1408;
    border-radius: 24px;
    overflow: hidden;
}
.nx-pass header {
    background: linear-gradient(135deg, #2bbbad, #2ce4ff);
    padding: 18px 22px;
    color: #07111c;
}
.nx-pass table { width: 100%; border-collapse: collapse; }
.nx-pass th, .nx-pass td { padding: 12px 22px; text-align: left; border-bottom: 1px solid rgba(16, 32, 51, 0.08); }
.nx-pass th { width: 38%; color: #5a6b7c; font-weight: 700; }
.nx-total { color: #c47a12; font-weight: 800; }
.nx-count { font-size: 42px; font-family: Rajdhani, sans-serif; text-align: center; color: #0d1b29; }
.nx-pass .nx-actions { align-items: center; }
.nx-pass .nx-btn {
    width: auto;
    min-width: 168px;
    font-size: 15px;
}
.nx-pass .nx-btn-gold {
    background: linear-gradient(135deg, #f4c430, #e07020);
    color: #1b1408;
    box-shadow: 0 8px 18px rgba(224, 112, 32, 0.35);
}
.nx-pass .nx-btn-ghost,
.nx-pass a.nx-btn-ghost {
    background: #102033;
    color: #f4f1ea;
    border: 1px solid #102033;
}
.nx-pass .nx-btn-gold:hover { color: #1b1408; filter: brightness(1.05); }
.nx-pass a.nx-btn-ghost:hover { color: #f4c430; }

.nx-result {
    max-width: 560px;
    margin: 40px auto;
    text-align: center;
    padding: 36px 24px;
    border-radius: 28px;
    border: 1px solid var(--line);
}
.nx-result i { font-size: 48px; margin-bottom: 12px; }
.nx-result.ok { background: rgba(61, 206, 139, 0.1); }
.nx-result.ok i { color: var(--ok); }
.nx-result.bad { background: rgba(255, 107, 122, 0.1); }
.nx-result.bad i { color: var(--danger); }

.nx-foot {
    border-top: 1px solid var(--line);
    padding: 28px;
    background: rgba(8, 19, 31, 0.7);
}
.nx-foot-grid { display: grid; gap: 16px; }
.nx-foot-brand { display: flex; gap: 12px; align-items: center; }
.nx-foot-brand img { width: 72px; height: 72px; object-fit: contain; }
.nx-foot-brand span, .nx-foot-brand strong { display: block; }
.nx-foot-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.nx-foot-copy { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 980px) {
    .nx-shell {
        display: flex;
        flex-direction: column;
    }
    .nx-dock { order: -1; }
    .nx-dock {
        min-height: auto;
        position: sticky;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        border-left: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }
    .nx-brand { flex-direction: row; }
    .nx-brand img { width: 52px; height: 52px; }
    .nx-toggle { display: grid; place-items: center; }
    .nx-rail {
        display: none;
        position: absolute;
        right: 12px;
        top: 78px;
        width: min(280px, calc(100% - 24px));
        background: #102433;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 12px;
    }
    .nx-rail.is-open { display: block; }
    .nx-billboard,
    .nx-split,
    .nx-about-layout,
    .nx-game-top { grid-template-columns: 1fr; }
    .nx-about-photo,
    .nx-about-photo img { max-width: 240px; }
    .nx-shot-row, .nx-mosaic, .nx-pillar-grid, .nx-delivery-grid { grid-template-columns: 1fr 1fr; }
    .nx-zig:nth-child(even) { margin-left: 0; }
    .nx-main { padding: 12px 16px 48px; }
}

@media (max-width: 640px) {
    .nx-shot-row, .nx-mosaic, .nx-pillar-grid, .nx-delivery-grid { grid-template-columns: 1fr; }
}
