.decimal-prompt {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin: 0.8rem 0 0.4rem;
}

.decimal-drawing {
    display: flex;
    justify-content: center;
    margin: 0.8rem 0 0.2rem;
}

.decimal-grid {
    display: grid;
    gap: 4px;
    justify-content: center;
}

.decimal-grid-tenths {
    grid-template-columns: repeat(10, var(--decimal-cell-size));
}

.decimal-grid-hundredths {
    grid-template-columns: repeat(10, var(--decimal-cell-size));
}

.decimal-cell {
    width: var(--decimal-cell-size);
    aspect-ratio: 1;
    border-radius: 6px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.decimal-cell-filled {
    background: #38bdf8;
    border-color: #0ea5e9;
}

.decimal-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0.8rem 0 0.2rem;
}

.decimal-symbol-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 86px;
    padding: 0 0.8rem;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    background: #f1f5f9;
    border: 3px solid #cbd5e1;
    border-radius: 16px;
}

.decimal-symbol-box .frsym {
    font-size: 2.4rem;
}

.decimal-options {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.8rem 0;
}

.decimal-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.decimal-option:hover {
    transform: scale(1.05);
    border-color: #94a3b8;
}

.decimal-option:disabled {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .decimal-grid {
        --decimal-cell-size: 20px;
    }
}

@media (min-width: 481px) {
    .decimal-grid {
        --decimal-cell-size: 26px;
    }
}