/* THE BURNING BULL — molten orange on scorched black */

:root {
  --bg: #0a0503;
  --bg-2: #14090a;
  --primary: #ff4a00;
  --primary-glow: rgba(255, 74, 0, 0.5);
  --ember: #ffb84a;
  --text: #f5e6d3;
  --text-dim: #8a7060;
  --border: rgba(255, 74, 0, 0.15);
  --card-bg: rgba(20, 9, 10, 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(255, 74, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 74, 0, 0.05) 0%, transparent 60%),
    var(--bg);
}

/* ─── FIRE 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, 74, 0, 0.15), transparent 40%),
    radial-gradient(circle at 60% 100%, rgba(255, 184, 74, 0.12), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(255, 74, 0, 0.10), 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-bull {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: -1;
  filter: contrast(1.1) saturate(1.2);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 5, 3, 0.6) 0%,
    rgba(10, 5, 3, 0.4) 50%,
    rgba(10, 5, 3, 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, 74, 0, 0.3),
    0 0 60px rgba(255, 74, 0, 0.15);
  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, 74, 0, 0.3), 0 0 60px rgba(255, 74, 0, 0.15); }
  50% { text-shadow: 0 0 30px var(--primary), 0 0 60px rgba(255, 74, 0, 0.5), 0 0 90px rgba(255, 74, 0, 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, 184, 74, 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;
}

.supply-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2rem;
  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, 74, 0, 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(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
  line-height: 1;
  margin-bottom: 1.5rem;
  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, 74, 0, 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;
}

.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); }

/* ─── 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, 74, 0, 0.05);
}
.burn-table tbody tr {
  transition: background 0.15s;
}
.burn-table tbody tr:hover { background: rgba(255, 74, 0, 0.04); }
.burn-table tr.new-row { animation: newBurnFlash 2s ease-out; }
@keyframes newBurnFlash {
  0% { background: rgba(255, 74, 0, 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; }
}
