﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
}

canvas {
    display: block;
    background: #1a1a2e;
    border: 3px solid #16213e;
    border-radius: 20px;
}

.score-display {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
    z-index: 1;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    transition: color 0.5s ease;
}

.player-score {
    left: 25%;
    text-align: center;
    width: 200px;
}

.computer-score {
    right: 25%;
    text-align: center;
    width: 200px;
}

.game-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    z-index: 2;
    text-align: center;
}

.difficulty-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.difficulty-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.difficulty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.difficulty-btn.hard {
    background: rgba(255, 0, 68, 0.2);
    border-color: rgba(255, 0, 68, 0.5);
    animation: difficultyPulse 2s infinite;
}

@keyframes difficultyPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 0, 68, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 0, 68, 0.6);
    }
}

.difficulty-text {
    font-weight: bold;
}

.difficulty-icon {
    font-size: 18px;
}

.speed-indicator {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    z-index: 2;
    text-align: center;
}

.speed-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.speed-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #ffaa00, #ff0044);
    width: 10%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    z-index: 2;
}

.controls kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 3px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.08; }
}

.score-display.visible {
    animation: pulse 0.5s ease;
}