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

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

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

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

.fraction-option-symbol {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1e293b;
    min-width: 108px;
}

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

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

.fraction-symbol-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.8rem auto 0.2rem;
    width: 150px;
    height: 96px;
    font-size: 3.4rem;
    font-weight: 700;
    color: #1e293b;
    background: #f1f5f9;
    border: 3px solid #cbd5e1;
    border-radius: 16px;
}

.fraction-drawing .fraction-svg {
    width: 180px;
    height: 96px;
}

.fraction-svg {
    display: block;
    width: 120px;
    height: 64px;
}

.frsym {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    font-weight: 700;
    color: #1e293b;
}

.frsym-num,
.frsym-den {
    font-size: inherit;
    padding: 0 0.35rem;
}

.frsym-line {
    width: 100%;
    min-width: 1.2em;
    border-top: 3px solid #1e293b;
    margin: 0.15rem 0;
}

.fraction-write {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin: 1.2rem 0 0.6rem;
}

.fraction-write-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.fraction-write-input {
    width: 6ch;
    height: 3.4rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
}

.fraction-write-input:focus {
    border-color: #38bdf8;
    outline: none;
}

.fraction-write-label {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
}