:root {
    --bg-color: #050505;
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #ffff00;
    --text-color: #ffffff;
    --ui-bg: rgba(10, 10, 10, 0.85);
    --font-orbitron: 'Orbitron', sans-serif;
    --font-rajdhani: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-rajdhani);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px; /* Arcade vertical style */
    background: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border: 2px solid #1a1a1a;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated; /* Crisp edges */
}

/* UI Overlay */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    pointer-events: auto;
    z-index: 10;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Typography */
h1.game-title {
    font-family: var(--font-orbitron);
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.subtitle {
    font-family: var(--font-rajdhani);
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.accent {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

/* Buttons */
.cyber-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 40px;
    font-family: var(--font-orbitron);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 10px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.cyber-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.05);
}

.cyber-btn.secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.cyber-btn.secondary:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Stats */
.stats-display {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    font-family: var(--font-orbitron);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* HUD */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
    font-family: var(--font-orbitron);
}

.score-container {
    color: var(--text-color);
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.pause-hint {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Game Over */
.gameover-title {
    font-family: var(--font-orbitron);
    font-size: 2.5rem;
    color: #ff3333;
    text-shadow: 0 0 15px #ff0000;
    margin-bottom: 2rem;
    text-align: center;
}

.final-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.score-label {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.score-value {
    font-family: var(--font-orbitron);
    font-size: 3rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-color);
}

.controls-hint {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.2; }
}

/* Footer Styles */
.game-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #1a1a1a;
    padding: 15px 10px;
    z-index: 20;
    font-family: var(--font-rajdhani);
    color: #888;
    pointer-events: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.dev-name {
    font-size: 0.95rem;
    color: var(--text-color);
}

.dev-name strong {
    color: var(--primary-color);
}

.dev-title {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
}

.dev-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 5px 0;
}

.dev-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.dev-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.copyright {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 5px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    h1.game-title {
        font-size: 2rem;
    }
    
    .gameover-title {
        font-size: 2rem;
    }
    
    .cyber-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
