:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #0e0e10;
  --panel-raised: #131316;
  --line: #232328;
  --line-soft: #1a1a1e;
  --text: #ededed;
  --muted: #a1a1aa;
  --green: #22c55e;
  --amber: #f5a524;
  --red: #ff453a;
  --off: #2a2a2e;
  --sans: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: transparent; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: -.01em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Signal-light system: a lamp is the only colour in the product. */
.lamp {
  --lamp-color: var(--off);
  --lamp-rgb: 42, 42, 46;
  --lamp-glow: transparent;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #141418;
  color: #07070a;
  box-shadow: inset 0 1px 2px #000000cc, inset 0 0 0 1px #ffffff12;
  transition: background-color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.lamp::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 13%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #ffffff 0 34%, #ffffff00 72%);
  opacity: 0;
  transition: opacity .3s ease;
}
.lamp svg {
  position: relative;
  z-index: 1;
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .2s ease;
}
.lamp[data-state="green"] {
  --lamp-color: var(--green);
  --lamp-rgb: 34, 197, 94;
  --lamp-glow: rgba(34, 197, 94, .85);
  color: #04170b;
  background: radial-gradient(circle at 36% 30%, #ffffff 0 7%, #d8ffe3 15%, #3ee07a 42%, #0b7a38 100%);
  box-shadow:
    inset 0 0 0 1px #ffffff70,
    inset 0 -2px 5px #00000066,
    0 0 4px rgba(34, 197, 94, .7),
    0 0 14px rgba(34, 197, 94, .32),
    0 0 36px rgba(34, 197, 94, .12);
}
.lamp[data-state="amber"] {
  --lamp-color: var(--amber);
  --lamp-rgb: 245, 165, 36;
  --lamp-glow: rgba(245, 165, 36, .85);
  color: #1d1203;
  background: radial-gradient(circle at 36% 30%, #ffffff 0 7%, #ffe9b8 15%, #ffc046 44%, #8a5607 100%);
  box-shadow:
    inset 0 0 0 1px #ffffff70,
    inset 0 -2px 5px #00000066,
    0 0 4px rgba(245, 165, 36, .66),
    0 0 14px rgba(245, 165, 36, .3),
    0 0 36px rgba(245, 165, 36, .12);
}
.lamp[data-state="red"] {
  --lamp-color: var(--red);
  --lamp-rgb: 255, 69, 58;
  --lamp-glow: rgba(255, 69, 58, .85);
  color: #1c0503;
  background: radial-gradient(circle at 36% 30%, #ffffff 0 7%, #ffd9d5 15%, #ff6a60 44%, #8a1712 100%);
  box-shadow:
    inset 0 0 0 1px #ffffff70,
    inset 0 -2px 5px #00000066,
    0 0 4px rgba(255, 69, 58, .68),
    0 0 14px rgba(255, 69, 58, .3),
    0 0 36px rgba(255, 69, 58, .12);
}
.lamp[data-state="green"]::before,
.lamp[data-state="amber"]::before,
.lamp[data-state="red"]::before { opacity: .9; }
.lamp[data-state="green"] svg,
.lamp[data-state="amber"] svg,
.lamp[data-state="red"] svg { opacity: 1; }
.lamp::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 0 var(--lamp-glow);
}
.lamp.neutral {
  background: #0b0b0d;
  box-shadow: inset 0 0 0 1.5px #9a9aa4, 0 0 0 6px var(--bg);
}
.lamp.neutral::before { opacity: 0; }
.lamp.is-on { animation: lamp-ignite .3s ease-out; }
.lamp.is-on::after { animation: lamp-ring .7s ease-out 1; }
.lamp[data-state="red"].is-flash { animation: lamp-flash .55s ease-in-out 1; }
.lamp[data-state="amber"].is-pending { animation: lamp-breathe 3s ease-in-out infinite; }
@keyframes lamp-ignite {
  from { opacity: .35; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes lamp-ring {
  from { opacity: .5; box-shadow: 0 0 0 0 var(--lamp-glow); }
  to { opacity: 0; box-shadow: 0 0 0 12px transparent; }
}
@keyframes lamp-flash {
  0%, 100% { opacity: 1; }
  45% { opacity: .38; }
}
@keyframes lamp-breathe {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px #ffffff70,
      inset 0 -2px 5px #00000066,
      0 0 4px rgba(245, 165, 36, .58),
      0 0 14px rgba(245, 165, 36, .26),
      0 0 30px rgba(245, 165, 36, .1);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px #ffffff8a,
      inset 0 -2px 5px #00000066,
      0 0 6px rgba(245, 165, 36, .8),
      0 0 20px rgba(245, 165, 36, .4),
      0 0 44px rgba(245, 165, 36, .16);
  }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

#dotfield { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.page { position: relative; z-index: 1; width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 40;
  padding: 10px 14px; border-radius: 8px;
  background: var(--text); color: #000; text-decoration: none; font-size: 13px;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid #ededed;
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.02em;
}
.logo-lights { display: inline-flex; gap: 4px; }
.logo-lights .lamp { width: 8px; height: 8px; }
.logo-lights .lamp[data-state] { box-shadow: inset 0 0 0 1px #ffffff55, 0 0 4px var(--lamp-glow), 0 0 10px rgba(var(--lamp-rgb), .28); }
.logo-lights .lamp svg { display: none; }
.logo-lights .lamp::after { inset: -1px; }
.wordmark-zh { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.header-nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: 22px;
  font-size: 13.5px; color: var(--muted);
}
.header-nav a { text-decoration: none; padding: 4px 0; }
.header-nav a:hover { color: var(--text); }
.language-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.language-switch button {
  border: 0; background: transparent; color: var(--muted);
  padding: 4px 2px; cursor: pointer; border-radius: 4px;
}
.language-switch button[aria-pressed="true"] { color: var(--text); font-weight: 700; }
.language-switch button:hover { color: var(--text); }

/* Shared headings */
.kicker {
  font-size: 12.5px; color: var(--muted); margin: 0 0 14px;
}
.section-head { max-width: 660px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 800;
  line-height: 1.25; letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head .lede { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.lede { color: var(--muted); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.button:hover { border-color: #3a3a42; }
.button.primary { background: var(--text); border-color: var(--text); color: #08080a; }
.button.primary:not(:disabled):hover { background: #ffffff; border-color: #ffffff; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.danger { border-color: #2c2c32; color: var(--muted); }
.button.danger:not(:disabled):hover { border-color: var(--red); color: var(--red); }
#export-review:disabled { background: transparent; border-color: #2a2a30; color: #6f6f78; opacity: 1; }
.text-button {
  border: 0; background: transparent; color: var(--text);
  font-size: 12.5px; text-decoration: underline; text-underline-offset: 4px;
  padding: 2px 0; cursor: pointer;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center;
  padding: 56px 0 56px;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-copy .pain-copy { margin-top: 18px; }
.hero h1 {
  font-size: clamp(40px, 4.9vw, 64px); font-weight: 800;
  line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 24px;
}
.hero h1 em { font-style: normal; color: inherit; }
.hero .intro { color: var(--muted); font-size: 16.5px; line-height: 1.85; max-width: 32em; margin-bottom: 30px; }
.availability { margin-top: 16px; color: var(--muted); font-size: 12.5px; }

.example-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 84px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}
.sim-tag {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #2e2e34; border-radius: 999px;
  padding: 3px 10px; font-size: 11px; color: var(--text);
}
.code-sample {
  margin: 0; padding: 10px 16px;
  background: #070708;
  border-bottom: 1px solid var(--line-soft);
  font: 10.5px/1.55 var(--mono);
  color: #c9c9d1; overflow-x: auto;
}
.tok-key { color: var(--text); font-weight: 600; }
.tok-fn { color: var(--muted); }
.tok-comment { color: #6f6f78; }
.tok-string { color: #a1a1aa; }
.example-body { padding: 14px 16px 14px; }
.example-body h2 { font-size: 18px; font-weight: 750; line-height: 1.45; letter-spacing: -.01em; }
.example-scope { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.student-answer {
  margin: 14px 0 0; padding: 11px 13px;
  border-left: 1px solid #34343c;
  background: #0b0b0d;
  font-size: 13px; line-height: 1.7; color: #d4d4d8;
}
.point-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo-points { margin-top: 8px; gap: 7px; }
.demo-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 12.5px; line-height: 1.6; color: #d4d4d8; }
.demo-point-body { min-width: 0; }
.demo-point-text { margin: 0; }
.point-reason { margin: 4px 0 0; font-size: 11px; line-height: 1.55; color: var(--muted); }
.point-quote { display: inline-block; margin: 5px 0 0; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); font-size: 10.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.hero-answer { margin-top: 12px; }
.hero-answer-label { display: block; margin-bottom: 4px; font-size: 10.5px; color: var(--muted); }
#hero-quote { margin: 0; padding: 9px 11px; }
#hero-followup { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #2a2a30; font-size: 12.5px; line-height: 1.6; color: var(--text); opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
#hero-followup.is-shown { opacity: 1; transform: none; }
.hero-result { margin-top: 14px; }
.hero-result-label { margin: 0 0 6px; font-size: 10.5px; color: var(--muted); }
.hero-try {
  width: auto;
  min-height: 36px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 197, 94, .5);
  background: #0d1a12;
  color: #4ade80;
  font-size: 12.5px;
}
.hero-try:hover { border-color: var(--green); background: #102317; color: #86efac; }
.hero-clear { display: none; }
.hero-options { margin: 12px 0 0; padding: 0; border: 0; display: grid; gap: 6px; }
.hero-options legend { margin-bottom: 6px; padding: 0; font-size: 11.5px; color: var(--muted); }
.hero-option {
  width: 100%; padding: 8px 11px;
  border: 1px solid #26262c; border-radius: 9px;
  background: #101013; color: var(--text);
  font: inherit; font-size: 12.5px; line-height: 1.55; text-align: left;
  cursor: pointer; transition: border-color .18s ease, background-color .18s ease;
}
.hero-option:hover { border-color: #3a3a42; }
.hero-option[aria-pressed="true"] { border-color: #6a6a74; background: #17171a; }
.hero-option:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.demo-points .lamp { width: 32px; height: 32px; }
.followup {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed #2a2a30;
  font-size: 12.5px; color: var(--text);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.followup.is-shown { opacity: 1; transform: none; }
.sim-note { margin-top: 10px; color: var(--muted); font-size: 10.5px; }

/* Method: three panels on one circuit line */
.method { position: relative; isolation: isolate; padding: 72px 0 8px; border-top: 1px solid var(--line-soft); scroll-margin-top: 72px; }
.layers {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; margin: 40px 0 0; padding: 0; list-style: none;
}
.layers::before {
  content: ""; position: absolute; top: 7px; left: 1%; right: 1%;
  height: 1px; background: #2a2a30;
}
.layer-card { position: relative; min-width: 0; display: flex; flex-direction: column; }
.layer-head { display: flex; align-items: center; gap: 10px; height: 15px; margin-bottom: 17px; }
.layer-head .lamp { width: 14px; height: 14px; }
.lamp.neutral {
  background: #0b0b0d;
  box-shadow: inset 0 0 0 1.5px #9a9aa4, 0 0 0 6px var(--bg);
}
.layer-head .mono { position: relative; z-index: 1; color: var(--muted); font-size: 11.5px; background: #000; padding: 2px 6px; border-radius: 4px; }
.layer-card:not(:last-child) .layer-head::after {
  content: ""; margin-left: auto; width: 6px; height: 6px;
  border-top: 1px solid #6f6f79; border-right: 1px solid #6f6f79;
  transform: rotate(45deg); margin-right: 2px;
}
.layer-body {
  flex: 1;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px;
}
.layer-body h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.layer-q { margin-top: 12px; font-size: 14.5px; color: var(--text); }
.layer-detail { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.audience { display: block; clear: both; margin: 34px 0 0; color: var(--muted); font-size: 12.5px; }
.hero-glow {
  position: absolute;
  top: 56%;
  left: 58%;
  z-index: 0;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: .82;
  pointer-events: none;
  filter: blur(40px);
  transition: opacity 1s ease;
}
.glow-layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-glow[data-light="white"] .glow-layer[data-light="white"],
.hero-glow[data-light="green"] .glow-layer[data-light="green"],
.hero-glow[data-light="amber"] .glow-layer[data-light="amber"],
.hero-glow[data-light="red"] .glow-layer[data-light="red"] {
  opacity: 1;
}
.glow-layer[data-light="amber"] {
  background: radial-gradient(circle closest-side,
    rgba(245, 165, 36, .18) 0%,
    rgba(245, 165, 36, .155) 16%,
    rgba(245, 165, 36, .105) 34%,
    rgba(245, 165, 36, .055) 52%,
    rgba(245, 165, 36, .022) 68%,
    rgba(245, 165, 36, .007) 82%,
    rgba(245, 165, 36, 0) 94%,
    transparent 100%);
}
.glow-layer[data-light="white"] {
  background: radial-gradient(circle closest-side,
    rgba(255, 255, 255, .18) 0%,
    rgba(255, 255, 255, .16) 16%,
    rgba(255, 255, 255, .11) 34%,
    rgba(255, 255, 255, .06) 52%,
    rgba(255, 255, 255, .025) 68%,
    rgba(255, 255, 255, .008) 82%,
    rgba(255, 255, 255, 0) 94%,
    transparent 100%);
}
.glow-layer[data-light="green"] {
  background: radial-gradient(circle closest-side,
    rgba(34, 197, 94, .18) 0%,
    rgba(34, 197, 94, .155) 16%,
    rgba(34, 197, 94, .105) 34%,
    rgba(34, 197, 94, .055) 52%,
    rgba(34, 197, 94, .022) 68%,
    rgba(34, 197, 94, .007) 82%,
    rgba(34, 197, 94, 0) 94%,
    transparent 100%);
}
.glow-layer[data-light="red"] {
  background: radial-gradient(circle closest-side,
    rgba(255, 69, 58, .18) 0%,
    rgba(255, 69, 58, .155) 16%,
    rgba(255, 69, 58, .105) 34%,
    rgba(255, 69, 58, .055) 52%,
    rgba(255, 69, 58, .022) 68%,
    rgba(255, 69, 58, .007) 82%,
    rgba(255, 69, 58, 0) 94%,
    transparent 100%);
}
.hero-glow.is-pulsing { animation: hero-glow-pulse 1s ease-out; }
@keyframes hero-glow-pulse {
  0% { opacity: .82; }
  35% { opacity: 1; }
  100% { opacity: .82; }
}
.section-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(255, 255, 255, .1);
  opacity: 0;
  transform: translateY(56px) scale(.96);
  transition: opacity 1.2s ease, transform 1.2s ease, background-color .8s ease;
  pointer-events: none;
}
.section-glow.is-visible { opacity: 1; transform: none; }
.section-glow[data-glow="method"] { -webkit-mask: radial-gradient(560px circle at 78% 22%, #000, transparent 72%); mask: radial-gradient(560px circle at 78% 22%, #000, transparent 72%); }
.section-glow[data-glow="practice"] { -webkit-mask: radial-gradient(620px circle at 8% 34%, #000, transparent 72%); mask: radial-gradient(620px circle at 8% 34%, #000, transparent 72%); }
.section-glow[data-glow="records"] { -webkit-mask: radial-gradient(620px circle at 88% 70%, #000, transparent 72%); mask: radial-gradient(620px circle at 88% 70%, #000, transparent 72%); }
.method > :not(.section-glow),
.practice > :not(.section-glow),
.records > :not(.section-glow) { position: relative; z-index: 1; }
.pain-copy { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* Practice */
.practice { position: relative; isolation: isolate; padding: 72px 0 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 72px; }
.practice-panel {
  position: relative;
  margin-top: 30px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
#load-message { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
#reload-questions { margin-top: 12px; }
.selectors { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; position: relative; min-width: 0; }
.field > span { font-size: 12px; color: var(--muted); }
.question-selector { flex: 1; min-width: 0; }
select {
  width: 100%; min-width: 0; max-width: 100%; min-height: 42px;
  appearance: none;
  background: #141417; color: var(--text);
  border: 1px solid #2a2a30; border-radius: 9px;
  padding: 10px 34px 10px 12px;
  font: inherit; font-size: 13.5px; cursor: pointer;
}
select:hover { border-color: #3a3a42; }
.field::after {
  content: ""; position: absolute; right: 14px; bottom: 18px;
  width: 6px; height: 6px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
#random-question { min-height: 42px; flex: none; }
.layer-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.layer-tabs button {
  display: flex; align-items: center; gap: 9px;
  background: #101013; color: var(--muted);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 12.5px; text-align: left; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.layer-tabs button:hover { border-color: #34343c; }
.layer-tabs button[aria-current="true"] { background: #17171a; border-color: #3a3a42; color: var(--text); }
.layer-tabs .lamp { width: 18px; height: 18px; }
.layer-tabs .tab-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.answer-card {
  position: relative;
  background: #0b0b0d; border: 1px solid #1c1c20; border-radius: 12px;
  padding: 24px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#layer-label { color: var(--muted); font-size: 11.5px; }
.layer-light { display: inline-flex; align-items: center; gap: 8px; }
.layer-light .micro { font-size: 10.5px; color: var(--muted); }
.layer-light .lamp { width: 18px; height: 18px; }
.answer-card h3 { margin: 12px 0 0; font-size: 21px; font-weight: 750; line-height: 1.4; letter-spacing: -.01em; }
#layer-prompt { margin-top: 10px; font-size: 14px; line-height: 1.85; color: #d4d4d8; white-space: pre-wrap; }
#answer-form { margin-top: 20px; }
#answer-form label, .retry-area label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
textarea {
  display: block; width: 100%; min-height: 150px;
  background: #101013; color: var(--text);
  border: 1px solid #2a2a30; border-radius: 10px;
  padding: 13px 14px; font: inherit; font-size: 14px; line-height: 1.7;
  resize: vertical;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea:hover { border-color: #34343c; }
textarea:focus { outline: none; border-color: #5a5a64; box-shadow: 0 0 0 3px #ffffff14; }
#answer { min-height: 0; overflow-y: hidden; resize: none; }
.answer-meta { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
.answer-meta p { color: var(--muted); font-size: 11.5px; margin: 0; }
#answer-count { color: var(--muted); font-size: 11.5px; white-space: nowrap; font-family: var(--mono); }
.submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kbd-hint { color: var(--muted); font-size: 10.5px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
#answer-message, .rating-status { margin-top: 14px; color: var(--muted); font-size: 12.5px; }

#self-check { margin-top: 24px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.check-head h4, .retry-area h4 { font-size: 13.5px; font-weight: 700; }
.check-head p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.suggestion {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 12px;
  border: 1px solid #2e2e34; border-radius: 9px; background: #111114;
  font-size: 12px; color: var(--muted);
}
.rubric { margin-top: 12px; }
.rubric li { min-width: 0; }
.rubric.is-entering li { animation: point-in .3s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes point-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.light-legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 12px; font-size: 11.5px; color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item .lamp { width: 12px; height: 12px; }
.legend-hint { margin-left: auto; color: #77777f; }
.point-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: #101013; border: 1px solid #222227; border-radius: 10px;
}
.point-lamp {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 2px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; cursor: pointer;
}
.point-lamp:hover { background: #17171b; border-color: #2e2e34; }
.point-lamp:focus-visible { outline: none; }
.point-lamp:focus-visible .lamp { outline: 2px solid #ffffff; outline-offset: 3px; }
.point-row { align-items: center; }
.point-row[data-state="green"] { border-color: rgba(34, 197, 94, .34); background: linear-gradient(90deg, rgba(34, 197, 94, .12), rgba(34, 197, 94, 0) 36%), #101013; }
.point-row[data-state="amber"] { border-color: rgba(245, 165, 36, .3); background: linear-gradient(90deg, rgba(245, 165, 36, .1), rgba(245, 165, 36, 0) 36%), #101013; }
.point-row[data-state="red"] { border-color: rgba(255, 69, 58, .34); background: linear-gradient(90deg, rgba(255, 69, 58, .12), rgba(255, 69, 58, 0) 36%), #101013; }
.point-lamp .lamp { width: 24px; height: 24px; }
.point-text { min-width: 0; color: var(--text); font-size: 13px; line-height: 1.65; }
.retry-area { margin-top: 26px; }
.retry-area > p { margin-top: 6px; }
details {
  margin-top: 12px; padding: 11px 13px;
  background: #101013; border: 1px solid #222227; border-radius: 10px;
  font-size: 12.5px;
}
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; color: var(--muted); }
summary:hover { color: var(--text); }
.answer-text, .sample-answer, .tl-answer { white-space: pre-wrap; overflow-wrap: anywhere; }
#before-answer { margin-top: 10px; color: #d4d4d8; }
.retry-area label { margin-top: 16px; }
.fine-print { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.confirm-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
}
.confirm-row .fine-print { margin: 0; max-width: 34em; }
.warning {
  margin-bottom: 16px; padding: 11px 13px;
  border: 1px solid #3a3020; border-left: 2px solid var(--amber); border-radius: 8px;
  background: #12100b; color: #e8dcc4; font-size: 12.5px;
}

/* Records */
.records { position: relative; isolation: isolate; padding: 72px 0 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 72px; }
.records-panel {
  position: relative;
  margin-top: 30px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
  display: grid; gap: 28px;
}
.records-block { min-width: 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h3 { font-size: 14.5px; font-weight: 700; }
.block-head p { color: var(--muted); font-size: 11px; }
.heat-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.heat-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.heat-toggle button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 10.5px; padding: 4px 9px; cursor: pointer;
}
.heat-toggle button:hover { color: var(--text); }
.heat-toggle button[aria-pressed="true"] { background: #1b1b1f; color: var(--text); }
.heat-scroll { overflow: visible; }
.heatmap { width: max-content; max-width: 100%; }
.heat-head, .heat-row {
  display: grid;
  grid-template-columns: 300px repeat(3, 60px);
  gap: 8px;
  align-items: center;
}
.heat-head { padding-bottom: 8px; color: var(--muted); font: 11px var(--mono); }
.heat-head span:not(:first-child) { text-align: center; }
.heat-body { display: grid; gap: 8px; }
.heat-question { min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.heat-question .mono { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.heat-title { display: block; }
.heat-cell {
  position: relative;
  display: grid; place-items: center;
  width: 60px; height: 60px; padding: 0;
  border: 1px solid #232328; border-radius: 12px;
  background: #101013; color: #3a3a42;
  cursor: pointer;
  transition: background-color .6s ease, border-color .6s ease, box-shadow .6s ease, transform .18s ease;
}
.heat-cell[data-state="green"] {
  color: #4ade80;
  border-color: #276b41;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(74, 222, 128, .3) 0%, rgba(34, 197, 94, .12) 46%, rgba(34, 197, 94, 0) 78%),
    #0e2316;
  box-shadow:
    inset 0 0 0 1px rgba(74, 222, 128, .3),
    inset 0 0 16px rgba(34, 197, 94, .18),
    0 0 10px rgba(34, 197, 94, .08);
}
.heat-cell[data-state="amber"] {
  color: #fbbf24;
  border-color: #7a5316;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(251, 191, 36, .28) 0%, rgba(245, 165, 36, .11) 46%, rgba(245, 165, 36, 0) 78%),
    #241b0d;
  box-shadow:
    inset 0 0 0 1px rgba(251, 191, 36, .28),
    inset 0 0 16px rgba(245, 165, 36, .16),
    0 0 10px rgba(245, 165, 36, .07);
}
.heat-cell[data-state="red"] {
  color: #ff6b60;
  border-color: #7a2a26;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 107, 96, .28) 0%, rgba(255, 69, 58, .11) 46%, rgba(255, 69, 58, 0) 78%),
    #240f0e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 107, 96, .28),
    inset 0 0 16px rgba(255, 69, 58, .16),
    0 0 10px rgba(255, 69, 58, .07);
}
.heat-cell:hover { transform: translateY(-1px); border-color: #4a4a54; }
.heat-cell:active { transform: none; }
.heat-icon {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.heat-empty { width: 6px; height: 6px; border-radius: 50%; background: #3a3a42; }
.heat-corner { position: absolute; top: 5px; left: 7px; z-index: 1; display: flex; align-items: center; gap: 3px; }
.heat-layer { font: 9px/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.heat-up { font: 11px/1 var(--mono); color: #4ade80; text-shadow: 0 0 6px #22c55e66; }
.heat-history { position: absolute; right: 5px; bottom: 5px; display: flex; align-items: center; gap: 3px; }
.heat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--off); }
.heat-dot[data-state="green"] { background: #4ade80; box-shadow: 0 0 4px #22c55e88; }
.heat-dot[data-state="amber"] { background: #fbbf24; box-shadow: 0 0 4px #f5a52488; }
.heat-dot[data-state="red"] { background: #ff6b60; box-shadow: 0 0 4px #ff453a88; }
.heat-index { display: none; font: 10px var(--mono); color: var(--muted); }
.heat-cell::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  z-index: 5;
  padding: 6px 9px; border-radius: 7px;
  background: #17171a; border: 1px solid #2e2e34;
  color: var(--text); font: 400 11px/1.5 var(--sans);
  width: max-content; max-width: 230px; text-align: left;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.heat-row .heat-cell:nth-of-type(1)::after { left: 0; transform: translate(0, 4px); }
.heat-row .heat-cell:nth-of-type(3)::after { left: auto; right: 0; transform: translate(0, 4px); }
.heat-cell:hover::after, .heat-cell:focus::after { opacity: 1; transform: translate(-50%, 0); }
.heat-row .heat-cell:nth-of-type(1):hover::after,
.heat-row .heat-cell:nth-of-type(1):focus::after,
.heat-row .heat-cell:nth-of-type(3):hover::after,
.heat-row .heat-cell:nth-of-type(3):focus::after { transform: translate(0, 0); }
.heat-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  margin-top: 14px; color: var(--muted); font-size: 11.5px;
}
.heat-stat { display: inline-flex; align-items: center; gap: 6px; }
.heat-stat .lamp { width: 12px; height: 12px; }
.heat-stat .lamp svg { width: 8px; height: 8px; }
.heat-stat-count { font-family: var(--mono); color: var(--text); }
.empty-note { color: var(--muted); font-size: 12.5px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item {
  display: grid; grid-template-columns: 3px minmax(0, 1fr);
  gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-bar { width: 3px; border-radius: 2px; background: var(--off); }
.tl-bar[data-state="green"] { background: var(--green); box-shadow: 0 0 6px #22c55e66; }
.tl-bar[data-state="amber"] { background: var(--amber); box-shadow: 0 0 6px #f5a52466; }
.tl-bar[data-state="red"] { background: var(--red); box-shadow: 0 0 6px #ff453a66; }
.tl-main { min-width: 0; }
.tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-time { color: var(--muted); font-size: 10.5px; }
.tl-verdict { font-size: 11.5px; color: var(--text); }
.tl-question {
  display: block; margin-top: 5px; padding: 0;
  background: none; border: 0; color: var(--text);
  font-size: 13.5px; text-align: left; text-underline-offset: 4px; cursor: pointer;
}
.tl-question:hover { text-decoration: underline; }
.tl-missed-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.tl-missed-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.tl-missed-list .lamp { width: 12px; height: 12px; margin-top: 2px; }
.tl-trace { display: flex; align-items: center; gap: 5px; margin-top: 9px; }
.tl-trace .lamp { width: 9px; height: 9px; }
.tl-trace .lamp svg { display: none; }
.tl-trace .arrow { color: var(--muted); font-size: 10px; line-height: 1; }
.tl-answers { margin-top: 10px; background: #0b0b0d; }
.tl-answers p { margin-top: 8px; color: #d4d4d8; font-size: 12px; }
.tl-answers strong { display: block; color: var(--muted); font-weight: 500; font-size: 10.5px; margin-bottom: 4px; }

.records-actions {
  display: grid; gap: 14px;
  border-top: 1px solid var(--line-soft); padding-top: 20px;
}
.switch-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track {
  position: relative; flex: none;
  width: 34px; height: 19px; margin-top: 2px;
  border: 1px solid #3a3a42; border-radius: 999px; background: #141417;
  transition: background-color .2s ease, border-color .2s ease;
}
.switch-track::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--muted);
  transition: transform .2s ease, background-color .2s ease;
}
.switch-row input:checked + .switch-track { background: #26262c; border-color: #6a6a74; }
.switch-row input:checked + .switch-track::after { transform: translateX(15px); background: var(--text); }
.switch-row input:focus-visible + .switch-track { outline: 2px solid #ededed; outline-offset: 3px; }
.switch-text { font-size: 12.5px; color: var(--text); line-height: 1.5; }
.switch-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; max-width: 52ch; }
.records-buttons { gap: 10px; }

/* Dialog */
.dialog {
  width: min(420px, calc(100% - 40px));
  background: var(--panel); color: var(--text);
  border: 1px solid #2e2e34; border-radius: var(--radius);
  padding: 24px;
}
.dialog::backdrop { background: #000000b8; }
.dialog h2 { font-size: 19px; font-weight: 750; }
.dialog p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.dialog .actions { margin-top: 22px; justify-content: flex-end; }
.dialog-actions { flex-wrap: wrap; }

/* Footer */
.example-panel::after,
.practice-panel::after,
.records-panel::after,
.answer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(140px circle at var(--edge-x, 50%) var(--edge-y, 50%), var(--edge-color, transparent), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
  z-index: 6;
}
.edge-lit::after { opacity: 1; transition: opacity .12s ease; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 72px; padding: 20px 0 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 11.5px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* Motion: only events move, idle pages stay quiet. */
.heatmap.is-revealed .heat-cell { animation: cell-in .45s ease-out both; animation-delay: var(--reveal-delay, 0ms); }
.heat-cell.is-changed .heat-icon { animation: icon-pop .35s ease-out; }
.heat-cell.is-changed::before {
  content: ""; position: absolute; inset: -1px; border-radius: 12px;
  pointer-events: none;
  animation: heat-ripple .9s ease-out 1;
}
.heat-cell.is-wave { animation: heat-wave .9s ease-out 1; animation-delay: var(--wave-delay, 0ms); }
@keyframes cell-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes heat-ripple {
  0% { box-shadow: 0 0 0 0 #ffffff38; opacity: 1; }
  100% { box-shadow: 0 0 0 14px #ffffff00; opacity: 0; }
}
@keyframes heat-wave {
  0%, 100% { box-shadow: inset 0 0 0 0 #ffffff00; }
  45% { box-shadow: inset 0 0 0 1px #ffffff1f, 0 0 12px #ffffff12; }
}
@keyframes icon-pop {
  from { transform: scale(.75); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 52px; }
  .hero .intro { max-width: 38em; }
  .example-panel { max-width: 620px; }
  .layers { grid-template-columns: 1fr; gap: 14px; }
  .layers::before { display: none; }
  .layer-body { padding: 18px; }
  .layer-head { margin-bottom: 10px; padding-left: 12px; }
  .layer-card:not(:last-child) .layer-head::after { content: none; }
}
@media (max-width: 720px) {
  .page { width: calc(100% - 32px); }
  .site-header { flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; }
  .header-nav { gap: 14px; font-size: 12.5px; }
  .hero { padding: 40px 0 44px; gap: 28px; }
  .hero-glow { left: 28%; top: 58%; width: min(900px, 150vw); }
  .hero h1 { font-size: clamp(34px, 9.6vw, 48px); }
  .hero .intro { font-size: 15px; }
  .method, .practice, .records { padding-top: 48px; }
  .section-head h2 { font-size: 26px; }
  .layers { margin-top: 28px; }
  .practice-panel, .records-panel { padding: 16px; }
  .selectors { flex-direction: column; align-items: stretch; }
  #random-question { width: 100%; }
  .layer-tabs { grid-template-columns: 1fr; gap: 6px; }
  .answer-card { padding: 16px; }
  .card-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .answer-card h3 { font-size: 19px; }
  #layer-prompt { font-size: 13.5px; }
  .submit-row .button { width: 100%; }
  .kbd-hint { display: none; }
  .confirm-row .button { width: 100%; }
  .heat-head { display: none; }
  .heatmap { width: 100%; }
  .heat-body { gap: 0; }
  .heat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .heat-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .heat-question { grid-column: 1 / -1; margin-bottom: 2px; }
  .heat-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
  .heat-cell { width: 100%; height: 64px; }
  .heat-corner { top: 6px; left: 8px; }
  .records-buttons .button { width: 100%; }
  .records-buttons { flex-direction: column; }
  .dialog-actions { flex-direction: column; align-items: stretch; }
  .dialog-actions .button { width: 100%; }
  .example-panel::after,
.practice-panel::after,
.records-panel::after,
.answer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(140px circle at var(--edge-x, 50%) var(--edge-y, 50%), var(--edge-color, transparent), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
  z-index: 6;
}
.edge-lit::after { opacity: 1; transition: opacity .12s ease; }

.site-footer { margin-top: 48px; gap: 10px; font-size: 10.5px; }
}

/* Compact heat matrix: one row per question, 28px cells. */
.heatmap.is-compact { width: 100%; max-width: 780px; min-width: 0; }
.heatmap.is-compact .heat-head,
.heatmap.is-compact .heat-row {
  grid-template-columns: minmax(0, 1fr) repeat(3, 28px);
  gap: 6px;
}
.heatmap.is-compact .heat-head { display: grid; padding-bottom: 6px; }
.heatmap.is-compact .heat-body { gap: 0; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.heatmap.is-compact .heat-row {
  min-width: 0; overflow: hidden;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}
.heatmap.is-compact .heat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.heatmap.is-compact .heat-question { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.heatmap.is-compact .heat-category { display: none; }
.heatmap.is-compact .heat-index { display: inline; }
.heatmap.is-compact .heat-title {
  display: block; flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.heatmap.is-compact .heat-cell { width: 28px; height: 28px; border-radius: 8px; }
.heatmap.is-compact .heat-icon { width: 14px; height: 14px; }
.heatmap.is-compact .heat-corner { top: 2px; left: 3px; }
.heatmap.is-compact .heat-layer { display: none; }
.heatmap.is-compact .heat-up { font-size: 9px; }
.heatmap.is-compact .heat-history { display: flex; right: 1px; bottom: 1px; gap: 0; }
.heatmap.is-compact .heat-dot { width: 5px; height: 5px; }

@media (max-width: 720px) {
  .heatmap.is-compact .heat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 28px);
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .heatmap.is-compact .heat-row:last-child { padding-bottom: 0; }
  .heatmap.is-compact .heat-question { grid-column: auto; margin-bottom: 0; }
  .heatmap.is-compact .heat-title {
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    -webkit-line-clamp: unset;
  }
  .heatmap.is-compact .heat-cell { width: 28px; height: 28px; }
  .heatmap.is-compact .heat-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 28px);
    gap: 6px;
  }
  .heat-tools { justify-content: flex-start; }
}

/* Verdict-moment FX. Colour budget: the white scan beam plus the three lamp
   colours only; all motion is transform/opacity (plus paint-only stroke). */
@font-face {
  font-family: 'Doto';
  src: url('assets/fonts/doto-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.fx-scanning { position: relative; }
.fx-scanbeam {
  position: absolute; left: 0; right: 0; top: 0; height: 26px;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      transparent 0%, rgba(255, 255, 255, .07) 26%,
      rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .07) 74%, transparent 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .32);
  mix-blend-mode: screen;
  animation: fx-scan 1.6s linear infinite;
  will-change: transform;
}
@keyframes fx-scan {
  from { transform: translateY(-26px); }
  to { transform: translateY(var(--fx-scan-h, 160px)); }
}
mark.fx-quote {
  background: transparent;
  color: inherit;
  padding-bottom: 1px;
  border-bottom: 1.5px solid;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
mark.fx-quote[data-light="green"] { border-bottom-color: rgba(34, 197, 94, .9); text-shadow: 0 0 10px rgba(34, 197, 94, .45); }
mark.fx-quote[data-light="amber"] { border-bottom-color: rgba(245, 165, 36, .9); text-shadow: 0 0 10px rgba(245, 165, 36, .45); }
mark.fx-quote[data-light="red"] { border-bottom-color: rgba(255, 69, 58, .9); text-shadow: 0 0 10px rgba(255, 69, 58, .45); }
.fx-pulse-layer {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 60;
  transition: opacity .2s ease;
}
.fx-pulse-dot {
  position: fixed; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  pointer-events: none; z-index: 61;
  transition: opacity .18s ease;
  will-change: transform;
}
.fx-pulse-dot[data-light="green"] { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, .9), 0 0 18px rgba(34, 197, 94, .45); }
.fx-pulse-dot[data-light="amber"] { background: var(--amber); box-shadow: 0 0 8px rgba(245, 165, 36, .9), 0 0 18px rgba(245, 165, 36, .45); }
.fx-pulse-dot[data-light="red"] { background: var(--red); box-shadow: 0 0 8px rgba(255, 69, 58, .9), 0 0 18px rgba(255, 69, 58, .45); }
.fx-score {
  font-family: 'Doto', var(--mono);
  font-size: 15px; font-weight: 700; letter-spacing: .08em; line-height: 1;
}
.fx-score[data-light="green"] { color: var(--green); }
.fx-score[data-light="amber"] { color: var(--amber); }
.fx-score[data-light="red"] { color: var(--red); }
.fx-demo-replay { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
