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

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

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.small-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    max-width: 500px;
}

.base-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.05s ease;
    border: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.base-btn:active {
    transform: translateY(2px);
}

.small-btn {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(to bottom right, #ff8a00, #da22ff);
}

.btn {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    font-size: 1.8rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.btn.correct {
    background: linear-gradient(to bottom right, #43cea2, #185a9d);
}
.btn.wrong {
    background: linear-gradient(to bottom right, #ff416c, #ff4b2b);
}
.btn.victory {
    background: linear-gradient(to bottom right, #f9d423, #ff4e50);
}
.btn.failure {
    background: linear-gradient(to bottom right, #8e0e00, #1f1c18);
}

.btn-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.small-btn-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.status {
    color: white;
    font-size: 1.2rem;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.playing:after {
    top: -15%;
    left: -15%;
}

.stop-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff4b5c;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.stop-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (max-width: 750px) {
    .buttons-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        max-width: 100%;
    }
    
    .btn {
        width: 45%;
        max-width: 180px;
        height: 140px;
        margin: 5px;
    }
    
    .btn-icon {
        font-size: 3rem;
    }

    .small-buttons-container {
        gap: 5px;
    }

    .small-btn {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }

    .small-btn-icon {
        font-size: 1.5rem;
    }
}