/* ASH CAT — warm embers on cool charcoal, wisps of smoke */

:root {
  --bg: #0d0d10;                              /* near-black cool charcoal */
  --bg-2: #17171b;
  --primary: #ff6b2c;                         /* warm ember */
  --primary-glow: rgba(255, 107, 44, 0.5);
  --ember: #ffb066;                           /* cream ember */
  --smoke: #6b6560;                           /* warm ash grey */
  --text: #e8e4dc;                            /* bone white — matches cat fur */
  --text-dim: #7a7369;                        /* warm ash */
  --border: rgba(255, 107, 44, 0.15);
  --card-bg: rgba(23, 23, 27, 0.7);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at top, rgba(107, 101, 96, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 107, 44, 0.07) 0%, transparent 60%),
    var(--bg);
}

/* ─── SMOKE + EMBER BACKGROUND ──────────────────────── */
.fire-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fire-bg::before, .fire-bg::after {
  content: "";
  position: absolute;
  bottom: -50%;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 100%, rgba(255, 107, 44, 0.10), transparent 40%),
    radial-gradient(circle at 60% 100%, rgba(255, 176, 102, 0.08), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(107, 101, 96, 0.12), transparent 40%);
  animation: emberFloat 8s ease-in-out infinite;
}
.fire-bg::after {
  animation-delay: -4s;
  animation-duration: 12s;
  opacity: 0.6;
}
@keyframes emberFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  z-index: 1;
}
.hero-cat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
  z-index: -1;
  filter: contrast(1.05) saturate(1.05) brightness(0.9);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13, 13, 16, 0.55) 0%,
    rgba(13, 13, 16, 0.35) 50%,
    rgba(13, 13, 16, 0.95) 100%);
  z-index: -1;
}
.hero-content { text-align: center; max-width: 800px; }

.title {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: 0.05em;
  color: var(--text);
  text-shadow:
    0 0 20px var(--primary-glow),
    0 0 40px rgba(255, 107, 44, 0.3),
    0 0 60px rgba(107, 101, 96, 0.2);
  margin-bottom: 0.5rem;
  animation: titlePulse 3s ease-in-out infinite;
}
@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(255, 107, 44, 0.3), 0 0 60px rgba(107, 101, 96, 0.2); }
  50% { text-shadow: 0 0 30px var(--primary), 0 0 60px rgba(255, 107, 44, 0.5), 0 0 90px rgba(255, 107, 44, 0.25); }
}

.ticker {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px var(--primary-glow);
}

.ca-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
.ca-label { color: var(--text-dim); }
.ca-value { color: var(--ember); word-break: break-all; }
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}
.copy-btn:hover { background: var(--primary); color: var(--bg); }

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.9rem 2rem;
  font-family: 'Alfa Slab One', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  border: 2px solid;
}
.btn.primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn.primary:hover {
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 30px rgba(255, 176, 102, 0.6);
  transform: translateY(-2px);
}
.btn.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn.secondary:hover {
  background: var(--primary);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero-tagline {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── DASHBOARD ─────────────────────────────────────── */
.dashboard {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 3-column hero row: timer | supply | burning-with */
.hero-row {
  display: grid;
  grid-template-columns: 0.7fr 3fr 0.7fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.hero-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-stat .stat-label {
  font-family: 'Alfa Slab One', serif;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.hero-stat .stat-number.countdown {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}
.hero-stat .stat-number.small {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--primary);
}
.hero-stat .stat-sub {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  word-break: break-word;
}
.hero-stat .stat-sub span { color: var(--ember); }

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

.supply-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.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;
}

.supply-label {
  font-family: 'Alfa Slab One', serif;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.supply-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: visible;
  transition: color 0.3s;
}
.supply-number.pulse {
  animation: burnPulse 1s ease-out;
}
@keyframes burnPulse {
  0% { color: var(--ember); text-shadow: 0 0 60px var(--ember), 0 0 100px var(--primary); transform: scale(1.03); }
  100% { color: var(--primary); text-shadow: 0 0 30px var(--primary-glow); transform: scale(1); }
}

.progress-bar {
  height: 6px;
  background: rgba(255, 107, 44, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--ember));
  box-shadow: 0 0 10px var(--primary-glow);
  transition: width 1s ease-out;
}
.progress-label {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ember);
  font-size: 0.95rem;
}

/* The big % burned readout — hero-level prominence */
.burned-pct {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.15em;
  color: var(--ember);
  text-shadow:
    0 0 20px rgba(255, 176, 102, 0.6),
    0 0 40px rgba(255, 107, 44, 0.35);
  margin-top: 0.5rem;
  animation: burnedPctPulse 3s ease-in-out infinite;
}
@keyframes burnedPctPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 176, 102, 0.6), 0 0 40px rgba(255, 107, 44, 0.35); }
  50%      { text-shadow: 0 0 30px rgba(255, 176, 102, 0.9), 0 0 60px rgba(255, 107, 44, 0.6); }
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}
.stat-card.mini { padding: 1rem; }

.stat-label {
  font-family: 'Alfa Slab One', serif;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.stat-number.small { font-size: 1.5rem; color: var(--primary); }
.stat-number.tiny { font-size: 1.15rem; color: var(--ember); }
.stat-number.countdown { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.stat-sub {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.stat-sub span { color: var(--ember); }

/* ─── THE PYRE ──────────────────────────────────────── */
.fuse-container {
  position: relative;
  margin: 2rem 0 3rem;
  padding: 2rem 0.5rem 1.5rem;
}
.fuse-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}
.fuse-title {
  font-family: 'Alfa Slab One', serif;
  color: var(--text);
  letter-spacing: 0.2em;
  font-size: 1rem;
  text-shadow: 0 0 15px var(--primary-glow);
}
.fuse-subtitle {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ember);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fuse-track {
  position: relative;
  height: 70px;
  width: 100%;
}
.fuse-rope {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 7px;
  background:
    linear-gradient(180deg, #1a1618 0%, #0a0808 50%, #1a1618 100%),
    repeating-linear-gradient(90deg,
      transparent 0, transparent 3px,
      rgba(107, 101, 96, 0.05) 3px, rgba(107, 101, 96, 0.05) 6px);
  border: 1px solid rgba(107, 101, 96, 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;
}
/* Burned portion — ash trail heating into ember at the tip */
.fuse-rope::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--fuse-burned, 0%);
  background:
    linear-gradient(90deg,
      #0a0808 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;
  transition: all 0.5s;
}
.fuse-marker-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1618 30%, #0a0808 100%);
  border: 2px solid rgba(255, 107, 44, 0.25);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9), 0 0 0 2px rgba(0,0,0,0.4);
  transition: all 0.6s;
}
.fuse-marker-label {
  position: absolute;
  bottom: -26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ember);
  letter-spacing: 0.1em;
  transition: color 0.5s;
  white-space: nowrap;
  text-shadow:
    0 0 8px rgba(255, 176, 102, 0.6),
    0 0 16px rgba(0, 0, 0, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.9);
}
.fuse-marker-title {
  position: absolute;
  top: -26px;
  font-family: 'Alfa Slab One', serif;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.15em;
  opacity: 0.75;
  transition: all 0.5s;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.9),
    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);
  box-shadow:
    inset 0 0 6px #fff2cc,
    0 0 20px var(--primary),
    0 0 40px rgba(255, 107, 44, 0.5);
}
.fuse-marker.hit .fuse-marker-label {
  color: #ffcc80;
  text-shadow:
    0 0 12px var(--ember),
    0 0 24px rgba(255, 107, 44, 0.7),
    0 2px 4px rgba(0, 0, 0, 0.9);
}
.fuse-marker.hit .fuse-marker-title {
  color: var(--primary);
  opacity: 1;
  text-shadow:
    0 0 12px var(--primary-glow),
    0 0 24px rgba(255, 107, 44, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.9);
}
.fuse-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding: 0 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.fuse-current {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 6px var(--primary-glow);
}

/* ─── MILESTONE BANNER (fires on hit) ───────────────── */
.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: milestoneBannerShow 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(23, 23, 27, 0.95) 0%, rgba(13, 13, 16, 0.98) 100%);
  border: 2px solid var(--primary);
  box-shadow:
    0 0 80px var(--primary-glow),
    0 0 150px rgba(255, 107, 44, 0.3),
    inset 0 0 40px rgba(255, 107, 44, 0.2);
}
.milestone-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: var(--ember);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}
.milestone-title {
  font-family: 'Alfa Slab One', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--primary);
  letter-spacing: 0.15em;
  text-shadow:
    0 0 30px var(--primary-glow),
    0 0 60px rgba(255, 107, 44, 0.5),
    0 0 90px rgba(255, 107, 44, 0.3);
}
@keyframes milestoneBannerShow {
  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; }
}

/* Screen flash + shake fire on milestone hit */
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: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.section-title {
  font-family: 'Alfa Slab One', serif;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.burn-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}
.burn-table th {
  text-align: left;
  padding: 0.75rem 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.burn-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 107, 44, 0.05);
}
.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(--primary);
  text-decoration: none;
}
.burn-table .tx-link:hover { text-decoration: underline; }
.empty-row td {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  padding: 2rem;
}

/* ─── FOOTER ────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}
.footer-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.footer-label { color: var(--text-dim); }
.footer-value { color: var(--ember); word-break: break-all; }
.footer-value.mono { font-size: 0.75rem; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 6px currentColor;
}
.status-dot.live { background: var(--primary); animation: statusPulse 2s ease-in-out infinite; }
.status-dot.error { background: #dc2626; }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.footer-tagline {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-style: italic;
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 2rem; }
  .dashboard, .history { padding: 2rem 1rem; }
  .supply-card { padding: 2rem 1rem; }
  .burn-table th, .burn-table td { padding: 0.6rem 0.4rem; font-size: 0.8rem; }
}
/* ═══════════════════════════════════════════════════════════════════
   COMPACT MODE — fits full dashboard in laptop viewport (720-900px height)
   ═══════════════════════════════════════════════════════════════════ */

/* Kick in below 900px viewport height (typical laptop) */
@media (max-height: 900px) {
  /* Shrink hero drastically */
  .hero {
    min-height: unset !important;
    padding: 1rem 1.5rem 1.25rem !important;
  }
  .hero .title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    margin-bottom: 0.4rem !important;
  }
  .hero .ticker {
    font-size: 0.9rem !important;
    margin-bottom: 0.6rem !important;
  }
  .hero .ca-row {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  .hero .hero-buttons {
    margin-bottom: 0.5rem !important;
  }
  .hero .btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.8rem !important;
  }
  .hero .hero-tagline,
  .hero .tagline {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  .hero-cat {
    opacity: 0.30 !important;
  }

  /* Dashboard */
  .dashboard {
    padding: 0.5rem 1rem !important;
  }
  .hero-row {
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-stat {
    padding: 0.6rem 0.5rem !important;
  }
  .hero-stat .stat-label {
    font-size: 0.65rem !important;
    margin-bottom: 0.35rem !important;
  }
  .hero-stat .stat-number.countdown {
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
  }
  .hero-stat .stat-number.small {
    font-size: clamp(1rem, 2vw, 1.4rem) !important;
  }
  .hero-stat .stat-sub {
    font-size: 0.65rem !important;
    margin-top: 0.2rem !important;
  }

  /* Supply card */
  .supply-card {
    padding: 0.75rem 0.75rem !important;
  }
  .supply-label {
    font-size: 0.7rem !important;
    margin-bottom: 0.3rem !important;
  }
  .supply-number {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem) !important;
    margin-bottom: 0.3rem !important;
  }
  .burned-pct {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem) !important;
    margin-top: 0.2rem !important;
  }

  /* Pyre */
  .fuse-container {
    margin: 0.5rem 0 !important;
    padding: 0.75rem 0.5rem 0.5rem !important;
  }
  .fuse-header {
    margin-bottom: 0.25rem !important;
  }
  .fuse-title {
    font-size: 0.8rem !important;
  }
  .fuse-subtitle {
    font-size: 0.65rem !important;
  }
  .fuse-track {
    height: 60px !important;
  }
  .fuse-footer {
    margin-top: 0.5rem !important;
    font-size: 0.7rem !important;
  }

  /* Stat cards */
  .row {
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .stat-card {
    padding: 0.5rem !important;
  }
  .stat-card .stat-label {
    font-size: 0.6rem !important;
    margin-bottom: 0.2rem !important;
  }
  .stat-number.tiny {
    font-size: 1rem !important;
  }

  /* History table if visible */
  .history-header {
    padding: 0.5rem 0 !important;
  }
  .history-title {
    font-size: 0.9rem !important;
  }
}

/* Even tighter for very short screens (below 750px) */
@media (max-height: 750px) {
  .hero {
    padding: 0.6rem 1rem 0.75rem !important;
    min-height: unset !important;
  }
  .hero .title {
    font-size: clamp(1.6rem, 4vw, 2.5rem) !important;
    margin-bottom: 0.25rem !important;
  }
  .hero .ca-row {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.7rem !important;
    margin-bottom: 0.4rem !important;
  }
  .hero .btn {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.7rem !important;
  }
  .hero .hero-tagline,
  .hero .tagline {
    display: none !important;
  }
  .fuse-track {
    height: 50px !important;
  }
  .fuse-marker-title {
    font-size: 0.55rem !important;
  }
  .fuse-marker-label {
    font-size: 0.7rem !important;
    bottom: -20px !important;
  }
}
/* ═══════════════════════════════════════════════════════════════════
   CAT IMAGE CENTERPIECE
   ═══════════════════════════════════════════════════════════════════ */

.cat-image {
  position: relative;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 107, 44, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 176, 102, 0.15),
    0 0 40px rgba(255, 107, 44, 0.35),
    0 0 90px rgba(255, 107, 44, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.6);
  animation: catGlow 3.5s ease-in-out infinite;
}
@keyframes catGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 176, 102, 0.15), 0 0 40px rgba(255, 107, 44, 0.35), 0 0 90px rgba(255, 107, 44, 0.15), 0 6px 20px rgba(0, 0, 0, 0.6); }
  50%      { box-shadow: inset 0 1px 0 rgba(255, 176, 102, 0.25), 0 0 60px rgba(255, 176, 102, 0.5), 0 0 130px rgba(255, 107, 44, 0.25), 0 6px 20px rgba(0, 0, 0, 0.6); }
}
.cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Vignette so edges blend with the dashboard */
.cat-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(13, 13, 16, 0.5) 100%);
}

/* Shrink for laptops */
@media (max-height: 900px) {
  .cat-image {
    max-width: 200px !important;
    margin: 0.25rem auto 0.75rem !important;
  }
}
@media (max-height: 800px) {
  .cat-image {
    max-width: 150px !important;
    margin: 0.15rem auto 0.5rem !important;
  }
}
@media (max-height: 750px) {
  .cat-image {
    max-width: 120px !important;
    margin: 0.1rem auto 0.35rem !important;
  }
}
