/* --- Design tokens --- */
:root {
  --bg: #fff8ec;
  --paper: #ffffff;
  --ink: #1e2340;
  --ink-soft: #4a527a;
  --accent: #ff7a3c;      /* electric orange */
  --accent-2: #ffd166;    /* zappy yellow */
  --spark: #4ecdc4;       /* teal */
  --electric: #ffd60a;    /* electron yellow */
  --wire: #3d4666;
  --off: #a9b0c6;
  --danger: #ff5a5a;
  --success: #2fb56a;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(30, 35, 64, 0.10);
  --shadow-lg: 0 12px 40px rgba(30, 35, 64, 0.15);
  --font-body: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout helpers --- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section.alt { background: #fff2e1; }
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}
.two-col.mt { margin-top: 32px; }
.mt-lg { margin-top: 44px; }
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}

/* --- Type --- */
h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  margin: 12px 0 20px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.3rem;
  margin: 0 0 14px;
}
h4 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.subhead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 560px;
}
.lede { font-size: 1.1rem; margin: 0 0 16px; }
.lede.center { text-align: center; }
.big-rule {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  background: var(--paper);
  padding: 22px 24px;
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.thinks {
  font-size: 1.2rem;
  font-style: italic;
  background: #fff;
  border-radius: 22px 22px 22px 4px;
  padding: 14px 18px;
  display: inline-block;
  box-shadow: var(--shadow);
  margin: 8px 0 24px;
}
.hint {
  background: #fff5cc;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px dashed var(--accent);
  margin-top: 24px;
  font-size: 1rem;
}
.hint.tight { margin-top: 12px; }

.callout {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 6px solid var(--spark);
  box-shadow: var(--shadow);
  margin-top: 28px;
}
.callout h4 { margin-top: 0; }
.callout p { margin-bottom: 0; }

/* --- Hero --- */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(160deg, #ffe6c9 0%, #ffd166 100%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.hero-phone {
  position: absolute;
  right: -30px;
  top: 30px;
  z-index: 1;
  opacity: 0.9;
}
.phone {
  width: 160px;
  height: 300px;
  background: #1e2340;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(30, 35, 64, 0.35);
  transform: rotate(8deg);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #4ecdc4 0%, #ffd60a 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s ease-out infinite;
}
.finger {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  animation: tap 2s ease-in-out infinite;
}
@keyframes ripple {
  0% { width: 20px; height: 20px; opacity: 0.9; }
  100% { width: 120px; height: 120px; opacity: 0; }
}
@keyframes tap {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
@media (max-width: 780px) {
  .hero-phone { display: none; }
}

.wiggle {
  display: inline-block;
  color: var(--accent);
  animation: wiggle 3s ease-in-out infinite;
  transform-origin: 50% 80%;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-4deg); }
  30% { transform: rotate(4deg); }
  45% { transform: rotate(-2deg); }
  60% { transform: rotate(0); }
}

.cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  border: none;
}
.cta:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.cta:active { transform: translateY(0); }

/* --- Circuit demo --- */
.circuit-demo {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.circuit-demo svg { width: 100%; height: auto; }

.wire {
  stroke: var(--wire);
  stroke-width: 6;
  stroke-linecap: round;
  fill: none;
}
.battery-body { fill: var(--spark); stroke: var(--wire); stroke-width: 2; }
.battery-emoji { font-size: 30px; }
.battery-sign { font-size: 22px; font-weight: 800; fill: var(--ink); font-family: system-ui, sans-serif; }

.bulb-glass {
  fill: #f5f6ff;
  stroke: var(--wire);
  stroke-width: 3;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.bulb-base {
  stroke: var(--wire);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
}
.bulb-emoji { font-size: 30px; opacity: 0.35; transition: opacity 0.3s ease; }
.bulb-glow circle {
  fill: var(--electric);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.bulb-glow circle:first-child { fill-opacity: 0.35; }
.bulb-glow circle:last-child { fill-opacity: 0.7; }

.terminal {
  fill: var(--wire);
  stroke: #fff;
  stroke-width: 2;
}
.lever {
  stroke: var(--wire);
  stroke-width: 6;
  stroke-linecap: round;
  transition: opacity 0.2s ease;
}
.lever-open { opacity: 1; }
.lever-closed { opacity: 0; }
.lever-hitbox { fill: transparent; pointer-events: all; }
.switch { cursor: pointer; }
.switch-hint {
  font-size: 14px;
  fill: var(--accent);
  font-weight: 700;
  pointer-events: none;
}

.electrons { opacity: 0; transition: opacity 0.3s ease; }
.electron { fill: var(--electric); filter: drop-shadow(0 0 6px rgba(255, 214, 10, 0.9)); }
.electron.stuck { opacity: 1; }
.stuck-electrons { opacity: 0; transition: opacity 0.3s ease; }
.stuck-electrons .electron { filter: drop-shadow(0 0 3px rgba(255, 90, 90, 0.7)); fill: #ff9a3c; }

/* Closed-state visuals — applied to the circuit-demo wrapper */
.circuit-demo.closed .lever-open { opacity: 0; }
.circuit-demo.closed .lever-closed { opacity: 1; }
.circuit-demo.closed .bulb-glass { fill: #fff9c8; stroke: var(--accent); }
.circuit-demo.closed .bulb-emoji { opacity: 1; }
.circuit-demo.closed .bulb-glow circle { opacity: 1; }
.circuit-demo.closed .electrons { opacity: 1; }
.circuit-demo.closed .stuck-electrons { opacity: 0; }
.circuit-demo:not(.closed) .stuck-electrons { opacity: 1; }
.circuit-demo:not(.closed) .switch-hint { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.switch-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  margin: 10px 0;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease;
}
.switch-btn.small { padding: 8px 16px; font-size: 0.95rem; }
.switch-btn:hover { transform: translateY(-2px); }
.switch-btn:active { transform: translateY(0); }

.status {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 6px 0 0;
  font-size: 1rem;
}
.status-open { background: #ffe8e8; color: #7a1e1e; }
.status-closed { background: #d5f5e3; color: #16643b; }
.status-idle { background: #eef1ff; color: #3a3f66; }
.status-tapped { background: #d5f5e3; color: #16643b; }
.status-missed { background: #fff2d5; color: #6b4a0e; }

/* --- Facts / cards --- */
.facts {
  display: grid;
  gap: 16px;
}
.fact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--spark);
}
.fact-card.fun { border-left-color: var(--accent); background: #fff8dc; }
.fact-card.small { padding: 12px 16px; margin-top: 12px; font-size: 0.95rem; }
.fact-card h4 { margin: 0 0 6px; }
.fact-card p { margin: 0; color: var(--ink-soft); }
.fact-card.small p { color: var(--ink); }

/* --- Conductor lab --- */
.lab {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
.lab-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.lab-item {
  background: #f4f5fb;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.lab-item:hover { transform: translateY(-3px); background: #e9ebf5; }
.lab-item.selected { border-color: var(--accent); background: #fff2e1; }
.lab-item .emoji { font-size: 2.6rem; line-height: 1; }
.lab-item .name { display: block; font-size: 0.9rem; margin-top: 4px; font-weight: 600; }

.lab-circuit svg { width: 100%; height: auto; max-height: 260px; }
.lab-circuit .bulb-glass { fill: #f5f6ff; stroke: var(--wire); stroke-width: 3; }
.lab-circuit .electrons { opacity: 0; }
.lab-circuit.on .bulb-glass { fill: #fff9c8; stroke: var(--accent); }
.lab-circuit.on .bulb-glow circle { opacity: 1; }
.lab-circuit.on .electrons { opacity: 1; }
.lab-circuit .bulb-glow circle { opacity: 0; transition: opacity 0.3s ease; }
.lab-circuit .bulb-glow circle:first-child { fill: var(--electric); fill-opacity: 0.35; }
.lab-circuit .bulb-glow circle:last-child { fill: var(--electric); fill-opacity: 0.7; }
.lab-object-in-slot {
  font-size: 36px;
  opacity: 0;
  animation: lab-fade-in 0.3s ease-out forwards;
}
@keyframes lab-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Cross-section --- */
.cross-section {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
.cross-section svg { width: 100%; height: auto; }
.callout-line { stroke: #4a527a; stroke-width: 1.5; stroke-dasharray: 3 3; }
.callout-text { font-size: 15px; font-weight: 600; fill: var(--ink); }
.layer-label { font-size: 13px; font-weight: 600; fill: var(--ink); text-anchor: end; }
.ito-line { stroke: #8c6a17; stroke-width: 2; opacity: 0.7; }
.signal-text { font-size: 13px; fill: var(--accent); font-weight: 700; }
.cross-caption {
  margin: 12px 0 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* --- Touchscreen grid demo --- */
.touchscreen-demo {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.pretend-phone {
  width: min(280px, 100%);
  margin: 0 auto;
  background: #1e2340;
  border-radius: 32px;
  padding: 36px 14px 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pretend-phone.wide {
  width: min(340px, 100%);
}
.pretend-speaker {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 6px;
  background: #3d4666;
  border-radius: 4px;
}
.pretend-button {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border: 2px solid #3d4666;
  border-radius: 50%;
}
.pretend-screen {
  aspect-ratio: 3 / 5;
  background: linear-gradient(160deg, #1a3a5a, #274a6b);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 1px;
  padding: 6px;
  overflow: hidden;
  position: relative;
}
.cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  padding: 0;
}
.cell:hover { background: rgba(255, 214, 10, 0.15); }
.cell.tapped {
  background: radial-gradient(circle, var(--electric) 0%, rgba(255, 214, 10, 0.2) 70%);
  animation: cell-pop 0.5s ease-out;
}
@keyframes cell-pop {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- Journey list --- */
.journey {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 16px;
}
.journey li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 20px 18px 74px;
  box-shadow: var(--shadow);
  position: relative;
}
.journey .step {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey h4 { margin: 0 0 4px; }
.journey p { margin: 0; color: var(--ink-soft); }

/* --- Coord demo --- */
.coord-demo {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.coord-screen {
  cursor: crosshair;
  display: block !important;
  background: #0f1f36;
}
.coord-crosshair {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.coord-crosshair.visible { opacity: 1; }
.ch-h, .ch-v {
  position: absolute;
  background: var(--electric);
  box-shadow: 0 0 8px rgba(255, 214, 10, 0.7);
}
.ch-h { left: 0; right: 0; height: 1px; }
.ch-v { top: 0; bottom: 0; width: 1px; }
.ch-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.9);
  transform: translate(-50%, -50%);
}
.coord-readout {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--electric);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.3;
  pointer-events: none;
}

/* --- Hit-box demo --- */
.hitbox-demo {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: start;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
@media (max-width: 780px) {
  .hitbox-demo { grid-template-columns: 1fr; }
}
.hitbox-screen {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 12px !important;
  background: linear-gradient(160deg, #f4f5fb, #e6e8f5) !important;
  cursor: crosshair;
  position: relative;
}
.app-header {
  background: #1e2340;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.app-btn {
  background: #fff;
  border: 2px solid #d0d3e2;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease;
  position: relative;
  z-index: 2;
}
.app-btn:hover { transform: translateY(-1px); }
.play-btn { background: #d5f5e3; border-color: var(--success); }
.like-btn { background: #ffe0e0; border-color: var(--danger); }
.skip-btn { background: #e6ddff; border-color: #8a6bd1; }
.hitbox-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hitbox-overlay.visible { opacity: 1; }
.hitbox-overlay .box {
  position: absolute;
  border: 2px dashed var(--accent);
  background: rgba(255, 122, 60, 0.15);
  border-radius: 8px;
  z-index: 1;
}
.hitbox-overlay .box .label {
  position: absolute;
  top: -18px;
  left: 4px;
  font-size: 0.75rem;
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.tap-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--electric);
  border: 3px solid var(--ink);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  animation: marker-pop 0.5s ease-out;
}
@keyframes marker-pop {
  0%   { transform: translate(-50%, -50%) scale(0.4); }
  60%  { transform: translate(-50%, -50%) scale(1.15); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.hitbox-side .control-row {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.hitbox-side label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* --- Drag demo --- */
.drag-demo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 20px 0;
  align-items: start;
}
@media (max-width: 780px) {
  .drag-demo { grid-template-columns: 1fr; }
}
.drag-canvas-wrap {
  position: relative;
  background: #0f1f36;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
#drag-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.drag-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #7a8bb0;
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drag-hint.hidden { opacity: 0; }
.drag-log-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;   /* let long lines wrap in a grid cell */
}
.drag-log-wrap h4 { margin: 0; }
.drag-log {
  list-style: none;
  margin: 0;
  overflow-y: auto;
  max-height: 180px;
  min-height: 100px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: #f4f5fb;
  border-radius: 8px;
  padding: 10px 12px;
}
.drag-log li { padding: 1px 0; white-space: nowrap; }
.gesture-verdict {
  margin: 0;
  padding: 12px 14px;
  background: #d5f5e3;
  color: #0d3a22;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.gesture-verdict:empty { display: none; }

/* --- Quiz --- */
.quiz {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}
.q {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.q h3 { margin-top: 0; }
.q-options { display: grid; gap: 10px; margin-top: 10px; }
.q-option {
  background: #f4f5fb;
  border: 2px solid transparent;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: left;
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.q-option:hover:not(:disabled) { background: #e9ebf5; transform: translateY(-1px); }
.q-option.correct { background: #d5f5e3; border-color: var(--success); color: #0d3a22; }
.q-option.wrong { background: #ffe0e0; border-color: var(--danger); color: #7a1e1e; }
.q-option:disabled { cursor: default; }
.q-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.98rem;
  display: none;
}
.q-feedback.show { display: block; }
.q-feedback.good { background: #d5f5e3; color: #0d3a22; }
.q-feedback.bad { background: #ffe0e0; color: #7a1e1e; }

.quiz-score {
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.score-value { font-size: 2.6rem; font-weight: 800; margin: 6px 0; color: var(--accent); }

/* --- Sources --- */
.sources-list {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px 32px;
  box-shadow: var(--shadow);
  list-style: disc;
  margin: 20px 0;
}
.sources-list li {
  padding: 8px 0;
  color: var(--ink-soft);
  line-height: 1.5;
}
.sources-list li a {
  color: var(--accent);
  font-weight: 600;
  word-break: break-word;
}
.sources-list .src-topic {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

/* --- Footer --- */
footer {
  padding: 32px 24px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --- A11y & reduced motion --- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .electron, .ripple, .finger, .wiggle { animation: none !important; }
}
