.game-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}

.game-header {
    text-align: center;
    margin-bottom: 22px;
}

.game-header h1 {
    font-size: 29px;
    font-weight: 700;
}

.game-header p {
    color: #777;
}

.mode-navigation {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.mode-btn {
    background: #f2f2f2;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 7px;
    font-weight: 600;
    color: #333;
}

.mode-btn.active {
    background: linear-gradient(135deg,#333,#000);
    color: white;
    border-color: #000;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-box {
    background: #f6f6f6;
    border: 1px solid #e5e5e5;
    padding: 8px;
    text-align: center;
    border-radius: 9px;
}

.stat-box small {
    color: #777;
    display: block;
}

.stat-box strong {
    display: block;
    font-size: 20px;
    margin-top: 5px;
}

.game-panel {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 18px;
    border-radius: 11px;
    height: 100%;
}

.panel-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 17px;
}

.btn-black {
    background: linear-gradient(135deg,#333,#000);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 11px 20px;
    font-weight: 600;
}

.btn-black:hover {
    background: linear-gradient(135deg,#555,#111);
    color: #fff;
}

.btn-black:disabled {
    opacity: .45;
    color: white;
}

.btn-light-custom {
    background: #fff;
    border: 1px solid #ccc;
    color: #222;
    border-radius: 7px;
    padding: 10px 16px;
}

.sound-circle {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    border-radius: 50%;
    background: linear-gradient(145deg,#333,#000);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 48px;
}

.sound-circle.playing {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {transform:scale(1);}
    50% {transform:scale(1.07);}
    100% {transform:scale(1);}
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.reference-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 15px 8px;
    text-align: center;
}

.reference-card h4 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 4px;
}

.reference-card p {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.reference-card button {
    width: 100%;
    padding: 8px 5px;
    font-size: 13px;
}

.frequency-input {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
}

.form-control,.form-select {
    /*padding: 11px;*/
    border-radius: 7px;
}

.result-box {
    display: none;
    margin-top: 18px;
    padding: 15px;
    border-radius: 9px;
}

.correct-result {
    background: #e5f7eb;
    border: 1px solid #b7e4c7;
    color: #146c37;
}

.wrong-result {
    background: #fff0ef;
    border: 1px solid #f1c0c4;
    color: #a52834;
}

.hint-box {
    display: none;
    background: #fff8df;
    border: 1px solid #f2df9b;
    color: #725a0b;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
}

.progress {
    height: 9px;
    border-radius: 20px;
}

.info-text {
    font-size: 13px;
    color: #777;
}

.mode-section {
    display: none;
}

.mode-section.active {
    display: block;
}

.learn-description {
    background: #f1f1f1;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    color: #555;
}

.learning-now {
    border-color: #222;
    background: #f1f1f1;
}

@media(max-width:600px) {
    .game-container {
        margin: 10px;
        padding: 15px;
    }

    .game-header h1 {
        font-size: 23px;
    }

    .dashboard {
        grid-template-columns: repeat(2,1fr);
    }

    .reference-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .game-panel {
        padding: 16px;
    }
}