/* =========================================================
   DRAGONCOIN — The Eternal Flame
   Dark fantasy × Elder Scrolls × Elon's cosmic forge
   ========================================================= */

:root {
  --bg-0: #07050a;
  --bg-1: #0d0a12;
  --bg-2: #15101a;
  --ink: #f6e9d2;
  --ink-dim: #b9a78a;
  --ink-mute: #8a7a64;

  --fire-1: #ff4a1c;
  --fire-2: #ff8a2a;
  --fire-3: #ffd166;
  --gold: #e9b454;
  --gold-deep: #8a5a16;
  --ember: #ff6b3d;
  --blood: #6a0d0d;

  --xai-cyan: #4ad6ff;
  --xai-violet: #8a5cff;

  --rune: rgba(233, 180, 84, 0.10);
  --rune-strong: rgba(233, 180, 84, 0.35);

  --serif: 'Cinzel', 'Times New Roman', serif;
  --serif-deco: 'Cinzel Decorative', 'Cinzel', serif;
  --rune-font: 'MedievalSharp', 'Cinzel', serif;
  --tech: 'Orbitron', 'Inter', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: radial-gradient(ellipse at top, #15101a 0%, #07050a 55%, #04020a 100%);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  font-weight: 300;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--fire-1); color: #fff; }

/* ====================== AMBIENT LAYERS ====================== */
.rune-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--rune) 1px, transparent 1px),
    linear-gradient(90deg, var(--rune) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

#ember-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.5) 100%);
}

/* ====================== NAV ====================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: linear-gradient(180deg, rgba(7,5,10,0.85) 0%, rgba(7,5,10,0.0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(233, 180, 84, 0.06);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif-deco);
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 18px;
}
.brand-glyph {
  color: var(--gold);
  font-size: 22px;
  text-shadow: 0 0 18px rgba(255, 138, 42, 0.7);
}
.brand-text { color: var(--ink); }
.brand-accent {
  background: linear-gradient(180deg, var(--fire-3), var(--fire-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex; gap: 36px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 50%; bottom: -3px;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.4s ease, left 0.4s ease;
}
.nav-links a:hover { color: var(--fire-3); }
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-cta {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(233, 180, 84, 0.4);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  background: linear-gradient(180deg, rgba(255,138,42,0.05), rgba(255,74,28,0.1));
}
.nav-cta:hover {
  border-color: var(--fire-3);
  color: var(--fire-3);
  box-shadow: 0 0 24px rgba(255, 138, 42, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav { padding: 14px 18px; }
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
  z-index: 5;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-img-main {
  inset: 0;
  opacity: 0.42;
  filter: contrast(1.1) saturate(1.2) brightness(0.85);
  mask-image: radial-gradient(ellipse 80% 70% at center 60%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center 60%, black 30%, transparent 80%);
  animation: heroBreathe 10s ease-in-out infinite;
}
.hero-img-eyes {
  inset: -10% 0 0 0;
  height: 70%;
  opacity: 0.18;
  object-position: center top;
  mask-image: linear-gradient(180deg, black 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, black 30%, transparent 80%);
  mix-blend-mode: lighten;
  filter: hue-rotate(-5deg) saturate(0.6);
}
@keyframes heroBreathe {
  0%, 100% { transform: scale(1.0); opacity: 0.42; }
  50%      { transform: scale(1.04); opacity: 0.5; }
}

.hero-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center 75%, rgba(255, 74, 28, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7,5,10,0.5) 0%, transparent 35%, transparent 60%, rgba(7,5,10,0.95) 100%);
}

.hero-fire {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 50%;
  background: radial-gradient(ellipse at center bottom,
      rgba(255, 209, 102, 0.35) 0%,
      rgba(255, 138, 42, 0.25) 20%,
      rgba(255, 74, 28, 0.15) 40%,
      transparent 70%);
  filter: blur(20px);
  animation: heroFire 6s ease-in-out infinite;
}
@keyframes heroFire {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  text-shadow: 0 0 18px rgba(255, 138, 42, 0.5);
}
.kicker-line {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.title {
  font-family: var(--serif-deco);
  font-weight: 900;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  text-transform: uppercase;
  position: relative;
}
.title-line {
  display: block;
  background: linear-gradient(180deg,
      #fff8e8 0%,
      var(--fire-3) 30%,
      var(--fire-2) 60%,
      var(--fire-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 138, 42, 0.55))
          drop-shadow(0 0 60px rgba(255, 74, 28, 0.35));
  animation: titleGlow 5s ease-in-out infinite;
}
.title-line-2 {
  letter-spacing: 0.18em;
  font-size: 0.55em;
  font-weight: 700;
  margin-top: -0.05em;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(233, 180, 84, 0.45));
  animation: none;
}
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 138, 42, 0.55)) drop-shadow(0 0 60px rgba(255, 74, 28, 0.35)); }
  50%      { filter: drop-shadow(0 0 50px rgba(255, 138, 42, 0.85)) drop-shadow(0 0 100px rgba(255, 74, 28, 0.55)); }
}

.subtitle {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 400;
  color: var(--ink-dim);
  margin-bottom: 44px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.subtitle strong { color: var(--fire-3); font-weight: 700; }

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.btn-large { padding: 20px 42px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(180deg, var(--fire-2) 0%, var(--fire-1) 50%, #c2300d 100%);
  color: #1a0805;
  border: 1px solid var(--fire-3);
  box-shadow:
    0 0 30px rgba(255, 138, 42, 0.5),
    0 0 60px rgba(255, 74, 28, 0.3),
    inset 0 1px 0 rgba(255, 240, 200, 0.5),
    inset 0 -2px 6px rgba(120, 30, 0, 0.4);
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4);
}
.btn-primary .btn-fire {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(255, 240, 200, 0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  z-index: -1;
  transition: transform 0.6s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 50px rgba(255, 138, 42, 0.8),
    0 0 100px rgba(255, 74, 28, 0.4),
    inset 0 1px 0 rgba(255, 240, 200, 0.6),
    inset 0 -2px 6px rgba(120, 30, 0, 0.4);
}
.btn-primary:hover .btn-fire { transform: translateX(100%); }
.btn-arrow { transition: transform 0.3s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  border: 1px solid rgba(233, 180, 84, 0.4);
  background: rgba(15, 10, 20, 0.5);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--fire-3);
  background: rgba(255, 138, 42, 0.1);
  box-shadow: 0 0 30px rgba(233, 180, 84, 0.3);
  transform: translateY(-2px);
}

/* hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 5vw, 80px);
  flex-wrap: wrap;
  margin-top: 24px;
}
.hstat {
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.hstat::before, .hstat::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 1px; height: 60%;
  background: linear-gradient(180deg, transparent, var(--rune-strong), transparent);
}
.hstat::before { left: -16px; }
.hstat:last-child::after { right: -16px; }
.hstat:first-child::before { display: none; }

.hstat-num {
  font-family: var(--serif-deco);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  background: linear-gradient(180deg, var(--fire-3), var(--fire-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hstat-num span { font-size: 0.5em; }
.hstat-label {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 3;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--gold));
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, transparent, var(--fire-3));
  animation: scrollDown 2.4s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ====================== SECTION ====================== */
.section {
  position: relative;
  padding: 120px 24px;
  z-index: 5;
}
@media (max-width: 720px) { .section { padding: 80px 18px; } }

.section-head {
  max-width: 820px;
  margin: 0 auto 72px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--rune-font);
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}
.eyebrow::before, .eyebrow::after {
  content: '✦';
  margin: 0 14px;
  color: var(--fire-2);
  font-size: 9px;
  vertical-align: middle;
}

.section-title {
  font-family: var(--serif-deco);
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff8e8 0%, var(--fire-3) 50%, var(--fire-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 138, 42, 0.3));
  margin-bottom: 18px;
}
.section-title-left { text-align: left; }

.section-title .vs {
  font-family: var(--rune-font);
  font-size: 0.7em;
  background: linear-gradient(180deg, var(--ink-dim), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0.2em;
  font-style: italic;
}

.section-sub {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  font-style: italic;
}

/* ====================== PROPHECY ====================== */
.prophecy { padding-bottom: 60px; }

.scroll {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  background:
    linear-gradient(180deg, rgba(40, 25, 15, 0.6), rgba(20, 12, 8, 0.85)),
    radial-gradient(ellipse at center, rgba(80, 50, 25, 0.4), transparent 70%);
  border: 1px solid rgba(233, 180, 84, 0.25);
  padding: 56px 40px;
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.7),
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(255, 74, 28, 0.06);
}
.scroll::before, .scroll::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.scroll::before { top: 18px; }
.scroll::after { bottom: 18px; }

.scroll-edge {
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(233, 180, 84, 0.4) 20%,
      rgba(255, 138, 42, 0.6) 50%,
      rgba(233, 180, 84, 0.4) 80%,
      transparent 100%);
  filter: blur(0.4px);
}
.scroll-edge-top { top: -1px; }
.scroll-edge-bottom { bottom: -1px; transform: rotate(180deg); }

.scroll-mark {
  font-family: var(--rune-font);
  text-align: center;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 28px;
}

.scroll-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.7;
  text-align: center;
  font-style: italic;
  color: var(--ink);
  position: relative;
  padding: 0 30px;
  font-weight: 400;
}
.scroll-quote::before, .scroll-quote::after {
  content: '"';
  font-family: var(--serif-deco);
  font-size: 80px;
  position: absolute;
  color: var(--fire-2);
  opacity: 0.4;
  line-height: 1;
}
.scroll-quote::before { top: -20px; left: 0; }
.scroll-quote::after { bottom: -50px; right: 0; }

.scroll-cite {
  text-align: center;
  margin-top: 40px;
  font-family: var(--tech);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cite a {
  color: var(--xai-cyan);
  border-bottom: 1px dashed rgba(74, 214, 255, 0.3);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.scroll-cite a:hover { color: var(--fire-3); border-bottom-color: var(--fire-3); }

.prophecy-grid {
  margin-top: 80px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .prophecy-grid { grid-template-columns: 1fr; } }

.prophecy-card {
  position: relative;
  padding: 40px 32px 36px;
  background: linear-gradient(180deg, rgba(20, 14, 24, 0.85), rgba(10, 7, 14, 0.95));
  border: 1px solid rgba(233, 180, 84, 0.15);
  transition: all 0.5s ease;
  overflow: hidden;
}
.prophecy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 138, 42, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.prophecy-card:hover { border-color: var(--fire-2); transform: translateY(-4px); }
.prophecy-card:hover::before { opacity: 1; }

.prophecy-card-glow {
  border-color: rgba(255, 138, 42, 0.5);
  box-shadow: 0 0 40px rgba(255, 138, 42, 0.18), inset 0 0 40px rgba(255, 138, 42, 0.05);
}

.card-num {
  font-family: var(--serif-deco);
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(233, 180, 84, 0.3));
}

.prophecy-card h3 {
  font-family: var(--serif-deco);
  font-size: 24px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--fire-3);
}
.prophecy-card p {
  font-family: var(--serif);
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
}
.prophecy-card strong { color: var(--fire-3); font-weight: 700; }

/* ====================== WAR ====================== */
.war {
  position: relative;
  overflow: hidden;
}
.war-bg {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
}
.war-bg-img {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.10;
  filter: contrast(1.2) saturate(0.6) hue-rotate(-10deg);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.war-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .war-grid { grid-template-columns: 1fr; gap: 16px; }
}

.combatant {
  position: relative;
  padding: 48px 36px;
  background: linear-gradient(180deg, rgba(15, 10, 18, 0.9), rgba(7, 5, 10, 0.95));
  border: 1px solid rgba(233, 180, 84, 0.18);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.combatant-goblin {
  border-color: rgba(140, 200, 100, 0.2);
  background: linear-gradient(180deg, rgba(15, 18, 12, 0.9), rgba(7, 10, 6, 0.95));
}
.combatant-goblin::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at bottom, rgba(120, 180, 70, 0.12), transparent 70%);
}

.combatant-dragon {
  border-color: rgba(255, 138, 42, 0.5);
  box-shadow:
    0 0 60px rgba(255, 138, 42, 0.18),
    inset 0 0 60px rgba(255, 74, 28, 0.05);
  transform: scale(1.02);
}
.combatant-dragon::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(255, 138, 42, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(255, 74, 28, 0.18), transparent 70%);
  pointer-events: none;
}
.combatant-dragon:hover { transform: scale(1.04); }

.combatant-tag {
  position: relative;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 138, 42, 0.4);
  background: rgba(255, 74, 28, 0.1);
  color: var(--fire-3);
  font-size: 9px;
  letter-spacing: 0.3em;
}
.combatant-goblin .live-tag {
  border-color: rgba(140, 200, 100, 0.4);
  background: rgba(120, 180, 70, 0.08);
  color: #a6c878;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fire-2);
  box-shadow: 0 0 8px var(--fire-2);
  animation: livePulse 1.6s ease-in-out infinite;
}
.combatant-goblin .live-dot {
  background: #8aa56a;
  box-shadow: 0 0 8px #8aa56a;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}
.stat-pulse {
  animation: statPulse 1s ease;
}
@keyframes statPulse {
  0%   { color: var(--fire-3); text-shadow: 0 0 12px var(--fire-2); }
  100% { color: inherit; text-shadow: none; }
}

.combatant-name {
  position: relative;
  font-family: var(--serif-deco);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: 14px;
}
.combatant-who {
  display: block;
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 10px;
  background: none !important;
  -webkit-text-fill-color: initial;
  filter: none !important;
}
.combatant-goblin .combatant-who { color: #8aa56a; }
.combatant-dragon .combatant-who { color: var(--gold); text-shadow: 0 0 14px rgba(255, 138, 42, 0.4); }
.combatant-goblin .combatant-name {
  background: linear-gradient(180deg, #c8e09a 0%, #6b8a3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(120, 180, 70, 0.3));
}
.combatant-dragon .combatant-name {
  background: linear-gradient(180deg, #fff8e8 0%, var(--fire-3) 40%, var(--fire-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 138, 42, 0.6));
}

.combatant-desc {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-dim);
  margin-bottom: 28px;
  font-size: 15px;
}

.combatant-stats {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.combatant-stats li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(233, 180, 84, 0.1);
  font-family: var(--serif);
}
.combatant-stats li:last-child { border-bottom: 0; }
.combatant-stats span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.combatant-stats strong {
  font-family: var(--serif-deco);
  font-weight: 900;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.combatant-dragon .combatant-stats strong { color: var(--fire-3); }

.combatant-flag {
  position: relative;
  margin-top: 28px;
  padding: 12px 18px;
  text-align: center;
  font-family: var(--rune-font);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #1a0805;
  background: linear-gradient(180deg, var(--fire-2), var(--fire-1));
  border: 1px solid var(--fire-3);
  box-shadow: 0 0 30px rgba(255, 138, 42, 0.4);
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.3);
  font-weight: 700;
}

.combatant-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vs-orb {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif-deco);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.1em;
  background:
    radial-gradient(circle at center, rgba(255,138,42,0.3) 0%, transparent 70%),
    linear-gradient(180deg, rgba(15, 10, 18, 0.95), rgba(7, 5, 10, 0.95));
  border: 1px solid rgba(233, 180, 84, 0.5);
  box-shadow:
    0 0 40px rgba(255, 138, 42, 0.4),
    inset 0 0 30px rgba(255, 74, 28, 0.2);
  color: var(--fire-3);
  position: relative;
}
.vs-orb::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(233, 180, 84, 0.2);
  border-radius: 50%;
  animation: vsRotate 14s linear infinite;
}
.vs-orb::after {
  content: '✦';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  color: var(--fire-3);
  font-size: 12px;
  text-shadow: 0 0 10px var(--fire-2);
}
@keyframes vsRotate {
  to { transform: rotate(360deg); }
}
@media (max-width: 980px) {
  .combatant-vs { padding: 16px 0; }
}

.war-verdict {
  text-align: center;
  margin-top: 60px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  color: var(--ink-dim);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.war-verdict .hl {
  background: linear-gradient(180deg, var(--fire-3), var(--fire-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  font-style: normal;
}

/* ====================== REALM ====================== */
.realm-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .realm-grid { grid-template-columns: 1fr; gap: 50px; }
}

.realm-copy .eyebrow { display: block; text-align: left; }
.realm-copy .eyebrow::before, .realm-copy .eyebrow::after { display: none; }

.realm-copy .lead {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--ink-dim);
  margin: 12px 0 36px;
  line-height: 1.7;
  font-style: italic;
}

.realm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.realm-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 4px 0;
}
.realm-bullet {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-family: var(--serif-deco);
  font-size: 24px;
  background: linear-gradient(180deg, rgba(255,138,42,0.15), rgba(0,0,0,0.5));
  border: 1px solid rgba(233, 180, 84, 0.3);
  color: var(--fire-3);
  text-shadow: 0 0 12px var(--fire-2);
}
.realm-list h4 {
  font-family: var(--serif-deco);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--fire-3);
  margin-bottom: 6px;
}
.realm-list p {
  font-family: var(--serif);
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
}
.realm-list em { color: var(--gold); font-style: italic; font-weight: 600; }

.realm-art {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.realm-art-frame {
  position: relative;
  border: 1px solid rgba(233, 180, 84, 0.25);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255, 74, 28, 0.05);
  transition: transform 0.6s ease;
}
.realm-art-frame:hover { transform: translateY(-4px); }
.realm-art-frame img {
  width: 100%;
  display: block;
  filter: contrast(1.05) saturate(1.05) brightness(0.92);
  transition: transform 0.8s ease;
}
.realm-art-frame:hover img { transform: scale(1.04); }
.realm-art-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7,5,10,0.95) 100%);
  pointer-events: none;
}
.realm-art-tag {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 2;
  text-shadow: 0 1px 3px black;
}
.realm-art-frame-2 { transform: translateX(-30px); }
@media (max-width: 980px) { .realm-art-frame-2 { transform: none; } }

/* ====================== VISIONS GALLERY ====================== */
.visions-strip {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .visions-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .visions-strip { grid-template-columns: repeat(2, 1fr); } }

.vision {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(233, 180, 84, 0.15);
  cursor: pointer;
  background: var(--bg-1);
}
.vision img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.1) saturate(0.9);
  transition: filter 0.6s ease, transform 0.8s ease;
}
.vision::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,5,10,0.95) 100%);
}
.vision figcaption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.vision:hover img { filter: brightness(0.95) contrast(1.15) saturate(1.05); transform: scale(1.06); }
.vision:hover figcaption { opacity: 1; transform: translateY(0); }
.vision:hover { border-color: var(--fire-2); }

/* ====================== BURN FORGE ====================== */
.burn { position: relative; overflow: hidden; }
.burn-bg {
  position: absolute; inset: 0; z-index: -1;
}
.burn-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: contrast(1.3) saturate(1.4) hue-rotate(-5deg) brightness(0.8);
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}

.burn-mech {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--rune-font);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--fire-3);
  text-shadow: 0 0 16px rgba(255, 138, 42, 0.5);
}

.burn-stage {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.burn-flames {
  position: absolute;
  inset: -80px -10% auto -10%;
  height: 240px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}
.burn-flames span {
  display: block;
  width: 18%;
  height: 100%;
  background: radial-gradient(ellipse at center 30%,
    rgba(255, 209, 102, 0.5) 0%,
    rgba(255, 138, 42, 0.35) 25%,
    rgba(255, 74, 28, 0.15) 50%,
    transparent 75%);
  filter: blur(28px);
  animation: burnFlicker 3.6s ease-in-out infinite;
  transform-origin: center bottom;
}
.burn-flames span:nth-child(2) { animation-delay: -0.7s; animation-duration: 4.2s; }
.burn-flames span:nth-child(3) { animation-delay: -1.4s; animation-duration: 3.0s; }
.burn-flames span:nth-child(4) { animation-delay: -2.1s; animation-duration: 4.6s; }
.burn-flames span:nth-child(5) { animation-delay: -0.3s; animation-duration: 3.4s; }
@keyframes burnFlicker {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.85; }
  50%      { transform: scaleY(1.18) translateY(-12px); opacity: 1; }
}

.burn-headline {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
  padding: 50px 24px 30px;
  z-index: 1;
}

.burn-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fire-3);
  padding: 6px 14px;
  border: 1px solid rgba(255, 138, 42, 0.4);
  background: rgba(255, 74, 28, 0.08);
  margin-bottom: 22px;
}
.burn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fire-1);
  box-shadow: 0 0 12px var(--fire-2), 0 0 4px var(--fire-3);
  animation: burnPulse 1.6s ease-in-out infinite;
}
@keyframes burnPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.burn-counter {
  font-family: var(--serif-deco);
  font-weight: 900;
  font-size: clamp(60px, 11vw, 160px);
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg,
    #fff8e8 0%,
    var(--fire-3) 30%,
    var(--fire-2) 55%,
    var(--fire-1) 80%,
    #8a2208 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 138, 42, 0.55))
          drop-shadow(0 0 80px rgba(255, 74, 28, 0.4));
  animation: burnCounterGlow 3s ease-in-out infinite;
  font-variant-numeric: tabular-nums;
}
@keyframes burnCounterGlow {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 138, 42, 0.55)) drop-shadow(0 0 80px rgba(255, 74, 28, 0.4)); }
  50%      { filter: drop-shadow(0 0 60px rgba(255, 138, 42, 0.85)) drop-shadow(0 0 130px rgba(255, 74, 28, 0.6)); }
}

.burn-counter-unit {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
}

/* meter */
.burn-meter {
  max-width: 880px;
  margin: 0 auto 50px;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}
.burn-meter-track {
  position: relative;
  height: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(20,12,8,0.9));
  border: 1px solid rgba(233, 180, 84, 0.3);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.7), 0 0 30px rgba(255,138,42,0.08);
}
.burn-meter-fill {
  height: 100%;
  width: 0%;
  background:
    linear-gradient(90deg,
      #c2300d 0%,
      var(--fire-1) 20%,
      var(--fire-2) 50%,
      var(--fire-3) 80%,
      #fff8e8 100%);
  position: relative;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 24px rgba(255, 138, 42, 0.6);
}
.burn-meter-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%);
  background-size: 30% 100%;
  background-repeat: no-repeat;
  animation: meterShine 2.8s linear infinite;
}
@keyframes meterShine {
  0%   { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}
.burn-meter-glow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0; width: 0%;
  height: 50px;
  background: radial-gradient(ellipse at right center, rgba(255, 138, 42, 0.5), transparent 60%);
  filter: blur(14px);
  pointer-events: none;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.burn-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.burn-meter-current {
  color: var(--fire-3);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 138, 42, 0.5);
}

/* burn cards */
.burn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) { .burn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .burn-grid { grid-template-columns: 1fr; } }

.bcard {
  padding: 26px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 14, 24, 0.9), rgba(10, 7, 14, 0.95));
  border: 1px solid rgba(233, 180, 84, 0.18);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.bcard::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 138, 42, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bcard:hover { border-color: var(--fire-2); transform: translateY(-3px); }
.bcard:hover::before { opacity: 1; }

.bcard-fire {
  border-color: rgba(255, 138, 42, 0.5);
  box-shadow: 0 0 40px rgba(255, 138, 42, 0.18), inset 0 0 30px rgba(255, 74, 28, 0.05);
}
.bcard-fire::before { opacity: 0.6; }

.bcard-label {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
}
.bcard-value {
  font-family: var(--serif-deco);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  background: linear-gradient(180deg, var(--fire-3), var(--fire-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  position: relative;
  word-break: break-word;
}
.bcard-sub {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
}

/* vaults */
.burn-vaults {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .burn-vaults { grid-template-columns: 1fr; } }

.vault {
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(15, 10, 18, 0.9), rgba(7, 5, 10, 0.95));
  border: 1px solid rgba(233, 180, 84, 0.2);
}
.vault-burn {
  border-color: rgba(255, 138, 42, 0.5);
  box-shadow: 0 0 30px rgba(255, 138, 42, 0.18);
}
.vault-label {
  font-family: var(--tech);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fire-3);
  margin-bottom: 10px;
}
.vault-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vault-row code {
  flex: 1 1 auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-all;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.vault-link {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid rgba(233, 180, 84, 0.3);
  color: var(--gold);
  font-size: 14px;
  transition: all 0.3s ease;
}
.vault-link:hover {
  border-color: var(--fire-2);
  color: var(--fire-3);
  background: rgba(255, 138, 42, 0.1);
  transform: translate(1px, -1px);
}

/* foot */
.burn-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(233, 180, 84, 0.35);
  color: var(--ink);
  background: rgba(15, 10, 20, 0.6);
  transition: all 0.3s ease;
}
.btn-mini:hover {
  border-color: var(--fire-3);
  color: var(--fire-3);
  background: rgba(255, 138, 42, 0.08);
  box-shadow: 0 0 24px rgba(255, 138, 42, 0.3);
}
.btn-mini-icon {
  display: inline-block;
  font-size: 14px;
  transition: transform 0.6s ease;
}
.btn-mini:hover .btn-mini-icon { transform: rotate(360deg); }
.btn-mini.loading .btn-mini-icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.burn-updated {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}
.burn-updated.error { color: #c8694a; }

/* ====================== TOKENOMICS ====================== */
.tokenomics-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .tokenomics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tokenomics-grid { grid-template-columns: 1fr; } }

.tcard {
  position: relative;
  padding: 40px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 14, 24, 0.85), rgba(10, 7, 14, 0.95));
  border: 1px solid rgba(233, 180, 84, 0.15);
  overflow: hidden;
  transition: all 0.5s ease;
}
.tcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center top, rgba(255,138,42,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tcard:hover { border-color: var(--fire-2); transform: translateY(-4px); }
.tcard:hover::before { opacity: 1; }

.tcard-icon {
  font-size: 32px;
  color: var(--fire-3);
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px var(--fire-2));
  position: relative;
}
.tcard-value {
  font-family: var(--serif-deco);
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--fire-3), var(--fire-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
}
.tcard-label {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}
.tcard p {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
  position: relative;
}

/* ====================== PATH / ROADMAP ====================== */
.path-list {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}
.path-list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--fire-2), var(--gold-deep) 60%, transparent 100%);
}

.phase {
  position: relative;
  padding: 0 0 50px 30px;
}
.phase:last-child { padding-bottom: 0; }

.phase-mark {
  position: absolute;
  left: -60px; top: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-family: var(--serif-deco);
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-0));
  border: 1px solid rgba(233, 180, 84, 0.3);
  color: var(--gold);
}
.phase-active .phase-mark {
  border-color: var(--fire-2);
  background: linear-gradient(180deg, var(--fire-2), var(--fire-1));
  color: #1a0805;
  box-shadow: 0 0 30px rgba(255, 138, 42, 0.6);
  animation: phasePulse 2.4s ease-in-out infinite;
}
@keyframes phasePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 138, 42, 0.6); }
  50%      { box-shadow: 0 0 50px rgba(255, 138, 42, 0.9), 0 0 80px rgba(255, 74, 28, 0.4); }
}

.phase-body h3 {
  font-family: var(--serif-deco);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--fire-3);
  margin-bottom: 8px;
}
.phase-body p {
  font-family: var(--serif);
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.phase-state {
  display: inline-block;
  font-family: var(--tech);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(233, 180, 84, 0.3);
  color: var(--ink-mute);
}
.phase-active .phase-state {
  border-color: var(--fire-2);
  color: var(--fire-3);
  background: rgba(255, 138, 42, 0.08);
}

/* ====================== BUY ====================== */
.buy {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.buy-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.buy-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: contrast(1.2) saturate(0.8) blur(2px);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.buy-inner { max-width: 880px; margin: 0 auto; }

.contract {
  margin: 40px auto 36px;
  max-width: 780px;
  background: linear-gradient(180deg, rgba(20, 14, 24, 0.9), rgba(10, 7, 14, 0.95));
  border: 1px solid rgba(255, 138, 42, 0.4);
  padding: 26px 28px;
  box-shadow: 0 0 60px rgba(255, 138, 42, 0.18);
}
.contract-label {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fire-3);
  margin-bottom: 14px;
}
.contract-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.contract-row code {
  flex: 1 1 auto;
  font-family: 'Courier New', monospace;
  font-size: clamp(11px, 1.4vw, 15px);
  letter-spacing: 0.04em;
  color: var(--ink);
  word-break: break-all;
  text-align: left;
  padding: 8px 0;
}

.copy-btn {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--fire-2), var(--fire-1));
  color: #1a0805;
  border: 1px solid var(--fire-3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 138, 42, 0.3);
}
.copy-btn:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(255, 138, 42, 0.6); }
.copy-btn .copy-done { display: none; }
.copy-btn.copied .copy-default { display: none; }
.copy-btn.copied .copy-done { display: inline; }

.buy-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.dyor {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ====================== FOOTER ====================== */
.footer {
  padding: 50px 24px 36px;
  border-top: 1px solid rgba(233, 180, 84, 0.1);
  background: var(--bg-0);
  position: relative;
  z-index: 5;
}
.footer-row {
  max-width: 1200px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-deco);
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--gold);
}
.footer-links {
  display: flex;
  gap: 28px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.footer-links a { color: var(--ink-dim); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--fire-3); }
.footer-fine {
  text-align: center;
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: var(--ink-mute);
  max-width: 720px;
  margin: 0 auto;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

/* ====================== REVEAL ====================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
