/* ── HERO ── */
.mech-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.mech-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.4) brightness(0.3);
}
.mech-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,8,0.5) 0%, rgba(8,6,8,0.4) 40%, rgba(8,6,8,0.92) 100%);
}
.mech-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 100px 48px 60px;
}
.mech-hero-label {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.mech-hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.8);
}
.mech-hero-title span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--ember-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mech-hero-sub {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  color: rgba(210,200,190,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 600px;
}
.mech-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.mech-badge {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(184,146,42,0.3);
  border-radius: 3px;
  color: rgba(210,200,190,0.7);
}
.mech-badge-gold { border-color: rgba(184,146,42,0.6); color: var(--gold-light); }

/* ── WRAP ── */
.mech-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 100px;
}
.mech-section { margin-bottom: 0; }
.ornate-divider { margin: 80px 0; }
.mech-body {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(210,200,190,0.88);
  max-width: 780px;
}

/* section-header left align override */
.mech-section .section-header { text-align: left; margin-bottom: 40px; }

/* ── CARD TYPES ── */
.mech-card-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.mech-type-pill {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--c, rgba(255,255,255,0.2));
  border-radius: 3px;
  color: var(--c, rgba(255,255,255,0.6));
  background: rgba(0,0,0,0.3);
}

/* ── CELL GRID ── */
.mech-cell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 6px;
  overflow: hidden;
}
.mech-cell {
  background: #0c0a0e;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mech-cell-val {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.mech-cell-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.mech-cell-desc {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  color: rgba(210,200,190,0.55);
  line-height: 1.6;
}

/* ── DECK RULE ── */
.mech-deck-rule {
  margin-top: 32px;
  padding: 24px 28px;
  background: rgba(184,146,42,0.04);
  border: 1px solid rgba(184,146,42,0.2);
  border-radius: 6px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.7);
  line-height: 1.7;
}
.mech-deck-rule-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

/* ── ALTAR ── */
.mech-altar {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.mech-altar-card {
  flex: 1;
  min-width: 160px;
  padding: 24px 20px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mech-altar-card span { display: block; }
.mech-passive {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(210,200,190,0.5);
  font-size: 2rem;
}
.mech-active {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.4);
  color: #ff7040;
  font-size: 2.5rem;
  box-shadow: 0 0 30px rgba(192,57,43,0.15);
}

/* ── RULE BOX ── */
.mech-rule-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(0,0,0,0.3);
  border-left: 3px solid rgba(184,146,42,0.4);
  border-radius: 0 6px 6px 0;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.75);
  line-height: 1.7;
}
.mech-rule-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

/* ── STAT TRIO ── */
.mech-stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.mech-stat-card {
  padding: 24px 20px;
  background: #0c0a0e;
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 6px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  color: rgba(210,200,190,0.65);
  line-height: 1.6;
}
.mech-stat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.mech-stat-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.mech-stat-range {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ── FORMULA ── */
.mech-formula {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 32px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 6px;
}
.mech-formula-part {
  text-align: center;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  min-width: 100px;
}
.mech-formula-val {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.mech-formula-desc {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  color: rgba(210,200,190,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mech-formula-op {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
}
.mech-formula-result {
  border-color: rgba(184,146,42,0.4);
  background: rgba(184,146,42,0.06);
}
.mech-formula-result .mech-formula-val { color: var(--gold-light); }

/* ── RESONANCE ── */
.mech-resonance-example {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  flex-wrap: wrap;
}
.mech-orb { font-size: 1.6rem; }
.mech-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0 8px;
}
.mech-resonance-label {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ── SUITS GRID ── */
.mech-suits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,146,42,0.12);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 32px;
}
.mech-suit-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 20px;
  background: #0c0a0e;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  color: rgba(210,200,190,0.65);
  line-height: 1.6;
}
.mech-suit-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.mech-suit-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.mech-suit-theme {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.suit-embers .mech-suit-theme { color: #ff7040; }
.suit-tides  .mech-suit-theme { color: #60c8e8; }
.suit-spoils .mech-suit-theme { color: #90a850; }
.suit-daggers .mech-suit-theme { color: #c8d8f0; }

/* ── PRIMORDIALS ── */
.mech-primordial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.mech-primordial-card {
  padding: 28px 24px;
  background: #0c0a0e;
  border: 1px solid rgba(240,171,252,0.15);
  border-radius: 6px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.65);
  line-height: 1.7;
}
.mech-primordial-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.mech-primordial-theme {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0abfc;
  margin-bottom: 14px;
}
.mech-primordial-count {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,171,252,0.4);
}

/* ── TURN STEPS ── */
.mech-turn-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 40px;
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 6px;
  overflow: hidden;
}
.mech-turn-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px;
  background: #0c0a0e;
}
.mech-turn-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(184,146,42,0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.mech-turn-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.mech-turn-content {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.75);
  line-height: 1.7;
}

/* ── LAST WISH ── */
.mech-lastwish-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 40px;
  border: 1px solid rgba(184,146,42,0.12);
  border-radius: 6px;
  overflow: hidden;
}
.mech-lw-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 24px;
  background: #0c0a0e;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.7);
  line-height: 1.6;
}
.mech-lw-num {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(184,146,42,0.5);
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.1em;
}
.mech-lw-final {
  background: rgba(192,57,43,0.06);
  border-top: 1px solid rgba(192,57,43,0.2);
  color: rgba(255,130,80,0.85);
}
.mech-lw-final .mech-lw-num { color: rgba(192,57,43,0.6); }

/* ── WIN CONDITIONS ── */
.mech-win-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.mech-win-card {
  padding: 28px 24px;
  border-radius: 6px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(210,200,190,0.7);
}
.mech-loss {
  background: rgba(192,57,43,0.05);
  border: 1px solid rgba(192,57,43,0.25);
}
.mech-win-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(192,57,43,0.7);
  margin-bottom: 8px;
}
.mech-win-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

/* ── PHILOSOPHY ── */
.mech-philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,146,42,0.12);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 40px;
}
.mech-phil-cell {
  background: #0c0a0e;
  padding: 24px 20px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  color: rgba(210,200,190,0.6);
  line-height: 1.6;
}
.mech-phil-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mech-phil-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(210,200,190,0.3);
  margin-bottom: 10px;
}

/* ── CTA ── */
.mech-cta {
  text-align: center;
  padding: 80px 48px;
  margin-top: 80px;
  position: relative;
  border-top: 1px solid rgba(184,146,42,0.1);
}
.mech-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,42,0.4) 50%, transparent);
}
.mech-cta-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.mech-cta-sub {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  color: rgba(210,200,190,0.6);
  margin-bottom: 36px;
  line-height: 1.6;
}
.mech-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* nav active */
.nav-links a.active { color: var(--gold-light); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .mech-hero-content { padding: 80px 20px 40px; }
  .mech-wrap { padding: 40px 20px 80px; }
  .mech-stat-trio { grid-template-columns: 1fr; }
  .mech-suits-grid { grid-template-columns: 1fr; }
  .mech-primordial-grid { grid-template-columns: 1fr; }
  .mech-win-grid { grid-template-columns: 1fr; }
  .mech-philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .mech-formula { justify-content: center; }
  .mech-altar { flex-direction: column; }
}
