/* ========================================
   GREYSKIN — Official Website
   Dark atmospheric design system
   ======================================== */

/* --- Design Tokens --- */
:root {
    --bg-abyss: #050203;
    --bg-deep: #0c0708;
    --bg-surface: #161011;
    --bg-surface-hover: #201718;
    --bg-elevated: #2a1f21;

    --neon: #00e676;
    --neon-dim: #00a854;
    --crimson: #6b1515;
    --crimson-bright: #a02020;
    --gold: #b0763c;
    --gold-light: #c9924f;

    --text: #ede8e4;
    --text-secondary: #a09890;
    --text-muted: #605850;

    --font-display: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    --container: 1200px;
    --container-narrow: 900px;
    --gap: clamp(16px, 3vw, 30px);
    --section-pad: clamp(60px, 10vw, 120px);
    --radius: 6px;
    --radius-lg: 12px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
    --duration-slow: 0.6s;

    --nav-height: 70px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-abyss);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* --- Base Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

/* --- Film Grain Overlay --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--duration);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon);
    transition: width var(--duration) var(--ease);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 14px;
    margin-left: 8px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.nav-social a {
    font-size: 15px;
    color: var(--text-muted);
    transition: color var(--duration);
}

.nav-social a::after { display: none; }

.nav-social a:hover {
    color: var(--neon);
}

.nav .btn-cta {
    margin-left: 8px;
}

/* Nav states */
.nav.scrolled {
    background: rgba(5, 2, 3, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-solid {
    background: rgba(5, 2, 3, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all var(--duration) var(--ease);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO — Index (Full viewport)
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to bottom,
            rgba(5,2,3,0.4) 0%,
            rgba(5,2,3,0.05) 35%,
            rgba(5,2,3,0.15) 60%,
            rgba(5,2,3,0.7) 85%,
            var(--bg-abyss) 100%
        );
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow: inset 0 0 150px rgba(5,2,3,0.6);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

.hero-logo {
    max-width: 380px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.5));
}

.hero h1 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    margin-bottom: 32px;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: hero-bounce 2.5s var(--ease) infinite;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* ========================================
   HERO — Sub-pages (Banner)
   ======================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-top: var(--nav-height);
}

.hero-banner .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 1;
}

.hero-banner .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(5,2,3,0.5) 0%,
        rgba(5,2,3,0.7) 60%,
        var(--bg-deep) 100%
    );
}

.hero-banner .hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px) 30px;
    width: 100%;
    text-align: left;
}

.hero-banner h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-banner .page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-style: italic;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-deep { background: var(--bg-deep); }
.section-abyss { background: var(--bg-abyss); }
.section-surface { background: var(--bg-surface); }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 50px);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--neon);
    margin: 16px auto 0;
    opacity: 0.7;
}

/* ========================================
   TRAILER
   ======================================== */
.trailer-wrap {
    max-width: 850px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.trailer-link {
    display: block;
    position: relative;
}

.trailer-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease);
}

.trailer-link:hover .trailer-thumb {
    transform: scale(1.03);
}

.trailer-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 230, 118, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.2);
}

.trailer-link:hover .trailer-play {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 50px rgba(0, 230, 118, 0.35);
}

.trailer-play i {
    font-size: 26px;
    color: var(--bg-abyss);
    margin-left: 4px;
}

.trailer-wrap iframe {
    border-radius: var(--radius-lg);
}

.trailer-link {
    cursor: pointer;
}

.trailer-caption {
    text-align: center;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trailer-caption a {
    color: var(--neon-dim);
    transition: color var(--duration);
}

.trailer-caption a:hover {
    color: var(--neon);
}

/* ========================================
   ABOUT
   ======================================== */
.about-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.9;
    text-align: center;
    color: var(--text-secondary);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 750px;
    margin: 0 auto 40px;
}

.about-tags span {
    border: 1px solid rgba(0, 230, 118, 0.15);
    background: rgba(0, 230, 118, 0.04);
    color: var(--neon-dim);
    padding: 6px 16px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 500;
    transition: border-color var(--duration), background var(--duration);
}

.about-tags span:hover {
    border-color: rgba(0, 230, 118, 0.35);
    background: rgba(0, 230, 118, 0.08);
}

.steam-banner {
    display: block;
    max-width: 460px;
    margin: 30px auto;
    text-align: center;
    transition: transform var(--duration) var(--ease);
}

.steam-banner:hover {
    transform: scale(1.03);
}

.steam-banner img {
    max-width: 100%;
    border-radius: var(--radius);
}

.about-cta {
    text-align: center;
    margin-top: 24px;
}

/* ========================================
   CHARACTERS
   ======================================== */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    max-width: 1000px;
    margin: 0 auto;
}

.char-card {
    display: block;
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform var(--duration) var(--ease), border-color var(--duration), box-shadow var(--duration);
}

.char-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 230, 118, 0.08);
}

.char-card .char-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-elevated);
}

.char-card .char-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease);
}

.char-card:hover .char-img-wrap img {
    transform: scale(1.08);
}

.char-card-body {
    padding: 18px 14px 22px;
}

.char-card h3 {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.char-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   WORLD
   ======================================== */
.world-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.world-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration);
}

.world-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

.world-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease);
}

.world-card:hover img {
    transform: scale(1.06);
}

.world-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,2,3,0.95) 0%,
        rgba(5,2,3,0.5) 40%,
        rgba(5,2,3,0.1) 100%
    );
    z-index: 1;
}

.world-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}

.world-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.world-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* ========================================
   SCREENSHOTS
   ======================================== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
}

.screenshots-grid .screenshot-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.screenshots-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform var(--duration) var(--ease), border-color var(--duration), box-shadow var(--duration);
}

.screenshots-grid img:hover {
    transform: scale(1.02);
    border-color: rgba(0, 230, 118, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 2, 3, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease), visibility var(--duration);
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform var(--duration) var(--ease);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration);
    z-index: 1;
}

.lightbox-close:hover {
    color: var(--text);
}

/* ========================================
   AWARDS
   ======================================== */
.awards-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(30px, 6vw, 70px);
    flex-wrap: wrap;
}

.awards-grid img {
    max-height: 130px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--duration), transform var(--duration) var(--ease);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.awards-grid img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ========================================
   COMMUNITY
   ======================================== */
.community-section {
    text-align: center;
}

.community-card {
    max-width: 500px;
    margin: 0 auto;
    display: block;
    transition: transform var(--duration) var(--ease);
}

.community-card:hover {
    transform: scale(1.03);
}

.community-card img {
    max-width: 100%;
    border-radius: var(--radius-lg);
}

/* ========================================
   CTA / WISHLIST
   ======================================== */
.cta-section {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-widget {
    flex: 1;
    min-width: 300px;
    max-width: 520px;
}

.cta-widget iframe {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.cta-text {
    flex: 1;
    min-width: 250px;
}

.cta-text h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--neon-dim);
    font-weight: 500;
}

.cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.cta-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-abyss);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    letter-spacing: 0.06em;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer a {
    transition: color var(--duration);
}

.footer a:hover {
    color: var(--neon-dim);
}

.footer-social {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 18px;
}

.footer-social a:hover {
    color: var(--neon);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: all var(--duration) var(--ease);
    border: 1px solid;
    cursor: pointer;
    line-height: 1.4;
}

.btn-primary {
    background: var(--neon);
    color: var(--bg-abyss);
    border-color: var(--neon);
}

.btn-primary:hover {
    background: #33eb91;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--text);
    background: rgba(255,255,255,0.05);
}

.btn-gold {
    background: transparent;
    color: var(--gold-light);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--bg-abyss);
}

.btn-cta {
    background: var(--gold);
    color: var(--bg-abyss);
    border-color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.75rem;
    padding: 8px 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: all var(--duration) var(--ease);
}

.btn-cta:hover {
    background: var(--gold-light);
    box-shadow: 0 0 20px rgba(176, 118, 60, 0.2);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.78rem;
}

/* ========================================
   SUB-PAGE CONTENT
   ======================================== */
.page-content {
    background: var(--bg-deep);
    padding: 50px 0 80px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.9;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.page-content h2 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 36px 0 10px;
    color: var(--text);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-content .page-img {
    margin: 30px 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Character showcase */
.char-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin: 36px 0;
}

.char-showcase img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-surface);
}

/* Sibling navigation */
.sibling-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sibling-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.88rem;
    transition: color var(--duration);
}

.sibling-nav a:hover {
    color: var(--neon);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--duration);
}

.back-link:hover {
    color: var(--neon);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--duration), transform var(--duration) var(--ease), background var(--duration);
    opacity: 0;
    transform: translateY(10px);
    z-index: 100;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--neon);
    color: var(--bg-abyss);
    border-color: var(--neon);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-reveal-children] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal-children].revealed > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-children].revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-children].revealed > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-children].revealed > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-children].revealed > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-children].revealed > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-children].revealed > *:nth-child(6) { transition-delay: 400ms; }

/* ========================================
   RESPONSIVE — Tablet (<=1024px)
   ======================================== */
@media (max-width: 1024px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .world-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .world-card {
        aspect-ratio: 3/4;
    }
}

/* ========================================
   RESPONSIVE — Mobile (<=768px)
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(5, 2, 3, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-social {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .hero {
        min-height: 500px;
    }

    .hero-logo {
        max-width: 240px;
    }

    .hero h1 {
        font-size: clamp(0.85rem, 3vw, 1.1rem);
    }

    .hero-banner {
        height: 160px;
    }

    .world-grid {
        grid-template-columns: 1fr;
    }

    .world-card {
        aspect-ratio: 16/10;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .screenshots-grid .screenshot-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cta-section {
        flex-direction: column;
        text-align: center;
    }

    .about-desc {
        text-align: left;
    }

    .char-showcase {
        grid-template-columns: 1fr;
    }

    .sibling-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .lightbox {
        padding: 16px;
    }
}

/* ========================================
   RESPONSIVE — Small Mobile (<=480px)
   ======================================== */
@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero-buttons .btn {
        padding: 8px 20px;
        font-size: 0.78rem;
    }

    .characters-grid {
        gap: 12px;
    }

    .char-card h3 {
        font-size: 1rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .screenshots-grid .screenshot-featured {
        grid-column: span 1;
    }
}
