.nv-sb {
    --sb-bg: #060711;
    --sb-bg-soft: rgba(18, 20, 40, 0.86);
    --sb-line: rgba(133, 182, 255, 0.18);
    --sb-line-strong: rgba(183, 216, 255, 0.3);
    --sb-text: #eef7ff;
    --sb-text-soft: rgba(238, 247, 255, 0.72);
    --sb-cyan: #7be8ff;
    --sb-pink: #ff6bcb;
    --sb-violet: #8f7dff;
    --sb-gold: #ffe28c;
    position: relative;
    overflow: clip;
    color: var(--sb-text);
    background:
        radial-gradient(circle at top, rgba(143, 125, 255, 0.16), transparent 40%),
        radial-gradient(circle at 20% 12%, rgba(255, 107, 203, 0.1), transparent 30%),
        linear-gradient(180deg, #04050b 0%, #090d19 35%, #05070f 100%);
}

.nv-sb *,
.nv-sb *::before,
.nv-sb *::after {
    box-sizing: border-box;
}

.nv-sb__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.nv-sb__ambient-grid,
.nv-sb__ambient-glow,
.nv-sb__ambient-stars {
    position: absolute;
    inset: 0;
}

.nv-sb__ambient-grid {
    background-image:
        linear-gradient(rgba(133, 182, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(133, 182, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

.nv-sb__ambient-glow {
    background:
        radial-gradient(circle at 18% 15%, rgba(255, 107, 203, 0.18), transparent 26%),
        radial-gradient(circle at 84% 12%, rgba(123, 232, 255, 0.16), transparent 22%),
        radial-gradient(circle at 50% 0%, rgba(255, 226, 140, 0.14), transparent 30%);
}

.nv-sb__ambient-stars {
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2px),
        radial-gradient(circle at 34% 9%, rgba(123, 232, 255, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 56% 14%, rgba(255, 255, 255, 0.7) 0 1.25px, transparent 2px),
        radial-gradient(circle at 77% 11%, rgba(255, 107, 203, 0.8) 0 1.25px, transparent 2px),
        radial-gradient(circle at 89% 24%, rgba(255, 255, 255, 0.8) 0 1.25px, transparent 2px),
        radial-gradient(circle at 66% 6%, rgba(255, 226, 140, 0.9) 0 1px, transparent 2px);
    animation: sbTwinkle 10s linear infinite;
    opacity: 0.85;
}

.nv-sb__shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 96px;
}

.nv-sb__breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 10px 14px;
    border: 1px solid var(--sb-line);
    border-radius: 999px;
    background: rgba(7, 10, 19, 0.72);
    backdrop-filter: blur(16px);
    font-size: 0.92rem;
}

.nv-sb__breadcrumb a,
.nv-sb__breadcrumb strong {
    color: var(--sb-text);
    text-decoration: none;
}

.nv-sb__breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 180ms ease;
}

.nv-sb__breadcrumb a:hover {
    color: var(--sb-cyan);
}

.nv-sb-hero {
    position: relative;
    margin-bottom: 38px;
}

.nv-sb-hero__stage {
    position: relative;
    min-height: 720px;
    border: 1px solid rgba(183, 216, 255, 0.12);
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255, 184, 120, 0.16), transparent 35%),
        linear-gradient(180deg, rgba(9, 13, 24, 0.9) 0%, rgba(10, 13, 23, 0.4) 45%, rgba(4, 6, 12, 0.96) 100%);
    box-shadow:
        0 28px 120px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.nv-sb-scene__layer,
.nv-sb-scene__flare,
.nv-sb-scene__vignette {
    position: absolute;
    will-change: transform;
}

.nv-sb-scene__layer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transition: transform 200ms ease-out;
    /* width: 110%; */
    /* left: 5px; */
}

.nv-sb-scene__layer img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.26));
}

.nv-sb-scene__layer--sky {
    inset: 0;
    z-index: 1;
    width: 50;
}

.nv-sb-scene__layer--sky img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nv-sb-scene__layer--house {
    left: -13%;
    bottom: 3%;
    width: 80%;
    z-index: 3;
    animation: sbFloat 10s ease-in-out infinite;
}

.nv-sb-scene__layer--bridge {
    left: -9%;
    bottom: 2%;
    width: min(47vw, 680px);
    z-index: 6;
    animation: sbFloat 12s ease-in-out infinite -1.8s;
}

.nv-sb-scene__layer--tree {
    right: -5%;
    bottom: 18%;
    width: 62%;
    z-index: 5;
    animation: sbFloat 11s ease-in-out infinite -0.8s;
}

.nv-sb-scene__layer--hero {
    right: 90%;
    bottom: 17%;
    width: min(12vw, 170px);
    z-index: 6;
    animation: sbFloat 8.5s ease-in-out infinite -2.2s;
}

.nv-sb-scene__layer--hero img {
    image-rendering: pixelated;
    filter:
        drop-shadow(0 0 12px rgba(123, 232, 255, 0.36))
        drop-shadow(0 18px 18px rgba(0, 0, 0, 0.42));
}

.nv-sb-scene__layer--flora {
    inset: auto 0 0 0;
    z-index: 7;
    width: 110%;
    left: -30px;
}

.nv-sb-scene__layer--flora img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.nv-sb-scene__flare {
    inset: auto auto 20% 50%;
    width: 32%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 238, 170, 0.36) 0%, rgba(255, 195, 125, 0.14) 32%, transparent 68%);
    filter: blur(18px);
    z-index: 2;
}

.nv-sb-scene__vignette {
    inset: 0;
    z-index: 8;
    background:
        linear-gradient(180deg, rgba(5, 8, 14, 0.12) 0%, transparent 25%, transparent 75%, rgba(3, 5, 9, 0.7) 100%),
        linear-gradient(90deg, rgba(3, 5, 9, 0.48) 0%, transparent 22%, transparent 78%, rgba(3, 5, 9, 0.48) 100%);
    pointer-events: none;
}

.nv-sb-hero__hint {
    position: absolute;
    left: 28px;
    bottom: 26px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(183, 216, 255, 0.16);
    border-radius: 999px;
    background: rgba(7, 11, 20, 0.62);
    backdrop-filter: blur(12px);
    font-size: 0.92rem;
    color: var(--sb-text-soft);
}

.nv-sb-hero__hint span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 232, 255, 1) 0%, rgba(255, 107, 203, 0.3) 70%, transparent 75%);
    box-shadow: 0 0 18px rgba(123, 232, 255, 0.65);
}

.nv-sb-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: -16px;
    z-index: 10;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(183, 216, 255, 0.2);
    border-radius: 50%;
    background: rgba(8, 12, 21, 0.82);
    color: var(--sb-text);
    text-decoration: none;
    transform: translateX(-50%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.nv-sb-hero__scroll span {
    animation: sbBounce 1.6s ease-in-out infinite;
}

.nv-sb-section,
.nv-sb-finale {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.nv-sb-section.is-visible,
.nv-sb-finale.is-visible,
.nv-sb-hero.is-visible {
    opacity: 1;
    transform: none;
}

.nv-sb-intro__card,
.nv-sb-minigame__frame,
.nv-sb-finale__copy,
.nv-sb-feature-card,
.nv-sb-memory-card {
    background: linear-gradient(180deg, rgba(14, 18, 32, 0.86) 0%, rgba(8, 11, 21, 0.92) 100%);
    border: 1px solid var(--sb-line);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nv-sb-intro {
    margin-top: 44px;
}

.nv-sb-intro__card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 28px;
    padding: clamp(26px, 4vw, 40px);
    border-radius: 28px;
}

.nv-sb-eyebrow,
.nv-sb-heading p,
.nv-sb-finale__copy > p {
    margin: 0 0 12px;
    color: var(--sb-cyan);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.nv-sb-intro__copy h1,
.nv-sb-heading h2,
.nv-sb-finale__copy h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4.8vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.nv-sb-heading h2,
.nv-sb-finale__copy h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.nv-sb-intro__tagline,
.nv-sb-intro__aside,
.nv-sb-heading span,
.nv-sb-feature-card span,
.nv-sb-minigame__panel p,
.nv-sb-finale__copy > span,
.nv-sb-finale__copy small {
    color: var(--sb-text-soft);
    line-height: 1.75;
}

.nv-sb-intro__tagline {
    margin: 18px 0 12px;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--sb-text);
}

.nv-sb-intro__aside {
    margin: 0;
}

.nv-sb-intro__actions,
.nv-sb-finale__actions,
.nv-sb-minigame__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nv-sb-intro__actions {
    align-content: center;
    justify-content: flex-end;
}

.nv-sb-button,
.nv-sb-inline-link {
    appearance: none;
    border: 1px solid rgba(183, 216, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 12, 22, 0.85);
    color: var(--sb-text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.nv-sb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 20px;
}

.nv-sb-button:hover,
.nv-sb-inline-link:hover {
    transform: translateY(-1px);
    border-color: rgba(123, 232, 255, 0.42);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.nv-sb-button--primary {
    background: linear-gradient(135deg, rgba(123, 232, 255, 0.24) 0%, rgba(255, 107, 203, 0.2) 100%);
    border-color: rgba(123, 232, 255, 0.32);
}

.nv-sb-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.nv-sb-heading--center {
    margin-inline: auto;
    text-align: center;
}

.nv-sb-features,
.nv-sb-minigame,
.nv-sb-section--echoes,
.nv-sb-finale {
    margin-top: 44px;
}

.nv-sb-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nv-sb-feature-card {
    padding: 24px;
    border-radius: 24px;
}

.nv-sb-feature-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.nv-sb-minigame__frame {
    padding: clamp(22px, 3vw, 30px);
    border-radius: 30px;
}

.nv-sb-minigame__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
    gap: 20px;
    align-items: start;
    margin-bottom: 18px;
}

.nv-sb-minigame__panel {
    padding: 18px 20px;
    border: 1px solid rgba(183, 216, 255, 0.12);
    border-radius: 22px;
    background: rgba(7, 11, 20, 0.48);
}

.nv-sb-minigame__objective-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--sb-gold);
}

.nv-sb-minigame__score {
    display: grid;
    gap: 4px;
}

.nv-sb-minigame__score span {
    color: var(--sb-text-soft);
    font-size: 0.92rem;
}

.nv-sb-minigame__score strong {
    font-size: 1.22rem;
}

.nv-sb-minigame__stage {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(183, 216, 255, 0.12);
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.98), rgba(10, 12, 24, 0.92));
}

.nv-sb-minigame__chrome {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.nv-sb-minigame__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(123, 232, 255, 0.3);
}

.nv-sb-minigame__corner--tl {
    top: 16px;
    left: 16px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.nv-sb-minigame__corner--tr {
    top: 16px;
    right: 16px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.nv-sb-minigame__corner--bl {
    bottom: 16px;
    left: 16px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.nv-sb-minigame__corner--br {
    right: 16px;
    bottom: 16px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.nv-sb-minigame__scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(123, 232, 255, 0.08) 50%, transparent 100%);
    mix-blend-mode: screen;
    animation: sbScan 3.4s linear infinite;
}

.nv-sb-minigame__canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.nv-sb-minigame__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4, 8, 16, 0.62);
    backdrop-filter: blur(10px);
}

.nv-sb-minigame__overlay[hidden] {
    display: none;
}

.nv-sb-minigame__overlay-card {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(123, 232, 255, 0.18);
    background: linear-gradient(180deg, rgba(12, 17, 31, 0.94), rgba(7, 10, 19, 0.96));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.nv-sb-minigame__overlay-card p,
.nv-sb-minigame__overlay-card strong {
    color: var(--sb-cyan);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
}

.nv-sb-minigame__overlay-card h3 {
    margin: 14px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.nv-sb-minigame__overlay-card span {
    color: var(--sb-text-soft);
    line-height: 1.65;
}

.nv-sb-memory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nv-sb-memory-card {
    position: relative;
    padding: 20px;
    border-radius: 24px;
    transform: rotate(var(--memory-rotation));
}

.nv-sb-memory-card__topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.84rem;
    color: var(--sb-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nv-sb-memory-card blockquote {
    margin: 0;
    color: var(--sb-text);
    line-height: 1.8;
}

.nv-sb-memory-card__mark {
    position: absolute;
    right: 18px;
    bottom: 16px;
    font-size: 1rem;
    color: rgba(123, 232, 255, 0.7);
}

.nv-sb-inline-link {
    margin: 22px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    min-height: 44px;
}

.nv-sb-section--echoes {
    text-align: center;
}

.nv-sb-finale {
    position: relative;
}

.nv-sb-finale__glow {
    position: absolute;
    inset: auto 10% 0 10%;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 203, 0.14) 0%, rgba(123, 232, 255, 0.1) 35%, transparent 70%);
    filter: blur(28px);
    pointer-events: none;
}

.nv-sb-finale__copy {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 30px;
    text-align: center;
}

.nv-sb-finale__copy > span,
.nv-sb-finale__copy small {
    display: block;
    max-width: 780px;
    margin: 16px auto 0;
}

.nv-sb-finale__actions {
    justify-content: center;
    margin-top: 24px;
}

@keyframes sbFloat {
    0%,
    100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

@keyframes sbTwinkle {
    0%,
    100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@keyframes sbBounce {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes sbScan {
    0% { transform: translateY(-105%); }
    100% { transform: translateY(105%); }
}

@media (max-width: 1100px) {
    .nv-sb-hero__stage {
        min-height: 640px;
    }

    .nv-sb-scene__layer--house {
        width: min(40vw, 390px);
    }

    .nv-sb-scene__layer--bridge {
        left: 14%;
        width: min(54vw, 640px);
    }

    .nv-sb-scene__layer--tree {
        width: min(45vw, 540px);
    }
}

@media (max-width: 920px) {
    .nv-sb__shell {
        width: min(100% - 24px, 1180px);
        padding-top: 24px;
    }

    .nv-sb-hero__stage {
        min-height: 540px;
        border-radius: 26px;
    }

    .nv-sb-intro__card,
    .nv-sb-minigame__header,
    .nv-sb-feature-grid,
    .nv-sb-memory-grid {
        grid-template-columns: 1fr;
    }

    .nv-sb-intro__actions {
        justify-content: flex-start;
    }

    .nv-sb-scene__layer--house {
        width: 38%;
        bottom: 14%;
    }

    .nv-sb-scene__layer--bridge {
        left: 18%;
        width: 56%;
        bottom: 14%;
    }

    .nv-sb-scene__layer--tree {
        width: 38%;
        bottom: 18%;
    }

    .nv-sb-scene__layer--hero {
        right: 32%;
        width: min(16vw, 120px);
    }
}

@media (max-width: 640px) {
    .nv-sb__breadcrumb {
        border-radius: 22px;
    }

    .nv-sb-hero__stage {
        min-height: 410px;
    }

    .nv-sb-scene__layer--house {
        left: -12%;
        width: 46%;
        bottom: 14%;
    }

    .nv-sb-scene__layer--bridge {
        left: 10%;
        width: 72%;
        bottom: 11%;
    }

    .nv-sb-scene__layer--tree {
        right: -16%;
        width: 52%;
        bottom: 19%;
    }

    .nv-sb-scene__layer--hero {
        right: 34%;
        bottom: 17%;
        width: min(19vw, 86px);
    }

    .nv-sb-hero__hint {
        left: 14px;
        right: 14px;
        bottom: 12px;
        justify-content: center;
        text-align: center;
        border-radius: 18px;
    }

    .nv-sb-intro__card,
    .nv-sb-minigame__frame,
    .nv-sb-finale__copy,
    .nv-sb-feature-card,
    .nv-sb-memory-card {
        border-radius: 22px;
    }

    .nv-sb-button,
    .nv-sb-inline-link {
        width: 100%;
    }

    .nv-sb-intro__actions,
    .nv-sb-finale__actions,
    .nv-sb-minigame__meta {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nv-sb *,
    .nv-sb *::before,
    .nv-sb *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Starbound navigation puzzle */
.nv-sb-navigation-console {
    border: 1px solid rgba(70, 255, 87, 0.22);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(4, 12, 9, 0.98), rgba(3, 6, 12, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(21, 80, 31, 0.7),
        0 22px 60px rgba(0, 0, 0, 0.34);
}

.nv-sb-navigation-console__topbar,
.nv-sb-navigation-console__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(20, 59, 27, 0.95), rgba(8, 30, 15, 0.95));
    border-bottom: 1px solid rgba(81, 255, 96, 0.18);
}

.nv-sb-navigation-console__footer {
    border-top: 1px solid rgba(81, 255, 96, 0.18);
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(5, 22, 12, 0.96), rgba(11, 34, 18, 0.96));
}

.nv-sb-navigation-console__topbar > div:first-child {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 2px;
}

.nv-sb-navigation-console__icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(118, 225, 255, 0.35);
    border-radius: 8px;
    color: #78ddff;
    background: rgba(9, 35, 48, 0.7);
    box-shadow: inset 0 0 10px rgba(76, 191, 255, 0.14);
}

.nv-sb-navigation-console__topbar strong {
    font-size: 0.94rem;
    color: #f3fff4;
    letter-spacing: 0.02em;
}

.nv-sb-navigation-console__topbar small {
    color: rgba(205, 255, 211, 0.68);
    font-size: 0.74rem;
}

.nv-sb-navigation-console__lights {
    display: flex;
    gap: 6px;
}

.nv-sb-navigation-console__lights i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #50ff63;
    box-shadow: 0 0 10px rgba(80, 255, 99, 0.6);
}

.nv-sb-navigation-console__lights i:nth-child(2) { opacity: 0.62; }
.nv-sb-navigation-console__lights i:nth-child(3) { opacity: 0.32; }

.nv-sb-nav-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.nv-sb-nav-stats > div {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(123, 232, 255, 0.12);
    background: rgba(4, 9, 17, 0.55);
}

.nv-sb-nav-stats span {
    display: block;
    color: var(--sb-text-soft);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nv-sb-nav-stats strong {
    display: block;
    margin-top: 3px;
    color: #7cff8c;
    font-size: 1.14rem;
}

.nv-sb-navigation-console .nv-sb-minigame__stage {
    border: 0;
    border-radius: 0;
    background: #02050b;
}

.nv-sb-navigation-console .nv-sb-minigame__canvas {
    aspect-ratio: 12 / 7;
    min-height: 430px;
    image-rendering: auto;
}

.nv-sb-navigation-console__legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: rgba(224, 255, 229, 0.6);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.nv-sb-navigation-console__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nv-sb-navigation-console__legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.nv-sb-navigation-console__legend .is-current {
    background: #5aff7a;
    box-shadow: 0 0 8px rgba(90, 255, 122, 0.5);
}

.nv-sb-navigation-console__legend .is-destination {
    background: #ffe769;
    box-shadow: 0 0 8px rgba(255, 231, 105, 0.5);
}

.nv-sb-navigation-console__legend .is-route {
    background: #59d9ff;
    box-shadow: 0 0 8px rgba(89, 217, 255, 0.5);
}

.nv-sb-navigation-console__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nv-sb-navigation-console__actions .nv-sb-button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border-color: rgba(75, 255, 91, 0.24);
    background: rgba(8, 28, 14, 0.9);
    color: #d9ffdf;
    font-size: 0.78rem;
}

.nv-sb-navigation-console__actions .nv-sb-button--primary {
    background: rgba(44, 125, 54, 0.5);
    border-color: rgba(87, 255, 102, 0.55);
    color: #f0fff2;
}

.nv-sb-navigation-console__actions .nv-sb-button:disabled {
    opacity: 0.38;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.nv-sb-minigame__overlay-card--final {
    width: min(680px, 100%);
    background:
        radial-gradient(circle at 50% 35%, rgba(40, 101, 255, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(7, 14, 30, 0.98), rgba(3, 8, 18, 0.98));
    border-color: rgba(90, 181, 255, 0.28);
}

.nv-sb-minigame__overlay-card--final img {
    display: block;
    width: min(520px, 92%);
    height: auto;
    margin: 22px auto 18px;
    filter:
        drop-shadow(0 0 18px rgba(47, 126, 255, 0.32))
        drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
}

.nv-sb-minigame__overlay-card--final strong {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(99, 218, 255, 0.2);
    border-radius: 999px;
    background: rgba(16, 51, 84, 0.36);
}

@media (max-width: 840px) {
    .nv-sb-navigation-console__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nv-sb-navigation-console__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nv-sb-navigation-console .nv-sb-minigame__canvas {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .nv-sb-navigation-console__topbar {
        align-items: flex-start;
    }

    .nv-sb-navigation-console__lights {
        display: none;
    }

    .nv-sb-navigation-console__legend {
        display: none;
    }

    .nv-sb-navigation-console__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nv-sb-navigation-console__actions .nv-sb-button {
        width: 100%;
    }

    .nv-sb-navigation-console .nv-sb-minigame__canvas {
        min-height: 300px;
    }
}
