:root {
    --bg: #081018;
    --bg-soft: #0f1a27;
    --bg-panel: rgba(13, 20, 30, 0.82);
    --bg-panel-strong: rgba(8, 14, 22, 0.94);
    --text: #eef4fb;
    --text-muted: rgba(219, 231, 243, 0.76);
    --accent: #8fd7ff;
    --accent-strong: #f8fdff;
    --line: rgba(157, 206, 228, 0.18);
    --shadow: 0 24px 60px rgba(2, 10, 18, 0.52);
    --description-font: 'Merriweather', 'Cormorant Garamond', serif;
    --nav-height: 88px;
    --footer-height: 84px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cinzel', serif;
    font-weight: 100;
    background:
        radial-gradient(circle at top, rgba(107, 200, 255, 0.12), transparent 30%),
        radial-gradient(circle at 68% 14%, rgba(151, 120, 255, 0.08), transparent 20%),
        linear-gradient(180deg, #050b11 0%, #0b1320 38%, #081018 100%);
    color: var(--text);
    padding-top: var(--nav-height);
    padding-bottom: var(--footer-height);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

img[data-src] {
    background: transparent;
    opacity: 1;
    filter: none;
    transition: opacity 0.25s ease;
}

img[data-src].asset-loaded {
    background: transparent;
    opacity: 1;
    filter: none;
}

.asset-loading-parent {
    position: relative;
    background: transparent;
    transition: background 0.25s ease;
}

.asset-loading-parent:not(.asset-loaded) {
    background: transparent;
}

.asset-loading-parent::before,
.asset-loading-parent::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.asset-loading-parent::before {
    inset: 0;
    margin: auto;
    width: 38px;
    height: 38px;
    transform: none;
    z-index: 2;
    background: url('../img/Icons/icon.png') center center / contain no-repeat;
    animation: asset-placeholder-spin 1.2s linear infinite;
}

.asset-loading-parent::after {
    inset: 0;
    z-index: 1;
    background: black;
}

.asset-loading-parent.asset-loaded::before,
.asset-loading-parent.asset-loaded::after {
    opacity: 0;
}

.asset-loading-parent.asset-loaded {
    background: transparent;
}

body.modal-open {
    overflow: hidden;
}

button {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.scroll-fade {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.985);
    filter: blur(5px);
    will-change: opacity, transform, filter;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--fade-delay, 0ms);
}

.scroll-fade.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-fade,
    .scroll-fade.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.section-title,
.feature-title,
.cta-title {
    font-family: 'Cinzel', serif;
    font-weight: 100;
    letter-spacing: 0.02em;
}

.navbar,
.footer {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(6, 10, 16, 0.62);
    border-color: var(--line);
}

.navbar {
    top: 0;
    height: var(--nav-height);
    border-bottom: 1px solid var(--line);
}

.footer {
    bottom: 0;
    min-height: var(--footer-height);
    border-top: 1px solid var(--line);
}

.nav-container,
.footer-content,
.footer-copy {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    width: 112px;
    max-height: 48px;
    flex: 0 0 auto;
}

.nav-logo img {
    width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.nav-container .nav-home-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(143, 215, 255, 0.06);
    color: var(--text);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-weight: 100;
    font-size: 0.88rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.45rem;
    height: 1px;
    transform: scaleX(0);
    transform-origin: center;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
    padding: 0;
}

.hero-image {
    position: relative;
    min-height: calc(100vh - var(--nav-height) - var(--footer-height));
    overflow: hidden;
    background: linear-gradient(180deg, rgba(6, 8, 12, 0.16), rgba(6, 8, 12, 0.64));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    transform: translate3d(0, var(--hero-parallax-offset, 0px), 0) scale(1.08);
    transform-origin: center top;
    will-change: transform;
    background:
        linear-gradient(180deg, rgba(5, 8, 12, 0.14), rgba(5, 8, 12, 0.58)),
        radial-gradient(circle at 50% 35%, rgba(140, 218, 255, 0.12), transparent 24%),
        radial-gradient(circle at 64% 24%, rgba(168, 129, 255, 0.08), transparent 18%),
        linear-gradient(180deg, transparent 0%, rgba(9, 14, 22, 0.3) 68%, rgba(9, 14, 22, 0.9) 100%);
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: url('../img/Icons/icon.png') center center / contain no-repeat;
    animation: asset-placeholder-spin 1.2s linear infinite;
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.hero-overlay.hero-loaded {
    background:
        linear-gradient(180deg, rgba(5, 8, 12, 0.14), rgba(5, 8, 12, 0.18)),
        url('../img/Splash/Splash.webp') center center / cover no-repeat,
        radial-gradient(circle at 50% 35%, rgba(140, 218, 255, 0.12), transparent 10%),
        radial-gradient(circle at 64% 24%, rgba(168, 129, 255, 0.08), transparent 10%),
        linear-gradient(180deg, transparent 0%, rgba(9, 14, 22, 0.3) 68%, rgba(9, 14, 22, 0.9) 10%);
}

.hero-overlay.hero-loaded::before {
    opacity: 0;
}

@keyframes asset-placeholder-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-section,
.video-section,
.features-section,
.characters-section,
.faq-section,
.kits-section {
    padding: 3rem 0;
    position: relative;
}

.features-section {
    background:
        radial-gradient(circle at bottom, rgba(143, 215, 255, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

.cta-section {
    padding-top: 4rem;
}

.cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.cta-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.1rem);
}

.steam-widget,
.steam-footer-button,
.kit-card,
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.25s ease;
}

.steam-widget {
    padding: 1rem 1.4rem;
    background: linear-gradient(180deg, #111a25, #0d141d);
    border: 1px solid rgba(143, 215, 255, 0.22);
    box-shadow: 0 18px 40px rgba(7, 18, 30, 0.42);
    color: var(--text);
    font-weight: 100;
    letter-spacing: 0.03em;
}

.steam-widget:hover,
.steam-widget:focus-visible,
.steam-footer-button:hover,
.steam-footer-button:focus-visible,
.kit-card:hover,
.kit-card:focus-visible,
.social-link:hover,
.social-link:focus-visible {
    transform: none;
}

.steam-widget:hover,
.steam-widget:focus-visible {
    background: rgba(143, 215, 255, 0.22);
}

.steam-footer-button:hover,
.steam-footer-button:focus-visible {
    background: rgba(143, 215, 255, 0.22);
}

.steam-icon {
    height: 2rem;
    fill: currentColor;
    flex: 0 0 auto;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    width: min(100%, 960px);
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(143, 215, 255, 0.04);
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.features-intro {
    max-width: 820px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.features-intro .section-title {
    margin-bottom: 0.9rem;
}

.section-description {
    margin: 0;
    font-family: var(--description-font);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.feature-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feature-media {
    min-width: 0;
}

.feature-media > .carousel {
    margin-top: 0;
}

.feature-copy {
    padding: 0.5rem 0.25rem;
    text-align: left;
}

.feature-copy .feature-title {
    margin-bottom: 1rem;
}

.feature-copy .feature-description {
    max-width: 100%;
}

.feature-carousel-container {
    position: relative;
    padding: 1.4rem;
    border: 1px solid rgba(157, 206, 228, 0.18);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(143, 215, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 18px 40px rgba(7, 18, 30, 0.34),
        0 0 0 1px rgba(167, 214, 236, 0.18) inset,
        var(--shadow);
    overflow: hidden;
}

.feature-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 1rem;
    text-align: center;
}

.feature-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 2.6vw, 3rem);
    line-height: 1.08;
}

.feature-description {
    margin: 0;
    font-family: var(--description-font);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.feature-carousel-container > .feature-description {
    max-width: 760px;
    margin: 1rem auto 0;
    text-align: center;
}

.carousel {
    position: relative;
    margin-top: 1rem;
}

.carousel-track-container {
    --frame-size: 34px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    touch-action: pan-y;
    background:
        linear-gradient(180deg, rgba(7, 11, 16, 0.9), rgba(7, 11, 16, 0.78)),
        rgba(0, 0, 0, 0.18);
}

.carousel-track-container:has(img[data-src]:not(.asset-loaded)) {
    background: #000;
}

.carousel-track-container:has(img[data-src].asset-loaded) {
    background: transparent;
}

.carousel-track-container::before,
.carousel-track-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-repeat: no-repeat;
    background-size: var(--frame-size) var(--frame-size);
    opacity: 0.96;
}

.carousel-track-container::after {
    background-image:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px);
    background-position: top left, top right, bottom left, bottom right;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: 0.96;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0.15rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    cursor: pointer;
    z-index: 2;
    font-size: 2.8rem;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
    opacity: 0.95;
}

.carousel-btn.prev {
    left: 0.35rem;
}

.carousel-btn.next {
    right: 0.35rem;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
    opacity: 1;
}

@media (max-width: 1024px) {
    .feature-main-row {
        grid-template-columns: 1fr;
    }

    .feature-copy {
        padding: 0;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.carousel-dot {
    display: grid;
    place-items: center;
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.carousel-dot.active {
    transform: scale(1.5);
}

.carousel-dot.active img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.logo-divider {
    position: relative;
    z-index: 2;
    width: min(440px, 82vw);
    margin: -1rem auto -1.2rem;
    filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.45));
    display: flex;
    justify-content: center;
}

.feature-main-row-reverse .feature-media {
    order: 2;
}

.feature-main-row-reverse .feature-copy {
    order: 1;
}

@media (max-width: 1024px) {
    .traversal-carousel .feature-carousel-split {
        grid-template-columns: 1fr;
    }

    .traversal-carousel .traversal-carousel-media {
        order: 2;
    }

    .traversal-carousel .traversal-copy {
        order: 1;
    }
}

.characters-section {
    background:
    radial-gradient(circle at top, rgba(143, 215, 255, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.section-title {
    margin: 0 0 2rem;
    text-align: center;
    font-size: clamp(2rem, 3vw, 3rem);
}

.character-tabs {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    width: fit-content;
    margin: 0 auto 1.4rem;
    justify-content: center;
    justify-items: center;
    column-gap: 16px;
    row-gap: 0.75rem;
}

.character-tab {
    position: relative;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    width: 92px;
    height: 109px;
    min-height: auto;
    cursor: pointer;
}

.character-tab img {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    object-fit: contain;
    max-width: none;
}

.character-tab .tab-img-selected {
    display: none;
}

.character-tab .tab-img {
    display: block;
}

.character-tab.active {
    background: transparent;
    box-shadow: none;
}

.character-tab.active .tab-img-selected {
    display: block;
    transform: translateX(-50%) translateY(5px);
}

.character-tab.active .tab-img {
    display: none;
}

.character-details {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--bg-panel);
    box-shadow:
        0 18px 40px rgba(7, 18, 30, 0.34),
        0 0 0 1px rgba(167, 214, 236, 0.16) inset,
        var(--shadow);
    overflow: hidden;
    touch-action: pan-y;
}

.character-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0.15rem 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    cursor: pointer;
    z-index: 3;
    font-size: 2.8rem;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
    opacity: 0.95;
}

.character-nav-btn.prev {
    left: 0.45rem;
}

.character-nav-btn.next {
    right: 0.45rem;
}

.character-nav-btn:hover,
.character-nav-btn:focus-visible {
    opacity: 1;
}

.character-panel {
    display: none;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.2rem;
    padding: 1.4rem 3rem;
}

.character-panel.active {
    display: grid;
}

.character-panel.character-panel-animating {
    display: grid;
    pointer-events: none;
}

.character-details .scroll-fade,
.character-details .scroll-fade.is-visible {
    transform: none;
    filter: none;
}

.character-info {
    padding: 0.8rem 0.3rem 0.8rem 0.4rem;
}

.character-name {
    margin: 0 0 0.75rem;
    font-family: 'Cinzel', serif;
    font-weight: 200;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.character-description {
    margin: 0;
    font-family: var(--description-font);
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.8;
}

.character-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
    justify-content: start;
}

.character-image-frame {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}

.character-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-menu-image {
    aspect-ratio: 3 / 4;
    justify-self: start;
}

.character-battle-image {
    align-self: stretch;
    min-height: 320px;
}

.character-battle-image img {
    height: 100%;
    padding: 0.75rem;
    object-fit: contain;
    aspect-ratio: auto;
}

.character-image-placeholder {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 1rem;
    border-radius: 24px;
    border: 1px dashed rgba(157, 206, 228, 0.2);
    background:
        linear-gradient(180deg, rgba(143, 215, 255, 0.08), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at top, rgba(143, 215, 255, 0.16), transparent 55%);
    color: rgba(229, 240, 250, 0.62);
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.faq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.faq-card {
    flex: 1 1 calc(50% - 0.5rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-panel);
    overflow: hidden;
    box-shadow: var(--shadow);
    align-self: flex-start;
}

.faq-question {
    display: block;
    padding: 1.2rem 1.3rem;
    color: var(--text);
    background: transparent;
    border: 0;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-weight: 100;
}

.faq-answer {
    padding: 0 1.3rem 1.2rem;
}

.faq-answer p {
    margin: 0;
    font-family: var(--description-font);
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.75;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.kit-card {
    padding: 1.35rem 1.5rem;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
    border: 1px solid rgba(157, 206, 228, 0.2);
    background: linear-gradient(180deg, rgba(143, 215, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow:
        0 18px 40px rgba(7, 18, 30, 0.34),
        0 0 0 1px rgba(167, 214, 236, 0.18) inset,
        var(--shadow);
    border-radius: 18px;
}

.kit-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--accent-strong);
}

.kit-icon svg {
    width: 32px;
    height: 32px;
}

.kit-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.kit-card h3 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-weight: 100;
    font-size: 1.45rem;
}

.kit-card p {
    margin: 0;
    font-family: var(--description-font);
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.7;
}

.kit-card:hover,
.kit-card:focus-visible {
    background: rgba(157, 206, 228, 0.2);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--footer-height);
    flex-wrap: nowrap;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

#youtubeLink:hover,
#youtubeLink:focus-visible {
    background: #ff0000;
}

#instagramLink:hover,
#instagramLink:focus-visible {
    background: #c32aa3;
}

#discordLink:hover,
#discordLink:focus-visible {
    background: #5865f2;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-cta {
    margin-left: 0;
}

.footer-copy {
    flex: 1;
    margin: 0;
    font-family: var(--description-font);
    font-weight: 500;
    color: rgba(219, 231, 243, 0.62);
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

.footer-copy-mobile {
    display: none;
}

.steam-footer-button {
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(143, 215, 255, 0.22);
    background: linear-gradient(180deg, #111a25, #0d141d);
    box-shadow: none;
    font-weight: 100;
    color: var(--text);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 0;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 16, 0.9);
    backdrop-filter: blur(12px);
}

.gallery-modal-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.gallery-modal-image-wrap {
    width: 100vw;
    height: 100vh;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 0;
    background: rgba(5, 10, 16, 0.94);
    border: 0;
    box-shadow: none;
    touch-action: pan-y;
}

.gallery-modal-stage {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-modal-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.35s ease;
    will-change: transform;
}

.gallery-modal-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
}

.gallery-modal-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}

.gallery-modal-arrow,
.gallery-modal-close {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 14px rgba(143, 215, 255, 0.5);
    filter: drop-shadow(0 0 12px rgba(143, 215, 255, 0.28));
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-modal-arrow {
    font-size: 3.5rem;
    line-height: 1;
    padding: 0.25rem;
    opacity: 0.95;
}

.gallery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.4rem;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    z-index: 3;
}

.gallery-modal-arrow.prev,
.gallery-modal-arrow.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.gallery-modal-arrow.prev {
    left: 1rem;
}

.gallery-modal-arrow.next {
    right: 1rem;
}

.gallery-modal-arrow:hover,
.gallery-modal-arrow:focus-visible,
.gallery-modal-close:hover,
.gallery-modal-close:focus-visible {
    opacity: 1;
}

section[id] {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

@media (max-width: 1024px) {
    .character-panel,
    .faq-grid,
    .kits-grid {
        grid-template-columns: 1fr;
    }

    .character-panel {
        padding: 1.25rem 2.6rem;
    }

    .faq-card {
        flex-basis: 100%;
    }

    .character-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-main-row,
    .feature-main-row.feature-main-row-reverse {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        align-items: stretch;
    }

    .feature-copy {
        display: contents;
        padding: 0;
        text-align: left;
    }

    .feature-title {
        order: 1;
        width: 100%;
        margin: 0;
    }

    .feature-media {
        order: 2;
        width: 100%;
    }

    .feature-media > .carousel {
        margin-top: 0;
    }

    .feature-description {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .feature-copy .feature-title,
    .feature-copy .feature-description {
        max-width: none;
    }

    .feature-carousel-container,
    .character-details,
    .faq-card,
    .kit-card {
        border-radius: 24px;
    }
}

@media (max-width: 860px) {
    :root {
        --nav-height: 76px;
        --footer-height: 100px;
    }

    body {
        padding-bottom: calc(var(--footer-height) + 8px);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-container .nav-home-mobile {
        display: inline-flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        min-height: 42px;
        margin: 0;
        font-size: 0.86rem;
        letter-spacing: 0.11em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .nav-menu > li:first-child {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0;
        padding: 0.75rem;
        border-radius: 24px;
        border: 1px solid var(--line);
        background: rgba(7, 11, 16, 0.96);
        box-shadow: var(--shadow);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        padding: 0.95rem 0.6rem;
        min-height: 0;
        justify-content: flex-start;
    }

    .nav-link::after {
        bottom: 0.35rem;
    }

    .footer-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.4rem 0;
    }

    .footer-cta {
        width: auto;
        margin-left: 0;
    }

    .footer-copy {
        display: none;
        width: auto;
        margin: 0;
        text-align: center;
        font-size: 0.72rem;
    }

    .footer-copy-mobile {
        display: block;
        width: 100%;
        margin: 0.85rem 0 0;
        padding: 0.85rem 1rem;
        font-family: var(--description-font);
        font-weight: 500;
        color: rgba(219, 231, 243, 0.78);
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        white-space: normal;
    }

    .footer-social {
        gap: 0.45rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .steam-footer-button {
        padding: 0.65rem 0.9rem;
        gap: 0.5rem;
        width: min(100%, 320px);
        font-size: 0.78rem;
    }

    .steam-footer-button .steam-icon {
        width: 4rem;
        height: 1rem;
    }

    .character-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .character-image-placeholder {
        min-height: 180px;
    }

    .carousel-btn {
        font-size: 2.4rem;
    }

    .gallery-modal-panel {
        gap: 0;
    }

    .gallery-modal-image-wrap {
        min-height: 100vh;
    }

    .cta-section iframe {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 1.15rem));
    }

    .hero,
    .hero-image {
        min-height: 74vh;
    }

    .cta-section,
    .video-section,
    .features-section,
    .characters-section,
    .faq-section,
    .kits-section {
        padding: 3.8rem 0;
    }

    .feature-carousel-container,
    .character-details,
    .faq-card,
    .kit-card,
    .video-wrapper {
        border-radius: 20px;
    }

    .feature-carousel-container {
        padding: 1rem;
    }

    .logo-divider {
        margin: -2.4rem auto -1rem;
        width: min(360px, 86vw);
    }

    .character-panel {
        padding: 1rem;
    }

    .character-info {
        padding: 0;
    }

    .character-images {
        grid-template-columns: 1fr;
    }

    .character-image-placeholder,
    .character-image-frame {
        min-height: 150px;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.96rem;
    }

    .kit-card {
        padding: 1.2rem;
    }

    .steam-widget,
    .steam-footer-button {
        width: 100%;
        justify-content: center;
    }

    .footer-cta {
        width: min(100%, 340px);
    }

    .footer-copy-mobile {
        margin-top: 0.9rem;
    }

    .carousel-btn {
        font-size: 2rem;
        padding: 0.1rem 0.15rem;
    }

    .gallery-modal {
        padding: 0;
    }

    .gallery-modal-panel {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gallery-modal-image-wrap {
        min-height: 100vh;
        border-radius: 0;
    }

    .gallery-modal-arrow.prev {
        left: 0.25rem;
    }

    .gallery-modal-arrow.next {
        right: 0.25rem;
    }

    .gallery-modal-close {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 2rem;
    }

    .nav-logo {
        width: 120px;
    }
}