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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 2.5rem;
    color: #9b59b6;
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

.game-header .subtitle {
    color: #ecf0f1;
    font-size: 1rem;
    margin-top: 5px;
    letter-spacing: 3px;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.info-box {
    text-align: center;
}

.info-label {
    display: block;
    color: #95a5a6;
    font-size: 0.8rem;
    font-weight: bold;
}

.info-value {
    display: block;
    color: #ecf0f1;
    font-size: 2rem;
    font-weight: bold;
}

.status {
    text-align: center;
    color: #ecf0f1;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.simon-board {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: #1a1a2e;
    padding: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.simon-btn {
    position: absolute;
    width: 130px;
    height: 130px;
    cursor: pointer;
    transition: all 0.1s ease;
    opacity: 0.7;
}

.simon-btn:hover:not(.disabled) {
    opacity: 0.9;
}

.simon-btn.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

.simon-btn.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

#btn-green {
    top: 10px;
    left: 10px;
    background: #2ecc71;
    border-radius: 100% 0 0 0;
    border: 3px solid #27ae60;
}

#btn-green.active {
    background: #58d68d;
}

#btn-red {
    top: 10px;
    right: 10px;
    background: #e74c3c;
    border-radius: 0 100% 0 0;
    border: 3px solid #c0392b;
}

#btn-red.active {
    background: #ec7063;
}

#btn-yellow {
    bottom: 10px;
    left: 10px;
    background: #f1c40f;
    border-radius: 0 0 0 100%;
    border: 3px solid #d4ac0d;
}

#btn-yellow.active {
    background: #f4d03f;
}

#btn-blue {
    bottom: 10px;
    right: 10px;
    background: #3498db;
    border-radius: 0 0 100% 0;
    border: 3px solid #2980b9;
}

#btn-blue.active {
    background: #5dade2;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid #2c3e50;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.center-circle span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ecf0f1;
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.control-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.5);
}

.control-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.instructions {
    text-align: center;
    color: #95a5a6;
}

.instructions p {
    font-size: 0.95rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.overlay-content h2 {
    color: #e74c3c;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.overlay-content p {
    color: #ecf0f1;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

#newRecord {
    color: #f1c40f;
    font-weight: bold;
    animation: pulse 0.5s ease infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.overlay-content button {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.overlay-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.5);
}

@media (max-width: 450px) {
    .game-container {
        padding: 15px;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .simon-board {
        width: 250px;
        height: 250px;
    }

    .simon-btn {
        width: 110px;
        height: 110px;
    }

    .center-circle {
        width: 80px;
        height: 80px;
    }

    .center-circle span {
        font-size: 2rem;
    }
}
