:root {
    --primary-green: #00ff88;
    --green-glow: #00ff8855;
    --green-dark: #00cc6a;
    --bg-darkest: #0a0a0a;
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --wood-dark: #2a1f1a;
    --wood-medium: #3d2b20;
    --wood-light: #5c4033;
    --brass: #b5a642;
    --brass-light: #d4c55a;
    --text-primary: #f5f0e8;
    --text-secondary: #a89f94;
    --text-muted: #6b6259;
    --danger-red: #c9302c;
}

/* Custom text selection color */
::selection {
    background: var(--green-dark);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--green-dark);
    color: var(--text-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* Custom tap feedback for mobile */
button, a, .carousel-indicator {
    -webkit-tap-highlight-color: rgba(0, 255, 136, 0.1);
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* Steam/fog effect */
.steam-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 136, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--wood-dark);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px var(--green-glow));
}

.nav-logo span {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* Language toggle */
.lang-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: 4px;
    border: 1px solid var(--wood-dark);
    z-index: 2;
}

.lang-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.lang-btn.active {
    background: var(--primary-green);
    color: var(--bg-darkest);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

/* Train tracks background */
.tracks-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 40px,
            var(--wood-dark) 40px,
            var(--wood-dark) 50px
        );
    opacity: 0.3;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
}

/* Animated smoke particles */
.smoke-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.smoke {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rise 8s infinite;
}

@keyframes rise {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-20vh) scale(4);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px var(--green-glow));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 30px var(--green-glow));
    }
    50% {
        filter: drop-shadow(0 0 50px var(--green-glow)) drop-shadow(0 0 80px rgba(0, 255, 136, 0.3));
    }
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--brass-light) 50%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero-tagline {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Server IP Section */
.server-ip-box {
    background: linear-gradient(135deg, var(--wood-dark) 0%, var(--bg-card) 100%);
    border: 2px solid var(--wood-medium);
    border-radius: 12px;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.server-ip-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.ip-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.ip-address {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.8rem;
    color: var(--primary-green);
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px var(--green-glow);
    margin-bottom: 0.5rem;
}

.copy-btn {
    background: var(--primary-green);
    border: none;
    color: var(--bg-darkest);
    padding: 0.75rem 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--green-glow);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-muted);
}

/* Section styling */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Decorative divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.divider-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--wood-light), transparent);
}

.divider-icon {
    color: var(--primary-green);
    font-size: 1.5rem;
}

/* ===== Parallax Sections ===== */

/* Base parallax section */
.parallax-section {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.4), transparent);
    z-index: 1;
}

/* Base parallax image */
.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/parallax3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.parallax-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.4);
}

/* Zone 1 - Between hero and minigames */
.parallax-zone2 {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.parallax-zone2-image {
    background-image: url('img/parallax1.jpg');
}

/* Zone 2 - Between featured and trailer (uses base styles with zone1.jpg) */

/* Zone 3 - Between trailer and community */
.parallax-zone3 {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.parallax-zone3-image {
    background-image: url('img/parallax2.jpg');
}

/* Featured Minigame - Train Murder Mystery */
.featured-game {
    background:
        linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-darkest) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 2rem;
}

.featured-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brass), var(--brass-light), var(--brass), transparent);
    pointer-events: none;
    z-index: 1;
}

.featured-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-visual {
    position: relative;
}

.train-card {
    background: linear-gradient(145deg, var(--wood-dark) 0%, var(--bg-card) 100%);
    border: 3px solid var(--wood-medium);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.train-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brass), var(--brass-light), var(--brass));
}

/* Train illustration carousel */
.train-illustration {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #1a1510 0%, #0d0a08 100%);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.15);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 21, 16, 0.6) 0%, rgba(13, 10, 8, 0.8) 100%);
    pointer-events: none;
}

/* Mystery fog */
.mystery-fog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--wood-medium);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

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

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

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    width: 24px;
    border-radius: 4px;
}

.new-badge {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger-red);
    color: white;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: glow-red 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes glow-red {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 48, 44, 0.5); }
    50% { box-shadow: 0 0 25px rgba(201, 48, 44, 0.8); }
}

.featured-info h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.featured-info .subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.featured-info .description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Game features list */
.game-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 255, 136, 0.05);
    border-left: 2px solid var(--primary-green);
}

.feature-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-green);
    flex-shrink: 0;
}

.feature-item span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Roles preview */
.roles-preview {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.role-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--wood-dark);
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.role-badge .role-icon {
    font-size: 1rem;
}

/* Minigames Section */
.minigames-section {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.minigames-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.minigames-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.minigames-grid .coming-soon-message {
    grid-column: 1 / -1;
    display: none;
}

.minigame-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-darkest) 100%);
    border: 2px solid var(--wood-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.minigame-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.minigame-card.featured-card {
    border-color: var(--primary-green);
}

.minigame-card.coming-soon {
    opacity: 0.6;
}

.minigame-card.coming-soon:hover {
    transform: none;
    border-color: var(--wood-dark);
    box-shadow: none;
}

.clickable-card {
    cursor: pointer;
    transition: all 0.4s ease;
}

.clickable-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow: 0 25px 50px rgba(0, 255, 136, 0.2);
}

.coming-soon-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.card-image {
    height: 180px;
    background: var(--bg-darkest);
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.15);
}

.card-image.tmm-bg {
    background:
        linear-gradient(180deg, transparent 0%, var(--bg-darkest) 100%),
        linear-gradient(135deg, var(--wood-dark) 0%, var(--bg-card) 100%);
}

.card-image.prophunt-bg {
    background:
        linear-gradient(180deg, transparent 0%, var(--bg-darkest) 100%),
        linear-gradient(135deg, #1a3a1a 0%, var(--bg-card) 100%);
}

.card-image.mines-bg {
    background:
        linear-gradient(180deg, transparent 0%, var(--bg-darkest) 100%),
        linear-gradient(135deg, #3a1a1a 0%, var(--bg-card) 100%);
}

.card-image .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-count {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-badge.live {
    background: var(--primary-green);
    color: var(--bg-darkest);
}

.status-badge.soon {
    background: var(--wood-medium);
    color: var(--text-secondary);
}

/* Featured description fade transitions */
.featured-info {
    transition: opacity 0.3s ease-in-out;
    min-height: 600px;
    align-content: center;
}

.featured-info.fade-out {
    opacity: 0;
}

.featured-info.fade-in {
    opacity: 1;
}

/* Featured carousel blurred slides */
.carousel-slide.blurred-slide {
    position: relative;
}

.carousel-slide.blurred-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.3);
    z-index: 1;
}

.carousel-slide.blurred-slide img {
    filter: blur(4px);
}

/* Community Section */
.community-section {
    background:
        linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--wood-dark);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 120px;
    height: 120px;
}

.social-link:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.social-link svg {
    width: 32px;
    height: 32px;
    fill: var(--text-secondary);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--primary-green);
}

/* Brand-specific hover colors */
.social-link:nth-child(1):hover {
    border-color: #5865F2;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.3);
}

.social-link:nth-child(1):hover svg {
    fill: #5865F2; /* Discord */
}

.social-link:nth-child(2):hover {
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.social-link:nth-child(2):hover svg {
    fill: #ffffff; /* Twitter/X */
}

.social-link:nth-child(3):hover {
    border-color: #E4405F;
    box-shadow: 0 10px 30px rgba(228, 64, 95, 0.2);
}

.social-link:nth-child(3):hover svg {
    fill: #E4405F; /* Instagram */
}

.social-link:nth-child(4):hover {
    border-color: #FF0000;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.social-link:nth-child(4):hover svg {
    fill: #FF0000; /* YouTube */
}

.social-link:nth-child(5):hover {
    border-color: #FF4500;
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.social-link:nth-child(5):hover svg {
    fill: #FF4500; /* Reddit */
}

.social-link span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Trailer Section */
.trailer-section {
    background: var(--bg-darkest);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.trailer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.4), transparent);
}

.trailer-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.trailer-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 3px solid var(--wood-medium);
    border-radius: 12px;
}

.trailer-placeholder {
    aspect-ratio: 16/9;
    background:
        linear-gradient(145deg, var(--wood-dark) 0%, var(--bg-card) 100%);
    border: 3px solid var(--wood-medium);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.trailer-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brass), var(--brass-light), var(--brass));
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--green-glow);
}

.play-button svg {
    width: 32px;
    height: 32px;
    fill: var(--bg-darkest);
    margin-left: 4px;
}

.trailer-placeholder span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Footer */
footer {
    background: var(--bg-darkest);
    border-top: 1px solid var(--wood-dark);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
}

.footer-logo span {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

footer p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--primary-green);
    text-decoration: none;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-visual {
        order: -1;
    }
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu .nav-links a {
    font-size: 1.5rem;
}

.mobile-menu .lang-toggle {
    display: flex;
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-close-btn svg {
    width: 32px;
    height: 32px;
    stroke: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-logo {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .lang-toggle {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero {
        min-height: 90vh;
        padding-top: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }

    .hero-tagline {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .train-card {
        padding: 1rem;
    }

    .server-ip-box {
        padding: 1.5rem;
    }

    .ip-address {
        font-size: 1.3rem;
    }

    .featured-game {
        padding-top: 1.5rem;
    }

    .featured-info {
        padding: 0 0.5rem;
    }

    .featured-info h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .featured-info .subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .featured-info .description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .game-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .parallax-section {
        height: 30px;
    }

    .feature-item {
        padding: 1rem;
    }

    .roles-preview {
        gap: 0.75rem;
        justify-content: center;
    }

    .role-badge {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .trailer-section {
        padding: 4rem 1.5rem;
    }

    .trailer-placeholder {
        margin-bottom: 2rem;
    }

    .social-grid {
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .social-link {
        width: 110px;
        height: 110px;
        padding: 1rem;
    }

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

    .social-link span {
        font-size: 0.7rem;
    }

    .minigames-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .minigames-grid .minigame-card.coming-soon {
        display: none;
    }

    .minigames-grid .minigame-card.featured-card {
        grid-column: 1;
    }

    .minigames-grid .coming-soon-message {
        display: block;
        padding: 1.5rem;
        font-size: 0.8rem;
    }

    .card-content {
        padding: 1.25rem;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-green);
    color: var(--bg-darkest);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
