/* Ausgeology · The rock cycle (Year 8)
   Layout: one reading column (about 68 characters) inside a 1080px frame; models,
   specimens and the cross-section use the full frame. The dark specimen tray is the
   page's one bold element. Rock families keep one colour and one map pattern each. */

:root {
  --bg: #eef0ec;
  --surface: #fbfcfa;
  --surface-2: #e2e7e2;
  --ink: #1a2124;
  --ink-2: #4a565a;
  --line: #c6cec9;
  --accent: #1d5c86;
  --accent-ink: #ffffff;
  --accent-soft: #d5e4ee;
  --igneous: #b23f0e;
  --sedimentary: #8a5e0f;
  --metamorphic: #6a4fa0;
  --band-ign: #a93c0d;
  --band-sed: #87600f;
  --band-met: #5f4793;
  --good: #2b7449;
  --good-soft: #dcefe3;
  --bad: #b3261e;
  --bad-soft: #f7dedc;
  --tray: #1d2428;
  --tray-2: #2c363b;
  --tray-ink: #e8ecec;
  --tray-ink-2: #a3b3b8;
  --tray-line: #3a464c;
  --focus: #d99a00;
  --pop-bg: #1a2124;
  --pop-ink: #f2f4f2;
  --shadow: 0 1px 2px rgba(20, 30, 34, 0.06), 0 8px 24px rgba(20, 30, 34, 0.07);
  /* cross-section scene */
  --sc-sky1: #c9dce8;
  --sc-sky2: #eef3f1;
  --sc-sea1: #5d9abc;
  --sc-sea2: #2c6689;
  --sc-crust: #b6a28b;
  --sc-sed1: #e3c58c;
  --sc-sed2: #cba262;
  --sc-met1: #a898c4;
  --sc-met2: #8775ab;
  --sc-ign1: #dcbcb1;
  --sc-ign2: #b88d84;
  --sc-mtn: #8b8276;
  --sc-volc: #5c5350;
  --sc-lava: #34302e;
  --sc-uluru: #c0552a;
  --sc-ground: #a5845a;
  --sc-river: #4b90b9;
  --sc-halo: rgba(251, 252, 250, 0.88);
  --sc-trail: #1d5c86;
  --sc-wheel-bg: rgba(255, 255, 255, 0.6);
  --sc-wheel-line: rgba(29, 92, 134, 0.3);
  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --scale: 1;
  --radius: 12px;
  /* map patterns for the three rock families */
  --pat-ign: radial-gradient(rgba(255, 255, 255, 0.28) 1.1px, transparent 1.6px) 0 0 / 11px 11px,
             radial-gradient(rgba(0, 0, 0, 0.28) 1.1px, transparent 1.6px) 5px 6px / 11px 11px;
  --pat-sed: repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.26) 7px 8.5px);
  --pat-met: repeating-linear-gradient(158deg, transparent 0 6px, rgba(255, 255, 255, 0.24) 6px 8px);
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 16.6 4.8 12l-1.6 1.6 6.2 6.2L21 8.2l-1.6-1.6z'/%3E%3C/svg%3E");
  --i-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.4 4.2 12 10.6 5.6 4.2 4.2 5.6l6.4 6.4-6.4 6.4 1.4 1.4 6.4-6.4 6.4 6.4 1.4-1.4-6.4-6.4 6.4-6.4z'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111517;
    --surface: #182024;
    --surface-2: #212a2f;
    --ink: #e6ebeb;
    --ink-2: #a9b5b8;
    --line: #2f3a3f;
    --accent: #7db6df;
    --accent-ink: #0b1822;
    --accent-soft: #1d3446;
    --igneous: #f2875a;
    --sedimentary: #ddb45c;
    --metamorphic: #b39fea;
    --band-ign: #a93c0d;
    --band-sed: #87600f;
    --band-met: #5f4793;
    --good: #66c792;
    --good-soft: #17372a;
    --bad: #f38b84;
    --bad-soft: #43201e;
    --tray: #0b0f11;
    --tray-2: #1a2125;
    --tray-ink: #e8ecec;
    --tray-ink-2: #98a9ae;
    --tray-line: #2a3439;
    --focus: #ffcc4d;
    --pop-bg: #e6ebeb;
    --pop-ink: #111517;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --sc-sky1: #1b2a35;
    --sc-sky2: #2a3a42;
    --sc-sea1: #23577a;
    --sc-sea2: #143850;
    --sc-crust: #5b5146;
    --sc-sed1: #8f7746;
    --sc-sed2: #7a623a;
    --sc-met1: #5f527b;
    --sc-met2: #4e4369;
    --sc-ign1: #7c6762;
    --sc-ign2: #67534e;
    --sc-mtn: #4f4943;
    --sc-volc: #3b3431;
    --sc-lava: #1f1c1b;
    --sc-uluru: #a4492a;
    --sc-ground: #6f5b3f;
    --sc-river: #3b7fa8;
    --sc-halo: rgba(17, 21, 23, 0.85);
    --sc-trail: #9fd0f2;
  --sc-wheel-bg: rgba(12, 16, 19, 0.62);
  --sc-wheel-line: rgba(159, 208, 242, 0.3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111517;
  --surface: #182024;
  --surface-2: #212a2f;
  --ink: #e6ebeb;
  --ink-2: #a9b5b8;
  --line: #2f3a3f;
  --accent: #7db6df;
  --accent-ink: #0b1822;
  --accent-soft: #1d3446;
  --igneous: #f2875a;
  --sedimentary: #ddb45c;
  --metamorphic: #b39fea;
  --band-ign: #a93c0d;
  --band-sed: #87600f;
  --band-met: #5f4793;
  --good: #66c792;
  --good-soft: #17372a;
  --bad: #f38b84;
  --bad-soft: #43201e;
  --tray: #0b0f11;
  --tray-2: #1a2125;
  --tray-ink: #e8ecec;
  --tray-ink-2: #98a9ae;
  --tray-line: #2a3439;
  --focus: #ffcc4d;
  --pop-bg: #e6ebeb;
  --pop-ink: #111517;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --sc-sky1: #1b2a35;
  --sc-sky2: #2a3a42;
  --sc-sea1: #23577a;
  --sc-sea2: #143850;
  --sc-crust: #5b5146;
  --sc-sed1: #8f7746;
  --sc-sed2: #7a623a;
  --sc-met1: #5f527b;
  --sc-met2: #4e4369;
  --sc-ign1: #7c6762;
  --sc-ign2: #67534e;
  --sc-mtn: #4f4943;
  --sc-volc: #3b3431;
  --sc-lava: #1f1c1b;
  --sc-uluru: #a4492a;
  --sc-ground: #6f5b3f;
  --sc-river: #3b7fa8;
  --sc-halo: rgba(17, 21, 23, 0.85);
  --sc-trail: #9fd0f2;
  --sc-wheel-bg: rgba(12, 16, 19, 0.62);
  --sc-wheel-line: rgba(159, 208, 242, 0.3);
  color-scheme: dark;
}

/* ---------- base ---------- */
html { font-size: calc(100% * var(--scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img, svg, canvas { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
p { margin: 0; }
.ul { text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.16em; text-decoration-skip-ink: none; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 0.85em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: 0.4em; }
.small { font-size: 0.92rem; color: var(--ink-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding-block: 12px 10px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%;
  font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1;
}
.brand i { font-style: normal; color: var(--igneous); }
.back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none; margin-right: auto;
}
.back:hover { text-decoration: underline; }
.back svg { width: 18px; height: 18px; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.tool:hover { border-color: var(--accent); }
.tool svg { width: 18px; height: 18px; flex: none; }
.tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tool-val { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; }

.rail-nav { padding-block: 2px 12px; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.rail-btn {
  width: 100%; display: grid; gap: 5px; padding: 4px 0; border: 0; background: none;
  text-align: left; cursor: pointer; color: var(--ink-2); border-radius: 4px;
}
.rail-bar { height: 6px; border-radius: 3px; background: var(--surface-2); transition: background-color 0.2s; }
.rail-btn:hover .rail-bar { background: var(--line); }
.rail-btn.is-done .rail-bar { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.rail-btn[aria-current="step"] .rail-bar { background: var(--accent); box-shadow: none; }
.rail-t { font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.25; letter-spacing: 0.02em; }
.rail-t b { display: block; font-weight: 600; color: var(--ink); }
.rail-btn[aria-current="step"] .rail-t { color: var(--ink); }
.rail-now { display: none; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); margin-top: 6px; }
.rail-now b { color: var(--ink); font-weight: 600; }

/* ---------- screens ---------- */
.js .screen:not(.is-active) { display: none; }
.screen { padding-block: 36px 56px; }
.screen-inner { display: grid; gap: 28px; }
.screen-inner > *, .section > *, .hero > *, .checks > *, .lab-body > * { min-width: 0; }
.screen-head { display: grid; gap: 8px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-2);
}
.display {
  font-family: var(--font-display); font-weight: 800; font-stretch: 116%;
  letter-spacing: -0.015em; line-height: 1; margin: 0; text-wrap: balance;
}
h1.display { font-size: clamp(2.7rem, 1.3rem + 5.6vw, 5.4rem); line-height: 0.95; }
h2.display { font-size: clamp(2rem, 1.25rem + 2.8vw, 3.1rem); }
h2.display:focus, h1.display:focus { outline: none; }
h3 {
  font-family: var(--font-display); font-weight: 750; font-stretch: 108%;
  font-size: 1.32rem; line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.005em;
}
.display .dot { color: var(--igneous); }
.lede { font-size: 1.28rem; line-height: 1.5; max-width: 60ch; }
.section { display: grid; gap: 14px; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 20px; padding-bottom: 8px; }
.strata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; border-radius: 12px; overflow: hidden; }
.stratum { color: #fff; padding: 22px 14px 12px; display: grid; gap: 1px; align-content: end; min-height: 88px; }
.stratum b { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.05rem; line-height: 1.15; }
.stratum span { font-size: 0.86rem; line-height: 1.3; opacity: 0.95; }
.st-ign { background: var(--pat-ign), var(--band-ign); }
.st-sed { background: var(--pat-sed), var(--band-sed); }
.st-met { background: var(--pat-met), var(--band-met); }

.landmarks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landmark { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.landmark .art { position: relative; }
.landmark svg { display: block; width: 100%; height: auto; }
.fig-tag {
  position: absolute; right: 8px; top: 8px; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.06em; text-transform: uppercase; background: rgba(0, 0, 0, 0.45); color: #fff;
  padding: 2px 6px; border-radius: 4px;
}
.landmark figcaption { padding: 14px 16px 16px; display: grid; gap: 4px; align-content: start; }
.landmark .name { font-weight: 800; font-size: 1.18rem; line-height: 1.2; }
.landmark .where { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; }
.landmark .what { font-size: 1rem; line-height: 1.45; }

.country {
  max-width: 76ch; background: var(--surface-2); border-radius: var(--radius);
  padding: 16px 18px; font-size: 1rem; display: grid; gap: 6px;
}
.country b { font-weight: 700; }

.goals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.goal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.goal-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.goal-card li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; line-height: 1.45; }
.sc-num {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  border: 1.5px solid var(--accent); color: var(--accent); margin-top: 1px;
}
.label {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
}

/* ---------- teaching blocks ---------- */
.key-idea {
  max-width: 68ch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px 18px; display: grid; gap: 6px;
}
.key-idea .label { display: inline-flex; align-items: center; gap: 8px; }
.key-idea .label::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--accent); }
.key-idea[data-fam="ign"] .label::before { background: var(--pat-ign), var(--band-ign); }
.key-idea[data-fam="sed"] .label::before { background: var(--pat-sed), var(--band-sed); }
.key-idea[data-fam="met"] .label::before { background: var(--pat-met), var(--band-met); }
.key-idea p { font-size: 1.26rem; font-weight: 700; line-height: 1.4; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 72ch; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: step; }
.steps > li::before {
  content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--band-sed); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; margin-top: 1px;
}

.fam { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.fam::before { content: ""; width: 0.85em; height: 0.85em; border-radius: 3px; flex: none; }
.fam-ign { color: var(--igneous); }
.fam-ign::before { background: var(--pat-ign), var(--band-ign); }
.fam-sed { color: var(--sedimentary); }
.fam-sed::before { background: var(--pat-sed), var(--band-sed); }
.fam-met { color: var(--metamorphic); }
.fam-met::before { background: var(--pat-met), var(--band-met); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; }
caption { text-align: left; padding: 12px 14px 0; font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
thead th {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); background: var(--surface-2);
}
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; }
td.time, th.time { font-variant-numeric: tabular-nums; }

details.more { max-width: 72ch; border: 1px dashed var(--line); border-radius: var(--radius); padding: 0 18px; background: transparent; }
details.more > summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before {
  content: "+"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 0.95rem; line-height: 1;
}
details.more[open] > summary::before { content: "\2212"; }
details.more > .more-body { padding: 0 0 18px; display: grid; gap: 12px; }
details.reveal > summary { list-style: none; width: fit-content; }
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal[open] > summary { display: none; }
.tag-ext { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }

/* ---------- labs ---------- */
.lab { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.lab-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lab-head h3 { font-size: 1.15rem; }
.lab-head .label { color: var(--accent); }
.lab-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.lab-body > p.small { max-width: 72ch; }
.lab canvas { display: block; width: 100%; border-radius: 10px; background: #2a1810; }
.lab .canvas-light { background: #cfe3ec; }
.lab-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status {
  margin: 0; min-height: 3.3em; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); font-size: 1rem; line-height: 1.5;
}
.model-note { font-size: 0.92rem; color: var(--ink-2); max-width: 75ch; }
.model-note b { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1rem; font-weight: 650; line-height: 1.2; cursor: pointer; text-align: left; text-decoration: none;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font-weight: 500; font-size: 0.82rem; opacity: 0.85; }

.slider-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.slider-row .label { white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--igneous); height: 32px; cursor: pointer; }
.stage-name { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.3rem; }

/* ---------- checks for understanding ---------- */
.checks { display: grid; gap: 16px; }
.check {
  max-width: 780px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 20px; display: grid; gap: 12px;
}
.check-head { display: flex; justify-content: space-between; gap: 12px; }
.check-q { font-weight: 700; font-size: 1.12rem; line-height: 1.45; }
.check-opts { display: grid; gap: 8px; }
.opt {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px 12px 48px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); line-height: 1.45; font-size: 1.02rem;
}
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt::before {
  content: attr(data-letter); position: absolute; left: 13px; top: 11px; width: 24px; height: 24px;
  border-radius: 50%; border: 1.5px solid var(--ink-2); color: var(--ink-2);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; line-height: 21px; text-align: center;
}
.opt.is-right { border-color: var(--good); background: var(--good-soft); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.is-right::before, .opt.is-wrong::before { content: ""; border: 0; border-radius: 0; }
.opt.is-right::before { background: var(--good); -webkit-mask: var(--i-check) center / 22px no-repeat; mask: var(--i-check) center / 22px no-repeat; }
.opt.is-wrong::before { background: var(--bad); -webkit-mask: var(--i-cross) center / 20px no-repeat; mask: var(--i-cross) center / 20px no-repeat; }
.opt:disabled { cursor: default; }
.opt:disabled:not(.is-right):not(.is-wrong) { opacity: 0.6; }
.fb { padding: 12px 14px; border-radius: 10px; font-size: 1rem; line-height: 1.5; background: var(--surface-2); }
.fb.is-right { background: var(--good-soft); }
.fb.is-wrong { background: var(--bad-soft); }
.fb strong { font-weight: 800; }
.fb.is-right strong { color: var(--good); }
.fb.is-wrong strong { color: var(--bad); }

/* ---------- specimen tray ---------- */
.id-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.id-side { display: grid; gap: 16px; min-width: 0; }
.tray {
  background: radial-gradient(120% 90% at 50% 30%, var(--tray-2), var(--tray) 72%);
  color: var(--tray-ink); border-radius: 18px; overflow: hidden; display: grid; box-shadow: var(--shadow);
}
.tray-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 0;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tray-ink-2);
}
.tray-name { color: var(--tray-ink); font-weight: 600; font-size: 0.86rem; }
.tray-stage { position: relative; aspect-ratio: 16 / 11; max-width: 100%; cursor: grab; touch-action: pan-y; }
.tray-stage:active { cursor: grabbing; }
.tray-stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.tray-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); border-radius: 12px; }
.tray-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--tray-ink-2); font-size: 0.98rem; }
.scale-note { position: absolute; left: 14px; bottom: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--tray-ink-2); pointer-events: none; }
.tray-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 14px 12px; }
.btn-tray {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--tray-line); background: rgba(255, 255, 255, 0.04); color: var(--tray-ink);
  font-size: 0.92rem; font-weight: 650; cursor: pointer;
}
.btn-tray:hover { border-color: var(--tray-ink-2); }
.btn-tray[aria-pressed="true"] { background: var(--tray-ink); color: var(--tray); border-color: var(--tray-ink); }
.btn-tray svg { width: 18px; height: 18px; }
.tray-hint { margin-left: auto; font-size: 0.84rem; color: var(--tray-ink-2); }
.tray-card { border-top: 1px solid var(--tray-line); padding: 12px 16px 16px; display: grid; gap: 10px; }
.tray-card .label { color: var(--tray-ink-2); }
.tests { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tests li { font-size: 0.9rem; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--tray-line); }
.describe summary { cursor: pointer; font-size: 0.92rem; color: var(--tray-ink-2); }
.describe p { margin-top: 8px; font-size: 0.95rem; line-height: 1.5; }

.spec-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.spec-switch .label { margin-right: 6px; }
.spec-btn {
  min-height: 42px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.spec-btn:hover { border-color: var(--accent); }
.spec-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.spec-btn .mark { width: 16px; height: 16px; display: none; }
.spec-btn.is-right .mark, .spec-btn.is-wrong .mark { display: inline-block; }
.spec-btn.is-right .mark { background: var(--good); -webkit-mask: var(--i-check) center / 16px no-repeat; mask: var(--i-check) center / 16px no-repeat; }
.spec-btn.is-wrong .mark { background: var(--bad); -webkit-mask: var(--i-cross) center / 14px no-repeat; mask: var(--i-cross) center / 14px no-repeat; }
.spec-btn[aria-pressed="true"].is-right .mark { background: var(--good-soft); }
.spec-btn[aria-pressed="true"].is-wrong .mark { background: var(--bad-soft); }

/* ---------- identification key ---------- */
.key { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; display: grid; gap: 10px; min-width: 0; }
.key-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.key-list { list-style: none; margin: 0; padding: 0; display: grid; }
.key-row {
  display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline;
  padding: 6px 6px; border-radius: 8px; font-size: 0.95rem; line-height: 1.35; transition: background-color 0.2s;
}
.key-row.first { border-top: 1px dashed var(--line); margin-top: 3px; padding-top: 8px; }
.key-row:first-child { border-top: 0; margin-top: 0; }
.k-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.k-a { font-weight: 700; white-space: nowrap; text-align: right; font-size: 0.9rem; }
.k-go { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); }
.key-row.is-current { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.key-row.is-passed { background: var(--surface-2); }
.key-note { font-size: 0.86rem; color: var(--ink-2); padding: 0 4px; }

/* worked example think-aloud */
.think { display: grid; gap: 14px; }
.think-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 80ch; }
.think-steps li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; line-height: 1.5;
}
.think-steps li[hidden] { display: none; }
.think-steps .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
}
.think-steps .say { font-style: italic; }
.think-steps .key-ref { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); font-style: normal; margin-top: 4px; }
.think-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.result-card {
  max-width: 80ch; background: var(--surface); border: 1.5px solid var(--good); border-radius: 14px;
  padding: 16px 18px; display: grid; gap: 6px;
}
.result-card h3 { font-size: 1.2rem; }

/* key walk (guided practice) */
.walk { display: grid; gap: 12px; }
.walk-log { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.walk-log li { font-family: var(--font-mono); font-size: 0.78rem; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.walk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.walk-q { font-weight: 700; font-size: 1.08rem; line-height: 1.4; }
.walk-q .k-n { margin-right: 6px; }
.walk-hint { font-size: 0.98rem; color: var(--ink-2); }
.walk-hint b { color: var(--ink); }
.walk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.walk-opts .btn { border-radius: 12px; }
.task { display: grid; gap: 12px; }
.task[hidden] { display: none; }
.task-intro { font-size: 0.98rem; color: var(--ink-2); }

.spec-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.spec-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.spec-form legend, .field-label { font-weight: 700; padding: 0; margin-bottom: 2px; }
.spec-form .fieldset { display: grid; gap: 6px; }
.spec-form h3 { font-size: 1.15rem; }
.spec-form select {
  width: 100%; max-width: 360px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label, .radio-col label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; line-height: 1.35;
}
.radio-col { display: grid; gap: 8px; }
.radio-col label { display: flex; }
.radio-row input, .radio-col input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.radio-row label:has(input:checked), .radio-col label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.score-line { font-weight: 700; }

/* ---------- specimen thumbnails ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-width: 760px; }
.thumbs.six { max-width: none; }
.thumb {
  margin: 0; border-radius: 14px; padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start;
  background: radial-gradient(110% 90% at 50% 30%, var(--tray-2), var(--tray) 75%); color: var(--tray-ink);
}
.thumb img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.thumb figcaption { display: grid; gap: 1px; }
.thumb b { font-size: 1rem; }
.thumb span { font-size: 0.82rem; line-height: 1.35; color: var(--tray-ink-2); }

/* ---------- rock cycle journey ---------- */
.cyc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cyc-modes { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cyc-modes .btn { border-radius: 12px; }
.cyc-modes .btn b { font-family: var(--font-mono); font-weight: 600; font-size: 0.82rem; margin-right: 2px; }
.cyc-modes .btn.is-done::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--i-check) center / 16px no-repeat; mask: var(--i-check) center / 16px no-repeat; }
.cyc-goal { padding: 12px 18px 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.cyc-svg { display: block; width: 100%; height: auto; }
.cyc-panel { display: grid; grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 22px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.cyc-caption { font-size: 1.02rem; line-height: 1.5; min-height: 4.6em; }
.cyc-caption .cyc-proc { color: var(--ink-2); }
.cyc-caption .cyc-hint { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--ink); }
.cyc-caption .cyc-win { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--good-soft); color: var(--ink); font-weight: 600; }
.cyc-clock { display: grid; gap: 2px; margin-top: 12px; }
.cyc-time { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cyc-next { display: grid; gap: 8px; align-content: start; }
.cyc-steps { display: grid; gap: 8px; }
.btn-step { display: grid; gap: 2px; border-radius: 12px; width: 100%; }
.btn-step .step-name { font-weight: 700; }
.btn-step .step-time { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); }
.cyc-undo { display: flex; flex-wrap: wrap; gap: 8px; }
.cyc-undo .btn { min-height: 38px; padding: 6px 12px; font-size: 0.92rem; }

.sc-label { font-family: var(--font-body); font-weight: 700; font-size: 17px; fill: var(--ink); paint-order: stroke; stroke: var(--sc-halo); stroke-width: 4.5px; stroke-linejoin: round; text-anchor: middle; }
.sc-label-quiet { font-weight: 600; font-size: 15px; fill: var(--ink-2); }
.is-narrow .sc-label { font-size: 30px; stroke-width: 6px; }
.is-narrow .sc-label-quiet, .is-narrow .sc-depth { display: none; }
.sc-track { fill: none; stroke: none; }
.sc-trail { fill: none; stroke: var(--sc-trail); stroke-width: 3; stroke-dasharray: 1 8; stroke-linecap: round; }
.sc-grain-halo { fill: rgba(255, 255, 255, 0.32); stroke: rgba(255, 255, 255, 0.9); stroke-width: 2; }
.sc-grain-dot { fill: var(--accent); stroke: #ffffff; stroke-width: 2.5; }
.is-narrow .sc-grain-inner { transform: scale(1.7); }
.sc-grain[data-fam="ign"] .sc-grain-dot { fill: var(--band-ign); }
.sc-grain[data-fam="magma"] .sc-grain-dot { fill: #ff9a3c; }
.sc-grain[data-fam="sed"] .sc-grain-dot { fill: var(--band-sed); }
.sc-grain[data-fam="loose"] .sc-grain-dot { fill: #e0b062; }
.sc-grain[data-fam="met"] .sc-grain-dot { fill: var(--band-met); }
.sc-depth { fill: var(--ink-2); }

/* ---------- uses ---------- */
.rock-bank { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.use { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; }
.use h3 { font-size: 1.08rem; }
.use select {
  min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%;
}
.use.is-right { border-color: var(--good); }
.use.is-wrong { border-color: var(--bad); }
.use .fb { font-size: 0.95rem; }

/* ---------- exit check and results ---------- */
.results { max-width: 820px; background: var(--surface); border: 1.5px solid var(--accent); border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; }
.results-score { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 2rem; line-height: 1.1; }
.sc-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-results li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.45; }
.sc-icon { width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; }
.sc-icon.ok { background: var(--good); -webkit-mask: var(--i-check) center / 20px no-repeat; mask: var(--i-check) center / 20px no-repeat; }
.sc-icon.todo { border: 2px solid var(--line); }
.sc-review { font-size: 0.95rem; }
.offline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.offline-links { display: flex; flex-wrap: wrap; gap: 8px; }
.teacher { max-width: 80ch; }
.teacher .more-body h3 { font-size: 1.05rem; margin-top: 6px; }
.teacher blockquote { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-style: italic; }
.teacher ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.confirm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- screen navigation ---------- */
.screen-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.screen-nav .next { margin-left: auto; }
.screen-nav .btn { max-width: 100%; }

/* ---------- glossary ---------- */
.term { cursor: help; border-bottom: 2px dotted var(--accent); border-radius: 2px; }
.term:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.term:hover, .term[aria-expanded="true"] { color: var(--accent); }
.term-pop {
  position: absolute; z-index: 60; width: max-content; max-width: min(340px, calc(100vw - 32px));
  background: var(--pop-bg); color: var(--pop-ink); border-radius: 12px; padding: 12px 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); font-size: 0.98rem; line-height: 1.45; display: grid; gap: 4px;
}
.term-pop b { font-size: 1.02rem; }
.term-pop button { justify-self: start; margin-top: 4px; background: none; border: 0; padding: 4px 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: 0.9rem; }
dialog.glossary {
  border: 0; border-radius: 18px; padding: 0; width: min(680px, calc(100vw - 32px)); max-height: min(84vh, 760px);
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
dialog.glossary::backdrop { background: rgba(10, 14, 16, 0.55); }
.gl-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.gl-head h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.5rem; margin: 0; }
.gl-list { margin: 0; padding: 12px 20px 20px; display: grid; gap: 12px; }
.gl-list dt { font-weight: 800; }
.gl-list dd { margin: 2px 0 0; color: var(--ink-2); line-height: 1.5; }

/* read aloud */
.is-reading { background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); border-radius: 4px; }

.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .wrap { padding-block: 18px 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .id-layout { grid-template-columns: minmax(0, 1fr); }
  .cyc-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cyc-now { grid-column: 1 / -1; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rock-bank { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .landmarks { grid-template-columns: minmax(0, 1fr); }
  .landmark { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); grid-template-rows: none; }
  .landmark svg { height: 100%; object-fit: cover; }
  .goals { grid-template-columns: minmax(0, 1fr); }
  .cyc-panel { grid-template-columns: minmax(0, 1fr); }
  .rail-t { display: none; }
  .rail-now { display: block; }
  .offline { grid-template-columns: minmax(0, 1fr); }
  .tool-label { display: none; }
  .tool { padding: 6px 10px; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .screen { padding-block: 26px 44px; }
  .landmark { grid-template-columns: minmax(0, 1fr); }
  .strata { grid-template-columns: minmax(0, 1fr); }
  .stratum { min-height: 0; padding: 12px 14px; }
  .lab-head, .lab-body { padding-left: 14px; padding-right: 14px; }
  .check { padding: 16px; }
  .slider-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .slider-row input { grid-column: 1 / -1; grid-row: 1; }
  .slider-row .hi { text-align: right; }
  .tray-hint { display: none; }
  .key-row { grid-template-columns: 2.1em minmax(0, 1fr); }
  .key-row .k-a { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- rock cycle: stage, lens and history ---------- */
.cyc-stage { position: relative; }
.cyc-now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; align-content: start; }
.cyc-lens { display: block; width: 118px; height: 118px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.rcl-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rcl-layer { transition: opacity 0.9s ease; }
.rcl-ring { fill: none; stroke: #ffffff; stroke-width: 4; }
.cyc-now-text { display: grid; gap: 4px; }
.cyc-now-name { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 1.45rem; line-height: 1.15; }
.cyc-now-place { font-size: 0.95rem; line-height: 1.4; color: var(--ink-2); }
/* the ring and name tag that mark the rock being followed */
.sc-ring { fill: none; stroke: #ffffff; stroke-width: 3; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)); }
.sc-tag rect { fill: rgba(16, 20, 22, 0.86); stroke: #ffffff; stroke-width: 1.5; }
.sc-tag-text { font-family: var(--font-body); font-weight: 700; font-size: 15px; fill: #ffffff; text-anchor: middle; }
/* the trail of where it has been */
.sc-trail { fill: none; stroke: #ffffff; stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9)); }
.sc-badge circle { fill: var(--accent); stroke: #ffffff; stroke-width: 2; }
.sc-badge text { font-family: var(--font-mono); font-weight: 700; font-size: 12px; fill: #ffffff; text-anchor: middle; }
/* the rock cycle wheel in the sky */
.sc-wheel-bg { fill: var(--sc-wheel-bg); stroke: var(--sc-wheel-line); stroke-width: 1; }
.sc-wheel-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-2); text-anchor: middle; }
.sc-wheel-edge { fill: none; stroke: var(--ink-2); stroke-width: 1.6; opacity: 0.55; }
.sc-wheel-edge.is-on { stroke: var(--accent); stroke-width: 4; opacity: 1; }
.sc-wheel-head { fill: var(--ink-2); opacity: 0.7; } .sc-wheel-head-on { fill: var(--accent); }
.sc-wheel-dot { stroke: #ffffff; stroke-width: 2; }
.sc-wheel-magma { fill: #e8642a; } .sc-wheel-igneous { fill: var(--band-ign); } .sc-wheel-sediment { fill: #d2ab70; }
.sc-wheel-sedimentary { fill: var(--band-sed); } .sc-wheel-metamorphic { fill: var(--band-met); }
.sc-wheel-label { font-family: var(--font-body); font-weight: 600; font-size: 11px; fill: var(--ink); }
.sc-wheel-node.is-here .sc-wheel-label { font-weight: 800; }
.sc-wheel-here { fill: none; stroke: var(--accent); stroke-width: 3; }
.sc-say { font-size: 17px; fill: var(--ink); }
.is-narrow .sc-say, .is-narrow .sc-wheel-layer, .is-narrow .sc-tag { display: none; }
.is-narrow .sc-ring { stroke-width: 5; }
.is-narrow .sc-badge circle { r: 16; } .is-narrow .sc-badge text { font-size: 18px; }
.is-narrow .cyc-now { grid-template-columns: auto minmax(0, 1fr); }
.cyc-hist-wrap { display: grid; gap: 8px; padding: 0 18px 18px; }
.cyc-history { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.cyc-history .h-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 0.88rem; line-height: 1.3; }
.h-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--accent); font-family: var(--font-mono); font-size: 0.74rem; }
.h-sw { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85); overflow: visible; }
.h-ign { background: var(--pat-ign), var(--band-ign); }
.h-sed { background: var(--pat-sed), var(--band-sed); }
.h-met { background: var(--pat-met), var(--band-met); }
.h-mag { background: #c9471b; }
.h-step { display: inline-grid; position: relative; padding: 0 6px 0 22px; line-height: 1.25; }
.h-step::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 2px; background: var(--ink-2); }
.h-step::after { content: ""; position: absolute; left: 14px; top: calc(50% - 4px); border: 5px solid transparent; border-left-color: var(--ink-2); border-right: 0; }
.h-proc { font-weight: 700; font-size: 0.86rem; }
.h-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-2); }
.sc-say rect { fill: rgba(16, 20, 22, 0.84); }
.sc-say-text { font-family: var(--font-body); font-weight: 650; font-size: 16px; fill: #ffffff; }
.il-label { font-family: var(--font-body); font-weight: 700; font-size: 11px; fill: #ffffff; text-anchor: middle; paint-order: stroke; stroke: rgba(50, 22, 10, 0.72); stroke-width: 3px; stroke-linejoin: round; }
