:root {
  --bg0: #0b0f1a;
  --bg1: #12182a;
  --bg2: #0f1422;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8efff;
  --muted: #98a7c4;
  --accent: #3abeff;
  --accent-deep: #3abeff;
  --violet: #8a5cff;
  --coral: #ff8a3c;
  --pink: #d86bff;
  --shadow: 0 22px 55px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 28px 70px -20px rgba(58, 190, 255, 0.2);
  --radius: 16px;
  --font: "Outfit", system-ui, sans-serif;
  --h-hex: #3abeff;
  --d-hex: #8a5cff;
  --o-hex: #ff8a3c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background: linear-gradient(165deg, var(--bg0) 0%, var(--bg1) 45%, var(--bg2) 100%);
  background-attachment: fixed;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.blob.b1 {
  width: 420px;
  height: 420px;
  background: #7dd3fc;
  top: -120px;
  right: -80px;
}

.blob.b2 {
  width: 360px;
  height: 360px;
  background: #e9d5ff;
  bottom: 10%;
  left: -100px;
}

.blob.b3 {
  width: 280px;
  height: 280px;
  background: #a5f3fc;
  top: 40%;
  right: 15%;
  opacity: 0.4;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hook {
  padding: 1.6rem 1.35rem 1.5rem;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(236, 72, 153, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(224, 242, 254, 0.75));
}

.hook-questions {
  position: relative;
  min-height: 5.2em;
  margin-bottom: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.hook-line {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw + 0.55rem, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  white-space: nowrap;
  width: max-content;
  background: linear-gradient(120deg, #be123c 0%, #7c3aed 45%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hook-b {
  position: absolute;
  left: 0;
  top: 0;
  animation: hookSwap 9s ease-in-out infinite;
}

.hook-a {
  animation: hookSwap2 9s ease-in-out infinite;
}

@keyframes hookSwap {
  0%,
  44% {
    opacity: 0;
    transform: translateY(8px);
  }
  48%,
  92% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes hookSwap2 {
  0%,
  44% {
    opacity: 1;
    transform: none;
  }
  48%,
  92% {
    opacity: 0;
    transform: translateY(-8px);
  }
  96%,
  100% {
    opacity: 1;
    transform: none;
  }
}

.hook-tease {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

.bonus {
  margin-top: 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  border-left: 4px solid var(--coral);
}

.bonus-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.bonus-body strong {
  color: var(--text);
}

.scenario-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.15rem 0 1rem;
  padding: 0.6rem;
  border-radius: 18px;
}

@media (max-width: 860px) {
  .scenario-nav {
    grid-template-columns: 1fr;
  }
}

.scenario-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.scenario-card:hover {
  transform: translateY(-2px);
  background: rgba(58, 190, 255, 0.08);
  border-color: rgba(58, 190, 255, 0.35);
}

.sc-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.sc-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.scenario-card[aria-selected="true"] {
  border-color: rgba(58, 190, 255, 0.72);
  background: linear-gradient(135deg, rgba(58, 190, 255, 0.14), rgba(138, 92, 255, 0.16));
  box-shadow: 0 0 0 1px rgba(58, 190, 255, 0.24), 0 14px 36px rgba(58, 190, 255, 0.26);
}

.scenario-card[aria-selected="true"] .sc-title {
  background: linear-gradient(90deg, #0891b2, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel {
  animation: fadeIn 0.3s ease;
}

.panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.panel-desc {
  color: var(--muted);
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
}

.body-sim {
  padding: 1.2rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(253, 242, 248, 0.85));
}

.body-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.body-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  color: #052e16;
}

.body-badge.warn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #422006;
}

.body-badge.bad {
  background: linear-gradient(90deg, #fb923c, #ea580c);
  color: #fff;
}

.body-badge.dead {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #fecaca;
}

.body-pct {
  font-size: 0.9rem;
  color: var(--muted);
}

.body-pct strong {
  font-size: 1.35rem;
  color: var(--text);
}

.body-slider-label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

#body-d2o {
  width: 100%;
  accent-color: #db2777;
  margin-bottom: 1rem;
}

.cell-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-bottom: 1rem;
}

@media (max-width: 520px) {
  .cell-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.cell {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #bbf7d0, #22c55e);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, filter 0.35s ease, background 0.35s ease;
  animation: cellPulse 2.2s ease-in-out infinite;
}

.cell:nth-child(odd) {
  animation-delay: 0.15s;
}

@keyframes cellPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.cell.cell-warn {
  background: radial-gradient(circle at 32% 28%, #fde68a, #eab308);
  animation-duration: 3.2s;
}

.cell.cell-bad {
  background: radial-gradient(circle at 32% 28%, #fecaca, #dc2626);
  animation-duration: 4.5s;
  filter: saturate(1.2);
}

.cell.cell-dead {
  background: radial-gradient(circle at 40% 35%, #475569, #0f172a);
  animation: none;
  transform: scale(0.92);
  filter: grayscale(0.3);
}

.body-story {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.body-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.reactor-one-liner {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.reactor-aha {
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
}

.chain-meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.chain-meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.chain-fill {
  height: 100%;
  width: 88%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  transition: width 0.45s ease, background 0.35s ease;
}

.chain-fill.is-dead {
  width: 18%;
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.chain-label {
  font-weight: 700;
  color: var(--text);
}

.chain-glow {
  position: absolute;
  inset: 0;
  bottom: 52px;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(251, 191, 36, 0.45), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.reactor-stage.is-alive .chain-glow {
  opacity: 1;
}

.reactor-stage.is-dead .neutron-layer {
  opacity: 0.55;
}

.reactor-stage.is-dead {
  filter: saturate(0.65);
}

.section-marker {
  margin: 1.75rem 0 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7c3aed;
}

.mol-pulse {
  animation: molFloat 3s ease-in-out infinite;
}

.mol-heavy {
  animation-duration: 4.2s;
}

@keyframes molFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.vibe-zap {
  border: 2px solid rgba(6, 182, 212, 0.25);
}

.osc-fast.osc-intense::after {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  animation: wobbleIntense 0.32s ease-in-out infinite;
}

.osc-slow.osc-heavy::after {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  animation: wobbleHeavy 1.15s ease-in-out infinite;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

@keyframes wobbleIntense {
  0%,
  100% {
    transform: translateX(-38px);
  }
  50% {
    transform: translateX(38px);
  }
}

@keyframes wobbleHeavy {
  0%,
  100% {
    transform: translateX(-22px);
  }
  50% {
    transform: translateX(22px);
  }
}

.wave-intense {
  height: 56px;
  background: repeating-linear-gradient(
    90deg,
    rgba(6, 182, 212, 0.55) 0 10px,
    transparent 10px 22px
  );
  background-size: 44px 100%;
  animation: waveMove 0.65s linear infinite;
}

.wave-rumble .wave-b.wave-intense {
  background: repeating-linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.5) 0 10px,
    transparent 10px 22px
  );
  background-size: 44px 100%;
}

.boil-pop {
  transition: transform 0.25s ease;
}

.boil-pop:hover {
  transform: scale(1.03);
}

.highlight-box {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.35rem;
}

@media (max-width: 720px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.tilt {
  transition: transform 0.25s ease;
}

.tilt:hover {
  transform: translateY(-3px);
}

.accent-border {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.08);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.pill-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.pill-violet {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.mol-wrap {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.6), rgba(250, 245, 255, 0.5));
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.mol-wrap svg {
  max-width: 100%;
  height: auto;
}

.stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.86rem;
}

.stats dt {
  color: var(--muted);
}

.stats dd {
  margin: 0;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.info-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
}

.info-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--accent-deep);
}

.info-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.behavior-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .behavior-row {
    grid-template-columns: 1fr;
  }
}

.vibe-demo {
  padding: 1rem 1.1rem;
  border-radius: 14px;
}

.vibe-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.osc {
  height: 58px;
  position: relative;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.9), rgba(250, 245, 255, 0.9));
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, 0.1);
}

.osc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.45);
}

.osc-fast::after {
  animation: wobble 0.42s ease-in-out infinite;
}

.osc-slow::after {
  animation: wobble 0.95s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: translateX(-30px);
  }
  50% {
    transform: translateX(30px);
  }
}

.boil-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.card.mini {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
}



.temp-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.temp-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.card.mini.hot .temp-val {
  color: #c2410c;
}

.temp-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.thermo-demo {
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
}

.subhead {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.small {
  font-size: 0.86rem;
}

.muted {
  color: var(--muted);
}

.thermo-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.chip {
  font-family: inherit;
  font-weight: 600;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 2px solid rgba(14, 116, 144, 0.2);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(224, 242, 254, 0.8);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.2);
}

.thermo-visual {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.thermo-tube {
  width: 22px;
  height: 160px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
  border: 2px solid rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.thermo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72%;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  border-radius: 0 0 999px 999px;
  transition: height 0.45s ease, background 0.35s ease;
}

.thermo-fill.is-d2o {
  height: 78%;
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.thermo-readout {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.thermo-readout strong {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.reactor-stage {
  position: relative;
  height: 210px;
  margin-bottom: 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(185deg, #e0f2fe 0%, #bae6fd 35%, #7dd3fc 100%);
  border: 1px solid rgba(14, 165, 233, 0.25);
  transition: filter 0.45s ease;
}

.reactor-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0369a1;
  z-index: 3;
}

.core-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.85), rgba(234, 88, 12, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 4;
  padding: 0 0.5rem;
  text-align: center;
}

.neutron-layer {
  position: absolute;
  inset: 0;
  bottom: 52px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.n-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
  opacity: 0.92;
}

.n-dot.slow {
  background: #e0f2fe;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.95);
}

.moderator-panel {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border-radius: 14px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.98rem;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

.switch-ui::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 4px;
  transition: transform 0.25s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.switch-row input:checked + .switch-ui {
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
}

.switch-row input:checked + .switch-ui::after {
  transform: translateX(16px);
}

.mod-hint {
  margin: 0.55rem 0 0 3.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.meter-row {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.meter-row .meter-val {
  align-self: flex-start;
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 24%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  transition: width 0.35s ease, background 0.35s;
}

.meter-fill.is-high {
  width: 76%;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.meter-val {
  font-weight: 700;
  color: var(--text);
}

.facts {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.facts li {
  margin-bottom: 0.5rem;
}

.facts strong {
  color: var(--text);
}

.exp {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 16px;
}

.slider-row {
  margin: 0.85rem 0;
}

.slider-row label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.exp-readout {
  margin-top: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.92rem;
}

.wave-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

@media (max-width: 520px) {
  .wave-pair {
    grid-template-columns: 1fr;
  }
}

.wave-box {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.wave-box span {
  display: block;
  margin-bottom: 0.35rem;
}

.wave {
  height: 44px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(6, 182, 212, 0.35) 0 8px,
    transparent 8px 16px
  );
  background-size: 32px 100%;
  animation: waveMove 1.2s linear infinite;
}

.wave-b {
  background: repeating-linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.35) 0 8px,
    transparent 8px 16px
  );
  background-size: 32px 100%;
  animation: waveMove 1.26s linear infinite;
}

@keyframes waveMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 32px 0;
  }
}

.density-bars {
  margin-top: 0.75rem;
}

.d-bar-wrap {
  margin-bottom: 0.65rem;
}

.d-bar-wrap span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.d-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  margin: 0.35rem 0;
  overflow: hidden;
}

.d-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s;
}

.d-fill.d-h2o {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.d-fill.d-d2o {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.d-num {
  font-size: 0.78rem;
  color: var(--muted);
}

.quiz {
  margin-top: 0.25rem;
}

.quiz-q {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.92rem;
}

.quiz-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.q-btn {
  font-family: inherit;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(14, 116, 144, 0.15);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.q-btn:hover {
  border-color: var(--accent);
}

.q-btn.reveal-ok {
  border-color: #22c55e;
  background: rgba(220, 252, 231, 0.9);
  color: #15803d;
}

.q-btn.reveal-bad {
  border-color: #f87171;
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
}

.quiz-feedback {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.foot p {
  margin: 0;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(58, 190, 255, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Deep tech nuclear theme overrides */
body {
  background: linear-gradient(165deg, #0b0f1a 0%, #12182a 52%, #0f1422 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 78% 14%, rgba(58, 190, 255, 0.12), transparent 36%),
    radial-gradient(circle at 18% 86%, rgba(138, 92, 255, 0.1), transparent 34%);
  transition: background 0.45s ease;
}

body[data-moderator="h2o"]::before {
  background: radial-gradient(circle at 78% 14%, rgba(58, 190, 255, 0.2), transparent 40%),
    radial-gradient(circle at 18% 86%, rgba(255, 138, 60, 0.14), transparent 32%);
}

body[data-moderator="d2o"]::before {
  background: radial-gradient(circle at 78% 14%, rgba(138, 92, 255, 0.22), transparent 40%),
    radial-gradient(circle at 18% 86%, rgba(58, 190, 255, 0.14), transparent 34%);
}

.bg-blobs {
  z-index: 0;
}

.blob {
  filter: blur(96px);
  opacity: 0.4;
}

.blob.b1 {
  background: rgba(58, 190, 255, 0.58);
}

.blob.b2 {
  background: rgba(138, 92, 255, 0.58);
}

.blob.b3 {
  background: rgba(255, 138, 60, 0.38);
}

.glass,
.card,
.vibe-demo,
.thermo-demo,
.reactor-aha,
.moderator-panel,
.exp,
.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.85);
}

.hook {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hook-line {
  background: linear-gradient(100deg, #ff8a3c 0%, #8a5cff 48%, #3abeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.scenario-card[aria-selected="true"] {
  border-color: rgba(58, 190, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(58, 190, 255, 0.28), 0 12px 30px -18px rgba(58, 190, 255, 0.45);
}

.scenario-card[aria-selected="true"] .sc-title {
  background: linear-gradient(90deg, #3abeff, #8a5cff);
  -webkit-background-clip: text;
  background-clip: text;
}

.card:hover,
.exp:hover,
.vibe-demo:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 22px 44px -30px rgba(58, 190, 255, 0.45);
}

.compare-grid .mol-card:first-child {
  box-shadow: 0 0 0 1px rgba(58, 190, 255, 0.2), 0 0 28px -16px rgba(58, 190, 255, 0.5);
}

.compare-grid .mol-card:last-child {
  box-shadow: 0 0 0 1px rgba(138, 92, 255, 0.2), 0 0 30px -16px rgba(138, 92, 255, 0.55);
}

.compare-grid .mol-card:first-child:hover {
  box-shadow: 0 0 0 1px rgba(58, 190, 255, 0.45), 0 0 38px -15px rgba(58, 190, 255, 0.85);
}

.compare-grid .mol-card:last-child:hover {
  box-shadow: 0 0 0 1px rgba(138, 92, 255, 0.45), 0 0 42px -15px rgba(138, 92, 255, 0.9);
}

.pill-blue {
  background: rgba(58, 190, 255, 0.14);
  color: #8fdcff;
}

.pill-violet {
  background: rgba(138, 92, 255, 0.16);
  color: #c7b1ff;
}

.mol-wrap,
.osc,
.reactor-stage,
.thermo-tube,
.d-track {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reactor-stage {
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.95), rgba(18, 28, 46, 0.95));
}

.reactor-label {
  color: #8fdcff;
}

.core-bar {
  background: linear-gradient(180deg, rgba(255, 138, 60, 0.78), rgba(201, 87, 20, 0.88));
}

.chain-glow {
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(255, 138, 60, 0.28), transparent 72%);
}

.n-dot {
  background: #78d8ff;
  box-shadow: 0 0 12px rgba(58, 190, 255, 0.9);
}

.n-dot.slow {
  background: #b79cff;
  box-shadow: 0 0 14px rgba(138, 92, 255, 0.9);
}

.q-btn,
.chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.q-btn:hover,
.chip:hover {
  border-color: rgba(58, 190, 255, 0.5);
}

.chip[aria-pressed="true"] {
  background: rgba(58, 190, 255, 0.12);
  border-color: rgba(58, 190, 255, 0.52);
  color: #b9e9ff;
}

.switch-ui {
  background: rgba(255, 255, 255, 0.2);
}

.switch-row input:checked + .switch-ui {
  background: linear-gradient(90deg, #3abeff, #8a5cff);
}

.meter,
.chain-meter {
  background: rgba(255, 255, 255, 0.16);
}

.meter-fill {
  background: linear-gradient(90deg, #3abeff, #8a5cff);
}

.meter-fill.is-high,
.chain-fill.is-dead {
  background: linear-gradient(90deg, #ff8a3c, #ff5f47);
}

.foot {
  border-top-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .tilt,
  .blob,
  .osc::after,
  .wave,
  .thermo-fill,
  .hook-a,
  .hook-b,
  .cell,
  .mol-pulse {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
