/* Hangul Quiz: game styles on top of the site stylesheet (/assets/site.css).
   Source: _src/hangul_quiz/quiz.css, copied to play/hangul-quiz/ by build.py. */
.hq { --coral-ink: #C8392B; --coral-soft: #FFF1EF; --ok: #1E7A45; --ok-bg: #E6F5EC; --ok-line: #3BAA6A;
  --bad: #B3261E; --bad-bg: #FDECEA; --bad-line: #E0574B; --soft: #F4F5FB; --star: #F2A900; --star-off: #CBD0E2; }
.hq .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; color: #fff; font-size: 14px; font-weight: 600; }
.hq .crumbs a { color: #fff; text-decoration: none; opacity: 0.9; }
.hq .crumbs a:hover { text-decoration: underline; opacity: 1; }
.hq .crumbs span { opacity: 0.6; }
.hq .page-title { padding-top: 6px; }
.hq-wrap { max-width: 760px; }
.hq-app { margin-top: 24px; scroll-margin-top: 76px; }
.hq [hidden] { display: none !important; }
.hq h2 { font-size: 19px; line-height: 1.3; margin-bottom: 12px; }
.hq h2:focus, .hq-ask:focus { outline: none; }
.hq :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.hq .btn { justify-content: center; border: 0; cursor: pointer; font-family: inherit; min-height: 48px; }
.hq .btn.ghost { background: var(--soft); color: var(--navy); }
.hq .btn.ghost:hover { background: #E6E9F4; }
.hq-static { display: grid; gap: 14px; margin-top: 14px; }
.hq-static ol, .hq-static ul { margin-left: 20px; display: grid; gap: 6px; color: var(--navy-soft); }
.hq-static li::marker { color: var(--coral); font-weight: 700; }
.hq-static p + p { margin-top: 10px; }
.hq-static p { color: var(--navy-soft); }

/* stars */
.hq-stars { display: inline-flex; gap: 2px; }
.hq-stars i { display: inline-flex; color: var(--star-off); }
.hq-stars i.on { color: var(--star); }
.hq-stars svg { width: 16px; height: 16px; fill: currentColor; }

/* home: the stages */
.hq-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hq-total { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--navy-soft); font-size: 14px; }
.hq-total svg { width: 16px; height: 16px; fill: var(--star); }
.hq-stages { list-style: none; display: grid; gap: 8px; }
.hq-stage { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; min-height: 60px;
  border-radius: 16px; background: var(--soft); border: 2px solid transparent; color: var(--navy); font: inherit; cursor: pointer; }
.hq-stage:hover:not(:disabled) { border-color: rgba(43, 49, 85, 0.2); }
.hq-stage.current { background: var(--coral-soft); border-color: var(--coral); }
.hq-stage.locked { opacity: 0.6; cursor: default; }
.hq-stage .num { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; box-shadow: 0 1px 4px rgba(43, 49, 85, 0.12); }
.hq-stage .num svg { width: 16px; height: 16px; fill: var(--muted); }
.hq-stage .txt { flex: 1; min-width: 0; }
.hq-stage b { display: block; font-size: 15px; }
.hq-stage small { display: block; font-size: 13px; color: var(--muted); }
.hq-start { width: 100%; margin-top: 16px; font-size: 16px; }
.hq-note { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }

/* quiz */
.hq-quiz, .hq-result { display: grid; gap: 12px; }
.hq-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-back { background: rgba(255, 255, 255, 0.9); color: var(--navy); border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 40px; }
.hq-back:hover { background: #fff; }
.hq-where { color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 6px rgba(43, 49, 85, 0.25); }
.hq-dots { display: flex; gap: 6px; }
.hq-dots i { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.6); }
.hq-dots i.now { background: #fff; box-shadow: inset 0 0 0 2px var(--coral); }
.hq-dots i.ok { background: var(--ok-line); }
.hq-dots i.bad { background: var(--bad-line); }
.hq-q { text-align: center; }
.hq-ask { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-ink); }
.hq-big { font-size: clamp(56px, 16vw, 84px); font-weight: 700; line-height: 1.2; margin: 6px 0 2px; font-family: 'Noto Sans KR', sans-serif; display: inline-flex; align-items: center; gap: 12px; }
.hq-big.long { font-size: clamp(30px, 9vw, 52px); flex-wrap: wrap; justify-content: center; }
.hq-big.latin { font-family: 'Poppins', sans-serif; font-size: clamp(42px, 12vw, 64px); }
.hq-say { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); color: var(--navy); display: inline-grid; place-items: center; cursor: pointer; }
.hq-say:hover { background: #E6E9F4; }
.hq-say svg { width: 22px; height: 22px; fill: currentColor; }
.hq-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hq-choice { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; border-radius: 16px; background: var(--card);
  border: 2px solid transparent; box-shadow: var(--shadow); font: inherit; font-size: 17px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; }
.hq-choice.long { font-size: 14.5px; line-height: 1.35; }
.hq-choice.ko { font-size: 26px; font-family: 'Noto Sans KR', sans-serif; }
.hq-choice:hover:not(:disabled) { border-color: var(--coral); }
.hq-choice:disabled { cursor: default; opacity: 0.75; }
.hq-choice.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok); opacity: 1; }
.hq-choice.bad { border-color: var(--bad-line); background: var(--bad-bg); color: var(--bad); opacity: 1; }
.hq-choice .key { width: 24px; height: 24px; border-radius: 7px; background: var(--soft); color: var(--muted); font-family: 'Poppins', sans-serif; font-size: 12.5px; display: grid; place-items: center; flex-shrink: 0; }
.hq-feedback { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border: 2px solid var(--ok-line); display: grid; gap: 6px; }
.hq-feedback.bad { border-color: var(--bad-line); }
.hq-feedback .verdict { font-weight: 700; color: var(--ok); }
.hq-feedback.bad .verdict { color: var(--bad); }
.hq-feedback .btn { justify-self: end; min-width: 140px; margin-top: 4px; }
.hq-keys { font-size: 12.5px; color: var(--muted); text-align: center; }
@media (hover: none) { .hq-keys { display: none; } }

/* result */
.hq-res { text-align: center; }
.hq-res h2 { font-size: clamp(22px, 4.6vw, 28px); margin-bottom: 6px; }
.hq-res .hq-stars svg { width: 34px; height: 34px; }
.hq-score { font-size: 44px; font-weight: 700; color: var(--coral); line-height: 1.1; margin: 6px 0 2px; }
.hq-res p { color: var(--navy-soft); }
.hq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.hq-actions .btn { flex: 1 1 150px; }
.hq-guide { margin-top: 12px; font-size: 14px; }
.hq-guide a { font-weight: 600; color: var(--navy); }
.hq-review { list-style: none; display: grid; gap: 8px; }
.hq-review li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--soft); }
.hq-review .ko-big { font-size: 28px; font-weight: 700; font-family: 'Noto Sans KR', sans-serif; min-width: 56px; text-align: center; }
.hq-review small { display: block; color: var(--muted); font-size: 13px; }
