/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* SCP Foundation Color Palette */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --tertiary-bg: #2a2a2a;
    --accent-red: #ff3333;
    --accent-red-glow: rgba(255, 51, 51, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --warning-orange: #ff9500;
    --safe-green: #00ff88;
    
    /* Typography */
    --font-heading: 'Orbitron', monospace;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 4rem 2rem;
    --container-max-width: 1200px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 6px;
    border: 2px solid #000000;
}

/* Mobile Notification Banner */
.mobile-notification {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-red), #ff6666);
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 9999;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-notification-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.mobile-notification h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.mobile-notification p {
    margin-bottom: 0.5rem;
}

/* Close button styling */
.mobile-notification-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Confirmation Modal */
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.notification-modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin: 1rem;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

.modal-content h3 {
    color: var(--accent-red);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-red);
}

.modal-btn.confirm {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.modal-btn.confirm:hover {
    background: #cc0000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure dismissed notifications stay hidden */
.mobile-notification.dismissed {
    display: none !important;
}

/* Show mobile notification only on screens below 1134px */
@media (max-width: 1134px) {
    .mobile-notification:not(.dismissed) {
        display: block !important;
    }
    
    /* Add top padding to body when notification is visible */
    body:not(.notification-dismissed) {
        padding-top: 120px !important;
    }
    
    /* Adjust for different screen sizes */
    @media (max-width: 768px) {
        body:not(.notification-dismissed) {
            padding-top: 140px !important;
        }
        
        .mobile-notification {
            font-size: 0.8rem;
            padding: 0.8rem;
        }
        
        .mobile-notification h4 {
            font-size: 0.9rem;
        }
    }
    
    @media (max-width: 480px) {
        body:not(.notification-dismissed) {
            padding-top: 160px !important;
        }
        
        .mobile-notification {
            font-size: 0.75rem;
            padding: 0.7rem;
        }
    }
}

::-webkit-scrollbar-thumb:hover {
    background: #cc2929;
}

/* Terminal Scrollbar */
.terminal-content::-webkit-scrollbar {
    width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
    border: 1px solid #000000;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: #cc2929;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--primary-bg) 0%, #0f0f0f 50%, var(--primary-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Interactive Logo Animations */
.logo {
    cursor: pointer;
    position: relative;
    transition: var(--transition-medium);
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    overflow: hidden;
}

.logo-breach-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
}

.breach-text {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.8);
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 1px;
}

.logo.breach-active .logo-breach-overlay {
    opacity: 0.8;
    transform: scale(3);
}

.logo.breach-active .breach-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.logo.breach-active .logo-image {
    transform: rotate(15deg) scale(1.1);
    filter: saturate(2) brightness(1.2);
}

.logo.breach-active {
    animation: screenShake 0.3s ease-in-out;
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* SCP Terminal Interface */
.scp-terminal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 80%;
    max-width: 800px;
    height: 500px;
    background: var(--primary-bg);
    border: 2px solid var(--accent-red);
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(255, 51, 51, 0.3);
}

.scp-terminal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--accent-red);
    border-radius: 6px 6px 0 0;
}

.terminal-title {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.terminal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.terminal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.terminal-content {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden; /* Prevent main scrolling when in terminal */
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
    max-height: 400px; /* Constrain height for proper scrolling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) #000000;
}

.terminal-line {
    margin-bottom: 0.3rem;
    animation: typewriter 0.05s ease-in-out;
}

/* Terminal line type styling */
.terminal-line.command {
    color: var(--accent-red);
    font-weight: bold;
}

.terminal-line.header {
    color: var(--accent-red);
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent-red-glow);
}

.terminal-line.separator {
    color: var(--text-muted);
}

.terminal-line.error {
    color: #ff6b6b;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
}

.terminal-prompt {
    color: var(--accent-red);
    margin-right: 0.5rem;
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
}

@keyframes typewriter {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Enhanced Game Card Interactions */
.game-card {
    position: relative;
}

/* Interactive Footer */
.dev-stats {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-item {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-heading);
}

.stat-value {
    color: var(--accent-red);
    font-weight: 700;
}

.classification-footer {
    margin-top: 1rem;
    text-align: center;
}

.classification-stamp-footer {
    display: inline-block;
    background: var(--tertiary-bg);
    border: 2px solid var(--accent-red);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.classification-stamp-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.end-file {
    display: block;
    color: var(--accent-red);
    font-weight: 700;
    margin-top: 0.2rem;
}

/* Section Transition Animations */
.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.3), transparent);
    transition: left 0.8s ease;
}

.section-title.animate::before {
    left: 100%;
}

/* Parallax Effects */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Mobile Responsiveness for New Features */
@media (max-width: 768px) {
    .scp-terminal {
        width: 95%;
        height: 400px;
    }
    
    .terminal-content {
        padding: 0.5rem;
    }
    
    .hidden-details {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 1rem;
        border-radius: 8px;
        display: none;
    }
    
    .game-card:hover .hidden-details {
        display: block;
    }
    
    .classification-stamp {
        top: 10px;
        right: 10px;
        width: 60px;
        height: 60px;
    }
    
    .dev-stats {
        flex-direction: column;
        gap: 0.2rem;
    }
}

.logo-icon.small {
    width: 30px;
    height: 30px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Keep the old door styles as backup/alternative if needed */
.door {
    width: 100%;
    height: 100%;
    background: var(--tertiary-bg);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.door-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 80%;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.red-light {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, var(--accent-red) 0%, transparent 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--section-padding);
    background: radial-gradient(ellipse at center, rgba(255, 51, 51, 0.05) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 20;
    position: relative;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    position: relative;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-title::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-red);
}

.hero-title::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--accent-red), #ff6666);
    color: white;
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    box-shadow: 0 6px 30px var(--accent-red-glow);
}

.cta-button.secondary:hover {
    border-color: var(--accent-red);
    background: rgba(255, 51, 51, 0.1);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.cta-button.primary:hover .button-glow {
    left: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Keep old particle styles for fallback */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: float var(--duration) infinite var(--delay);
    opacity: 0.6;
}

.particle:nth-child(1) { top: 20%; left: 10%; }
.particle:nth-child(2) { top: 60%; left: 80%; }
.particle:nth-child(3) { top: 30%; left: 70%; }
.particle:nth-child(4) { top: 80%; left: 20%; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Section Styles */
.section-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--section-padding);
    position: relative;
    z-index: 15;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

/* About Section */
.about {
    background: transparent;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-text strong {
    color: var(--text-primary);
}

.fun-fact {
    background: var(--tertiary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    margin-top: 2rem;
}

.fact-label {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fact-text {
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
}

.studio-card {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
}

.card-header {
    background: linear-gradient(45deg, var(--safe-green), #00cc6a);
    padding: 0.5rem 1rem;
    text-align: center;
}

.classification {
    color: var(--primary-bg);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Games Section */
.games {
    background: transparent;
}

.games-grid {
    display: grid;
    gap: 2rem;
}

.game-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    z-index: 15;
}

.game-card.featured {
    border-color: var(--accent-red);
    box-shadow: 0 8px 40px rgba(255, 51, 51, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 50px rgba(255, 51, 51, 0.2);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.game-status {
    background: var(--warning-orange);
    color: var(--primary-bg);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    flex: 1;
    margin-left: 1rem;
}

.game-platforms {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.platform {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.platform.roblox {
    background: #00a2ff;
    color: white;
}

.platform.strategy {
    background: var(--tertiary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.game-features li {
    color: var(--text-secondary);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.game-features li::before {
    content: '▶';
    color: var(--accent-red);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.game-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.game-button:not(.secondary) {
    background: linear-gradient(45deg, var(--accent-red), #ff6666);
    color: white;
}

.game-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.game-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.game-button small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.game-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 51, 51, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-medium);
    pointer-events: none;
}

.game-card:hover .game-glow {
    opacity: 1;
}

.future-games {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--tertiary-bg);
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.dev-status {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--warning-orange);
}

.dev-status h4 {
    color: var(--warning-orange);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.dev-status p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.dev-status strong {
    color: var(--text-primary);
}

.future-text {
    color: var(--text-secondary);
    font-style: italic;
}

.redacted {
    background: var(--text-primary);
    color: var(--text-primary);
    padding: 0 0.5rem;
    border-radius: 2px;
    animation: flicker 1.5s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.warning-box {
    display: flex;
    gap: 1rem;
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid var(--warning-orange);
    border-radius: 8px;
    padding: 1.5rem;
}

.warning-icon {
    font-size: 1.5rem;
    color: var(--warning-orange);
}

.warning-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.warning-text strong {
    color: var(--warning-orange);
}

.discord-card {
    background: #5865f2;
    border-radius: 12px;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3);
}

.live-discord-widget {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3);
    border: 2px solid var(--border-color);
    transition: var(--transition-medium);
}

.live-discord-widget:hover {
    border-color: var(--accent-red);
    box-shadow: 0 12px 40px rgba(255, 51, 51, 0.2);
}

.discord-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.discord-icon {
    font-size: 1.5rem;
}

.discord-header h4 {
    flex: 1;
    font-size: 1.2rem;
}

.online-indicator {
    color: #00ff88;
    font-size: 0.9rem;
}

.discord-content ul {
    list-style: none;
    margin: 1rem 0;
}

.discord-content li {
    padding: 0.2rem 0;
    position: relative;
    padding-left: 1rem;
}

.discord-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

.discord-button {
    display: inline-block;
    background: white;
    color: #5865f2;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    margin-top: 1rem;
}

.discord-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 15;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.copyright-notice {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.copyright-notice p:first-child {
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copyright-notice p:last-child {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.disclaimer a {
    color: var(--accent-red);
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-title {
        margin-left: 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 1rem;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .discord-card {
        padding: 1.5rem;
    }
    
    .cta-button {
        min-width: 150px;
        padding: 0.8rem 1.5rem;
    }
}

/* Flash animation for logo breach effect */
@keyframes flash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--accent-red);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
    animation: fadeIn 0.8s ease-out, pulseGlow 3s ease-in-out infinite 1.5s;
}

.cookie-consent.accept-disappear {
    animation: fadeOut 0.6s ease-in-out forwards;
}

.cookie-consent.decline-disappear {
    animation: fadeOut 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes scpBreach {
    0% {
        transform: translateY(100%);
        opacity: 0;
        border-top-color: transparent;
    }
    15% {
        transform: translateY(80%);
        opacity: 0.3;
        border-top-color: var(--accent-red);
        box-shadow: 0 -4px 20px rgba(255, 51, 51, 0.1);
    }
    30% {
        transform: translateY(20%);
        opacity: 0.6;
        box-shadow: 0 -8px 30px rgba(255, 51, 51, 0.2);
    }
    60% {
        transform: translateY(-5%);
        opacity: 0.9;
        box-shadow: 0 -12px 40px rgba(255, 51, 51, 0.3);
    }
    80% {
        transform: translateY(2%);
        opacity: 1;
        box-shadow: 0 -10px 35px rgba(255, 51, 51, 0.25);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
}

@keyframes pulseGlow {
    0% {
        border-top-color: var(--accent-red);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        border-top-color: #ff6666;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 -2px 15px rgba(255, 51, 51, 0.4);
    }
    100% {
        border-top-color: var(--accent-red);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
}

@keyframes containmentSuccess {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    30% {
        transform: translateY(-10px) scale(1.02);
        opacity: 0.9;
        box-shadow: 0 -8px 30px rgba(255, 51, 51, 0.3);
    }
    100% {
        transform: translateY(100vh) scale(0.9);
        opacity: 0;
        box-shadow: 0 -4px 20px rgba(255, 51, 51, 0.1);
    }
}

@keyframes containmentFailure {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    30% {
        transform: translateY(5px) scale(0.98);
        opacity: 0.8;
        box-shadow: 0 -6px 25px rgba(255, 51, 51, 0.2);
    }
    100% {
        transform: translateY(100vh) scale(0.9);
        opacity: 0;
        box-shadow: 0 -4px 20px rgba(255, 51, 51, 0.1);
    }
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: headerSlideIn 1s ease-out 0.3s both;
}

.cookie-icon {
    font-size: 1.5rem;
    animation: cookieRotate 2s ease-in-out infinite, iconGlow 3s ease-in-out infinite 1s;
}

.cookie-header h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
    animation: headerSlideIn 1s ease-out 0.5s both;
}

.cookie-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    animation: headerSlideIn 1s ease-out 0.7s both;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: headerSlideIn 1s ease-out 0.9s both;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.cookie-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-btn span {
    position: relative;
    z-index: 1;
}

.cookie-btn.accept {
    background: var(--accent-red);
    color: white;
    animation: buttonPulse 2s ease-in-out infinite 2s;
}

.cookie-btn.accept:hover {
    background: #cc2929;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.4);
}

.cookie-btn.accept:active {
    transform: translateY(0) scale(0.98);
}

.cookie-btn.decline {
    background: var(--border-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn.decline:hover {
    background: #444;
    color: var(--text-primary);
    transform: translateY(-1px) scale(1.02);
    border-color: #555;
}

.cookie-btn.settings {
    background: linear-gradient(135deg, var(--accent-red), #cc2929);
    color: white;
    border: 1px solid var(--accent-red);
}

.cookie-btn.settings:hover {
    background: linear-gradient(135deg, #cc2929, #aa1f1f);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.3);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 51, 51, 0);
    }
}

@keyframes headerSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cookieRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

@keyframes iconGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 51, 51, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
    }
}

.cookie-btn.decline:hover {
    background: #666;
    color: var(--text-primary);
}

.cookie-btn.settings {
    background: linear-gradient(45deg, var(--accent-red), #cc2929);
    color: white;
    border: 1px solid var(--accent-red);
}

.cookie-btn.settings:hover {
    background: linear-gradient(45deg, #cc2929, #aa1f1f);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.cookie-links {
    display: flex;
    gap: 1rem;
}

.cookie-links a {
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.cookie-links a:hover {
    text-decoration: underline;
}

/* Privacy Policy Modal */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.privacy-modal.show {
    opacity: 1;
    visibility: visible;
}

.privacy-content {
    background: var(--secondary-bg);
    border: 2px solid var(--accent-red);
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    position: relative;
}

.privacy-header {
    background: linear-gradient(45deg, var(--accent-red), #cc2929);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.privacy-header h2 {
    font-family: var(--font-heading);
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.privacy-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.privacy-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.privacy-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.privacy-body h3 {
    font-family: var(--font-heading);
    color: var(--accent-red);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.privacy-body h3:first-child {
    margin-top: 0;
}

.privacy-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-body li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.privacy-body strong {
    color: var(--text-primary);
}

.privacy-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-body a {
    color: var(--accent-red);
    text-decoration: none;
}

.privacy-body a:hover {
    text-decoration: underline;
}

.classification-stamp {
    background: var(--tertiary-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

    .classification-stamp span:first-child {
        font-family: var(--font-heading);
        color: var(--accent-red);
        font-weight: 700;
        letter-spacing: 1px;
    }

    .last-updated {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    /* Cookie Preferences Button */
    .cookie-preferences-btn {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        padding: 0.5rem 1rem;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.8rem;
        transition: var(--transition-fast);
        font-family: var(--font-body);
        margin-top: 1rem;
    }

    .cookie-preferences-btn:hover {
        border-color: var(--accent-red);
        color: var(--accent-red);
        transform: translateY(-1px);
    }

    /* Cookie Settings Modal */
    .cookie-settings-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        z-index: 15000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .cookie-settings-modal.show {
        opacity: 1;
        visibility: visible;
    }

    .cookie-settings-content {
        background: var(--secondary-bg);
        border: 2px solid var(--accent-red);
        border-radius: 12px;
        max-width: 600px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 2rem;
        position: relative;
    }

    .cookie-privacy-info {
        background: rgba(255, 51, 51, 0.1);
        border: 1px solid var(--accent-red);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .cookie-privacy-info h4 {
        color: var(--accent-red);
        margin: 0 0 0.5rem 0;
        font-family: var(--font-heading);
    }

    .cookie-privacy-info p {
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.5;
    }

    .cookie-settings-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .cookie-settings-header h3 {
        font-family: var(--font-heading);
        color: var(--text-primary);
        margin: 0;
        font-size: 1.4rem;
    }

    .settings-close {
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition-fast);
    }

    .settings-close:hover {
        background: rgba(255, 51, 51, 0.2);
        color: var(--accent-red);
    }

    .cookie-option {
        background: var(--tertiary-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cookie-option-info h4 {
        color: var(--text-primary);
        margin: 0 0 0.5rem 0;
        font-family: var(--font-heading);
    }

    .cookie-option-info p {
        color: var(--text-secondary);
        margin: 0 0 0.5rem 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cookie-details {
        color: var(--text-muted);
        font-size: 0.8rem;
        line-height: 1.3;
        font-style: italic;
        margin: 0;
    }

    .cookie-data-info {
        background: var(--tertiary-bg);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        margin: 1rem 0;
    }

    .cookie-data-info h5 {
        color: var(--text-primary);
        margin: 0 0 0.75rem 0;
        font-family: var(--font-heading);
        font-size: 1rem;
    }

    .cookie-data-info ul {
        margin: 0 0 1rem 0;
        padding-left: 1.5rem;
    }

    .cookie-data-info li {
        color: var(--text-secondary);
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cookie-data-info p {
        color: var(--text-muted);
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.4;
        background: rgba(255, 51, 51, 0.1);
        padding: 0.5rem;
        border-radius: 4px;
        border-left: 3px solid var(--accent-red);
    }

    .cookie-toggle {
        position: relative;
        width: 50px;
        height: 24px;
        background: var(--border-color);
        border-radius: 12px;
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .cookie-toggle.active {
        background: var(--accent-red);
    }

    .cookie-toggle::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        transition: var(--transition-fast);
    }

    .cookie-toggle.active::after {
        transform: translateX(26px);
    }

    .settings-actions {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        justify-content: flex-end;
    }

    .settings-btn {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-family: var(--font-body);
        font-weight: 500;
        transition: var(--transition-fast);
    }

    .settings-btn.save {
        background: var(--accent-red);
        color: white;
    }

    .settings-btn.save:hover {
        background: #cc2929;
        transform: translateY(-1px);
    }

    .settings-btn.cancel {
        background: var(--border-color);
        color: var(--text-secondary);
    }

    .settings-btn.cancel:hover {
        background: #666;
        color: var(--text-primary);
    }/* Mobile Responsiveness for Cookie Consent */
@media (max-width: 768px) {
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .privacy-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .privacy-body {
        padding: 1.5rem;
    }
}
