/* ═══════════════════════════════════════════════════════════════════
   ASH CAT — cash cat died. we kept the cat.
   Editorial serif · warm charcoal · bone cream · ember glow.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg:          #0a0908;
  --bg-elev:    #12100e;
  --bg-deep:    #050403;
  --bone:       #e8dcc4;
  --bone-dim:   #c9bfa8;
  --ash:        #7a7369;
  --ash-deep:   #3a3632;
  --ember:      #ff6b2c;
  --ember-warm: #ffb066;
  --ember-glow: rgba(255, 107, 44, 0.45);
  --danger:     #e04a3a;

  /* Type — carefully chosen with real fallbacks */
  --f-serif:   'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, 'Times New Roman', Times, serif;
  --f-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  --f-body:    'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --max-w: 1280px;
}

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

html, body {
  background: var(--bg);
  color: var(--bone-dim);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(255, 107, 44, 0.08), transparent 60%),
    radial-gradient(ellipse 80% 50% at 90% 100%, rgba(122, 115, 105, 0.10), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--ember); color: var(--bg-deep); }

/* ═══ GRAIN ═══ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.87  0 0 0 0 0.77  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ═══ AMBIENT EMBER GLOWS ═══ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: emberDrift 24s ease-in-out infinite;
}
.ambient-glow.g1 {
  top: 20%; left: -10%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.5), transparent 70%);
}
.ambient-glow.g2 {
  bottom: -10%; right: -5%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(255, 176, 102, 0.3), transparent 70%);
  animation-delay: -12s; animation-duration: 32s;
}
@keyframes emberDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(5vw, -3vw) scale(1.1); }
}

/* ═══ TOP NAV ═══ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(58, 54, 50, 0.5);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  flex-shrink: 0;
}
.logo-mark {
  color: var(--ember);
  font-size: 1em;
  line-height: 1;
  text-shadow: 0 0 14px var(--ember-glow);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.topnav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0 auto;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--ash);
  letter-spacing: 0.05em;
}
.topnav-links a {
  transition: color 0.15s;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.topnav-links a:hover {
  color: var(--bone);
  border-bottom-color: var(--ember);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 107, 44, 0.08);
  border: 1px solid rgba(255, 107, 44, 0.28);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ember-warm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember-glow);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.topnav-cta {
  padding: 0.55rem 1.15rem;
  background: var(--ember);
  color: var(--bg-deep);
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: all 0.15s;
  box-shadow: 0 0 24px var(--ember-glow);
  white-space: nowrap;
}
.topnav-cta:hover {
  background: var(--ember-warm);
  transform: translateY(-1px);
  box-shadow: 0 4px 32px var(--ember-glow);
}

@media (max-width: 720px) {
  .topnav { gap: 0.75rem; padding: 0.75rem 1rem; }
  .topnav-links { display: none; }
  .topnav-cta { margin-left: auto; padding: 0.45rem 0.95rem; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════
   HERO — centered, text-first. cat is a photograph below.
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--pad-x) 5rem;
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.hero-title-emph {
  font-style: italic;
  color: var(--ember);
  text-shadow: 0 0 48px rgba(255, 107, 44, 0.35);
}

.hero-lede {
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.5;
  color: var(--bone-dim);
  max-width: 52ch;
  margin-bottom: 3rem;
  letter-spacing: -0.005em;
}

.hero-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 620px;
  align-items: center;
}

.ca-block {
  border: 1px solid var(--ash-deep);
  background: rgba(18, 16, 14, 0.6);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
  width: 100%;
  text-align: left;
}
.ca-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ash);
  margin-bottom: 0.5rem;
}
.ca-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ca-value {
  font-family: var(--f-mono);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: var(--bone);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}
.ca-copy {
  background: transparent;
  border: 1px solid var(--ash-deep);
  color: var(--ember-warm);
  padding: 0.35rem 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.ca-copy:hover {
  background: var(--ember);
  color: var(--bg-deep);
  border-color: var(--ember);
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: all 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--ember);
  color: var(--bg-deep);
  border-color: var(--ember);
  box-shadow: 0 0 32px var(--ember-glow);
}
.btn-primary:hover {
  background: var(--ember-warm);
  border-color: var(--ember-warm);
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(255, 176, 102, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--ash-deep);
}
.btn-ghost:hover {
  border-color: var(--bone);
  background: rgba(232, 220, 196, 0.05);
  transform: translateY(-2px);
}
.btn-arrow { transition: transform 0.18s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .hero { padding: 3rem 1.25rem 5rem; }
  .hero-title-line { white-space: normal; }
}

/* ═══════════════════════════════════════════════════
   PORTRAIT — cat as photograph, not wallpaper
   ═══════════════════════════════════════════════════ */
.portrait {
  position: relative;
  z-index: 1;
  padding: 4rem var(--pad-x) 5rem;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(ellipse 40% 50% at 50% 50%, rgba(255, 107, 44, 0.06), transparent 70%);
}
.portrait-figure {
  max-width: 480px;
  margin: 0 auto;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ash-deep);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 8px rgba(18, 16, 14, 0.9),
    0 0 0 9px var(--ash-deep),
    0 0 80px rgba(255, 107, 44, 0.18);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.02) saturate(1.05);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(10, 9, 8, 0.4) 100%);
  pointer-events: none;
}
.portrait-caption {
  margin-top: 1.5rem;
  padding: 0 0.5rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.portrait-cap-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ember);
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.portrait-cap-text {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ash);
  font-style: normal;
}
.portrait-cap-text em {
  color: var(--bone);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════
   LORE — the story
   ═══════════════════════════════════════════════════ */
.lore {
  position: relative;
  z-index: 1;
  padding: 6rem var(--pad-x) 7rem;
  border-top: 1px solid var(--ash-deep);
  border-bottom: 1px solid var(--ash-deep);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 107, 44, 0.04), transparent 70%),
    var(--bg-deep);
}
.lore-inner {
  max-width: 720px;
  margin: 0 auto;
}
.lore-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ember-warm);
  margin-bottom: 3rem;
  text-align: center;
}
.lore-para {
  font-family: var(--f-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.55;
  color: var(--bone);
  margin-bottom: 1.85rem;
  letter-spacing: -0.005em;
}
.lore-para strong {
  font-weight: 400;
  font-style: italic;
  color: var(--ember);
}
.lore-para em {
  font-style: italic;
  color: var(--bone-dim);
}
.lore-drop-cap {
  float: left;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 4.5em;
  line-height: 0.85;
  padding: 0.1em 0.12em 0 0;
  color: var(--ember);
  text-shadow: 0 0 24px var(--ember-glow);
}
.lore-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ash-deep) 30%, var(--ash-deep) 70%, transparent);
  margin: 3rem auto;
  max-width: 200px;
}
.lore-signoff-para {
  color: var(--bone-dim);
}
.lore-signoff {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ash);
  text-align: center;
  margin-top: 4rem;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════════════════════ */
.section-heading {
  margin-bottom: 3rem;
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ember-warm);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--bone);
}
.title-badge {
  display: inline-block;
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.42em;
  letter-spacing: 0.1em;
  padding: 0.35em 0.65em;
  background: rgba(255, 107, 44, 0.14);
  color: var(--ember);
  border: 1px solid rgba(255, 107, 44, 0.35);
  border-radius: 6px;
  vertical-align: 0.35em;
  margin: 0 0.15em;
  box-shadow: 0 0 20px rgba(255, 107, 44, 0.15);
}

/* ═══════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════ */
.dashboard {
  position: relative;
  z-index: 1;
  padding: 6rem var(--pad-x) 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-row {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-stat,
.supply-card {
  background: var(--bg-elev);
  border: 1px solid var(--ash-deep);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.supply-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 107, 44, 0.12), transparent 60%);
  pointer-events: none;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ash);
  margin-bottom: 1.1rem;
}
.stat-number {
  font-family: var(--f-mono);
  font-weight: 700;
  color: var(--bone);
}
.stat-number.countdown {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ember);
  text-shadow: 0 0 20px var(--ember-glow);
  letter-spacing: -0.02em;
}
.stat-number.small {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--ember);
}
.stat-number.tiny {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--ember-warm);
}
.stat-sub {
  font-family: var(--f-mono);
  color: var(--ash);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.stat-sub span { color: var(--bone); }

.supply-number {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--ember);
  text-shadow: 0 0 32px var(--ember-glow);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  transition: color 0.3s;
}
.supply-number.pulse { animation: burnPulse 1s ease-out; }
@keyframes burnPulse {
  0%   { color: var(--ember-warm); text-shadow: 0 0 60px var(--ember-warm), 0 0 100px var(--ember); transform: scale(1.03); }
  100% { color: var(--ember); text-shadow: 0 0 32px var(--ember-glow); transform: scale(1); }
}
.progress-label {
  font-family: var(--f-mono);
  color: var(--ember-warm);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .hero-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* Small stats row */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--ash-deep);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card.mini .stat-label { margin-bottom: 0.6rem; }

/* ═══════════════════════════════════════════════════
   THE PYRE
   ═══════════════════════════════════════════════════ */
.fuse-container {
  position: relative;
  margin: 3rem 0 1rem;
  padding: 2rem 1rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--ash-deep);
  border-radius: 12px;
}
.fuse-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.fuse-title {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--bone);
  letter-spacing: -0.01em;
}
.fuse-subtitle {
  font-family: var(--f-mono);
  color: var(--ember-warm);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fuse-track {
  position: relative;
  height: 80px;
  width: 100%;
}
.fuse-rope {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 7px;
  background:
    linear-gradient(180deg, #1a1614 0%, #0a0806 50%, #1a1614 100%),
    repeating-linear-gradient(90deg,
      transparent 0, transparent 3px,
      rgba(122, 115, 105, 0.05) 3px, rgba(122, 115, 105, 0.05) 6px);
  border: 1px solid rgba(122, 115, 105, 0.15);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.5);
  overflow: hidden;
}
.fuse-rope::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--fuse-burned, 0%);
  background: linear-gradient(90deg,
    #0a0806 0%, #1c1614 20%, #3d2418 55%, #7a3418 82%, #ff8040 96%, #ffcc80 100%);
  box-shadow: inset 0 0 8px rgba(255, 107, 44, 0.55), 0 0 12px rgba(255, 107, 44, 0.4);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fuse-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.fuse-markers {
  position: absolute; top: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
}
.fuse-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fuse-marker-ring {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1614 30%, #0a0806 100%);
  border: 2px solid rgba(255, 107, 44, 0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
  transition: all 0.6s;
}
.fuse-marker-title {
  position: absolute;
  top: -30px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bone);
  letter-spacing: 0.08em;
  opacity: 0.65;
  transition: all 0.5s;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.fuse-marker-label {
  position: absolute;
  bottom: -30px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ember-warm);
  letter-spacing: 0.05em;
  transition: color 0.5s;
  text-shadow: 0 0 8px rgba(255, 176, 102, 0.5), 0 2px 4px rgba(0,0,0,0.9);
}
.fuse-marker.hit .fuse-marker-ring {
  background: radial-gradient(circle, #ffcc80 20%, #ff6b2c 60%, #3d1a08 100%);
  border-color: var(--ember-warm);
  box-shadow: inset 0 0 6px #fff2cc, 0 0 20px var(--ember), 0 0 40px var(--ember-glow);
}
.fuse-marker.hit .fuse-marker-title {
  color: var(--ember);
  opacity: 1;
  text-shadow: 0 0 12px var(--ember-glow), 0 2px 4px rgba(0,0,0,0.9);
}
.fuse-marker.hit .fuse-marker-label {
  color: #ffcc80;
  text-shadow: 0 0 12px var(--ember-warm), 0 2px 4px rgba(0,0,0,0.9);
}
/* Last marker (rightmost) — right-align labels so they don't clip past the container */
.fuse-marker:last-child .fuse-marker-title,
.fuse-marker:last-child .fuse-marker-label {
  right: 0;
  left: auto;
  transform: none;
  text-align: right;
}
.fuse-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding: 0 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--ash);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fuse-current {
  color: var(--ember);
  font-weight: 700;
  text-shadow: 0 0 6px var(--ember-glow);
}

/* ═══ MILESTONE BANNER ═══ */
.milestone-banner {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  text-align: center;
}
.milestone-banner.show {
  animation: milestoneShow 4s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  visibility: visible;
}
.milestone-banner-inner {
  padding: 3rem 5rem;
  background: radial-gradient(ellipse at center, rgba(18, 16, 14, 0.98) 0%, rgba(10, 9, 8, 0.99) 100%);
  border: 2px solid var(--ember);
  border-radius: 16px;
  box-shadow: 0 0 80px var(--ember-glow), inset 0 0 40px rgba(255, 107, 44, 0.2);
}
.milestone-percent {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  color: var(--ember-warm);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}
.milestone-title {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--ember);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px var(--ember-glow), 0 0 60px rgba(255, 107, 44, 0.5);
}
@keyframes milestoneShow {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  8%   { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  15%  { transform: translate(-50%, -50%) scale(1); }
  85%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); visibility: hidden; }
}

body.milestone-flash::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 107, 44, 0.35) 0%, transparent 70%);
  z-index: 9998;
  pointer-events: none;
  animation: screenFlash 1s ease-out;
}
@keyframes screenFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
body.milestone-shake { animation: screenShake 0.4s ease-in-out; }
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  15%      { transform: translate(-4px, 2px); }
  30%      { transform: translate(3px, -3px); }
  45%      { transform: translate(-3px, -2px); }
  60%      { transform: translate(4px, 3px); }
  75%      { transform: translate(-2px, 4px); }
}

/* ═══════════════════════════════════════════════════
   HISTORY TABLE
   ═══════════════════════════════════════════════════ */
.history {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--pad-x);
}
.table-wrap {
  border: 1px solid var(--ash-deep);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev);
}
.burn-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 0.92rem;
}
.burn-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  color: var(--ash);
  font-weight: 400;
  border-bottom: 1px solid var(--ash-deep);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(10, 9, 8, 0.5);
}
.burn-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(122, 115, 105, 0.08);
  color: var(--bone-dim);
}
.burn-table tbody tr { transition: background 0.15s; }
.burn-table tbody tr:hover { background: rgba(255, 107, 44, 0.04); }
.burn-table tr.new-row { animation: newBurnFlash 2s ease-out; }
@keyframes newBurnFlash {
  0%   { background: rgba(255, 107, 44, 0.25); }
  100% { background: transparent; }
}
.burn-table .tx-link {
  color: var(--ember-warm);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.burn-table .tx-link:hover { border-bottom-color: var(--ember-warm); }
.empty-row td {
  text-align: center;
  color: var(--ash);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.15rem;
  padding: 3rem 1rem;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem var(--pad-x) 2rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--ash-deep);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--ash-deep);
  margin-bottom: 2rem;
}
.footer-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ash);
  margin-bottom: 0.75rem;
}
.footer-value {
  font-family: var(--f-body);
  color: var(--bone);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-all;
}
.footer-value.mono { font-family: var(--f-mono); font-size: 0.82rem; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ash);
  box-shadow: 0 0 6px currentColor;
}
.status-dot.live { background: var(--ember); animation: pulseDot 2s ease-in-out infinite; }
.status-dot.error { background: var(--danger); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-tag {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ash);
}
.footer-tag:last-child { font-style: italic; color: var(--ember-warm); opacity: 0.75; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE POLISH
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .portrait { padding: 3rem 1.25rem 4rem; }
  .lore { padding: 4rem 1.25rem 5rem; }
  .lore-para { font-size: 1.3rem; }
  .lore-drop-cap { font-size: 4em; }
  .dashboard, .history { padding: 4rem 1.25rem 3rem; }
  .fuse-container { padding: 1.5rem 0.75rem 1.25rem; }
  .fuse-track { height: 70px; }
  .fuse-marker-title { font-size: 0.7rem; top: -26px; }
  .fuse-marker-label { font-size: 0.78rem; bottom: -26px; }
  .burn-table th, .burn-table td { padding: 0.7rem 0.6rem; font-size: 0.8rem; }
}
