/* DRB Healthcare Eco System — Full-screen scenes */

:root {
  --bg: #09090d;
  --gold: #D4AF37;
  --gold2: #FFD76A;
  --text: #fff;
  --muted: #B8B8B8;
  --glass: rgba(255,255,255,0.05);
  --border: rgba(212,175,55,0.3);
  --header: 52px;
  --nav: 60px;
  --font-h: 'Sora', Inter, sans-serif;
  --viz-h: min(40vh, 280px);
  --viz-min-h: 220px;
  --viz-h-tall: min(46vh, 340px);
  --viz-min-h-tall: 260px;
  --viz-surface: #0e0e13;
  --font-b: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom, 0px));
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(212, 175, 55, 0.07), transparent 58%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(14, 14, 20, 0.9), transparent 65%),
    linear-gradient(180deg, #101016 0%, #09090d 45%, #07070a 100%);
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  z-index: 200;
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 14px;
  background: rgba(9, 9, 13, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-logo { height: 32px; width: auto; object-fit: contain; }
.header-title { font-size: 11px; font-weight: 600; font-family: var(--font-h); }

/* Every scene = full screen, content centered */
.scene {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header) + 12px) 16px calc(var(--nav) + 12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.06);
  background: transparent;
}

.scene-wrap {
  width: min(100%, 520px);
  margin-inline: auto;
  text-align: center;
}

.scene-wrap > * {
  margin-inline: auto;
}

.scene-title,
.scene-num,
.scene-tagline,
.core-label,
.brand-tagline,
.headline,
.hero-desc,
.key-message,
.tagline {
  margin-inline: auto;
}

.scene-body {
  margin: 16px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.scene-body > * {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.scene-tagline {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 16px;
  line-height: 1.5;
  max-width: 42ch;
}

.scene-num {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.scene-title {
  font-family: var(--font-h);
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 24ch;
}

/* Animated visual stage (scenes 2–11) */
.viz-stage,
.core-stage,
.globe-stage,
.patient-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  height: var(--viz-h);
  min-height: var(--viz-min-h);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--viz-surface);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: inset 0 0 60px rgba(212, 175, 55, 0.03);
}

.viz-stage::before,
.core-stage::before,
.globe-stage::before,
.patient-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 35%, rgba(212, 175, 55, 0.04), transparent 62%);
}

.viz-stage::after,
.core-stage::after,
.globe-stage::after,
.patient-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.18));
}

#transfer .scene-title {
  margin-bottom: 32px;
}

#transfer .viz-stage {
  margin-top: 6px;
}

#transfer .viz-stage,
#ecosystem .viz-stage,
#assets .viz-stage,
.patient-stage,
.globe-stage,
.core-stage {
  height: var(--viz-h-tall);
  min-height: var(--viz-min-h-tall);
}

.viz-stage {
  margin-bottom: 14px;
}

.core-stage {
  border-radius: 18px;
  margin-bottom: 8px;
}

.eco-parts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}

.eco-parts-table td {
  padding: 10px 6px;
  text-align: center;
  vertical-align: middle;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.eco-part-name {
  display: block;
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.eco-part-desc {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.35;
}

@media (min-width: 520px) {
  .eco-parts-table { border-spacing: 8px; }
  .eco-parts-table td { padding: 12px 8px; }
  .eco-part-name { font-size: 12px; }
  .eco-part-desc { font-size: 9px; }
}

.viz-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.viz-stage-finale {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  border: none;
  background: transparent;
  margin: 0;
  z-index: 0;
}

.finale-wrap {
  position: relative;
  z-index: 1;
  min-height: min(70vh, 480px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.finale-wrap > *:not(.viz-stage-finale) {
  position: relative;
  z-index: 2;
}

.finale-logo-img {
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212,175,55,0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(255,215,106,0.6)); }
}

/* Hero logo */
.hero-logo {
  width: min(92%, 340px);
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.hero-logo.small { width: min(70%, 240px); margin-bottom: 16px; }

.brand-tagline {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Core stage — sizing via shared .core-stage rule above */
#core-canvas, #globe-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}

.core-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}

.core-fallback.hidden { display: none; }

.fallback-sphere {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold2), var(--gold) 50%, #111 75%);
  box-shadow: 0 0 40px rgba(212,175,55,0.4);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  14% { transform: scale(1.08); box-shadow: 0 0 60px rgba(212,175,55,0.6); }
}

.node-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.node-line { stroke: rgba(255,215,106,0.15); stroke-width: 1; }
.node-line.on { stroke: rgba(255,215,106,0.8); }

.medical-nodes { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.med-node { position: absolute; transform: translate(-50%,-50%); text-align: center; }
.med-node-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin: 0 auto 2px; }
.med-node-name { font-size: 7px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.ecg-system {
  position: absolute; bottom: 12%; left: 8%; right: 8%;
  height: 18px; overflow: hidden; opacity: 0.5; z-index: 5;
}

.ecg-svg { width: 200%; height: 100%; animation: ecg 2.4s linear infinite; }
.ecg-line { fill: none; stroke: var(--gold); stroke-width: 1.5; }
@keyframes ecg { to { transform: translateX(-50%); } }

.core-label {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}

.tagline {
  display: inline-block;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px; margin-bottom: 10px;
}

.headline {
  font-family: var(--font-h);
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  white-space: pre-line;
}

.hero-desc { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }

.key-message { font-size: 11px; font-weight: 600; color: var(--gold); margin-bottom: 14px; }

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: var(--font-b);
  font-size: 12px; font-weight: 600;
  padding: 10px 18px; border-radius: 22px;
  border: none; cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8942a);
  color: #1a1400;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

.btn-lg { padding: 12px 24px; margin-top: 12px; }

/* Cards */
.info-card, .nft-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  text-align: center;
  backdrop-filter: blur(12px);
}

.info-card.wide { max-width: 380px; margin-inline: auto; }

.info-card .label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.info-card .value { font-family: var(--font-h); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.info-card .value.gold { color: var(--gold2); }

.nft-card h3 { font-family: var(--font-h); font-size: 18px; margin-bottom: 12px; }

.nft-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.nft-badge {
  font-size: 8px; font-weight: 600; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 8px;
}

/* Patient scene */
.patient-body { justify-content: center; }

.patient-stage::after {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.07),
    transparent 35%,
    transparent 65%,
    rgba(0, 0, 0, 0.14)
  );
}

.patient-matrix-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
  border-radius: inherit;
}

#patient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: pan-y;
}

.patient-system-bar {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.patient-system-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 8px;
}

.patient-system-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 10px;
}

.patient-system-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width 0.35s ease;
}

.patient-system-phases {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.patient-system-phases li {
  flex: 1;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 4px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.patient-system-phases li.active {
  color: var(--gold2);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.patient-system-phases li.done {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.2);
}

.patient-card-system {
  max-width: 320px;
  text-align: left;
  border-radius: 20px;
}

.patient-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.patient-meta-col .value {
  margin-bottom: 0;
  font-size: 16px;
}

.patient-status-badges {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
}

.patient-status-badges.show {
  display: flex;
}

.patient-badge {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(212, 175, 55, 0.06);
}

.patient-next {
  display: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold2);
  text-align: center;
  margin: 0;
}

.patient-next.show { display: block; }

.patient-card { max-width: 280px; margin-inline: auto; }

.patient-hud {
  position: absolute;
  right: 7%;
  left: auto;
  top: 46%;
  transform: translateY(-50%);
  text-align: left;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 4;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(12, 10, 6, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.patient-hud.show { opacity: 1; }

@media (max-width: 768px) {
  .patient-hud {
    backdrop-filter: none;
    background: rgba(12, 10, 6, 0.78);
  }
}

.patient-detected {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold2);
}

.patient-need-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}

.patient-hud-nft {
  display: none;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 106, 0.45);
  background: rgba(212, 175, 55, 0.1);
  animation: nftTease 1.8s ease-in-out infinite;
}

.patient-hud-nft.show { display: block; }

.patient-hud-nft-tag {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold2);
}

.patient-hud-nft-sub {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes nftTease {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 106, 0); }
  50% { box-shadow: 0 0 12px rgba(255, 215, 106, 0.25); }
}

/* Chips & flow */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.chip {
  font-size: 11px; font-weight: 600;
  color: var(--gold); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px;
  background: var(--glass);
  animation: chipGlow 2.5s ease-in-out infinite;
}

.chip:nth-child(2) { animation-delay: 0.2s; }
.chip:nth-child(3) { animation-delay: 0.4s; }
.chip:nth-child(4) { animation-delay: 0.6s; }
.chip:nth-child(5) { animation-delay: 0.8s; }

@keyframes chipGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 10px rgba(212,175,55,0.2); }
}

.flow-col { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }

.flow-item {
  width: 100%; max-width: 280px;
  padding: 12px; text-align: center;
  font-size: 12px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 10px;
  animation: flowStep 4s ease-in-out infinite;
}

.flow-item:nth-child(2) { animation-delay: 0s; }
.flow-item:nth-child(4) { animation-delay: 1s; }
.flow-item:nth-child(6) { animation-delay: 2s; }
.flow-item:nth-child(8) { animation-delay: 3s; }

@keyframes flowStep {
  0%, 100% { border-color: rgba(212,175,55,0.3); transform: scale(1); }
  25% { border-color: rgba(255,215,106,0.7); transform: scale(1.02); box-shadow: 0 0 14px rgba(212,175,55,0.2); }
}

.flow-arrow { color: var(--gold); opacity: 0.4; font-size: 12px; }

/* Donation */
.donation-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.donation-stat strong {
  color: var(--gold2);
  font-family: var(--font-h);
  font-size: 15px;
}

.fund-bar {
  height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden; margin: 12px 0 8px;
}

.fund-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 4px;
  transition: width 0.35s ease;
}

.fund-milestones {
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--muted); margin-bottom: 12px;
}

.wallet-row {
  display: flex; justify-content: space-between;
  font-size: 11px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wallet-row .amount { color: var(--gold2); font-weight: 600; }
.wallet-row .wallet { color: var(--muted); font-family: monospace; font-size: 10px; }

/* Transfer */
.transfer-body { flex-direction: column; gap: 8px; align-items: center; }

.transfer-price-line {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  letter-spacing: 0.02em;
}

.transfer-price-line strong {
  color: var(--gold2);
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 600;
  display: inline-block;
  min-width: 5ch;
}

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--muted);
  background: var(--glass);
}

.travel-nft {
  padding: 10px 14px; font-size: 11px; font-weight: 700;
  color: var(--gold2); border: 1px solid var(--border);
  border-radius: 10px; background: var(--glass);
  animation: travel 2.5s ease-in-out infinite;
}

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

.clinic-badge {
  font-size: 12px; font-weight: 600;
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid rgba(76,175,80,0.4);
  background: rgba(76,175,80,0.08);
  color: #6fcf97;
}

/* Transparency — blockchain panel (matches canvas) */
.bc-dashboard {
  text-align: center;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.bc-dashboard-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold2);
  margin: 0 0 14px;
  text-align: center;
}

.bc-steps { display: flex; flex-direction: column; gap: 0; }

.bc-step {
  display: grid;
  grid-template-columns: 52px 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.bc-step.active { opacity: 1; }
.bc-step.done { opacity: 0.85; }

.bc-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 44px;
}

.bc-block {
  display: block;
  min-width: 44px;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.04);
  font-family: monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.bc-step.active .bc-block {
  border-color: var(--gold2);
  background: rgba(255, 215, 106, 0.14);
  color: var(--gold2);
}

.bc-step.done .bc-block {
  border-color: #6fcf97;
  background: rgba(76, 175, 80, 0.1);
  color: #6fcf97;
}

.bc-link {
  flex: 1;
  width: 2px;
  min-height: 10px;
  margin: 3px 0;
  background: rgba(212, 175, 55, 0.25);
}

.bc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.bc-step.active .bc-icon {
  border-color: var(--gold2);
  background: rgba(255, 215, 106, 0.12);
  box-shadow: 0 0 12px rgba(255, 215, 106, 0.15);
}

.bc-step.done .bc-icon {
  border-color: #6fcf97;
  background: rgba(76, 175, 80, 0.1);
}

.bc-icon-create::before { content: '◆'; color: var(--gold2); font-size: 14px; }
.bc-icon-fund::before { content: '$'; color: var(--gold2); font-size: 15px; font-weight: 700; }
.bc-icon-verify::before { content: '✓'; color: #6fcf97; font-size: 14px; font-weight: 700; }
.bc-icon-transfer::before { content: '⇄'; color: var(--gold2); font-size: 14px; }
.bc-icon-redeem::before { content: '+'; color: var(--gold2); font-size: 18px; font-weight: 300; line-height: 1; }
.bc-icon-done::before { content: '✓'; color: #fff; font-size: 13px; font-weight: 700; }
.bc-icon-done { background: rgba(76, 175, 80, 0.2); border-color: #6fcf97; }

.bc-meta { min-width: 0; }

.bc-label {
  display: block;
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}

.bc-status {
  display: block;
  font-size: 9px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.4);
}

.bc-step.active .bc-status { color: var(--gold2); }
.bc-step.done .bc-status { color: #6fcf97; }

#transparency-panel.info-card.wide {
  max-width: 420px;
  margin-inline: auto;
}

/* Legacy timeline (unused) */
.tl-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; text-align: left;
  animation: tlReveal 0.6s ease forwards;
  opacity: 0;
  transform: translateX(-8px);
}

.tl-row:nth-child(1) { animation-delay: 0.1s; }
.tl-row:nth-child(2) { animation-delay: 0.3s; }
.tl-row:nth-child(3) { animation-delay: 0.5s; }
.tl-row:nth-child(4) { animation-delay: 0.7s; }
.tl-row:nth-child(5) { animation-delay: 0.9s; }
.tl-row:nth-child(6) { animation-delay: 1.1s; }

.tl-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #4caf50; flex-shrink: 0;
}

.tl-row.done .tl-check { background: rgba(76,175,80,0.15); border-color: #4caf50; }

@keyframes tlReveal {
  to { opacity: 1; transform: translateX(0); }
}

/* Globe — sizing via shared .globe-stage rule above */

.globe-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(212,175,55,0.08), transparent 60%);
  z-index: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; width: 100%;
}

.metric-card {
  padding: 12px 8px; text-align: center;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 10px;
  animation: metricPulse 3s ease-in-out infinite;
}

.metric-card:nth-child(2) { animation-delay: 0.3s; }
.metric-card:nth-child(3) { animation-delay: 0.6s; }
.metric-card:nth-child(4) { animation-delay: 0.9s; }
.metric-card:nth-child(5) { animation-delay: 1.2s; }
.metric-card:nth-child(6) { animation-delay: 1.5s; }

@keyframes metricPulse {
  0%, 100% { border-color: rgba(212,175,55,0.3); box-shadow: none; }
  50% { border-color: rgba(255,215,106,0.6); box-shadow: 0 0 12px rgba(212,175,55,0.15); }
}

.metric-value {
  font-family: var(--font-h);
  font-size: 18px; font-weight: 700; color: var(--gold2);
}

.metric-label { font-size: 8px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

.asset-fusion-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 6px;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}

.asset-token-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 6px;
  font-weight: 700;
  color: #fff;
  opacity: 0.7;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; width: 100%;
}

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; width: 100%;
}

.asset-card {
  padding: 12px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: assetFloat 3s ease-in-out infinite;
}

.asset-card:nth-child(odd) { animation-delay: 0.3s; }

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

.asset-type {
  font-size: 7px; font-weight: 700; text-transform: uppercase;
  color: var(--gold); letter-spacing: 0.08em; margin-bottom: 4px;
}

.asset-card h3 { font-size: 11px; font-family: var(--font-h); margin-bottom: 4px; }
.asset-card p { font-size: 9px; color: var(--muted); line-height: 1.4; }

/* Finale */
.scene-finale .finale-headline {
  font-family: var(--font-h);
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  white-space: pre-line;
  margin-bottom: 8px;
}

.finale-sub { font-size: 14px; color: var(--gold2); font-weight: 600; margin-bottom: 12px; }
.finale-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(9, 9, 13, 0.92);
  border-top: 1px solid var(--border);
  z-index: 150;
}

.nav-item {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 11px; font-weight: 600;
  font-family: var(--font-b);
  letter-spacing: 0.04em;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 8px;
}

.nav-item.active { color: var(--gold2); font-size: 11px; }

.toast {
  position: fixed;
  bottom: calc(var(--nav) + 12px);
  left: 50%; transform: translateX(-50%) translateY(10px);
  background: #111; border: 1px solid var(--border);
  color: var(--gold2); font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: 20px;
  opacity: 0; pointer-events: none; transition: 0.3s; z-index: 200;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 768px) {
  .scene-wrap { width: min(100%, 680px); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .assets-grid { grid-template-columns: repeat(4, 1fr); }
  .flow-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .flow-arrow { transform: rotate(-90deg); }
}
