/* Onboarding (2026-10-23): the Start here tab and the coach panel that floats over the real screens. Only the base
   theme variables, each with a fallback, so it reads right in the current look and in the Cinema look. Green is only
   ever "right" or "done", red only "wrong". See js/onboarding.js. */

.ob-page { max-width: 760px; }
.ob-title { font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
.ob-lede { max-width: 62ch; color: var(--muted, #a89e97); margin: 0 0 18px; }
.ob-summary { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line, #2e2823); border-radius: 10px; background: var(--panel, transparent); margin: 0 0 18px; }
.ob-summary b { font-size: 15px; }
.ob-summary span { font-size: 13px; color: var(--muted, #a89e97); }
.ob-summary.pass { border-color: var(--good, #5bc378); }
.ob-summary.pass b { color: var(--good, #5bc378); }
.ob-meter { height: 4px; border-radius: 2px; background: var(--line, #2e2823); margin-top: 8px; overflow: hidden; }
.ob-meter i { display: block; height: 100%; background: var(--good, #5bc378); }
.ob-pending { padding: 12px 16px; border: 1px solid var(--warn, #e0a63f); border-radius: 10px; margin: 0 0 18px; font-size: 13.5px; }
.ob-pending ul { margin: 6px 0 0; padding-left: 18px; }

.ob-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-station { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line, #2e2823); border-radius: 10px; background: var(--panel, transparent); }
.ob-station.done { border-color: var(--good, #5bc378); }
.ob-num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line, #2e2823); display: grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.ob-station.done .ob-num { background: var(--good, #5bc378); border-color: var(--good, #5bc378); color: var(--bg, #151210); font-weight: 700; }
.ob-stx { display: grid; gap: 1px; min-width: 0; }
.ob-stx b { font-size: 15px; }
.ob-stx span { font-size: 12.5px; color: var(--muted, #a89e97); }
.ob-stx em { font-style: normal; font-size: 12px; color: var(--muted, #a89e97); }
.ob-station.done .ob-stx em { color: var(--good, #5bc378); }

/* the coach panel */
.ob-coach { position: fixed; right: 16px; bottom: 16px; z-index: 950; width: min(440px, calc(100vw - 32px)); max-height: min(78vh, 680px); overflow-y: auto; box-sizing: border-box; background: var(--panel2, var(--panel, #241f1b)); color: var(--ink, #f2ede7); border: 1px solid var(--line, #2e2823); border-radius: 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45); }
.ob-coach header { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 8px; }
.ob-coach header b { flex: 1; min-width: 0; font-size: 15px; }
.ob-k { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #a89e97); white-space: nowrap; }
.ob-x { background: none; border: 0; color: var(--muted, #a89e97); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ob-x:hover, .ob-x:focus-visible { color: var(--ink, #f2ede7); outline: none; }
.ob-prog { height: 3px; background: var(--line, #2e2823); margin: 0 14px; border-radius: 2px; overflow: hidden; }
.ob-prog i { display: block; height: 100%; background: var(--ink, #f2ede7); }
.ob-body { padding: 12px 14px 4px; font-size: 14px; line-height: 1.5; }
.ob-body p { margin: 0 0 10px; }
.ob-q { font-weight: 600; }
.ob-note { color: var(--muted, #a89e97); font-size: 13px; }
.ob-choices { display: grid; gap: 8px; margin: 4px 0 10px; }
.ob-choice { text-align: left; font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line, #2e2823); border-radius: 8px; background: transparent; color: var(--ink, #f2ede7); cursor: pointer; }
.ob-choice:hover:not(:disabled), .ob-choice:focus-visible { border-color: var(--ink, #f2ede7); outline: none; }
.ob-choice.right { border-color: var(--good, #5bc378); color: var(--good, #5bc378); }
.ob-choice.wrong { border-color: var(--signal, var(--red, #ff4b3c)); color: var(--muted, #a89e97); text-decoration: line-through; }
.ob-choice:disabled { cursor: default; }
.ob-fb { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; margin: 0 0 8px; }
.ob-fb.yes { background: var(--bg-good, rgba(91, 195, 120, 0.14)); color: var(--good, #5bc378); }
.ob-fb.no { background: var(--bg-bad, rgba(255, 75, 60, 0.14)); color: var(--signal, var(--red, #ff4b3c)); }
.ob-foot { display: flex; align-items: center; gap: 8px; padding: 6px 14px 14px; }
.ob-count { margin-left: auto; font-size: 12px; color: var(--muted, #a89e97); font-variant-numeric: tabular-nums; }
.ob-done { font-size: 17px; font-weight: 700; color: var(--good, #5bc378); }
.ob-pass { padding: 8px 10px; border: 1px solid var(--good, #5bc378); border-radius: 8px; }

/* the practice card: every part can be clicked, nothing is saved */
.ob-replica { display: grid; gap: 8px; margin: 6px 0 10px; padding: 10px; border: 1px dashed var(--line, #2e2823); border-radius: 10px; }
.ob-rep-note { font-size: 12px !important; color: var(--muted, #a89e97); margin: 0 !important; }
.ob-rep-box { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid var(--line, #2e2823); border-radius: 8px; cursor: pointer; min-width: 0; }
.ob-rep-box:hover, .ob-rep-box:focus-visible { border-color: var(--ink, #f2ede7); outline: none; }
.ob-rep-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ob-rep-label { font-size: 11.5px; color: var(--muted, #a89e97); }
.ob-rep-input { font-size: 13px; overflow-wrap: anywhere; }
.ob-rep-pill { display: inline-block; justify-self: start; font-size: 12.5px; padding: 2px 10px; border: 1px solid var(--line, #2e2823); border-radius: 999px; }
.ob-rep-pick { font-size: 13px; font-weight: 600; }
.ob-rep-btn { justify-self: start; }

@media (max-width: 560px) {
  .ob-coach { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 64vh; }
  .ob-station { grid-template-columns: 30px minmax(0, 1fr); }
  .ob-station .btn { grid-column: 2; justify-self: start; }
  .ob-rep-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) { .ob-meter i, .ob-prog i { transition: width 0.25s ease; } }

/* version 2 (2026-10-23): the clip button, the clip window, the welcome card, the exam review */
.ob-clip, .ob-welcome { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line, #2e2823); border-radius: 10px; overflow: hidden; background: #0c0b0a; color: #fff; cursor: pointer; font: inherit; }
.ob-clip { aspect-ratio: 16 / 9; margin: 6px 0 10px; }
.ob-welcome { aspect-ratio: 16 / 6; margin: 0 0 18px; }
.ob-clip img, .ob-welcome img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.ob-clip:hover img, .ob-clip:focus-visible img, .ob-welcome:hover img, .ob-welcome:focus-visible img { opacity: 1; }
.ob-clip:focus-visible, .ob-welcome:focus-visible { outline: 2px solid var(--ink, #f2ede7); outline-offset: 2px; }
.ob-clip-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); border: 1.5px solid rgba(255, 255, 255, 0.85); }
.ob-clip-play::after { content: ""; position: absolute; left: 18px; top: 12px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.ob-clip-t { position: absolute; left: 10px; bottom: 8px; font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); }
.ob-welcome-t { position: absolute; left: 14px; bottom: 12px; display: grid; gap: 2px; text-align: left; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); }
.ob-welcome-t b { font-size: 16px; }
.ob-welcome-t span { font-size: 12.5px; opacity: 0.9; }
.ob-lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, 0.86); display: grid; place-items: center; padding: 56px 16px 16px; box-sizing: border-box; }
.ob-lb-in { position: relative; width: min(1000px, 100%); }
.ob-lb-v { display: block; width: 100%; max-height: 78vh; background: #000; border-radius: 10px; }
.ob-lb-x { position: absolute; right: 0; top: -44px; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 4px 10px; }
.ob-lb-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ob-lb-err { color: #fff; margin: 10px 0 0; font-size: 14px; }
.ob-review { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 10px; }
.ob-review li { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line, #2e2823); border-radius: 8px; font-size: 13.5px; }
.ob-rv-no { color: var(--signal, var(--red, #ff4b3c)); }
.ob-rv-yes { color: var(--good, #5bc378); }
.ob-rv-why { color: var(--muted, #a89e97); }
.ob-clip::after, .ob-welcome::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7)); pointer-events: none; }
.ob-clip-play, .ob-clip-t, .ob-welcome-t { z-index: 1; }
