/* ============================================================
   MANA FORGE — Home Page (Slick Dark Theme)
   Overrides parchment styles.css to match /decks and /collection.
   ============================================================ */

body {
  background: #0d0d12 !important;
  color: #e8e0d0 !important;
  font-family: 'Inter', sans-serif !important;
  margin: 0;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #13121a; }
::-webkit-scrollbar-thumb { background: #3a2f5a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5b21b6; }

a { color: #c8a84b; text-decoration: none; }
a:hover { color: #e0c468; }

/* ── NAV ─────────────────────────────────────────────────── */
.hm-nav {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 2rem; height: 56px;
  background: #13121a;
  border-bottom: 1px solid #2a2438;
  position: sticky; top: 0; z-index: 50;
}
.hm-nav-logo {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1.1rem; color: #c8a84b;
  text-decoration: none; white-space: nowrap;
}
.hm-nav-links { display: flex; gap: 1rem; }
.hm-nav-link {
  color: #9b91b3; text-decoration: none;
  font-size: 0.875rem; padding: 0.25rem 0.5rem;
  border-radius: 4px; transition: color 0.15s;
}
.hm-nav-link:hover, .hm-nav-link.active { color: #c8a84b; }
.hm-nav-spacer { flex: 1; }
.hm-nav-btn {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff; border: none; border-radius: 6px;
  padding: 0.4rem 1rem; font-size: 0.85rem;
  font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.15s;
}
.hm-nav-btn:hover { opacity: 0.85; color: #fff; }

/* ── HERO ────────────────────────────────────────────────── */
.hm-hero {
  background: linear-gradient(160deg, #1a1228 0%, #0d0d12 60%);
  border-bottom: 1px solid #2a2438;
  padding: 1.25rem 2rem 0.95rem;
  text-align: center;
}
.hm-hero-inner { max-width: 720px; margin: 0 auto; }
.hm-hero-title {
  font-family: 'Cinzel', serif; font-size: 2.6rem; font-weight: 700;
  color: #c8a84b;
  text-shadow: 0 0 32px rgba(200,168,75,0.35);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.hm-hero-sub {
  color: #c0b8d4; font-size: 1rem; margin: 0;
  line-height: 1.5;
}
/* ── FORGE PANEL ─────────────────────────────────────────── */
.hm-forge {
  max-width: 980px;
  margin: 1.5rem auto 1.15rem;
  padding: 0 2rem;
  position: relative;
}
.hm-forge-card {
  background:
    linear-gradient(180deg, rgba(19, 18, 26, 0.98), rgba(14, 13, 20, 0.98));
  border: 1px solid rgba(200, 168, 75, 0.16);
  border-radius: 14px;
  padding: 1.3rem 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.42);
}
.hm-forge-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem; font-weight: 600;
  color: #c8a84b;
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* form fields */
.hm-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }
.hm-label {
  font-size: 0.72rem; color: #9b91b3;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
/* ── Logo images ─────────────────────────────────────────────── */
.nav-hat {
  height: 36px;
  width: auto;
  border-radius: 5px;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.hm-hero-logo-img {
  max-width: 270px;
  width: 64%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 4px 24px rgba(200, 168, 75, 0.25));
}

.hm-input, .hm-select {
  background: #17131f !important;
  border: 1px solid rgba(200, 168, 75, 0.22) !important;
  color: #e8e0d0 !important;
  border-radius: 6px;
  padding: 0.68rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  width: 100%;
}
.hm-input:focus, .hm-select:focus {
  background: #1b1626 !important;
  border-color: rgba(200, 168, 75, 0.58) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.hm-input::placeholder { color: #766c87; }
.hm-select option { background: #ffffff; color: #1a0a2e; font-weight: 600; }

.hm-search-wrap { position: relative; }
.hm-results-list {
  list-style: none; padding: 0; margin: 4px 0 0;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #1a1228;
  border: 1px solid #3a2f5a;
  border-radius: 6px;
  max-height: 300px; overflow-y: auto;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.hm-results-list .result-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 0.6rem; align-items: center;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #2a2438;
  transition: background 0.1s;
}
.hm-results-list .result-row:last-child { border-bottom: none; }
.hm-results-list .result-row:hover { background: #2a1f48; }
.hm-results-list .result-name { color: #e8e0d0; font-size: 0.85rem; font-weight: 500; }
.hm-results-list .result-type { color: #7a6f94; font-size: 0.72rem; }
.hm-results-list .result-colors { display: flex; gap: 2px; }
.hm-results-list .result-colors img { width: 14px; height: 14px; }

/* row layout */
.hm-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
}
.hm-budget-wrap { position: relative; }
.hm-budget-wrap .hm-budget-sign {
  position: absolute; left: 0.75rem; top: 50%;
  transform: translateY(-50%); color: #7a6f94; pointer-events: none;
}
.hm-budget-wrap .hm-input { padding-left: 1.5rem; }

.hm-check-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0.85rem 0 1.1rem;
  font-size: 0.85rem; color: #9b91b3;
}
.hm-check-row input { accent-color: #7c3aed; cursor: pointer; }
.hm-check-row label { cursor: pointer; }
.hm-collection-note {
  margin: -0.45rem 0 1rem;
  color: #bfb5d2;
  font-size: 0.78rem;
  line-height: 1.45;
}

.hm-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff; border: none; border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}
.hm-btn-primary:hover { opacity: 0.9; }
.hm-btn-primary:active { transform: scale(0.99); }
.hm-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.hm-cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}
.hm-cta-row .hm-btn-primary { width: 100%; }
.hm-cta-row .hm-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

.hm-btn-ghost {
  display: inline-block;
  background: transparent;
  color: #9b91b3;
  border: 1px solid #3a2f5a;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.hm-btn-ghost:hover { border-color: #7c3aed; color: #e8e0d0; }

.hm-status { font-size: 0.78rem; color: #7a6f94; margin-left: 0.5rem; }

.hm-fit-warning {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.35);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: #eab308;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}
.hm-fit-warning strong { color: #facc15; }

.hm-commander-preview {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #2a2438;
  display: flex; gap: 1rem; align-items: flex-start;
}
.hm-commander-preview[hidden] { display: none !important; }
.hm-commander-preview .card-img {
  width: 130px; border-radius: 8px; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.hm-commander-preview .card-meta { flex: 1; min-width: 0; }
.hm-commander-preview .card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.5rem; margin-bottom: 0.35rem;
}
.hm-commander-preview .card-header h3 {
  font-family: 'Cinzel', serif; font-size: 1rem;
  color: #c8a84b; margin: 0; font-weight: 600;
}
.hm-commander-preview .mana-cost img { width: 14px; height: 14px; }
.hm-commander-preview .type-line {
  font-size: 0.78rem; color: #9b91b3; margin-bottom: 0.4rem;
}
.hm-commander-preview .oracle-line {
  font-size: 0.78rem; color: #c0b8d4; margin: 0 0 0.3rem;
  line-height: 1.4;
}
.hm-commander-preview .oracle-line img { width: 11px; height: 11px; vertical-align: middle; }
.hm-commander-preview .pt, .hm-commander-preview .loyalty {
  font-weight: 600; color: #c8a84b; font-size: 0.85rem;
}

/* ── QUICK ACTIONS ───────────────────────────────────────── */
.footnote { display: none !important; }

/* ── IMPORT SECTION (toggle) ────────────────────────────── */
.hm-import {
  max-width: 880px; margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem;
  background: #13121a;
  border: 1px solid #2a2438;
  border-radius: 12px;
}
.hm-import-title {
  font-family: 'Cinzel', serif; font-size: 1rem;
  color: #c8a84b; margin: 0 0 0.4rem;
}
.hm-import-sub { color: #9b91b3; font-size: 0.82rem; margin: 0 0 0.85rem; }
.hm-import textarea {
  width: 100%; min-height: 120px;
  background: #1a1228;
  border: 1px solid #3a2f5a;
  color: #e8e0d0;
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
}
.hm-import textarea:focus { border-color: #7c3aed; }
.hm-import-row {
  display: flex; gap: 0.6rem; align-items: center;
  flex-wrap: wrap; margin-top: 0.85rem;
}

/* ── HIDDEN COMPAT (preserve JS-needed elements) ─────────── */
.hm-hidden { display: none !important; }

/* ── FOOTER ──────────────────────────────────────────────── */
.hm-footer {
  border-top: 1px solid #2a2438;
  padding: 1.5rem 2rem;
  text-align: center;
  color: #5a4f72;
  font-size: 0.78rem;
  margin-top: 3rem;
}
.hm-footer a { color: #7a6f94; margin: 0 0.5rem; }
.hm-footer a:hover { color: #c8a84b; }

/* ── DECK SECTION OVERRIDES (when deck is generated) ────── */
/* Keep deck-section semi-readable on dark bg without rewriting everything */
.page { background: transparent; }
.card {
  background: #13121a !important;
  border: 1px solid #2a2438 !important;
  color: #e8e0d0 !important;
  border-radius: 12px !important;
  margin-bottom: 1.5rem;
}
.card h2 { color: #c8a84b !important; font-family: 'Cinzel', serif; }
.card .muted, .muted { color: #9b91b3 !important; }
.deck-summary { color: #c0b8d4; }
.mp-banner { background: rgba(124,58,237,0.12); border: 1px solid #3a2f5a; }

/* ── DUNGEON GUIDE ───────────────────────────────────────── */
.hm-guide-btn {
  background: none;
  border: 1px solid #3a2f5a;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.hm-guide-btn.active { color: #c8a84b; border-color: rgba(200,168,75,0.4); }

.hm-guide-panel {
  background: #13121a;
  border-bottom: 1px solid #2a2438;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 2rem;
}
.hm-guide-panel.open {
  max-height: 600px;
  padding: 1.5rem 2rem;
}

.hm-guide-inner { max-width: 880px; margin: 0 auto; position: relative; }

.hm-guide-close {
  position: absolute; top: 0; right: 0;
  background: none; border: none; cursor: pointer;
  color: #5a4f72; font-size: 0.95rem;
  padding: 0; line-height: 1;
  transition: color 0.15s;
}
.hm-guide-close:hover { color: #c8a84b; }

.hm-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  padding-right: 1.5rem;
}

.hm-guide-item { padding: 0.1rem 0; }

.hm-guide-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: #c8a84b;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.hm-guide-desc {
  font-size: 0.8rem;
  color: #9b91b3;
  line-height: 1.5;
}

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hm-nav {
    padding: 0 1rem;
    gap: 0.6rem;
    height: 52px;
  }
  .hm-nav-logo { font-size: 0.95rem; }
  .hm-nav-links { gap: 0.25rem; flex-wrap: wrap; }
  .hm-nav-link { font-size: 0.78rem; padding: 0.2rem 0.35rem; }
  .hm-nav-btn { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
  .hm-nav-spacer { display: none; }

  .hm-hero { padding: 1.5rem 1rem 1.1rem; }
  .hm-hero-title { font-size: 1.8rem; }
  .hm-hero-sub { font-size: 0.9rem; }
  .hm-hero-logo-img { max-width: 260px; width: 74%; }

  .hm-guide-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .hm-guide-panel.open { max-height: 1000px; }

  .hm-forge { padding: 0 1rem; margin-top: -1rem; }
  .hm-forge-card { padding: 1.25rem 1.1rem; }
  .hm-forge-title { font-size: 1rem; }
  .hm-row-2 { grid-template-columns: 1fr; gap: 0.6rem; }
  .hm-cta-row { grid-template-columns: 1fr; }
  .hm-cta-row .hm-btn-ghost { min-width: 0; }

  .hm-commander-preview { flex-direction: column; gap: 0.75rem; }
  .hm-commander-preview .card-img { width: 100%; max-width: 200px; align-self: center; }

  .hm-import { margin: 0 1rem 2rem; padding: 1.1rem 1rem; }
  .hm-import-row { gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hm-nav { height: auto; padding: 0.5rem 0.75rem; flex-wrap: wrap; }
  .hm-nav-links { width: 100%; justify-content: center; }
  .hm-hero-title { font-size: 1.5rem; }
  .hm-forge-card { padding: 1rem 0.85rem; }
}

/* About page */
.about-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 52px;
}
.about-hero {
  text-align: center;
  padding: 30px 20px 26px;
}
.about-mark img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.45));
}
.about-eyebrow {
  margin: 14px 0 10px;
  color: #c8a84b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-hero h1 {
  margin: 0;
  color: #e6cf73;
  font-family: 'Cinzel', serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  text-shadow: 0 0 34px rgba(200, 168, 75, 0.25);
}
.about-lede {
  max-width: 720px;
  margin: 16px auto 0;
  color: #d7cfee;
  font-size: 1.05rem;
  line-height: 1.65;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.about-card,
.about-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #14121d;
  border: 1px solid #2d2540;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
.about-card {
  padding: 22px;
}
.about-card h2,
.about-panel h2 {
  margin: 0 0 10px;
  color: #e6cf73;
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
}
.about-card p,
.about-panel p {
  margin: 0;
  color: #c7bfd9;
  line-height: 1.65;
}
.about-card p + p,
.about-panel p + p {
  margin-top: 12px;
}
.about-panel {
  margin-top: 18px;
  padding: 26px;
}
.about-disclaimer {
  border-color: rgba(200, 168, 75, 0.32);
  background:
    linear-gradient(135deg, rgba(200, 168, 75, 0.08), rgba(124, 58, 237, 0.06)),
    #14121d;
}

@media (max-width: 820px) {
  .about-page { padding-top: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card,
  .about-panel { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   DISCOVER BY COLORS — pick a commander by color + archetype
   ═══════════════════════════════════════════════════════════ */
.hm-discover-toggle {
  margin-top: 10px;
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(200, 168, 75, 0.35);
  border-radius: 8px;
  padding: 9px 14px;
  color: #c8a84b;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hm-discover-toggle:hover {
  border-color: rgba(200, 168, 75, 0.7);
  background: rgba(200, 168, 75, 0.06);
  color: #ffd76a;
}
.hm-discover-toggle.is-open {
  border-style: solid;
  border-color: rgba(200, 168, 75, 0.7);
  background: rgba(200, 168, 75, 0.08);
}
.hm-discover-toggle strong { color: #ffd76a; font-weight: 700; }
.hm-discover-toggle-icon { font-size: 16px; }

.hm-discover {
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005)), #14121d;
  border: 1px solid #2d2540;
  border-radius: 10px;
}
.hm-discover-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.hm-discover-section { flex: 1 1 220px; min-width: 220px; }
.hm-discover-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a84b;
  margin-bottom: 8px;
}

/* Color picker — MTG mana symbols as toggle buttons */
.hm-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hm-color-btn {
  width: 42px; height: 42px;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.12s, filter 0.15s;
}
.hm-color-btn .ms {
  font-size: 22px;
  line-height: 1;
}
.hm-color-btn .hm-color-img {
  width: 42px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.55));
  pointer-events: none;
  transition: filter 0.15s;
}
.hm-color-btn.is-on .hm-color-img {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)) drop-shadow(0 0 10px rgba(255, 215, 106, 0.85));
}
.hm-color-btn:hover {
  transform: scale(1.08);
}
.hm-color-btn-c { margin-left: 6px; }

.hm-discover-archetype { width: 100%; }
.hm-arch-gamble { font-weight: 700; }

.hm-discover-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hm-discover-go { padding: 9px 18px; font-size: 0.85rem; }
.hm-discover-status { font-size: 0.78rem; color: #9b91b3; }
.hm-discover-status-error { color: #f87171; }

.hm-discover-results { margin-top: 16px; }
.hm-discover-empty {
  padding: 20px;
  text-align: center;
  color: #9b91b3;
  font-size: 0.85rem;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
}
.hm-discover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2d2540;
}
.hm-discover-header-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8a84b;
}
.hm-discover-reroll {
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hm-discover-reroll:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: #c4b5fd;
  color: #fff;
}

.hm-discover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  overflow: visible;
}
.hm-disc-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 23, 38, 0.96), rgba(16, 14, 24, 0.98));
  border: 1px solid #2d2540;
  border-radius: 10px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hm-disc-card:hover {
  border-color: rgba(200, 168, 75, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.hm-disc-art {
  width: 100%;
  aspect-ratio: 63 / 88;
  background: #0d0d12;
  border-radius: 8px;
  border: 1px solid rgba(200, 168, 75, 0.18);
  overflow: hidden;
}
.hm-disc-art img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.hm-disc-art-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.hm-disc-body {
  min-width: 0;
  padding: 10px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hm-disc-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffd76a;
  line-height: 1.25;
  min-height: 2.5em;
}
.hm-disc-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hm-disc-cost .ms,
.hm-disc-ci .ms { font-size: 16px; margin-right: 2px; }
.hm-disc-info {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(340px, calc(100vw - 32px));
  max-height: 360px;
  overflow: auto;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(200, 168, 75, 0.38);
  background:
    linear-gradient(180deg, rgba(40, 31, 55, 0.98), rgba(18, 15, 26, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(124, 58, 237, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 40;
}
.hm-disc-card:hover .hm-disc-info,
.hm-disc-card:focus-within .hm-disc-info {
  opacity: 1;
  transform: translate(-50%, 0);
}
.hm-disc-info-title {
  font-family: 'Cinzel', serif;
  color: #ffd76a;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.hm-disc-type {
  font-size: 0.84rem;
  color: #9b91b3;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 8px;
}
.hm-disc-strats { display: flex; gap: 5px; flex-wrap: wrap; }
.hm-disc-strat {
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  letter-spacing: 0.02em;
}
.hm-disc-why {
  color: #b8adc9;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 8px;
}
.hm-disc-oracle {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ded6ec;
  font-size: 0.8rem;
  line-height: 1.42;
  white-space: pre-line;
}
.hm-disc-pick {
  margin-top: auto;
  padding: 8px 10px;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.55);
  color: #c4b5fd;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hm-disc-pick:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

@media (max-width: 720px) {
  .hm-nav {
    gap: 0.8rem;
    padding: 0 1rem;
  }
  .hm-nav-links {
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hm-nav-links::-webkit-scrollbar { display: none; }
  .hm-nav-link {
    font-size: 0.78rem;
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
  }
  .hm-nav-link[href="/collection"],
  .hm-nav-link[href="/build"] {
    display: none;
  }
  .hm-forge {
    padding: 0 1rem;
  }
  .hm-forge-card {
    padding: 1.1rem;
  }
  .hm-discover {
    padding: 12px;
  }
  .hm-discover-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hm-disc-card {
    padding: 10px;
  }
  .hm-disc-name {
    font-size: 1rem;
  }
  .hm-disc-type,
  .hm-disc-why {
    font-size: 0.8rem;
  }
  .hm-disc-strat:nth-child(n+2) {
    display: none;
  }
  .hm-disc-oracle {
    display: none;
  }
}
