/* AI Academy. Every colour is a BlueFive brand token (bluefive-brand/dist/tokens.css).
   Sizes, radii, shadows and motion are this product's own values: the guideline defines none for screens. */
@font-face { font-family: Urbanist; font-weight: 300; font-display: swap; src: url("/brand/fonts/Urbanist-Light.otf") format("opentype"); }
@font-face { font-family: Urbanist; font-weight: 400; font-display: swap; src: url("/brand/fonts/Urbanist-Regular.otf") format("opentype"); }
@font-face { font-family: Urbanist; font-weight: 500; font-display: swap; src: url("/brand/fonts/Urbanist-Medium.otf") format("opentype"); }
@font-face { font-family: Urbanist; font-weight: 600; font-display: swap; src: url("/brand/fonts/Urbanist-SemiBold.otf") format("opentype"); }
@font-face { font-family: Urbanist; font-weight: 700; font-display: swap; src: url("/brand/fonts/Urbanist-Bold.otf") format("opentype"); }
@font-face { font-family: Urbanist; font-weight: 900; font-display: swap; src: url("/brand/fonts/Urbanist-Black.otf") format("opentype"); }

:root {
  --bg: var(--b5-site-light);
  --surface: var(--b5-white);
  --ink: var(--b5-site-text);
  --muted: var(--b5-grey);
  --line: var(--b5-site-border);
  --accent: var(--b5-dark-blue);
  --soft: var(--b5-light-blue-20);
  --shadow: 0 1px 2px color-mix(in srgb, var(--b5-site-dark-deep) 6%, transparent),
    0 8px 24px color-mix(in srgb, var(--b5-site-dark-deep) 6%, transparent);
  --r: 14px;
  --r-s: 9px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--b5-font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--b5-light-blue); outline-offset: 2px; border-radius: 6px; }

/* ── Header (dark ground, reversed logo) ── */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 20px;
  background: var(--b5-site-dark-deep); color: var(--b5-white);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 30px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 16px; padding-left: 14px; border-left: 1px solid var(--b5-dark-blue-80); white-space: nowrap; }
.tabs { display: flex; gap: 6px; margin-left: 12px; }
.tab { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tab.is-active { background: var(--b5-light-blue); color: var(--b5-site-dark-deep); }
.tab.is-soon { color: var(--b5-dark-blue-40); }
.tab em, .toc-item em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-left: 4px; }
.top-progress { margin-left: auto; font-size: 13px; color: var(--b5-dark-blue-20); white-space: nowrap; }
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: none; border-radius: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: var(--b5-white); border-radius: 2px; }

/* ── Shell ── */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: start; }
.side {
  position: sticky; top: 60px; height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
}
.side-head { display: flex; justify-content: space-between; padding: 18px 20px 10px; font-weight: 700; }
.side-head span:last-child { font-weight: 400; font-size: 13px; color: var(--muted); }
#toc { flex: 1; overflow-y: auto; padding: 0 12px 12px; }
.toc-module h3 { display: flex; align-items: baseline; gap: 8px; padding: 14px 8px 6px; font-size: 14px; font-weight: 700; color: var(--accent); }
.toc-module .num { font-weight: 900; font-size: 12px; color: var(--muted); }
.toc-module .count { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--muted); }
.toc-item a, .toc-item.is-soon { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-s); font-size: 14px; line-height: 1.3; }
.toc-item a:hover { background: var(--bg); }
.toc-item.is-active a { background: var(--soft); font-weight: 600; color: var(--b5-site-dark-deep); }
.toc-item .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--b5-dark-blue-40); }
.toc-item.is-done .dot { background: var(--accent); border-color: var(--accent); }
.toc-item.is-soon { color: var(--muted); padding-left: 28px; justify-content: space-between; }
.toc-item.is-soon em { flex: none; color: var(--muted); }
.side-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.side-foot-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.side-foot-row span:last-child { font-weight: 400; color: var(--muted); }
.meter { height: 6px; border-radius: 6px; background: var(--b5-dark-blue-20); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.5s var(--ease); }
.scrim { position: fixed; inset: 60px 0 0; z-index: 19; background: color-mix(in srgb, var(--b5-site-dark-deep) 45%, transparent); }

/* ── Lesson ── */
#main { padding: 22px 24px 40px; outline: none; }
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; max-width: 1400px; margin: 0 auto; align-items: start; }
.center { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb span { margin: 0 4px; }
.lesson-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 2px 0 4px; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badges li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12.500px; font-weight: 600; white-space: nowrap; }
.blurb { color: var(--muted); max-width: 70ch; }

.stage-card, .stepper, .step-card, .goals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.metrics { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.metric { min-width: 104px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-s); }
.metric dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.metric dd { font-weight: 900; font-size: 15px; color: var(--b5-grey-40); }
.metric.has-value { border-color: var(--b5-light-blue-60); background: var(--soft); }
.metric.has-value dd { color: var(--accent); }
.ghost-btn { padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); font-weight: 600; font-size: 13px; }
.ghost-btn:hover { border-color: var(--accent); }

  position: relative; min-height: 430px; padding: 28px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border-radius: 0 0 var(--r) var(--r);
  background: radial-gradient(var(--b5-dark-blue-20) 1px, transparent 1.500px) 0 0 / 22px 22px, var(--bg);
  overflow: hidden;
}

.stepper { padding: 12px 16px 14px; }
.stepper-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px; }
#steps { display: flex; overflow-x: auto; padding-bottom: 2px; }
#steps li { flex: 1 0 74px; position: relative; text-align: center; }
#steps li + li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--b5-dark-blue-20); }
#steps li.is-seen + li.is-seen::before, #steps li.is-seen + li.is-current::before { background: var(--accent); }
#steps a { position: relative; display: grid; justify-items: center; gap: 5px; padding: 0 4px; font-size: 12px; line-height: 1.25; color: var(--muted); }
#steps b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--b5-dark-blue-20); background: var(--surface); font-size: 13px; color: var(--muted); transition: all 0.25s var(--ease); }
#steps .is-seen b { border-color: var(--accent); color: var(--accent); }
#steps .is-current b { background: var(--accent); border-color: var(--accent); color: var(--b5-white); transform: scale(1.1); }
#steps .is-current a { color: var(--ink); font-weight: 700; }

/* ── Right panel ── */
.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; position: sticky; top: 82px; }
.step-card { padding: 18px 20px 16px; }
.step-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--b5-white); letter-spacing: 0.05em; }
.step-card h2 { margin: 10px 0 10px; font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--b5-site-dark-deep); }
.step-body { display: grid; gap: 10px; }
.step-body ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.step-body li::marker { color: var(--b5-light-blue); }
.step-body strong { font-weight: 700; color: var(--b5-site-dark-deep); }
.key-idea, .changed { margin-top: 14px; }
.key-idea { padding: 12px 14px; border-radius: var(--r-s); background: var(--soft); border-left: 4px solid var(--b5-light-blue); }
.key-idea strong, .changed strong, .goals h2, .quiz legend { display: block; font-size: 11.500px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.key-idea p { margin-top: 3px; font-weight: 600; color: var(--b5-site-dark-deep); }
.changed ul { margin-top: 6px; display: grid; gap: 4px; }
.changed li { position: relative; padding-left: 18px; font-size: 14px; }
.changed li::before { content: ""; position: absolute; left: 2px; top: 0.550em; width: 8px; height: 8px; border-radius: 50%; background: var(--b5-light-blue); }
.step-nav { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 18px; }
.btn { padding: 11px 16px; border-radius: var(--r-s); border: 1px solid transparent; font-weight: 900; font-size: 14px; line-height: 1.2; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--b5-white); }
.btn-primary:hover { background: var(--b5-site-dark-light); }
.btn-secondary { background: var(--surface); border-color: var(--b5-dark-blue-40); color: var(--accent); }
.btn-secondary:hover { border-color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: default; }
.hint { margin-top: 10px; font-size: 12px; color: var(--muted); }
kbd { display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: 600 11px/1.6 var(--b5-font-sans); text-align: center; }

.goals { padding: 16px 20px; }
.goals ul { margin-top: 10px; display: grid; gap: 9px; }
.goals li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.goals i { width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 2px solid var(--b5-dark-blue-40); transition: all 0.3s var(--ease); }
.goals .is-met { color: var(--ink); }
.goals i { position: relative; }
.goals .is-met i { border-color: var(--accent); background: var(--accent); }
.goals .is-met i::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 9px; border: solid var(--b5-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.quiz { margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-s); display: grid; gap: 8px; min-width: 0; }
.quiz legend { padding: 0 6px; }
.quiz p { font-weight: 600; }
.quiz-opt { text-align: left; padding: 9px 12px; border: 1px solid var(--b5-dark-blue-40); border-radius: var(--r-s); background: var(--surface); font-size: 14px; line-height: 1.35; }
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.is-right { background: var(--accent); border-color: var(--accent); color: var(--b5-white); font-weight: 600; }
.quiz-opt.is-wrong { border-style: dashed; color: var(--muted); text-decoration: line-through; }
.quiz .quiz-why { font-weight: 400; font-size: 14px; padding: 10px 12px; border-radius: var(--r-s); background: var(--soft); }

/* ── Scene kit ── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } to { width: var(--w); } }
@keyframes travel { from { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes travel-y { from { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { from { box-shadow: 0 0 0 0 var(--b5-light-blue); } to { box-shadow: 0 0 0 14px transparent; } }
.in { animation: rise 0.5s var(--ease) both; animation-delay: var(--d, 0s); }




.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { padding: 5px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--b5-dark-blue-40); font-weight: 600; white-space: nowrap; }
.chip u { text-decoration: none; color: var(--b5-light-blue); margin-right: 1px; }
.chip.new { background: var(--soft); border-color: var(--b5-light-blue); }
.chip.ghost { border-style: dashed; color: var(--muted); }
.chip.id { background: var(--accent); border-color: var(--accent); color: var(--b5-white); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip-row.big { justify-content: center; }
.chip-row.big .chip { min-width: 74px; text-align: center; font-size: 17px; padding: 8px 12px; }
.chip-row.ids .chip { font-size: 14px; }

.bars { width: 100%; max-width: 620px; display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.bar-label { font-weight: 600; text-align: right; }
.bar-track { height: 18px; border-radius: 6px; background: var(--b5-dark-blue-20); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--b5-dark-blue-60); animation: grow 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
.bar-row:first-child .bar-track i, .bar-row.is-pick .bar-track i { background: var(--accent); }
.bar-row:not(.in) .bar-track i { animation: none; }
.bar-row.is-dim { color: var(--muted); }
.bar-row.is-dim .bar-track i { background: var(--b5-grey-60); }
.bar-val { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); }


.pill { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--b5-light-blue); font-size: 13px; font-weight: 600; }
.pill.off { border: 1px dashed var(--b5-grey-60); color: var(--muted); }

.lab-controls { width: 100%; max-width: 620px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.lab-controls label { display: flex; justify-content: space-between; font-weight: 700; }
.lab-controls output { font-weight: 900; color: var(--accent); }
.lab-controls input { width: 100%; margin: 8px 0 2px; accent-color: var(--b5-dark-blue); }
.lab-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.lab-draw { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; min-height: 44px; }
.draws { display: flex; flex-wrap: wrap; gap: 6px; }
.draws-empty { color: var(--muted); font-size: 14px; }



.prompt-block { padding: 8px 10px; border-radius: var(--r-s); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.prompt-block span { display: block; font-size: 10.500px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.prompt-block.is-new { background: var(--soft); border-color: var(--b5-light-blue); }
.prompt-block.is-new span { color: var(--accent); }
.prompt-block.follow { margin-top: 4px; border-style: dashed; }
.answer { flex: 1; display: grid; align-content: start; gap: 7px; font-size: 13px; line-height: 1.45; }
.answer b { color: var(--b5-site-dark-deep); }
.answer i { font-style: normal; font-weight: 600; color: var(--b5-site-primary-ink); white-space: nowrap; }
.answer mark { padding: 0 5px; border-radius: 4px; background: var(--b5-dark-blue-20); color: var(--b5-site-dark-deep); font-weight: 600; }
.answer table { width: 100%; border-collapse: collapse; font-size: 12.500px; font-variant-numeric: tabular-nums; }
.answer th, .answer td { padding: 3px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.answer td:first-child, .answer th:first-child { text-align: left; }
.answer th { font-weight: 700; color: var(--accent); }
.quality { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.quality b { margin-left: auto; font-weight: 900; font-size: 13px; color: var(--accent); }
.quality-dots { display: flex; gap: 4px; }
.quality-dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--b5-dark-blue-20); }
.quality-dots i.on { background: var(--accent); animation: pop 0.35s var(--ease) both; animation-delay: var(--d, 0s); }
.sheet.template { width: 100%; max-width: 620px; gap: 12px; }
.sheet.template pre { margin: 0; padding: 14px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); font: 500 13px/1.55 var(--b5-font-sans); white-space: pre-wrap; }
.sheet.template .btn { align-self: flex-start; }

.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bubble.you { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: var(--b5-white); border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-who { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.bubble i { font-style: normal; font-weight: 600; color: var(--b5-site-primary-ink); }
.cite { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--soft); font-size: 12.500px; font-weight: 600; color: var(--b5-site-dark-deep); }
.cite svg { width: 16px; height: 16px; }
.stamp { align-self: center; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border: 2px dashed var(--accent); border-radius: var(--r); background: var(--surface); font-size: 17px; color: var(--accent); transform: rotate(-2deg); }
.stamp.in { animation-name: pop; }
.stamp b { font-weight: 900; }

.check b { color: var(--b5-site-dark-deep); }
.check p { font-size: 13.500px; color: var(--muted); }
.tick { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--b5-white); animation: pop 0.4s var(--ease) both; animation-delay: var(--d, 0s); }
.tick svg { width: 18px; height: 18px; stroke-width: 2.500; }

.lane h3 { font-size: 15px; }
.lane ul { flex: 1; display: grid; align-content: start; gap: 5px; font-size: 13.500px; }
.lane li { padding-left: 12px; position: relative; }
.lane li::before { content: ""; position: absolute; left: 0; top: 0.600em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.lane-rule { padding: 7px 10px; border-radius: var(--r-s); background: var(--bg); font-weight: 900; font-size: 13px; text-align: center; color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .lesson { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; grid-template-columns: minmax(0, 1.400fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 900px) {
  .tabs, .top-progress { display: none; }
  .panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1499px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: flex; }
  .side { position: fixed; top: 60px; left: 0; bottom: 0; z-index: 20; width: min(300px, 86vw); height: auto; transform: translateX(-102%); transition: transform 0.25s var(--ease); visibility: hidden; }
  .menu-open .side { transform: none; visibility: visible; }
}
@media (max-width: 640px) {
  .top { padding: 0 12px; gap: 10px; }
  .brand img { height: 26px; }
  #main { padding: 16px 16px 32px; }
  h1 { font-size: 25px; }
  .metric { min-width: 0; flex: 1 1 88px; padding: 5px 9px; }
  .chip-row.big .chip { min-width: 0; font-size: 15px; padding: 6px 9px; }
  .bar-row { grid-template-columns: 88px 1fr 40px; gap: 8px; font-size: 13px; }
  .step-nav { grid-template-columns: 1fr; }
  .step-nav #prev { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Continuous stage (stage.js): one world per lesson, elements persist between steps ── */
:root { --spring: cubic-bezier(0.34, 1.45, 0.5, 1); --glide: cubic-bezier(0.22, 1, 0.36, 1); }
.stage {
  position: relative; overflow-x: auto; overflow-y: hidden; padding: 0;
  border-radius: 0 0 var(--r) var(--r);
  background:
    radial-gradient(50% 60% at 50% 72%, color-mix(in srgb, var(--b5-light-blue-20) 80%, transparent), transparent 75%),
    radial-gradient(40% 45% at 18% 20%, color-mix(in srgb, var(--c1) 60%, transparent), transparent 70%),
    radial-gradient(40% 45% at 85% 15%, color-mix(in srgb, var(--ill-amber-1) 55%, transparent), transparent 70%),
    var(--ill-floor);
}
.world-box { position: relative; margin: 0 auto; perspective: 1300px; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 62%; will-change: transform; }
.floor {
  position: absolute; inset: -140px -220px; transform: translateZ(-70px);
  background:
    repeating-linear-gradient(153.400deg, transparent 0 49px, var(--ill-grid) 49px 51px),
    repeating-linear-gradient(26.600deg, transparent 0 49px, var(--ill-grid) 49px 51px);
  -webkit-mask-image: radial-gradient(55% 60% at 50% 55%, black 35%, transparent 78%); mask-image: radial-gradient(55% 60% at 50% 55%, black 35%, transparent 78%);
}
.motes { position: absolute; inset: 0; transform: translateZ(110px); pointer-events: none; }
.mote { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--c2); opacity: 0; animation: mote var(--t, 6s) ease-in-out var(--o, 0s) infinite; }
.mote:nth-child(3n) { width: 4px; height: 4px; }
.mote:nth-child(4n) { border-radius: 2px; transform: rotate(45deg); }
.world { position: absolute; left: 0; top: 0; width: 1000px; height: 560px; transform-origin: 0 0; }
.links, .layer { position: absolute; inset: 0; overflow: visible; }
.layer { transform-style: preserve-3d; }
.links { transform: translateZ(6px); }
.links { pointer-events: none; }

@keyframes drop { 0% { opacity: 0; transform: translateY(-90px) scale(0.7); } 60% { opacity: 1; transform: translateY(6px) scale(1.04, 0.96); } 80% { transform: translateY(-4px) scale(0.99, 1.02); } 100% { opacity: 1; transform: none; } }
@keyframes mote { 0% { opacity: 0; translate: 0 18px; } 30% { opacity: 0.75; } 100% { opacity: 0; translate: 14px -70px; } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(-11px); } }
@keyframes contact { 0%, 100% { transform: scale(1); opacity: 0.38; } 50% { transform: scale(0.8); opacity: 0.2; } }
@keyframes ripple { from { transform: scale(0.75); opacity: 0.8; } to { transform: scale(1.45); opacity: 0; } }
@keyframes glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes shadow-bob { 0%, 100% { transform: scale(1); opacity: 0.2; } 50% { transform: scale(0.88); opacity: 0.13; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flash { from { outline: 6px solid var(--c1); } to { outline: 6px solid transparent; } }

.el {
  position: absolute; left: 0; top: 0;
  transform: translate(var(--x), var(--y)) translate(-50%, -50%) translateZ(var(--z, 0px)) scale(var(--k, 1));
  transition: transform 0.85s var(--glide), opacity 0.45s ease;
}
.el.anchor-top { transform: translate(var(--x), var(--y)) translate(-50%, 0) translateZ(var(--z, 0px)) scale(var(--k, 1)); }
.el-block { --z: 26px; }
.el-card { --z: 70px; }
.el-card.t-callout { --z: 95px; }
.el .el-in { transition: transform 0.35s var(--spring), filter 0.35s; }
.el-block:not(.is-entering):hover .el-in { transform: translateY(-10px) scale(1.06); filter: saturate(1.15) brightness(1.04); }
.el-card:not(.is-entering):hover .el-in { transform: translateY(-5px) scale(1.015); }
.el-block.is-entering .ripple { animation: ripple 0.9s ease-out calc(var(--enter, 0s) + 0.45s) 1; }
.el.is-entering .el-in { animation: drop 0.8s ease-out both; animation-delay: var(--enter, 0s); }
.el.is-leaving { opacity: 0; transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none; }
.el.is-dim { opacity: 0.58; filter: saturate(0.6); }

/* Blocks: two-tier isometric volumes that float above their platform */
.el-block .el-in { display: grid; justify-items: center; width: 190px; }
.prism { display: block; overflow: visible; }
.prism path { stroke-linejoin: round; }
.f-top, .f-left, .f-right, .s-top { stroke: var(--b5-white); stroke-width: 1.200; }
.f-top { fill: var(--c1); }
.f-left { fill: var(--c2); }
.f-right { fill: var(--c3); }
.s-top { fill: color-mix(in srgb, var(--c1) 55%, var(--b5-white)); }
.slab .f-left { fill: color-mix(in srgb, var(--c2) 70%, var(--b5-white)); }
.slab .f-right { fill: color-mix(in srgb, var(--c3) 75%, var(--b5-white)); }
.shade { stroke: none; pointer-events: none; }
.vent { fill: none; stroke: var(--b5-white); stroke-width: 2; stroke-linecap: round; opacity: 0.35; }
.led { fill: var(--b5-white); animation: blink 2.400s ease-in-out infinite; animation-delay: var(--phase, 0s); }
.led:nth-of-type(2) { animation-delay: calc(var(--phase, 0s) + 0.3s); }
.led:nth-of-type(3) { animation-delay: calc(var(--phase, 0s) + 0.6s); }
.prism-icon svg { color: var(--ci); stroke-width: 2; }
.prism-shadow { fill: var(--b5-site-dark-deep); opacity: 0.16; filter: blur(5px); }
.contact { fill: var(--c3); opacity: 0.35; filter: blur(4px); transform-origin: 80px 100px; animation: contact 4s ease-in-out infinite; animation-delay: var(--phase, 0s); }
.prism-body { animation: bob 4s ease-in-out infinite; animation-delay: var(--phase, 0s); }
.ripple { fill: none; stroke: var(--c3); stroke-width: 2; opacity: 0; transform-origin: 80px 96px; }
.el-block.is-focus .ripple { animation: ripple 2.200s ease-out infinite; }
.el-block.is-focus .prism-body { animation-duration: 2.800s; }
.el-block.is-focus .el-in::before {
  content: ""; position: absolute; left: 50%; top: 84px; width: 290px; height: 170px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--c1), transparent); z-index: -1; animation: glow 2.800s ease-in-out infinite;
}
.el-block .el-in { position: relative; }
.block-label { margin-top: -2px; padding: 5px 12px; max-width: 190px; border-radius: 12px; background: var(--surface); border: 1.500px solid var(--c3); box-shadow: 0 4px 0 var(--c3), 0 12px 20px color-mix(in srgb, var(--b5-site-dark-deep) 12%, transparent); text-align: center; line-height: 1.2; }
.block-label b { display: block; font-weight: 700; font-size: 14px; color: var(--b5-site-dark-deep); white-space: nowrap; }
.block-label small { display: block; font-size: 11.500px; color: var(--muted); }

/* Cards: panels attached to the scene */
.el-card .el-in { padding: 12px 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--c2) 45%, var(--line)); border-top: 4px solid var(--c2); border-radius: var(--r); box-shadow: 0 5px 0 color-mix(in srgb, var(--c2) 55%, var(--b5-white)), 0 18px 30px color-mix(in srgb, var(--b5-site-dark-deep) 14%, transparent); font-size: 13px; line-height: 1.45; }
.el-card.is-updated .el-in { animation: flash 0.9s ease-out; }
.card-label { display: block; margin-bottom: 6px; font-size: 10.500px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--c3); }
.el-card.t-callout .el-in { background: var(--c1); border: 1.500px solid var(--c2); color: var(--ci); box-shadow: 0 5px 0 var(--c2), 0 18px 30px color-mix(in srgb, var(--b5-site-dark-deep) 14%, transparent); }
.el-card.t-callout b { display: block; font-size: 14.500px; font-weight: 900; }
.el-card.t-callout .card-label { color: var(--ci); opacity: 0.75; }
.el-card.t-ghost .el-in { background: color-mix(in srgb, var(--c1) 45%, transparent); border: 2px solid var(--c2); box-shadow: none; }
.says { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--b5-site-dark-deep); }
.says.sm { font-size: 14px; font-weight: 600; }
.el-card .chip { font-size: 13px; padding: 4px 9px; }
.el-card .chip.id { font-size: 11.500px; padding: 3px 7px; }
.el-card .chip.new { background: var(--ill-green-1); border-color: var(--ill-green-2); color: var(--ill-green-ink); }
.chip-row + .chip-row { margin-top: 6px; }
.el-card .bars { gap: 6px; }
.el-card .bar-row { grid-template-columns: 82px 1fr 36px; gap: 8px; font-size: 12.500px; }
.el-card .bar-track { height: 14px; background: var(--c1); }
.el-card .bar-track i { background: var(--c2); }
.el-card .bar-row:first-child .bar-track i, .el-card .bar-row.is-pick .bar-track i { background: var(--c3); }
.el-card .bar-row.is-dim .bar-track i { background: var(--b5-grey-60); }
.el-card .bar-val { color: var(--ci); }
.note { margin-top: 8px; font-size: 11.500px; color: var(--muted); }
.out-row { min-height: 30px; }
.lab label { display: flex; justify-content: space-between; font-weight: 700; }
.lab output { font-weight: 900; color: var(--c3); }
.lab input { width: 100%; margin: 6px 0 0; accent-color: var(--c3); }
.lab .lab-scale { margin-bottom: 8px; }
.lab .btn { width: 100%; margin-top: 10px; padding: 8px 12px; }
.lab .draws { margin-top: 8px; min-height: 28px; }
.rows { display: grid; gap: 5px; }
.rows span { padding: 6px 10px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--c2); font-weight: 600; }
.rows span.off { background: transparent; border: 1px dashed var(--b5-grey-60); color: var(--b5-grey-80); }
.rows + .card-label, .card-label.gap { margin-top: 10px; }
.el-card .prompt-block { border-left: 4px solid var(--c2); font-size: 12.500px; }
.el-card .prompt-block + .prompt-block { margin-top: 6px; }
.el-card .prompt-block.is-new { background: var(--c1); border-color: var(--c2); }
.el-card .prompt-block span, .el-card .prompt-block.is-new span { color: var(--c3); }
.el-card .answer { font-size: 12.500px; }
.el-card .quality { margin-top: 10px; }
.el-card .quality-dots i.on { background: var(--ill-green-2); }
.el-card .quality b { color: var(--ill-green-3); }
.el-card pre { margin: 0 0 10px; padding: 10px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); font: 500 11.500px/1.5 var(--b5-font-sans); white-space: pre-wrap; }
.el-card .stamp { margin-top: 10px; padding: 6px 12px; font-size: 14px; border-color: var(--ill-coral-3); color: var(--ill-coral-3); justify-content: center; }
.risk-list { display: grid; gap: 4px; }
.risk-list li { padding: 5px 10px; border-radius: 8px; background: var(--c1); color: var(--ci); font-weight: 600; font-size: 12.500px; }
.checks { display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.checks b { display: block; color: var(--b5-site-dark-deep); }
.checks p { font-size: 12px; color: var(--muted); }
.el-card .tick { width: 26px; height: 26px; background: var(--ill-green-3); }
.lanes { display: grid; gap: 8px; }
.lanes li { padding: 9px 12px; border-radius: var(--r-s); background: var(--c1); border-left: 5px solid var(--c3); color: var(--ci); }
.lanes b { display: flex; justify-content: space-between; gap: 10px; font-size: 13.500px; }
.lanes b em { font-style: normal; font-weight: 900; white-space: nowrap; }
.lanes p { font-size: 12px; }

/* Links */
.link-line { fill: none; stroke: var(--c3); stroke-width: 3; filter: drop-shadow(0 5px 3px color-mix(in srgb, var(--b5-site-dark-deep) 18%, transparent)); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: d 0.85s var(--glide); }
.link.is-entering .link-line { animation: draw 0.8s var(--glide) 0.25s both; }
.link.is-dashed .link-line { stroke-dasharray: 0.030 0.025; animation: fade-in 0.6s both; }
.link { transition: opacity 0.35s; }
.link.is-leaving { opacity: 0; }
.arrow-head { fill: var(--c3); }
.packet { fill: var(--c2); }
.packet.p0 { stroke: var(--b5-white); stroke-width: 2; filter: drop-shadow(0 0 6px var(--c2)); }
.packet.p1 { opacity: 0.55; }
.packet.p2 { opacity: 0.32; }
.packet.p3 { opacity: 0.16; }
.link-label {
  position: absolute; left: 0; top: 0; z-index: 4; transform: translate(var(--x), var(--y)) translate(-50%, -50%) translateZ(34px);
  padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1.500px solid var(--c2);
  font-size: 12px; font-weight: 700; color: var(--ci); white-space: nowrap;
  transition: transform 0.85s var(--glide), opacity 0.35s; animation: fade-in 0.6s 0.4s both;
}
.link-label.is-leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .packet { display: none; } }

/* Celebration when the quick check is answered correctly */
.confetti { position: fixed; z-index: 60; width: 9px; height: 14px; border-radius: 2px; background: var(--c2); pointer-events: none; animation: confetti 1.500s cubic-bezier(0.15, 0.6, 0.4, 1) forwards; }
.confetti:nth-child(odd) { width: 8px; height: 8px; border-radius: 50%; background: var(--c3); }

/* ── Frame, second pass (owner, 2026-11-23: less corporate, colour beyond blue) ──
   Each module owns a colour (curriculum.js). The open lesson carries its module's c-* class,
   so --c1/--c2/--c3/--ci below are that module's tints. Ink, type, header and primary buttons
   stay BlueFive. Shapes are "stickers": ink outline plus a solid offset shadow, like the 3D blocks. */
:root { --ink-line: var(--b5-site-dark-deep); --hard: 0 5px 0 var(--ink-line); }
.top { position: sticky; }
.ribbon { position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; display: flex; gap: 2px; background: var(--ink-line); border-bottom: 2px solid var(--ink-line); }
.ribbon span { background: var(--c1); min-width: 0; }
.ribbon i { display: block; height: 100%; background: var(--c3); transition: width 0.6s var(--glide); }
.tab.is-active { background: var(--b5-white); color: var(--ink-line); box-shadow: 0 3px 0 var(--b5-light-blue); }
.tab em, .toc-item em { text-transform: none; letter-spacing: 0; font-size: 11.500px; }

.side { border-right: 2px solid var(--ink-line); }
.side-head { padding-top: 24px; font-weight: 900; font-size: 17px; }
.toc-module h3 { color: var(--ink-line); font-weight: 900; }
.toc-module .num { padding: 2px 7px; border-radius: 7px; background: var(--c2); border: 1.500px solid var(--ink-line); color: var(--con, var(--ci)); font-size: 11.500px; }
.toc-item.is-active a { background: var(--c1); color: var(--ci); font-weight: 700; box-shadow: inset 4px 0 0 var(--c3); }
.toc-item .dot { border-color: var(--c3); }
.toc-item.is-done .dot { background: var(--c3); border-color: var(--c3); }
.side-foot { border-top: 2px solid var(--ink-line); }
.meter { height: 10px; border: 1.500px solid var(--ink-line); background: var(--b5-white); }
.meter i { background: var(--b5-light-blue); border-radius: 0; }

#main { padding-top: 30px; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mod-chip { padding: 3px 11px; border-radius: 999px; background: var(--c2); border: 1.500px solid var(--ink-line); color: var(--con, var(--ci)); font-weight: 900; font-size: 13px; box-shadow: 0 3px 0 var(--ink-line); }
h1 { font-size: clamp(30px, 3.400vw, 44px); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; color: var(--ink-line); }
.lesson-title { margin: 10px 0 6px; }
.badges li { border: 1.500px solid var(--ink-line); font-weight: 700; font-size: 13px; }
.badges li:first-child { background: var(--c1); color: var(--ci); }
.blurb { font-size: 16.500px; color: var(--ink); max-width: 62ch; }

.stage-card, .stepper, .step-card, .goals { border: 2px solid var(--ink-line); border-radius: 20px; box-shadow: var(--hard); }
.stage-card, .step-card { box-shadow: 0 7px 0 var(--c3); }
.stage-card { overflow: hidden; }
.stage { border-radius: 0; }
.stage-bar { border-bottom: 2px solid var(--ink-line); }
.metric { border: 1.500px solid var(--b5-grey-40); border-radius: 12px; }
.metric dt, .stepper-head, .step-meta, .card-label, .textline-label { text-transform: none; letter-spacing: 0; font-size: 12.500px; font-weight: 700; }
.metric.has-value { background: var(--c1); border-color: var(--ink-line); }
.metric.has-value dt { color: var(--ci); }
.metric.has-value dd { color: var(--ink-line); }
.ghost-btn { border: 1.500px solid var(--ink-line); border-radius: 12px; font-weight: 900; box-shadow: 0 3px 0 var(--ink-line); transition: transform 0.1s, box-shadow 0.1s; }
.ghost-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink-line); }

#steps b { width: 34px; height: 34px; border-color: var(--b5-grey-40); font-weight: 900; }
#steps li + li::before { top: 16px; height: 3px; background: var(--b5-grey-20); }
#steps li.is-seen + li.is-seen::before, #steps li.is-seen + li.is-current::before { background: var(--c3); }
#steps .is-seen b { background: var(--c1); border-color: var(--ink-line); color: var(--ci); }
#steps .is-current b { background: var(--c2); border-color: var(--ink-line); color: var(--con, var(--ci)); box-shadow: 0 4px 0 var(--ink-line); transform: translateY(-3px) scale(1.08); }

.tag { background: var(--c2); color: var(--con, var(--ci)); border: 1.500px solid var(--ink-line); font-weight: 900; text-transform: none; letter-spacing: 0; }
.step-card h2 { font-size: 25px; line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; color: var(--ink-line); }
.step-body { font-size: 15.500px; }
.step-body li::marker { color: var(--c3); }
.key-idea { background: var(--c1); border: 2px solid var(--ink-line); border-radius: 14px; box-shadow: 0 4px 0 var(--ink-line); transform: rotate(-0.6deg); }
.key-idea strong, .changed strong, .goals h2, .quiz legend { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 900; color: var(--ci); }
.changed strong, .goals h2, .quiz legend { color: var(--ink-line); }
.key-idea p { color: var(--ci); font-weight: 700; }
.changed li::before { background: var(--c3); border-radius: 2px; transform: rotate(45deg); }
.btn { border: 2px solid var(--ink-line); border-radius: 12px; box-shadow: 0 4px 0 var(--ink-line); transition: transform 0.1s, box-shadow 0.1s, background 0.15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink-line); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--ink-line); }
.btn-secondary { border-color: var(--ink-line); color: var(--ink-line); }
.btn:disabled { box-shadow: none; }
kbd { border-color: var(--ink-line); }
.goals i { border-color: var(--ink-line); border-radius: 6px; }
.goals .is-met i { background: var(--c3); border-color: var(--ink-line); }
.quiz { border: 2px dashed var(--ink-line); border-radius: 14px; }
.quiz-opt { border: 1.500px solid var(--ink-line); border-radius: 12px; box-shadow: 0 3px 0 var(--ink-line); transition: transform 0.1s, box-shadow 0.1s; }
.quiz-opt:hover { transform: translateY(-1px); }
.quiz-opt.is-right { background: var(--ill-green-2); border-color: var(--ink-line); color: var(--ill-green-ink); font-weight: 900; }
.quiz-opt.is-wrong { background: var(--ill-coral-1); color: var(--ill-coral-ink); box-shadow: none; }
.quiz .quiz-why { background: var(--c1); color: var(--ci); border-radius: 12px; }
@media (max-width: 640px) { .key-idea { transform: none; } }
.stepper { padding: 14px 18px 16px; }
#steps { padding: 8px 0 4px; }
.stepper-head { margin-bottom: 6px; }

/* ── Third pass: real objects, a bigger scene, light and dark themes ── */
:root { --ground: var(--ill-floor); --on-ground: var(--b5-site-dark-deep); --on-ground-soft: var(--b5-grey); --edge: var(--b5-site-dark-deep); }
body { font-size: 16px; background:
  radial-gradient(1100px 520px at 88% -8%, var(--c1, transparent), transparent 70%),
  radial-gradient(700px 420px at -5% 105%, var(--c1, transparent), transparent 70%),
  radial-gradient(var(--b5-grey-20) 1.200px, transparent 1.600px) 0 0 / 26px 26px,
  var(--ground); background-attachment: fixed; }
.lesson { max-width: 1680px; }
@media (min-width: 1024px) { .lesson { grid-template-columns: minmax(0, 1fr) 350px; } }
h1, .crumb { color: var(--on-ground); }
.blurb { color: var(--on-ground-soft); font-size: 16px; }
.lesson-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 20px; }
.lesson-head .crumb, .lesson-head .blurb { grid-column: 1 / -1; }
.lesson-title { display: contents; }
.badges { align-self: center; }
.stage-card, .step-card { box-shadow: 0 8px 0 var(--c3), 0 26px 40px color-mix(in srgb, var(--b5-site-dark-deep) 16%, transparent); }
.stepper, .goals { box-shadow: 0 5px 0 var(--edge); }
.step-card { padding: 22px 24px 20px; }
.step-body { font-size: 16px; line-height: 1.55; }
.menu-btn { display: flex; }
.head-btn { margin-left: 4px; padding: 7px 14px; border-radius: 999px; border: 1.500px solid var(--b5-dark-blue-60); background: transparent; color: var(--b5-white); font-weight: 700; font-size: 13.500px; white-space: nowrap; }
.head-btn:hover { border-color: var(--b5-light-blue); }
.top-progress { margin-left: auto; }
@media (min-width: 1500px) { .menu-btn { display: none; } }

/* Objects */
.slab .f-top { fill: color-mix(in srgb, var(--c1) 55%, var(--b5-white)); }
.m-dark.f-left { fill: var(--c3); }
.m-dark.f-right { fill: color-mix(in srgb, var(--c3) 80%, black); }
.m-dark.f-top { fill: var(--c2); }
.m-alt { filter: brightness(1.12) saturate(0.85); }
.m-glass { fill: color-mix(in srgb, var(--c1) 35%, var(--b5-white)); stroke: var(--b5-white); stroke-width: 1; }
.m-term { fill: var(--b5-site-dark-deep); stroke: var(--b5-white); stroke-width: 1; }
.m-paper.f-top, .m-pages { fill: var(--b5-white); stroke: var(--c2); stroke-width: 0.800; }
.m-paper-low.f-top { fill: var(--c1); }
.m-tab { fill: var(--c2); }
.m-ink, .m-line, .m-code, .m-soft, .m-cursor, .m-check, .m-meridian { fill: none; stroke-linecap: round; }
.m-ink { stroke: var(--c3); stroke-width: 2.200; opacity: 0.75; }
.m-line { stroke: var(--c3); stroke-width: 3.500; }
.m-line.thin { stroke: var(--c2); stroke-width: 2.500; }
.m-term ~ .m-line { stroke: var(--c2); }
.m-code { stroke: var(--b5-white); stroke-width: 2.500; opacity: 0.8; }
.m-soft { stroke: var(--b5-white); stroke-width: 2; opacity: 0.4; }
.m-cursor { stroke: var(--c3); stroke-width: 3; animation: blink 1s steps(2) infinite; }
.m-seal { fill: var(--c3); stroke: var(--b5-white); stroke-width: 1.200; }
.m-check { stroke: var(--b5-white); stroke-width: 2.200; stroke-linejoin: round; }
.m-check.big { stroke-width: 5; }
.m-ball { fill: var(--c2); stroke: var(--b5-white); stroke-width: 1.200; }
.m-meridian { stroke: var(--b5-white); stroke-width: 1.500; opacity: 0.7; }
.orb { fill: var(--c1); stroke: var(--b5-white); stroke-width: 1.500; filter: drop-shadow(0 0 7px var(--c2)); }
.orb-shine { fill: var(--b5-white); opacity: 0.8; }
.orb-ring { fill: none; stroke: var(--c2); stroke-width: 2; transform-origin: 80px 22px; animation: orbit 2.600s ease-in-out infinite; }
.orb-wrap { animation: bob 2.600s ease-in-out infinite reverse; }
@keyframes orbit { 0%, 100% { transform: scale(0.8); opacity: 0.9; } 50% { transform: scale(1.25); opacity: 0.3; } }
.el-block .el-in { filter: drop-shadow(0 10px 10px color-mix(in srgb, var(--b5-site-dark-deep) 14%, transparent)); }

/* Dark theme: a lit stage on a navy ground. Cards stay paper white so the text keeps its contrast. */
:root[data-theme="dark"] {
  --ground: var(--b5-site-dark-deep); --on-ground: var(--b5-white); --on-ground-soft: var(--b5-dark-blue-20);
  --edge: var(--b5-light-blue); --ill-floor: var(--b5-site-dark-deep); --ill-grid: color-mix(in srgb, var(--b5-light-blue) 26%, transparent);
}
:root[data-theme="dark"] body { background:
  radial-gradient(1100px 560px at 88% -8%, color-mix(in srgb, var(--c3, transparent) 55%, transparent), transparent 70%),
  radial-gradient(700px 420px at -5% 105%, color-mix(in srgb, var(--c3, transparent) 40%, transparent), transparent 70%),
  radial-gradient(color-mix(in srgb, var(--b5-white) 12%, transparent) 1.200px, transparent 1.600px) 0 0 / 26px 26px,
  var(--ground); background-attachment: fixed; }
:root[data-theme="dark"] .stage { background:
  radial-gradient(48% 55% at 50% 70%, color-mix(in srgb, var(--b5-light-blue) 22%, transparent), transparent 75%),
  radial-gradient(40% 45% at 16% 18%, color-mix(in srgb, var(--c2) 26%, transparent), transparent 70%),
  radial-gradient(40% 45% at 86% 14%, color-mix(in srgb, var(--ill-amber-2) 20%, transparent), transparent 70%),
  var(--ill-floor); }
:root[data-theme="dark"] .stage-card, :root[data-theme="dark"] .step-card { box-shadow: 0 8px 0 var(--c2), 0 0 60px color-mix(in srgb, var(--c2) 28%, transparent); border-color: var(--c2); }
:root[data-theme="dark"] .stepper, :root[data-theme="dark"] .goals { border-color: var(--b5-light-blue); }
:root[data-theme="dark"] .link-line { stroke: var(--c2); }
:root[data-theme="dark"] .arrow-head { fill: var(--c2); }
:root[data-theme="dark"] .el-block .el-in { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c2) 55%, transparent)); }
:root[data-theme="dark"] .prism-shadow { opacity: 0.5; }
:root[data-theme="dark"] .mote { box-shadow: 0 0 8px var(--c2); }
:root[data-theme="dark"] .mod-chip { box-shadow: 0 3px 0 var(--b5-light-blue); }
:root[data-theme="dark"] .side { background: var(--b5-site-dark-deep); color: var(--b5-white); border-color: var(--b5-light-blue); }
:root[data-theme="dark"] .toc-module h3 { color: var(--b5-white); }
:root[data-theme="dark"] .toc-item.is-soon, :root[data-theme="dark"] .toc-item.is-soon em, :root[data-theme="dark"] .toc-module .count, :root[data-theme="dark"] .side-head span:last-child, :root[data-theme="dark"] .side-foot-row span:last-child { color: var(--b5-dark-blue-40); }
:root[data-theme="dark"] .toc-item a:hover { background: var(--b5-dark-blue); }
:root[data-theme="dark"] .side-foot { border-color: var(--b5-dark-blue); }
.el-card .prompt-block { font-size: 12px; line-height: 1.35; padding: 6px 9px; }
.el-card .prompt-block + .prompt-block { margin-top: 5px; }
@media (max-width: 640px) {
  .head-btn { padding: 6px 10px; font-size: 12px; margin-left: auto; }
  .brand-name { display: none; }
  .lesson-head { grid-template-columns: minmax(0, 1fr); }
}

/* ── Fixed app layout (owner, 2026-11-23): everything on one screen, the page never scrolls.
   Only the explanation text scrolls inside its card when a step is long. Small screens keep
   the scrolling layout above. ── */
@media (min-width: 1024px) and (min-height: 600px) {
  html, body { height: 100%; overflow: hidden; }
  .shell { height: calc(100vh - 67px); margin-top: 7px; }
  .side { top: 67px; height: calc(100vh - 67px); }
  #main { height: 100%; padding: 14px 20px 22px; overflow: hidden; }
  .lesson { height: 100%; align-items: stretch; gap: 18px; }
  .center { height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
  h1 { font-size: clamp(26px, 2.600vw, 36px); }
  .lesson-title { margin: 0; }
  .blurb { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
  .stage-card { display: flex; flex-direction: column; min-height: 0; }
  .stage-bar { padding: 8px 12px; }
  .metric { padding: 4px 11px; }
  .stage { flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; }
  .stepper { padding: 8px 16px 10px; }
  .stepper-head { margin-bottom: 0; }
  #steps { padding: 6px 0 2px; }
  .panel { position: static; height: 100%; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding-bottom: 8px; }
  .step-card { display: flex; flex-direction: column; min-height: 0; padding: 0; }
  .step-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 14px; overscroll-behavior: contain; scrollbar-width: thin; }
  .step-foot { padding: 12px 22px 14px; border-top: 2px solid var(--ink-line); background: var(--surface); border-radius: 0 0 18px 18px; }
  .step-nav { margin-top: 0; }
  .hint { margin-top: 8px; }
  .step-card h2 { font-size: 22px; }
  .step-body { font-size: 15px; line-height: 1.5; }
  .goals { padding: 12px 18px; }
  .goals ul { gap: 6px; margin-top: 8px; }
  .goals li { font-size: 13px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .lesson { grid-template-columns: minmax(0, 1fr) 310px; } }
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 779px) {
  .goals, .blurb, .hint { display: none; }
  .panel { grid-template-rows: minmax(0, 1fr); }
  h1 { font-size: 26px; }
}
@media (min-width: 1024px) and (min-height: 600px) {
  .shell { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  #main { min-height: 0; }
  .lesson { grid-template-rows: minmax(0, 1fr); min-height: 0; }
  .center, .panel { min-height: 0; }
}
@media (min-width: 1024px) and (min-height: 600px) {
  .step-scroll { padding-bottom: 26px; -webkit-mask-image: linear-gradient(black calc(100% - 24px), transparent); mask-image: linear-gradient(black calc(100% - 24px), transparent); }
}

/* ── Header row: title, live figures and Replay share one line, so the stage card is all scene ── */
.lesson-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.crumb .facts { margin-left: auto; font-size: 13.500px; color: var(--on-ground-soft); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.head-row h1 { margin-right: auto; }
.head-row .metrics { flex: 0 1 auto; }
.metric { background: var(--surface); min-width: 92px; }
.stage { border-radius: 18px; }
@media (min-width: 1024px) and (min-height: 600px) {
  .head-row { flex-wrap: nowrap; }
  .head-row h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .metric { padding: 3px 10px; }
  .metric dt { font-size: 11.500px; }
  .metric dd { font-size: 14px; line-height: 1.25; }
}
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 779px) { .crumb .facts { display: none; } }
@media (max-width: 640px) { .crumb { flex-wrap: wrap; } .crumb .facts { margin-left: 0; } }
/* The temperature lab is the tallest card: keep it compact and reserve the row for the draws. */
.lab .bars { gap: 3px; }
.lab .bar-track { height: 11px; }
.lab .lab-scale { margin-bottom: 5px; }
.lab .btn { margin-top: 7px; padding: 6px 12px; box-shadow: 0 3px 0 var(--ink-line); }
.lab .draws { margin-top: 7px; min-height: 28px; flex-wrap: nowrap; overflow: hidden; }
.lab .draws .chip { font-size: 11.500px; padding: 3px 6px; }

/* Optional "Go deeper" note per step: closed by default, for readers who want the detail. */
.deeper { margin-top: 14px; border: 1.500px dashed var(--ink-line); border-radius: 12px; background: var(--surface); }
.deeper summary { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 900; color: var(--ink-line); list-style: none; }
.deeper summary::-webkit-details-marker { display: none; }
.deeper summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--c2); border: 1.500px solid var(--ink-line); color: var(--con, var(--ci)); line-height: 1; }
.deeper[open] summary::before { content: "\2212"; }
.deeper p { padding: 0 12px 12px; font-size: 14.500px; line-height: 1.5; }
/* The connector runs behind the step bubbles, never across their numbers. */
#steps li + li::before { z-index: 0; }
#steps a { z-index: 1; }

/* ── Stage v2: leader lines, timed entrances, travelling cargo ── */
.leader { fill: none; stroke: var(--c3); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0.75; transition: d 0.85s var(--glide); animation: fade-in 0.5s calc(var(--enter, 0s) + 0.35s) both; }
.leader.is-leaving { opacity: 0; transition: opacity 0.3s; animation: none; }
:root[data-theme="dark"] .leader { stroke: var(--c2); }
.link.is-entering .link-line { animation-delay: calc(var(--enter, 0s) + 0.25s); }
.link.is-dashed .link-line { animation-delay: var(--enter, 0s); }
.link-label { animation-delay: calc(var(--enter, 0s) + 0.5s); }
.cargo { position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.cargo.k-tile { padding: 3px 9px 4px; border-radius: 9px; background: var(--b5-white); border: 1.500px solid var(--ink-line); box-shadow: 0 3px 0 var(--c3); text-align: center; line-height: 1.15; white-space: nowrap; }
.cargo.k-tile b { display: block; font-size: 13.500px; font-weight: 800; color: var(--ink-line); }
.cargo.k-tile small { display: block; font-size: 10.500px; font-weight: 700; color: var(--c3); font-variant-numeric: tabular-nums; }
.cargo.k-page { width: 24px; height: 30px; border-radius: 4px; background: linear-gradient(var(--c2), var(--c2)) 5px 8px / 14px 2px no-repeat, linear-gradient(var(--c2), var(--c2)) 5px 14px / 10px 2px no-repeat, linear-gradient(var(--c2), var(--c2)) 5px 20px / 14px 2px no-repeat, var(--b5-white); border: 1.500px solid var(--ink-line); box-shadow: 0 3px 0 var(--c3); }
.el-block.is-fed .ripple { animation: ripple var(--fed, 0.6s) ease-out infinite; }
.el-block.is-fed .contact { animation-duration: var(--fed, 0.6s); }

.chip-row.one-line { flex-wrap: nowrap; overflow: hidden; min-height: 32px; }

.el-card pre { font-size: 10.500px; line-height: 1.4; padding: 8px 10px; margin-bottom: 8px; }

/* ── Scene cards added with the lesson "What AI is" ── */
.says + .rows { margin-top: 8px; }
.says mark { padding: 0 4px; border-radius: 4px; background: var(--c1); color: var(--ci); }
.says u { text-decoration: underline; text-decoration-color: var(--c3); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dials { display: flex; justify-content: space-between; gap: 8px; height: 58px; }
.dials i { position: relative; flex: 1; border-radius: 6px; background: var(--c1); }
.dials i::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--v); height: 8px; border-radius: 4px; background: var(--c3); transition: bottom 0.9s var(--ease); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.counts.two { grid-template-columns: repeat(2, 1fr); }
.counts.four { grid-template-columns: repeat(4, 1fr); }
.counts.four b { font-size: 18px; }
.counts span { padding: 6px 8px; border-radius: var(--r-s); background: var(--c1); color: var(--ci); font-size: 11.500px; line-height: 1.25; }
.counts b { display: block; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.freq { display: grid; gap: 10px; font-size: 12px; color: var(--muted); }
.freq b { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink); }
.freq b span { font-weight: 400; color: var(--muted); }
.freq i { display: block; height: 12px; width: var(--w); min-width: 4px; margin: 4px 0 2px; border-radius: 4px; background: var(--c2); animation: grow 0.7s var(--ease) both; }
.timeline .chip { font-weight: 400; }
.timeline .chip b { margin-right: 4px; font-weight: 900; }
.switches { display: grid; gap: 6px; }
.switch { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 10px; padding: 5px 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.switch small { display: inline; margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.switch i { position: relative; height: 18px; border-radius: 9px; background: var(--b5-grey-60); transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--b5-white); transition: transform 0.2s var(--ease); }
.switch > b { font-size: 17px; font-weight: 900; color: var(--ill-coral-3); }
.switch[aria-pressed="true"] { border-color: var(--ill-green-2); }
.switch[aria-pressed="true"] i { background: var(--ill-green-3); }
.switch[aria-pressed="true"] i::after { transform: translateX(16px); }
.switch[aria-pressed="true"] > b { color: var(--ill-green-3); }
.sort-buttons { display: flex; gap: 8px; margin-top: 8px; }
.sort-buttons .btn { flex: 1; padding: 8px 10px; }
.note.verdict { min-height: 2.9em; margin-top: 6px; }
#task { min-height: 2.6em; }
.timeline .chip { flex: 1 1 40%; }
.switch > b { font-size: 12px; text-transform: uppercase; }
/* A tool that is switched off keeps its place but loses its link (set from the lesson, see data-key in stage.js). */
.link.is-off, .link-label.is-off { visibility: hidden; }
/* A stack of coloured layers (the inside of the context window) and its gauge. */
.rows.stack { gap: 3px; }
.rows.stack span { padding: 4px 9px; background: var(--c1); border-color: var(--c2); color: var(--ci); font-size: 12.500px; }
.rows.stack span.off { padding: 4px 9px; font-size: 12.500px; }
.rows.stack + .freq { margin-top: 8px; }
.freq.over i { background: var(--ill-coral-2); }
/* Marks inside a draft: invented or deleted text, inserted text; and a long template that scrolls in its card. */
.bad { color: var(--ill-coral-3); }
.cut { color: var(--ill-coral-3); text-decoration: line-through; }
.good { color: var(--ill-green-3); font-weight: 700; }
.el-card pre.scroll { max-height: 118px; overflow: auto; }
.sort-buttons .btn[aria-pressed="true"] { background: var(--c2); border-color: var(--ink-line); color: var(--con, var(--ci)); }
/* A control with two positions, and compact lanes, for cards that must stay small. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg .btn, .sort-buttons .btn { padding: 7px 8px; font-size: 12.500px; }
.seg .btn[aria-pressed="true"] { background: var(--c2); border-color: var(--ink-line); color: var(--con, var(--ci)); }
.lanes.tight { gap: 5px; }
.lanes.tight li { padding: 6px 10px; }
.lanes.tight b { font-size: 12.500px; }
.lanes.tight b em { font-weight: 400; }
/* A line painted on the floor (a boundary), not a connection: wide, soft, no arrow, no packets. */
.link.is-plain .link-line { stroke: var(--c2); stroke-width: 7; stroke-dasharray: 0.045 0.03; opacity: 0.75; filter: none; }

/* Header row when the live figures are sentences: they take one line of their own under the title. */
.head-row.is-long { flex-wrap: wrap; row-gap: 6px; }
.head-row.is-long .metrics { order: 3; flex: 1 1 100%; flex-wrap: nowrap; min-width: 0; }
.head-row.is-long .metric { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.head-row.is-long .metric dt { flex: none; }
.head-row.is-long .metric dd { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Contrast pass (2026-11-24, scripts/audit-theme.js): small coloured text on a card reaches 4.5 to 1 by
   leaning on the ink of its own colour. No palette value changes. */
.card-label, .lab output { color: color-mix(in srgb, var(--c3) 55%, var(--ci)); }
.good { color: color-mix(in srgb, var(--ill-green-3) 55%, var(--ill-green-ink)); }
.bad, .cut { color: color-mix(in srgb, var(--ill-coral-3) 65%, var(--ill-coral-ink)); }
.rows span.off, .rows.stack span.off { color: color-mix(in srgb, var(--b5-grey-80) 45%, var(--b5-site-dark-deep)); }
.el-card.t-callout .note { color: var(--ci); opacity: 0.85; }
.cargo.k-tile small { color: var(--ci); }
/* A ghost card is see-through: on the dark floor it needs more of its own light tint to stay readable. */
:root[data-theme="dark"] .el-card.t-ghost .el-in { background: color-mix(in srgb, var(--c1) 90%, transparent); }

/* ── Home view (owner, 2026-11-24: the root address opens a home, not lesson 1) ──
   One screen on desktop like the lessons; on small screens the page scrolls. Each module card
   carries its module colour (c-* classes); the hero stays on the BlueFive navy. */
.home { display: grid; gap: 18px; max-width: 1320px; margin: 0 auto; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 30px; border: 2px solid var(--ink-line); border-radius: 22px; background: var(--b5-site-dark-deep); color: var(--b5-white); box-shadow: 0 7px 0 var(--b5-light-blue); }
.home-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--b5-light-blue-40); }
.home-hero h1 { margin: 4px 0 8px; font-size: clamp(34px, 3.600vw, 52px); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; color: var(--b5-white); }
.home-lead { max-width: 62ch; font-size: 17px; line-height: 1.45; color: var(--b5-dark-blue-20); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.home-go { display: inline-block; max-width: 100%; padding: 13px 20px; font-size: 16px; text-decoration: none; background: var(--b5-light-blue); color: var(--b5-site-dark-deep); border-color: var(--b5-white); box-shadow: 0 4px 0 var(--b5-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-go:hover { background: var(--b5-white); }
.home-facts { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.home-facts li { display: grid; grid-template-columns: 92px auto; align-items: baseline; gap: 10px; padding: 10px 16px; border: 1.500px solid var(--b5-dark-blue-60); border-radius: 14px; background: color-mix(in srgb, var(--b5-white) 6%, transparent); }
.home-facts b { font-size: 24px; font-weight: 900; color: var(--b5-light-blue); text-align: right; white-space: nowrap; }
.home-facts span { font-size: 14px; color: var(--b5-dark-blue-20); }
.home-how { font-size: 15px; line-height: 1.45; color: var(--on-ground-soft); }
.home-how b { color: var(--on-ground); }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-mod { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 16px; border: 2px solid var(--ink-line); border-top: 8px solid var(--c2); border-radius: 18px; background: var(--surface); color: var(--ink-line); text-decoration: none; box-shadow: 0 5px 0 var(--c3); transition: transform 0.12s, box-shadow 0.12s; }
a.home-mod:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--c3); }
a.home-mod:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--c3); }
a.home-mod:focus-visible { outline: 3px solid var(--b5-light-blue); outline-offset: 3px; }
.home-mod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-mod-go { font-size: 12.500px; font-weight: 700; color: var(--ci); }
.home-mod-go::after { content: " \2192"; }
.home-soon { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--c1); color: var(--ci); }
.home-mod h3 { margin: 2px 0 0; font-size: 18px; line-height: 1.2; font-weight: 900; color: var(--b5-site-dark-deep); }
.home-mod-meta { font-size: 13px; font-weight: 600; color: var(--b5-grey); }
.home-mod-meta b { color: var(--ci); }
.home-mod-blurb { font-size: 13.500px; line-height: 1.4; color: var(--b5-site-dark-deep); }
.home-mod.is-soon { background: color-mix(in srgb, var(--c1) 35%, var(--surface)); box-shadow: 0 5px 0 color-mix(in srgb, var(--c3) 45%, var(--surface)); }
@media (min-width: 1024px) and (min-height: 600px) {
  .home { height: 100%; overflow-y: auto; align-content: safe center; padding: 4px 4px 12px; scrollbar-width: thin; }
}
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 819px) {
  .home-hero { padding: 18px 26px; }
  .home-lead { font-size: 15.500px; }
  .home-mod-blurb { display: none; }
}
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
  .home-facts li { grid-template-columns: 76px auto; }
  .home-facts b { font-size: 20px; }
}
@media (max-width: 520px) { .home-grid { grid-template-columns: minmax(0, 1fr); } .home-go { white-space: normal; } }
:root[data-theme="dark"] .home-hero { border-color: var(--b5-light-blue); box-shadow: 0 7px 0 var(--b5-light-blue), 0 0 60px color-mix(in srgb, var(--b5-light-blue) 22%, transparent); }
:root[data-theme="dark"] .home-mod { border-color: var(--c2); box-shadow: 0 5px 0 var(--c2); }
