﻿:root {
    --dark-outline: #23272a;
    --btn-hover: #f1f3f5;
}

.game-card {
    background: #ffffff;
    border: 4px solid var(--dark-outline);
    border-radius: 24px;
    box-shadow: 0 10px 0px var(--dark-outline);
    width: 100%;
    max-width: 650px;
    padding: 24px;
    text-align: center;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 900;
    color: var(--dark-outline);
}

.display-panel {
    background: #fdfaf7;
    border: 3px dashed #e9ecef;
    border-radius: 20px;
    padding: 25px 15px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 120px;
}

.token {
    font-size: 3.2rem;
    line-height: 1;
    user-select: none;
    display: inline-block;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.fraction-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.fraction-btn {
    background: white;
    border: 2px solid var(--dark-outline);
    border-radius: 16px;
    min-width: 60px;
    padding: 5px;
    cursor: pointer;
    box-shadow: 0 2px 0 var(--dark-outline);
    transition: transform 0.1s, box-shadow 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .fraction-btn:hover {
        background: var(--btn-hover);
    }

    .fraction-btn:active {
        transform: translateY(4px);
        box-shadow: 0 0px 0 var(--dark-outline);
    }

.frac-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

.frac-num {
    padding-bottom: 3px;
}

.frac-den {
    border-top: 3px solid var(--dark-outline);
    padding-top: 3px;
    width: 110%;
    text-align: center;
}

/* Updated Response States */
.correct-ans {
    background: #d3f9d8 !important;
    border-color: #2b8a3e !important;
}

.wrong-ans {
    background: #ffe3e3 !important;
    border-color: #c92a2a !important;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}
