* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

#gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    min-height: 100vh;
    /* Instant load: darker gradient visible from first paint */
    background: linear-gradient(135deg, #000000 0%, #050000 20%, #0a0000 40%, #1a0000 60%, #220000 80%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

#valkyra-logo-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1200px;
    height: 80%;
    max-height: 1200px;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#valkyra-logo-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: blur(1px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
    background: rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid rgba(77, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link:hover {
    background: rgba(102, 0, 0, 0.5);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(102, 0, 0, 0.7);
    border: 1px solid rgba(77, 0, 0, 0.8);
}

header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 80px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: 900;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.factions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.faction-card {
    background: rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(77, 0, 0, 0.5);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: #660000;
}

.faction-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4d0000;
}

.faction-logo {
    max-width: 120px;
    max-height: 80px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.faction-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.faction-header h2 {
    font-size: 1.8rem;
    color: #FFFFFF;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.traitor-count {
    background: #660000;
    color: #FFFFFF;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #4d0000;
}

.traitor-list {
    list-style: none;
}

.traitor-item {
    padding: 20px 22px;
    margin-bottom: 12px;
    background: #A52A2A;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.traitor-item:hover {
    background: #8B0000;
    border-left-color: #660000;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(102, 0, 0, 0.5);
}

.traitor-name {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.35rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.screenshot-count {
    background: #660000;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid #4d0000;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 0, 0, 0.9) 12.5%, rgba(51, 0, 0, 0.9) 25%, rgba(102, 0, 0, 0.9) 37.5%, rgba(77, 0, 0, 0.9) 50%, rgba(102, 0, 0, 0.9) 62.5%, rgba(77, 0, 0, 0.9) 75%, rgba(51, 0, 0, 0.9) 87.5%, rgba(26, 0, 0, 0.9) 100%);
    background-size: 400% 400%;
    border: 2px solid rgba(77, 0, 0, 0.5);
    border-radius: 12px;
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease, gradientShift 8s ease infinite 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.close:hover {
    color: #CCCCCC;
}

#modal-traitor-name {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    padding-right: 40px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.traitor-description {
    background: #660000;
    border-left: 4px solid #4d0000;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    color: #FFFFFF;
    line-height: 1.6;
    font-size: 1rem;
}

.traitor-description p {
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.screenshots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    max-width: 100%;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.screenshot-item img {
    width: auto;
    height: auto;
    max-width: 600px;
    max-height: 500px;
    display: block;
    object-fit: contain;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #CCCCCC;
    font-style: italic;
}

.empty-state p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Homepage Styles */
.home-content {
    max-width: 1200px;
    margin: 0 auto;
}

.home-card {
    background: rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(77, 0, 0, 0.5);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.home-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.home-link-card {
    background: rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(77, 0, 0, 0.5);
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.home-link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 0, 0, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: rgba(139, 0, 0, 0.4);
}

.link-card-content {
    position: relative;
}

.link-card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.link-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.link-arrow {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.home-link-card:hover .link-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Propaganda Styles */
.propaganda-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.propaganda-card {
    background: rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(77, 0, 0, 0.5);
    border-radius: 12px;
    padding: 30px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.propaganda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.propaganda-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.propaganda-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.propaganda-card ol {
    margin-left: 20px;
    margin-top: 15px;
    line-height: 2;
}

.propaganda-card li {
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.warning-text {
    margin-top: 20px;
    padding: 15px;
    background: rgba(102, 0, 0, 0.5);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-weight: 700;
}

/* Propaganda Gallery Styles */
.propaganda-instructions {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.propaganda-controls {
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: center;
}

.download-all-button {
    background: rgba(102, 0, 0, 0.7);
    border: 2px solid rgba(77, 0, 0, 0.8);
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.download-all-button:hover {
    background: rgba(102, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.propaganda-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.propaganda-image-item {
    background: rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(77, 0, 0, 0.5);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.propaganda-image-item:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 0, 0, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: rgba(139, 0, 0, 0.4);
}

.propaganda-image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    max-height: 300px;
    object-fit: contain;
}

.propaganda-download-btn {
    margin-top: 15px;
    background: rgba(102, 0, 0, 0.7);
    border: 2px solid rgba(77, 0, 0, 0.8);
    color: #FFFFFF;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.propaganda-download-btn:hover {
    background: rgba(102, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Image Lightbox Styles */
#image-lightbox {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
}

#image-lightbox.show {
    display: flex;
}

#lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 48px;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2001;
}

.lightbox-close:hover {
    color: #CCCCCC;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        margin-top: 100px;
    }

    header h1 {
        font-size: 2rem;
    }

    .main-nav {
        top: 10px;
        right: 10px;
        left: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

    .propaganda-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .screenshots-container {
        grid-template-columns: 1fr;
    }
}

/* Site footer */
.site-footer {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 25px 20px 40px;
    text-align: center;
    color: #CCCCCC;
    font-size: 0.9rem;
    line-height: 1.7;
    border-top: 1px solid rgba(77, 0, 0, 0.5);
}

.site-footer p {
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.site-footer strong {
    color: #FFFFFF;
}
