/* ── WRAP ── */
.mech-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 80px 100px;
}

/* ── SECTIONS ── */
.mech-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(80,60,35,0.5);
}
.mech-section:first-of-type { padding-top: 60px; }
.mech-section:last-of-type { border-bottom: none; }

/* ── DIVIDER ── */
.ornate-divider { display: none; }

/* ── SECTION HEADER ── */
.mech-section .section-header {
  text-align: left;
  margin-bottom: 36px;
}
.section-label {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  line-height: 1.2;
}

/* ── BODY TEXT ── */
.mech-body {
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(235,225,210,0.93);
  max-width: 72ch;
  margin-bottom: 0;
}
.mech-body + .mech-body { margin-top: 16px; }

/* ── CARD TYPE PILLS ── */
.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(200px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 36px;
}
.mech-cell {
  background: #0c0a0e;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mech-cell-val {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  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.65);
  line-height: 1.65;
}

/* ── DECK RULE ── */
.mech-deck-rule {
  margin-top: 28px;
  padding: 22px 26px;
  background: rgba(184,146,42,0.04);
  border: 1px solid rgba(184,146,42,0.2);
  border-radius: 3px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  color: rgba(235,225,210,0.88);
  line-height: 1.75;
}
.mech-deck-rule-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

/* ── ALTAR ── */
.mech-altar {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.mech-altar-card {
  flex: 1;
  min-width: 140px;
  padding: 22px 16px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mech-altar-card span { display: block; }
.mech-passive {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(210,200,190,0.4);
}
.mech-active {
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.35);
  color: #ff7040;
  box-shadow: 0 0 24px rgba(192,57,43,0.12);
}

/* ── RULE BOX ── */
.mech-rule-box {
  margin-top: 20px;
  padding: 18px 22px;
  background: rgba(184,146,42,0.03);
  border-left: 2px solid rgba(184,146,42,0.45);
  border-radius: 0 3px 3px 0;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  color: rgba(235,225,210,0.88);
  line-height: 1.75;
}
.mech-rule-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* ── STAT TRIO ── */
.mech-stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.mech-stat-card {
  padding: 22px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 3px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.8);
  line-height: 1.7;
}
.mech-stat-icon { margin-bottom: 10px; }
.mech-stat-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  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: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 28px;
  background: rgba(184,146,42,0.03);
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 3px;
}
.mech-formula-part {
  text-align: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
  min-width: 90px;
}
.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.3rem;
  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: 28px;
  padding: 18px 22px;
  background: rgba(184,146,42,0.03);
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 3px;
  flex-wrap: wrap;
}
.mech-arrow {
  font-size: 1.1rem;
  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.03);
  border: 1px solid rgba(184,146,42,0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 28px;
}
.mech-suit-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  background: #0c0a0e;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.8);
  line-height: 1.7;
}
.mech-suit-icon { flex-shrink: 0; margin-top: 2px; }
.mech-suit-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  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: 12px;
  margin-top: 36px;
}
.mech-primordial-card {
  padding: 26px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(240,171,252,0.15);
  border-radius: 3px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  color: rgba(210,200,190,0.8);
  line-height: 1.75;
}
.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: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,171,252,0.35);
}

/* ── TURN STEPS ── */
.mech-turn-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 36px;
  border: 1px solid rgba(184,146,42,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.mech-turn-step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 28px;
  background: #0c0a0e;
}
.mech-turn-num {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(184,146,42,0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}
.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: 1rem;
  color: rgba(235,225,210,0.88);
  line-height: 1.75;
}

/* ── LAST WISH ── */
.mech-lastwish-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 36px;
  border: 1px solid rgba(184,146,42,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.mech-lw-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 24px;
  background: #0c0a0e;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  color: rgba(235,225,210,0.88);
  line-height: 1.75;
}
.mech-lw-num {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(184,146,42,0.45);
  flex-shrink: 0;
  padding-top: 3px;
  letter-spacing: 0.1em;
}
.mech-lw-final {
  background: rgba(192,57,43,0.05);
  border-top: 1px solid rgba(192,57,43,0.2);
  color: rgba(255,130,80,0.9);
}
.mech-lw-final .mech-lw-num { color: rgba(192,57,43,0.55); }

/* ── WIN CONDITIONS ── */
.mech-win-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.mech-win-card {
  padding: 26px 22px;
  border-radius: 3px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(235,225,210,0.88);
}
.mech-loss {
  background: rgba(192,57,43,0.04);
  border: 1px solid rgba(192,57,43,0.22);
}
.mech-win-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(192,57,43,0.65);
  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.03);
  border: 1px solid rgba(184,146,42,0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 36px;
}
.mech-phil-cell {
  background: #0c0a0e;
  padding: 24px 20px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  color: rgba(210,200,190,0.75);
  line-height: 1.7;
}
.mech-phil-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mech-phil-role {
  font-size: 11px;
  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;
  position: relative;
}
.mech-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,146,42,0.35) 50%, transparent);
}
.mech-cta-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  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.65);
  margin: 0 auto 36px;
  line-height: 1.75;
  max-width: 52ch;
}
.mech-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .mech-wrap { padding: 40px 24px 80px; }
  .mech-stat-trio { grid-template-columns: 1fr 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; }
  .mech-cell-grid { grid-template-columns: repeat(2, 1fr); }
}