/* ============================================
   RUNECRAFT STUDIOS - NOSTRA WEBSITE
   A dying world, disguised as a golden age
   ============================================ */

/* CSS Variables - Nostra Color Palette */
:root {
    /* Primary Colors - Kingdom of Calum inspired */
    --gold: #c9a227;
    --gold-light: #e6c76a;
    --gold-dark: #8a6d14;

    /* Background Colors - Dark Fantasy */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;

    /* Text Colors */
    --text-primary: #e8e6e3;
    --text-secondary: #9a9590;
    --text-muted: #5a5550;

    /* Accent Colors - Mirror World inspired */
    --crystal-blue: #4a7c9b;
    --crystal-violet: #6b4c7a;
    --crystal-glow: rgba(74, 124, 155, 0.3);

    /* Danger/Blood - Crimson */
    --crimson: #8b2942;
    --crimson-light: #a83a55;

    /* Fonts */
    --font-display: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #c9a84c;
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 25s infinite;
    box-shadow: 0 0 5px rgba(201, 168, 76, 0.4);
}

/* Gold color variations only */
.particle:nth-child(3n) {
    background: #e6c76a;
    box-shadow: 0 0 6px rgba(230, 199, 106, 0.45);
}

.particle:nth-child(5n) {
    background: #d4b85c;
    box-shadow: 0 0 5px rgba(212, 184, 92, 0.4);
}

.particle:nth-child(7n) {
    background: #b89a3e;
    box-shadow: 0 0 7px rgba(184, 154, 62, 0.5);
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }
    8% {
        opacity: var(--particle-opacity, 0.3);
        transform: translateY(85vh) translateX(3px) scale(0.7);
    }
    40% {
        opacity: var(--particle-opacity, 0.3);
        transform: translateY(40vh) translateX(8px) scale(1);
    }
    70% {
        opacity: calc(var(--particle-opacity, 0.3) * 0.4);
        transform: translateY(15vh) translateX(5px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-5vh) translateX(-2px) scale(0.3);
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.05em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
}

strong {
    color: var(--gold);
    font-weight: 600;
}

em {
    font-style: italic;
    color: var(--crystal-blue);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.deco-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.deco-diamond {
    color: var(--gold);
    font-size: 0.8rem;
}

/* Section Ornaments */
.section-ornament {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.section-ornament.top {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-darker), transparent);
}

.section-ornament.bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-darker), transparent);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.3));
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.5));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--gold);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/images/Nostra_Title_Background.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 8, 0.6) 0%,
        rgba(10, 10, 15, 0.7) 50%,
        var(--bg-dark) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.3));
    animation: logo-glow 4s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(201, 162, 39, 0.4));
    }
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.1);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.feature-icon {
    color: var(--gold);
    font-size: 1.3rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    padding: 2rem;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--gold-dark);
    transform: rotate(3deg);
    opacity: 0.5;
}

.image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--gold-dark);
    transform: rotate(-3deg);
    opacity: 0.5;
}

.character-art {
    max-width: 350px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--crystal-glow), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   STORY SECTION
   ============================================ */
.story-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.story-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(107, 76, 122, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(74, 124, 155, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.story-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.story-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.story-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.story-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.story-quote {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-card), transparent);
    border-left: 3px solid var(--gold);
}

.story-quote blockquote {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: var(--bg-darker);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item picture {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* ============================================
   CHARACTERS SECTION
   ============================================ */
.characters-section {
    background: var(--bg-dark);
}

.characters-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.character-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.character-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.character-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.character-image picture {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.character-card h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.character-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   STUDIO SECTION
   ============================================ */
.studio-section {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
}

.studio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.studio-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.studio-info-centered h2 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.studio-info-centered p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.studio-info h2 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.studio-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.studio-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--bg-darker);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    transform: translateY(-3px);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.newsletter {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--gold);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn {
    padding: 1rem 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.3));
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--gold);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .story-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .characters-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .studio-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .studio-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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-logo {
        max-width: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .characters-showcase {
        grid-template-columns: 1fr;
    }

    .studio-stats {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .story-quote blockquote {
        font-size: 1.2rem;
    }
}

/* ============================================
   COMING SOON BADGE
   ============================================ */
.coming-soon-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.coming-soon-badge span {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 162, 39, 0.2); }
    50% { box-shadow: 0 0 20px rgba(201, 162, 39, 0.4); }
}

/* ============================================
   HERO PLATFORMS
   ============================================ */
.hero-platforms {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.platform-icons {
    display: flex;
    gap: 1rem;
}

.platform-icon {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.platform-icon:hover {
    color: var(--gold);
}

.platform-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   SCROLL ARROW
   ============================================ */
.scroll-arrow {
    width: 24px;
    height: 24px;
    color: var(--gold);
    animation: arrow-bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   BUTTON SVG ICON
   ============================================ */
.btn-icon-svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   DISCORD BUTTON
   ============================================ */
.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-discord::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7289DA, #99AAF5);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-discord:hover::before {
    opacity: 1;
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.btn-discord span {
    position: relative;
    z-index: 1;
}

.discord-cta {
    margin-bottom: 2rem;
}

/* ============================================
   GALLERY ZOOM ICON
   ============================================ */
.gallery-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.9);
    color: var(--bg-dark);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* ============================================
   FOOTER LEGAL
   ============================================ */
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--gold);
}

.footer-legal span {
    color: var(--text-muted);
}

/* ============================================
   FOOTER LOGO BIGGER
   ============================================ */
.footer-logo-image {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.3));
}

/* ============================================
   STUDIO INTRO HERO
   ============================================ */
.studio-intro {
    margin-bottom: 3rem;
}

.studio-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(201, 162, 39, 0.3);
}

.studio-subline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-cta {
    margin-top: 2rem;
}

/* ============================================
   PROJECT SELECTOR
   ============================================ */
.project-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.project-tab {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
    min-width: 200px;
}

.project-tab:hover {
    border-color: var(--gold-dark);
    background: var(--bg-card-hover);
}

.project-tab.active {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.project-tab-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
}

.project-tab.active .project-tab-title {
    color: var(--gold);
}

.project-tab-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   PROJECT PANELS
   ============================================ */
.project-content {
    position: relative;
}

.project-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.project-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-image {
    text-align: center;
}

.project-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(201, 162, 39, 0.3));
}

.project-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-platforms {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.project-platforms .platform-icons {
    display: flex;
    gap: 0.75rem;
}

.project-platforms .platform-icon {
    width: 28px;
    height: 28px;
}

/* NeoEngine Logo */
.neoengine-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.neoengine-logo {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 0.05em;
}

.neo-text {
    color: var(--crystal-blue);
    text-shadow: 0 0 30px rgba(74, 124, 155, 0.5);
}

.engine-text {
    color: var(--text-primary);
}

.neoengine-base {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* ============================================
   WORLD SHOWCASE
   ============================================ */
.world-section {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

.world-showcase {
    margin-bottom: 3rem;
}

.world-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.world-card:hover {
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.world-card .card-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.world-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.world-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Main Kingdom Card - Featured */
.world-card.main-kingdom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.world-card.main-kingdom:hover {
    transform: translateY(-8px);
}

.world-card-image {
    height: 100%;
    min-height: 350px;
}

.world-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.world-card-content {
    padding: 3rem 3rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.world-card-content .card-icon {
    font-size: 2.5rem;
}

.world-card-content h3 {
    font-size: 1.8rem;
}

.world-card-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* World Cards Row */
.world-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ============================================
   ROADMAP SECTION
   ============================================ */
/* -- Roadmap Teaser Banner -- */
.roadmap-teaser {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.roadmap-teaser-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) saturate(0.7);
    transition: transform 8s ease;
}

.roadmap-teaser:hover .roadmap-teaser-bg {
    transform: scale(1.05);
}

.roadmap-teaser-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-dark) 0%,
        rgba(10, 10, 15, 0.4) 30%,
        rgba(10, 10, 15, 0.4) 70%,
        var(--bg-dark) 100%
    );
}

.roadmap-teaser-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    padding: 3rem 2rem;
}

.roadmap-teaser-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.roadmap-teaser-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.roadmap-teaser-content .title-decoration {
    margin-bottom: 1.25rem;
}

.roadmap-teaser-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.roadmap-teaser-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    transition: all 0.35s ease;
}

.roadmap-teaser-btn .btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.35s ease;
}

.roadmap-teaser-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .roadmap-teaser {
        min-height: 320px;
    }

    .roadmap-teaser-title {
        font-size: 2rem;
    }

    .roadmap-teaser-desc {
        font-size: 1rem;
    }
}

/* Social Links Coming Soon */
.social-coming-soon {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.social-link-wrapper {
    position: relative;
    display: inline-block;
}

.social-link-wrapper.coming-soon .social-link {
    opacity: 0.4;
    pointer-events: none;
}

.soon-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-dark);
    color: var(--bg-dark);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.social-link.disabled {
    cursor: default;
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-section {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
    background: var(--bg-dark);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-block:last-of-type {
    border-bottom: none;
}

.legal-block h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.legal-block h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-block ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-block li {
    margin-bottom: 0.5rem;
}

.legal-block a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-block a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.legal-date {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-image {
        order: -1;
    }

    .world-card.main-kingdom {
        grid-template-columns: 1fr;
    }

    .world-card-image {
        min-height: 250px;
    }

    .world-card-content {
        padding: 2rem;
    }

    .world-cards-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-selector {
        flex-direction: column;
    }

    .project-tab {
        min-width: auto;
        width: 100%;
    }

    .roadmap-timeline {
        padding-left: 2rem;
    }

    .roadmap-marker {
        left: -2rem;
    }

    .roadmap-content {
        padding: 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .hero-platforms {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   MUSIC TOGGLE
   ============================================ */
.music-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 50%;
    padding: 0;
}

.music-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.music-toggle.playing {
    border-color: var(--gold);
    color: var(--gold);
    animation: music-pulse 2s ease-in-out infinite;
}

@keyframes music-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(201, 162, 39, 0.2); }
    50% { box-shadow: 0 0 15px rgba(201, 162, 39, 0.4); }
}

.music-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   NEOENGINE — BLIZZARD-STYLE FEATURES
   ============================================ */
.neoengine-header {
    text-align: center;
    margin-bottom: 4rem;
}

.neoengine-intro {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.neo-features {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.neo-feature-block {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(74, 124, 155, 0.1);
    align-items: start;
    transition: var(--transition-smooth);
}

.neo-feature-block:first-child {
    border-top: 1px solid rgba(74, 124, 155, 0.1);
}

.neo-feature-block:hover {
    background: rgba(74, 124, 155, 0.03);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.neo-feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 124, 155, 0.3);
    border-radius: 12px;
    color: var(--crystal-blue);
    background: rgba(74, 124, 155, 0.08);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.neo-feature-block:hover .neo-feature-icon {
    border-color: var(--crystal-blue);
    background: rgba(74, 124, 155, 0.15);
    box-shadow: 0 0 20px rgba(74, 124, 155, 0.2);
}

.neo-feature-icon svg {
    width: 28px;
    height: 28px;
}

.neo-feature-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
    transition: var(--transition-fast);
}

.neo-feature-block:hover .neo-feature-content h3 {
    color: var(--crystal-blue);
}

.neo-feature-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   NOSTRA CAROUSEL (with peek effect)
   ============================================ */
.nostra-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-darker);
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.carousel-slide {
    position: absolute;
    width: 80%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Active (center) slide */
.carousel-slide.active {
    z-index: 2;
    transform: translateX(0) scale(1);
    opacity: 1;
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Previous (left peek) */
.carousel-slide.prev {
    z-index: 1;
    transform: translateX(-85%) scale(0.85);
    opacity: 0.35;
    filter: brightness(0.5);
}

/* Next (right peek) */
.carousel-slide.next {
    z-index: 1;
    transform: translateX(85%) scale(0.85);
    opacity: 0.35;
    filter: brightness(0.5);
}

/* Hidden slides */
.carousel-slide.hidden {
    z-index: 0;
    transform: translateX(0) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

/* Prev/Next Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--gold);
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.nostra-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* Dot Indicators */
.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.carousel-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Fullscreen Button */
.carousel-fullscreen {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--gold);
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
}

.nostra-carousel:hover .carousel-fullscreen {
    opacity: 1;
}

.carousel-fullscreen svg {
    width: 16px;
    height: 16px;
}

.carousel-fullscreen:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* ============================================
   RUNECRAFT AI
   ============================================ */
.runecraftai-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.runecraftai-logo {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 0.05em;
}

.runecraft-text {
    color: var(--text-primary);
}

.ai-text {
    color: var(--crystal-violet);
    text-shadow: 0 0 30px rgba(107, 76, 122, 0.5);
}

.runecraftai-base {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.05em;
}

.runecraftai-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ai-highlight {
    display: flex;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.ai-highlight:hover {
    border-color: rgba(107, 76, 122, 0.3);
    transform: translateX(5px);
}

.ai-highlight-icon {
    font-size: 1.8rem;
    color: var(--crystal-violet);
    flex-shrink: 0;
    line-height: 1;
}

.ai-highlight h4 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ai-highlight p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.ai-workflow-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(107, 76, 122, 0.3);
    cursor: pointer;
}

.ai-workflow-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
    filter: brightness(0.85);
}

.ai-workflow-preview:hover img {
    transform: scale(1.03);
    filter: brightness(1);
}

.workflow-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* (Gallery tabs and ingame-showcase removed — ingame is now in Nostra panel) */

/* ============================================
   RESPONSIVE - NEW ELEMENTS
   ============================================ */
@media (max-width: 1024px) {
    .neo-feature-block {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .neo-feature-block {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .neo-feature-icon {
        margin: 0 auto;
    }

    .neo-feature-block:hover {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .carousel-btn {
        opacity: 1;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .carousel-fullscreen {
        opacity: 1;
    }

    .carousel-slide {
        width: 90%;
    }

    .carousel-slide.prev {
        transform: translateX(-90%) scale(0.8);
        opacity: 0.25;
    }

    .carousel-slide.next {
        transform: translateX(90%) scale(0.8);
        opacity: 0.25;
    }

    .ai-highlight {
        flex-direction: column;
        text-align: center;
    }

    .ai-workflow-preview {
        margin-top: 1rem;
    }

    .music-toggle {
        width: 34px;
        height: 34px;
    }
}

/* ============================================
   ROADMAP PAGE (roadmap.html)
   Horizontal WoW-Style Timeline Layout
   ============================================ */

/* -- Page Transition Overlay -- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-darker, #050508);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

body.page-entering .page-transition {
    opacity: 1;
}

body.page-entered .page-transition {
    opacity: 0;
}

/* -- Roadmap Color Variables -- */
.rm-hero,
.rm-main {
    --rm-blue: #4a9eff;
    --rm-green: #3dd68c;
    --rm-gold: #c9a84c;
    --rm-gold-light: #e8d48b;
    --rm-orange: #ea580c;
    --rm-purple: #a855f7;
    --rm-cyan: #22d3ee;
    --rm-pink: #f472b6;
    --rm-tale: #8b5cf6;
    --rm-bg: #08090f;
    --rm-bg-card: rgba(12, 14, 24, 0.92);
    --rm-text: #eae4d8;
    --rm-text-muted: rgba(234, 228, 216, 0.55);
    --rm-border: rgba(201, 168, 76, 0.15);
    --rm-border-hover: rgba(201, 168, 76, 0.4);
}

/* -- Roadmap Active Nav Link -- */
.nav-links a.active {
    color: var(--gold);
}

/* -- Hero Section -- */
.rm-hero {
    position: relative;
    width: 100%;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.rm-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.rm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 9, 15, 0.3) 0%, rgba(8, 9, 15, 0.85) 80%, var(--bg-darker) 100%);
}

.rm-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 2rem 1.5rem;
}

.rm-hero-logo {
    width: 280px;
    height: auto;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.2));
    animation: rmLogoFloat 4s ease-in-out infinite;
}

@keyframes rmLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.rm-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    color: var(--rm-text);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

.rm-hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--gold-light);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.rm-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rm-hero-divider .deco-line {
    width: 60px;
}

/* -- Character Silhouettes -- */
.rm-character {
    position: fixed;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    height: 55vh;
    max-height: 550px;
    opacity: 0;
    transition: opacity 0.8s;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.rm-character.visible {
    opacity: 0.12;
}

.rm-character-left {
    left: -20px;
}

.rm-character-right {
    right: -20px;
    transform: scaleX(-1);
}

/* -- Main Content Area -- */
.rm-main {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0 4rem;
    background: transparent;
}

/* ============================
   HORIZONTAL TIMELINE LAYOUT
   ============================ */

.rm-timeline {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 1rem 3rem 4rem;
    max-width: 1500px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.25) transparent;
}

.rm-timeline::-webkit-scrollbar {
    height: 6px;
}

.rm-timeline::-webkit-scrollbar-track {
    background: transparent;
}

.rm-timeline::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.2);
    border-radius: 3px;
}

/* -- Timeline Rail (connecting horizontal line) -- */
.rm-timeline-rail {
    position: absolute;
    top: 9px;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: linear-gradient(90deg,
        var(--rm-blue) 0%,
        var(--rm-green) 20%,
        var(--rm-gold) 40%,
        var(--rm-orange) 60%,
        var(--rm-tale) 80%,
        var(--rm-purple) 100%
    );
    z-index: 0;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(74, 158, 255, 0.15), 0 0 8px rgba(168, 85, 247, 0.15);
}

/* ============================
   TIMELINE NODE (each column)
   ============================ */

.rm-timeline-node {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rm-timeline-node.rm-node-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.rm-timeline-node:nth-child(2).rm-node-visible { transition-delay: 0.05s; }
.rm-timeline-node:nth-child(3).rm-node-visible { transition-delay: 0.1s; }
.rm-timeline-node:nth-child(4).rm-node-visible { transition-delay: 0.15s; }
.rm-timeline-node:nth-child(5).rm-node-visible { transition-delay: 0.2s; }
.rm-timeline-node:nth-child(6).rm-node-visible { transition-delay: 0.25s; }
.rm-timeline-node:nth-child(7).rm-node-visible { transition-delay: 0.3s; }

/* -- Node Dot -- */
.rm-node-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--rm-bg);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rm-node-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Dot colors per node */
.rm-node-color-blue .rm-node-dot {
    background: var(--rm-blue);
    box-shadow: 0 0 0 2px var(--rm-blue), 0 0 14px rgba(74, 158, 255, 0.4);
}
.rm-node-color-blue .rm-node-dot::after { background: #93c5fd; }

.rm-node-color-green .rm-node-dot {
    background: var(--rm-green);
    box-shadow: 0 0 0 2px var(--rm-green), 0 0 14px rgba(61, 214, 140, 0.4);
}
.rm-node-color-green .rm-node-dot::after { background: #86efac; }

.rm-node-color-gold .rm-node-dot {
    background: var(--rm-gold);
    box-shadow: 0 0 0 2px var(--rm-gold), 0 0 14px rgba(201, 168, 76, 0.4);
}
.rm-node-color-gold .rm-node-dot::after { background: var(--rm-gold-light); }

.rm-node-color-orange .rm-node-dot {
    background: var(--rm-orange);
    box-shadow: 0 0 0 2px var(--rm-orange), 0 0 14px rgba(234, 88, 12, 0.4);
}
.rm-node-color-orange .rm-node-dot::after { background: #fb923c; }

.rm-node-color-tale .rm-node-dot {
    background: var(--rm-tale);
    box-shadow: 0 0 0 2px var(--rm-tale), 0 0 14px rgba(139, 92, 246, 0.4);
}
.rm-node-color-tale .rm-node-dot::after { background: #c4b5fd; }

.rm-node-color-purple .rm-node-dot {
    background: var(--rm-purple);
    box-shadow: 0 0 0 2px var(--rm-purple), 0 0 14px rgba(168, 85, 247, 0.4);
}
.rm-node-color-purple .rm-node-dot::after { background: #c084fc; }

/* ============================
   ACTIVE NODE INDICATOR
   ============================ */

/* Badge BELOW the active card (same style as "Angekündigt") */
.rm-active-badge-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.rm-active-badge {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rm-blue);
    padding: 6px 20px;
    border: 1px solid rgba(74, 158, 255, 0.4);
    border-radius: 30px;
    background: rgba(74, 158, 255, 0.1);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.15), 0 0 30px rgba(74, 158, 255, 0.06);
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
    animation: rmActiveBadgePulse 3s ease-in-out infinite;
}

@keyframes rmActiveBadgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(74, 158, 255, 0.15), 0 0 30px rgba(74, 158, 255, 0.06); }
    50% { box-shadow: 0 0 20px rgba(74, 158, 255, 0.25), 0 0 40px rgba(74, 158, 255, 0.1); }
}

/* Active node dot pulses gently */
.rm-node-active .rm-node-dot {
    animation: rmActiveNodePulse 2.5s ease-in-out infinite;
}

@keyframes rmActiveNodePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Active card — enhanced border glow matching node color */
.rm-node-active .rm-card {
    border-width: 2px;
}

.rm-node-color-blue.rm-node-active .rm-card {
    border-color: rgba(74, 158, 255, 0.4);
    box-shadow:
        0 0 20px rgba(74, 158, 255, 0.15),
        0 0 50px rgba(74, 158, 255, 0.08),
        inset 0 0 30px rgba(74, 158, 255, 0.04);
}

.rm-node-color-blue.rm-node-active .rm-card:hover {
    border-color: rgba(74, 158, 255, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 35px rgba(74, 158, 255, 0.2),
        0 0 70px rgba(74, 158, 255, 0.1);
}

/* Generic active styles for other colors (if needed later) */
.rm-node-color-green.rm-node-active .rm-card {
    border-color: rgba(61, 214, 140, 0.4);
    box-shadow: 0 0 20px rgba(61, 214, 140, 0.15), 0 0 50px rgba(61, 214, 140, 0.08);
}
.rm-node-color-gold.rm-node-active .rm-card {
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15), 0 0 50px rgba(201, 168, 76, 0.08);
}
.rm-node-color-orange.rm-node-active .rm-card {
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.15), 0 0 50px rgba(234, 88, 12, 0.08);
}

/* Milestone dot pulse */
.rm-node-milestone {
    animation: rmNodePulse 2.5s ease-in-out infinite;
}

@keyframes rmNodePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Future dot pulse */
.rm-node-dot-future {
    animation: rmPulseFuture 2s ease-in-out infinite;
}

@keyframes rmPulseFuture {
    0%, 100% { box-shadow: 0 0 0 2px var(--rm-purple), 0 0 14px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 4px var(--rm-purple), 0 0 28px rgba(168, 85, 247, 0.6); }
}

/* -- Node Label -- */
.rm-node-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rm-text);
    margin-top: 10px;
    margin-bottom: 14px;
    text-align: center;
    white-space: nowrap;
}

/* ============================
   CARD (hangs below node)
   ============================ */

.rm-card {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--rm-bg-card);
    border: 1px solid var(--rm-border);
    transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

/* Cards with particle glow need visible overflow + no bg (children provide it) */
.rm-milestone,
.rm-node-active .rm-card {
    overflow: visible;
    background: transparent;
}

/* Children provide the card background instead */
.rm-milestone .rm-card-img,
.rm-node-active .rm-card .rm-card-img {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: var(--rm-bg-card);
}

.rm-milestone .rm-card-body,
.rm-node-active .rm-card .rm-card-body {
    background: var(--rm-bg-card);
    border-radius: 0 0 12px 12px;
}

.rm-card:hover {
    transform: translateY(-4px);
    border-color: var(--rm-border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 168, 76, 0.06);
}

/* -- Card Image (full width top) -- */
.rm-card-img {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.rm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.rm-card:hover .rm-card-img img {
    transform: scale(1.08);
}

.rm-card-img-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--rm-bg-card));
    pointer-events: none;
}

/* -- Card Body -- */
.rm-card-body {
    padding: 0;
    background: var(--rm-bg-card);
    position: relative;
}

/* -- Card Section (one per project) -- */
.rm-card-section {
    padding: 10px 16px;
    border-bottom: 1px solid var(--rm-border);
}

.rm-card-section:last-child {
    border-bottom: none;
}

.rm-section-label {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

/* -- Tags -- */
.rm-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 2px 8px;
    border-radius: 3px;
}

.rm-tag-nostra {
    background: rgba(201, 168, 76, 0.12);
    color: var(--rm-gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.rm-tag-engine {
    background: rgba(34, 211, 238, 0.12);
    color: var(--rm-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.rm-tag-ai {
    background: rgba(244, 114, 182, 0.12);
    color: var(--rm-pink);
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.rm-tag-tale {
    background: rgba(139, 92, 246, 0.12);
    color: var(--rm-tale);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.rm-tag-event {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.rm-tag-milestone {
    background: rgba(201, 168, 76, 0.15);
    color: var(--rm-gold-light);
    border: 1px solid rgba(201, 168, 76, 0.35);
    text-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
}

/* -- Card Title -- */
.rm-card-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--rm-text);
    margin-bottom: 8px;
}

/* -- Milestone description inside a card section -- */
.rm-card-milestone-desc {
    font-size: 0.72rem;
    color: var(--rm-gold-light);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* -- Feature List -- */
.rm-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.rm-card-features li {
    font-family: var(--font-body);
    font-size: 0.74rem;
    color: rgba(234, 228, 216, 0.7);
    padding-left: 14px;
    position: relative;
    line-height: 1.45;
}

.rm-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    transform: rotate(45deg);
    opacity: 0.85;
    background: var(--rm-gold);
    box-shadow: 0 0 4px rgba(201, 168, 76, 0.3);
}

/* Feature bullet colors per section tag */
.rm-card-section:has(.rm-tag-nostra) .rm-card-features li::before {
    background: var(--rm-gold);
    box-shadow: 0 0 4px rgba(201, 168, 76, 0.3);
}

.rm-card-section:has(.rm-tag-engine) .rm-card-features li::before {
    background: var(--rm-cyan);
    box-shadow: 0 0 4px rgba(34, 211, 238, 0.3);
}

.rm-card-section:has(.rm-tag-ai) .rm-card-features li::before {
    background: var(--rm-pink);
    box-shadow: 0 0 4px rgba(244, 114, 182, 0.3);
}

.rm-card-section:has(.rm-tag-tale) .rm-card-features li::before {
    background: var(--rm-tale);
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.3);
}

/* Completed / Done items */
.rm-card-features li.rm-done {
    color: rgba(234, 228, 216, 0.4);
    text-decoration: line-through;
    text-decoration-color: rgba(234, 228, 216, 0.25);
}
.rm-card-features li.rm-done::before {
    background: #4ade80 !important;
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.4) !important;
}

/* Early-completed items (done ahead of schedule) */
.rm-card-features li.rm-early {
    color: rgba(234, 228, 216, 0.4);
    text-decoration: line-through;
    text-decoration-color: rgba(234, 228, 216, 0.25);
}
.rm-card-features li.rm-early::before {
    background: #60a5fa !important;
    box-shadow: 0 0 4px rgba(96, 165, 250, 0.4) !important;
}
.rm-card-features li.rm-early::after {
    content: attr(data-early-de);
    display: inline-block;
    margin-left: 10px;
    font-size: 0.75em;
    padding: 3px 10px;
    border-radius: 5px;
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    vertical-align: middle;
    text-decoration: none;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
}
[data-lang="en"] .rm-card-features li.rm-early::after {
    content: attr(data-early-en);
}

/* ============================
   COMPLETED SEASON - Celebration
   ============================ */

/* Completed badge — gold instead of blue */
.rm-badge-completed {
    color: #f0d060 !important;
    border-color: rgba(240, 208, 96, 0.5) !important;
    background: rgba(240, 208, 96, 0.12) !important;
    box-shadow: 0 0 18px rgba(240, 208, 96, 0.2), 0 0 40px rgba(240, 208, 96, 0.08) !important;
    text-shadow: 0 0 12px rgba(240, 208, 96, 0.5) !important;
    animation: rmCompletedBadgePulse 3s ease-in-out infinite !important;
}

@keyframes rmCompletedBadgePulse {
    0%, 100% { box-shadow: 0 0 18px rgba(240, 208, 96, 0.2), 0 0 40px rgba(240, 208, 96, 0.08); }
    50% { box-shadow: 0 0 28px rgba(240, 208, 96, 0.35), 0 0 60px rgba(240, 208, 96, 0.15); }
}

/* Completed node — golden dot */
.rm-node-completed .rm-node-dot {
    background: radial-gradient(circle, #f0d060 0%, #c9a84c 100%) !important;
    box-shadow: 0 0 12px rgba(240, 208, 96, 0.5) !important;
}
.rm-node-completed .rm-node-dot::after {
    background: #f0d060 !important;
}

/* Completed card — golden border with sweeping shimmer */
.rm-node-completed .rm-card {
    border-color: rgba(240, 208, 96, 0.45) !important;
    box-shadow:
        0 0 25px rgba(240, 208, 96, 0.15),
        0 0 60px rgba(240, 208, 96, 0.06),
        inset 0 0 40px rgba(240, 208, 96, 0.03) !important;
    position: relative;
    overflow: hidden;
}

/* Sweeping light shimmer across the card */
.rm-node-completed .rm-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(240, 208, 96, 0.04) 30%,
        rgba(240, 208, 96, 0.10) 50%,
        rgba(240, 208, 96, 0.04) 70%,
        transparent 100%
    );
    animation: rmCompletedShimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rmCompletedShimmer {
    0%   { left: -100%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

/* Floating golden particles around the card */
.rm-node-completed .rm-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background:
        radial-gradient(2px 2px at 15% 20%, rgba(240, 208, 96, 0.6), transparent),
        radial-gradient(2px 2px at 85% 15%, rgba(240, 208, 96, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(240, 208, 96, 0.4), transparent),
        radial-gradient(2px 2px at 70% 70%, rgba(240, 208, 96, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 25% 55%, rgba(240, 208, 96, 0.3), transparent),
        radial-gradient(2px 2px at 90% 45%, rgba(240, 208, 96, 0.4), transparent),
        radial-gradient(1px 1px at 55% 10%, rgba(240, 208, 96, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 10% 90%, rgba(240, 208, 96, 0.3), transparent);
    animation: rmCompletedParticles 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes rmCompletedParticles {
    0%   { opacity: 0.3; transform: translateY(0px); }
    50%  { opacity: 0.7; transform: translateY(-3px); }
    100% { opacity: 0.3; transform: translateY(1px); }
}

/* Completed card hover — intensify glow */
.rm-node-completed .rm-card:hover {
    border-color: rgba(240, 208, 96, 0.7) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(240, 208, 96, 0.25),
        0 0 80px rgba(240, 208, 96, 0.12) !important;
}

/* Node label glows gold */
.rm-node-completed .rm-node-label {
    color: #f0d060 !important;
    text-shadow: 0 0 8px rgba(240, 208, 96, 0.3);
}

/* ============================
   MILESTONE CARD - Special Glow
   ============================ */

/* Milestone node is wider/taller than regular cards */
.rm-timeline-node:has(.rm-milestone) {
    min-width: 240px;
    max-width: 320px;
    flex: 1.3;
}

.rm-milestone {
    border-color: rgba(201, 168, 76, 0.5);
    border-width: 2px;
    box-shadow:
        0 0 30px rgba(201, 168, 76, 0.2),
        0 0 60px rgba(201, 168, 76, 0.1),
        0 0 100px rgba(201, 168, 76, 0.05),
        inset 0 0 50px rgba(201, 168, 76, 0.06);
}

.rm-milestone:hover {
    border-color: rgba(201, 168, 76, 0.7);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 50px rgba(201, 168, 76, 0.25),
        0 0 100px rgba(201, 168, 76, 0.12),
        0 0 150px rgba(201, 168, 76, 0.06);
}

/* Milestone card — taller than regular cards */
.rm-milestone .rm-card-img {
    height: 240px;
}

.rm-milestone .rm-card-img img {
    object-position: center 25%;
}

.rm-milestone .rm-card-body {
    padding: 16px 14px 20px;
}

.rm-card-glow {
    position: absolute;
    inset: -25px;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.rm-glow-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--rm-gold);
    opacity: 0;
    animation: rmGlowFloat 4s ease-in-out infinite;
    box-shadow: 0 0 8px var(--rm-gold), 0 0 16px rgba(201, 168, 76, 0.4), 0 0 24px rgba(201, 168, 76, 0.15);
}

/* Blue particles for active card */
.rm-node-color-blue .rm-glow-particle {
    background: var(--rm-blue);
    box-shadow: 0 0 8px var(--rm-blue), 0 0 16px rgba(74, 158, 255, 0.4), 0 0 24px rgba(74, 158, 255, 0.15);
}

@keyframes rmGlowFloat {
    0% { opacity: 0; transform: translateY(12px) translateX(-4px) scale(0.3); }
    20% { opacity: 0.7; }
    50% { opacity: 0.4; transform: translateY(-20px) translateX(6px) scale(1.2); }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(12px) translateX(-2px) scale(0.3); }
}

.rm-milestone .rm-card-img,
.rm-milestone .rm-card-body,
.rm-node-active .rm-card .rm-card-img,
.rm-node-active .rm-card .rm-card-body {
    position: relative;
    z-index: 1;
}

/* ============================
   EXPANSION TEASER CARD
   ============================ */

.rm-card-expansion {
    position: relative;
    min-height: 300px;
    border-color: rgba(168, 85, 247, 0.25);
}

.rm-card-expansion:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(168, 85, 247, 0.08);
}

.rm-card-expansion .rm-expansion-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.rm-card-expansion .rm-expansion-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(8, 9, 15, 0.3) 0%, rgba(8, 9, 15, 0.85) 100%);
    border-radius: 12px;
}

.rm-expansion-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    padding: 24px 16px;
}

/* Logo at the top of the card */
.rm-expansion-logo {
    max-width: 160px;
    width: 80%;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.25));
    margin-top: 10px;
}

.rm-expansion-hint {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--rm-text-muted);
    margin-top: 16px;
    letter-spacing: 0.03em;
}

/* Badge BELOW the expansion card */
.rm-expansion-badge-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.rm-expansion-badge {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rm-purple);
    padding: 6px 20px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 30px;
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15), 0 0 30px rgba(168, 85, 247, 0.06);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    animation: rmBadgePulse 3s ease-in-out infinite;
}

@keyframes rmBadgePulse {
    0%, 100% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.15), 0 0 30px rgba(168, 85, 247, 0.06); }
    50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.25), 0 0 40px rgba(168, 85, 247, 0.1); }
}

/* -- Disclaimer -- */
.rm-disclaimer {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 2rem 3rem 0;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.03em;
    border-top: 1px solid var(--rm-border);
}

/* ============================
   ROADMAP RESPONSIVE
   ============================ */

@media (max-width: 1100px) {
    .rm-character {
        display: none;
    }

    .rm-timeline {
        padding: 1rem 1.5rem 3rem;
        gap: 12px;
    }

    .rm-timeline-node {
        min-width: 170px;
    }

    .rm-timeline-rail {
        left: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .rm-hero {
        min-height: 30vh;
    }

    .rm-hero-title {
        font-size: 2rem;
    }

    .rm-hero-logo {
        width: 130px;
    }

    /* Vertical layout on mobile */
    .rm-timeline {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1rem 3rem;
        gap: 24px;
        overflow-x: visible;
    }

    .rm-timeline-rail {
        display: none;
    }

    .rm-timeline-node {
        max-width: 100%;
        min-width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .rm-node-dot {
        flex-shrink: 0;
    }

    .rm-node-label {
        margin-top: 0;
        margin-bottom: 0;
        align-self: center;
    }

    .rm-card {
        width: 100%;
        flex-basis: 100%;
    }

    .rm-card-img {
        height: 160px;
    }

    .rm-expansion-inner {
        min-height: 220px;
    }

    .rm-card-expansion {
        min-height: 220px;
    }

    .rm-expansion-logo {
        max-width: 180px;
    }

    .rm-expansion-badge-wrap {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .rm-card-img {
        height: 120px;
    }

    .rm-card-section {
        padding: 8px 12px;
    }

    .rm-card-title {
        font-size: 0.82rem;
    }

    .rm-node-label {
        font-size: 0.6rem;
    }
}

/* ============================================
   SPA VIEWPORT & SLIDER
   ============================================ */
.spa-viewport {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.spa-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.spa-slider.no-transition {
    transition: none;
}

.spa-page {
    width: 33.3333%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

/* Roadmap active → slider shifts to page 2 */
.spa-slider[data-active="roadmap"] {
    transform: translateX(-33.3333%);
}

/* Dev Log active → slider shifts to page 3 */
.spa-slider[data-active="devlog"] {
    transform: translateX(-66.6666%);
}
