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

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

.percent-grid {
    display: grid;
    grid-template-columns: repeat(10, var(--percent-cell-size));
    gap: 4px;
    justify-content: center;
}

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

.percent-cell-filled {
    background: #fbbf24;
    border-color: #f59e0b;
}

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

.percent-box-word {
    font-size: 1.25rem;
    line-height: 1.4;
    max-width: min(90vw, 460px);
    font-weight: 600;
}

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

.percent-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;
}

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

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

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

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