/* Game Page Styles */
:root {
    --primary-bg: #0e121a;          /* Dark blue instead of dark green */
    --secondary-bg: #1a1f2f;        /* Deep navy instead of forest green */
    --accent-green: #00a2ff;        /* Bright blue instead of green */
    --accent-gold: #c0c0c0;         /* Silver instead of gold */
    --text-primary: #ffffff;        /* Unchanged */
    --text-secondary: #b8c2d4;      /* Cool gray-blue instead of greenish */
    --text-muted: #7a8099;          /* Muted blue-gray instead of green-gray */
    --glow-green: rgba(0, 162, 255, 0.3);  /* Blue glow instead of green */
    --glow-gold: rgba(192, 192, 192, 0.3); /* Silver glow instead of gold */
    --shadow-dark: rgba(0, 0, 0, 0.8);     /* Unchanged */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Unchanged */
}

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

body {
    font-family: 'Jura', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #0f1b13 50%, var(--primary-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--glow-green) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--glow-gold) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.game-header {
    background: rgba(26, 33, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 68, 255, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(0, 68, 255, 0.2);
    background: rgba(0, 17, 255, 0.1);
    transition: var(--transition);
    font-weight: 500;
}

.back-button:hover {
    color: var(--accent-green);
    border-color: var(--accent-green);
    background: rgba(0, 47, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px var(--glow-green);
}

.back-arrow {
    font-size: 1.2rem;
    transition: var(--transition);
}

.back-button:hover .back-arrow {
    transform: translateX(-3px);
}

.game-info {
    text-align: center;
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    text-shadow: 0 0 20px var(--glow-green);
}

.game-slogan {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
}

/* Main Game Area */
.game-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.game-wrapper {
    width: 100%;
    max-width: 1200px;
    background: var(--secondary-bg);
    border-radius: 20px;
    border: 2px solid rgba(0, 38, 255, 0.3);
    box-shadow: 
        0 20px 40px var(--shadow-dark),
        inset 0 0 20px rgba(0, 60, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.game-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, var(--accent-green) 50%, transparent 51%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-wrapper:hover::before {
    opacity: 0.1;
}

.game-iframe {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: none;
    display: block;
    background: var(--primary-bg);
}

/* Footer */
.game-footer {
    background: var(--primary-bg);
    border-top: 1px solid rgba(0, 38, 255, 0.2);
    padding: 20px 0;
    text-align: center;
}

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

/* Mystical Particles Effect */
.mystical-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mystical-particles::before,
.mystical-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 50%;
    opacity: 0;
    animation: float 6s infinite ease-in-out;
}

.mystical-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 10px var(--accent-green);
}

.mystical-particles::after {
    top: 70%;
    right: 15%;
    animation-delay: 3s;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

@keyframes float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

/* Loading State */
.game-iframe {
    transition: opacity 0.5s ease;
}

.game-iframe[src=""] {
    opacity: 0.5;
    background: var(--primary-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .back-button {
        align-self: flex-start;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-slogan {
        font-size: 1rem;
    }
    
    .game-main {
        padding: 20px 15px;
    }
    
    .game-iframe {
        height: 60vh;
        min-height: 400px;
    }
    
    .game-wrapper {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.8rem;
    }
    
    .back-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .game-iframe {
        height: 50vh;
        min-height: 350px;
    }
    
    .game-main {
        padding: 15px 10px;
    }
}

/* Enhanced hover effects */
@media (hover: hover) {
    .game-wrapper:hover {
        border-color: var(--accent-green);
        box-shadow: 
            0 25px 50px var(--shadow-dark),
            0 0 30px var(--glow-green),
            inset 0 0 30px rgba(0, 102, 255, 0.15);
        transform: translateY(-5px);
    }
}

/* Focus states for accessibility */
.back-button:focus,
.game-iframe:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-bg: #000000;
        --secondary-bg: #1a1a1a;
        --text-primary: #ffffff;
        --accent-green: #0066ff;
        --accent-gold: #ffff00;
    }
}