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

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #121825;
    --bg-tertiary: #1a2235;
    --text-primary: #e0e6ed;
    --text-secondary: #8b9bb4;
    --accent-cyan: #00d4ff;
    --accent-purple: #4a00e0;
    --accent-yellow: #ffd700;
    --accent-green: #00ff88;
    --accent-red: #ff4444;
    --border-color: #2a3a5a;
    --glass-bg: rgba(18, 24, 37, 0.85);
    --glass-border: rgba(0, 212, 255, 0.2);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(74, 0, 224, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.stargate-symbol {
    width: 100px;
    height: 100px;
    animation: pulse 2s ease-in-out infinite;
}

.stargate-symbol svg {
    width: 100%;
    height: 100%;
}

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

#loader h1 {
    font-size: 2.5rem;
    margin-top: 2rem;
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 3px;
}

#loader p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Utility Classes */
.hidden { display: none !important; }
.glow-cyan { text-shadow: var(--glow-cyan); }
.glow-purple { text-shadow: var(--glow-purple); }

/* Buttons */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}