/* RAD Techno Academy — course worlds
   Three immersive identities on one system: Astro (midnight purple + warm gold),
   Galaxy (space black + cyan), Stock Market (terminal charcoal + green/red).
   Each world is dark by design; tokens are re-set on <body class="world-*">. */

body.world-astro {
  --bg: #120b26; --surface: #1b1236; --surface-2: #22183f; --ink: #f4eefc; --ink-2: #c3b8dc; --line: #34295c;
  --accent: #e7b95a; --accent-ink: #f0c977; --on-accent: #1d1406; --rose: #b892ff;
  --band-bg: #0d0820; --band-fg: #f6f0ff; --band-fg-2: #c3b8dc; --band-line: rgba(246, 240, 255, .14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45);
  color-scheme: dark;
}
body.world-galaxy {
  --bg: #05060d; --surface: #0c1020; --surface-2: #111731; --ink: #e9edf7; --ink-2: #a8b0c8; --line: #212a4a;
  --accent: #67d8ef; --accent-ink: #84e3f6; --on-accent: #031319; --rose: #c79bff;
  --band-bg: #04050c; --band-fg: #eef2fb; --band-fg-2: #a8b0c8; --band-line: rgba(238, 242, 251, .13);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark;
}
body.world-stock {
  --bg: #0b1117; --surface: #111a22; --surface-2: #16212b; --ink: #e8eef3; --ink-2: #a2b2c1; --line: #233240;
  --accent: #2fd27a; --accent-ink: #4fe08f; --on-accent: #04170c; --rose: #ff6b6b;
  --band-bg: #070c11; --band-fg: #eef3f7; --band-fg-2: #a2b2c1; --band-line: rgba(238, 243, 247, .12);
  --bull: #2fd27a; --bear: #ff5d5d; --cyan: #5ad1e6; --grid: rgba(162, 178, 193, .12);
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.5);
  color-scheme: dark;
}
body.world-astro .site-header, body.world-galaxy .site-header, body.world-stock .site-header {
  background: color-mix(in srgb, var(--band-bg) 88%, transparent); border-bottom-color: var(--band-line);
}
body.world-stock .btn-primary, body.world-galaxy .btn-primary { color: var(--on-accent); }

/* Segmented controls + small toggles (shared) */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ctrl { font: inherit; font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.ctrl:hover { border-color: var(--accent); }
.ctrl[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.check input { accent-color: var(--accent); }
.range { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.range input { accent-color: var(--accent); width: 140px; max-width: 40vw; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status-pill.warn::before { background: #f0b860; }
.status-pill.off::before { background: var(--ink-2); }

/* ================= GALAXY ================= */
.g-hero { padding-block: 36px 20px; }
.g-hero h1 { font-size: var(--step-3); }
.g-wrap { position: relative; }
.g-stage {
  position: relative; height: clamp(440px, 74vh, 780px); background: #04050c; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); touch-action: none;
}
.g-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.g-stage canvas:active { cursor: grabbing; }
.g-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.g-label {
  position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: #dfe8ff;
  background: rgba(8, 12, 30, .55); padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.g-label:hover { color: #7ee6ff; }
.g-zoom { position: absolute; left: 14px; top: 14px; display: grid; gap: 6px; }
.g-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12,16,32,.8); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.g-panel {
  background: rgba(12, 16, 32, .9); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--ink);
  backdrop-filter: blur(8px); display: grid; gap: 10px; align-content: start; overflow-wrap: anywhere;
}
.g-panel h2 { font-size: 1.7rem; }
.g-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.g-simple { color: var(--ink); }
.g-live { font-size: .9rem; color: var(--accent-ink); border-left: 2px solid var(--accent); padding-left: 10px; }
.g-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.g-table th, .g-table td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-table th { color: var(--ink-2); font-weight: 500; width: 46%; padding-right: 8px; }
.g-table td { font-variant-numeric: tabular-nums; }
.g-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; color: var(--ink-2); }
.g-jy { font-size: .9rem; color: var(--ink-2); }
.g-src { font-size: .8rem; color: var(--ink-2); }
@media (min-width: 1000px) {
  .g-panel { position: absolute; right: 16px; top: 16px; width: 330px; max-height: calc(100% - 32px); overflow: auto; }
}
@media (max-width: 999px) { .g-panel { margin-top: 14px; } }
.g-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.g-bar .spacer { flex: 1 1 auto; }
.g-edu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.g-edu input[type=date] { font: inherit; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.g-date-out { font-family: var(--f-mono); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.g-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.g-list button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .88rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.g-list button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); }
.g-list .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.g-note { font-size: .88rem; color: var(--ink-2); margin-top: 10px; max-width: 70em; }
.planet-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .planet-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .planet-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.planet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; min-width: 0; }
.planet-card .orb { width: 28px; height: 28px; border-radius: 50%; }
.planet-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.planet-card p { font-size: .94rem; color: var(--ink-2); }
.planet-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 6px 0 0; font-size: .88rem; }
.planet-card dt { color: var(--ink-2); }
.planet-card dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ================= STOCK ================= */
.term { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.term-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.term-title { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); }
.term-title b { color: var(--ink); font-weight: 500; }
.hero-chart { width: 100%; height: 260px; display: block; }
.chart-box { position: relative; height: clamp(320px, 52vh, 520px); touch-action: none; }
.chart-box canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.ohlc { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.ohlc b { color: var(--ink); font-weight: 500; }
.ohlc .up { color: var(--bull); } .ohlc .dn { color: var(--bear); }
.data-note { font-size: .82rem; color: var(--ink-2); padding: 8px 14px 12px; }
.sim { display: grid; gap: 16px; }
@media (min-width: 1000px) {
  .sim { grid-template-columns: 210px minmax(0, 1fr); align-items: start; }
  .sim-side { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sim-side > .outcome-note, .sim-side > .data-note { grid-column: 1 / -1; }
}
.sim-list { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1000px) { .sim-list { flex-direction: column; } }
.sim-list button { font: inherit; font-size: .92rem; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.sim-list button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.sim-list .b { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.b.bullish { color: var(--bull); } .b.bearish { color: var(--bear); } .b.neutral { color: var(--cyan); }
.sim-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.sim-stage svg { display: block; width: 100%; height: auto; }
.sim-side { display: grid; gap: 12px; min-width: 0; }
.sim-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.sim-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; }
.sim-card p { color: var(--ink-2); font-size: .94rem; }
.sim-card .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mtable { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.mtable th, .mtable td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.mtable th:first-child, .mtable td:first-child { text-align: left; color: var(--ink-2); font-weight: 500; }
.mtable code { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); }
.outcome-note { font-size: .9rem; border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--ink); }
.outcome-note.fail { border-left-color: var(--bear); }
.path { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: p; }
@media (min-width: 800px) { .path { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.path li { counter-increment: p; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: relative; min-width: 0; }
.path li::before { content: "STAGE " counter(p); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--accent-ink); }
.path h3 { margin-top: 6px; }
.path p { color: var(--ink-2); font-size: .94rem; margin-top: 6px; }

/* ================= ASTRO ================= */
.sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; }
.zodiac { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .zodiac { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.wheel { width: 100%; max-width: 520px; margin: 0 auto; display: block; }
.wheel .seg-path { cursor: pointer; transition: fill .2s ease; }
.wheel .seg-path:hover, .wheel .seg-path:focus { fill: rgba(231, 185, 90, .18); outline: none; }
.wheel .seg-path.on { fill: rgba(231, 185, 90, .3); }
.wheel text { pointer-events: none; }
.rashi-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; }
.rashi-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 2rem; }
.rashi-card .deva { font-size: 1.1rem; color: var(--accent-ink); }
.rashi-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.rashi-card dt { color: var(--ink-2); font-size: .9rem; }
.rashi-card dd { margin: 0; }
.outcomes { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.outcomes li { padding: 14px 16px 14px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; position: relative; }
.outcomes li::before { content: "✦"; position: absolute; left: 16px; top: 13px; color: var(--accent); }
.lesson-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .lesson-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lesson-card { display: grid; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.lesson-card:hover { border-color: var(--accent); color: var(--ink); }
.lesson-card .k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.lesson-card p { color: var(--ink-2); font-size: .93rem; }

/* ================= HOME ================= */
.cosmos-hero { min-height: clamp(560px, 86vh, 900px); display: grid; align-items: center; padding-block: 64px; }
.cosmos-hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.6rem); max-width: 14em; }
.cosmos-hero h1 span { display: block; }
.cosmos-hero h1 .g1 { color: #d9c2ff; } .cosmos-hero h1 .g2 { color: #8fe6f5; } .cosmos-hero h1 .g3 { color: #6fe3a0; }
.cosmos-hero .lead { max-width: 34em; }
.reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: .12s; } .reveal.d2 { animation-delay: .24s; } .reveal.d3 { animation-delay: .36s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.worlds { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.world-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; padding: 24px; min-height: 420px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; border: 1px solid rgba(255,255,255,.08);
}
.world-card .art { height: 190px; margin: -6px -6px 6px; display: block; }
.world-card .art svg, .world-card .art canvas { width: 100%; height: 100%; display: block; }
.world-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; }
.world-card p { font-size: .98rem; }
.world-card .go { margin-top: auto; font-weight: 700; }
.world-card .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.wc-astro { background: radial-gradient(120% 90% at 20% 0%, #2a1a57 0%, #120b26 60%); color: #f4eefc; }
.wc-astro .k, .wc-astro .go { color: #f0c977; } .wc-astro p { color: #c3b8dc; }
.wc-galaxy { background: radial-gradient(120% 90% at 80% 0%, #10204a 0%, #04050c 62%); color: #eef2fb; }
.wc-galaxy .k, .wc-galaxy .go { color: #84e3f6; } .wc-galaxy p { color: #a8b0c8; }
.wc-stock { background: linear-gradient(180deg, #0f1820 0%, #070c11 100%); color: #eef3f7; }
.wc-stock .k, .wc-stock .go { color: #4fe08f; } .wc-stock p { color: #a2b2c1; }
.world-card:hover { transform: translateY(-2px); transition: transform .2s ease; }
.world-card:hover .go { text-decoration: underline; }
/* constellation */
.cst line { stroke: rgba(240, 201, 119, .7); stroke-width: 1; stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 3.2s ease forwards infinite alternate; }
.cst circle { fill: #fff6dd; animation: twinkle 2.4s ease-in-out infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
/* orbits */
.orb-spin { transform-origin: 150px 95px; animation: spin linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* candles */
.cdl rect, .cdl line { transform-box: fill-box; transform-origin: center bottom; animation: grow .6s ease both; }
@keyframes grow { from { transform: scaleY(.05); opacity: .2; } to { transform: none; opacity: 1; } }
.price-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .cst line { stroke-dashoffset: 0; } .price-line { stroke-dashoffset: 0; }
  .reveal { animation: none; }
}
.fcourses { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .fcourses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fcourses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fcourse { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fcourse .tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.tag.astro { color: #8a5cd8; border-color: rgba(138,92,216,.4); }
.tag.galaxy { color: #1d8fb0; border-color: rgba(29,143,176,.4); }
.tag.stock { color: #1f9a57; border-color: rgba(31,154,87,.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.astro { color: #c7a8ff; } :root:not([data-theme="light"]) .tag.galaxy { color: #84e3f6; } :root:not([data-theme="light"]) .tag.stock { color: #4fe08f; } }
:root[data-theme="dark"] .tag.astro { color: #c7a8ff; } :root[data-theme="dark"] .tag.galaxy { color: #84e3f6; } :root[data-theme="dark"] .tag.stock { color: #4fe08f; }
.fcourse h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; }
.fcourse p { color: var(--ink-2); font-size: .96rem; }
.fcourse dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .9rem; }
.fcourse dt { color: var(--ink-2); }
.fcourse dd { margin: 0; }
.fcourse .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.journey { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: j; }
@media (min-width: 700px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .journey { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.journey li { counter-increment: j; padding: 16px; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 10px 10px; min-width: 0; }
.journey li::before { content: counter(j, decimal-leading-zero); font-family: var(--f-mono); font-size: .78rem; color: var(--accent-ink); }
.journey h3 { font-size: 1.05rem; margin-top: 6px; }
.journey p { font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.tst-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .tst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tst { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; }
.tst p { color: var(--ink); } .tst footer { font-size: .88rem; color: var(--ink-2); }

/* ================= PLAYER + DASHBOARD ================= */
.player { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .player { grid-template-columns: 300px minmax(0, 1fr); } }
.p-side { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
@media (min-width: 960px) { .p-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.p-side h2 { font-size: 1.3rem; }
.p-mod { display: grid; gap: 4px; }
.p-mod > b { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin-top: 6px; }
.p-mod a, .p-mod span.lock { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .94rem; }
.p-mod a:hover { background: var(--surface-2); }
.p-mod a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 16%, transparent); font-weight: 600; }
.p-mod span.lock { color: var(--ink-2); }
.tickbox { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; font-size: .7rem; }
.tickbox.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.p-main { display: grid; gap: 18px; min-width: 0; }
.p-lesson { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 32px); display: grid; gap: 14px; min-width: 0; }
.p-lesson h1 { font-size: var(--step-3); }
.p-content { display: grid; gap: 14px; max-width: 46em; }
.p-content p, .p-content li { color: var(--ink-2); }
.p-content strong { color: var(--ink); }
.p-content ul, .p-content ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.p-content table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.p-content th, .p-content td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.p-content .tbl { overflow-x: auto; }
.video-card { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.p-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.p-tools { display: grid; gap: 16px; }
@media (min-width: 800px) { .p-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.p-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; min-width: 0; align-content: start; }
.p-box h2 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 700; }
.p-box textarea { width: 100%; min-height: 140px; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checklist input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.local-note { font-size: .82rem; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.dash { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash .span2 { grid-column: span 2; } .dash .span3 { grid-column: 1 / -1; } }
.stat { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.dash ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash li { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dash li:last-child { border-bottom: 0; }
.empty { color: var(--ink-2); font-size: .94rem; }
.demo-banner { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 16px; font-size: .9rem; color: var(--ink-2); }
.demo-banner b { color: var(--ink); }
.account-card { max-width: 460px; }
.account-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.account-card fieldset:disabled { opacity: .6; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.social a { font-size: .88rem; border: 1px solid var(--band-line); padding: 5px 12px; border-radius: 999px; }
.hero-term { min-width: 0; }
.hero-term .data-note { padding-top: 6px; }
body.world-galaxy .page-head { padding-block: 22px 6px; }
body.world-galaxy .page-head .lead { font-size: 1.05rem; margin-top: 8px; }
@media (max-width: 999px) {
  .sim-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .sim-list button { flex: none; }
  .sim-stage { overflow-x: auto; }
  .sim-stage svg { min-width: 640px; }
}
/* links inside light cards that sit in a dark band keep the card's link colour */
.band .form-card a:not(.btn) { color: var(--accent-ink); }
.status-pill { border-radius: 12px; line-height: 1.35; }

/* ===== Home hero: solar system running in the background ===== */
.cosmos-hero { isolation: isolate; }
.solar-bg { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.solar-bg.on { opacity: 1; }
.solar-bg canvas { display: block; width: 100%; height: 100%; }
.solar-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--band-bg) 0%, color-mix(in srgb, var(--band-bg) 82%, transparent) 38%, transparent 70%); }
@media (max-width: 699px) {
  .solar-veil { background: color-mix(in srgb, var(--band-bg) 45%, transparent); }
  .cosmos-hero h1, .cosmos-hero .lead { text-shadow: 0 1px 12px var(--band-bg); }
}
@media (prefers-reduced-motion: reduce) { .solar-bg { transition: none; } }

/* ===== Four course worlds ===== */
@media (min-width: 700px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .worlds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wc-vastu { background: radial-gradient(120% 90% at 30% 0%, #3d2614 0%, #140c07 64%); color: #f6efe3; }
.wc-vastu .k, .wc-vastu .go { color: #f0c977; } .wc-vastu p { color: #cdbfae; }
.wc-ai { background: radial-gradient(120% 90% at 70% 0%, #0f3340 0%, #051116 64%); color: #e9f6f8; }
.wc-ai .k, .wc-ai .go { color: #7fe3f5; } .wc-ai p { color: #9fbcc3; }
.vastu-needle { animation: needle 6s ease-in-out infinite alternate; transform-origin: 0 0; }
@keyframes needle { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
.ai-nodes circle { fill: #5ad1e6; animation: pulse 1.8s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vastu-needle, .ai-nodes circle { animation: none; } }
