/* =========================================================
   AnarchyMC Network — style.css
   ========================================================= */

:root {
  --bg-base: #050505;
  --bg-surface: #0f0f0f;
  --bg-card: #140000;

  --red-dark: #5b0000;
  --red-deep: #680000;
  --red-mid: #b60000;
  --red-bright: #ff0000;
  --green: #4caf50;

  --text-pure: #ffffff;
  --text-main: #d1d1d1;
  --text-muted: #8c8c8c;

  --border-glow: rgba(255, 0, 0, 0.15);
  --font-main: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(104, 0, 0, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(182, 0, 0, 0.1), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body.is-loading { overflow: hidden; }

input, textarea { -webkit-user-select: text; user-select: text; }
img, svg { -webkit-user-drag: none; }

h1, h2, h3 { color: var(--text-pure); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
a { color: var(--red-bright); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #ff5555; }
em { color: var(--text-pure); font-style: normal; font-weight: 600; }
code {
  background: var(--bg-base);
  color: var(--red-bright);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--red-dark);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95em;
}
.muted { color: var(--text-muted); margin-bottom: 20px; }
.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;
}

:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   PANTALLA DE CARGA
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
}
.loader__panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: #030303;
  transition: transform 1s var(--ease);
}
.loader__panel--top { top: 0; border-bottom: 1px solid var(--red-deep); }
.loader__panel--bottom { bottom: 0; }
.loader.is-done .loader__panel--top { transform: translateY(-101%); }
.loader.is-done .loader__panel--bottom { transform: translateY(101%); }

.loader__content {
  position: relative; z-index: 2;
  width: min(420px, 82vw);
  text-align: center;
  transition: opacity 0.4s ease, transform 0.5s ease;
}
.loader.is-done .loader__content { opacity: 0; transform: scale(0.94); }

.loader__emblem {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 28px;
  display: grid; place-items: center;
}
.loader__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--red-bright);
  border-right-color: var(--red-mid);
  animation: spin 1.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.7));
}
.loader__ring--2 {
  inset: 12px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: var(--red-deep);
  border-left-color: var(--red-bright);
  animation-duration: 1.9s;
  animation-direction: reverse;
}
.loader__sword {
  font-size: 2.6rem;
  animation: swordPulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.8));
}

.loader__word {
  display: flex; justify-content: center;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 900; letter-spacing: 6px;
  color: var(--text-pure);
  margin-bottom: 26px;
}
.loader__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: letterIn 0.5s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
.loader__word span:nth-child(n + 8) { color: var(--red-bright); text-shadow: 0 0 18px rgba(255, 0, 0, 0.7); }

.loader__bar {
  height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.loader__bar i {
  display: block; height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  box-shadow: 0 0 14px var(--red-bright);
  transform: scaleX(0); transform-origin: left;
}
.loader__meta {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-size: 0.85rem; color: var(--text-muted);
}
.loader__meta strong { color: var(--text-pure); font-variant-numeric: tabular-nums; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swordPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes letterIn { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   CAPAS FIJAS
   ========================================================= */
#embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.7; }
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  box-shadow: 0 0 10px var(--red-bright);
  transform: scaleX(0); transform-origin: left;
}
.hero, main, .footer { position: relative; z-index: 1; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glow);
  transition: background 0.3s ease, transform 0.4s var(--ease-out);
}
.topbar.is-scrolled { background: rgba(5, 5, 5, 0.95); }
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 900; letter-spacing: 2px;
  color: var(--text-pure); text-transform: uppercase;
}
.brand:hover { color: var(--text-pure); }
.brand span { color: var(--red-bright); font-size: 1.9rem; line-height: 1; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  position: relative; color: var(--text-main);
  font-size: 0.95rem; font-weight: 600; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red-bright);
  transition: width 0.3s ease;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text-pure); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }

.burger {
  display: none; position: relative;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--red-deep);
  border-radius: 10px; cursor: pointer;
}
.burger i {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--text-pure); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.burger i:nth-child(1) { top: 14px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  background: var(--red-deep); color: var(--text-pure);
  border: 1px solid var(--red-mid); border-radius: 10px;
  font-family: inherit; font-weight: 800; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  color: var(--text-pure);
  background: var(--red-bright); border-color: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 0, 0, 0.3);
}
.btn--primary { background: var(--red-bright); border-color: var(--red-bright); box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
.btn--primary:hover { background: #ff3333; box-shadow: 0 0 32px rgba(255, 0, 0, 0.6); }
.btn--sm { padding: 10px 20px; font-size: 0.82rem; }
.btn--green { background: var(--green); border-color: var(--green); }
.btn--green:hover { background: #5fc364; border-color: #5fc364; box-shadow: 0 10px 22px rgba(76, 175, 80, 0.3); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 90px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.17) 0%, transparent 60%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-block; margin-bottom: 22px;
  padding: 6px 16px;
  background: rgba(255, 0, 0, 0.1); border: 1px solid var(--red-mid);
  border-radius: 50px; color: var(--red-bright);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}

.hero__title {
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 900; text-transform: uppercase; line-height: 1;
  margin-bottom: 24px;
}
.line { display: block; overflow: hidden; padding: 0.06em 0.1em; }
.line__in { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease-out); }
.line:nth-child(2) .line__in { transition-delay: 0.15s; }
body.ready .line__in { transform: translateY(0); }

.glitch { position: relative; color: var(--red-bright); text-shadow: 0 0 34px rgba(255, 0, 0, 0.6); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  overflow: hidden; opacity: 0.75;
  clip-path: inset(0 0 100% 0);
}
.glitch::before { color: #ff6a6a; transform: translateX(-3px); }
.glitch::after { color: #7a0000; transform: translateX(3px); }
body.ready .glitch::before { animation: glitchA 5s infinite 2s; }
body.ready .glitch::after { animation: glitchB 5s infinite 2s; }
@keyframes glitchA {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); }
  93% { clip-path: inset(10% 0 60% 0); }
  95% { clip-path: inset(55% 0 20% 0); }
  97% { clip-path: inset(30% 0 45% 0); }
}
@keyframes glitchB {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); }
  94% { clip-path: inset(60% 0 10% 0); }
  96% { clip-path: inset(20% 0 55% 0); }
  98% { clip-path: inset(75% 0 5% 0); }
}

.hero__lead { font-size: 1.2rem; color: var(--text-muted); max-width: 580px; margin-bottom: 36px; }

.reveal-hero { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
body.ready .reveal-hero { opacity: 1; transform: translateY(0); }
body.ready .hero-badge { transition-delay: 0.05s; }
body.ready .hero__lead { transition-delay: 0.6s; }
body.ready .ip-box { transition-delay: 0.75s; }
body.ready .status { transition-delay: 0.9s; }
body.ready .hero__cta { transition-delay: 1.05s; }

/* IP box */
.ip-box {
  position: relative; overflow: hidden;
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 12px 34px;
  background: var(--bg-card); border: 1px solid var(--red-deep); border-radius: 14px;
  color: var(--text-pure); font-family: inherit; cursor: pointer;
  transition: border-color 0.3s ease, opacity 0.9s ease, transform 0.9s var(--ease-out);
}
.ip-box:hover { border-color: var(--red-bright); animation: pulseGlow 1.5s infinite; }
.ip-box__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.ip-box__ip { font-size: 1.45rem; font-weight: 800; }
.ip-box__hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-bright); color: #fff;
  font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 0.95rem;
  transform: translateY(101%); transition: transform 0.3s var(--ease-out);
}
.ip-box:hover .ip-box__hover, .ip-box:focus-visible .ip-box__hover { transform: translateY(0); }
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px; font-size: 0.9rem; font-weight: 600;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #777; }
.status.is-online .status__dot { background: #38d26a; box-shadow: 0 0 10px #38d26a; animation: blink 2s infinite; }
.status.is-offline .status__dot { background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); }
@keyframes blink { 50% { opacity: 0.35; } }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--red-deep); border-radius: 20px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--red-bright); border-radius: 4px;
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   CONTENIDO
   ========================================================= */
.content-grid { display: grid; gap: 30px; padding-bottom: 100px; }

.card {
  position: relative; overflow: hidden;
  padding: 40px;
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-base));
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--red-bright); opacity: 0.8;
  transition: width 0.4s ease, opacity 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.05);
}
.card:hover::before { width: 8px; opacity: 1; }
.card--green::before { background: var(--green); }
.card--green:hover { border-color: rgba(76, 175, 80, 0.35); }
.card--green h2 { color: var(--green); }

.card h2 { display: flex; align-items: center; gap: 15px; font-size: 1.8rem; margin-bottom: 22px; }
.card h2 .icon { font-size: 2rem; filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5)); }

/* Reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal.active:hover { transform: translateY(-4px); }

/* Pasos */
.step-list { list-style: none; counter-reset: step; }
.step-list li {
  counter-increment: step; position: relative;
  padding-left: 60px; margin-bottom: 22px; font-size: 1.05rem;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-deep); border: 1px solid var(--red-mid); border-radius: 50%;
  font-weight: 800; color: var(--text-pure);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.step-list li:hover::before { background: var(--red-bright); box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); }
.step-list li:last-child { margin-bottom: 0; }

/* Comandos */
.cmd-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.search { flex: 1 1 240px; }
.search input {
  width: 100%; padding: 12px 16px;
  background: var(--bg-base); color: var(--text-pure);
  border: 1px solid var(--red-dark); border-radius: 10px;
  font-family: inherit; font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; cursor: pointer;
  background: transparent; color: var(--text-main);
  border: 1px solid var(--red-dark); border-radius: 50px;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.chip:hover { border-color: var(--red-bright); }
.chip.is-active { background: var(--red-deep); border-color: var(--red-bright); color: var(--text-pure); }

.cmd-list { list-style: none; display: grid; gap: 12px; }
.cmd-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px;
  background: rgba(255, 0, 0, 0.03); border: 1px solid rgba(255, 0, 0, 0.1); border-radius: 10px;
  cursor: pointer;
  animation: itemIn 0.35s var(--ease-out) both;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.cmd-item:hover { background: rgba(255, 0, 0, 0.08); border-color: var(--red-mid); }
.cmd-item code { flex: 0 0 auto; font-weight: 800; font-size: 1.05rem; }
.cmd-desc { flex: 1; color: var(--text-muted); font-size: 0.95rem; }
.cmd-cat { flex: 0 0 auto; font-size: 0.72rem; color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; padding: 2px 10px; }
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.empty { padding: 20px; text-align: center; color: var(--text-muted); }

/* Rangos */
.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rank {
  position: relative; padding: 24px 20px;
  background: var(--bg-card); border: 1px solid var(--red-dark); border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.rank:hover { transform: translateY(-6px); border-color: var(--red-bright); box-shadow: 0 14px 30px rgba(255, 0, 0, 0.12); }
.rank__name { font-size: 1.4rem; margin-bottom: 14px; }
.rank ul { list-style: none; }
.rank li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.95rem; }
.rank li::before { content: "▸"; position: absolute; left: 0; color: var(--red-bright); }
.rank--vip .rank__name, .rank--mvp .rank__name { color: var(--red-bright); }
.rank--top { border-color: var(--red-bright); background: linear-gradient(160deg, #2a0000, var(--bg-card)); box-shadow: 0 0 28px rgba(255, 0, 0, 0.15); }
.rank--top .rank__name { color: var(--red-bright); text-shadow: 0 0 14px rgba(255, 0, 0, 0.7); }
.rank__tag {
  position: absolute; top: -11px; right: 14px; padding: 2px 12px;
  background: var(--red-bright); color: #fff; border-radius: 50px;
  font-size: 0.7rem; font-weight: 800;
}
.rank__note { margin: 22px 0 0; }

/* Normas */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { padding: 20px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; transition: border-color 0.3s ease; }
.rule:hover { border-color: var(--red-mid); }
.rule h3 { font-size: 1.1rem; color: var(--red-bright); margin-bottom: 8px; }
.rule p { font-size: 0.95rem; }

/* Staff */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.req { padding: 12px 16px; background: rgba(76, 175, 80, 0.06); border: 1px solid rgba(76, 175, 80, 0.2); border-radius: 10px; font-size: 0.95rem; }
.card--green .muted { margin-bottom: 26px; }

/* FAQ */
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  color: var(--text-pure); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--red-bright); transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-muted); animation: itemIn 0.35s var(--ease-out); }

/* Footer */
.footer { padding: 60px 24px; text-align: center; background: #020202; border-top: 1px solid var(--red-dark); }
.footer p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }
.footer__brand { font-size: 1.2rem !important; font-weight: 800; color: var(--text-pure) !important; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 18px 0 !important; }
.footer__legal { font-size: 0.82rem !important; margin-top: 18px; }

/* Volver arriba */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 46px; height: 46px;
  background: var(--red-deep); color: #fff; border: 1px solid var(--red-mid); border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--red-bright); }

/* Toast */
.toast-container { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 9999; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 14px 22px;
  background: var(--bg-card); color: #fff; font-weight: 600;
  border-left: 4px solid var(--red-bright); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.2);
  animation: toastIn 0.35s var(--ease-out) forwards;
}
.toast.hiding { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(24px); opacity: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .ranks { grid-template-columns: repeat(2, 1fr); }
  .rules, .reqs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 24px;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid var(--border-glow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
}

@media (max-width: 640px) {
  .topbar__inner { height: 68px; }
  .nav { top: 68px; }
  .hero { padding: 120px 20px 80px; }
  .card { padding: 26px 22px; }
  .card h2 { font-size: 1.5rem; }
  .ranks, .rules, .reqs { grid-template-columns: 1fr; }
  .cmd-item { flex-wrap: wrap; gap: 8px; }
  .cmd-desc { flex-basis: 100%; }
  .ip-box__ip { font-size: 1.2rem; }
  .to-top { right: 16px; bottom: 16px; }
}

/* Respetar "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  #embers { display: none; }
}
