/* =========================================
   HyperCube - Warm Fantasy RPG Theme
   Golden Hour Aesthetic
   ========================================= */

/* CSS Variables - Warm Fantasy Palette */
:root {
    /* Primary - Metallic Gold/Bronze */
    --gold: #d4a44c;
    --gold-light: #e8c376;
    --gold-dark: #b8862e;
    --bronze: #cd7f32;

    /* Secondary - Deep Maroon/Red */
    --maroon: #722f37;
    --maroon-dark: #5a252c;
    --maroon-light: #8b3a44;
    --crimson: #6b1c23;

    /* Accent Colors */
    --accent-blue: #3b9eff;
    --accent-blue-light: #6bb8ff;
    --accent-blue-glow: rgba(59, 158, 255, 0.5);
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-purple-glow: rgba(139, 92, 246, 0.5);

    /* Tertiary - Earthy Tones */
    --wood-dark: #2d1f14;
    --wood: #4a3728;
    --stone: #4a5568;
    --stone-blue: #374151;
    --forest: #2d4a3e;

    /* Atmosphere - Golden Hour */
    --sky-warm: #f5a962;
    --sky-peach: #ffcba4;
    --sky-glow: #ffd89b;
    --atmosphere: rgba(255, 180, 100, 0.15);

    /* Neutrals */
    --bg-dark: #1a1410;
    --bg-darker: #0f0c09;
    --text-light: #faf5ef;
    --text-muted: rgba(250, 245, 239, 0.7);
    --text-dim: rgba(250, 245, 239, 0.5);

    /* Effects */
    --glow-gold: 0 0 20px rgba(212, 164, 76, 0.5);
    --glow-maroon: 0 0 15px rgba(114, 47, 55, 0.5);
    --shadow-deep: 0 4px 20px rgba(0, 0, 0, 0.5);

    /* Spacing */
    --header-height: 60px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Button Reset - Optimize for mobile touch */
button,
.btn,
input[type="button"],
input[type="submit"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================
   HEADER - Compact Striking Nav with Logo on Left
   ========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 22px 40px;
    background: transparent;
    pointer-events: none;
}

/* Container for Logo + Split Navbars */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1400px;
    gap: 24px;
    pointer-events: all;
}

/* Logo on Left - 2x Bigger */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.header-logo::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle at center, rgba(212, 164, 76, 0.15), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.header-logo:hover::before {
    opacity: 1;
}

.header-logo img {
    height: 104px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 20px rgba(212, 164, 76, 0.35));
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05) translateY(-2px);
}

/* Split Navigation Bars - Fantasy RPG Style */
.nav {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    background: rgba(15, 12, 9, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(212, 164, 76, 0.35);
    border-radius: 42px;
    padding: 7px 14px;
    position: relative;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(212, 164, 76, 0.12);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
}

/* Magical glow effect */
.nav:hover {
    border-color: rgba(212, 164, 76, 0.5);
    box-shadow:
        0 6px 30px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(212, 164, 76, 0.2);
}

/* Left navbar takes available space */
.nav-left {
    flex: 1;
}

/* Right navbar is compact */
.nav-right {
    flex-shrink: 0;
}

/* Nav Divider - Removed, no longer needed */
.nav-divider {
    display: none;
}

/* Nav Buttons - Fantasy RPG Style with Dividers */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    margin: 0 6px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    background: transparent;
    border: none;
    text-decoration: none;
    border-radius: 24px;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transform: translateZ(0);
}

/* Divider between buttons */
.nav-btn:not(:first-child)::before,
.nav-dropdown::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(212, 164, 76, 0.5) 50%,
        transparent 100%
    );
}

/* Simplified hover glow - using box-shadow instead of mask */
.nav-btn:hover {
    color: rgba(255, 255, 255, 0.98);
    background: rgba(212, 164, 76, 0.12);
    transform: translateY(-1px) translateZ(0);
    box-shadow: inset 0 0 0 1px rgba(212, 164, 76, 0.3);
}

.nav-btn.active {
    color: var(--gold);
    background: rgba(212, 164, 76, 0.18);
    box-shadow: inset 0 0 0 1px rgba(212, 164, 76, 0.5);
}

/* Primary nav items */
.nav-btn-primary {
    /* No special styling, same as base */
}

/* Accent button */
.nav-btn-accent {
    color: rgba(255, 255, 255, 0.85);
}

.nav-btn-accent:hover {
    color: var(--gold);
    background: rgba(212, 164, 76, 0.15);
}

/* Gold/Store Button - Optimized */
.nav-btn-gold {
    color: var(--gold);
    font-weight: 700;
    background: linear-gradient(
        180deg,
        rgba(255, 224, 102, 0.3) 0%,
        rgba(212, 164, 76, 0.25) 50%,
        rgba(160, 120, 50, 0.15) 100%
    );
    border: 1.5px solid rgba(212, 164, 76, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow:
        0 2px 12px rgba(212, 164, 76, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transform: translateZ(0);
}

/* Shiny gloss effect on top */
.nav-btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 100%
    );
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.nav-btn-gold:hover {
    color: #ffe066;
    background: linear-gradient(
        180deg,
        rgba(255, 224, 102, 0.4) 0%,
        rgba(212, 164, 76, 0.35) 50%,
        rgba(160, 120, 50, 0.25) 100%
    );
    border-color: rgba(212, 164, 76, 0.7);
    transform: translateY(-2px) translateZ(0);
    box-shadow:
        0 4px 20px rgba(212, 164, 76, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Icons in nav */
.nav-btn i {
    font-size: 0.85rem;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav-btn:hover i {
    opacity: 1;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-arrow {
    font-size: 0.6rem !important;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown.active .nav-dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(15, 12, 9, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(212, 164, 76, 0.4);
    border-radius: 18px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-family: 'Lato', sans-serif;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    border-radius: 14px;
}

.nav-dropdown-menu a:hover {
    background: rgba(212, 164, 76, 0.15);
    color: var(--gold);
}

.nav-dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--gold);
    opacity: 0.7;
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover i {
    opacity: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(15, 12, 9, 0.95);
    border: 1.5px solid rgba(212, 164, 76, 0.35);
    border-radius: 8px;
    cursor: pointer;
    padding: 18px;
    z-index: 10001;
    pointer-events: all;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 56px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-toggle:hover {
    border-color: rgba(212, 164, 76, 0.5);
    box-shadow: 0 0 20px rgba(212, 164, 76, 0.2);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    display: block;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   HERO - Full Screen Immersive
   ========================================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Image */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    contain: layout style paint;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Vignette Overlay - Dark Tint */
.hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-vignette::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 25%),
        linear-gradient(0deg, rgba(15, 12, 9, 1) 0%, transparent 40%),
        radial-gradient(ellipse at center, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
}

/* =========================================
   MAGICAL BACKGROUND EFFECTS
   ========================================= */

/* Floating Magical Particles - Optimized */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(212, 164, 76, 0.8);
    animation: floatUp 18s infinite linear;
    transform: translateZ(0);
}

@keyframes floatUp {
    from { transform: translateY(0) translateX(0) translateZ(0); }
    to { transform: translateY(-110vh) translateX(var(--drift, 10px)) translateZ(0); }
}

/* 10 particles - reduced for performance */
.particle-1 { left: 5%; top: 20%; --drift: -15px; animation-delay: -2s; }
.particle-2 { left: 15%; top: 70%; --drift: 20px; animation-delay: -8s; }
.particle-3 { left: 25%; top: 40%; --drift: -12px; animation-delay: -4s; }
.particle-4 { left: 38%; top: 85%; --drift: 18px; animation-delay: -11s; }
.particle-5 { left: 50%; top: 30%; --drift: -10px; animation-delay: -6s; }
.particle-6 { left: 62%; top: 65%; --drift: 15px; animation-delay: -13s; }
.particle-7 { left: 72%; top: 15%; --drift: -18px; animation-delay: -1s; }
.particle-8 { left: 82%; top: 55%; --drift: 12px; animation-delay: -9s; }
.particle-9 { left: 90%; top: 75%; --drift: -8px; animation-delay: -5s; }
.particle-10 { left: 95%; top: 35%; --drift: 14px; animation-delay: -15s; }
/* Hide excess particles */
.particle-11, .particle-12, .particle-13, .particle-14, .particle-15,
.particle-16, .particle-17, .particle-18, .particle-19, .particle-20 { display: none; }

/* Embers - optimized */
.embers {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}

.ember {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffb070;
    border-radius: 50%;
    box-shadow: 0 0 4px 1px rgba(255, 150, 80, 0.9);
    animation: floatEmber 14s infinite linear;
    transform: translateZ(0);
}

@keyframes floatEmber {
    from { transform: translateY(0) translateX(0) translateZ(0); }
    to { transform: translateY(-115vh) translateX(var(--ember-drift, 30px)) translateZ(0); }
}

/* 4 embers - reduced for performance */
.ember-1 { left: 12%; top: 75%; --ember-drift: 35px; animation-delay: -3s; }
.ember-2 { left: 35%; top: 60%; --ember-drift: -30px; animation-delay: -8s; }
.ember-3 { left: 65%; top: 80%; --ember-drift: 40px; animation-delay: -5s; }
.ember-4 { left: 88%; top: 50%; --ember-drift: -25px; animation-delay: -11s; }
/* Hide excess embers */
.ember-5, .ember-6, .ember-7, .ember-8 { display: none; }

/* Light Rays - static, no animation for performance */
.light-rays {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.5;
}

.light-rays::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 10%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 100, 0.1) 50%, transparent);
    transform: rotate(20deg);
}

.light-rays::after {
    content: '';
    position: absolute;
    top: -50%;
    right: 5%;
    width: 35%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 180, 80, 0.08) 50%, transparent);
    transform: rotate(-18deg);
}

/* Mist - single layer, simplified */
.mist {
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(15, 12, 9, 0.9) 0%, transparent 100%);
}

.mist-1 { opacity: 0.8; }
.mist-2 { display: none; }

/* Ambient glow - static for performance */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(212, 164, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Centered Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    margin-top: -5vh;
}

/* Main Logo - Floating with Glow Effect */
.logo-wrapper {
    position: relative;
    margin-bottom: 32px;
    animation: logoFloat 5s ease-in-out infinite;
    transform: translateZ(0);
}

.main-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(184, 134, 46, 0.6));
}

/* Glow effect using pseudo-element instead of filter animation */
.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(184, 134, 46, 0.3) 0%, transparent 60%);
    animation: logoGlow 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

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

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Primary CTA Button - Hexagonal Fantasy Style */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 20px 60px;
    min-width: 340px;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: transparent;
    border: none;
    cursor: pointer;
    text-shadow:
        0 0 10px rgba(255, 200, 100, 0.8),
        0 0 20px rgba(212, 164, 76, 0.5),
        0 2px 3px rgba(0, 0, 0, 0.9);
    z-index: 1;
    transform: translateZ(0);
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Gold frame border */
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(
        20px 0%, calc(100% - 20px) 0%,
        100% 50%,
        calc(100% - 20px) 100%, 20px 100%,
        0% 50%
    );
    background: linear-gradient(180deg,
        #ffe066 0%,
        var(--gold-light) 20%,
        var(--gold) 50%,
        var(--gold-dark) 80%,
        #6b4a1a 100%);
    z-index: -2;
    filter: drop-shadow(0 0 15px rgba(212, 164, 76, 0.5));
}

/* Inner panel */
.cta-button::after {
    content: '';
    position: absolute;
    inset: 4px;
    clip-path: polygon(
        17px 0%, calc(100% - 17px) 0%,
        100% 50%,
        calc(100% - 17px) 100%, 17px 100%,
        0% 50%
    );
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 180, 130, 0.15) 0%, transparent 50%),
        linear-gradient(180deg,
            #a04050 0%,
            #8b3a44 15%,
            #6b2530 40%,
            #4a1820 70%,
            #2a0c10 100%);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02) translateZ(0);
}

.cta-button:hover::before {
    filter: drop-shadow(0 0 25px rgba(255, 200, 100, 0.8));
    background: linear-gradient(180deg,
        #fff8e0 0%,
        #ffe066 20%,
        var(--gold-light) 50%,
        var(--gold) 80%,
        var(--gold-dark) 100%);
}

.cta-button:hover::after {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 200, 150, 0.2) 0%, transparent 50%),
        linear-gradient(180deg,
            #b85060 0%,
            #a04050 20%,
            #7b2a38 50%,
            #5a1c25 80%,
            #3a1015 100%);
}

.cta-button:active {
    transform: translateY(2px) scale(0.98) translateZ(0);
}

.cta-button:active::before {
    filter: drop-shadow(0 0 10px rgba(212, 164, 76, 0.4));
}

/* Icon styling for CTA button */
.cta-button i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px currentColor);
    transition: transform 0.2s ease;
}

.cta-button:hover i {
    transform: scale(1.1);
}

.cta-text {
    transition: opacity 0.2s ease;
}

.cta-copied {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cta-button.copied .cta-text {
    opacity: 0;
}

.cta-button.copied .cta-copied {
    opacity: 1;
}

/* Click to Copy Hint */
.cta-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    animation: hintPulse 2.5s ease-in-out infinite;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.cta-hint i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; text-shadow: 0 0 5px rgba(212, 164, 76, 0.3); }
    50% { opacity: 0.9; text-shadow: 0 0 12px rgba(212, 164, 76, 0.5); }
}

.cta-button:hover + .cta-hint {
    opacity: 1;
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(212, 164, 76, 0.7);
    animation: none;
}

.cta-button:hover + .cta-hint i {
    transform: scale(1.1);
}

/* Player Info - Dynamic Text Below CTA */
.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

.player-text {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

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

@keyframes scrollWheel {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 16px; }
}

/* =========================================
   SECTIONS - Below the Fold
   ========================================= */

.section {
    padding: 100px 0;
    overflow: visible;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: visible;
}

.section-title {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--gold);
    text-shadow: 0 2px 20px rgba(212, 164, 76, 0.3);
}

/* News Section */
.section-news {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.8) 0%, rgba(26, 20, 16, 0.9) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--glow-gold);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-body {
    padding: 24px;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--maroon);
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.news-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.news-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Section */
.section-features {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background: rgba(45, 31, 20, 0.4);
    border: 1px solid rgba(212, 164, 76, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--gold);
    background: rgba(45, 31, 20, 0.6);
    transform: translateY(-4px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-gold);
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--wood-dark);
}

.feature h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--gold-light);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 164, 76, 0.15);
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 8px;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-copy {
    padding-top: 24px;
    border-top: 1px solid rgba(212, 164, 76, 0.1);
    width: 100%;
}

.footer-copy p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* =========================================
   NEW CONTENT SECTIONS
   ========================================= */

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -40px auto 50px;
    line-height: 1.6;
}

/* Two Worlds Section - Clean Card Design */
.section-worlds {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    padding: 100px 0;
}

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* World Cards */
.world-card {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.7) 0%, rgba(26, 20, 16, 0.9) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.world-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 164, 76, 0.15);
}

/* World Image */
.world-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.world-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.world-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 20, 16, 0.95) 100%);
    pointer-events: none;
}

.world-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15, 12, 9, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 164, 76, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
}

.world-badge i {
    font-size: 0.8rem;
}

/* World Content */
.world-content {
    padding: 24px;
}

.world-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.75rem;
    color: var(--gold);
    margin: 0 0 12px 0;
    text-shadow: 0 2px 15px rgba(212, 164, 76, 0.3);
}

.world-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.world-desc strong {
    color: var(--text-light);
}

/* World Stats */
.world-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.world-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(212, 164, 76, 0.08);
    border: 1px solid rgba(212, 164, 76, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.world-stat i {
    color: var(--gold);
    font-size: 0.9rem;
}

.world-stat strong {
    color: var(--text-light);
}

/* World Button */
.world-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(212, 164, 76, 0.2) 0%, rgba(184, 134, 46, 0.3) 100%);
    border: 1px solid rgba(212, 164, 76, 0.4);
    border-radius: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.world-btn:hover {
    background: linear-gradient(135deg, rgba(212, 164, 76, 0.3) 0%, rgba(184, 134, 46, 0.4) 100%);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 164, 76, 0.3);
}

.world-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.world-btn:hover i {
    transform: translateX(4px);
}

/* Synergy Banner */
.worlds-synergy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
    padding: 16px 28px;
    background: rgba(212, 164, 76, 0.08);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.worlds-synergy i {
    color: var(--gold);
    font-size: 1.1rem;
}

.worlds-synergy span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.worlds-synergy strong {
    color: var(--gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .worlds-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .world-image {
        height: 180px;
    }

    .world-content {
        padding: 20px;
    }

    .world-title {
        font-size: 1.5rem;
    }

    .worlds-synergy {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }
}

/* Classes Section */
.section-classes {
    background: var(--bg-darker);
    overflow: visible;
}

/* Class Carousel */
.class-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    overflow: visible;
}

.carousel-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 164, 76, 0.2) 0%, rgba(184, 134, 46, 0.3) 100%);
    border: 2px solid rgba(212, 164, 76, 0.4);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, rgba(212, 164, 76, 0.4) 0%, rgba(184, 134, 46, 0.5) 100%);
    border-color: var(--gold);
    transform: scale(1.1);
}

.class-display {
    flex: 1;
    display: flex;
    gap: 40px;
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.25);
    border-radius: 16px;
    padding: 32px;
    align-items: center;
    transition: border-color 0.4s ease, background 0.4s ease;
    overflow: visible;
}

/* Class Theme Colors */
.class-display.theme-warrior {
    border-color: rgba(70, 130, 200, 0.5);
    background: linear-gradient(180deg, rgba(30, 50, 80, 0.6) 0%, rgba(20, 30, 50, 0.8) 100%);
}

.class-display.theme-mage {
    border-color: rgba(180, 100, 200, 0.5);
    background: linear-gradient(180deg, rgba(60, 30, 70, 0.6) 0%, rgba(40, 20, 50, 0.8) 100%);
}

.class-display.theme-archer {
    border-color: rgba(80, 180, 100, 0.5);
    background: linear-gradient(180deg, rgba(30, 60, 40, 0.6) 0%, rgba(20, 40, 30, 0.8) 100%);
}

.class-display.theme-berserker {
    border-color: rgba(200, 70, 70, 0.5);
    background: linear-gradient(180deg, rgba(80, 30, 30, 0.6) 0%, rgba(50, 20, 20, 0.8) 100%);
}

.class-display.theme-assassin {
    border-color: rgba(220, 180, 50, 0.5);
    background: linear-gradient(180deg, rgba(70, 60, 30, 0.6) 0%, rgba(50, 40, 20, 0.8) 100%);
}

/* Class Name Colors */
.class-display.theme-warrior .class-name { color: #5a9fd4; }
.class-display.theme-mage .class-name { color: #c77dff; }
.class-display.theme-archer .class-name { color: #6bcf7f; }
.class-display.theme-berserker .class-name { color: #e05555; }
.class-display.theme-assassin .class-name { color: #e8c547; }

/* Stat Bar Colors */
.class-display.theme-warrior .stat-fill {
    background: linear-gradient(90deg, #4682c8 0%, #5a9fd4 100%);
}
.class-display.theme-mage .stat-fill {
    background: linear-gradient(90deg, #9b4dca 0%, #c77dff 100%);
}
.class-display.theme-archer .stat-fill {
    background: linear-gradient(90deg, #3d9e55 0%, #6bcf7f 100%);
}
.class-display.theme-berserker .stat-fill {
    background: linear-gradient(90deg, #c83030 0%, #e05555 100%);
}
.class-display.theme-assassin .stat-fill {
    background: linear-gradient(90deg, #c9a227 0%, #e8c547 100%);
}

/* Ability & Offhand Box Colors */
.class-display.theme-warrior .ability-box,
.class-display.theme-warrior .offhand-box {
    border-color: rgba(70, 130, 200, 0.3);
}
.class-display.theme-warrior .ability-name,
.class-display.theme-warrior .offhand-name { color: #5a9fd4; }

.class-display.theme-mage .ability-box,
.class-display.theme-mage .offhand-box {
    border-color: rgba(180, 100, 200, 0.3);
}
.class-display.theme-mage .ability-name,
.class-display.theme-mage .offhand-name { color: #c77dff; }

.class-display.theme-archer .ability-box,
.class-display.theme-archer .offhand-box {
    border-color: rgba(80, 180, 100, 0.3);
}
.class-display.theme-archer .ability-name,
.class-display.theme-archer .offhand-name { color: #6bcf7f; }

.class-display.theme-berserker .ability-box,
.class-display.theme-berserker .offhand-box {
    border-color: rgba(200, 70, 70, 0.3);
}
.class-display.theme-berserker .ability-name,
.class-display.theme-berserker .offhand-name { color: #e05555; }

.class-display.theme-assassin .ability-box,
.class-display.theme-assassin .offhand-box {
    border-color: rgba(220, 180, 50, 0.3);
}
.class-display.theme-assassin .ability-name,
.class-display.theme-assassin .offhand-name { color: #e8c547; }

/* Image Glow Colors - using CSS variable for pseudo-element */
.class-display.theme-warrior .class-image-container {
    --class-glow-color: rgba(70, 130, 200, 0.5);
}
.class-display.theme-mage .class-image-container {
    --class-glow-color: rgba(180, 100, 200, 0.5);
}
.class-display.theme-archer .class-image-container {
    --class-glow-color: rgba(80, 180, 100, 0.5);
}
.class-display.theme-berserker .class-image-container {
    --class-glow-color: rgba(200, 70, 70, 0.5);
}
.class-display.theme-assassin .class-image-container {
    --class-glow-color: rgba(220, 180, 50, 0.5);
}

/* Stat Label Icon Colors */
.class-display.theme-warrior .stat-label i { color: #5a9fd4; }
.class-display.theme-mage .stat-label i { color: #c77dff; }
.class-display.theme-archer .stat-label i { color: #6bcf7f; }
.class-display.theme-berserker .stat-label i { color: #e05555; }
.class-display.theme-assassin .stat-label i { color: #e8c547; }

/* Section Header Icon Colors */
.class-display.theme-warrior .class-stats h4 i,
.class-display.theme-warrior .class-ability h4 i { color: #5a9fd4; }
.class-display.theme-mage .class-stats h4 i,
.class-display.theme-mage .class-ability h4 i { color: #c77dff; }
.class-display.theme-archer .class-stats h4 i,
.class-display.theme-archer .class-ability h4 i { color: #6bcf7f; }
.class-display.theme-berserker .class-stats h4 i,
.class-display.theme-berserker .class-ability h4 i { color: #e05555; }
.class-display.theme-assassin .class-stats h4 i,
.class-display.theme-assassin .class-ability h4 i { color: #e8c547; }

.class-image-container {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Glow effect using pseudo-element */
.class-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--class-glow-color, rgba(184, 134, 46, 0.4)) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.class-image {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.class-image:hover {
    transform: scale(1.05);
}

.class-details {
    flex: 1;
}

.class-name {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.class-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.class-stats {
    margin-bottom: 24px;
}

.class-stats h4,
.class-ability h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-stats h4 i,
.class-ability h4 i {
    color: var(--gold);
}

.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-bar-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 110px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-bar-item .stat-label i {
    color: var(--gold);
    width: 16px;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Class Extras Inline Layout */
.class-extras-inline {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ability-box,
.offhand-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
}

.ability-header,
.offhand-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ability-header i,
.offhand-header i {
    color: var(--gold);
    font-size: 0.85rem;
}

.ability-label,
.offhand-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ability-name,
.offhand-name {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 6px;
    transition: opacity 0.3s ease;
}

.offhand-name {
    margin-bottom: 0;
}

.ability-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Class Indicators */
.class-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.class-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 164, 76, 0.3);
    border: 2px solid rgba(212, 164, 76, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.class-dot:hover {
    background: rgba(212, 164, 76, 0.5);
    transform: scale(1.2);
}

.class-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

/* Themed Dot Indicators */
.class-dot[data-index="0"] {
    --dot-color: #5a9fd4;
}
.class-dot[data-index="1"] {
    --dot-color: #c77dff;
}
.class-dot[data-index="2"] {
    --dot-color: #6bcf7f;
}
.class-dot[data-index="3"] {
    --dot-color: #e05555;
}
.class-dot[data-index="4"] {
    --dot-color: #e8c547;
}

.class-dot:hover {
    background: var(--dot-color, rgba(212, 164, 76, 0.5));
    border-color: var(--dot-color, rgba(212, 164, 76, 0.7));
}

.class-dot.active {
    background: var(--dot-color, var(--gold));
    border-color: var(--dot-color, var(--gold));
}

/* Items Section */
.section-items {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.items-showcase {
    margin-bottom: 50px;
}

.item-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.item-card {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.item-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon i {
    font-size: 1.75rem;
    color: var(--text-light);
}

.item-icon.sword {
    background: linear-gradient(135deg, #4a90d9 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.item-icon.staff {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.item-icon.bow {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}

.item-card h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.item-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Crafting System */
.crafting-system {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.5) 0%, rgba(26, 20, 16, 0.7) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    padding: 40px;
}

.crafting-system > h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.crafting-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.craft-skill {
    text-align: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.craft-skill:hover {
    background: rgba(212, 164, 76, 0.1);
    transform: translateY(-2px);
}

.craft-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 164, 76, 0.3);
}

.craft-icon i {
    font-size: 1.5rem;
    color: var(--wood-dark);
}

.craft-skill h4 {
    font-family: 'Cinzel', serif;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 6px;
}

.craft-skill p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.crafting-note {
    text-align: center;
    color: var(--gold-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Dungeons Section */
.section-dungeons {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.section-dungeons::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(114, 47, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.dungeon-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.dungeon-stat {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(180deg, rgba(114, 47, 55, 0.3) 0%, rgba(45, 31, 20, 0.5) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.dungeon-stat:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(114, 47, 55, 0.3);
}

.dungeon-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(212, 164, 76, 0.5);
}

.dungeon-label {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.dungeon-stat > p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dungeon-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.dungeon-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(45, 31, 20, 0.5);
    border: 1px solid rgba(212, 164, 76, 0.15);
    border-radius: 30px;
}

.dungeon-feature i {
    color: var(--gold);
    font-size: 1rem;
}

.dungeon-feature span {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Laptop Breakpoint - Screens up to 1400px */
@media (max-width: 1400px) {
    /* Header - compact */
    .header {
        padding: 12px 20px;
    }

    .header-container {
        gap: 12px;
    }

    .header-logo img {
        height: 60px;
    }

    .nav {
        padding: 5px 10px;
    }

    .nav-btn {
        padding: 7px 10px;
        font-size: 0.6rem;
        margin: 0 2px;
        gap: 5px;
    }

    .nav-btn i {
        font-size: 0.75rem;
    }

    /* Hero - compact */
    .main-logo {
        max-width: 220px;
    }

    .logo-wrapper {
        margin-bottom: 20px;
    }

    .cta-button {
        min-width: 260px;
        padding: 14px 36px;
        font-size: 0.95rem;
    }

    .cta-hint {
        margin-top: 10px;
        font-size: 0.75rem;
    }

    .player-info {
        margin-top: 14px;
        font-size: 0.85rem;
    }

    /* Worlds Section - compact and centered */
    .section-worlds {
        padding: 50px 0;
    }

    .section-worlds .container {
        max-width: 900px;
    }

    .worlds-grid {
        gap: 10px;
        max-width: 800px;
        margin: 0 auto;
        justify-items: center;
    }

    .world-card.world-hyperie,
    .world-card.world-priroda {
        transform: none;
    }

    .world-card {
        max-width: 280px;
        margin: 0 auto;
    }

    .globe-container {
        width: 200px;
        height: 150px;
        margin-bottom: 12px;
    }

    .globe {
        width: 120px;
        height: 120px;
    }

    .orbit-1 {
        width: 145px;
        height: 145px;
    }

    .orbit-2 {
        width: 170px;
        height: 170px;
    }

    .world-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .world-title i {
        font-size: 1rem;
    }

    .world-type {
        padding: 3px 10px;
        font-size: 0.6rem;
        margin-bottom: 8px;
    }

    .world-desc {
        max-width: 240px;
        font-size: 0.8rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .world-stats-grid {
        gap: 6px;
        max-width: 280px;
        margin-bottom: 10px;
    }

    .stat-item {
        padding: 8px 5px;
        min-width: 60px;
        gap: 4px;
    }

    .stat-item i {
        font-size: 0.85rem;
    }

    .stat-value {
        font-size: 12px;
    }

    .stat-label {
        font-size: 9px;
    }

    .world-tags {
        gap: 4px;
        margin-bottom: 10px;
        max-width: 240px;
    }

    .world-tags span {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .world-btn {
        padding: 8px 18px;
        font-size: 0.75rem;
    }

    .worlds-bridge {
        padding-top: 40px;
        gap: 6px;
    }

    .bridge-line {
        height: 40px;
    }

    .bridge-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .bridge-label {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .worlds-synergy {
        margin-top: 24px;
        padding: 10px 16px;
        font-size: 0.8rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .synergy-badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    /* Class Carousel - compact */
    .section-classes {
        padding: 60px 0;
    }

    .class-carousel {
        max-width: 750px;
        gap: 12px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .class-display {
        padding: 20px;
        gap: 20px;
    }

    .class-image-container {
        width: 180px;
        height: 180px;
    }

    .class-image-container::before {
        width: 140px;
        height: 140px;
    }

    .class-name {
        font-size: 1.5rem;
    }

    .class-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .class-stats h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .stat-bar-item .stat-label {
        font-size: 0.75rem;
    }

    /* News Grid - compact */
    .section-news {
        padding: 60px 0;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }

    .news-image {
        height: 140px;
    }

    .news-content {
        padding: 16px;
    }

    .news-content h3 {
        font-size: 1.1rem;
    }

    /* Features Grid - compact */
    .section-features {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .feature {
        padding: 20px 12px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 14px;
    }

    .feature h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .feature p {
        font-size: 0.8rem;
    }

    /* Section titles - compact */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 36px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Store Grid - compact */
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .store-item {
        padding: 20px 16px;
    }

    .store-item h3 {
        font-size: 1.1rem;
    }

    .item-desc {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .item-image {
        width: 100px;
        height: 100px;
        margin-bottom: 14px;
    }

    .store-item[data-category="hypergemy"] .item-image {
        width: 90px;
        height: 90px;
    }

    .item-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .item-price {
        font-size: 1.4rem;
    }

    .buy-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Footer - compact */
    .footer {
        padding: 40px 0;
    }

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

/* Small Laptop / Large Tablet Breakpoint */
@media (max-width: 1024px) {
    /* Header - even more compact */
    .header {
        padding: 10px 16px;
    }

    .header-logo img {
        height: 50px;
    }

    .nav {
        padding: 4px 8px;
    }

    .nav-btn {
        padding: 6px 8px;
        font-size: 0.55rem;
        letter-spacing: 0.5px;
        margin: 0 1px;
    }

    .nav-btn i {
        font-size: 0.7rem;
    }

    .nav-btn span {
        display: none;
    }

    .nav-btn-gold span {
        display: inline;
    }

    /* Worlds - stack on small laptops, centered */
    .section-worlds {
        padding: 40px 0;
    }

    .section-worlds .container {
        max-width: 500px;
    }

    .worlds-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        margin: 0 auto;
    }

    .world-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .world-card.world-hyperie,
    .world-card.world-priroda {
        transform: none;
    }

    .worlds-bridge {
        flex-direction: row;
        padding: 0;
        gap: 10px;
    }

    .bridge-line {
        width: 50px;
        height: 2px;
    }

    .bridge-pulse {
        width: 25px;
        height: 100%;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 164, 76, 0.8) 50%,
            transparent 100%);
        animation: bridgePulseHorizontalLaptop 2s ease-in-out infinite;
    }

    @keyframes bridgePulseHorizontalLaptop {
        0% { left: -25px; }
        100% { left: 100%; }
    }

    .bridge-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .bridge-label {
        font-size: 0.5rem;
    }

    .globe-container {
        width: 180px;
        height: 140px;
    }

    .globe {
        width: 110px;
        height: 110px;
    }

    .orbit-1 {
        width: 130px;
        height: 130px;
    }

    .orbit-2 {
        width: 155px;
        height: 155px;
    }

    .world-title {
        font-size: 1.1rem;
    }

    .world-desc {
        max-width: 260px;
        font-size: 0.75rem;
    }

    .world-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        max-width: 260px;
    }

    .stat-item {
        padding: 8px 4px;
        min-width: 55px;
    }

    .worlds-synergy {
        max-width: 320px;
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    /* Class Carousel - stack */
    .section-classes {
        padding: 50px 0;
    }

    .class-display {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .class-image-container {
        width: 160px;
        height: 160px;
    }

    .class-image-container::before {
        width: 120px;
        height: 120px;
    }

    .class-details {
        text-align: center;
    }

    .class-name {
        font-size: 1.3rem;
    }

    .class-stats h4 {
        justify-content: center;
    }

    /* Features - 2 columns */
    .section-features {
        padding: 50px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature {
        padding: 16px 10px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    /* News - compact */
    .section-news {
        padding: 50px 0;
    }

    .news-image {
        height: 120px;
    }

    .news-content {
        padding: 14px;
    }

    /* Store Grid - compact */
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .store-item {
        padding: 16px 12px;
    }

    .item-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .store-item[data-category="hypergemy"] .item-image {
        width: 70px;
        height: 70px;
    }

    .item-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .store-item h3 {
        font-size: 1rem;
    }

    .item-desc {
        font-size: 0.75rem;
    }

    .item-price {
        font-size: 1.25rem;
    }

    .buy-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .category-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Remove tap delay and highlight on all interactive elements */
    * {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Header adjustments for mobile - minimal by default */
    .header {
        padding: 16px 20px;
        background: transparent;
        border-bottom: none;
    }

    .header-container {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        position: relative;
        justify-content: flex-end;
    }

    /* Hide logo by default on mobile */
    .header-logo {
        display: none;
    }

    /* Hide navbars by default on mobile */
    .nav-left,
    .nav-right {
        display: none;
    }

    /* Mobile toggle button - visible by default */
    .mobile-toggle {
        display: flex !important;
        position: fixed !important;
        right: 20px !important;
        top: 20px !important;
        z-index: 10002 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-toggle:active {
        transform: scale(0.92) !important;
    }

    .mobile-toggle span {
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease !important;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

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

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* Header container base state for smooth transition */
    .header-container {
        transition: background 0.35s ease, backdrop-filter 0.35s ease;
    }

    /* When active, show full menu overlay */
    .header-container.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(10, 8, 6, 0.98) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        z-index: 10000 !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 80px 20px 40px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes menuSlideIn {
        0% {
            opacity: 0;
            transform: translateY(-30px) scale(0.98);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Show logo in menu overlay - 2.5x bigger */
    .header-container.active .header-logo {
        display: flex;
        margin-bottom: 40px;
        order: 1;
        animation: logoFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        /* Allow glow to extend beyond container */
        overflow: visible;
        padding: 30px;
    }

    .header-container.active .header-logo img {
        height: 200px;
        /* Enhanced glow for mobile menu */
        filter: drop-shadow(0 0 40px rgba(212, 164, 76, 0.6))
                drop-shadow(0 0 80px rgba(212, 164, 76, 0.3));
    }

    @keyframes logoFadeIn {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Show navbars when active */
    .header-container.active .nav-left,
    .header-container.active .nav-right {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        width: 100%;
        max-width: 400px;
        border-radius: 16px;
    }

    .header-container.active .nav-left {
        order: 2;
        margin-bottom: 16px;
    }

    .header-container.active .nav-right {
        order: 3;
    }

    /* Show button text in mobile menu */
    .header-container.active .nav-btn span,
    .header-container.active .nav-btn-primary span,
    .header-container.active .nav-btn-accent span,
    .header-container.active .nav-btn-gold span {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.9rem !important;
        margin-left: 10px !important;
    }

    /* Stagger animation for menu items */
    .header-container.active .nav-left .nav-btn,
    .header-container.active .nav-left .nav-dropdown,
    .header-container.active .nav-right .nav-btn {
        animation: menuItemFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }

    .header-container.active .nav-left .nav-btn:nth-child(1),
    .header-container.active .nav-left .nav-dropdown:nth-child(1) { animation-delay: 0.05s; }
    .header-container.active .nav-left .nav-btn:nth-child(2),
    .header-container.active .nav-left .nav-dropdown:nth-child(2) { animation-delay: 0.1s; }
    .header-container.active .nav-left .nav-btn:nth-child(3),
    .header-container.active .nav-left .nav-dropdown:nth-child(3) { animation-delay: 0.15s; }
    .header-container.active .nav-left .nav-btn:nth-child(4),
    .header-container.active .nav-left .nav-dropdown:nth-child(4) { animation-delay: 0.2s; }
    .header-container.active .nav-left .nav-btn:nth-child(5),
    .header-container.active .nav-left .nav-dropdown:nth-child(5) { animation-delay: 0.25s; }
    .header-container.active .nav-right .nav-btn:nth-child(1) { animation-delay: 0.3s; }
    .header-container.active .nav-right .nav-btn:nth-child(2) { animation-delay: 0.35s; }

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

    /* Navigation buttons full width on mobile */
    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.85rem;
        transition: all 0.15s ease;
    }

    .nav-btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    /* Dropdown adjustments */
    .nav-dropdown {
        width: 100%;
    }

    /* Override desktop dropdown styles completely */
    .nav-dropdown-menu,
    .nav-dropdown.active .nav-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        min-width: auto !important;
        left: auto !important;
        top: auto !important;
        display: none;
    }

    .nav-dropdown-menu.active {
        display: block !important;
    }

    .nav-dropdown-menu a {
        width: 100%;
        padding: 14px 20px;
        color: rgba(255, 255, 255, 0.85) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px;
        margin-bottom: 6px;
        display: flex !important;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:active {
        background: rgba(212, 164, 76, 0.15) !important;
        color: var(--gold) !important;
    }

    .nav-dropdown-toggle {
        width: 100%;
    }

    .nav-dropdown-toggle .nav-dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .nav-dropdown-toggle.active .nav-dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Remove dividers on mobile */
    .nav-btn:not(:first-child)::before,
    .nav-dropdown::before {
        display: none;
    }

    /* Simplify button effects on mobile */
    .nav-btn-gold::before,
    .nav-btn-gold::after {
        display: none;
    }

    .nav-btn-gold {
        animation: none;
        background: linear-gradient(
            135deg,
            rgba(212, 164, 76, 0.3) 0%,
            rgba(212, 164, 76, 0.2) 100%
        );
    }

    .main-logo {
        max-width: 280px;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 0.95rem;
        min-width: 280px;
        transition: none !important;
    }

    .cta-button:active {
        transform: scale(0.97);
        transition: none !important;
    }

    .cta-button::before,
    .cta-button::after {
        transition: none !important;
    }

    .cta-button i {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

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

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feature {
        padding: 24px 16px;
    }

    /* Worlds Section - Tablet */
    .worlds-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .world-card.world-hyperie,
    .world-card.world-priroda {
        align-items: center;
        transform: none;
    }

    .worlds-bridge {
        flex-direction: row;
        padding: 0;
        gap: 20px;
    }

    .bridge-line {
        width: 100px;
        height: 3px;
    }

    .bridge-pulse {
        width: 30px;
        height: 100%;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 164, 76, 0.8) 50%,
            transparent 100%);
        animation: bridgePulseHorizontal 2s ease-in-out infinite;
    }

    @keyframes bridgePulseHorizontal {
        0% { left: -30px; }
        100% { left: 100%; }
    }

    .globe-container {
        width: 340px;
        height: 240px;
    }

    .globe {
        width: 180px;
        height: 180px;
    }

    .orbit-1 {
        width: 220px;
        height: 220px;
    }

    .orbit-2 {
        width: 260px;
        height: 260px;
    }

    .world-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        max-width: 460px;
    }

    .stat-item {
        padding: 18px 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .worlds-synergy {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        border-radius: 20px;
    }

    /* Classes Section - Tablet */
    .class-carousel {
        gap: 12px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .class-display {
        padding: 24px;
        gap: 24px;
    }

    .class-image-container {
        width: 200px;
        height: 200px;
    }

    .class-image-container::before {
        width: 160px;
        height: 160px;
    }

    .class-name {
        font-size: 1.6rem;
    }

    /* Items Section - Tablet */
    .item-examples {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .crafting-skills {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .crafting-system {
        padding: 28px 20px;
    }

    /* Dungeons Section - Tablet */
    .dungeon-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .dungeon-stat {
        padding: 28px 16px;
    }

    .dungeon-number {
        font-size: 2.75rem;
    }

    .dungeon-info {
        gap: 16px;
    }

    .dungeon-feature {
        padding: 10px 18px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin: -30px auto 40px;
    }
}

@media (max-width: 480px) {
    /* Mobile toggle positioning and sizing */
    .mobile-toggle {
        padding: 16px !important;
        right: 16px !important;
        top: 16px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-toggle span {
        width: 26px;
        height: 3px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease !important;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

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

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* Menu overlay adjustments */
    .header-container.active {
        padding: 70px 16px 30px;
    }

    .header-container.active .header-logo img {
        height: 150px;
    }

    .header-container.active .nav-left,
    .header-container.active .nav-right {
        max-width: 100%;
        padding: 12px;
    }

    .nav-btn {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

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

    .cta-button {
        min-width: 240px;
        padding: 12px 28px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .cta-button i {
        font-size: 0.9rem;
    }

    /* Worlds Section - Mobile */
    .globe-container {
        width: 200px;
        height: 180px;
        margin-bottom: 24px;
    }

    .globe {
        width: 150px;
        height: 150px;
    }

    .orbit-1 {
        width: 180px;
        height: 180px;
    }

    .orbit-2 {
        width: 210px;
        height: 210px;
    }

    .orbit-dot {
        width: 6px;
        height: 6px;
    }

    .world-title {
        font-size: 1.6rem;
    }

    .world-desc {
        font-size: 0.9rem;
    }

    .world-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 320px;
    }

    .stat-item {
        padding: 18px 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .world-tags {
        gap: 6px;
    }

    .world-tags span {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .world-btn {
        padding: 12px 24px;
        font-size: 0.85rem;
        transition: none !important;
    }

    .world-btn:active {
        transition: none !important;
    }

    /* Disable button transitions on mobile for instant response (except nav menu) */
    .voting-btn,
    .buy-btn,
    .password-toggle,
    .editor-btn,
    .modal-close {
        transition: none !important;
    }

    .voting-btn:active,
    .buy-btn:active {
        transition: none !important;
    }

    /* Nav buttons keep smooth transitions for menu animation */
    .nav-btn {
        transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease !important;
    }

    .worlds-bridge {
        gap: 16px;
    }

    .bridge-line {
        width: 60px;
    }

    .bridge-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .bridge-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .worlds-synergy {
        padding: 16px 20px;
        margin-top: 40px;
        flex-direction: column;
    }

    .synergy-badge {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .synergy-text {
        font-size: 0.85rem;
        text-align: center;
    }

    .ambient-particles span {
        width: 3px;
        height: 3px;
    }

    /* Classes Section - Mobile */
    .class-carousel {
        flex-direction: column;
        gap: 16px;
        position: relative;
    }

    .carousel-nav {
        position: absolute;
        top: 310px;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        z-index: 10;
        background: rgba(0, 0, 0, 0.7);
        border: 1px solid rgba(212, 164, 76, 0.4);
        transform: none;
    }

    .carousel-prev {
        left: 4px;
    }

    .carousel-next {
        right: 4px;
    }

    .class-display {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .class-image-container {
        width: 180px;
        height: 180px;
    }

    .class-image-container::before {
        width: 140px;
        height: 140px;
    }

    .class-name {
        font-size: 1.4rem;
        text-align: center;
    }

    .class-description {
        text-align: center;
    }

    .stat-bar-item .stat-label {
        min-width: 90px;
        font-size: 0.8rem;
    }

    .class-indicators {
        gap: 10px;
    }

    .class-dot {
        width: 14px;
        height: 14px;
    }

    /* Items Section - Mobile */
    .item-examples {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .item-card {
        padding: 24px 20px;
    }

    .crafting-skills {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .crafting-system {
        padding: 24px 16px;
    }

    .crafting-system > h3 {
        font-size: 1.25rem;
    }

    .craft-skill {
        padding: 20px;
    }

    /* Dungeons Section - Mobile */
    .dungeon-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dungeon-stat {
        padding: 24px 20px;
    }

    .dungeon-number {
        font-size: 2.5rem;
    }

    .dungeon-info {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .dungeon-feature {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin: -25px auto 30px;
        padding: 0 10px;
    }
}

/* =========================================
   ANIMATIONS
   ========================================= */

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

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Subtle parallax ready class */
.parallax-bg {
    will-change: transform;
}

/* =========================================
   REDUCED MOTION & PERFORMANCE
   ========================================= */

/* Reduce particles on mobile for performance */
@media (max-width: 768px) {
    /* Show only half the particles on mobile */
    .particle:nth-child(even) {
        display: none;
    }

    .ember:nth-child(even) {
        display: none;
    }

    .light-rays {
        opacity: 0.3;
    }
}

/* =========================================
   STORE PAGE STYLES
   ========================================= */

/* Store Page Background */
body.store-page {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
}

/* Store Hero */
.store-hero {
    margin-top: 120px;
    padding: 40px 0 40px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
    position: relative;
}

.store-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 164, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
    display: none;
}

.store-logo-link {
    display: inline-block;
    margin-bottom: 24px;
}

.store-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(184, 134, 46, 0.5));
    transition: transform 0.3s ease;
}

.store-logo-link:hover .store-logo {
    transform: scale(1.05);
}

.store-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold);
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(212, 164, 76, 0.4);
}

.store-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.store-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(212, 164, 76, 0.1);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.store-notice i {
    color: var(--gold);
}

.store-notice code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--gold-light);
}

/* Store Navigation */
.store-nav-section {
    background: var(--bg-dark);
    padding: 24px 0;
    margin-top: 30px;
    border-bottom: 1px solid rgba(212, 164, 76, 0.15);
    position: sticky;
    top: 100px;
    z-index: 100;
}

.store-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(45, 31, 20, 0.5);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 30px;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-cat-btn:hover {
    background: rgba(212, 164, 76, 0.1);
    border-color: var(--gold);
    color: var(--text-light);
}

.store-cat-btn.active {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    border-color: var(--gold);
    color: var(--bg-darker);
}

.store-cat-btn i {
    font-size: 1rem;
}

/* Store Items Section */
.store-items-section {
    background: var(--bg-darker);
    padding: 60px 0 80px;
}

.store-category {
    margin-bottom: 60px;
}

.store-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    font-size: 1.5rem;
}

.category-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Store Item Card */
.store-item {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.store-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 164, 76, 0.15);
}

/* Item Badge */
.item-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.item-badge.popular {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-darker);
}

.item-badge.value {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.item-badge.premium {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
}

/* Item Icon */
.item-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.item-icon.hypergem {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.item-icon.sponzor-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.4);
}

.item-icon.sponzor-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.4);
}

.item-icon.sponzor-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: 0 4px 20px rgba(212, 164, 76, 0.4);
}

.item-icon.bundle {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.item-icon.bundle-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.item-icon.other {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--crimson) 100%);
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.4);
}

/* Item Image (for gem packages) */
.item-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-item:hover .item-image img {
    transform: scale(1.05);
}

/* Hypergem items purple theme */
.store-item[data-category="hypergemy"] {
    background: linear-gradient(180deg, rgba(30, 10, 50, 0.9) 0%, rgba(20, 5, 35, 0.95) 100%);
    border-color: rgba(168, 85, 247, 0.5);
}

.store-item[data-category="hypergemy"]:hover {
    border-color: rgba(192, 132, 252, 0.8);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.3);
}

/* Hypergemy category title */
#cat-hypergemy .category-title {
    color: #c4b5fd;
}

#cat-hypergemy .category-title i {
    color: #a855f7;
}

#cat-hypergemy .category-desc {
    color: rgba(196, 181, 253, 0.7);
}

.store-item[data-category="hypergemy"] {
    padding: 24px 20px;
}

.store-item[data-category="hypergemy"] .item-image {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.store-item[data-category="hypergemy"] h3 {
    color: #e9d5ff;
}

.store-item[data-category="hypergemy"] .item-price {
    color: #c4b5fd;
}

.store-item[data-category="hypergemy"] .buy-btn {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.store-item[data-category="hypergemy"] .buy-btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.store-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.item-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Item Features List */
.item-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.item-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.item-features li i {
    color: var(--gold);
    width: 18px;
    text-align: center;
}

/* Item Price */
.item-price {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.item-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.item-old-price {
    font-size: 1rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-bottom: 8px;
}

.item-bonus {
    font-size: 0.85rem;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Buy Button */
.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-darker);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 164, 76, 0.4);
}

.buy-btn:active {
    transform: translateY(0);
}

/* Payment Section */
.store-payment-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.payment-info {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.5) 0%, rgba(26, 20, 16, 0.7) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.payment-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.payment-method i {
    font-size: 2rem;
    color: var(--gold);
}

.payment-method span {
    font-weight: 600;
    color: var(--text-light);
}

.payment-method small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.payment-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-note i {
    color: var(--gold);
}

.payment-note a {
    color: var(--gold);
    text-decoration: underline;
}

.payment-note a:hover {
    color: var(--gold-light);
}

/* Store Responsive */
@media (max-width: 768px) {
    .store-hero {
        margin-top: 100px;
        padding: 30px 0 30px;
    }

    .store-logo {
        max-width: 150px;
    }

    .store-notice {
        flex-direction: column;
        text-align: center;
    }

    .store-categories {
        gap: 8px;
    }

    .store-cat-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .store-cat-btn span {
        display: none;
    }

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

    .payment-methods {
        flex-direction: column;
        gap: 16px;
    }

    .payment-method {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .store-item {
        padding: 24px 20px;
    }

    .item-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .item-price {
        font-size: 1.5rem;
    }

    .payment-info {
        padding: 24px 16px;
    }
}

/* =========================================
   SUBPAGE STYLES (Nábor, Pravidla, A-Team)
   ========================================= */

/* Page Body */
.page-body {
    padding-top: var(--header-height);
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 164, 76, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.page-logo-link {
    display: inline-block;
    margin-bottom: 24px;
}

.page-logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(184, 134, 46, 0.5));
    transition: transform 0.3s ease;
}

.page-logo-link:hover .page-logo {
    transform: scale(1.05);
}

.page-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(212, 164, 76, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-title i {
    font-size: 0.9em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    padding: 60px 0 80px;
    background: var(--bg-darker);
    min-height: 50vh;
}

/* Page Footer */
.page-footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 164, 76, 0.15);
    padding: 32px 0;
    text-align: center;
}

.page-footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Content Card */
.content-card {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.content-card.highlight-card {
    text-align: center;
    border-color: rgba(212, 164, 76, 0.3);
    background: linear-gradient(180deg, rgba(212, 164, 76, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
}

.content-card.highlight-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Button (subpages) */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-darker);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 164, 76, 0.4);
}

.cta-btn:active {
    transform: translateY(0);
}

/* =========================================
   NÁBOR PAGE - POSITIONS GRID
   ========================================= */

.positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.position-card {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.position-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 164, 76, 0.1);
}

.position-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: white;
}

.position-icon.helper {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.position-icon.builder {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.position-icon.technik {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 20px rgba(75, 85, 99, 0.4);
}

.position-icon.content-dev {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.position-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 24px;
}

.position-duties,
.position-requirements {
    margin-bottom: 20px;
}

.position-duties h3,
.position-requirements h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.position-duties h3 i,
.position-requirements h3 i {
    color: var(--gold);
    font-size: 0.9rem;
}

.position-duties ul,
.position-requirements ul {
    list-style: none;
}

.position-duties li,
.position-requirements li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(212, 164, 76, 0.1);
}

.position-duties li:last-child,
.position-requirements li:last-child {
    border-bottom: none;
}

.position-duties li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--gold);
}

.position-requirements li::before {
    content: '';
}

.req-mandatory,
.req-recommended {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.req-mandatory {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.req-recommended {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Apply Section */
.apply-section {
    text-align: center;
    padding: 48px;
    background: linear-gradient(180deg, rgba(212, 164, 76, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.3);
    border-radius: 16px;
}

.apply-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.apply-section p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   PRAVIDLA PAGE - RULES
   ========================================= */

.rules-content {
    max-width: 900px;
    margin: 0 auto;
}

.rules-section {
    margin-bottom: 48px;
}

.rules-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212, 164, 76, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules-section h2 i {
    font-size: 1.25rem;
}

.rule-item {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.4) 0%, rgba(26, 20, 16, 0.6) 100%);
    border: 1px solid rgba(212, 164, 76, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: rgba(212, 164, 76, 0.4);
    transform: translateX(4px);
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-darker);
}

.rule-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.rule-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.rule-content p strong {
    color: var(--gold-light);
}

/* Rules Note */
.rules-note {
    text-align: center;
    padding: 32px;
    background: rgba(114, 47, 55, 0.15);
    border: 1px solid rgba(114, 47, 55, 0.3);
    border-radius: 12px;
    margin-top: 48px;
}

.rules-note p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.rules-note i {
    color: var(--maroon-light);
    margin-right: 8px;
}

/* =========================================
   A-TEAM PAGE - TEAM MEMBERS
   ========================================= */

.team-content {
    padding-bottom: 100px;
}

.team-section {
    margin-bottom: 48px;
}

.team-rank {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.team-rank i {
    font-size: 1.25rem;
}

.team-rank.owner {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.3) 0%, rgba(127, 29, 29, 0.2) 100%);
    border: 1px solid rgba(185, 28, 28, 0.4);
    color: #dc2626;
}

.team-rank.admin {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.1) 100%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.team-rank.moderator {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.team-rank.helper {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(250, 204, 21, 0.1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #facc15;
}

.team-rank.technik {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.2) 0%, rgba(163, 230, 53, 0.1) 100%);
    border: 1px solid rgba(132, 204, 22, 0.3);
    color: #a3e635;
}

.team-rank.builder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.team-card {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 164, 76, 0.1);
}

.team-card.owner-card {
    border-color: rgba(185, 28, 28, 0.4);
    background: linear-gradient(180deg, rgba(153, 27, 27, 0.15) 0%, rgba(26, 20, 16, 0.8) 100%);
}

.team-card.owner-card:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(185, 28, 28, 0.2);
}

.team-card.admin-card {
    border-color: rgba(248, 113, 113, 0.3);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
}

.team-card.admin-card:hover {
    border-color: #f87171;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(248, 113, 113, 0.2);
}

.team-card.moderator-card {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
}

.team-card.moderator-card:hover {
    border-color: #a855f7;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.2);
}

.team-card.helper-card {
    border-color: rgba(234, 179, 8, 0.3);
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
}

.team-card.helper-card:hover {
    border-color: #facc15;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(234, 179, 8, 0.2);
}

.team-card.technik-card {
    border-color: rgba(132, 204, 22, 0.3);
    background: linear-gradient(180deg, rgba(132, 204, 22, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
}

.team-card.technik-card:hover {
    border-color: #a3e635;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(132, 204, 22, 0.2);
}

.team-card.builder-card {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
}

.team-card.builder-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
}

.team-avatar {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.avatar-body {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.avatar-head {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 3px solid rgba(212, 164, 76, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.team-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.team-role {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212, 164, 76, 0.15);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.owner-card .team-role {
    background: rgba(185, 28, 28, 0.2);
    color: #dc2626;
}

.admin-card .team-role {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.moderator-card .team-role {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.helper-card .team-role {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.technik-card .team-role {
    background: rgba(132, 204, 22, 0.2);
    color: #a3e635;
}

.builder-card .team-role {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.team-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.no-members {
    color: var(--text-dim);
    font-style: italic;
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* Team CTA */
.team-cta {
    text-align: center;
    padding: 48px;
    background: linear-gradient(180deg, rgba(212, 164, 76, 0.1) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.3);
    border-radius: 16px;
    margin-top: 40px;
}

.team-cta h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.team-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Dropdown Active State for Subpages */
.nav-dropdown-menu a.active {
    background: rgba(212, 164, 76, 0.2);
    color: var(--gold);
}

/* =========================================
   AUTHENTICATION PAGES
   ========================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
}

.auth-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 20%, rgba(212, 164, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-logo-link {
    display: block;
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(184, 134, 46, 0.5));
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.auth-logo-link:hover .auth-logo {
    transform: scale(1.05);
}

.auth-card {
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.8) 0%, rgba(26, 20, 16, 0.95) 100%);
    border: 1px solid rgba(212, 164, 76, 0.25);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-title i {
    font-size: 1.25rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--gold);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 76, 0.15);
}

.form-group input[type="password"] {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--gold);
}

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(212, 164, 76, 0.4);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--bg-darker);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--gold);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--gold-light);
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--gold);
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--gold-light);
}

/* Auth Button */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-darker);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 164, 76, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(212, 164, 76, 0.2);
}

.auth-divider span {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Discord Button */
.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #5865F2;
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn i {
    font-size: 1.25rem;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
}

.auth-switch a:hover {
    color: var(--gold-light);
}

/* Auth Notification */
.auth-notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.auth-notification.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.auth-notification.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* User Menu (for logged in state) */
.nav-auth-link.logged-in {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 2px solid var(--gold);
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: rgba(15, 12, 9, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 164, 76, 0.3);
    border-radius: 12px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(212, 164, 76, 0.1);
    border-bottom: 1px solid rgba(212, 164, 76, 0.15);
}

.user-menu-header img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid var(--gold);
}

.user-menu-header strong {
    display: block;
    color: var(--text-light);
    font-family: 'Cinzel', serif;
}

.user-menu-header span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.user-menu-links {
    padding: 8px 0;
}

.user-menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-menu-links a:hover {
    background: rgba(212, 164, 76, 0.1);
    color: var(--gold);
}

.user-menu-links a i {
    width: 18px;
    text-align: center;
    color: var(--gold);
    opacity: 0.7;
}

.user-menu-links a:hover i {
    opacity: 1;
}

/* Auth Page Responsive */
@media (max-width: 480px) {
    .auth-content {
        padding: 100px 16px 40px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   VOTING PAGE
   ========================================= */

.voting-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
}

.voting-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(180deg, rgba(45, 31, 20, 0.6) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 1px solid rgba(212, 164, 76, 0.25);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.voting-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(212, 164, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.voting-card:hover {
    border-color: var(--gold);
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 164, 76, 0.1);
}

.voting-card.on-cooldown {
    border-color: rgba(100, 100, 100, 0.3);
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.4) 0%, rgba(26, 26, 26, 0.6) 100%);
}

.voting-card.on-cooldown::before {
    opacity: 0;
}

.voting-card.on-cooldown:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(100, 100, 100, 0.3);
}

.voting-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-darker);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(212, 164, 76, 0.3);
    transition: all 0.3s ease;
}

.voting-card:hover .voting-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 164, 76, 0.5);
}

.voting-card.on-cooldown .voting-icon {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: none;
}

.voting-info {
    flex: 1;
}

.voting-info h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.voting-card.on-cooldown .voting-info h2 {
    color: var(--text-muted);
}

.voting-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.voting-card.on-cooldown .voting-info p {
    color: var(--text-dim);
}

.voting-status {
    text-align: center;
    min-width: 100px;
}

.cooldown-timer {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
}

.voting-card.on-cooldown .cooldown-timer {
    color: #f87171;
}

.voting-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg-darker);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
    animation: voteGlow 2s ease-in-out infinite;
}

@keyframes voteGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(212, 164, 76, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(212, 164, 76, 0.6);
    }
}

.voting-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 164, 76, 0.5);
}

.voting-btn.disabled {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: var(--text-dim);
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

.voting-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Voting Rewards */
.voting-rewards {
    text-align: center;
    padding: 40px;
    background: linear-gradient(180deg, rgba(212, 164, 76, 0.08) 0%, rgba(26, 20, 16, 0.6) 100%);
    border: 1px solid rgba(212, 164, 76, 0.2);
    border-radius: 16px;
}

.voting-rewards h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rewards-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.reward-item:hover {
    background: rgba(212, 164, 76, 0.1);
    transform: translateY(-4px);
}

.reward-item i {
    font-size: 2rem;
    color: var(--gold);
}

.reward-item span {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Voting Responsive */
@media (max-width: 768px) {
    .voting-card {
        flex-wrap: wrap;
        padding: 24px;
        gap: 16px;
    }

    .voting-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .voting-info {
        flex: 1 1 calc(100% - 80px);
    }

    .voting-info h2 {
        font-size: 1.15rem;
    }

    .voting-status {
        order: 4;
        width: 100%;
        text-align: left;
    }

    .voting-btn {
        order: 3;
        width: auto;
    }

    .rewards-grid {
        gap: 20px;
    }

    .reward-item {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .voting-card {
        flex-direction: column;
        text-align: center;
    }

    .voting-info {
        flex: none;
        width: 100%;
    }

    .voting-status {
        text-align: center;
    }

    .voting-btn {
        width: 100%;
        justify-content: center;
    }

    .rewards-grid {
        flex-direction: column;
        gap: 12px;
    }

    .reward-item {
        flex-direction: row;
        justify-content: center;
    }

    .reward-item i {
        font-size: 1.5rem;
    }
}

/* =========================================
   SUBPAGE RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 40px;
    }

    .page-logo {
        max-width: 140px;
    }

    .page-title {
        flex-direction: column;
        gap: 8px;
    }

    .positions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .position-card {
        padding: 24px;
    }

    .apply-section,
    .team-cta {
        padding: 32px 24px;
    }

    .rule-item {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .rule-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

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

    .team-card {
        padding: 24px;
    }

    .avatar-body {
        height: 120px;
    }

    .avatar-head {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 40px 0 60px;
    }

    .content-card {
        padding: 24px 20px;
    }

    .content-card.highlight-card p {
        font-size: 1rem;
    }

    .position-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .position-card h2 {
        font-size: 1.25rem;
    }

    .rules-section h2 {
        font-size: 1.25rem;
    }

    .team-rank {
        font-size: 1.25rem;
        padding: 12px 16px;
    }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle,
    .ember,
    .ambient-particles span {
        display: none !important;
    }

    .orbit,
    .orbit-particles {
        animation: none !important;
    }

    .bridge-pulse {
        display: none !important;
    }
}
