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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background-color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 0, 0.1) 2px, rgba(0, 255, 0, 0.1) 4px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.back-link {
    color: #0f0;
    text-decoration: none;
    font-size: 0.65rem;
    text-shadow: 0 0 5px #0f0;
}

.back-link:hover {
    text-decoration: underline;
}

.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-switch button {
    background: #000;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 0.55rem;
    cursor: pointer;
}

.lang-switch button.active {
    background: #0f0;
    color: #000;
}

.game-container {
    background-color: #000;
    border: 4px solid #0f0;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    max-width: 800px;
    width: 95%;
    margin: 20px;
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.1) 2px,
        rgba(0, 255, 0, 0.1) 4px
    );
    pointer-events: none;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0f0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #0f0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.score-container {
    font-size: 0.9rem;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    margin-bottom: 4px;
}

.pause-hint {
    font-size: 0.55rem;
    color: rgba(0, 255, 0, 0.65);
    margin-top: 8px;
}

.combo-mult {
    color: #fc0;
    margin-left: 6px;
}

.hidden {
    display: none !important;
}

.sprint-time {
    margin-left: 12px;
}

#gameCanvas {
    background: #000;
    border: 2px solid #0f0;
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    display: block;
    image-rendering: pixelated;
}

.controls {
    margin-top: 20px;
}

.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.horizontal-controls {
    display: flex;
    gap: 20px;
}

.control-btn {
    background: #000;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 15px 25px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s ease;
    text-shadow: 0 0 5px #0f0;
}

.control-btn:hover {
    background: #0f0;
    color: #000;
}

.control-btn:active {
    transform: scale(0.95);
}

.game-over, .start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    border: 4px solid #0f0;
    padding: 30px;
    text-align: center;
    display: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.game-over h2, .start-screen h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #0f0;
    text-transform: uppercase;
    text-shadow: 0 0 10px #0f0;
}

.mode-select {
    margin: 16px 0;
}

.mode-label {
    font-size: 0.65rem;
    margin-bottom: 10px;
    color: rgba(0, 255, 0, 0.8);
}

.mode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.mode-btn {
    background: #000;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 8px 12px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.55rem;
    cursor: pointer;
    transition: all 0.1s ease;
}

.mode-btn.active {
    background: #0f0;
    color: #000;
}

.mode-desc {
    font-size: 0.5rem;
    color: rgba(0, 255, 0, 0.7);
    margin-top: 12px;
    line-height: 1.6;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.pause-overlay p {
    font-size: 1rem;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

#startBtn, #restartBtn {
    background: #000;
    border: 2px solid #0f0;
    color: #0f0;
    padding: 15px 30px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
}

#startBtn:hover, #restartBtn:hover {
    background: #0f0;
    color: #000;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
    
    .game-container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .control-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
} 