/* 3지선다 놀이 셋이 함께 쓰는 화면.

   기획서(docs/plan/02_공통설계_UX가이드.md)의 시니어 시각 규칙을 따른다 —
   보기 버튼은 크고, 정보를 색으로만 전달하지 않고, 대비를 높게 둔다. */

.choice-stage {
    padding: 8px 0;
}

.choice-stage:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: 6px;
    border-radius: 12px;
}

.choice-prompt {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    min-height: 3.2rem;
    margin-bottom: 24px;
    /* 문제가 길어도 한 줄에 너무 많은 글자가 들어가지 않게 한다. */
    max-width: 34ch;
    margin-inline: auto;
}

.choice-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 32rem;
    margin-inline: auto;
}

.choice-option {
    /* 터치 타겟. 기획서 기준은 최소 높이 72px 이다. */
    min-height: 72px;
    padding: 14px 20px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
    border: 2px solid var(--bs-border-color);
    border-radius: 16px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.choice-option:hover:not(:disabled) {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
}

/* 맞힌 보기. 색만으로 알리지 않고 테두리 굵기와 체크 표시를 함께 쓴다 —
   노년기에는 청색·녹색 변별력이 떨어진다. */
.choice-option--correct {
    border-color: var(--bs-success);
    border-width: 4px;
    background: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
}

.choice-option--correct::after {
    content: " ✓";
    font-weight: 800;
}

/* 다시 고를 보기. '틀림' 이 아니라 '이건 아니에요' 로 읽히게 흐리기만 한다. */
.choice-option--dim {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

/* 색깔 이름 맞추기의 지문. 글자 자체가 자극이므로 크고 굵게 둔다.
   색 위에서도 글자가 읽히도록 옅은 외곽선을 준다. */
.choice-prompt--ink {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
}

/* 색깔 이름 맞추기의 보기. 글자를 쓰면 그 글자가 방해자극이 되어 과제가
   무너지므로 색 사각형만 둔다. 색으로만 전달하지 않으려고 무늬를 함께 넣는다 —
   색을 구분하지 못하는 분도 모양으로 고를 수 있다. */
.choice-option--swatch {
    position: relative;
    min-height: 96px;
    background-color: var(--swatch);
    border-color: rgba(0, 0, 0, 0.35);
}

.choice-option--swatch::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 8px;
    background-image: var(--swatch-pattern);
    background-size: 14px 14px;
    opacity: 0.55;
}

.choice-option--swatch.choice-option--correct::after {
    /* 색 위에서도 보이게 흰 테두리를 두른 체크. */
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.choice-stat {
    background: var(--bs-tertiary-bg);
    border-radius: 10px;
    padding: 8px 4px;
}

.choice-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
}

.choice-stat-value {
    display: block;
    font-family: var(--quiz-font-display, inherit);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

.choice-status {
    min-height: 1.5rem;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .choice-prompt {
        font-size: 1.3rem;
    }

    .choice-option {
        font-size: 1.2rem;
        min-height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .choice-option {
        transition: none;
    }
}

/* 그림자 맞추기의 지문. 그림을 까맣게 칠해 윤곽만 남긴다.
 *
 * 어두운 테마에서 까맣게 칠하면 배경에 묻혀 아무것도 안 보인다 —
 * 거기서는 뒤집어 흰 그림자로 낸다. */
.choice-prompt--shadow {
    font-size: 5.5rem;
    line-height: 1.1;
    filter: brightness(0);
}

:root[data-bs-theme="dark"] .choice-prompt--shadow {
    filter: brightness(0) invert(1);
}
