/* 考試模式 (2026-11-21): same soft palette as the practice screens; calm timer, no flashing. */
.exam-entry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid #e8cf97; background: #fffaf0; margin-bottom: 14px; font: inherit; color: inherit; cursor: pointer; }
.exam-entry small { display: block; }
.exam-entry-ic { font-size: 1.8rem; }
.exam-intro h3 { margin: 0 0 6px; }
.exam-free { background: #f6efe0; border-radius: 10px; padding: 6px 10px; }
.exam-subjects .chip-btn.on { background: var(--sub); border-color: var(--sub); color: #fff; }
.exam-mins { margin-bottom: 12px; }
.exam-summary .btn { margin-top: 8px; }
.exam-history { display: flex; flex-direction: column; gap: 6px; }
.exam-timer { font-variant-numeric: tabular-nums; font-weight: 700; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.exam-timer.low { border-color: #d9534f; color: #b53b37; }
.exam-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px; }
.exam-bar .flagged { border-color: #e8912d; color: #b8650f; }
.exam-nav { padding: 8px 16px 12px; }
.exam-nav-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-nav-sec + .exam-nav-sec { margin-top: 8px; }
.exam-nav-sec > .small { margin-bottom: 4px; }
.exam-dot { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .85rem; display: inline-grid; place-items: center; }
.exam-dot.done { background: #e4f1ea; border-color: #6fbf98; }
.exam-dot.flag { box-shadow: inset 0 -4px 0 #e8912d; }
.exam-dot.cur { outline: 3px solid var(--sub, #6b5a8a); }
.exam-legend { width: 100%; display: flex; align-items: center; gap: 4px; margin: 4px 0 0; }
.exam-legend .exam-dot { width: 18px; height: 18px; border-radius: 5px; }
.opt.chosen { border-color: var(--sub, #6b5a8a); background: #f1ecfa; }
.opt.chosen .opt-key { background: var(--sub, #6b5a8a); color: #fff; }
.exam-move { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.exam-move .btn { flex: 1; }
.exam-handin { display: block; margin: 12px auto 0; }
.exam-report .content { padding-bottom: 32px; }
.er-score { text-align: center; }
.er-big { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.er-big small { font-size: 1.2rem; font-weight: 600; color: #7a6a55; }
.er-pct { font-size: 1.1rem; font-weight: 700; color: #8a6a3a; }
.er-kv { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: .85rem; }
.er-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; align-items: center; gap: 8px; font-size: .88rem; margin: 6px 0; }
.er-q { border: 1.5px solid var(--line); border-radius: 12px; margin: 8px 0; overflow: hidden; }
.er-q.no { border-color: #efc2c0; }
.er-q.ok { border-color: #bfe0cf; }
.er-q-head { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.er-n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: #efe9dd; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.er-q-body { padding: 0 12px 10px 44px; }
.exam-report .seg button { white-space: nowrap; }
/* 考卷藍圖 (2026-11-21): scope, sections and marks */
.exam-scope { margin-bottom: 12px; }
.exam-secs { list-style: none; margin: 0 0 6px; padding: 6px 10px; background: #fbf8f1; border-radius: 10px; font-size: .85rem; }
.exam-secs li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.exam-secs li span:last-child { white-space: nowrap; }
.exam-short { background: #fdf1e3; border-radius: 10px; padding: 6px 10px; color: #8a5a00; }
.exam-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 8px 0 0; padding: 8px 12px; background: #f6efe0; border-radius: 10px; }
.exam-mk { margin-left: auto; }
.er-sec-n { display: block; font-size: .75rem; }
.er-q-mk { flex-shrink: 0; white-space: nowrap; padding-top: 2px; }
.exam-limit-note { background: #fff4dc; border-radius: 10px; padding: 6px 10px; color: #7a5236; }
/* 術語解釋 in 考試 (Kevin 2026-11-21): the paper keeps its paper look — a thin, quiet underline and a plain white popover.
   Base styles are in css/game.css; these selectors are more specific so they win whatever the file order. */
.screen.session.exam .gl-term { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #b3a78f; }
.screen.session.exam .gl-term:hover, .screen.session.exam .gl-term.on { background: #f4f0e7; }
.screen.session.exam .gl-pop { background: #fff; color: #2b2f36; border: 1.5px solid var(--line, #ddd5c5); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); font-size: 15px; }
.screen.session.exam .gl-pop :is(.gl-note, .gl-sub) { color: #5b6270; }
.screen.session.exam .gl-pop .gl-head { font-size: 16px; }
.screen.session.exam .gl-actions .btn { min-height: 48px; }
