.nv-ff {
    --ff-bg: #08111d;
    --ff-card: rgba(11, 19, 31, 0.86);
    --ff-card-strong: rgba(9, 16, 26, 0.94);
    --ff-line: rgba(162, 204, 255, 0.16);
    --ff-line-strong: rgba(198, 225, 255, 0.32);
    --ff-text: #f5fbff;
    --ff-text-soft: rgba(245, 251, 255, 0.76);
    --ff-blue: #9eddff;
    --ff-gold: #ffe8a3;
    --ff-violet: #cdb6ff;
    --ff-cyan: #7ef4ff;
    position: relative;
    overflow: clip;
    color: var(--ff-text);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 233, 163, 0.18), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(158, 221, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #060b13 0%, #0b1523 34%, #07101b 100%);
}

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

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

.nv-ff__ambient-glow,
.nv-ff__ambient-stars,
.nv-ff__ambient-mist {
    position: absolute;
    inset: 0;
}

.nv-ff__ambient-glow {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 232, 174, 0.18), transparent 36%),
        radial-gradient(circle at 18% 18%, rgba(158, 221, 255, 0.12), transparent 20%),
        radial-gradient(circle at 82% 8%, rgba(205, 182, 255, 0.12), transparent 22%);
}

.nv-ff__ambient-stars {
    background-image:
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2px),
        radial-gradient(circle at 25% 9%, rgba(158, 221, 255, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle at 55% 13%, rgba(255, 255, 255, 0.76) 0 1.4px, transparent 2px),
        radial-gradient(circle at 77% 10%, rgba(255, 232, 174, 0.85) 0 1.2px, transparent 2px),
        radial-gradient(circle at 90% 20%, rgba(126, 244, 255, 0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 41% 6%, rgba(205, 182, 255, 0.86) 0 1px, transparent 2px);
    opacity: 0.7;
    animation: ffTwinkle 12s linear infinite;
}

.nv-ff__ambient-mist {
    background:
        radial-gradient(ellipse at bottom, rgba(255, 255, 255, 0.07) 0%, transparent 52%),
        linear-gradient(180deg, transparent 65%, rgba(255, 255, 255, 0.05) 100%);
}

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

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

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

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

.nv-ff__breadcrumb a:hover { color: var(--ff-blue); }

.nv-ff-hero {
    position: relative;
    margin-bottom: 38px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.nv-ff-hero__stage {
    position: relative;
    min-height: 730px;
    border: 1px solid rgba(198, 225, 255, 0.12);
    border-radius: 36px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 230, 166, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(8, 15, 26, 0.82) 0%, rgba(9, 16, 28, 0.3) 40%, rgba(6, 12, 20, 0.96) 100%);
    box-shadow:
        0 30px 120px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.nv-ff-scene__layer,
.nv-ff-scene__ray,
.nv-ff-scene__vignette {
    position: absolute;
    will-change: transform;
}

.nv-ff-scene__layer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 200ms ease-out;
}

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

.nv-ff-scene__layer--sky {
    inset: 0;
    z-index: 1;
}

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

.nv-ff-scene__layer--city {
    left: 25%;
    bottom: 0%;
    width: 960px;
    transform: translateX(-50%);
    z-index: 3;
    animation: ffFloat 12s ease-in-out infinite;
}

.nv-ff-scene__layer--airship {
    left: -2%;
    top: -2%;
    width: min(33vw, 500px);
    z-index: 4;
    animation: ffDrift 16s ease-in-out infinite;
}

.nv-ff-scene__layer--shrine {
    right: 57%;
    bottom: 16%;
    width: min(30vw, 450px);
    z-index: 5;
    animation: ffFloat 11s ease-in-out infinite -1s;
}

.nv-ff-scene__layer--hero {
    left: -3%;
    bottom: -2%;
    width: 446px;
    z-index: 6;
    animation: ffFloat 9s ease-in-out infinite -1.4s;
}

.nv-ff-scene__layer--islands {
    inset: auto 0 0 0;
    z-index: 1;
    width: 770px;
    /* top: 0px; */
    /* position: absolute; */
}

.nv-ff-scene__ray {
    inset: -6% auto auto 50%;
    width: 124%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 236, 184, 0.38) 0%, rgba(158, 221, 255, 0.12) 36%, transparent 68%);
    filter: blur(26px);
    z-index: 2;
}

.nv-ff-scene__vignette {
    inset: 0;
    z-index: 8;
    background:
        linear-gradient(180deg, rgba(5, 9, 15, 0.08) 0%, transparent 24%, transparent 78%, rgba(5, 9, 15, 0.76) 100%),
        linear-gradient(90deg, rgba(5, 9, 15, 0.38) 0%, transparent 20%, transparent 80%, rgba(5, 9, 15, 0.38) 100%);
}

.nv-ff-hero__hint {
    position: absolute;
    left: 28px;
    bottom: 24px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(198, 225, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 14, 24, 0.64);
    backdrop-filter: blur(14px);
    color: var(--ff-text-soft);
    font-size: 0.92rem;
}

.nv-ff-hero__hint span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 244, 255, 1) 0%, rgba(255, 232, 174, 0.7) 40%, transparent 76%);
    box-shadow: 0 0 16px rgba(126, 244, 255, 0.6);
}

.nv-ff-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: -16px;
    z-index: 10;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(198, 225, 255, 0.22);
    border-radius: 50%;
    background: rgba(9, 15, 26, 0.84);
    color: var(--ff-text);
    text-decoration: none;
    transform: translateX(-50%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

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

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

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

.nv-ff-intro__card,
.nv-ff-lore-card,
.nv-ff-minigame__frame,
.nv-ff-memory-card,
.nv-ff-finale__copy {
    background: linear-gradient(180deg, var(--ff-card) 0%, var(--ff-card-strong) 100%);
    border: 1px solid var(--ff-line);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.nv-ff-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-ff-eyebrow,
.nv-ff-heading p,
.nv-ff-finale__copy > p {
    margin: 0 0 12px;
    color: var(--ff-blue);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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

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

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

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

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

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

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

.nv-ff-button,
.nv-ff-inline-link {
    appearance: none;
    border: 1px solid rgba(198, 225, 255, 0.18);
    border-radius: 999px;
    background: rgba(8, 15, 26, 0.86);
    color: var(--ff-text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.nv-ff-button:hover,
.nv-ff-inline-link:hover {
    transform: translateY(-1px);
    border-color: rgba(158, 221, 255, 0.42);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.nv-ff-button--primary {
    background: linear-gradient(135deg, rgba(158, 221, 255, 0.24) 0%, rgba(255, 232, 174, 0.22) 100%);
    border-color: rgba(158, 221, 255, 0.32);
}

.nv-ff-heading { max-width: 760px; margin-bottom: 26px; }
.nv-ff-heading--center { margin-inline: auto; text-align: center; }

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

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

.nv-ff-lore-card {
    padding: 24px;
    border-radius: 24px;
}

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

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

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

.nv-ff-minigame__panel {
    padding: 18px 20px;
    border: 1px solid rgba(198, 225, 255, 0.12);
    border-radius: 22px;
    background: rgba(8, 14, 24, 0.5);
}

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

.nv-ff-minigame__meta {
    display: grid;
    gap: 14px;
}

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

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

.nv-ff-minigame__board {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(198, 225, 255, 0.12);
    background:
        radial-gradient(circle at center, rgba(158, 221, 255, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(5, 11, 19, 0.98), rgba(9, 16, 28, 0.96));
    min-height: 520px;
    padding: 28px;
}

.nv-ff-minigame__board::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(158, 221, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 221, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    pointer-events: none;
}

.nv-ff-minigame__altar {
    position: relative;
    z-index: 1;
    min-height: 460px;
}

.nv-ff-minigame__center-crystal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 118px;
    height: 160px;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 80% 20%, 100% 58%, 50% 100%, 0% 58%, 20% 20%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(158, 221, 255, 0.76) 48%, rgba(126, 244, 255, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow:
        0 0 30px rgba(158, 221, 255, 0.34),
        0 0 80px rgba(255, 232, 174, 0.16);
    opacity: 0.8;
}

.nv-ff-crystal {
    --crystal-bg: rgba(158, 221, 255, 0.22);
    --crystal-glow: rgba(158, 221, 255, 0.45);
    position: absolute;
    width: 124px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    clip-path: polygon(50% 0%, 82% 18%, 100% 58%, 50% 100%, 0% 58%, 18% 18%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), var(--crystal-bg));
    color: var(--ff-text);
    box-shadow: 0 0 24px var(--crystal-glow);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.nv-ff-crystal span {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nv-ff-crystal:hover { transform: translateY(-3px) scale(1.02); }
.nv-ff-crystal.is-active,
.nv-ff-crystal:focus-visible {
    outline: none;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px var(--crystal-glow), 0 0 70px rgba(255, 255, 255, 0.12);
    filter: brightness(1.06);
}

.nv-ff-crystal[disabled] { cursor: default; opacity: 0.85; }

.nv-ff-crystal--wind {
    --crystal-bg: rgba(164, 255, 217, 0.28);
    --crystal-glow: rgba(164, 255, 217, 0.42);
    top: 26px;
    left: 16%;
}

.nv-ff-crystal--ice {
    --crystal-bg: rgba(158, 221, 255, 0.3);
    --crystal-glow: rgba(158, 221, 255, 0.46);
    top: 28px;
    right: 16%;
}

.nv-ff-crystal--fire {
    --crystal-bg: rgba(255, 179, 158, 0.3);
    --crystal-glow: rgba(255, 179, 158, 0.44);
    bottom: 24px;
    left: 22%;
}

.nv-ff-crystal--light {
    --crystal-bg: rgba(255, 232, 174, 0.32);
    --crystal-glow: rgba(255, 232, 174, 0.46);
    bottom: 24px;
    right: 22%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.nv-ff-finale__glow {
    position: absolute;
    inset: auto 10% 0 10%;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 232, 174, 0.14) 0%, rgba(158, 221, 255, 0.1) 35%, transparent 70%);
    filter: blur(28px);
}

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

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

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

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

@keyframes ffDrift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(16px, -8px, 0) rotate(-1.2deg); }
}

@keyframes ffTwinkle {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 0.95; }
}

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

@media (max-width: 1100px) {
    .nv-ff-hero__stage { min-height: 650px; }
    .nv-ff-scene__layer--city { width: min(56vw, 700px); }
    .nv-ff-scene__layer--airship { width: min(38vw, 460px); }
    .nv-ff-scene__layer--shrine { width: min(34vw, 420px); }
}

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

    .nv-ff-hero__stage { min-height: 560px; border-radius: 28px; }

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

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

    .nv-ff-scene__layer--city { bottom: 18%; width: 62%; }
    .nv-ff-scene__layer--airship { top: 16%; left: 2%; width: 42%; }
    .nv-ff-scene__layer--shrine { right: 0; bottom: 15%; width: 32%; }
    .nv-ff-scene__layer--hero { left: 4%; width: 20%; }

    .nv-ff-minigame__board { min-height: 580px; }
}

@media (max-width: 640px) {
    .nv-ff__breadcrumb { border-radius: 22px; }
    .nv-ff-hero__stage { min-height: 430px; }

    .nv-ff-scene__layer--city { width: 82%; bottom: 16%; }
    .nv-ff-scene__layer--airship { top: 12%; left: -6%; width: 52%; }
    .nv-ff-scene__layer--shrine { right: -8%; width: 44%; }
    .nv-ff-scene__layer--hero { left: 0; width: 32%; bottom: 5%; }

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

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

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

    .nv-ff-intro__actions,
    .nv-ff-finale__actions,
    .nv-ff-minigame__actions { flex-direction: column; }

    .nv-ff-minigame__board { min-height: 660px; padding: 20px; }
    .nv-ff-minigame__center-crystal { width: 96px; height: 130px; }
    .nv-ff-crystal { width: 104px; height: 126px; }
    .nv-ff-crystal--wind { top: 18px; left: 10px; }
    .nv-ff-crystal--ice { top: 18px; right: 10px; }
    .nv-ff-crystal--fire { bottom: 18px; left: 24px; }
    .nv-ff-crystal--light { bottom: 18px; right: 24px; }
}

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