/* ============================================================
   SENDA · El Cruce de los Caminos
   Tema Minecraft: píxel, bloques, cuarzo y esmeralda.
   ============================================================ */

@font-face {
  font-family: "Monocraft";
  src: url("fonts/Monocraft.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/Silkscreen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/Silkscreen-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060a07;
  --bg-soft: #0a110b;
  --bg-panel: #0d150e;
  --panel: #101a11;
  --panel-2: #152116;
  --panel-3: #1a291b;
  --line: #33472f;
  --line-soft: rgba(150, 190, 120, 0.15);
  --line-strong: #527146;
  --grass: #7cc95a;
  --grass-light: #a6e07a;
  --grass-dark: #4a8a34;
  --emerald: #76d45c;
  --emerald-soft: #4fc97a;
  --emerald-dark: #1f7a46;
  --spirit: #5fe0b0;
  --gold: #e8c37a;
  --gold-2: #f0d8a3;
  --gold-dark: #a87a3c;
  --dirt: #8a5a34;
  --dirt-dark: #4a3221;
  --wood: #b98c5a;
  --wood-dark: #6b4426;
  --text: #edf4e8;
  --muted: #a9b7a1;
  --muted-2: #7f8e79;
  --purple: #a77bd6;
  --red: #e05252;
  --shadow: rgba(0, 0, 0, 0.55);
  --font-display: "Silkscreen", "Courier New", monospace;
  --font-body: "Monocraft", "Courier New", monospace;
  --font-mono: "Monocraft", "Courier New", monospace;
  --max: 1120px;
  --pad: clamp(18px, 4vw, 32px);
  --radius: 3px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
}

/* La cabecera es fija (~64 px). El padding superior de cada sección
   (clamp(64px, 9vw, 122px)) ya deja el título a la vista; este margen
   evita que quede pegado al borde al llegar desde los enlaces. */
main[id],
section[id] {
  scroll-margin-top: 12px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 50% -14%, rgba(124, 201, 90, 0.095), transparent 62%),
    radial-gradient(900px 600px at 92% 18%, rgba(232, 195, 122, 0.045), transparent 65%),
    radial-gradient(900px 600px at 6% 100%, rgba(138, 90, 52, 0.06), transparent 70%),
    linear-gradient(180deg, #060a07 0%, #09110b 42%, #060a07 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  font-synthesis: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(150, 190, 120, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 190, 120, 0.026) 1px, transparent 1px);
  background-size: 32px 32px;
}

body.menu-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button:not(:disabled) { cursor: pointer; }
ul, ol { margin-top: 0; }

::selection {
  background: rgba(124, 201, 90, 0.3);
  color: #ffffff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #060a07; }
::-webkit-scrollbar-thumb { background: #334b2f; border: 2px solid #060a07; }
::-webkit-scrollbar-thumb:hover { background: #5b7a49; }
html { scrollbar-color: #334b2f #060a07; scrollbar-width: thin; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: #07120b;
  background: var(--emerald);
  border: 2px solid #04140d;
  font-size: 13px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  image-rendering: pixelated;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--gold);
  background: rgba(232, 195, 122, 0.07);
  border: 1px solid rgba(232, 195, 122, 0.18);
  border-radius: 2px;
  padding: 0.08em 0.36em;
  overflow-wrap: anywhere;
}

strong { font-weight: 400; color: var(--text); }

/* ---------------- fondos fijos ---------------- */

.sky-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 14% 62%, rgba(124, 201, 90, 0.07), transparent 70%),
    radial-gradient(600px 360px at 86% 30%, rgba(232, 195, 122, 0.05), transparent 72%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.028) 0 1px, transparent 1px 4px);
}

#motes {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

main,
.site-header,
.site-footer { position: relative; z-index: 1; }

/* ---------------- cabecera ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(5, 10, 6, 0.94), rgba(5, 10, 6, 0.72) 76%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 10, 6, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 11px clamp(16px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(124, 201, 90, 0.28));
}

.brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-shadow: 0 2px 0 #04140d;
}

.brand-chip {
  margin-left: 2px;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(232, 195, 122, 0.07);
  border: 1px solid rgba(232, 195, 122, 0.26);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav a {
  position: relative;
  padding: 5px 0;
  color: var(--muted);
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active { color: var(--text); }

.nav a.is-active { color: var(--emerald); }

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background:
    linear-gradient(90deg, var(--emerald) 0 6px, transparent 6px 8px, var(--emerald) 8px 14px, transparent 14px 16px, var(--emerald) 16px 22px);
  opacity: 0.8;
}

.nav-cta {
  padding: 8px 16px !important;
  color: #f2fff8 !important;
  background: #4f8f2f;
  border: 2px solid #1c3d11;
  box-shadow: inset 2px 2px 0 #7cc95a, inset -2px -3px 0 #2f5f1c, 0 3px 0 #041106;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.45);
  transition: background 0.15s ease, transform 0.1s ease;
}

.nav-cta:hover { background: #4a9d31; }
.nav-cta:active { transform: translateY(2px); box-shadow: inset 2px 2px 0 #7cc95a, inset -2px -2px 0 #2f5f1c; }

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: #2a332e;
  border: 2px solid #141b17;
  box-shadow: inset 2px 2px 0 #4c5a51, inset -2px -2px 0 #101512;
  border-radius: 2px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.xp-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.xp-bar span {
  display: block;
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 11px),
    linear-gradient(90deg, #4f9e3c, #a6e07a 60%, #e8c37a);
  box-shadow: 0 0 10px rgba(124, 201, 90, 0.55);
  transition: width 0.12s linear;
}

/* ---------------- botones ---------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  color: #ecf5ef;
  background: #4d5347;
  border: 2px solid #1a1d16;
  border-radius: 2px;
  box-shadow:
    inset 2px 2px 0 #7c8577,
    inset -2px -3px 0 #2f332b,
    0 4px 0 #040705;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.45);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease, border-color 0.15s ease;
}

.btn:hover { background: #5d6558; }
.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 2px 2px 0 #60695c,
    inset -2px -2px 0 #2b332e,
    0 1px 0 #040705;
}

.btn .icon { width: 16px; height: 16px; }

.btn-primary {
  color: #f5fff9;
  background: #4f8f2f;
  border-color: #1c3d11;
  box-shadow:
    inset 2px 2px 0 #8fdc63,
    inset -2px -3px 0 #2f5f1c,
    0 4px 0 #041106,
    0 0 26px rgba(111, 191, 79, 0.12);
}

.btn-primary:hover {
  background: #5aa63a;
  box-shadow:
    inset 2px 2px 0 #a6e07a,
    inset -2px -3px 0 #2f5f1c,
    0 4px 0 #041106,
    0 0 30px rgba(111, 191, 79, 0.18);
}

.btn-primary:active {
  box-shadow:
    inset 2px 2px 0 #78c04c,
    inset -2px -2px 0 #2f5f1c,
    0 1px 0 #041106;
}

.btn-ghost {
  color: var(--text);
  background: #283024;
  border-color: #161a12;
  box-shadow:
    inset 2px 2px 0 #46503e,
    inset -2px -3px 0 #181c14,
    0 4px 0 #030705;
}

.btn-ghost:hover { background: #333d2c; }

.btn-small {
  padding: 8px 12px;
  font-size: 11px;
}

.btn-small .icon { width: 14px; height: 14px; }

.btn-lg {
  padding: 14px 26px;
  font-size: 14px;
}

.btn-copy {
  padding: 9px 14px;
  font-size: 12px;
  color: #062014;
  background: #a6e07a;
  border-color: #2f5f1c;
  box-shadow:
    inset 2px 2px 0 #d2f7b0,
    inset -2px -3px 0 #5f9e35,
    0 3px 0 #04130c;
  text-shadow: none;
}

.btn-copy:hover { background: #b9ef92; }
.btn-copy:active { box-shadow: inset 2px 2px 0 #d2f7b0, inset -2px -2px 0 #5f9e35; }
.btn-copy .icon { width: 14px; height: 14px; }

.btn.is-copied {
  background: #e8c37a !important;
  border-color: #6b4a12 !important;
  color: #1d1404 !important;
  text-shadow: none;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 126px 20px 84px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-svg {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 48%, rgba(4, 10, 7, 0.62) 0%, rgba(4, 10, 7, 0.22) 52%, transparent 76%),
    radial-gradient(80% 60% at 50% 105%, #060a07 12%, rgba(7, 12, 10, 0.7) 40%, transparent 72%),
    linear-gradient(180deg, rgba(7, 12, 10, 0.72) 0%, transparent 24%, transparent 64%, #060a07 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(22px, 3.6vw, 42px);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.6);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--spirit);
  box-shadow: 0 0 0 2px rgba(95, 224, 176, 0.15), 0 0 12px rgba(95, 224, 176, 0.6);
  animation: status-pulse 2.8s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-lockup {
  --ts: clamp(3.6rem, 12.5vw, 11.2rem);
  --extend: clamp(42px, 6vw, 86px);
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 0.82;
}

.hero-lockup::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 10% -12% -22%;
  background: radial-gradient(46% 56% at 50% 58%, rgba(124, 201, 90, 0.20), rgba(232, 195, 122, 0.05) 42%, transparent 72%);
  filter: blur(10px);
  animation: title-breathe 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes title-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1.025); }
}

.hero-title {
  position: relative;
  z-index: 3;
  width: calc(var(--ts) * 3.9);
  margin: 0;
  line-height: 0;
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55)) saturate(1.05) brightness(1.04);
}


/* ---------------- escenario de criaturas ---------------- */

.ledge {
  position: absolute;
  z-index: 4;
  left: calc(var(--extend) * -1);
  bottom: -40px;
  width: calc(100% + var(--extend) * 2);
  height: 40px;
  pointer-events: none;
  background:
    linear-gradient(180deg, #79d477 0 4px, #55b45c 4px 9px, #463424 9px 27px, #5a4430 27px 32px, #33261a 32px 40px);
  border-top: 2px solid #8ee08a;
  border-bottom: 2px solid #241a12;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.ledge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(0, 0, 0, 0.2) 23px 26px),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.05) 5px 6px),
    radial-gradient(8px 4px at 18px 5px, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(10px 5px at 64% 6px, rgba(0, 0, 0, 0.18), transparent 70%);
}

.ledge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(35, 26, 18, 0.9) 0 6px, transparent 6px 18px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(35, 26, 18, 0.95) 34px 38px);
}

.critter-stage {
  position: absolute;
  z-index: 5;
  left: calc(var(--extend) * -1);
  width: calc(100% + var(--extend) * 2);
  bottom: 0;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.critter {
  position: absolute;
  bottom: 0;
  width: var(--size);
  pointer-events: none;
  will-change: left;
}

.critter-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.32));
}

.critter-chicken {
  --size: clamp(28px, calc(var(--ts) * 0.24), 48px);
  animation: parade-chicken 24s linear infinite;
  animation-delay: -6s;
}

.critter-chicken .critter-svg {
  animation: critter-bob 0.65s ease-in-out infinite;
}

.chicken-leg-a,
.chicken-leg-b,
.pig-leg,
.villager-leg-a,
.villager-leg-b {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}

.chicken-leg-a { animation: step-a 0.65s ease-in-out infinite; }
.chicken-leg-b { animation: step-b 0.65s ease-in-out infinite; }

.chicken-head {
  transform-box: fill-box;
  transform-origin: 12% 82%;
  animation: chicken-peck 24s linear infinite;
  animation-delay: -6s;
}

.critter-pig {
  --size: clamp(32px, calc(var(--ts) * 0.30), 60px);
  transform: scaleX(-1);
  animation: parade-pig 30s linear infinite;
  animation-delay: -15s;
}

.critter-pig .critter-svg {
  animation: critter-bob 0.55s ease-in-out infinite;
}

.pig-leg-a,
.pig-leg-c { animation: step-a 0.55s ease-in-out infinite; }
.pig-leg-b,
.pig-leg-d { animation: step-b 0.55s ease-in-out infinite; }

.pig-tail {
  transform-box: fill-box;
  transform-origin: 80% 50%;
  animation: pig-tail 1.1s ease-in-out infinite;
}

.pig-head {
  transform-box: fill-box;
  transform-origin: 8% 90%;
  animation: pig-sniff 30s ease-in-out infinite;
  animation-delay: -15s;
}

.critter-cat {
  --size: clamp(32px, calc(var(--ts) * 0.30), 60px);
  left: 6%;
}

.critter-cat .critter-svg {
  animation: cat-breathe 4.8s ease-in-out infinite;
}

.cat-tail {
  transform-box: fill-box;
  transform-origin: 85% 50%;
  animation: cat-tail 3.6s ease-in-out infinite;
}

.cat-head {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: cat-look 7s ease-in-out infinite;
}

.cat-paw {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: cat-paw 9s ease-in-out infinite;
}

.cat-heart {
  position: absolute;
  right: -2px;
  top: -11px;
  width: 9px;
  height: 9px;
  background: #f26a7a;
  clip-path: polygon(0 22%, 22% 0, 50% 24%, 78% 0, 100% 22%, 100% 54%, 50% 100%, 0 54%);
  opacity: 0;
  animation: cat-heart 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cat-heart {
  0%, 70% { opacity: 0; transform: translateY(4px) scale(0.7); }
  75% { opacity: 1; transform: translateY(0) scale(1); }
  86% { opacity: 0; transform: translateY(-12px) scale(1); }
  100% { opacity: 0; }
}

.villager-spark {
  position: absolute;
  left: 55%;
  top: -15px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #f5fff9;
  text-shadow: 1px 2px 0 #2b1a00, 0 0 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: villager-spark 32s ease-in-out infinite;
  animation-delay: -4s;
  pointer-events: none;
}

@keyframes villager-spark {
  0%, 28% { opacity: 0; transform: translateY(3px); }
  31%, 39% { opacity: 1; transform: translateY(-2px); }
  43%, 100% { opacity: 0; transform: translateY(-8px); }
}

.critter-villager {
  --size: clamp(32px, calc(var(--ts) * 0.30), 60px);
  animation: parade-villager 32s linear infinite;
  animation-delay: -4s;
}

.critter-villager .critter-svg {
  animation: critter-bob 0.8s ease-in-out infinite;
}

.villager-leg-a { animation: step-b 0.8s ease-in-out infinite; }
.villager-leg-b { animation: step-a 0.8s ease-in-out infinite; }

.villager-head {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: villager-look 32s ease-in-out infinite;
  animation-delay: -4s;
}

.villager-arm {
  transform-box: fill-box;
  transform-origin: 10% 10%;
  animation: villager-lantern 32s ease-in-out infinite;
  animation-delay: -4s;
}

.critter-slime {
  --size: clamp(24px, calc(var(--ts) * 0.20), 42px);
  animation:
    parade-slime 21s linear infinite,
    slime-hop 1.4s ease-in-out infinite;
  animation-delay: -18s, -0.3s;
}

.slime-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: slime-squash 1.4s ease-in-out infinite;
}

.creeper {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: -38px;
  width: clamp(36px, calc(var(--ts) * 0.32), 64px);
  animation: creeper-peek 18s ease-in-out infinite;
  pointer-events: none;
}

.creeper-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
}

.creeper-head {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: creeper-hiss 18s linear infinite;
}

.hiss {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #a8c0a8;
  opacity: 0;
  pointer-events: none;
}

.hiss-1 { left: 8px; top: 8px; animation: hiss-puff 18s linear infinite; }
.hiss-2 { left: 38px; top: 2px; animation: hiss-puff 18s linear infinite 0.2s; }
.hiss-3 { left: 30px; top: 18px; animation: hiss-puff 18s linear infinite 0.4s; }

.bee {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 70%;
  width: clamp(20px, calc(var(--ts) * 0.14), 30px);
  animation: bee-flight 16s ease-in-out infinite;
  pointer-events: none;
}

.bee-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3));
}

.bee-wing {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: wing-flutter 0.12s steps(2) infinite alternate;
}

.bee-wing-b { animation-delay: -0.06s; }

@keyframes critter-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes step-a {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
}

@keyframes step-b {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

@keyframes parade-chicken {
  0% { left: -8%; }
  8% { left: 2%; }
  22% { left: 24%; }
  28%, 35% { left: 26%; }
  48% { left: 50%; }
  62% { left: 76%; }
  74%, 100% { left: 108%; }
}

@keyframes chicken-peck {
  0%, 26% { transform: rotate(0deg); }
  28% { transform: rotate(18deg); }
  30% { transform: rotate(0deg); }
  32% { transform: rotate(18deg); }
  34%, 100% { transform: rotate(0deg); }
}

@keyframes parade-pig {
  0% { left: 108%; }
  12% { left: 94%; }
  30% { left: 68%; }
  38%, 44% { left: 62%; }
  58% { left: 36%; }
  72%, 100% { left: -8%; }
}

@keyframes pig-tail {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
}

@keyframes pig-sniff {
  0%, 36% { transform: rotate(0deg); }
  39% { transform: rotate(12deg); }
  43% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@keyframes parade-villager {
  0% { left: -8%; }
  9% { left: 6%; }
  26%, 42% { left: 28%; }
  55% { left: 54%; }
  70%, 100% { left: 108%; }
}

@keyframes villager-look {
  0%, 27% { transform: rotate(0deg); }
  30%, 39% { transform: rotate(-10deg); }
  42%, 100% { transform: rotate(0deg); }
}

@keyframes villager-lantern {
  0%, 28% { transform: rotate(0deg); }
  31%, 39% { transform: rotate(-24deg); }
  42%, 100% { transform: rotate(0deg); }
}

@keyframes cat-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes cat-tail {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(11deg); }
}

@keyframes cat-look {
  0%, 58% { transform: rotate(0deg); }
  66%, 76% { transform: rotate(-11deg); }
  84%, 100% { transform: rotate(0deg); }
}

@keyframes cat-paw {
  0%, 66% { transform: rotate(0deg); }
  72%, 78% { transform: rotate(-26deg); }
  84%, 100% { transform: rotate(0deg); }
}

@keyframes parade-slime {
  0% { left: 108%; }
  14% { left: 86%; }
  30% { left: 58%; }
  48% { left: 30%; }
  66% { left: 2%; }
  80%, 100% { left: -10%; }
}

@keyframes slime-hop {
  0%, 100% { transform: translateY(0); }
  42% { transform: translateY(-10px); }
  50% { transform: translateY(-11px); }
  78% { transform: translateY(0); }
}

@keyframes slime-squash {
  0%, 42%, 100% { transform: scale(1, 1); }
  46% { transform: scale(1.12, 0.86); }
  54% { transform: scale(0.9, 1.1); }
  68% { transform: scale(1.05, 0.95); }
  80% { transform: scale(1, 1); }
}

@keyframes creeper-peek {
  0%, 46% { transform: translateX(-18px); }
  54%, 65% { transform: translateX(0); }
  74%, 100% { transform: translateX(-18px); }
}

@keyframes creeper-hiss {
  0%, 52% { transform: rotate(0deg); }
  55% { transform: rotate(-4deg); }
  57% { transform: rotate(4deg); }
  59% { transform: rotate(-4deg); }
  61% { transform: rotate(4deg); }
  63% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

@keyframes hiss-puff {
  0%, 54% { opacity: 0; transform: translate(0, 0); }
  57% { opacity: 0.75; }
  68% { opacity: 0; transform: translate(6px, -8px); }
  100% { opacity: 0; }
}

@keyframes bee-flight {
  0% { left: 72%; top: 22%; }
  12% { left: 90%; top: -4%; }
  25% { left: 62%; top: -18%; }
  38% { left: 20%; top: 4%; }
  50% { left: 28%; top: 30%; }
  62% { left: 78%; top: 34%; }
  74% { left: 86%; top: 8%; }
  84% { left: 78%; top: -4%; }
  92%, 100% { left: 72%; top: 22%; }
}

@keyframes wing-flutter {
  from { transform: scaleY(1); }
  to { transform: scaleY(0.3); }
}


.tagline {
  margin: clamp(50px, 7vw, 68px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.4vw, 1.08rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.015em;
  color: #e4f1e8;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.55);
}

.tagline::before,
.tagline::after {
  content: "·";
  margin: 0 0.6em;
  color: var(--gold);
  opacity: 0.65;
}

.lead {
  max-width: 660px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.hero-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.ip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 9px 8px 14px;
  background: #0a110b;
  border: 2px solid #3a4f33;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.06),
    inset -1px -2px 0 rgba(0, 0, 0, 0.6),
    0 12px 30px rgba(0, 0, 0, 0.35);
}

.ip-label {
  padding-right: 12px;
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  white-space: nowrap;
}

.ip-address {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  text-shadow: 0 2px 0 #000;
  white-space: nowrap;
}

.ip-ports {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--muted-2);
  white-space: nowrap;
}

.ip-ports b { color: var(--muted); font-weight: 400; }
.ip-ports span { color: var(--line-strong); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: var(--muted);
  background: rgba(8, 18, 13, 0.62);
  border: 1px solid var(--line-soft);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill .icon { width: 14px; height: 14px; }

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.scroll-hint svg {
  width: 16px;
  height: 16px;
  color: var(--emerald);
  animation: hint-bounce 2.2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------------- secciones ---------------- */

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 122px) var(--pad);
}

.section-alt { isolation: isolate; }

.section-alt::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 18, 11, 0.72) 8%, rgba(10, 22, 16, 0.72) 92%, transparent 100%);
  border-top: 1px solid rgba(126, 190, 150, 0.08);
  border-bottom: 1px solid rgba(126, 190, 150, 0.08);
  pointer-events: none;
}

.section-alt > * { position: relative; z-index: 1; }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-mark {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(124, 201, 90, 0.12), 0 0 12px rgba(124, 201, 90, 0.45);
  transform: rotate(45deg);
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0.005em;
  color: var(--text);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  max-width: 690px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.section-note {
  max-width: none;
  margin: 24px 0 0;
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(10, 20, 15, 0.6);
  border-left: 3px solid var(--gold-dark);
  font-size: 0.84rem;
  line-height: 1.75;
  text-align: left;
}

.grid {
  display: grid;
  gap: 15px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, #101a11 0%, #0b120c 100%);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.035),
    inset -1px -2px 0 rgba(0, 0, 0, 0.45),
    inset 0 -3px 0 rgba(74, 50, 33, 0.42),
    0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #132014 0%, #0c140d 100%);
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.item-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.item-card .item-slot { margin-bottom: 15px; }

.item-copy { min-width: 0; }

.item-slot {
  position: relative;
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  background: #08100a;
  border: 2px solid #22362b;
  box-shadow:
    inset 2px 2px 0 rgba(0, 0, 0, 0.65),
    inset -2px -2px 0 rgba(255, 255, 255, 0.045);
}

.item-slot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(126, 190, 150, 0.06);
  pointer-events: none;
}

.item-slot .icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45));
}

.item-slot-sm {
  width: 46px;
  height: 46px;
}

.item-slot-sm .icon {
  width: 30px;
  height: 30px;
}

.card:hover .item-slot {
  border-color: #3e6b52;
  background: #0b1711;
  box-shadow:
    inset 2px 2px 0 rgba(0, 0, 0, 0.65),
    inset -2px -2px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(124, 201, 90, 0.08);
}

.fact-panel {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
  background: rgba(8, 14, 8, 0.68);
  border: 2px solid var(--line);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.fact {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 18px;
  border-right: 1px solid var(--line-soft);
}

.fact:last-child { border-right: 0; }

.fact-label {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.fact-value {
  font-size: 13px;
  color: var(--text);
}

/* ---------------- mundo ---------------- */

.feature-grid { margin-bottom: 22px; }

.feature .item-slot-sm { margin-bottom: 14px; }

.biomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.biome {
  position: relative;
  min-height: 216px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, #0f2018 0%, #0a110b 100%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.035), 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.biome:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.biome::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 16px);
  pointer-events: none;
}

.biome::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  opacity: 0.3;
  background:
    linear-gradient(180deg, transparent 0 4px, rgba(0, 0, 0, 0.4) 4px 8px, transparent 8px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0 24px, transparent 24px 26px);
  pointer-events: none;
}

.biome-main {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(111, 191, 79, 0.26), transparent 60%),
    linear-gradient(180deg, #13261a 0%, #0a110b 100%);
}

.biome-fire {
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(240, 122, 36, 0.22), transparent 60%),
    linear-gradient(180deg, #251510 0%, #0d0d0a 100%);
}

.biome-end {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(176, 108, 232, 0.2), transparent 62%),
    linear-gradient(180deg, #171128 0%, #0a0b12 100%);
}

.biome-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
}

.biome-tag {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.biome h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.biome p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 300px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

/* ---------------- guardianes ---------------- */

.guardian-grid { align-items: stretch; }

.tooltip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(74, 32, 112, 0.32), transparent 60%),
    rgba(10, 6, 18, 0.94);
  border: 2px solid #3b1d6e;
  box-shadow:
    inset 0 0 0 1px #1a0b33,
    inset 2px 2px 0 rgba(176, 108, 232, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.32);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tooltip-card::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(176, 108, 232, 0.14);
  pointer-events: none;
}

.tooltip-card:hover {
  transform: translateY(-3px);
  border-color: #6b3fb0;
  box-shadow:
    inset 0 0 0 1px #2a1450,
    inset 2px 2px 0 rgba(176, 108, 232, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(122, 70, 200, 0.1);
}

.tooltip-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.tooltip-head .item-slot {
  border-color: #33204f;
  background: #0c0814;
}

.tooltip-tag {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.tooltip-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f4eaff;
}

.tooltip-lore {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #c8bcd8;
  font-size: 0.83rem;
  line-height: 1.8;
}

.tooltip-hint {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: auto 0 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(176, 108, 232, 0.16);
  font-size: 10px;
  color: #9d8fb3;
}

.hint-key {
  padding: 1px 5px;
  border: 1px solid rgba(232, 195, 122, 0.3);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.tooltip-cmd {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 2px;
  padding: 4px 8px;
  color: #b7ffdc;
  background: rgba(124, 201, 90, 0.06);
  border: 1px solid rgba(124, 201, 90, 0.22);
  font-size: 11px;
  white-space: nowrap;
}

/* ---------------- conectar ---------------- */

.section-connect .section-head { margin-bottom: 30px; }

.servers {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 17px;
  background: linear-gradient(180deg, rgba(24, 34, 29, 0.96), rgba(11, 18, 14, 0.96));
  border: 2px solid #3c4b34;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    inset -1px -2px 0 rgba(0, 0, 0, 0.45),
    0 12px 30px rgba(0, 0, 0, 0.24);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.server-card:hover { border-color: #4c715a; background: linear-gradient(180deg, rgba(28, 40, 34, 0.98), rgba(12, 20, 16, 0.98)); }

.server-icon {
  width: 62px;
  height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  background: #09110b;
  border: 2px solid #2c4436;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6), inset -2px -2px 0 rgba(255, 255, 255, 0.04);
}

.server-icon .icon { width: 44px; height: 44px; }

.server-body { flex: 1; min-width: 0; }

.server-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.server-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.server-name span {
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--gold-2);
  border: 1px solid rgba(232, 195, 122, 0.24);
  vertical-align: 1px;
}

.server-edition {
  font-size: 9px;
  color: var(--muted-2);
  white-space: nowrap;
}

.server-motd { margin: 0 0 9px; }

.server-motd span {
  display: block;
  color: var(--grass-light);
  font-size: 11px;
  line-height: 1.5;
}

.server-motd small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.address-row code {
  flex: 1 1 auto;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(5, 10, 8, 0.62);
  border: 1px dashed var(--line-strong);
  font-size: 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.address-row code.flash {
  color: var(--emerald);
  border-color: var(--emerald);
  text-shadow: 0 0 16px rgba(124, 201, 90, 0.55);
}

.address-fallback {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 9px;
}

.address-fallback code { font-size: 0.95em; }

.server-ping {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: none;
  height: 16px;
  padding-bottom: 1px;
}

.server-ping i {
  display: block;
  width: 3px;
  background: #4aa45e;
  box-shadow: 0 0 5px rgba(111, 191, 79, 0.3);
}

.server-ping i:nth-child(1) { height: 4px; }
.server-ping i:nth-child(2) { height: 7px; }
.server-ping i:nth-child(3) { height: 10px; }
.server-ping i:nth-child(4) { height: 13px; }
.server-ping i:nth-child(5) { height: 16px; }

.connect-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.step-card {
  position: relative;
  padding: 20px;
  background: rgba(9, 17, 13, 0.72);
  border: 2px solid var(--line);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.03), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.step-num {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}

.step-card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.78;
}

.note {
  margin: 22px 0 0;
  padding: 13px 16px;
  color: var(--muted);
  background: rgba(232, 195, 122, 0.04);
  border-left: 3px solid var(--gold-dark);
  font-size: 0.82rem;
  line-height: 1.75;
}

/* ---------------- registro / libro ---------------- */

.book {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px;
  gap: 0;
  background:
    linear-gradient(90deg, #2a1c11, #4a3320 8%, #4a3320 92%, #2a1c11),
    #3b2818;
  border: 3px solid #1c120a;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(232, 195, 122, 0.18);
}

.book-page {
  position: relative;
  padding: clamp(24px, 3.2vw, 38px);
  color: #46321e;
  background:
    linear-gradient(90deg, rgba(120, 90, 50, 0.14), transparent 7%, transparent 93%, rgba(120, 90, 50, 0.14)),
    radial-gradient(120% 100% at 50% 0%, #f2e7cf, #e7d8b8 65%, #ddcaa4 100%);
  font-size: 0.85rem;
  line-height: 1.85;
}

.book-page-left { border-right: 1px solid rgba(80, 54, 30, 0.35); }

.book-page::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(120, 90, 50, 0.16);
  pointer-events: none;
}

.book-spine {
  position: absolute;
  z-index: 2;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 12px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(40, 26, 14, 0.6), rgba(80, 54, 30, 0.2) 45%, rgba(40, 26, 14, 0.55));
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.book-eyebrow {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(120, 90, 50, 0.4);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6428;
}

.book-page h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2e1f10;
}

.book-page p {
  margin: 0 0 11px;
  color: #4a3520;
}

.book-page blockquote {
  margin: 16px 0 10px;
  padding: 10px 14px;
  border-left: 3px solid #b98c5a;
  background: rgba(120, 90, 50, 0.06);
  color: #6b4a2f;
  font-size: 0.82rem;
  line-height: 1.75;
}

.book-sign {
  margin: 0 !important;
  text-align: right;
  font-size: 0.74rem;
  color: #8a6428 !important;
}

.book-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.book-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(120, 90, 50, 0.32);
}

.book-steps li:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }

.book-steps .step-num {
  margin: 0;
  font-size: 1.2rem;
  color: #8a6428;
  text-shadow: none;
}

.book-steps h4 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2e1f10;
}

.book-steps p {
  margin: 0 0 7px;
  font-size: 0.78rem;
  line-height: 1.75;
}

.book-page code {
  display: inline-block;
  padding: 2px 7px;
  color: #f2e7cf;
  background: #3b2818;
  border: 1px solid #2a1c11;
  font-size: 0.75rem;
}

.book-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0 !important;
  padding-top: 12px;
  border-top: 1px dashed rgba(120, 90, 50, 0.4);
  font-size: 0.72rem !important;
  color: #6b4a2f !important;
}

.book-note .icon { width: 16px; height: 16px; }

/* ---------------- reglas / carteles ---------------- */

.signs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.sign {
  --tilt: -0.35deg;
  position: relative;
  grid-column: span 2;
  padding: 22px;
  color: #2f2415;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(0deg, rgba(80, 50, 25, 0.12) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #c79e6a 0%, #b98c5a 55%, #a87c4d 100%);
  border: 3px solid #4a3221;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.13),
    inset 0 -8px 0 rgba(74, 50, 33, 0.16),
    0 12px 26px rgba(0, 0, 0, 0.28);
  transform: rotate(var(--tilt));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sign:nth-child(even) { --tilt: 0.35deg; }

.sign:nth-child(4) { grid-column: 2 / span 2; }
.sign:nth-child(5) { grid-column: 4 / span 2; }

.sign:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.16),
    inset 0 -8px 0 rgba(74, 50, 33, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.36);
}

.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 4px;
  height: 4px;
  background: #4a3221;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sign::before { left: 8px; }
.sign::after { right: 8px; }

.sign-num {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #5b3a20;
  opacity: 0.9;
}

.sign h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
  color: #24180c;
}

.sign p {
  margin: 0;
  color: #4a3221;
  font-size: 0.76rem;
  line-height: 1.75;
}

/* ---------------- FAQ / chat ---------------- */

.chat {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(5, 11, 8, 0.9);
  border: 2px solid #33472f;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.035),
    inset -1px -2px 0 rgba(0, 0, 0, 0.5),
    0 22px 50px rgba(0, 0, 0, 0.35);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(16, 30, 23, 0.9);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.chat-dot {
  width: 6px;
  height: 6px;
  background: var(--spirit);
  box-shadow: 0 0 8px rgba(95, 224, 176, 0.7);
}

.chat-channel {
  margin-left: auto;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.chat-body { padding: 6px 16px 10px; }

.chat-line {
  border-bottom: 1px dashed rgba(126, 190, 150, 0.13);
  padding: 9px 0;
}

.chat-line:last-of-type { border-bottom: 0; }

.chat-line summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  list-style: none;
  color: #dcebe1;
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
  transition: color 0.15s ease;
}

.chat-line summary::-webkit-details-marker { display: none; }

.chat-line summary:hover { color: var(--emerald); }

.chat-line summary::after {
  content: "+";
  margin-left: auto;
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.chat-line[open] summary::after { transform: rotate(45deg); }

.chat-prefix { color: var(--gold); }

.chat-answer {
  margin: 8px 0 2px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  color: #a4b6a9;
  font-size: 11.5px;
  line-height: 1.8;
}

.chat-answer code { font-size: 0.95em; }

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  color: #6f8679;
  font-size: 10.5px;
}

.chat-caret { color: var(--spirit); }

.chat-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 1px;
  background: var(--spirit);
  opacity: 0.7;
  animation: cursor-blink 1.1s steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 49% { opacity: 0.7; }
  50%, 100% { opacity: 0; }
}

/* ---------------- CTA final ---------------- */

.final-section { padding-top: clamp(30px, 5vw, 60px); }

.cta-panel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 66px) clamp(22px, 5vw, 54px) clamp(38px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 75% at 50% 0%, rgba(124, 201, 90, 0.1), transparent 62%),
    linear-gradient(180deg, #101b11 0%, #0a110b 100%);
  border: 2px solid #3d5434;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    0 26px 60px rgba(0, 0, 0, 0.35);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.cta-grass {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background:
    repeating-linear-gradient(90deg, #7cc95a 0 16px, #5aa93f 16px 24px, #7fd45e 24px 32px);
  border-bottom: 2px solid #2f6d30;
}

.cta-panel .eyebrow { justify-content: center; position: relative; z-index: 1; }

.cta-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.cta-panel > p {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.cta-domain {
  position: relative;
  z-index: 1;
  margin-top: 20px !important;
  font-size: 10px !important;
  color: var(--muted-2) !important;
}

.cta-domain span {
  margin-right: 8px;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 11px;
}

/* ---------------- pie ---------------- */

.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 24px var(--pad) 34px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 6, 0.85) 30%, #040705 100%);
  border-top: 1px solid var(--line);
}

.hotbar {
  display: flex;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 4px;
  background: rgba(5, 10, 8, 0.8);
  border: 2px solid #1b2822;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hotbar-slot {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #08100a;
  border: 2px solid #26352d;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.55), inset -2px -2px 0 rgba(255, 255, 255, 0.035);
}

.hotbar-slot .icon { width: 24px; height: 24px; }

.hotbar-slot.is-selected {
  border-color: #e8e2d0;
  box-shadow:
    0 0 0 2px rgba(232, 226, 208, 0.25),
    inset 2px 2px 0 rgba(0, 0, 0, 0.45),
    inset -2px -2px 0 rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(124, 201, 90, 0.24));
}

.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-sub {
  margin: 1px 0 0;
  color: var(--muted-2);
  font-size: 9px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding-top: 9px;
  font-size: 10px;
}

.footer-nav a { color: var(--muted-2); transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--emerald); }

.footer-meta { text-align: right; }

.footer-domain { margin: 0 0 3px; }

.footer-domain a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold-2);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.footer-domain a:hover { border-color: var(--gold-2); }

.footer-small {
  margin: 0;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.7;
}

.footer-made { margin-top: 3px; color: #4f6256; }

.to-top {
  position: absolute;
  right: var(--pad);
  bottom: 26px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #18241e;
  border: 2px solid #0e1612;
  box-shadow: inset 2px 2px 0 #36483e, inset -2px -2px 0 #0b100d, 0 3px 0 #020403;
}

.to-top svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.to-top:hover { color: var(--emerald); }

/* ---------------- aviso / logro ---------------- */

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(390px, calc(100vw - 36px));
  padding: 11px 12px;
  background: linear-gradient(180deg, #182218, #0e140b);
  border: 2px solid #d9cfa8;
  box-shadow:
    inset 0 0 0 2px #3d3a2c,
    0 18px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast[hidden] { display: none; }

.toast.is-visible { transform: none; opacity: 1; }

.toast-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: #08100a;
  border: 2px solid #3b5142;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.55);
}

.toast-icon .icon { width: 28px; height: 28px; }

.toast-copy { min-width: 0; }

.toast-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.toast-msg {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.55;
}

.toast-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted-2);
}

.toast-close:hover { color: var(--text); border-color: var(--line); }
.toast-close .icon { width: 12px; height: 12px; }

/* ---------------- reveal ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 1040px) {
  .nav { gap: 13px; font-size: 11px; }
  .brand-chip { display: none; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-meta { text-align: center; }
  .footer-nav { padding-top: 0; }
  .to-top { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: rgba(6, 13, 10, 0.98);
    border: 2px solid var(--line-strong);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav.open { opacity: 1; transform: none; pointer-events: auto; }

  .nav a { padding: 11px 10px; font-size: 13px; }
  .nav a:hover { background: rgba(124, 201, 90, 0.06); }
  .nav a.is-active::after { display: none; }
  .nav-cta { margin-top: 4px; text-align: center; }

  .hero { padding-top: 108px; }
  .scroll-hint { display: none; }

  .book { grid-template-columns: 1fr; max-width: 620px; }
  .book-page-left { border-right: 0; border-bottom: 1px solid rgba(80, 54, 30, 0.35); }
  .book-spine { display: none; }

  .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sign { grid-column: auto !important; }
  .sign:last-child { grid-column: 1 / -1 !important; }
}

@media (max-width: 720px) {
  .hero-kicker { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .biomes { grid-template-columns: 1fr; }
  .biome { min-height: 180px; }

  .hero { padding: 88px 16px 62px; }
  .hero-lockup {
    --ts: clamp(3.2rem, 19vw, 5.2rem);
    --extend: 30px;
  }
  .hero-title { width: calc(var(--ts) * 4.4); }
  .hero-kicker {
    margin-bottom: 36px;
    font-size: 7.5px;
    letter-spacing: 0.11em;
  }
  .ledge {
    left: calc(var(--extend) * -1);
    width: calc(100% + var(--extend) * 2);
    height: 32px;
    bottom: -32px;
    background:
      linear-gradient(180deg, #79d477 0 3px, #55b45c 3px 8px, #463424 8px 21px, #5a4430 21px 26px, #33261a 26px 32px);
  }
  .ledge::after { height: 6px; bottom: -6px; }
  .creeper { right: -26px; }
  .hiss-2 { left: 26px; top: 0; }
  .hiss-3 { left: 22px; top: 14px; }

  .tagline {
    margin-top: 48px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    letter-spacing: 0;
    text-transform: none;
  }
  .tagline::before,
  .tagline::after { display: none; }
  .lead { font-size: 0.82rem; line-height: 1.8; }
  .ip-card {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
  }
  .ip-label {
    width: 100%;
    padding: 0 0 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .ip-address { font-size: 16px; }
  .ip-ports { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 150px; }
  .pill { font-size: 9px; }
  .pill .icon { width: 12px; height: 12px; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head h2 { font-size: clamp(1.35rem, 5.6vw, 1.8rem); }
  .item-card { padding: 18px; }
  .fact { flex: 1 1 50%; border-bottom: 1px solid var(--line-soft); }
  .fact:nth-child(even) { border-right: 0; }

  .server-card { flex-wrap: wrap; }
  .server-icon { width: 52px; height: 52px; }
  .server-icon .icon { width: 36px; height: 36px; }
  .server-ping { display: none; }
  .server-top { align-items: flex-start; flex-direction: column; gap: 1px; }
  .address-row { flex-direction: column; align-items: stretch; }
  .address-row .btn { width: 100%; }

  .book { padding: 10px; }
  .book-page { padding: 22px 18px; }

  .signs { grid-template-columns: 1fr; }
  .sign:last-child { grid-column: auto !important; }
  .sign { transform: none; }

  .footer-inner { gap: 16px; }
  .hotbar { gap: 2px; padding: 3px; }
  .hotbar-slot { width: 31px; height: 31px; }
  .hotbar-slot .icon { width: 19px; height: 19px; }

  .toast { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

@media (max-width: 430px) {
  .hero-lockup {
    --ts: clamp(3rem, 19vw, 4.6rem);
    --extend: 24px;
  }
  .creeper { width: 32px; right: -22px; }
  .bee { width: 18px; }
  .hero-kicker {
    max-width: 280px;
    line-height: 1.8;
  }
  .tagline { font-size: 0.74rem; }
  .tagline::before, .tagline::after { margin: 0 0.35em; }
  .lead { font-size: 0.79rem; }
  .pill-row { gap: 5px; }
  .pill { padding: 4px 8px; }
  .fact { flex-basis: 100%; border-right: 0; }
  .chat-body { padding: 4px 12px 10px; }
  .chat-line summary { font-size: 11px; }
  .chat-answer { font-size: 10.5px; }
  .hotbar-slot { width: 27px; height: 27px; }
  .hotbar-slot .icon { width: 17px; height: 17px; }
}

/* ---------------- movimiento reducido ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  #motes { display: none; }
  .critter, .critter *, .creeper, .creeper *, .bee, .bee * { animation: none !important; }
  .critter-cat { left: 6%; }
  .critter-chicken { left: 19%; }
  .critter-villager { left: 39%; }
  .critter-pig { left: 63%; }
  .critter-slime { left: 81%; }
  .creeper { transform: translateX(0); }
  .bee { left: 58%; top: -12%; }
  .chicken-head { transform: rotate(16deg); }
  .pig-head { transform: rotate(10deg); }
  .villager-head { transform: rotate(-10deg); }
  .villager-arm { transform: rotate(-25deg); }
  .cat-paw { transform: rotate(-20deg); }
  .cat-heart,
  .villager-spark { opacity: 1 !important; transform: none !important; }
  .hiss { display: none; }
}

/* ---------------- modo estático (capturas) ---------------- */

.static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.static .status-dot,
.static .hero-lockup::before,
.static .chat-cursor,
.static .critter,
.static .critter *,
.static .creeper,
.static .creeper *,
.static .bee,
.static .bee * { animation: none !important; }

.static .critter-cat { left: 6%; }
.static .critter-chicken { left: 19%; }
.static .critter-villager { left: 39%; }
.static .critter-pig { left: 63%; }
.static .critter-slime { left: 81%; }
.static .creeper { transform: translateX(0); }
.static .bee { left: 58%; top: -12%; }
.static .chicken-head { transform: rotate(16deg); }
.static .pig-head { transform: rotate(10deg); }
.static .villager-head { transform: rotate(-10deg); }
.static .villager-arm { transform: rotate(-25deg); }
.static .cat-paw { transform: rotate(-20deg); }
.static .cat-heart,
.static .villager-spark { opacity: 1 !important; animation: none !important; }
.static .hiss { display: none; }

/* ---------------- sello del libro ---------------- */

.book-seal {
  width: 76px;
  height: 76px;
  margin: 24px auto 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  color: #7a5626;
  border: 2px solid rgba(122, 86, 38, 0.55);
  border-radius: 50%;
  background: rgba(122, 86, 38, 0.07);
  box-shadow: inset 0 0 0 2px rgba(122, 86, 38, 0.15);
  transform: rotate(-4deg);
  opacity: 0.9;
}

.book-seal .icon { width: 30px; height: 30px; }

.book-seal span {
  font-family: var(--font-display);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #7a5626;
}

/* ---------------- brillo del hero ---------------- */

.hero-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -12% -8%;
  pointer-events: none;
  background: radial-gradient(48% 54% at 50% 58%, rgba(124, 201, 90, 0.08), transparent 72%);
}

/* ---------------- nubes del hero ---------------- */

.scene-svg .cloud-a { animation: cloud-drift 90s linear infinite; }
.scene-svg .cloud-b { animation: cloud-drift 130s linear infinite reverse; }

@keyframes cloud-drift {
  from { transform: translateX(-26px); }
  to { transform: translateX(46px); }
}

/* ---------------- 404 ---------------- */

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 20px 60px;
}

.not-found-panel {
  position: relative;
  width: min(640px, 100%);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 29, 24, 0.96), rgba(9, 17, 13, 0.96));
  border: 2px solid var(--line);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 70px rgba(0, 0, 0, 0.45);
}

.not-found-panel > .eyebrow { justify-content: center; }

.not-found-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 15vw, 8.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #d8f9b2;
  background: linear-gradient(180deg, #f4ffe6 0%, #d5f7a4 26%, #a6e07a 52%, #64b23f 74%, #2f6a22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px #0a1a08;
  paint-order: stroke fill;
  filter:
    drop-shadow(0 3px 0 #2f5f1c) drop-shadow(0 3px 0 #264c16)
    drop-shadow(0 3px 0 #1d3a10) drop-shadow(0 3px 0 #142a0a)
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.not-found-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.not-found-panel .lead { max-width: 470px; margin: 0 auto 24px; }

.not-found-panel .hero-actions { margin-top: 0; }

.not-found-ips {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 9px;
}

.not-found-ips span { color: var(--gold-2); }

/* ---------------- respaldo si no hay recorte de fondo ---------------- */

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .not-found-title {
    color: #a6e07a;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/* ---------------- impresión ---------------- */

@media print {
  body { background: #fff; color: #111; }
  .site-header, .scroll-hint, #motes, .toast, .hero-scene, .hero-vignette, .grain, .sky-glow { display: none !important; }
  .hero { min-height: auto; padding: 20px; }
  .hero-title, .not-found-title { color: #0a5c40; background: none; -webkit-text-fill-color: currentColor; filter: none; }
  .card, .tooltip-card, .server-card, .book, .sign, .chat, .cta-panel { break-inside: avoid; }
}

/* En pantallas muy estrechas dejamos el título despejado */
@media (max-width: 380px) {
  .critter-pig,
  .critter-villager,
  .critter-slime { display: none; }
}

/* ---------------- controles de tema ---------------- */

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  margin-left: auto;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  background: #2a332e;
  border: 2px solid #141b17;
  border-radius: 2px;
  box-shadow: inset 2px 2px 0 #4c5a51, inset -2px -2px 0 #101512;
  color: var(--text);
  transition: background 0.15s ease, transform 0.1s ease;
}

.theme-toggle:hover { background: #344139; }
.theme-toggle:active { transform: translateY(2px); }
.theme-toggle .theme-icon { width: 18px; height: 18px; display: none; }
.theme-toggle .theme-icon-moon { display: block; }
html[data-theme="night"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="night"] .theme-toggle .theme-icon-sun { display: block; }

.hero-sun {
  display: none;
  position: absolute;
  z-index: 2;
  top: 10%;
  right: 9%;
  width: clamp(72px, 8vw, 118px);
  aspect-ratio: 1;
  background: linear-gradient(180deg, #fff8c9 0%, #ffe066 55%, #f4b52b 100%);
  border: 4px solid #d99a20;
  box-shadow:
    0 0 70px 26px rgba(255, 224, 120, 0.55),
    inset 0 0 0 4px rgba(255, 255, 255, 0.25);
  pointer-events: none;
  image-rendering: pixelated;
}

.hero-sun::before {
  content: "";
  position: absolute;
  inset: 16%;
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="day"] .hero-sun { display: block; }

/* ================= TEMA DÍA ================= */

html[data-theme="day"] {
  color-scheme: light;
  --bg: #f6f3e7;
  --bg-soft: #edf3e3;
  --bg-panel: #fbf8ee;
  --panel: #faf6ea;
  --panel-2: #f1ebdc;
  --panel-3: #e7e1cf;
  --line: #d3cab3;
  --line-soft: rgba(80, 100, 60, 0.14);
  --line-strong: #a3b58c;
  --grass: #4f8f2f;
  --grass-light: #6fb447;
  --grass-dark: #2f5f1c;
  --emerald: #3f8f3a;
  --emerald-soft: #4f9a5a;
  --emerald-dark: #1f6a30;
  --spirit: #1f8a6a;
  --gold: #9a6b28;
  --gold-2: #8a6428;
  --gold-dark: #6f4b18;
  --text: #22301d;
  --muted: #55634b;
  --muted-2: #65725a;
  --purple: #6b4a9e;
  --red: #b83b48;
}

html[data-theme="day"] body {
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 50% -14%, rgba(124, 201, 90, 0.18), transparent 62%),
    radial-gradient(900px 600px at 92% 18%, rgba(232, 195, 122, 0.16), transparent 65%),
    linear-gradient(180deg, #f8f5eb 0%, #edf3e3 42%, #f8f5eb 100%);
}

html[data-theme="day"] body::before {
  background-image:
    linear-gradient(rgba(90, 110, 60, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 110, 60, 0.045) 1px, transparent 1px);
}

html[data-theme="day"] .sky-glow {
  background:
    radial-gradient(520px 320px at 14% 62%, rgba(124, 201, 90, 0.12), transparent 70%),
    radial-gradient(600px 360px at 86% 30%, rgba(232, 195, 122, 0.12), transparent 72%);
}

html[data-theme="day"] .grain { opacity: 0.22; }
html[data-theme="day"] #motes { opacity: 0.38; }
html[data-theme="day"] ::selection { background: rgba(79, 143, 47, 0.22); color: #16210f; }
html[data-theme="day"] :focus-visible { outline-color: #7a5a1a; }
html[data-theme="day"] { scrollbar-color: #b7ad96 #f0ebdc; }
html[data-theme="day"] ::-webkit-scrollbar-track { background: #f0ebdc; }
html[data-theme="day"] ::-webkit-scrollbar-thumb { background: #b7ad96; border-color: #f0ebdc; }
html[data-theme="day"] ::-webkit-scrollbar-thumb:hover { background: #9aad82; }

/* cabecera */
html[data-theme="day"] .site-header {
  background: linear-gradient(180deg, rgba(250, 247, 238, 0.97), rgba(250, 247, 238, 0.78) 76%, transparent);
}
html[data-theme="day"] .site-header.is-scrolled {
  background: rgba(250, 247, 238, 0.97);
  border-bottom-color: var(--line);
}
html[data-theme="day"] .brand-text { color: var(--text); text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55); }
html[data-theme="day"] .brand-chip {
  color: #7a5a1e;
  border-color: rgba(154, 107, 40, 0.35);
  background: rgba(232, 195, 122, 0.2);
}
html[data-theme="day"] .nav a { color: var(--muted); }
html[data-theme="day"] .nav a:hover { color: var(--text); }
html[data-theme="day"] .nav a.is-active { color: var(--grass-dark); }
html[data-theme="day"] .nav-toggle {
  background: #efe9d9;
  border-color: #b9af98;
  box-shadow: inset 2px 2px 0 #fffdf5, inset -2px -2px 0 #c4b9a0;
}
html[data-theme="day"] .nav-toggle span { background: var(--text); }
html[data-theme="day"] .theme-toggle {
  background: #efe9d9;
  border-color: #b9af98;
  box-shadow: inset 2px 2px 0 #fffdf5, inset -2px -2px 0 #c4b9a0;
}
html[data-theme="day"] .theme-toggle:hover { background: #f7f2e5; }
html[data-theme="day"] .theme-toggle:active { box-shadow: inset 2px 2px 0 #c4b9a0, inset -2px -2px 0 #fffdf5; }
html[data-theme="day"] .theme-toggle .theme-icon-moon path { fill: #4f5f46; }
html[data-theme="day"] .theme-toggle .theme-icon-moon rect { fill: #7a5a2a; }
html[data-theme="day"] .xp-bar { background: rgba(90, 100, 70, 0.13); }
html[data-theme="day"] .xp-bar span {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px 11px),
    linear-gradient(90deg, #4f8f2f, #8fc95a 60%, #b8873a);
  box-shadow: 0 0 8px rgba(79, 143, 47, 0.35);
}

@media (max-width: 860px) {
  html[data-theme="day"] .nav {
    background: linear-gradient(180deg, #fbf8ee, #f4efe1);
    border-color: var(--line);
    box-shadow: 0 18px 34px rgba(70, 70, 45, 0.18);
  }
  html[data-theme="day"] .nav a { color: var(--muted); border-color: rgba(90, 100, 70, 0.12); }
  html[data-theme="day"] .nav a:hover { background: #f0ebdc; color: var(--text); }
  html[data-theme="day"] .nav a.is-active { color: var(--grass-dark); background: #edf5e2; }
}

/* hero */
html[data-theme="day"] .hero {
  background: linear-gradient(180deg, #7cc9ef 0%, #a9ddf4 28%, #d7edf1 55%, #eef3df 80%, #f6f3e7 100%);
}
html[data-theme="day"] .hero-vignette {
  background:
    radial-gradient(58% 55% at 50% 45%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 24%, transparent 62%, #f6f3e7 100%);
}
html[data-theme="day"] .scene-svg { filter: brightness(1.24) saturate(1.06); opacity: 1; }
html[data-theme="day"] .scene-svg .moon,
html[data-theme="day"] .scene-svg .moon-glow,
html[data-theme="day"] .scene-svg .stars { display: none; }
html[data-theme="day"] .scene-svg .cloud-a,
html[data-theme="day"] .scene-svg .cloud-b { fill: #ffffff; opacity: 0.62; }
html[data-theme="day"] .hero-kicker {
  color: #7a5a1e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="day"] .status-dot {
  background: var(--spirit);
  box-shadow: 0 0 0 2px rgba(31, 138, 106, 0.14), 0 0 12px rgba(31, 138, 106, 0.55);
}
html[data-theme="day"] .tagline {
  color: #26351f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}
html[data-theme="day"] .tagline::before,
html[data-theme="day"] .tagline::after { color: #8a5a1e; }
html[data-theme="day"] .lead { color: #45583d; }
html[data-theme="day"] .hero-lockup::before {
  background: radial-gradient(46% 56% at 50% 58%, rgba(255, 255, 255, 0.34), rgba(232, 195, 122, 0.1) 42%, transparent 72%);
}
html[data-theme="day"] .wordmark {
  filter: drop-shadow(0 18px 26px rgba(40, 55, 25, 0.32)) saturate(1.02) brightness(1.02);
}
html[data-theme="day"] .ledge { box-shadow: 0 18px 40px rgba(70, 80, 50, 0.24); }
html[data-theme="day"] .ip-card {
  background: rgba(255, 253, 246, 0.92);
  border-color: #c9b98f;
  box-shadow:
    inset 1px 1px 0 #fff, inset -1px -2px 0 #d8c9a8,
    0 12px 30px rgba(70, 80, 50, 0.14);
}
html[data-theme="day"] .ip-label { color: #7a5a1e; border-right-color: #d8c9a8; }
html[data-theme="day"] .ip-address { color: #26351f; text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5); }
html[data-theme="day"] .ip-ports { color: #5f6b55; }
html[data-theme="day"] .ip-ports b { color: #3f6b2f; }
html[data-theme="day"] .pill {
  background: rgba(255, 253, 246, 0.72);
  border-color: #cfc6b0;
  color: #4e5e44;
}
html[data-theme="day"] .scroll-hint { color: #5f6f55; }
html[data-theme="day"] .scroll-hint svg { color: #3f6b2f; }

/* secciones, títulos y tarjetas */
html[data-theme="day"] .section-head h2 { color: var(--text); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
html[data-theme="day"] .section-head p { color: var(--muted); }
html[data-theme="day"] .eyebrow { color: var(--gold); }
html[data-theme="day"] .eyebrow-mark {
  background: var(--grass);
  box-shadow: 0 0 0 2px rgba(79, 143, 47, 0.15), 0 0 12px rgba(79, 143, 47, 0.35);
}
html[data-theme="day"] .section-alt::before {
  background: linear-gradient(180deg, transparent 0%, rgba(225, 238, 210, 0.7) 8%, rgba(225, 238, 210, 0.7) 92%, transparent 100%);
  border-color: rgba(80, 100, 60, 0.12);
}
html[data-theme="day"] .card {
  background: linear-gradient(180deg, #fffdf6, #f8f3e6);
  border-color: #d3cab3;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -2px 0 rgba(90, 80, 55, 0.14),
    inset 0 -3px 0 rgba(138, 90, 52, 0.22),
    0 14px 30px rgba(80, 80, 50, 0.1);
}
html[data-theme="day"] .card:hover { background: #fffef9; border-color: #a3b58c; }
html[data-theme="day"] .card h3 { color: var(--text); }
html[data-theme="day"] .card p { color: var(--muted); }
html[data-theme="day"] .item-slot {
  background: #e9e3d2;
  border-color: #c3b99f;
  box-shadow: inset 2px 2px 0 rgba(90, 80, 55, 0.18), inset -2px -2px 0 rgba(255, 255, 255, 0.7);
}
html[data-theme="day"] .item-slot::after { border-color: rgba(90, 100, 60, 0.1); }
html[data-theme="day"] .card:hover .item-slot {
  border-color: #a3b58c;
  background: #f2eddf;
  box-shadow: inset 2px 2px 0 rgba(90, 80, 55, 0.16), inset -2px -2px 0 rgba(255, 255, 255, 0.8);
}
html[data-theme="day"] .fact-panel {
  background: #fbf7e9;
  border-color: #d3cab3;
  box-shadow: inset 1px 1px 0 #fff, 0 12px 28px rgba(80, 80, 50, 0.1);
}
html[data-theme="day"] .fact { border-right-color: rgba(90, 100, 60, 0.13); }
html[data-theme="day"] .fact-label { color: var(--muted-2); }
html[data-theme="day"] .fact-value { color: var(--text); }
html[data-theme="day"] .section-note {
  background: #fbf7e9;
  border-left-color: #b8873a;
  color: var(--muted);
}

/* biomas */
html[data-theme="day"] .biome { border-color: #d3cab3; box-shadow: 0 16px 34px rgba(80, 80, 50, 0.12); }
html[data-theme="day"] .biome-main {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(124, 201, 90, 0.32), transparent 60%),
    linear-gradient(180deg, #e6f4d9 0%, #f7f3e6 100%);
}
html[data-theme="day"] .biome-fire {
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(240, 140, 50, 0.28), transparent 60%),
    linear-gradient(180deg, #f9e5ca 0%, #f7f3e6 100%);
}
html[data-theme="day"] .biome-end {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(140, 100, 190, 0.22), transparent 62%),
    linear-gradient(180deg, #e9e0f5 0%, #f7f3e6 100%);
}
html[data-theme="day"] .biome::before {
  opacity: 0.35;
  background:
    linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.35) 100%),
    repeating-linear-gradient(90deg, rgba(70, 85, 55, 0.08) 0 1px, transparent 1px 7px);
}
html[data-theme="day"] .biome::after { opacity: 0.18; }
html[data-theme="day"] .biome-tag { color: var(--gold); }
html[data-theme="day"] .biome h3 { color: var(--text); }
html[data-theme="day"] .biome p { color: var(--muted); }

/* guardianes */
html[data-theme="day"] .tooltip-card {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(143, 107, 196, 0.14), transparent 60%),
    #f7f1ff;
  border-color: #bda8db;
  box-shadow: inset 0 0 0 1px #e6dcf5, 0 14px 30px rgba(80, 60, 110, 0.12);
}
html[data-theme="day"] .tooltip-card::before { border-color: rgba(120, 90, 160, 0.2); }
html[data-theme="day"] .tooltip-card:hover { border-color: #8f74b8; box-shadow: inset 0 0 0 1px #e6dcf5, 0 18px 38px rgba(80, 60, 110, 0.18); }
html[data-theme="day"] .tooltip-head .item-slot { background: #f1eafb; border-color: #cdbce6; }
html[data-theme="day"] .tooltip-tag { color: #7a4a9c; }
html[data-theme="day"] .tooltip-card h3 { color: #3f2a5e; }
html[data-theme="day"] .tooltip-lore { color: #584a6b; }
html[data-theme="day"] .tooltip-hint { border-top-color: rgba(120, 90, 160, 0.18); color: #655a76; }
html[data-theme="day"] .hint-key { color: #7a5a1e; border-color: rgba(154, 107, 40, 0.35); }
html[data-theme="day"] .tooltip-cmd {
  color: #2f6f4a;
  background: rgba(79, 143, 47, 0.08);
  border-color: rgba(79, 143, 47, 0.3);
}

/* conectar */
html[data-theme="day"] .server-card {
  background: linear-gradient(180deg, #fffdf6, #f8f3e6);
  border-color: #d3cab3;
  box-shadow: inset 1px 1px 0 #fff, 0 14px 30px rgba(80, 80, 50, 0.1);
}
html[data-theme="day"] .server-card:hover { background: #fffef9; border-color: #a3b58c; }
html[data-theme="day"] .server-icon {
  background: #f0ebdc;
  border-color: #c9bfa8;
  box-shadow: inset 2px 2px 0 rgba(90, 80, 55, 0.16), inset -2px -2px 0 rgba(255, 255, 255, 0.75);
}
html[data-theme="day"] .server-name { color: var(--text); }
html[data-theme="day"] .server-name span { color: #7a5a1e; border-color: rgba(154, 107, 40, 0.35); }
html[data-theme="day"] .server-edition { color: var(--muted-2); }
html[data-theme="day"] .server-motd span { color: #3f7a2f; }
html[data-theme="day"] .server-motd small { color: var(--muted-2); }
html[data-theme="day"] .address-row code {
  color: var(--text);
  background: #f3eddc;
  border-color: #b9a98a;
  box-shadow: inset 1px 1px 0 rgba(90, 80, 55, 0.12);
}
html[data-theme="day"] .address-fallback { color: var(--muted-2); }
html[data-theme="day"] .server-ping i { background: #5f9e35; box-shadow: 0 0 0 1px rgba(95, 158, 53, 0.2); }
html[data-theme="day"] .step-card {
  background: #fbf7e9;
  border-color: #d3cab3;
  box-shadow: inset 1px 1px 0 #fff, 0 10px 24px rgba(80, 80, 50, 0.1);
}
html[data-theme="day"] .step-num { color: var(--gold); }
html[data-theme="day"] .step-card h3 { color: var(--text); }
html[data-theme="day"] .step-card p { color: var(--muted); }

/* registro: libro de madera y pergamino */
html[data-theme="day"] .book { box-shadow: 0 30px 70px rgba(70, 60, 40, 0.3); }
html[data-theme="day"] .sign { box-shadow: 0 18px 34px rgba(70, 60, 40, 0.28); }

/* chat */
html[data-theme="day"] .chat {
  background: #fffdf6;
  border-color: #d3cab3;
  box-shadow: 0 14px 30px rgba(80, 80, 50, 0.12);
}
html[data-theme="day"] .chat-head {
  background: #eef5e3;
  border-bottom-color: #d3cab3;
  color: var(--muted);
}
html[data-theme="day"] .chat-channel { color: var(--gold); }
html[data-theme="day"] .chat-line { border-bottom-color: rgba(90, 100, 60, 0.14); }
html[data-theme="day"] .chat-line summary { color: var(--text); }
html[data-theme="day"] .chat-line summary:hover { color: var(--grass-dark); }
html[data-theme="day"] .chat-line summary::after { color: var(--grass); }
html[data-theme="day"] .chat-prefix { color: var(--gold); }
html[data-theme="day"] .chat-answer { color: var(--muted); border-left-color: #c9bfa8; }
html[data-theme="day"] .chat-input { color: var(--muted-2); border-top-color: rgba(90, 100, 60, 0.14); }
html[data-theme="day"] .chat-caret,
html[data-theme="day"] .chat-cursor { color: var(--spirit); background: var(--spirit); }

/* cierre */
html[data-theme="day"] .cta-panel {
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(124, 201, 90, 0.14), transparent 62%),
    linear-gradient(180deg, #fffdf6, #f4efdf);
  border-color: #c9bfa8;
  box-shadow: 0 18px 40px rgba(80, 80, 50, 0.12);
}
html[data-theme="day"] .cta-panel::before { opacity: 0.3; }
html[data-theme="day"] .cta-panel h2 { color: var(--text); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
html[data-theme="day"] .cta-panel > p { color: var(--muted); }
html[data-theme="day"] .cta-domain { color: var(--muted-2); }
html[data-theme="day"] .cta-domain span { color: var(--gold); }

/* pie, hotbar y logro */
html[data-theme="day"] .site-footer {
  background: linear-gradient(180deg, transparent, #eef3e3 40%, #e8efdc 100%);
  border-top-color: #d3cab3;
}
html[data-theme="day"] .hotbar {
  background: #fbf7e9;
  border-color: #cfc6b1;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(80, 80, 50, 0.14);
}
html[data-theme="day"] .hotbar-slot {
  background: #efe9da;
  border-color: #c9bfa8;
  box-shadow: inset 2px 2px 0 rgba(90, 80, 55, 0.16), inset -2px -2px 0 rgba(255, 255, 255, 0.7);
}
html[data-theme="day"] .hotbar-slot.is-selected { border-color: #5f5a45; box-shadow: inset 0 0 0 1px #5f5a45, 0 0 0 2px #fbf7e9; }
html[data-theme="day"] .footer-title { color: var(--text); }
html[data-theme="day"] .footer-sub { color: var(--muted-2); }
html[data-theme="day"] .footer-nav a { color: var(--muted); }
html[data-theme="day"] .footer-nav a:hover { color: var(--grass-dark); }
html[data-theme="day"] .footer-domain a { color: var(--gold); }
html[data-theme="day"] .footer-small,
html[data-theme="day"] .footer-made { color: var(--muted-2); }
html[data-theme="day"] .to-top {
  background: #fbf7e9;
  border-color: #c9bfa8;
  box-shadow: 0 4px 0 #b2a88f;
  color: var(--muted);
}
html[data-theme="day"] .to-top:hover { color: var(--grass-dark); background: #f4efdf; }
html[data-theme="day"] .toast {
  background: #fffdf6;
  border-color: #c8a96a;
  box-shadow: 0 12px 30px rgba(70, 60, 40, 0.22);
}
html[data-theme="day"] .toast-icon { background: #f1ebdc; border-color: #c9bfa8; }
html[data-theme="day"] .toast-title { color: var(--gold); text-shadow: none; }
html[data-theme="day"] .toast-msg { color: var(--text); }
html[data-theme="day"] .toast-close { color: var(--muted-2); }

/* botones y código en claro */
html[data-theme="day"] .btn {
  color: var(--text);
  background: #e7e0cf;
  border-color: #b7ad96;
  box-shadow:
    inset 2px 2px 0 #fffdf5,
    inset -2px -3px 0 #b2a88f,
    0 4px 0 #a79d85;
  text-shadow: none;
}
html[data-theme="day"] .btn:hover { background: #f1ebdc; }
html[data-theme="day"] .btn:active { box-shadow: inset 2px 2px 0 #b2a88f, inset -2px -3px 0 #fffdf5; }
html[data-theme="day"] .btn-ghost {
  color: var(--text);
  background: #fbf7e9;
  border-color: #b7ad96;
  box-shadow:
    inset 2px 2px 0 #fffdf5,
    inset -2px -3px 0 #c4b9a0,
    0 4px 0 #a79d85;
}
html[data-theme="day"] .btn-ghost:hover { background: #f4efdf; }
html[data-theme="day"] .btn-copy { color: #1e3512; border-color: #2f5f1c; }
html[data-theme="day"] .btn.is-copied { color: #1d1404 !important; }
html[data-theme="day"] code {
  color: #7a4a12;
  background: #f2ead7;
  border-color: #d8c39e;
}
html[data-theme="day"] .book-page code { color: #f2e7cf; background: #3b2818; border-color: #2a1c11; }

/* 404 */
html[data-theme="day"] .not-found-panel {
  background: linear-gradient(180deg, #fffdf6, #f4efdf);
  border-color: #d3cab3;
  box-shadow: 0 24px 60px rgba(70, 60, 40, 0.16);
}
html[data-theme="day"] .not-found-panel h2 { color: var(--text); }
html[data-theme="day"] .not-found-panel .lead { color: var(--muted); }
html[data-theme="day"] .not-found-ips { color: var(--muted-2); }

html[data-theme="day"] .btn-primary,
html[data-theme="day"] .nav-cta {
  color: #f5fff9;
  background: #4f8f2f;
  border-color: #1c3d11;
  box-shadow:
    inset 2px 2px 0 #8fdc63,
    inset -2px -3px 0 #2f5f1c,
    0 4px 0 #2a3a1d,
    0 0 26px rgba(79, 143, 47, 0.18);
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.35);
}
html[data-theme="day"] .btn-primary:hover,
html[data-theme="day"] .nav-cta:hover {
  background: #5aa63a;
  box-shadow:
    inset 2px 2px 0 #a6e07a,
    inset -2px -3px 0 #2f5f1c,
    0 4px 0 #2a3a1d,
    0 0 30px rgba(79, 143, 47, 0.24);
}
html[data-theme="day"] .btn-primary:active,
html[data-theme="day"] .nav-cta:active {
  background: #78c04c;
  box-shadow: inset 2px 2px 0 #8fdc63, inset -2px -2px 0 #2f5f1c, 0 1px 0 #2a3a1d;
}
html[data-theme="day"] .btn-copy {
  color: #1e3512;
  background: #a6e07a;
  border-color: #2f5f1c;
  box-shadow:
    inset 2px 2px 0 #d2f7b0,
    inset -2px -3px 0 #5f9e35,
    0 4px 0 #3f4a2f;
  text-shadow: none;
}
html[data-theme="day"] .btn-copy:hover { background: #b9ef92; }
html[data-theme="day"] .btn-copy:active { box-shadow: inset 2px 2px 0 #d2f7b0, inset -2px -2px 0 #5f9e35, 0 1px 0 #3f4a2f; }
html[data-theme="day"] .ledge { filter: brightness(1.3) saturate(1.08); }
