.level-grid,
.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.level-button,
.answer-button {
    min-height: 76px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, white, #fffdf9);
    color: var(--text);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
    position: relative;
    overflow: hidden;
}

.level-button:hover,
.answer-button:hover {
    border-color: rgba(15, 118, 110, .24);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.level-button:active,
.answer-button:active {
    transform: scale(.98);
}

.level-button.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(15, 118, 110, .3);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .15), var(--shadow);
}

.level-button span {
    display: block;
    margin-top: 5px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 850;
}

.answer-button:disabled {
    cursor: default;
}

.answer-hotkey {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .045);
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.answer-button.correct-option {
    border-color: rgba(79, 155, 110, .45);
    background: var(--success-soft);
    box-shadow: 0 0 0 3px rgba(79, 155, 110, .12), var(--shadow);
    animation: correct-pop .34s cubic-bezier(.2, .8, .2, 1) both;
}

.answer-button.correct-option::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(79, 155, 110, .18);
    color: #276646;
}

.answer-button.selected-wrong-option {
    border-color: rgba(217, 72, 43, .38);
    background: var(--danger-soft);
    box-shadow: 0 0 0 3px rgba(217, 72, 43, .1), var(--shadow);
    animation: wrong-nudge .28s ease both;
}

.answer-button.selected-wrong-option::before {
    content: "×";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgba(217, 72, 43, .14);
    color: #9a2c18;
}

.answer-button.muted-option {
    color: var(--muted);
    background: rgba(255, 255, 255, .56);
    opacity: .72;
}

.word-facts {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.word-facts div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
}

dt {
    color: var(--muted);
    font-weight: 750;
}

dd {
    margin: 0;
    font-weight: 850;
}

.result.correct {
    border-color: rgba(79, 155, 110, .36);
}

.result.wrong {
    border-color: rgba(217, 72, 43, .34);
}

.inline-result {
    margin-top: 26px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 14px 32px rgba(37, 99, 235, .08);
    animation: result-in .28s cubic-bezier(.2, .8, .2, 1) both;
}

.inline-result h2 {
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Inter, sans-serif;
    font-size: 34px;
    line-height: 1.1;
}

.result-status.correct {
    color: #2f7d53;
}

.result-status.wrong {
    color: var(--danger);
}

.example-usage-wrap {
    width: 100%;
    margin: 4px 0 20px;
}

.example-toggle {
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 850;
}

.example-toggle:hover {
    background: transparent;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transform: none;
    box-shadow: none;
}

.example-toggle:focus-visible {
    outline: 3px solid rgba(15, 118, 110, .22);
    outline-offset: 4px;
}

.example-usage {
    max-height: 0;
    opacity: 0;
    transform: translateY(-3px);
    overflow: hidden;
    margin-top: 0;
    padding: 0 16px;
    border: 0;
    border-left: 3px solid rgba(15, 118, 110, .56);
    border-radius: var(--radius-sm);
    background: rgba(15, 118, 110, .045);
    box-shadow: none;
    transition: max-height .18s ease, opacity .18s ease, transform .18s ease, margin-top .18s ease, padding .18s ease;
}

.example-usage-wrap.is-open .example-usage {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
    padding: 14px 16px 15px;
}

.example-usage h3 {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.example-usage p {
    margin: 0;
}

.example-jp {
    color: var(--text);
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Inter, sans-serif;
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.example-reading {
    margin-top: 4px !important;
    color: var(--muted);
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Inter, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.example-ru {
    margin-top: 9px !important;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.level-badge {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-color: rgba(15, 118, 110, .16);
}
