.game-container {
    max-width: 600px;
    margin: 80px auto 20px;
    padding: 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0;
}

.game-icon-small {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.back-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #f1f3f5;
    border-radius: 15px;
    color: #495057;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
    background: #e9ecef;
    transform: translateX(-4px);
}

.game-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: #f8f9fb;
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 1px solid #edf2f7;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
}

.game-screen {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.timer-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 5rem;
    font-weight: 900;
    color: #1a202c;
    background: #f7fafc;
    padding: 40px;
    border-radius: 40px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
    transition: opacity 1.5s ease;
}

.timer-hidden {
    opacity: 0;
}

.instant {
    transition: none !important;
}

.seconds-unit {
    font-size: 2rem;
    color: #a0aec0;
    margin-left: 5px;
}

.main-action-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(66, 153, 225, 0.4);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-action-btn:active {
    transform: scale(0.92);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
}

.main-action-btn.stop {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 15px 35px rgba(245, 101, 101, 0.4);
}

.result-display {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#diffText {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 5px;
}

#accuracyMsg {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
}

/* Accuracy Colors */
.perfect {
    color: #38a169 !important;
}

.great {
    color: #48bb78 !important;
}

.good {
    color: #ecc94b !important;
}

.bad {
    color: #f56565 !important;
}

/* Overlays */
.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}

.start-content {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.setup-group {
    margin: 30px 0;
    text-align: left;
}

.setup-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: #2d3748;
}

.setup-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.setup-group input:focus {
    border-color: #4299e1;
}

.target-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.target-btn {
    padding: 15px;
    background: #f7fafc;
    border: 2px solid #edf2f7;
    border-radius: 15px;
    font-weight: 800;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.target-btn.selected {
    background: #ebf8ff;
    border-color: #4299e1;
    color: #2b6cb0;
}

.game-start-btn {
    width: 100%;
    padding: 20px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
}

.game-start-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(66, 153, 225, 0.3);
}

.hidden {
    display: none !important;
}

.bottom-ad {
    margin-top: auto;
    padding-top: 20px;
    min-height: 100px;
}

@media (max-width: 600px) {
    .game-container {
        margin: 60px 10px 10px;
        padding: 15px;
    }

    .timer-display {
        font-size: 4rem;
        padding: 30px;
        min-width: 220px;
    }

    .main-action-btn {
        width: 160px;
        height: 160px;
        font-size: 1.5rem;
    }
}