@keyframes storm-drift-slow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { opacity: 0; }
}

body::after {
    content: none;
}

.cloud-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -0.5;
    object-fit: cover;
    opacity: 0.8;
    pointer-events: none;
}

/* Page Header */
.page-header {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

body::before {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 30%),
        linear-gradient(225deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 20%, #2a2a2a 50%, #1a1a1a 80%, #1a1a1a 100%) !important;
    background-attachment: fixed !important;
    box-shadow: inset -40px -40px 80px rgba(255, 255, 255, 0.1), inset 40px 40px 80px rgba(0, 0, 0, 0.5);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #d4af37;
}

/* World Intro */
.world-intro {
    padding: 4rem 2rem;
    background: #1a1a1a;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" result="noise" seed="2" /></filter><rect width="100" height="100" fill="%231a1a1a" filter="url(%23noise)" opacity="0.08"/></svg>');
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.world-intro h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.world-intro p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
    color: #ddd;
    text-align: center;
}

/* World Map / Territories */
.world-map {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.world-map h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.territories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}

.territory {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.territory::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.territory h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.territory p:first-of-type {
    color: #d4af37;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.territory p {
    color: #ddd;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.territory a {
    display: inline-block;
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.territory a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.territory a:hover::after {
    width: 100%;
}

.territory:hover {
    border-color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

/* Civilization System */
.civilization-system {
    padding: 4rem 2rem;
    background: #1a1a1a;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" result="noise" seed="2" /></filter><rect width="100" height="100" fill="%231a1a1a" filter="url(%23noise)" opacity="0.08"/></svg>');
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.civilization-system h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.civilization-system > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: #ddd;
}

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

.sys-feature {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid #d4af37;
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sys-feature:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.sys-feature h3 {
    margin-bottom: 1rem;
}

.sys-feature p {
    color: #ddd;
    font-size: 0.95rem;
}

/* Lore Section */
.lore {
    padding: 4rem 2rem;
    background: #1a1a1a;
    position: relative;
    z-index: 1;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.lore h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.lore p {
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: #ddd;
    text-align: justify;
    line-height: 1.8;
}

.lore p:last-child {
    text-align: center;
    font-style: italic;
    color: #d4af37;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .world-map h2 {
        font-size: 1.8rem;
    }

    .civilization-system h2 {
        font-size: 1.8rem;
    }

    .lore h2 {
        font-size: 1.8rem;
    }
}
