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

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: 'Arial Black', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.game-container {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 15px;
}

.timer-container,
.score-container,
.best-container {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.timer-label,
.score-label,
.best-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: bold;
}

.timer-value,
.score-value,
.best-value {
    font-size: 32px;
    font-weight: bold;
    margin-top: 5px;
}

.target-area {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.target-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
}

.target-color {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.target-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.choice-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 0;
}

.choice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.choice-btn.correct {
    animation: correct 0.4s ease;
}

@keyframes correct {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px currentColor; }
}

.choice-btn.wrong {
    animation: wrong 0.4s ease;
}

@keyframes wrong {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.combo-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 30px rgba(255, 215, 0, 0.6),
                 3px 3px 0 #ff6b6b;
    z-index: 50;
    animation: comboPopup 0.6s ease;
    pointer-events: none;
}

@keyframes comboPopup {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.start-overlay,
.gameover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    z-index: 100;
    padding: 30px;
    text-align: center;
}

.game-title {
    font-size: 56px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

.gameover-title {
    font-size: 42px;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
}

.instructions {
    font-size: 16px;
    color: #ccc;
    margin: 10px 0;
    font-family: Arial, sans-serif;
}

.final-score {
    font-size: 32px;
    color: #fff;
    margin: 20px 0;
}

.new-best {
    font-size: 24px;
    color: #ffd700;
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.start-btn,
.retry-btn {
    margin-top: 30px;
    padding: 18px 50px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
}

.start-btn:hover,
.retry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.start-btn:active,
.retry-btn:active {
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .game-container {
        padding: 20px;
    }

    .game-title {
        font-size: 42px;
    }

    .target-color {
        width: 100px;
        height: 100px;
    }

    .choices-grid {
        gap: 12px;
    }

    .combo-display {
        font-size: 36px;
    }
}
