/* Layout: every page is an arcade cabinet (see "Cache Me If You Can.html"): header, then a play column
   (HUD + framed screen with overlays) beside a side column of windows. Stacks on phones. Single dark look by design. */
:root {
  --bg: #0B0D1A;
  --panel: #171A33;
  --well: #0F1126;
  --screen: #070814;
  --frame: #E9E3C8;
  --ink: #F4F1E4;
  --muted: #B7BAD6;
  --line: #3A3F6E;
  --gold: #FFC83D;
  --gold-dk: #6B4300;
  --green: #5ADB6E;
  --red: #FF6B6B;
  --blue: #59A8FF;
  --purple: #C39BFF;
  --orange: #FF9A4D;
  --display: 'Press Start 2P', 'Courier New', monospace;
  --body: 'VT323', 'Courier New', monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(#1C2042 1px, transparent 1px);
  background-size: 8px 8px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.25;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 32px;
}
button, input, select, textarea { font: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--gold); color: #1A1200; padding: 8px 12px; font-family: var(--display); font-size: 12px; }

/* Top bar and footer */
.topbar { max-width: 1000px; margin: 0 auto 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 14px; color: var(--gold); text-decoration: none; text-shadow: 2px 2px 0 var(--gold-dk); }
.topnav { display: flex; align-items: center; gap: 16px; }
.toplink { font-family: var(--display); font-size: 12px; color: var(--muted); text-decoration: none; padding: 10px 0; }
.toplink:hover, .toplink[aria-current="page"] { color: var(--gold); }
/* LEARN AI stands out in the nav: gold frame, filled when you are on it. */
.toplink.hot { color: var(--gold); border: 3px solid var(--gold); box-shadow: 3px 3px 0 #000; padding: 7px 10px; }
.toplink.hot:hover, .toplink.hot[aria-current="page"] { background: var(--gold); color: var(--bg); }
.foot { max-width: 1000px; margin: 28px auto 0; color: var(--muted); font-size: 18px; text-align: center; }
.foot p { margin: 0; }

/* Page */
.wrap { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; outline: none; }
header.top { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: 1px; line-height: 1.6; color: var(--muted); margin: 0; }
h1 { font-family: var(--display); font-size: clamp(18px, 4vw, 30px); line-height: 1.35; margin: 0; color: var(--gold); text-shadow: 4px 4px 0 var(--gold-dk); text-wrap: balance; }
.tagline { margin: 0; color: var(--muted); max-width: 62ch; }
.grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.game-col { flex: 1 1 360px; max-width: 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; margin: 0 auto; }
.game-col.narrow { max-width: 480px; }
.main-col { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Window */
.window { background: var(--panel); border: 4px solid var(--frame); box-shadow: inset 0 0 0 4px var(--bg), 6px 6px 0 #000; padding: 18px; }
.window h2 { font-family: var(--display); font-size: 12px; font-weight: 400; color: var(--gold); margin: 0 0 12px; letter-spacing: 1px; line-height: 1.6; }
.window > :last-child { margin-bottom: 0; }
/* Collapsible window: closed it shows the title and one line; the text tag says OPEN / CLOSE (not an icon alone). */
.fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary::after { content: 'OPEN +'; font-family: var(--display); font-size: 12px; line-height: 1.6; color: var(--blue); grid-column: 2; grid-row: 1; }
.fold[open] > summary::after { content: 'CLOSE -'; }
.fold-hint { grid-column: 1 / -1; color: var(--muted); font-size: 19px; margin-top: 6px; }
.fold[open] > summary { margin-bottom: 12px; }
.fold > summary:hover h2 { text-decoration: underline; }
/* Paid course (decision A15): gold UNLOCK panel on the course pages; the buy/account dialog reuses .modal. */
.window.unlock { border-color: var(--gold); }
.window.unlock .actions { margin: 12px 0; }
.toplink.acct { background: none; border: 0; cursor: pointer; }
.pay-email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.pay-email code { font-family: var(--body); font-size: 21px; background: var(--well); border: 3px solid var(--line); padding: 4px 10px; overflow-wrap: anywhere; }
.dlg-close { justify-content: flex-end; }
.inline-form { display: inline; }
.note.warn { color: var(--red); }

/* HUD and bars */
.hud { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; font-variant-numeric: tabular-nums; }
.hud .lbl { font-family: var(--display); font-size: 12px; color: var(--muted); }
.hud .val { font-family: var(--display); font-size: 12px; text-align: right; }
.bar { height: 18px; border: 3px solid var(--frame); background: var(--bg); padding: 2px; }
.bar > div { height: 100%; width: 0; background-image: repeating-linear-gradient(90deg, var(--green) 0 10px, #2C8C43 10px 12px); transition: width .15s linear; }
.bar.days > div { background-image: repeating-linear-gradient(90deg, var(--blue) 0 10px, #2B6CC0 10px 12px); }
.bar.xp > div { background-image: repeating-linear-gradient(90deg, var(--purple) 0 10px, #7A55B8 10px 12px); }
.bar.low > div, .bar.over > div { background-image: repeating-linear-gradient(90deg, var(--red) 0 10px, #9C2F2F 10px 12px); }

/* Screen (the framed play area) and overlays */
.screen { position: relative; border: 4px solid var(--frame); box-shadow: 6px 6px 0 #000; background: var(--screen); min-height: 460px; }
.screen.canvas { aspect-ratio: 2 / 3; min-height: 0; max-width: 100%; touch-action: none; }
.screen canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.stage { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.overlay { position: absolute; inset: 0; background: rgba(7, 8, 20, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; overflow-y: auto; }
.overlay h2 { font-family: var(--display); font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--gold); margin: 0; }
.overlay p { margin: 0; max-width: 36ch; }
.overlay .big { font-family: var(--display); font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }
.overlay .marks { font-family: var(--body); font-size: 28px; letter-spacing: 2px; color: var(--ink); }
.overlay .actions { justify-content: center; }
.toast { position: absolute; left: 8px; right: 8px; bottom: 56px; text-align: center; font-size: 20px; background: rgba(11, 13, 26, .92); border: 2px solid var(--muted); padding: 6px 8px; pointer-events: none; }

/* Buttons */
.btn { font-family: var(--display); font-size: 12px; line-height: 1.4; min-height: 44px; padding: 12px 18px; border: 0; cursor: pointer; background: var(--gold); color: #1A1200; box-shadow: inset -4px -4px 0 #B07800, 4px 4px 0 #000; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn.alt { background: #23274A; color: var(--ink); box-shadow: inset -4px -4px 0 #13152B, 4px 4px 0 #000; }
.btn.small { min-height: 40px; padding: 10px 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: inset -4px -4px 0 #B07800, 2px 2px 0 #000; }
.btn.alt:active:not(:disabled) { box-shadow: inset -4px -4px 0 #13152B, 2px 2px 0 #000; }
.btn:focus-visible, .pad:focus-visible, .choice:focus-visible, .chip:focus-visible, .seg button:focus-visible, .mv:focus-visible, .cab:focus-visible, .toplink:focus-visible, .brand:focus-visible, .fb-head:focus-visible, .wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pads { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.pad { font-family: var(--display); font-size: 12px; min-height: 56px; padding: 0 14px; border: 0; background: #23274A; color: var(--ink); box-shadow: inset -4px -4px 0 #13152B, 4px 4px 0 #000; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.pad[aria-pressed="true"] { background: #343A6E; }
.keys { color: var(--muted); font-size: 18px; margin: 0; text-align: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { background: var(--well); padding: 10px; min-width: 0; }
.stat .k { color: var(--muted); font-size: 18px; }
.stat .v { font-family: var(--display); font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Text bits */
.note { color: var(--muted); margin: 0; font-size: 19px; }
.note.small { font-size: 17px; }
.free { font-family: var(--display); font-size: 12px; line-height: 1.8; color: var(--green); margin: 0; }
.lesson-text { margin: 0; color: #CFF5D5; }
.share { width: 100%; min-height: 120px; font-family: var(--body); font-size: 19px; background: var(--well); color: var(--ink); border: 2px solid var(--muted); padding: 8px; resize: vertical; }
.tag { font-family: var(--display); font-size: 12px; line-height: 1.4; padding: 4px 6px; background: var(--line); color: var(--ink); flex: none; align-self: flex-start; max-width: 100%; white-space: normal; }
.tag.good { background: var(--green); color: #0B2010; }
.tag.bad { background: var(--red); color: #2A0808; }
.tag.miss { background: transparent; color: var(--green); border: 2px dashed var(--green); }
.tag.info { background: var(--blue); color: #08182C; }
.tag.gold { background: var(--gold); color: #1A1200; }
.tag.purple { background: var(--purple); color: #1E0F33; }

/* Legend */
.legend { display: grid; grid-template-columns: 32px 1fr; gap: 10px 12px; align-items: center; }
.legend canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.legend b { font-family: var(--display); font-size: 12px; font-weight: 400; display: block; margin-bottom: 2px; line-height: 1.4; }
.legend span { color: var(--muted); font-size: 19px; }
.keylist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.keylist div { display: flex; gap: 10px; align-items: flex-start; }
.keylist span:last-child { color: var(--muted); font-size: 19px; }

/* Lobby */
.lobby { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cab { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--panel); border: 4px solid var(--frame); box-shadow: inset 0 0 0 4px var(--bg), 6px 6px 0 #000; padding: 16px; }
.cab:hover { border-color: var(--gold); }
.cab .row { display: flex; align-items: center; gap: 12px; }
.cab canvas { width: 40px; height: 40px; image-rendering: pixelated; flex: none; }
.cab b { font-family: var(--display); font-size: 12px; font-weight: 400; line-height: 1.5; }
.cab p { margin: 0; color: var(--muted); }
.cab .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 19px; color: var(--muted); border-top: 2px dashed #2E3354; padding-top: 10px; margin-top: auto; }
.cab .meta strong { color: var(--gold); font-weight: 400; }
.pips { display: flex; gap: 6px; }
.pip { width: 14px; height: 14px; border: 2px solid var(--frame); background: var(--bg); }
.pip.on { background: var(--purple); }

/* Round content */
.task { font-size: 28px; line-height: 1.2; margin: 0; text-wrap: balance; }
.prompt-box { background: var(--well); border: 3px solid var(--line); padding: 12px 14px; font-size: 22px; white-space: pre-line; margin: 0; }
.prompt-box .q { color: var(--muted); font-size: 18px; display: block; margin-bottom: 4px; }
.log { background: #05060F; border: 3px solid var(--line); padding: 10px 12px; margin: 0; font-family: var(--body); font-size: 20px; color: var(--green); white-space: pre-wrap; overflow-wrap: anywhere; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choices.col { grid-template-columns: 1fr; }
.choice { text-align: left; min-height: 64px; padding: 12px 14px; border: 0; cursor: pointer; color: var(--ink); background: #23274A; box-shadow: inset -4px -4px 0 #13152B, 4px 4px 0 #000; display: flex; flex-direction: column; gap: 6px; }
.choice .n { font-family: var(--display); font-size: 12px; line-height: 1.5; }
.choice .d { color: var(--muted); font-size: 19px; }
.choice .txt { font-size: 21px; }
.choice:hover:not(:disabled) { background: #2E3462; }
.choice:disabled { cursor: default; }
.choice.best { background: #1F4A2A; box-shadow: inset -4px -4px 0 #133019, 4px 4px 0 #000; }
.choice.ok { background: #4A3D12; box-shadow: inset -4px -4px 0 #2E260B, 4px 4px 0 #000; }
.choice.bad { background: #4A1F24; box-shadow: inset -4px -4px 0 #2E1316, 4px 4px 0 #000; }
.chips { display: flex; flex-direction: column; gap: 10px; }
.chip { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; width: 100%; min-height: 52px; padding: 10px 14px; border: 3px solid var(--line); background: var(--well); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--gold); background: #2A2109; }
.chip:disabled { cursor: default; }
.chip .lbl { display: flex; flex-direction: column; gap: 4px; }
.chip .side-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.chip .tk { font-family: var(--display); font-size: 12px; color: var(--muted); }
.chip.good { border-color: var(--green); }
.chip.noise { border-color: var(--red); }
.chip.missed { border-style: dashed; border-color: var(--green); }
.why { display: block; color: var(--muted); font-size: 19px; }
.meter { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.meter .lbl { font-family: var(--display); font-size: 12px; color: var(--muted); }
.meter .val { grid-column: 1 / -1; color: var(--muted); font-size: 19px; font-variant-numeric: tabular-nums; }

/* Dial It In */
.seg-wrap { display: flex; flex-direction: column; gap: 8px; }
.seg-wrap > span { font-family: var(--display); font-size: 12px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.seg button { font: inherit; min-height: 56px; padding: 8px 10px; border: 3px solid var(--line); background: var(--well); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.seg button b { font-family: var(--display); font-size: 12px; font-weight: 400; }
.seg button span { color: var(--muted); font-size: 18px; }
.seg button[aria-pressed="true"] { border-color: var(--gold); background: #2A2109; }
.seg button.best { border-color: var(--green); }
.seg button.bad { border-color: var(--red); }
.seg button:disabled { cursor: default; }

/* Prefix Stacker */
.stack-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stack-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: var(--well); border: 3px solid var(--line); padding: 8px 10px; }
.stack-row .pos { font-family: var(--display); font-size: 12px; color: var(--muted); }
.stack-row .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stack-row .info b { font-weight: 400; font-size: 21px; }
.stack-row .info .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 18px; }
.stack-row.cached { border-color: var(--green); }
.stack-row.uncached { border-color: var(--red); }
.mvs { display: flex; gap: 6px; }
.mv { font-family: var(--display); font-size: 12px; width: 44px; height: 44px; border: 0; background: #23274A; color: var(--ink); box-shadow: inset -3px -3px 0 #13152B, 3px 3px 0 #000; cursor: pointer; }
.mv:disabled { opacity: .35; cursor: default; }

/* Feedback */
.feedback { background: var(--well); border-left: 6px solid var(--gold); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.feedback.good { border-left-color: var(--green); }
.feedback.bad { border-left-color: var(--red); }
.fb-head { font-family: var(--display); font-size: 12px; line-height: 1.6; outline: none; }

/* Levels */
.levels { display: flex; flex-direction: column; gap: 10px; }
.lvl { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: var(--well); padding: 10px; }
.lvl b { font-family: var(--display); font-size: 12px; font-weight: 400; display: block; line-height: 1.5; }
.lvl span { color: var(--muted); font-size: 18px; }

/* Habit book */
.habits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.habit { background: var(--panel); border: 4px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.habit.on { border-color: var(--green); }
.habit b { font-family: var(--display); font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--gold); }
.habit.off b { color: var(--muted); }
.habit p { margin: 0; }
.habit .where { color: var(--muted); font-size: 18px; }
.cert { border-color: var(--gold); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.cert .big { font-family: var(--display); font-size: 18px; line-height: 1.6; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-dk); }

/* Waitlist dialog */
.modal { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.modal::backdrop { background: rgba(7, 8, 20, .85); }
.wl-form { display: flex; flex-direction: column; gap: 8px; }
.wl-form label { font-family: var(--display); font-size: 12px; color: var(--muted); margin-top: 6px; }
.wl-form input, .wl-form select { font-family: var(--body); font-size: 21px; min-height: 44px; padding: 6px 10px; background: var(--well); color: var(--ink); border: 3px solid var(--line); }
.wl-form input:focus-visible, .wl-form select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .screen { min-height: 520px; }
  .task { font-size: 25px; }
  .stage { padding: 14px; }
  .stack-row { grid-template-columns: 20px 1fr auto; gap: 8px; padding: 8px; }
  .mvs { flex-direction: column; }
  .chip { flex-direction: column; align-items: stretch; }
  .chip .side-tags { flex-direction: row; justify-content: flex-start; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* About page (about.html): static HTML for readers, crawlers and no-JS visitors */
.guide { margin-top: 28px; }
.guide h2.title { font-family: var(--display); font-size: clamp(15px, 3vw, 20px); line-height: 1.45; margin: 0; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-dk); text-wrap: balance; }
.plain-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.plain-list.small { font-size: 19px; gap: 6px; }
.plain-list b { font-weight: 400; color: var(--gold); }
.faq h3 { font-family: var(--display); font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--ink); margin: 18px 0 6px; }
.faq h3:first-of-type { margin-top: 0; }
.faq p { margin: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 19px; }
.price-table caption { text-align: left; color: var(--muted); font-size: 17px; padding-bottom: 6px; }
.price-table th, .price-table td { border: 2px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.price-table thead th { font-family: var(--display); font-size: 12px; font-weight: 400; color: var(--gold); background: var(--well); }
.price-table tbody th { font-weight: 400; color: var(--ink); }

/* AI basics intro: one idea per screen, phone-first */
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.intro-pips { align-self: flex-start; }
.intro-text { margin: 0; font-size: 23px; line-height: 1.3; }
.intro-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 6px; border-top: 2px dashed #2E3354; padding-top: 16px; }
.intro-step { text-align: center; font-family: var(--display); font-size: 12px; color: var(--muted); }
.intro-skip { margin: 0; }
.linkish { background: none; border: 0; padding: 8px 0; color: var(--blue); text-decoration: underline; cursor: pointer; font: inherit; }
.linkish:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; }
.flow-box { background: var(--well); border: 3px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.flow-box.mid { border-color: var(--gold); }
.flow-box b { font-family: var(--display); font-size: 12px; font-weight: 400; color: var(--gold); line-height: 1.4; }
.flow-box span { color: var(--muted); font-size: 19px; }
.flow-arrow { align-self: center; color: var(--gold); font-family: var(--display); font-size: 12px; }
.two-col, .three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.mini { background: var(--well); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mini p { margin: 0; color: var(--muted); }
.tok-wrap { display: flex; flex-direction: column; gap: 10px; }
.tok-input { min-height: 84px; }
.tok-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tok { font-family: var(--body); font-size: 21px; padding: 2px 6px; color: #0B0D1A; white-space: pre; }
.tok.c0 { background: var(--gold); } .tok.c1 { background: var(--green); } .tok.c2 { background: var(--blue); } .tok.c3 { background: var(--purple); }
.tok-count { margin: 0; color: var(--muted); }
.cost-wrap { display: flex; flex-direction: column; gap: 10px; }
.cost-wrap .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; }
.cost-rows { display: flex; flex-direction: column; gap: 8px; }
.cost-row { display: grid; grid-template-columns: 110px 1fr 84px; gap: 10px; align-items: center; }
.cost-row .lbl { font-family: var(--display); font-size: 12px; color: var(--muted); }
.cost-row .val { font-family: var(--display); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.turn-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 170px; background: var(--well); padding: 10px 10px 0; }
.turn { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; gap: 6px; }
.turn-bar { background-image: repeating-linear-gradient(0deg, var(--orange) 0 10px, #A85A1F 10px 12px); border: 2px solid var(--frame); }
.turn span { font-family: var(--display); font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 6px; white-space: nowrap; }
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .intro-text { font-size: 21px; }
  .intro-nav { grid-template-columns: 1fr 1fr; }
  .intro-nav .intro-step { grid-column: 1 / -1; grid-row: 1; }
  .cost-row { grid-template-columns: 92px 1fr 72px; }
  .turn span { font-size: 12px; letter-spacing: -1px; }
  .topnav { gap: 10px; flex-wrap: wrap; }
}
.turn-axis { margin: 6px 0 0; font-family: var(--display); font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.turn-bars { min-width: 0; }
.turn { min-width: 0; }

/* Learn AI course */
.learn { max-width: 820px; }
.analogy { background: #241C06; border: 3px solid var(--gold); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.analogy p { margin: 0; color: #FFE9B0; font-size: 21px; }
.tipbox { background: #0D1C30; border: 3px solid var(--blue); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tipbox p { margin: 0; color: #CFE3FF; }
.example { display: flex; flex-direction: column; gap: 8px; }
.chat { display: flex; flex-direction: column; gap: 8px; background: var(--well); padding: 10px; }
.bubble { max-width: 88%; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; border: 3px solid var(--line); background: var(--panel); }
.bubble b { font-family: var(--display); font-size: 12px; font-weight: 400; color: var(--muted); }
.bubble span { font-size: 20px; }
.bubble.you { align-self: flex-end; border-color: var(--blue); }
.bubble.claude { align-self: flex-start; border-color: var(--gold); }
.learn-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; align-items: center; }
.learn-bar > span { color: var(--muted); font-size: 19px; }
.checklist { display: flex; flex-direction: column; gap: 8px; }
.checklist > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; background: var(--well); padding: 8px 10px; }
.checklist > div > span:last-child { font-size: 20px; }
.big-score { font-family: var(--display); font-size: 32px; color: var(--gold); text-shadow: 3px 3px 0 var(--gold-dk); }
.pip.q { border-color: var(--gold); }
.pip.q.on { background: var(--gold); }
@media (max-width: 560px) {
  .learn-bar { grid-template-columns: 1fr; gap: 4px; }
  .checklist > div { grid-template-columns: 1fr; }
  .bubble { max-width: 100%; }
}

/* Course: goals, sources, glossary, static pages, printable certificate */
.goals ul { margin: 0; }
.sources { margin-top: 8px; }
.sources summary, .answer summary { font-family: var(--display); font-size: 12px; line-height: 1.6; color: var(--muted); cursor: pointer; padding: 6px 0; }
.sources a, .static-page a:not(.btn) { color: var(--blue); }
.glossary { margin: 0; display: grid; gap: 4px; }
.glossary dt { font-family: var(--display); font-size: 12px; line-height: 1.6; color: var(--gold); margin-top: 8px; }
.glossary dd { margin: 0; color: var(--muted); font-size: 19px; }
.glossary.big dd { font-size: 21px; color: var(--ink); }
.static-page .window p { margin: 0 0 12px; }
.learn-static { display: flex; flex-direction: column; gap: 12px; }
.learn-static > p { margin: 0; }
.static-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.course-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-list h2 a { color: var(--gold); text-decoration: none; }
.course-list h2 a:hover, .course-list h2 a:focus-visible { text-decoration: underline; }
.course-list .plain-list { margin-top: 10px; }
.answer { margin: 8px 0 4px; }
.answer p { margin: 6px 0 0; }
.answer b { font-weight: 400; color: var(--green); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media print {
  body.print-cert * { visibility: hidden; }
  body.print-cert #certificate, body.print-cert #certificate * { visibility: visible; }
  body.print-cert #certificate { position: absolute; inset: 0; margin: auto; height: fit-content; box-shadow: none; }
  body.print-cert .no-print { display: none; }
  body { background: #fff; }
}
.deeper { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.deeper-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.deeper-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; background: var(--well); padding: 8px 10px; }
.deeper-list a { color: var(--blue); font-size: 20px; }
.deeper-list p { margin: 2px 0 0; color: var(--muted); font-size: 18px; }
@media (max-width: 560px) { .deeper-list li { grid-template-columns: 1fr; gap: 4px; } }
