/* ══════════════════════════════════════════════════════════════
   Erbian · piedra antigua
   La Pizarra es la tableta: luz cian sobre pizarra oscura. El resto de
   la web es lo físico de esa misma tecnología: piedra tallada, gastada,
   con surcos que se encienden. Cian cuando algo está activo o resuelto;
   ámbar cuando está en curso, dormido o pide atención.

   Se carga DESPUÉS de la hoja de cada página: redefine sus variables
   (--gold, --arcane, --ink, --bg…) y añade las piezas comunes (sh-*).
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Piedra */
  --sh-stone-950: #080b0d;
  --sh-stone-900: #0c1013;
  --sh-stone-850: #10161a;
  --sh-stone-800: #151c21;
  --sh-stone-700: #1c252b;
  --sh-stone-600: #26323a;
  --sh-stone-500: #3a4a53;

  /* La luz de los surcos (la misma que la Pizarra) */
  --sh-glow:        #5ee6ff;
  --sh-glow-strong: #b4f6ff;
  --sh-glow-mid:    #2fb7d6;
  --sh-glow-dim:    #1d6577;
  --sh-glow-faint:  rgba(94, 230, 255, 0.08);
  --sh-glow-line:   rgba(94, 230, 255, 0.26);
  --sh-glow-shadow: 0 0 6px rgba(94, 230, 255, 0.55), 0 0 22px rgba(94, 230, 255, 0.22);

  --sh-amber:       #ffa043;
  --sh-amber-light: #ffc485;
  --sh-amber-dim:   #7e4818;
  --sh-amber-line:  rgba(255, 160, 67, 0.32);
  --sh-amber-shadow: 0 0 6px rgba(255, 160, 67, 0.5), 0 0 22px rgba(255, 160, 67, 0.2);

  --sh-ink:       #dde6e5;
  --sh-ink-dim:   #8fa1a3;
  --sh-ink-faint: #4b5a5d;

  --sh-ff-carve: 'Cinzel', serif;
  --sh-ff-lore:  'Cormorant Garamond', Georgia, serif;
  --sh-ff-tech:  'Rajdhani', system-ui, sans-serif;

  --sh-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Textura de piedra (dos ruidos: manchas grandes y grano fino) */
  --sh-stone-texture:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.65 0 0 0 0 0.7 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.75 0 0 0 0 0.78 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");

  /* ── Las variables de las páginas de siempre, a piedra y luz ── */
  --bg:            var(--sh-stone-900);
  --bg-card:       var(--sh-stone-800);
  --bg-card-hover: var(--sh-stone-700);
  --bg-section:    var(--sh-stone-850);
  --bg-sidebar:    var(--sh-stone-950);
  --bg-article:    var(--sh-stone-850);
  --bg-panel:      var(--sh-stone-850);
  --bg-deep:       var(--sh-stone-950);

  --gold:          #7fdcf0;
  --gold-light:    #c6f4fb;
  --gold-dim:      #2f7486;
  --gold-glow:     rgba(94, 230, 255, 0.14);

  --arcane:        var(--sh-amber);
  --arcane-light:  var(--sh-amber-light);
  --arcane-glow:   rgba(255, 160, 67, 0.16);

  --ink:           var(--sh-ink);
  --ink-dim:       var(--sh-ink-dim);
  --ink-faint:     var(--sh-ink-faint);
  --text:          var(--sh-ink);
  --text-dim:      var(--sh-ink-dim);
  --text-faint:    var(--sh-ink-faint);

  --border:        rgba(127, 220, 240, 0.13);
  --border-hover:  rgba(127, 220, 240, 0.42);
}

/* La piedra de fondo, en todas las páginas */
html {
  background: var(--sh-stone-950);
  /* El hueco de la barra de scroll, siempre: así las páginas con y sin
     scroll miden lo mismo y nada salta al pasar de una a otra */
  scrollbar-gutter: stable;
}
body {
  background-color: var(--sh-stone-900);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(94, 230, 255, 0.05), transparent 70%),
    var(--sh-stone-texture);
  background-attachment: fixed;
}
::selection { background: rgba(94, 230, 255, 0.28); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--sh-stone-950); }
::-webkit-scrollbar-thumb { background: var(--sh-stone-600); border: 2px solid var(--sh-stone-950); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sh-glow-dim); }
/* El ruido de antes sobra: la piedra ya tiene grano */
.noise { display: none; }

/* ── Piedra tallada: paneles con bisel y surco ─────────────── */
.sh-slab {
  position: relative;
  background-color: var(--sh-stone-800);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 40%), var(--sh-stone-texture);
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 0 rgba(0, 0, 0, 0.45),
    0 10px 30px rgba(0, 0, 0, 0.45);
}
/* El surco: una línea grabada a 6 px del borde que se enciende */
.sh-slab::after {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid rgba(94, 230, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: border-color 600ms var(--sh-ease), box-shadow 600ms var(--sh-ease);
}
.sh-slab.is-lit::after, .sh-slab:hover::after {
  border-color: var(--sh-glow-line);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 18px rgba(94, 230, 255, 0.08), 0 0 14px rgba(94, 230, 255, 0.12);
}
.sh-slab.sh-amber::after { border-color: rgba(255, 160, 67, 0.16); }
.sh-slab.sh-amber.is-lit::after, .sh-slab.sh-amber:hover::after {
  border-color: var(--sh-amber-line);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 18px rgba(255, 160, 67, 0.08), 0 0 14px rgba(255, 160, 67, 0.14);
}

/* ── Texto tallado ──────────────────────────────────────────── */
.sh-carved {
  font-family: var(--sh-ff-carve);
  color: #c9d5d6;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Tallado y encendido: un brillo que recorre las letras */
.sh-carved-lit {
  font-family: var(--sh-ff-carve);
  background: linear-gradient(100deg, #9fb3b6 0%, #d8e6e7 30%, var(--sh-glow-strong) 46%, #8ff0ff 50%, #d8e6e7 58%, #9fb3b6 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(94, 230, 255, 0.25)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.9));
  animation: sh-sweep 7s ease-in-out infinite;
}
@keyframes sh-sweep { 0%, 15% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }

.sh-label {
  font-family: var(--sh-ff-tech);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sh-ink-dim);
}

/* ── Botones: piedra que se enciende ────────────────────────── */
.sh-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--sh-ff-tech);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85em 1.9em;
  color: var(--sh-ink);
  background: linear-gradient(180deg, var(--sh-stone-700), var(--sh-stone-800));
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  transition: color 240ms, background 240ms, transform 160ms;
}
.sh-btn::before {
  content: '';
  position: absolute; inset: 3px;
  clip-path: inherit;
  border: 1px solid var(--sh-glow-line);
  pointer-events: none;
  transition: border-color 240ms, box-shadow 240ms;
}
.sh-btn:hover { color: var(--sh-glow-strong); background: linear-gradient(180deg, #1f3038, var(--sh-stone-800)); }
.sh-btn:hover::before { border-color: var(--sh-glow); }
.sh-btn:active { transform: translateY(1px); }
.sh-btn:focus-visible { outline: 1px solid var(--sh-glow); outline-offset: 4px; }
.sh-btn-lit { color: #04161c; background: linear-gradient(180deg, #8ff0ff, var(--sh-glow-mid)); }
.sh-btn-lit::before { border-color: rgba(4, 22, 28, 0.35); }
.sh-btn-lit:hover { color: #031015; background: linear-gradient(180deg, var(--sh-glow-strong), var(--sh-glow)); box-shadow: var(--sh-glow-shadow); }
.sh-btn-amber { color: var(--sh-amber-light); }
.sh-btn-amber::before { border-color: var(--sh-amber-line); }
.sh-btn-amber:hover { color: #fff3e4; }
.sh-btn-amber:hover::before { border-color: var(--sh-amber); }
.sh-btn[disabled] { opacity: 0.5; cursor: wait; }

/* ── Glifos (los dibuja sheikah.js) ─────────────────────────── */
.sh-glyph { display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em; }
.sh-glyph path, .sh-glyph circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-glyph .dot { fill: currentColor; stroke: none; }

/* Glifos que flotan en un fondo: aparecen, brillan y se apagan */
.sh-runes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sh-runes .sh-glyph {
  position: absolute;
  color: var(--sh-glow-dim);
  opacity: 0;
  animation: sh-rune-life var(--d, 14s) ease-in-out var(--delay, 0s) infinite;
}
.sh-runes .sh-glyph.amber { color: var(--sh-amber-dim); }
@keyframes sh-rune-life {
  0%   { opacity: 0;    transform: translateY(8px); }
  25%  { opacity: 0.55; filter: drop-shadow(0 0 6px currentColor); }
  55%  { opacity: 0.25; transform: translateY(-8px); }
  100% { opacity: 0;    transform: translateY(8px); }
}

/* Anillo de glifos que gira (el corazón del sigilo de piedra) */
.sh-ring { position: absolute; pointer-events: none; color: var(--sh-glow-dim); }
.sh-ring svg { width: 100%; height: 100%; overflow: visible; }
.sh-ring .spin   { transform-origin: 0 0; animation: sh-spin 90s linear infinite; }
.sh-ring .spin-r { transform-origin: 0 0; animation: sh-spin 140s linear infinite reverse; }
@keyframes sh-spin { to { transform: rotate(360deg); } }

/* Separador grabado con un glifo en medio */
.sh-divider { display: flex; align-items: center; justify-content: center; gap: 0.9rem; color: var(--sh-glow-mid); }
.sh-divider::before, .sh-divider::after {
  content: ''; width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sh-glow-line));
}
.sh-divider::after { background: linear-gradient(-90deg, transparent, var(--sh-glow-line)); }
.sh-divider .sh-glyph { width: 1.1em; height: 1.1em; filter: drop-shadow(0 0 5px currentColor); }

/* ── Aparecer al llegar (scroll) ────────────────────────────── */
[data-sh-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--sh-ease), transform 900ms var(--sh-ease); }
[data-sh-reveal].is-lit { opacity: 1; transform: none; }

/* ── Transición entre páginas: dos losas que se cierran ─────── */
.sh-veil { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.sh-veil-slab {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background-color: var(--sh-stone-800);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 30%), var(--sh-stone-texture);
  transition: transform 620ms var(--sh-ease);
}
.sh-veil-slab.left  { left: 0;  transform: translateX(-101%); box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.6); }
.sh-veil-slab.right { right: 0; transform: translateX(101%);  box-shadow: inset 2px 0 0 rgba(0, 0, 0, 0.6); background-image: linear-gradient(-90deg, rgba(0, 0, 0, 0.35), transparent 30%), var(--sh-stone-texture); }
/* La junta: brilla al cerrarse */
.sh-veil-seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: var(--sh-glow); box-shadow: var(--sh-glow-shadow);
  opacity: 0; transform: scaleY(0);
  transition: opacity 300ms, transform 500ms var(--sh-ease);
}
.sh-veil-sigil {
  position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px;
  color: var(--sh-glow); opacity: 0; transform: scale(0.8) rotate(-30deg);
  transition: opacity 360ms, transform 620ms var(--sh-ease);
  filter: drop-shadow(0 0 10px rgba(94, 230, 255, 0.6));
}
.sh-veil-sigil svg { width: 100%; height: 100%; }
.sh-veil.closed { pointer-events: all; }
.sh-veil.closed .sh-veil-slab { transform: none; }
.sh-veil.closed .sh-veil-seam { opacity: 1; transform: none; transition-delay: 380ms; }
.sh-veil.closed .sh-veil-sigil { opacity: 1; transform: none; transition-delay: 300ms; }
.sh-veil.closed .sh-veil-sigil .spin { animation: sh-spin 3s linear infinite; transform-origin: 0 0; }
.sh-veil.instant .sh-veil-slab, .sh-veil.instant .sh-veil-seam, .sh-veil.instant .sh-veil-sigil { transition: none; }
/* Al llegar desde otra página: tapada desde el primer fotograma, igual que
   las losas cerradas, hasta que el velo de verdad toma el relevo */
html.sh-arriving::after {
  content: ''; position: fixed; inset: 0; z-index: 10001;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200' fill='none' stroke='%235ee6ff' stroke-linecap='round'%3E%3Ccircle r='92' stroke-width='1' opacity='0.45'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(0)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(15)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(30)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(45)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(60)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(75)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(90)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(105)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(120)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(135)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(150)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(165)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(180)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(195)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(210)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(225)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(240)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(255)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(270)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(285)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(300)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-80' stroke-width='2' transform='rotate(315)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(330)'/%3E%3Cline x1='0' y1='-92' x2='0' y2='-86' stroke-width='1' transform='rotate(345)'/%3E%3Ccircle r='68' stroke-width='1.4' stroke-dasharray='34 8 4 8'/%3E%3Cpath d='M-52 0 Q0 -40 52 0 Q0 40 -52 0Z' stroke-width='1.8'/%3E%3Ccircle r='15' stroke-width='2'/%3E%3Cpath d='M0-9 L7 0 L0 9 L-7 0Z' fill='%235ee6ff' stroke='none'/%3E%3C/svg%3E") center / 132px 132px no-repeat,
    linear-gradient(90deg, transparent calc(50% - 1px), var(--sh-glow) calc(50% - 1px), var(--sh-glow) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 15%, transparent 85%, rgba(0, 0, 0, 0.35)),
    var(--sh-stone-texture),
    var(--sh-stone-800);
}

/* ── El conector con la Pizarra (chip de la barra) ──────────── */
.sh-chip {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sh-ff-tech); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35em 1em 0.35em 0.8em;
  color: var(--sh-amber-light);
  border: 1px solid var(--sh-amber-line);
  background: rgba(255, 160, 67, 0.06);
  text-decoration: none;
  transition: color 240ms, border-color 240ms, background 240ms, box-shadow 240ms;
}
.sh-chip:hover { border-color: var(--sh-amber); box-shadow: var(--sh-amber-shadow); }
.sh-chip-dot { width: 8px; height: 8px; transform: rotate(45deg); background: var(--sh-amber); box-shadow: 0 0 8px var(--sh-amber); animation: sh-breathe 2.4s ease-in-out infinite; }
.sh-chip.linked { color: var(--sh-glow-strong); border-color: var(--sh-glow-line); background: rgba(94, 230, 255, 0.06); }
.sh-chip.linked:hover { border-color: var(--sh-glow); box-shadow: var(--sh-glow-shadow); }
.sh-chip.linked .sh-chip-dot { background: var(--sh-glow); box-shadow: 0 0 8px var(--sh-glow); }
@keyframes sh-breathe { 50% { opacity: 0.45; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-sh-reveal] { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   Las páginas de siempre (Archivo, mapa, creador), a piedra
   ══════════════════════════════════════════════════════════════ */

/* Barras y laterales: piedra oscura con la junta encendida */
.sidebar, .topbar, .ql-topbar, .mobile-header {
  background-color: var(--sh-stone-950) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent), var(--sh-stone-texture) !important;
}
.sidebar { box-shadow: inset -1px 0 0 rgba(94, 230, 255, 0.12), 6px 0 24px rgba(0, 0, 0, 0.45); border-right-color: rgba(0, 0, 0, 0.7) !important; }
.topbar, .ql-topbar, .mobile-header { border-bottom-color: rgba(0, 0, 0, 0.7) !important; box-shadow: 0 1px 0 rgba(94, 230, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.4); }
.sidebar-sigil, .topbar-sigil, .ql-sigil { color: var(--sh-glow) !important; text-shadow: 0 0 10px rgba(94, 230, 255, 0.6); }
.sidebar-back, .topbar-back, .ql-back { font-family: var(--sh-ff-tech) !important; font-weight: 600; letter-spacing: 0.14em; }
.sidebar-back:hover, .topbar-back:hover, .ql-back:hover { color: var(--sh-glow-strong) !important; text-shadow: 0 0 8px rgba(94, 230, 255, 0.5); }
.sidebar-pizarra { color: var(--sh-amber-light) !important; }

/* Tarjetas y paneles: losas con bisel y surco */
.cat-card, .article-card, .related-card, .subcat-card, .search-result, .traveler-quote,
.form-block, .import-bar, .stat-block, .ability-item, .legend, .map-tooltip {
  background-color: var(--sh-stone-800) !important;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 45%), var(--sh-stone-texture) !important;
  border-color: rgba(0, 0, 0, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 5px var(--sh-stone-800), inset 0 0 0 6px rgba(94, 230, 255, 0.10), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow 500ms var(--sh-ease), transform 400ms var(--sh-ease);
}
.cat-card:hover, .article-card:hover, .related-card:hover, .subcat-card:hover, .search-result:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 5px var(--sh-stone-800), inset 0 0 0 6px var(--sh-glow-line), 0 0 18px rgba(94, 230, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.45);
}
.stat-block, .ability-item { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.4); }

/* Campos: huecos tallados en la piedra */
.sidebar-search input, .form-block input, .form-block select, .form-block textarea, .stat-value-input, .stat-name-input, .map-select, .bio-raw-textarea {
  background-color: rgba(5, 8, 10, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.8) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sidebar-search input:focus, .form-block input:focus, .form-block select:focus, .form-block textarea:focus {
  border-color: var(--sh-glow-dim) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--sh-glow-line), 0 0 14px rgba(94, 230, 255, 0.15) !important;
}

/* Títulos grandes: tallados y con el brillo que pasa */
.home-title, .ql-page-title {
  background: linear-gradient(100deg, #9fb3b6 0%, #d8e6e7 30%, var(--sh-glow-strong) 46%, #8ff0ff 50%, #d8e6e7 58%, #9fb3b6 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 18px rgba(94, 230, 255, 0.22)) drop-shadow(0 3px 2px rgba(0, 0, 0, 0.9));
  animation: sh-sweep 7s ease-in-out infinite;
}
.view-title, .article-title { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.9), 0 0 18px rgba(94, 230, 255, 0.18); }
.home-hero, .ql-list-header { position: relative; }
/* La runa gigante del Archivo es ahora un anillo de glifos */
.home-glow { background: radial-gradient(ellipse, rgba(94, 230, 255, 0.10) 0%, transparent 70%) !important; }
.home-rune-bg.sh-ring { width: 520px; height: 520px; font-size: 0; opacity: 0.28 !important; color: var(--sh-glow-dim); }
