/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:          #181818;
    --bg-mid:      #202020;
    --bg-card:     #252525;
    --accent:      #8ecfff;
    --accent-dim:  #5aa8e0;
    --accent-glow: rgba(142,207,255,0.15);
    --text:        #c9e8ff;
    --muted:       #607080;
    --twitch:      #9146ff;
    --youtube:     #ff0000;
    --discord:     #5865f2;
    --insta:       #e1306c;
    --white:       #ffffff;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=1600");
    background-size: cover;
    background-position: center bottom;
    filter: brightness(0.35) saturate(0.6);
    transform: scale(1.05);
    transition: transform 12s ease;
    z-index: 0;
}

.hero:hover .hero-bg { transform: scale(1.0); }

.hero-overlay {
    position: relative;
    z-index: 1;
    padding: 60px 50px;
    border: 1px solid rgba(142,207,255,0.15);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.45);
}

.hero-tag {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--accent-dim);
    margin-bottom: 16px;
}

/* Title is now light blue */
.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.1;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(142,207,255,0.4);
    margin-bottom: 20px;
}

.hero-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 40px;
}

.hero-scroll-btn {
    display: inline-block;
    padding: 12px 36px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: 0.3s;
}

.hero-scroll-btn:hover {
    background: var(--accent);
    color: #000;
}

/* ═══════════════════════════════════════════
   ABOUT / IMAGE ROW
═══════════════════════════════════════════ */
.about-section {
    padding: 80px 8%;
    background: var(--bg-mid);
    border-bottom: 1px solid rgba(142,207,255,0.08);
    overflow-x: clip;
}

.about-text {
    max-width: 700px;
    margin: 48px auto 48px;
    text-align: center;
}

.about-text h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 12px;
}

/* Image row — no labels, no gradient overlay */
.image-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.image-box {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(142,207,255,0.12);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.image-box:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--accent-dim);
    box-shadow: 0 12px 30px rgba(142,207,255,0.12);
}

/* ── Image fitting inside placeholder containers ── */
.image-box img,
.eb-box img,
.smp-shot img,
.fanart-img-placeholder,
.ag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Channel logo — circular crop */
img.channel-logo-inner {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(142,207,255,0.15);
    transition: 0.3s;
    display: block;
}

img.channel-logo-inner:hover {
    border-color: var(--accent-dim);
    box-shadow: 0 0 30px rgba(142,207,255,0.15);
    transform: scale(1.03);
}

/* Gallery slide images */
.ag-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18,18,18,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(142,207,255,0.1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.navbar.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 16px;
    color: var(--accent);
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ═══════════════════════════════════════════
   GENERAL SECTIONS
═══════════════════════════════════════════ */
.section {
    padding: 100px 8%;
    overflow-x: clip;
}

.section:nth-child(even) {
    background: var(--bg-mid);
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(24px, 3.5vw, 42px);
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 16px auto 0;
}

/* ═══════════════════════════════════════════
   CONTENT SECTION
═══════════════════════════════════════════ */
.platform-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: var(--bg-card);
    border: 1px solid rgba(142,207,255,0.1);
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
    color: var(--text);
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.twitch-card:hover { border-color: var(--twitch); color: var(--twitch); box-shadow: 0 8px 24px rgba(145,70,255,0.2); }
.youtube-card:hover { border-color: var(--youtube); color: var(--youtube); box-shadow: 0 8px 24px rgba(255,0,0,0.2); }

.platform-logo { width: 32px; height: 32px; object-fit: contain; }

.platform-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e53;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(238,85,51,0.6); }
    50% { box-shadow: 0 0 0 8px rgba(238,85,51,0); }
}

/* Emotes + badges 3-column row */
.emotes-badges-row {
    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

/* Channel logo box — sits in the middle column */
.channel-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.channel-logo-inner {
    width: 300px;
    height: 300px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(142,207,255,0.15);
    transition: 0.3s;
    cursor: pointer;
}

.channel-logo-inner:hover {
    border-color: var(--accent-dim);
    box-shadow: 0 0 30px rgba(142,207,255,0.15);
    transform: scale(1.03);
}

.emote-badge-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* Right-side block mirrors left: aligns everything to the right */
.emote-badge-block:last-child {
    align-items: flex-end;
}

.emote-badge-block:last-child .eb-caption {
    text-align: right;
}

.eb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

.eb-box {
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(142,207,255,0.12);
    transition: 0.3s;
    cursor: pointer;
}

.eb-box:hover {
    border-color: var(--accent-dim);
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(142,207,255,0.1);
}

.eb-caption {
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    color: var(--muted);
    text-align: left;
    max-width: 340px;
    line-height: 1.5;
}

.content-desc {
    max-width: 750px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 17px;
    color: var(--text);
}

/* Schedule */
.schedule-wrapper {
    margin-bottom: 60px;
}

.schedule-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-bottom: 20px;
}

.calendar-embed {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(142,207,255,0.1);
    background: var(--bg-card);
    position: relative;
}

.calendar-embed iframe {
    display: block;
    filter: invert(0.88) hue-rotate(180deg) brightness(0.95);
    border-radius: 10px;
}

.calendar-fallback {
    display: none;
    text-align: center;
    padding: 40px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--muted);
}

.schedule-caption {
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
    color: var(--muted);
}

.schedule-caption a { color: var(--accent); text-decoration: underline; }

/* Stream + chat side by side */
.stream-and-chat {
    display: flex;
    gap: 0;
    height: 560px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(145,70,255,0.25);
}

.twitch-player {
    flex: 3;
    background: #000;
}

.twitch-player iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.twitch-chat {
    flex: 1;
    background: #0e0e10;
    border-left: 1px solid rgba(145,70,255,0.2);
}

.twitch-chat iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════
   LINKS & ACHIEVEMENTS
═══════════════════════════════════════════ */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.split-heading {
    font-family: 'Cinzel Decorative', serif;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 36px;
}

.right-heading { text-align: right; }

/* Social list */
.social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.merch-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 22px;
}

.social-link {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    transition: 0.2s;
}

.twitch-link:hover  { color: var(--twitch); }
.youtube-link:hover { color: var(--youtube); }
.insta-link:hover   { color: var(--insta); }
.discord-link:hover { color: var(--discord); }

.coming-soon {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    color: var(--muted);
}

.coming-soon em { font-size: 14px; }

/* Achievements — no icons */
.achievement-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-align: right;
    padding: 5px 16px;
    background: var(--bg-card);
    border-radius: 6px;
    border-right: 3px solid var(--accent-dim);
    transition: 0.2s;
}

.achievement-item:hover {
    border-right-color: var(--accent);
    background: rgba(142,207,255,0.04);
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════
   FAN ART
═══════════════════════════════════════════ */
.fanart-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-dim);
    margin-bottom: 24px;
    text-align: center;
}

/* Featured row */
.fanart-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.fanart-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fanart-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(142,207,255,0.07);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fanart-img-placeholder:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
}

.fanart-caption {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

/* Single-box artist gallery */
.artist-gallery-single {
    margin-bottom: 50px;
}

.artist-gallery-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ag-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(142,207,255,0.1);
}

.ag-track {
    display: flex;
    transition: transform 0.4s ease;
}

.ag-slide {
    min-width: 100%;
}

.ag-img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: none;
}

.gallery-arrow {
    background: var(--bg-card);
    border: 1px solid rgba(142,207,255,0.15);
    color: var(--accent);
    font-size: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 2px;
}

.gallery-arrow:hover {
    background: var(--accent);
    color: #000;
}

.ag-artist-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-dim);
    text-align: center;
    margin-top: 14px;
}

.ag-counter {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 4px;
}

.fanart-note {
    text-align: center;
    font-size: 16px;
    margin-bottom: 8px;
    margin-top: 10px;
}

.fanart-note a { color: var(--accent); text-decoration: underline; }

.fanart-plea {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* Artist galleries 2x4 grid */
.artist-galleries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.artist-galleries-grid .artist-gallery-single {
    margin-bottom: 0;
}

/* SMP full rules layout */
.smp-rules-content {
    padding: 30px 28px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(142,207,255,0.07);
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.smp-rule-section h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(142,207,255,0.1);
    padding-bottom: 8px;
}

.smp-rule-section ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.smp-rule-section ol ol {
    margin-top: 4px;
    gap: 4px;
    color: rgba(201,232,255,0.75);
    font-size: 13.5px;
}

.smp-rule-section ol ol ol {
    font-size: 13px;
    color: rgba(201,232,255,0.55);
}

.smp-info-content.open { max-height: 9999px; }

@media (max-width: 900px) {
    .artist-galleries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .artist-galleries-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
═══════════════════════════════════════════ */
.smp-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.smp-shot {
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(142,207,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    transition: 0.3s;
    cursor: pointer;
}

.smp-shot:hover {
    border-color: var(--accent-dim);
    transform: scale(1.01);
}

.smp-toggle {
    width: 100%;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid rgba(142,207,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    transition: 0.2s;
}

.smp-toggle:hover { background: rgba(142,207,255,0.05); }

.toggle-icon {
    transition: transform 0.3s;
    font-size: 14px;
}

.toggle-icon.open { transform: rotate(180deg); }

.smp-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* max-height for open state set below in rules block */

.smp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 28px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(142,207,255,0.07);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.smp-info-block h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.smp-info-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smp-info-block li {
    font-size: 15px;
    color: var(--text);
    padding-left: 12px;
    border-left: 2px solid var(--accent-dim);
}

.smp-apply {
    text-align: center;
    margin-top: 50px;
}

.smp-apply p {
    font-size: 17px;
    margin-bottom: 24px;
    color: var(--text);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.apply-btn {
    display: inline-block;
    padding: 14px 44px;
    background: var(--accent);
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
}

.apply-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(142,207,255,0.25);
}

/* ═══════════════════════════════════════════
   TORN PAPER TRANSITION EDGE
═══════════════════════════════════════════ */
.torn-edge-wrapper {
    position: relative;
    z-index: 10;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

.torn-edge-svg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    /* height set by JS / inline, but CSS fallback */
    height: 120px;
    display: block;
}

/* ═══════════════════════════════════════════
   MYTHOS TRANSITION — DEEP SPACE
═══════════════════════════════════════════ */
.mythos-transition {
    min-height: 900vh;   /* much longer — each line has real space to breathe */
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(30,10,80,0.55) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(8,30,70,0.55) 0%, transparent 65%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(2,5,20,1) 0%, transparent 80%),
        linear-gradient(180deg,
            #000005 0%,
            #010210 10%,
            #020315 25%,
            #010215 50%,
            #000008 75%,
            #000003 100%
        );
    position: relative;
    overflow: hidden;
}

/* Deep nebula color washes */
.mythos-transition::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 30% at 15% 20%, rgba(80,20,140,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 25% at 85% 45%, rgba(20,60,140,0.20) 0%, transparent 65%),
        radial-gradient(ellipse 50% 20% at 50% 75%, rgba(60,10,100,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 35% 18% at 70% 15%, rgba(0,80,120,0.18) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

/* Slow drifting nebula shimmer */
.mythos-transition::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 25% 12% at 30% 55%, rgba(100,50,200,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 20% 10% at 65% 30%, rgba(50,120,200,0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: nebula-drift 28s ease-in-out infinite alternate;
}

@keyframes nebula-drift {
    0%   { transform: translate(0px, 0px) scale(1); opacity: 0.8; }
    33%  { transform: translate(30px, -20px) scale(1.04); opacity: 1; }
    66%  { transform: translate(-20px, 15px) scale(0.97); opacity: 0.7; }
    100% { transform: translate(10px, -10px) scale(1.02); opacity: 0.9; }
}

/* ── Drifting nebula layers ── */
.nebula-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: nebula-breathe 20s ease-in-out infinite alternate;
}

.n1 {
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(80,20,160,0.22) 0%, transparent 70%);
    top: 12%; left: -8%;
    animation-duration: 22s;
    animation-delay: 0s;
}
.n2 {
    width: 500px; height: 250px;
    background: radial-gradient(ellipse, rgba(10,60,140,0.20) 0%, transparent 70%);
    top: 28%; right: -6%;
    animation-duration: 26s;
    animation-delay: 4s;
}
.n3 {
    width: 700px; height: 350px;
    background: radial-gradient(ellipse, rgba(40,10,100,0.18) 0%, transparent 70%);
    top: 50%; left: 10%;
    animation-duration: 30s;
    animation-delay: 8s;
}
.n4 {
    width: 550px; height: 280px;
    background: radial-gradient(ellipse, rgba(0,50,120,0.20) 0%, transparent 70%);
    top: 72%; right: 5%;
    animation-duration: 24s;
    animation-delay: 2s;
}

@keyframes nebula-breathe {
    0%   { opacity: 0.4; transform: scale(1) translate(0px, 0px); }
    50%  { opacity: 0.8; transform: scale(1.08) translate(15px, -10px); }
    100% { opacity: 0.5; transform: scale(0.95) translate(-10px, 8px); }
}

/* ── Galaxy clusters ── */
.galaxy-cluster {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
    animation: galaxy-spin 80s linear infinite;
}

.gc1 {
    width: 180px; height: 180px;
    background:
        radial-gradient(ellipse 60% 30% at 50% 50%, rgba(200,180,255,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(100,80,200,0.2) 0%, transparent 80%);
    top: 18%; right: 12%;
    animation-duration: 90s;
    filter: blur(2px);
}
.gc2 {
    width: 120px; height: 120px;
    background:
        radial-gradient(ellipse 60% 30% at 50% 50%, rgba(180,220,255,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(60,120,220,0.2) 0%, transparent 80%);
    top: 44%; left: 8%;
    animation-duration: 110s;
    animation-direction: reverse;
    filter: blur(1.5px);
}
.gc3 {
    width: 150px; height: 150px;
    background:
        radial-gradient(ellipse 60% 30% at 50% 50%, rgba(255,200,220,0.4) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(140,60,120,0.2) 0%, transparent 80%);
    top: 72%; right: 18%;
    animation-duration: 100s;
    filter: blur(2px);
}

@keyframes galaxy-spin {
    from { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.1); }
    to   { transform: rotate(360deg) scale(1); }
}

.stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ── Floating text ── */
.floating-text {
    position: absolute;
    z-index: 3;
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(16px, 2.2vw, 28px);
    font-weight: 300;
    color: rgba(180, 220, 255, 0.0);
    letter-spacing: 1.5px;
    text-shadow:
        0 0 30px rgba(142,207,255,0.6),
        0 0 60px rgba(100,160,255,0.3);
    transition: color 1.2s ease, opacity 1.2s ease;
}

/* Spread across 900vh — each line gets ~110vh of space */
.text1 { top:  6%;  left: 8%;   animation: float1 9s  ease-in-out infinite; }
.text2 { top: 17%;  right: 9%;  animation: float2 11s ease-in-out infinite 1s; }
.text3 { top: 29%;  left: 14%;  animation: float1 10s ease-in-out infinite 2s; }
.text4 { top: 41%;  right: 12%; animation: float2 8s  ease-in-out infinite 0.5s; }
.text5 { top: 54%;  left: 9%;   animation: float1 12s ease-in-out infinite 1.5s; }
.text6 { top: 67%;  right: 11%; animation: float2 9s  ease-in-out infinite 3s; }

.text7 {
    top: 82%;
    left: 50%;
    font-size: clamp(22px, 3vw, 38px);
    font-weight: 600;
    color: rgba(142,207,255, 0.0);
    white-space: nowrap;
    animation: float-center 10s ease-in-out infinite;
    text-shadow:
        0 0 40px rgba(142,207,255,0.8),
        0 0 80px rgba(100,160,255,0.4),
        0 0 120px rgba(80,120,255,0.2);
    z-index: 3;
}

/* ── Secret star — slightly brighter than background stars ── */
.void-star {
    position: absolute;
    top: 88%;
    left: 80%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(230, 242, 255, 0.95);
    box-shadow:
        0 0 28px 12px rgba(180, 215, 255, 0.85),
        0 0 88px 24px rgba(142, 207, 255, 0.5),
        0 0 180px 40px rgba(100, 170, 255, 0.2);
    z-index: 4;
    cursor: pointer;
    animation: star-twinkle 4.5s ease-in-out infinite;
    text-decoration: none;
}

@keyframes star-twinkle {
    0%,  100% { opacity: 0.88; transform: scale(1); }
    45%       { opacity: 1;    transform: scale(1.35); }
    55%       { opacity: 0.92; transform: scale(1.15); }
}

/* Shooting star element */
.shooting-star {
    position: absolute;
    z-index: 2;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float1 {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-18px); }
    100% { transform: translateY(0px); }
}
@keyframes float2 {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(14px); }
    100% { transform: translateY(0px); }
}
@keyframes float-center {
    0%   { transform: translateX(-50%) translateY(0px); }
    50%  { transform: translateX(-50%) translateY(-18px); }
    100% { transform: translateX(-50%) translateY(0px); }
}
@keyframes shoot {
    0%   { transform: translateX(0) translateY(0) rotate(var(--angle)); opacity: 1; width: 2px; }
    100% { transform: translateX(var(--tx)) translateY(var(--ty)) rotate(var(--angle)); opacity: 0; width: 180px; }
}

/* ── Mythos button ── */
.mythos-button {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(15px, 1.6vw, 22px);
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
    white-space: nowrap;
    transition: 0.4s;
    padding: 18px 44px;
    border: 1px solid rgba(142,207,255,0.3);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    background: rgba(10,20,60,0.35);
    z-index: 3;
    box-shadow:
        0 0 30px rgba(142,207,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
    text-transform: uppercase;
}

.mythos-button:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(10,30,80,0.55);
    box-shadow:
        0 0 60px rgba(142,207,255,0.25),
        0 0 120px rgba(142,207,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.12);
    letter-spacing: 4px;
}


/* ═══════════════════════════════════════════
   SCROLL FADE-IN
═══════════════════════════════════════════ */
.fade-in-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .image-row { grid-template-columns: repeat(5, 1fr); }
    .emotes-badges-row { gap: 30px; }
}

@media (max-width: 900px) {
    .stream-and-chat { flex-direction: column; height: auto; }
    .twitch-player { height: 340px; }
    .twitch-chat { height: 300px; border-left: none; border-top: 1px solid rgba(145,70,255,0.2); }
    .emotes-badges-row { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 800px) {
    .hero-title { font-size: 38px; }
    .image-row { grid-template-columns: repeat(3, 1fr); }
    .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .right-heading { text-align: left; }
    .achievement-item { justify-content: flex-start; text-align: left; border-right: none; border-left: 3px solid var(--accent-dim); }
    .achievement-item:hover { transform: translateX(4px); }
    .fanart-featured { grid-template-columns: 1fr; }
    .smp-screenshots { grid-template-columns: 1fr; }
    .smp-info-grid { grid-template-columns: 1fr; }
    .nav-inner { flex-direction: column; gap: 12px; }
    .nav-links { gap: 16px; }
}

@media (max-width: 500px) {
    .section { padding: 70px 5%; }
    .hero-title { font-size: 30px; }
    .hero-overlay { padding: 36px 24px; }
    .image-row { grid-template-columns: repeat(2, 1fr); }
}