:root {
  --paper: #f5f2ec;
  --card: #fffdf9;
  --ink: #1d2126;
  --soft: #5a626c;
  --rule: #ddd6ca;
  --accent: #9a3b1e;      /* the colour of a fault */
  --ok: #2f7f73;
  --slow: #b7791f;
  --stage: #10161b;
  --stage-2: #172028;
  --stage-ink: #dfe6ea;
  --stage-soft: #8494a0;
  --stage-rule: rgba(255, 255, 255, 0.09);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- masthead and hero: everything on the centre line ---------- */

.masthead {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px 16px 0;
  text-align: center;
}
.wordmark {
  font: 500 26px/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.masthead nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.masthead nav a {
  font-size: 14px; color: var(--soft); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.hero {
  max-width: 780px; margin: 0 auto; padding: 68px 20px 56px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 18px; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
}
h1 {
  margin: 0; font: 400 clamp(34px, 5.4vw, 56px)/1.08 var(--serif);
  letter-spacing: -0.02em; text-wrap: balance;
}
.lede {
  margin: 24px auto 0; max-width: 640px; font-size: 18px; color: #3a4048; text-wrap: pretty;
}
.button {
  display: inline-block; margin-top: 30px; padding: 12px 22px;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  font-weight: 500; font-size: 15px; text-decoration: none;
}
.button:hover { background: var(--accent); color: #fff; }
.fineprint { margin: 22px auto 0; max-width: 620px; font-size: 13.5px; color: var(--soft); }

/* ---------- the classroom ---------- */

.classroom { max-width: 1240px; margin: 0 auto; padding: 0 20px 30px; scroll-margin-top: 16px; }

.lessons {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.lessons button {
  display: flex; align-items: center; gap: 9px;
  font: 500 14px/1.2 var(--sans); color: var(--soft);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 15px 8px 9px; cursor: pointer;
}
.lessons button:hover { border-color: var(--ink); color: var(--ink); }
.lessons button[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lessons .num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; background: rgba(0, 0, 0, 0.07);
}
.lessons button[aria-current="step"] .num { background: rgba(255, 255, 255, 0.16); }
.lessons button.done .num { background: var(--ok); color: #fff; }

.desk { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 22px; align-items: start; }

.lesson {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 26px 28px 28px;
}
.lesson .kicker { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.lesson h2 { margin: 0 0 14px; font: 400 30px/1.15 var(--serif); letter-spacing: -0.015em; text-align: left; }
.lesson p { margin: 0 0 14px; color: #33393f; }
.lesson h3 { margin: 22px 0 8px; font: 600 13px/1.3 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--soft); }
.lesson .type {
  display: block; margin: 0 0 6px; padding: 12px 14px; border-radius: 8px;
  background: var(--stage); color: var(--stage-ink); font: 13.5px/1.5 var(--mono);
  overflow-x: auto; white-space: nowrap;
}
.lesson .type::before { content: "$ "; color: var(--stage-soft); }
.lesson .aside { font-size: 14px; color: var(--soft); }
.lesson .outcome {
  margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--accent);
  background: #faf4ee; border-radius: 0 10px 10px 0;
}
.lesson .outcome[hidden] { display: none; }
.lesson .outcome h3 { margin-top: 0; color: var(--accent); }
.lesson .outcome p:last-child { margin-bottom: 0; }
.lesson .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 0 0 14px; }
.lesson .figure { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 9px 11px; }
.lesson .figure b { display: block; font: 500 22px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.lesson .figure span { font-size: 12.5px; color: var(--soft); }
.lesson .next { margin-top: 18px; }
.lesson .field { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.lesson .field h3 { margin-top: 0; }
.lesson .incident { margin: 0 0 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; }
.lesson .incident p { margin: 0 0 8px; font-size: 14.5px; }
.lesson .incident p:last-child { margin-bottom: 0; }
.lesson .incident .who { font: 500 18px/1.25 var(--serif); color: var(--ink); }
.lesson .incident .who span { font: 400 13px var(--sans); color: var(--soft); margin-left: 6px; }
.lesson .incident .lesson-link { color: var(--soft); }
.lesson .incident a { color: var(--accent); font-weight: 500; }
.lesson .incident a:hover { color: var(--ink); }
.lesson .next button {
  font: 500 14px var(--sans); color: var(--paper); background: var(--ink);
  border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
}
.lesson .next button:hover { background: var(--accent); }

.bench { display: grid; gap: 14px; min-width: 0; position: sticky; top: 14px; }

.stage {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--stage-2), var(--stage) 70%);
  border: 1px solid #0b1014;
}
#scene { display: block; width: 100%; height: 440px; cursor: grab; }
#scene:active { cursor: grabbing; }
#labels { position: absolute; inset: 0 0 auto 0; height: 440px; pointer-events: none; overflow: hidden; }
.label3d {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; text-align: center;
  font: 500 11.5px/1.25 var(--sans); letter-spacing: 0.02em; color: var(--stage-ink);
  text-shadow: 0 1px 5px #000, 0 0 2px #000;
}
.label3d small { display: block; font-weight: 400; color: var(--stage-soft); font-size: 10.5px; }
.label3d.bad small { color: #f2a48d; }
.label3d.good small { color: #86cfc3; }

.stage.flat #scene { display: none; }
.stage.flat #labels { position: static; height: auto; }
.stage.flat .stage-top { position: static; padding: 12px 12px 0; }
.no3d { margin: 0; padding: 18px 16px 16px; font-size: 13.5px; color: var(--stage-soft); }

.stage-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.chip {
  font: 500 12.5px/1 var(--mono); color: var(--stage-ink); font-variant-numeric: tabular-nums;
  background: rgba(10, 14, 18, 0.72); border: 1px solid var(--stage-rule); border-radius: 999px; padding: 7px 11px;
}
.chip.quiet { color: var(--stage-soft); pointer-events: auto; }
.chip[hidden] { display: none; }
.chip.quiet button {
  font: inherit; color: var(--stage-soft); background: none; border: 0; padding: 0 3px; cursor: pointer;
}
.chip.quiet button[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.chip.fault { color: #ffd9cc; border-color: rgba(242, 164, 141, 0.45); }

.stage figcaption { padding: 10px 14px 12px; border-top: 1px solid var(--stage-rule); }
#strip { display: block; width: 100%; height: 54px; cursor: pointer; }
.strip-key { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 7px; font-size: 12px; color: var(--stage-soft); }
.strip-key span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw.ok { background: #3fa798; } .sw.bad { background: #e2674a; }
.ln.slow { width: 18px; border-top: 2px solid #d9a441; display: inline-block; }
.speeds { margin-left: auto; gap: 3px !important; }
.speeds button {
  font: 500 12px var(--mono); color: var(--stage-soft); background: transparent;
  border: 1px solid var(--stage-rule); border-radius: 6px; padding: 3px 8px; cursor: pointer;
}
.speeds button[aria-pressed="true"] { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.terminal { border-radius: 14px; overflow: hidden; background: var(--stage); border: 1px solid #0b1014; }
.term-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px; border-bottom: 1px solid var(--stage-rule);
  font-size: 12.5px; color: var(--stage-soft);
}
.term-btn {
  font: 500 12.5px var(--sans); color: var(--stage-ink); background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stage-rule); border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
.term-btn:hover { background: rgba(255, 255, 255, 0.14); }
.term-body {
  height: 250px; overflow-y: auto; padding: 14px 16px 16px;
  font: 13px/1.55 var(--mono); color: var(--stage-ink); cursor: text;
  scrollbar-color: #33414c transparent;
}
#term-out { white-space: pre-wrap; overflow-wrap: anywhere; }
#term-out .cmd { color: #fff; }
#term-out .cmd::before { content: "lab $ "; color: #7fb8ae; }
#term-out .note { color: var(--stage-soft); }
#term-out .warn { color: #f2a48d; }
#term-out .fault { color: #ffcf8a; }
.term-line { display: flex; gap: 8px; align-items: baseline; }
.prompt { color: #7fb8ae; white-space: nowrap; }
#term-in {
  flex: 1; min-width: 0; font: inherit; color: #fff; background: transparent; border: 0; outline: 0; padding: 0;
  caret-color: #7fb8ae;
}

/* ---------- the reading sections below ---------- */

.prose { max-width: 1160px; margin: 0 auto; padding: 64px 20px 0; scroll-margin-top: 8px; }
.prose h2 { margin: 0 0 14px; font: 400 clamp(28px, 3.6vw, 38px)/1.12 var(--serif); letter-spacing: -0.015em; text-align: center; text-wrap: balance; }
.prose h3 { margin: 0 0 6px; font: 600 16px/1.3 var(--sans); }
.prose p { margin: 0 0 14px; color: #33393f; }
.prose .center { max-width: 680px; margin: 0 auto 26px; text-align: center; color: var(--soft); }
.cols { max-width: 1000px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 44px; margin-top: 30px; }

.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { padding: 11px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
th { font: 600 12px/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
tr:last-child td { border-bottom: 0; }
td.hot { color: var(--accent); font-weight: 600; }
#takeaways { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.take { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; }
.take h3 { font: 500 19px/1.25 var(--serif); margin-bottom: 8px; }
.take p { margin: 0; font-size: 15px; }

.code {
  margin: 0 auto 22px; max-width: 760px; padding: 18px 20px; border-radius: 12px;
  background: var(--stage); color: var(--stage-ink); font: 13.5px/1.6 var(--mono); overflow-x: auto;
}

.foot { max-width: 760px; margin: 0 auto; padding: 70px 20px 46px; text-align: center; font-size: 13.5px; color: var(--soft); }
.foot p { margin: 0 0 6px; }

@media (max-width: 940px) {
  .desk { grid-template-columns: 1fr; }
  .bench { position: static; }
  .cols { grid-template-columns: 1fr; }
  #scene, #labels { height: 320px; }
  .hero { padding: 48px 16px 40px; }
  .classroom, .prose { padding-left: 16px; padding-right: 16px; }
  .lesson { padding: 22px 20px; }
  .term-body { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- multigres lab additions ---------- */
.sw.amber { background: #d9a441; }
.ln.iso { width: 18px; border-top: 2px solid #e9c46a; display: inline-block; }
#term-out .good { color: #7fd1c3; }

/* What the cluster reported, next to what the clients saw. */
.hud { position: absolute; left: 12px; right: 12px; top: 52px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-size: 12.5px; color: var(--stage-ink); pointer-events: none; }
.hud[hidden] { display: none; }
.hud span { background: rgba(16, 22, 27, 0.78); border: 1px solid var(--stage-rule); border-radius: 999px; padding: 3px 11px; }
.hud b { font-weight: 600; }
.hud.ok span:first-child b { color: #7fd1c3; }
.hud.warn span:first-child b { color: #e0b65a; }
.hud.lie span:first-child b { color: #7fd1c3; }
.hud .bad { color: #ff8a6e; }
.hud .liebadge { background: #8f2d18; border-color: #ee6a4b; color: #fff; font-weight: 600; animation: lie 1.2s ease-in-out infinite; }
@keyframes lie { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .hud .liebadge { animation: none; } }

/* Run it yourself. */
.steps { max-width: 820px; margin: 28px auto 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 18px 46px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 500 14px/30px var(--sans); text-align: center; }
.steps h3 { margin: 4px 0 6px; }
.steps .code { margin: 8px 0; }
.own { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.own .button { cursor: pointer; margin-top: 0; }
#own-status { font-size: 14px; color: var(--soft); }

/* ?video=1: only the picture, for screen recordings. */
body.video { background: #10161b; }
body.video .masthead, body.video .hero, body.video .lessons, body.video .lesson, body.video .terminal,
body.video #results, body.video #method, body.video #live, body.video .foot, body.video .strip-key { display: none !important; }
body.video .classroom, body.video .desk, body.video .bench { display: block; max-width: none; margin: 0; padding: 0; }
body.video .stage { height: 100vh; border-radius: 0; margin: 0; }
body.video #strip { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; }
body.video #scene, body.video #labels { height: calc(100vh - 96px); }
body.video .stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; padding: 0 10px; }
body.video .hud { top: 56px; font-size: 15px; }
body.video .label3d { font-size: 13px; }

/* ?tiktok=1: a 1080x1920 frame: caption, the picture, a footer. */
body.tiktok { width: 1080px; height: 1920px; overflow: hidden; }
body.tiktok .stage { position: absolute; top: 470px; left: 0; width: 1080px; height: 1180px; }
body.tiktok #scene, body.tiktok #labels { height: 1060px; }
body.tiktok .stage figcaption { height: 120px; }
body.tiktok #strip { height: 110px; }
body.tiktok .label3d { font-size: 22px; }
body.tiktok .label3d small { font-size: 18px; }
body.tiktok .chip { font-size: 22px; padding: 6px 16px; }
body.tiktok .hud { top: 70px; font-size: 24px; gap: 10px 14px; }
body.tiktok .hud span { padding: 6px 16px; }
body.tiktok #runpick { display: none; }
.tt-cap { position: absolute; top: 0; left: 0; width: 1080px; height: 470px; box-sizing: border-box; padding: 110px 70px 0;
  display: flex; flex-direction: column; gap: 22px; color: #f4efe6; text-align: left; }
.tt-cap b { font: 500 70px/1.08 var(--serif); letter-spacing: -0.01em; }
.tt-cap span { font: 400 34px/1.3 var(--sans); color: #b9c6cf; }
.tt-cap.in { animation: ttin 0.45s ease-out; }
@keyframes ttin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tt-foot { position: absolute; left: 0; bottom: 0; width: 1080px; height: 270px; box-sizing: border-box; padding: 60px 70px;
  font: 400 28px/1.4 var(--sans); color: #8494a0; }
.tt-foot .tt-big { font: 500 52px/1.1 var(--mono); color: #f4efe6; }
body.tt-end .stage { opacity: 0.35; transition: opacity 0.6s; }

/* ---------- first screen: a compact hero, the result up front, the tour running below ---------- */

.masthead { flex-direction: row; justify-content: space-between; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 18px 20px 0; }
.hero { max-width: 1000px; padding: 34px 20px 26px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); }
.hero .eyebrow { margin-bottom: 12px; }
.hero .lede { margin-top: 14px; font-size: 17px; max-width: 700px; }
.stats { list-style: none; margin: 22px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; text-align: left; }
.stats li { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; }
.stats b { font: 500 30px/1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { font-size: 13.5px; line-height: 1.35; color: var(--soft); }
.cta { margin: 18px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta .button { margin-top: 0; }
.button.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); cursor: pointer; font-family: inherit; }
.button.ghost:hover { background: var(--ink); color: var(--paper); }
.hero .fineprint { margin-top: 12px; }

.tour-cap {
  position: absolute; left: 50%; top: 92px; transform: translateX(-50%); width: min(92%, 640px);
  text-align: center; pointer-events: none; text-shadow: 0 1px 8px #000, 0 0 2px #000;
}
.tour-cap b { display: block; font: 500 26px/1.15 var(--serif); color: #fff; }
.tour-cap span { display: block; margin-top: 5px; font-size: 14px; color: #c9d4db; }
.tour-cap.in { animation: tourin 0.45s ease-out; }
@keyframes tourin { from { opacity: 0; } to { opacity: 1; } }
.stage.tour-end #scene { opacity: 0.4; transition: opacity 0.6s; }
.stage.tour-end .tour-cap { top: 150px; }
.stage.tour-end .tour-cap b { font-size: 34px; }

@media (max-width: 940px) {
  /* Phones: the picture first, then the lesson, then the terminal. */
  .classroom { display: flex; flex-direction: column; }
  .desk, .bench { display: contents; }
  .stage { order: 1; margin-bottom: 14px; }
  .lessons { order: 2; }
  .lesson { order: 3; margin-bottom: 14px; }
  .terminal { order: 4; }
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 10px 14px; }
  .tour-cap { top: 88px; }
  .tour-cap b { font-size: 20px; }
  .tour-cap span { font-size: 12.5px; }
  .stage.tour-end .tour-cap { top: 110px; }
  .stage.tour-end .tour-cap b { font-size: 24px; }
}
@media (max-width: 600px) {
  .masthead { justify-content: center; }
  .masthead nav a[href="#method"] { display: none; }
  .hero { padding-top: 22px; }
  .hero .lede { font-size: 15.5px; }
  .label3d { font-size: 10px; }
  .label3d small { font-size: 9px; }
}

/* Wide screens: text on the left, the three results on the right, so the stage starts in the first screen. */
@media (min-width: 1100px) {
  .hero {
    max-width: 1240px; padding: 26px 20px 22px; text-align: left;
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 40px; align-items: center;
    grid-template-areas: "eye stats" "h1 stats" "lede stats" "cta stats" "fine stats";
  }
  .hero .eyebrow { grid-area: eye; }
  .hero h1 { grid-area: h1; font-size: clamp(30px, 3.2vw, 42px); }
  .hero .lede { grid-area: lede; margin-left: 0; }
  .hero .cta { grid-area: cta; justify-content: flex-start; }
  .hero .fineprint { grid-area: fine; margin-left: 0; font-size: 12.5px; }
  .stats { grid-area: stats; grid-template-columns: 1fr; margin: 0; gap: 10px; }
  .stats li { padding: 11px 16px; }
}

@media (max-width: 600px) {
  #scene, #labels { height: 400px; }
  .label3d.zone small, .label3d.client small { display: none; }
  .label3d.etcd { visibility: hidden; }
  .tour-cap { top: 128px; }
  .stage.tour-end .tour-cap { top: 150px; }
}

/* ---------- friendlier controls: replay button, legend, chart hint, more drills ---------- */

.run-row { margin: 18px 0 6px; }
.button.run { margin-top: 0; border: 0; cursor: pointer; font-family: inherit; font-size: 15.5px; padding: 12px 22px; }
.lesson h3 + code.type, .lesson .run-row + h3 { margin-top: 14px; }

.top-right { display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.top-right .chip[hidden] { display: none; }
.keybtn { cursor: pointer; font: 500 12.5px/1 var(--mono); }
.keybtn:hover, .keybtn[aria-expanded="true"] { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

.key-panel {
  position: absolute; top: 50px; right: 12px; z-index: 5; width: min(360px, calc(100% - 24px));
  background: rgba(10, 14, 18, 0.95); border: 1px solid var(--stage-rule); border-radius: 12px;
  padding: 12px 14px; color: var(--stage-ink); font-size: 13px; line-height: 1.45;
}
.key-panel[hidden] { display: none; }
.key-title { margin: 0 0 8px; font-weight: 600; }
.key-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.key-panel li { display: flex; gap: 8px; align-items: baseline; }
.key-panel li b { font-weight: 600; }
.key-note { margin: 10px 0 0; color: var(--stage-soft); font-size: 12px; }
.k { flex: none; display: inline-block; width: 12px; height: 12px; position: relative; top: 1px; }
.k.ring { border: 2px solid #e9b949; border-radius: 50%; }
.k.cyl { background: #6f8796; border-radius: 3px 3px 5px 5px; }
.k.box { background: #5d7380; border-radius: 2px; }
.k.dia { background: #c3d2dc; transform: rotate(45deg) scale(0.8); }
.k.dot { width: 8px; height: 8px; border-radius: 50%; top: 0; }
.k.dot.ok { background: #58c2b2; }
.k.dot.bad { background: #ee6a4b; margin-left: -4px; }
.k.dot.iso { background: #e9c46a; }
.k.glass { background: rgba(238, 106, 75, 0.35); border: 1px solid rgba(238, 106, 75, 0.7); }
.k.gauge { width: 5px; height: 13px; background: linear-gradient(#ee6a4b 60%, #3a4a55 60%); }

.jump-hint { color: var(--stage-soft); font-style: italic; }

#more { scroll-margin-top: 16px; }
.more-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.more-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.more-card:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.more-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.more-card b { font: 500 18px/1.25 var(--serif); }
.more-num { font: 500 22px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.more-card span:last-child { font-size: 14px; color: var(--soft); }
@media (prefers-reduced-motion: reduce) { .more-card { transition: none; } .more-card:hover { transform: none; } }

.key-panel li { display: grid; grid-template-columns: 26px 1fr; gap: 0 6px; align-items: start; }
.ki { display: flex; gap: 2px; align-items: center; min-height: 18px; }
.kt b { margin-right: 2px; }
.chip { white-space: nowrap; }
.keybtn .short { display: none; }
@media (max-width: 600px) {
  .keybtn .long { display: none; }
  .keybtn .short { display: inline; }
  .stage-top .chip { padding: 6px 9px; font-size: 11.5px; }
}
