/* Dark kit adapter for /learn (claude-guide-demo.html).
   Loaded after the page's own <style>. Remaps the page's colour variables to the
   Sebren-style kit and softens the 2px ink borders that would turn white on black.
   The pixel-art pets, opening scene and quiz logic are untouched. */
:root {
  --page: #000;
  --paper: #0d0d0d;
  --kraft: #1a1a1a;
  --line: #292929;
  --ink: #fff;
  --ink-soft: #a3a3a3;
  --clay: #ffae00;
  --clay-deep: #ffae00;
  --gold: #ffae00;
  --moss: #7fb8a2;
  --font-body: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-pixel: var(--font-body);
  color-scheme: dark;
}
html body { background: #000; color: #fff; }
:focus-visible { outline-color: #ffae00 !important; }

/* Borders: the page draws most boxes with 2px var(--ink). Use the kit border colour instead. */
html body :is(header, .toc, .chapter, .chapter .body pre.prompt, .chapter .body .figure, .pg-bar, .qz-dots i, .qz-card, .qz-opt b, button, .status, #pet-img, .xpbar, .tier-card, #lang-sel, .auth-card, .auth-card input, .fb-q textarea, .fb-q input, .fb-scale button, .hero-stats div, .lesson-art, .road-strip a, .road-strip .rb) { border-color: #454545; }
html body :is(.toc, .chapter, .qz-card, .tier-card, .auth-card, .status, .lesson-art) { box-shadow: none; border-radius: 12px; }
html body .toc { overflow: hidden auto; }

/* Bars that were ink-on-kraft become raised surfaces. */
html body :is(.badge, .toc h2, .qz-type) { background: #1a1a1a; color: #fff; }
html body .toast { background: #fff; color: #000; }

/* Orange fills need dark text for contrast. */
html body :is(.toc a.active, .toc a.active .lv, .qz-opt.on b, button.primary, .fb-scale button.on) { color: #000; }
html body button.primary { border-color: #ffae00; border-radius: 999px; }
html body .start-btn { background: #ffae00; color: #000; border-color: #ffae00; border-radius: 999px; box-shadow: none; }

/* Status colours tuned for a black background. */
html body :is(.qz-fb.ok, .qz-note.ok, .tier-card .tag) { color: #7fb8a2; }
html body :is(.qz-fb.no, .auth-err) { color: #ff8a6a; }
html body .qz-card.ok { border-color: #7fb8a2; }
html body #roam-emote { text-shadow: 0 1px 0 #000; }
html body .auth-card button { background: #0d0d0d; color: #fff; }

/* Company bar and footer (inline <style> in <body>, so these selectors need more weight). */
html body .co-bar { background: #000; border-bottom-color: #292929; color: #fff; font-family: var(--font-body); }
html body .co-bar .b small { color: #a3a3a3; }
html body .co-bar .c { border-color: #454545; border-radius: 999px; }
html body .co-bar a:focus-visible, html body .co-foot a:focus-visible { outline-color: #ffae00; }
html body .co-foot { color: #a3a3a3; font-family: var(--font-body); }
html body .co-foot a { color: #fff; }

/* Opening scene: black with the kit's orange glow instead of the navy gradient. */
html body #home { background: radial-gradient(60% 40% at 50% 100%, rgba(255,174,0,.14), rgba(255,174,0,0) 70%), #000; }
html body .hero-img { border-color: #454545; box-shadow: none; border-radius: 16px; background: #0d0d0d; }
html body .hero-fallback { border-color: #454545; background: #0d0d0d; color: #ffae00; border-radius: 16px; }
html body .hero-cred { color: #ffae00; }
html body :is(#home .tag, .hero-hint, .road-title) { color: #a3a3a3; }
html body .hero-credit { color: #6b6b6b; }
html body #pet-img { background: #0d0d0d; }
html body #evo-overlay { background: rgba(0,0,0,.85); }
html body .evo-lv { color: #ffae00; }
html body .co-bar .b svg { color: #ffae00; }
html body :is(.hero-stats div, .road-strip a) { box-shadow: none; border-radius: 12px; }
html body .hero-img { height: auto; }

/* Practice-pass locks (2026-11-21). */
html body :is(.pay-lock, .pay-files) { border-color: #454545; border-radius: 12px; background: #0d0d0d; }
html body .pay-files li { border-bottom-color: #292929; }
html body .pay-lock b { color: #fff; }
