/* Original MineSpain wiki styles, imported by tools/sync-wiki-reference.mjs. */
/* MineSpain: src/styles/global.css */
/* ============================================================
   MineSpain — design system
   ============================================================ */
:root {
  --bg: #080b15;
  --bg-2: #0d1322;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #e7ecf6;
  --muted: #94a2bd;
  --accent: #4aa3ff;
  --accent-2: #7c5cff;
  --gold: #ffb454;
  --green: #46d39a;
  --red: #ff5c6c;
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1120px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Press Start 2P", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fondo con auroras */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(74, 163, 255, 0.20), transparent 60%),
    radial-gradient(900px 600px at 12% 4%, rgba(124, 92, 255, 0.16), transparent 58%),
    radial-gradient(800px 700px at 50% 108%, rgba(70, 211, 154, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: 86px 0; }
.eyebrow {
  font: 600 12.5px/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.h2 { font-size: clamp(28px, 4.4vw, 44px); }
.lead { color: var(--muted); font-size: 17px; max-width: 60ch; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid var(--border-2);
  background: var(--panel-2); color: var(--text);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.btn-primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(74,163,255,.7);
}
.btn-primary:hover { box-shadow: 0 16px 38px -10px rgba(74,163,255,.9); }
.btn-gold { border: none; background: linear-gradient(135deg, var(--gold), #ff8a3d); color: #2a1700; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 21, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand .dot { width: 11px; height: 11px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--accent); }
.brand b { background: linear-gradient(120deg, #fff, #b9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 9px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: .18s; }
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav .btn { padding: 9px 16px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 84px 0 64px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--panel);
  font-size: 13.5px; color: var(--muted); margin-bottom: 26px;
}
.badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.hero-title {
  font-family: var(--pixel);
  font-size: clamp(34px, 8vw, 84px);
  line-height: 1.05; letter-spacing: 0;
  background: linear-gradient(120deg, #fff 20%, #8fc2ff 55%, #b9a3ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(74,163,255,.35);
  margin-bottom: 22px;
}
.hero p.lead { margin: 0 auto 32px; font-size: 19px; }
.hero-cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---- IP box ---- */
.ipbox {
  margin: 34px auto 0; max-width: 440px;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 9px 9px 20px; border-radius: 14px;
  border: 1px solid var(--border-2); background: var(--panel);
  box-shadow: var(--shadow);
}
.ipbox .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.ipbox .ip { font-family: var(--pixel); font-size: 15px; color: #fff; margin-left: 2px; }
.ipbox .copy {
  margin-left: auto; padding: 11px 17px; border-radius: 10px; cursor: pointer;
  border: none; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 14px; transition: .15s; white-space: nowrap;
}
.ipbox .copy:hover { filter: brightness(1.1); }
.ipbox .copy.ok { background: linear-gradient(135deg, var(--green), #2bb47e); }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { text-align: center; padding: 22px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.stat .n { font-family: var(--pixel); font-size: 21px; color: #fff; }
.stat .l { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ---- Cards / features ---- */
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel);
  transition: transform .18s ease, border-color .2s, background .2s;
  overflow: hidden; min-width: 0;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 23px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(74,163,255,.22), rgba(124,92,255,.22));
  border: 1px solid var(--border-2);
}
.card h3 { font-size: 18.5px; margin-bottom: 8px; overflow-wrap: break-word; }
.card p { color: var(--muted); font-size: 14.5px; overflow-wrap: break-word; }
.card .cmd {
  display: inline-block; margin-top: 14px; padding: 5px 11px; border-radius: 8px;
  font-family: ui-monospace, monospace; font-size: 13px; color: var(--accent);
  background: rgba(74,163,255,.1); border: 1px solid rgba(74,163,255,.25);
}

/* ---- Guía: categorías ---- */
.cat { margin-bottom: 46px; scroll-margin-top: 90px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cat-head .e { font-size: 26px; }
.cat-head h2 { font-size: 25px; }
.cat-head .line { flex: 1; height: 1px; background: var(--border); }
.chip-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 44px; }
.chip-nav a {
  padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted); transition: .18s;
}
.chip-nav a:hover { color: var(--text); border-color: var(--accent); background: rgba(74,163,255,.1); }

/* ---- CTA band ---- */
.cta {
  text-align: center; padding: 60px 30px; border-radius: 24px;
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, rgba(74,163,255,.14), rgba(124,92,255,.12));
  box-shadow: var(--shadow);
}
.cta .hero-title { font-size: clamp(26px, 5vw, 46px); margin-bottom: 16px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 44px 0 60px; margin-top: 40px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .cols-3, .cols-2, .stats { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .ipbox { flex-wrap: wrap; justify-content: center; text-align: center; padding: 16px; }
  .ipbox .copy { margin: 6px auto 0; }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }


/* MineSpain: src/layouts/Wiki.astro */
.wk-body { overflow-x: hidden; --bg: #0b1422; --bg-2: #101d2c; --accent: #89c8e9; --gold: #f2c979; --muted: #a6b8cc; background: var(--bg); }
    .wk-body::before,.wk-body::after { display: none; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .copy-status { position: fixed; z-index: 80; left: 18px; bottom: 18px; max-width: min(460px, calc(100vw - 100px)); padding: 10px 14px; border: 1px solid var(--accent); border-radius: 5px; background: #152235; color: var(--text); box-shadow: var(--shadow); font-size: 14px; overflow-wrap: anywhere; pointer-events: none; }.copy-status:empty { display: none; }
    .skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 12px 20px; color: #0b1422; background: #f2c979; }.skip-link:focus { top: 8px; }
    .wk-body :focus-visible { outline: 2px solid #f2c979; outline-offset: 4px; }
    [data-copy-state="ok"] { box-shadow: 0 0 0 2px #46d39a; }
    [data-copy-state="error"] { box-shadow: 0 0 0 2px #ffb454; }
    .wk-footer { margin-top: 54px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }.wk-footer a { color: var(--accent); }
    /* Top bar */
    .wk-top {
      position: sticky; top: 0; z-index: 60; height: 60px;
      display: flex; align-items: center; gap: 16px; padding: 0 18px;
      background: rgba(8,11,21,.82); backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
      min-width: 0;
    }
    .wk-top .brand {
      flex: 0 1 auto; gap: 9px; font-size: 17px; min-width: 0;
      overflow: visible; white-space: nowrap; padding: 4px 2px 4px 0;
    }
    .wk-top .brand .dot { flex: 0 0 auto; }
    .wk-top .brand-word {
      display: inline-flex; align-items: baseline; gap: 0; min-width: 0;
      color: #fff; line-height: 1;
    }
    .wk-top .brand-word b { margin-left: 0; }
    .wk-tag {
      font-family: var(--pixel); font-size: 9px; color: var(--accent);
      border: 1px solid rgba(74,163,255,.4); padding: 3px 6px;
      border-radius: 6px; text-transform: uppercase;
    }
    .wk-toplinks { display: flex; gap: 4px; margin-left: auto; }
    .wk-toplinks a { padding: 8px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .15s; }
    .wk-toplinks a:hover { color: var(--text); background: var(--panel); }
    .wk-ip { font-family: var(--pixel); font-size: 11px; color: #fff; cursor: pointer;
      border: 1px solid var(--border-2); background: var(--panel); padding: 9px 13px; border-radius: 10px;
      min-width: 0; flex: 0 1 auto; }
    .wk-ip .copy { display: block; min-width: 0; white-space: nowrap; }
    .wk-ip .ip-short { display: none; }
    .wk-ip:hover { border-color: var(--accent); }
    .wk-burger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

    /* Shell */
    .wk-shell { display: grid; grid-template-columns: 268px 1fr; max-width: 1400px; margin-inline: auto; align-items: start; }

    /* Sidebar */
    .wk-side {
      position: sticky; top: 60px; align-self: start;
      height: calc(100vh - 60px); overflow-y: auto;
      padding: 20px 14px 60px; border-right: 1px solid var(--border);
    }
    .wk-search { position: relative; margin-bottom: 16px; }
    .wk-search input {
      width: 100%; padding: 10px 13px; border-radius: 11px; font-size: 14px;
      background: var(--panel); border: 1px solid var(--border-2); color: var(--text); font-family: var(--font);
    }
    .wk-search input:focus { outline: none; border-color: var(--accent); background: var(--panel-2); }
    .wk-results {
      position: absolute; top: 46px; left: 0; right: 0; z-index: 20;
      background: #0c1426; border: 1px solid var(--border-2); border-radius: 8px; overflow-y: auto; max-height: min(460px, 65vh);
      box-shadow: var(--shadow);
    }
    .wk-results a { display: grid; gap: 3px; padding: 12px 13px; border-bottom: 1px solid var(--border); }
    .wk-results a:last-child { border-bottom: none; }
    .wk-results a:hover, .wk-results a:focus-visible { background: var(--panel-2); }
    .wk-results .rt { font-weight: 600; font-size: 14px; color: var(--text); }
    .wk-results .rc { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
    .wk-results .wk-nohit { padding: 12px 13px; color: var(--muted); font-size: 13.5px; }

    .wk-cat { margin-bottom: 4px; }
    .wk-cat > summary {
      list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px;
      padding: 9px 11px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--text);
      user-select: none;
    }
    .wk-cat > summary::-webkit-details-marker { display: none; }
    .wk-cat > summary::after { content: "▸"; margin-left: auto; color: var(--muted); font-size: 11px; transition: transform .18s; }
    .wk-cat[open] > summary::after { transform: rotate(90deg); }
    .wk-cat > summary:hover { background: var(--panel); }
    .wk-cat .ci { font-size: 15px; }
    .wk-cat ul { list-style: none; margin: 2px 0 8px; padding-left: 8px; border-left: 1px solid var(--border); margin-left: 17px; }
    .wk-cat li a {
      display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: .14s;
    }
    .wk-cat li a:hover { color: var(--text); background: var(--panel); }
    .wk-cat li a.on { color: #fff; background: #213247; border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; }

    .wk-backdrop { display: none; }

    /* Main */
    .wk-main { padding: 38px 42px 60px; min-width: 0; }

    @media (max-width: 1000px) {
      .wk-shell { grid-template-columns: 1fr; }
      .wk-toplinks { display: none; }
      .wk-burger { display: block; }
      .wk-side {
        position: fixed; top: 60px; left: 0; width: 300px; max-width: 86vw; z-index: 55;
        background: #0a0f1c; transform: translateX(-105%); transition: transform .22s ease;
      }
      .wk-side.open { transform: none; }
      .wk-backdrop.on { display: block; position: fixed; inset: 60px 0 0 0; background: rgba(0,0,0,.5); z-index: 54; }
      .wk-main { padding: 24px 18px 70px; }
    }
    @media (max-width: 600px) {
      .wk-top { gap: 8px; padding: 0 12px; }
      .wk-top .brand { flex: 1 1 auto; gap: 7px; font-size: 15px; padding-right: 0; }
      .wk-tag { display: none; }
      .wk-ip { width: auto; max-width: none; flex: 0 0 auto; font-size: 9.5px; padding: 8px 8px; }
      .wk-main { padding: 20px 14px 64px; }
    }
    @media (max-width: 360px) {
      .wk-top { gap: 7px; padding: 0 10px; }
      .wk-top .brand { font-size: 14px; }
      .wk-ip { font-size: 9px; padding-inline: 7px; }
      .wk-ip .copy { display: none; }.wk-ip .ip-short { display: block; }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wk-body * { transition: none !important; animation: none !important; } }
  

/* MineSpain: src/components/WikiArticle.astro */
.wiki-page { max-width: 980px; min-width: 0; overflow-wrap: break-word; }
  .wiki-page > * { min-width: 0; }
  .bread { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
  .bread .sep { opacity: .5; }
  .bread b { color: var(--text); }

  .wiki-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; align-items: end;
    padding-bottom: 18px; border-bottom: 1px solid var(--border);
  }
  .mini { display: inline-flex; margin-bottom: 11px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
  .wiki-hero h1 { font: 800 clamp(32px, 5vw, 52px)/1.08 var(--font); margin-bottom: 14px; letter-spacing: -.03em; }
  .lede { font-size: 17px; color: var(--muted); line-height: 1.55; max-width: 68ch; }
  .read-card {
    border: 1px solid var(--border); border-radius: 8px; background: var(--panel);
    padding: 14px; display: grid; gap: 3px; min-width: 0;
  }
  .read-card > * { min-width: 0; }
  .read-card span, .quick-brief span, .toc span, .panel-head p {
    color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  }
  .read-card b { font-family: var(--pixel); font-size: 20px; color: #fff; letter-spacing: 0; white-space: nowrap; }
  .read-card small { color: var(--muted); font-size: 12.5px; line-height: 1.35; overflow-wrap: break-word; }

  .quick-brief {
    display: block;
    margin: 22px 0; border-left: 3px solid var(--gold); border-radius: 0;
    background: var(--panel);
    overflow: hidden; min-width: 0;
  }
  .quick-main { padding: 17px 18px; min-width: 0; display: grid; gap: 8px; align-content: start; }
  .quick-main p {
    margin: 0; color: #d9e2f3; font-size: 14.5px; line-height: 1.5;
    min-width: 0; overflow-wrap: break-word;
  }
  .quick-side {
    min-width: 0; display: block;
    background: transparent;
  }
  .quick-list, .quick-command { padding: 15px 16px; min-width: 0; display: grid; gap: 8px; }
  .quick-command { border-left: 1px solid var(--border); }
  .quick-list ul { margin: 0; padding-left: 17px; display: grid; gap: 6px; }
  .quick-list li {
    color: #d9e2f3; font-size: 13.5px; line-height: 1.45;
    padding-left: 2px; overflow-wrap: break-word;
  }
  .quick-command > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
  .quick-command code {
    flex: 0 0 auto; max-width: 100%; font-family: ui-monospace, monospace; color: #9fd0ff;
    border: 1px solid rgba(74,163,255,.28); background: rgba(74,163,255,.12);
    border-radius: 7px; padding: 4px 8px; white-space: normal; overflow-wrap: anywhere; line-height: 1.35;
  }
  .quick-command p {
    margin: 0; color: #d9e2f3; font-size: 13.5px; line-height: 1.45;
    flex: 1 1 0; min-width: 0; overflow-wrap: break-word;
  }

  .toc {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 0 18px; border-bottom: 1px solid var(--border);
    max-width: 100%; min-width: 0;
  }
  .toc a {
    padding: 5px 9px; border-radius: 3px; border: 1px solid var(--border);
    color: var(--muted); font-weight: 500; font-size: 13px;
  }
  .toc a:hover { border-color: var(--accent); background: rgba(74,163,255,.1); }

  .cmd-panel {
    margin: 18px 0; border: 1px solid var(--border); border-radius: 8px;
    background: var(--panel); padding: 16px;
  }
  .panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 12px; }
  .panel-head h2 { font-size: 18px; margin: 0; }
  .panel-head p { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 600; }
  .cmd-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
  .copy-command { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid var(--border-2); border-radius: 4px; background: #152235; color: var(--accent); cursor: pointer; max-width: 100%; }
  .copy-command:hover { border-color: var(--accent); }
  .copy-command code, .cmd-chips .copy-command code { border: 0; background: none; padding: 0; }
  .cmd-chips code, .cmd-list code {
    font-family: ui-monospace, monospace; color: #9fd0ff; background: rgba(74,163,255,.12);
    border: 1px solid rgba(74,163,255,.24); border-radius: 8px; padding: 5px 9px; font-size: 13px;
    max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.35;
  }
  .cmd-list { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
  .cmd-list div { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14px; min-width: 0; }
  .cmd-list code { flex: 0 0 auto; }
  .cmd-list span { flex: 1 1 0; min-width: 0; overflow-wrap: break-word; }
  .sections { display: grid; gap: 30px; margin-top: 34px; }
  .wiki-section {
    border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent;
    overflow: visible; scroll-margin-top: 82px; min-width: 0;
  }
  .section-head {
    display: block;
    padding: 22px 0 16px;
  }
  .sec-num {
    width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
    font-family: var(--pixel); font-size: 10px; color: var(--accent);
    border: 1px solid rgba(74,163,255,.28); background: rgba(74,163,255,.09);
  }
  .sec-title { display: grid; gap: 4px; min-width: 0; overflow-wrap: break-word; }
  .sec-title h2 { font: 700 25px/1.25 var(--font); letter-spacing: -.02em; margin: 0; min-width: 0; }
  .sec-title small { color: var(--muted); font-size: 14px; line-height: 1.4; min-width: 0; overflow-wrap: break-word; }
  .section-body { padding: 0; }

  .md p { margin: 0 0 11px; line-height: 1.62; color: #cdd6e8; overflow-wrap: break-word; }
  .md p:last-child { margin-bottom: 0; }
  .md b, .md strong { color: #fff; font-weight: 700; }
  .md em { color: var(--gold); font-style: normal; }
  .md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
  .md ul, .md ol { margin: 0 0 14px; padding-left: 22px; }
  .md li { margin: 5px 0; line-height: 1.6; color: #cdd6e8; overflow-wrap: anywhere; min-width: 0; }
  .md code { font-family: ui-monospace, monospace; font-size: 13px; background: rgba(74,163,255,.12); border: 1px solid rgba(74,163,255,.24); color: #9fd0ff; padding: 2px 7px; border-radius: 6px; white-space: normal; overflow-wrap: anywhere; }
  .md blockquote {
    margin: 0 0 14px; padding: 10px 16px; border-radius: 0 10px 10px 0;
    border-left: 3px solid var(--gold); background: rgba(255,180,84,.08); color: #e7ecf6;
  }
  .md blockquote p { color: #e7ecf6; margin: 0; }
  .md blockquote.cal-rojo { border-left-color: var(--red); background: rgba(255,92,108,.12); }
  .md blockquote.cal-rojo b, .md blockquote.cal-rojo strong { color: #ff8a95; }
  .md blockquote.cal-ok { border-left-color: var(--green); background: rgba(70,211,154,.1); }
  .md blockquote.cal-info { border-left-color: var(--accent); background: rgba(74,163,255,.1); }
  .md h3 { font-size: 17px; margin: 18px 0 8px; }
  .md .hl {
    color: #ffdf8e; background: rgba(255,180,84,.16);
    border: 1px solid rgba(255,180,84,.28); padding: .08em .36em;
    border-radius: 5px; font-weight: 600; line-height: 1.75;
    white-space: normal; overflow-wrap: anywhere;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }

  .tw { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; margin: 4px 0; max-width: 100%; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  thead th { text-align: left; background: var(--panel-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 11px 14px; border-bottom: 1px solid var(--border-2); }
  tbody td, tbody th { padding: 10px 14px; border-top: 1px solid var(--border); text-align: left; font-weight: 400; overflow-wrap: normal; min-width: 0; }
  .table-scroll-note { display: none; }
  tbody th { color: #fff; font-weight: 600; }
  tbody tr:hover { background: var(--panel); }
  td code, th code { font-family: ui-monospace, monospace; font-size: 12.5px; background: rgba(74,163,255,.12); color: #9fd0ff; padding: 1px 6px; border-radius: 5px; }

  .wmedia-wrap { display: grid; gap: 14px; margin: 2px 0 16px; }
  .wmedia-wrap:has(.wmedia + .wmedia) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .wmedia { margin: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); }
  .wmedia img, .wmedia video { width: 100%; max-height: 420px; object-fit: contain; display: block; background: #0c1018; }
  .wmedia figcaption { padding: 9px 14px; font-size: 13px; color: var(--muted); background: var(--panel-2); border-top: 1px solid var(--border); }
  .wmedia.ph { border-style: dashed; border-color: rgba(74,163,255,.32); background: linear-gradient(150deg, rgba(74,163,255,.08), rgba(124,92,255,.05)); }
  .wmedia.ph .wmedia-ph-in { min-height: 138px; display: grid; place-items: center; gap: 6px; padding: 20px 16px; text-align: center; }
  .wmedia.ph .wmedia-ph-ico { font-size: 28px; opacity: .85; }
  .wmedia.ph b { font-family: var(--pixel); font-size: 10px; letter-spacing: .04em; color: var(--accent); }
  .wmedia.ph small { color: var(--muted); font-size: 13px; max-width: 46ch; line-height: 1.5; }
  .wmedia.ph .wmf { margin-top: 5px; font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: 2px 9px; border-radius: 6px; }

  .rel { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
  .rel > span { color: var(--muted); }
  .rel a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel); color: var(--text); font-weight: 600; font-size: 13.5px; }
  .rel a:hover { border-color: var(--accent); }

  .pn { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
  .pn-a { flex: 1; max-width: 50%; padding: 14px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); transition: .16s; }
  .pn-a:hover { border-color: var(--accent); background: var(--panel-2); }
  .pn-a span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .pn-a b { font-size: 15px; overflow-wrap: break-word; }
  .pn-a.next { text-align: right; }

  @media (max-width: 900px) {
    .wiki-hero { grid-template-columns: 1fr; }
    .read-card { max-width: 220px; }
    .quick-brief { grid-template-columns: 1fr; }
    .quick-side { border-left: 0; grid-template-columns: 1fr; }
    .quick-command { border-left: 0; border-top: 1px solid var(--border); }
  }
  @media (max-width: 620px) {
    table:has(th:nth-child(3)) { min-width: 520px; }
    .table-scroll-note { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
    .wiki-page { max-width: 100%; }
    .wiki-hero h1 { font-size: clamp(25px, 10vw, 36px); }
    .read-card {
      max-width: none;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "label time" "note time";
      align-items: center;
      gap: 4px 14px;
      padding: 13px 14px;
    }
    .read-card span { grid-area: label; }
    .read-card b { grid-area: time; justify-self: end; align-self: center; font-size: clamp(16px, 4.8vw, 20px); }
    .read-card small { grid-area: note; }
    .quick-brief { margin: 14px 0; }
    .quick-main { padding: 14px; gap: 7px; }
    .quick-main p { font-size: 13.5px; }
    .quick-list, .quick-command { padding: 13px 14px; }
    .quick-command > div { align-items: flex-start; flex-direction: column; gap: 7px; }
    .quick-list li, .quick-command p { font-size: 13px; }
    .toc { flex-wrap: nowrap; overflow-x: auto; padding: 8px 0 12px; margin-right: -14px; scrollbar-width: thin; }
    .toc span, .toc a { flex: 0 0 auto; white-space: nowrap; }
    .panel-head { display: block; }
    .cmd-panel { margin: 14px 0; padding: 13px; }
    .section-head { padding: 18px 0 12px; }
    .sec-num { width: 30px; height: 30px; border-radius: 8px; }
    .sec-title h2 { font-size: 22px; }
    .sec-title small { font-size: 13px; }
    .section-body { padding: 0; }
    .md .hl { padding-inline: .28em; line-height: 1.85; }
    .cmd-list div { flex-direction: column; gap: 4px; }
    .pn { flex-direction: column; }
    .pn-a { max-width: none; }
    .pn-a.next { text-align: left; }
  }


/* MineSpain: src/components/WikiWelcome.astro */
.field-guide { margin: 26px 0 32px; }
  .spawn-cover { position: relative; background: #152235; border: 1px solid #35475c; overflow: hidden; border-radius: 4px; aspect-ratio: 1.95; }
  .spawn-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .spawn-cover::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #081321ec); pointer-events: none; }
  .cover-label { position: absolute; inset: auto 28px 28px; z-index: 1; max-width: 80%; }
  .cover-label span { display: block; color: #f2c979; font: 700 11px var(--font); letter-spacing: .2em; margin-bottom: 12px; }
  .cover-label strong { display: block; font: 400 clamp(16px, 2.4vw, 26px)/1.7 var(--pixel); color: #fff; text-shadow: 2px 3px #09121d; }
  .photo-note { position: absolute; right: 12px; top: 12px; background: #0a1528dc; color: #e7ecf6; font-size: 9px; letter-spacing: .1em; padding: 5px 8px; }
  .routes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--border-2); }
  .routes a { display: flex; gap: 12px; padding: 22px 18px; color: var(--text); border-right: 1px solid var(--border); transition: background .15s; }
  .routes a:first-child { padding-left: 0; }.routes a:last-child { border: 0; padding-right: 0; }
  .routes a:hover { background: var(--panel); }.route-step { font: 11px var(--pixel); color: var(--gold); padding-top: 6px; }
  .routes h2 { font: 700 17px/1.25 var(--font); margin: 0 0 8px; }.routes p { color: var(--muted); font-size: 13px; line-height: 1.5; }.routes a > span:last-child { color: var(--accent); }
  .field-links { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 0; font-size: 13px; }.field-links > span { color: var(--muted); }.field-links a { color: var(--accent); }
  @media(max-width:650px) { .spawn-cover { aspect-ratio: 1.3; }.cover-label { inset: auto 18px 18px; max-width: 90%; }.routes { grid-template-columns: 1fr; }.routes a,.routes a:first-child,.routes a:last-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--border); }.routes a > span:last-child { margin-left: auto; } }


/* MineSpain: src/components/WikiAssistant.astro */
#ms-assistant {
    --ms-accent: #34d399;
    --ms-bg: #0c1220;
    --ms-bg2: #131c2e;
    --ms-line: rgba(255,255,255,.10);
    --ms-text: #e8edf6;
    --ms-mut: #93a1b8;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    font-family: "Outfit", system-ui, sans-serif;
  }

  /* Boton flotante */
  #ms-fab {
    display: inline-flex; align-items: center; gap: 9px;
    height: 54px; padding: 0 20px 0 16px;
    border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; font: 600 15px "Outfit", sans-serif;
    box-shadow: 0 10px 28px rgba(5,150,105,.45), 0 2px 6px rgba(0,0,0,.3);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  #ms-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(5,150,105,.55); }
  #ms-fab .ms-ico-close { display: none; }
  #ms-fab .ms-fab-label { white-space: nowrap; }

  #ms-assistant[data-state="open"] #ms-fab {
    width: 54px; padding: 0; justify-content: center;
    background: var(--ms-bg2);
    box-shadow: 0 8px 22px rgba(0,0,0,.45);
  }
  #ms-assistant[data-state="open"] #ms-fab .ms-ico-chat,
  #ms-assistant[data-state="open"] #ms-fab .ms-fab-label { display: none; }
  #ms-assistant[data-state="open"] #ms-fab .ms-ico-close { display: block; }

  /* Panel */
  #ms-panel {
    position: absolute; right: 0; bottom: 68px;
    width: 380px; max-width: calc(100vw - 32px);
    height: 560px; max-height: calc(100vh - 110px);
    display: none; flex-direction: column;
    background: var(--ms-bg);
    border: 1px solid var(--ms-line); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    overflow: hidden;
  }
  #ms-assistant[data-state="open"] #ms-panel { display: flex; animation: ms-pop .16s ease; }
  @keyframes ms-pop { from { opacity: 0; transform: translateY(10px) scale(.98);} to { opacity: 1; transform: none; } }

  .ms-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 14px; border-bottom: 1px solid var(--ms-line);
    background: linear-gradient(180deg, var(--ms-bg2), transparent);
  }
  .ms-head .ms-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ms-accent); box-shadow: 0 0 10px var(--ms-accent); flex: none; }
  .ms-head-txt { flex: 1; line-height: 1.2; }
  .ms-head-txt strong { display: block; color: var(--ms-text); font-size: 15px; }
  .ms-head-txt small { color: var(--ms-mut); font-size: 12px; }
  #ms-close { background: 0; border: 0; color: var(--ms-mut); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
  #ms-close:hover { color: var(--ms-text); background: var(--ms-line); }

  #ms-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
  #ms-msgs::-webkit-scrollbar { width: 8px; }
  #ms-msgs::-webkit-scrollbar-thumb { background: var(--ms-line); border-radius: 8px; }

  .ms-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; color: var(--ms-text); word-wrap: break-word; }
  .ms-msg.ms-user { align-self: flex-end; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-bottom-right-radius: 4px; }
  .ms-msg.ms-assistant { align-self: flex-start; background: var(--ms-bg2); border: 1px solid var(--ms-line); border-bottom-left-radius: 4px; }
  .ms-msg a { color: var(--ms-accent); }
  .ms-msg code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; font-family: ui-monospace, monospace; }
  .ms-msg.ms-typing { color: var(--ms-mut); }
  .ms-dots { display: inline-flex; gap: 4px; }
  .ms-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ms-mut); animation: ms-blink 1.2s infinite both; }
  .ms-dots i:nth-child(2) { animation-delay: .2s; }
  .ms-dots i:nth-child(3) { animation-delay: .4s; }
  @keyframes ms-blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

  #ms-ts { padding: 0 12px; }
  #ms-ts:empty { display: none; }

  #ms-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ms-line); }
  #ms-input {
    flex: 1; height: 42px; padding: 0 14px;
    background: var(--ms-bg2); border: 1px solid var(--ms-line); border-radius: 12px;
    color: var(--ms-text); font: 14px "Outfit", sans-serif; outline: none;
  }
  #ms-input:focus { border-color: var(--ms-accent); }
  #ms-input::placeholder { color: var(--ms-mut); }
  #ms-send {
    width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #ms-send:disabled { opacity: .5; cursor: default; }
  .ms-disc { margin: 0; padding: 0 14px 12px; color: var(--ms-mut); font-size: 11px; text-align: center; }

  @media (max-width: 480px) {
    #ms-assistant { right: 14px; bottom: 14px; }
    #ms-panel { width: calc(100vw - 24px); height: calc(100vh - 92px); bottom: 64px; }
    #ms-fab .ms-fab-label { display: none; }
    #ms-fab { width: 54px; padding: 0; justify-content: center; }
  }

