.game-font {
    font-family: 'Baloo 2', cursive;
}
/* KOTAK PILIHAN OPERATOR UTAMA */
.operator-box {
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.08);
}
.operator-box:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.1);
}
.operator-icon {
    font-size: 3.5rem;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* GRADASI WARNA */
.op-plus { background-image: linear-gradient(to bottom right, #6EE7B7, #3B82F6); }
.op-minus { background-image: linear-gradient(to bottom right, #FBBF24, #F97316); }
.op-multiply { background-image: linear-gradient(to bottom right, #F472B6, #A855F7); }
.op-divide { background-image: linear-gradient(to bottom right, #5EEAD4, #06B6D4); }

/* KOTAK ANGKA */
.number-box {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: transform 0.2s ease;
    cursor: pointer;
}
.number-box:hover { transform: scale(1.1); }
.number-text {
    font-size: 1.75rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.25);
}

/* INPUT PENGATURAN */
.input-group { text-align: left; }
.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
    display: block;
}
.custom-select, .time-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: border-color 0.2s;
}
.custom-select:focus, .time-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* TOMBOL KEMBALI */
.main-back-btn {
    margin-top: 2rem;
    background-color: #e2e8f0;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.main-back-btn:hover { background-color: #cbd5e1; }
.game-back-btn {
    background-color: #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-right: 1rem;
    transition: background-color 0.2s;
}
.game-back-btn:hover { background-color: #cbd5e1; }


/* LAYAR SOAL */
.game-board {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
}
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.timer-container {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}
#question-timer-bar {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 10px;
}
.problem-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}
.problem-string {
    font-size: 2.5rem;
    font-weight: bold;
    color: #334155;
}
.question-mark { color: #3b82f6; }
.game-answer-box {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    border-bottom: 3px solid #cbd5e1;
    min-width: 60px;
    text-align: center;
    padding-bottom: 0.25rem;
}

/* KEYPAD KECIL */
#numpad-container {
    gap: 0.5rem;
}
.numpad-btn {
    padding: 8px;
    font-size: 1.25rem;
    border-radius: 8px;
    border: none;
    background-color: #f1f5f9;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.1s ease-in;
}
.numpad-btn:active {
    transform: scale(0.95);
    background-color: #e2e8f0;
}

/* FEEDBACK POPUP */
.feedback-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem 3rem;
    border-radius: 24px;
    color: white;
    font-family: 'Baloo 2', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    z-index: 100;
    animation: popup-fade 2s forwards;
}
.feedback-popup .praise {
    background-color: rgba(22, 163, 74, 0.9);
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.5);
}
.feedback-popup .encouragement {
     background-color: rgba(220, 38, 38, 0.9);
     box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}
.feedback-popup small {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}
@keyframes popup-fade {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -60%) scale(1.05); }
    100% { opacity: 0; transform: translate(-50%, -70%) scale(1.1); }
}

/* LAYAR SUMMARY */
.summary-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.summary-header, .summary-row {
    display: flex;
    padding: 0.75rem;
    align-items: center;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
.summary-header {
    background-color: #f8fafc;
    position: sticky;
    top: 0;
}
.summary-row:last-child {
    border-bottom: none;
}
.summary-col {
    padding: 0 0.5rem;
}

.main-action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    font-weight: 700;
    transition: opacity 0.2s;
}
.main-action-btn:hover {
    opacity: 0.9;
}
