/* =========================================================
   result.css — 일일워들 결과창(통계/분포/공유/문제별 집계)
   .modal / .modal__* 은 menu.css(전역) 재사용.
   ========================================================= */
.res-panel { max-width: 460px; }

.res-title { text-align: center; font-size: 20px; font-weight: 800; margin: 0 0 4px; }

.res-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 12px 0 4px;
}
.res-stat { text-align: center; }
.res-stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.res-stat span { font-size: 11px; color: var(--color-absent); }

.res-h { text-align: center; font-size: 15px; font-weight: 800; margin: 18px 0 8px; }
.res-h--left { text-align: left; margin: 0 0 4px; }

/* 정답 분포 */
.res-dist { display: flex; flex-direction: column; gap: 5px; padding: 0 2px; }
.res-dist__row { display: flex; align-items: center; gap: 8px; }
.res-dist__no { width: 12px; text-align: right; font-size: 13px; font-weight: 700; }
.res-dist__barwrap { flex: 1 1 auto; }
.res-dist__bar {
    display: inline-block;
    background: var(--color-absent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    padding: 2px 8px;
    border-radius: 3px;
    min-width: 26px;
    box-sizing: border-box;
    white-space: nowrap;
}
.res-dist__bar.is-current { background: var(--color-correct); }

/* 다음 워들까지 + 공유 */
.res-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--color-empty-border);
}
.res-count { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.res-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-correct);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.res-share:active { filter: brightness(0.95); }

/* 문제별 전체 통계 */
.res-gtitle { text-align: center; font-size: 16px; font-weight: 800; margin: 4px 0 14px; }
.res-global { display: flex; align-items: center; gap: 18px; min-height: 120px; }
.res-pie { position: relative; width: 118px; height: 118px; flex: 0 0 auto; border-radius: 50%; }
.res-pie__center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.res-pie__big { font-size: 18px; }
.res-pie__small { font-size: 10px; opacity: 0.95; }
.res-steps { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.res-steps__row { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.res-steps__no { width: 12px; text-align: right; color: var(--color-absent); font-weight: 700; }
.res-steps__bar { height: 13px; background: var(--color-correct); border-radius: 2px; min-width: 2px; }
.res-steps__cnt { color: var(--color-absent); min-width: 14px; }
.res-empty { flex: 1; text-align: center; color: var(--color-absent); font-size: 13px; padding: 30px 0; }
