/* Estilo B3 · UI de juego: fondo oscuro, acento ámbar, esquinas cortadas y rombos. */

:root {
  --bg: #0B0B10;
  --bg-raised: #0F0F15;
  --surface: #15151D;
  --surface-2: #1C1C26;
  --line: #2B2B38;
  --line-soft: #24242F;
  --line-strong: #4A4A5C;
  --field-line: #3A3A4A;

  --text: #ECE8E1;
  --text-strong: #F6F2EA;
  --text-soft: #B6B0BB;
  --text-muted: #A09BA6;
  --text-faint: #7C7784;

  --accent: #F0B44C;
  --accent-hover: #F5C878;
  --on-accent: #16120A;
  --silver: #C9C3CC;
  --bronze: #B98A5E;
  --ok: #3DDC84;
  --ok-text: #9BE3B4;

  --item-jewel: #F2E2A0;
  --item-excellent: #7CF29C;
  --item-wings: #8EC5FF;
  --item-zen: #ECE8E1;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;

  --cut: 12px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--accent-hover); }
a:hover { color: #FADDA6; }

h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Esquinas cortadas: cada componente ajusta --cut. */
.cut {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

.diamond {
  display: inline-block; flex: 0 0 auto; width: 8px; height: 8px;
  background: var(--accent); transform: rotate(45deg);
}
.diamond--lg { width: 10px; height: 10px; }

/* ---------- Botones ---------- */

.btn {
  --cut: 10px;
  --shine: rgba(255, 255, 255, 0.45);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 0; font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
/* Destello diagonal que cruza el botón al pasar el mouse. */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, var(--shine) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); transition: transform 0.6s ease; }
.btn:active { transform: scale(0.97); }
.btn--lg {
  --cut: 14px;
  min-height: 56px; padding: 0 30px;
  font: 700 22px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }

/* Borde con esquinas cortadas: el <a> pinta el borde y el <span> interior el fondo. */
.btn--outline { --shine: rgba(240, 180, 76, 0.22); padding: 1px; background: var(--line-strong); color: var(--text); }
.btn--outline > span {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 18px; background: var(--bg-raised);
  transition: background-color 0.18s ease;
}
.btn--outline.btn--lg > span { min-height: 54px; padding: 0 28px; background: var(--bg); }
.btn--outline-accent { background: var(--accent); color: var(--text-strong); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--accent); color: var(--text-strong); }
.btn--outline:hover > span, .btn--outline:focus-visible > span { background: #1F1A12; }

.btn--dark { --shine: rgba(240, 180, 76, 0.3); background: var(--on-accent); color: var(--text-strong); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--accent-hover); }
.btn--line { --shine: rgba(240, 180, 76, 0.3); border: 2px solid var(--on-accent); color: var(--on-accent); background: transparent; }
.btn--line:hover, .btn--line:focus-visible { background: var(--on-accent); color: var(--accent-hover); }

/* ---------- Header y footer ---------- */

.site-header { background: var(--bg-raised); border-bottom: 1px solid var(--line); }
/* Más ancho que el contenido para que logo, menú y botones entren en una fila. */
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  max-width: 1360px; padding-top: 12px; padding-bottom: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; text-decoration: none; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 2px solid var(--accent); transform: rotate(45deg);
}
.brand__mark > span { width: 12px; height: 12px; background: var(--accent); }
.brand__name {
  font: 800 28px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-strong);
}

.site-nav { flex: 1 1 auto; }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none;
  font: 600 19px/1.2 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase;
}
.site-nav a {
  --cut: 8px;
  display: inline-block; padding: 10px 12px; color: var(--silver); text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.18s ease, color 0.18s ease;
}
.site-nav a:hover { color: var(--text-strong); background: var(--surface-2); }
.site-nav a.is-current, .site-nav a.is-current:hover { position: relative; isolation: isolate; background: none; color: var(--on-accent); }

/* El fondo ámbar del ítem actual es un elemento propio para que se deslice entre páginas. */
.nav-pill {
  --cut: 8px;
  position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color 0.18s ease;
  view-transition-name: nav-pill;
}
.site-nav a.is-current:hover .nav-pill { background: var(--accent-hover); }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Si el menú no entra en la fila (con la sesión iniciada y un usuario largo pide ~1282 px de contenido, más
   relleno y barra de desplazamiento), va abajo a todo lo ancho y el logo y los botones quedan arriba. */
@media (max-width: 1379px) {
  .site-header__actions { order: 1; }
  .site-nav { order: 2; flex-basis: 100%; }
}

.site-footer { margin-top: 0; background: var(--bg-raised); border-top: 1px solid var(--line); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding-top: 40px; padding-bottom: 48px;
}
.site-footer__brand { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__name {
  font: 800 22px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-strong);
}
.site-footer__brand p { font-size: 13px; color: var(--text-muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.site-footer__links a { display: inline-block; padding: 10px 0; color: var(--text-soft); }

/* ---------- Hero con el fondo "Botín" ---------- */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg, rgba(240, 180, 76, 0.045) 0 1px, transparent 1px 18px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 360px; overflow: hidden;
  perspective: 1000px; perspective-origin: 50% 0%;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}
.floor__plane {
  position: absolute; left: -60%; right: -60%; top: 0; height: 700px;
  transform: rotateX(70deg); transform-origin: 50% 0%;
  background-image:
    linear-gradient(rgba(240, 180, 76, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 180, 76, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: floor-walk 5s linear infinite;
}

.drop {
  --c: var(--item-jewel);
  position: absolute; left: var(--x); bottom: var(--b);
  transform: translateX(-50%) scale(var(--s)); transform-origin: 50% 100%;
}
.drop--excellent { --c: var(--item-excellent); }
.drop--wings { --c: var(--item-wings); }
.drop--zen { --c: var(--item-zen); }
.drop--box { --c: var(--accent); }

.drop__inner {
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; animation: drop-fall 10s ease-out var(--d) infinite;
}
.drop__label {
  padding: 3px 9px; white-space: nowrap;
  background: rgba(6, 6, 9, 0.78); border: 1px solid rgba(255, 255, 255, 0.08);
  font: 500 13px/1.4 var(--font-mono); color: var(--c);
}
.drop__beam { width: 1px; height: 30px; background: linear-gradient(to top, var(--c), transparent); }
.drop__gem { width: 9px; height: 9px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 12px var(--c); }
.drop__ring {
  width: 46px; height: 12px; margin-top: -7px;
  border: 1px solid var(--c); border-radius: 50%;
  animation: drop-ring 1.8s ease-out infinite;
}

.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  padding-top: 80px; padding-bottom: 240px;
}
.hero__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--accent);
}
.hero__title {
  font: 800 clamp(56px, 8vw, 124px)/0.9 var(--font-display);
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--text-strong);
}
.hero__title span { color: var(--accent); }
.hero__lead { max-width: 520px; font-size: 18px; color: var(--text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@keyframes floor-walk { to { background-position: 0 72px; } }
@keyframes drop-fall {
  0% { opacity: 0; transform: translateY(-30px); }
  5% { opacity: 1; transform: translateY(0); }
  7% { transform: translateY(-5px); }
  9% { transform: translateY(0); }
  40% { opacity: 1; }
  46% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes drop-ring {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Panel "Estado del reino" ---------- */

.panel { --cut: 20px; display: flex; flex-direction: column; background: var(--surface); }
.panel--live { flex: 1 1 360px; min-width: 0; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; background: var(--surface-2);
}
.panel__title {
  display: flex; align-items: center; gap: 10px;
  font: 700 20px/1.2 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-strong);
}
.panel__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.panel__stats > div {
  display: flex; flex-direction: column-reverse; gap: 2px;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.panel__stats > div + div { border-left: 1px solid var(--line); }
.panel__stats dt { font-size: 13px; color: var(--text-muted); }
.panel__stats dd { margin: 0; font: 500 32px/1.2 var(--font-mono); color: var(--text-strong); }
.panel__section { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px 22px; }
.panel__label { font-size: 13px; color: var(--text-muted); }
.panel__empty { padding: 8px 0; color: var(--text-soft); }
.panel__link { margin-top: 8px; font-weight: 600; }
.arrow { display: inline-block; transition: transform 0.18s ease; }
a:hover > .arrow, a:focus-visible > .arrow { transform: translateX(4px); }

.panel__event {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background-color 0.18s ease;
}
.panel__event:hover { background: var(--surface-2); color: inherit; }
.panel__event-copy { display: flex; flex-direction: column; min-width: 0; }
.panel__event-name { font-weight: 600; color: var(--text-strong); }
.panel__event-time {
  display: flex; flex-direction: column; align-items: flex-end;
  font: 500 24px/1.1 var(--font-mono); color: var(--accent);
}
.panel__event-time span { font: 400 12px/1.5 var(--font-body); color: var(--text-muted); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--font-mono); letter-spacing: 0.04em;
}
.status__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--online { color: var(--ok-text); }
.status--online .status__dot { background: var(--ok); }
.status--offline { color: var(--text-muted); }

.toplist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.toplist li { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.toplist__name { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.toplist__value { font: 500 14px/1 var(--font-mono); color: var(--text-soft); }

.rank-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 28px; height: 28px; background: var(--line-strong); color: var(--on-accent);
  font: 500 12px/1 var(--font-mono);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.rank-badge--1 { background: var(--accent); }
.rank-badge--2 { background: var(--silver); }
.rank-badge--3 { background: var(--bronze); }
.rank-badge--lg { width: 52px; height: 52px; font: 800 26px/1 var(--font-display); }

/* ---------- Secciones ---------- */

.section { padding: 80px 0; }
.section--tight { padding-top: 0; }
.section--last { padding-top: 0; }

.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.section-head h2 {
  font: 800 clamp(34px, 3.4vw, 48px)/1 var(--font-display);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-strong);
}
.section-head__line { flex: 1 1 auto; height: 1px; background: var(--line); }
.section-head__link { font-weight: 600; white-space: nowrap; text-decoration: none; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.feature { --cut: 16px; display: flex; align-items: flex-start; gap: 22px; padding: 26px 24px; background: var(--surface); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; margin: 6px;
  border: 1px solid var(--accent); color: var(--accent); transform: rotate(45deg);
}
.feature__icon svg { transform: rotate(-45deg); }
.feature h3 {
  font: 700 24px/1.2 var(--font-display); text-transform: uppercase; color: var(--text-strong);
}
.feature p { margin-top: 4px; font-size: 15px; color: var(--text-soft); }

.cta-band {
  --cut: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 56px clamp(24px, 4vw, 56px); background: var(--accent);
}
.cta-band__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cta-band h2 {
  font: 800 clamp(44px, 5vw, 72px)/0.95 var(--font-display); text-transform: uppercase; color: var(--on-accent);
}
.cta-band p { font-size: 17px; color: #3A2A0C; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { min-height: 52px; padding: 0 22px; }

/* ---------- Páginas interiores ---------- */

.page { padding-top: 48px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 28px; }
.page--narrow { max-width: 720px; min-height: 50vh; align-items: flex-start; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title {
  font: 800 clamp(48px, 6vw, 80px)/0.92 var(--font-display); text-transform: uppercase; color: var(--text-strong);
}
.page-meta { font: 500 13px/1.4 var(--font-mono); color: var(--text-muted); }
.lead { font-size: 18px; color: var(--text-soft); }

.notice { padding: 18px 22px; background: var(--surface); color: var(--text-soft); }

/* Noticias y páginas de texto */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.news-card { --cut: 16px; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); }
.news-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--text-muted);
}
.news-card__tag { color: var(--accent); }
.news-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.news-card h3 a { color: var(--text-strong); text-decoration: none; }
.news-card h3 a:hover { color: var(--accent-hover); }
.news-card p { font-size: 15px; color: var(--text-soft); }
.news-card__more { margin-top: auto; font-weight: 600; text-decoration: none; }

.draft-tag { padding: 0 6px; background: #3A2A0C; color: var(--accent-hover); }
.draft-banner {
  padding: 12px 16px; background: #2A200E; border: 1px dashed var(--accent);
  font: 500 13px/1.5 var(--font-mono); color: var(--accent-hover);
}

.page--article { max-width: 800px; }
.back-link { align-self: flex-start; font-weight: 600; text-decoration: none; }
.arrow--back { margin-right: 4px; }
a:hover > .arrow--back, a:focus-visible > .arrow--back { transform: translateX(-4px); }
.article-head { display: flex; flex-direction: column; gap: 10px; }
.article-title {
  font: 800 clamp(40px, 5vw, 64px)/0.98 var(--font-display); text-transform: uppercase; color: var(--text-strong);
}

.prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.7; color: var(--text); }
.prose h2 {
  margin-top: 16px;
  font: 700 28px/1.1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-strong);
}
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text-strong); }

/* Descargas */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
/* One card (the launcher): a readable width instead of the whole container. */
.download-grid--single { grid-template-columns: minmax(0, 620px); }
.download-card { --cut: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; background: var(--surface); }
.download-card--primary { box-shadow: inset 0 4px 0 var(--accent); }
.download-card h2 { font: 800 34px/1 var(--font-display); text-transform: uppercase; color: var(--text-strong); }
.download-card p { color: var(--text-soft); }
.download-card__meta { display: flex; gap: 32px; margin: 0 0 6px; }
.download-card__meta > div { display: flex; flex-direction: column-reverse; }
.download-card__meta dt { font-size: 13px; color: var(--text-muted); }
.download-card__meta dd { margin: 0; font: 500 20px/1.3 var(--font-mono); color: var(--text-strong); }
.btn--disabled { background: var(--surface-2); color: var(--text-faint); cursor: not-allowed; }
.btn--disabled::after { display: none; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { --cut: 14px; display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; background: var(--surface); }
.steps strong { color: var(--text-strong); }
.steps p { margin-top: 2px; font-size: 15px; color: var(--text-soft); }
.requirements { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 22px; color: var(--text-soft); }

/* El servidor */
.lead--wide { max-width: 760px; }
.headline-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.headline-stats > div {
  --cut: 16px;
  display: flex; flex-direction: column-reverse; gap: 4px;
  padding: 22px 24px; background: var(--surface);
}
.headline-stats dt { font-size: 13px; color: var(--text-muted); }
.headline-stats dd { margin: 0; font: 800 52px/1 var(--font-display); color: var(--accent); }

.spotlight {
  --cut: 24px;
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  padding: 36px clamp(24px, 4vw, 48px); background: var(--surface);
  box-shadow: inset 0 4px 0 var(--accent);
}
.spotlight__copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.spotlight__title {
  font: 800 clamp(36px, 4vw, 54px)/0.98 var(--font-display); text-transform: uppercase; color: var(--text-strong);
}
.spotlight__lead { color: var(--text-soft); }
.check-list { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg);
}
.check-list strong { color: var(--text-strong); font-weight: 600; }

.system-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.system-grid article { --cut: 14px; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--surface); }
.system-grid h3 { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; color: var(--text-strong); }
.system-grid p { font-size: 15px; color: var(--text-soft); }
.mini-card__text { color: var(--text-soft); }
.table--compact { min-width: 420px; }

/* Tiers: el mismo color de brillo que en el juego (Items.bmd). --tier es el color exacto, para
   bordes y brillo; --tier-text es una versión más clara cuando el exacto no se lee sobre fondo oscuro. */
.tier-1 { --tier: #FFFFFF; --tier-text: #ECE8E1; }
.tier-2 { --tier: #00D2BE; --tier-text: #33DCCB; }
.tier-3 { --tier: #9646FF; --tier-text: #B488FF; }
.tier-4 { --tier: #E61E1E; --tier-text: #FF6B6B; }
.tier-5 { --tier: #FFE13C; --tier-text: #FFE13C; }

.tier-intro { max-width: 760px; margin-bottom: 18px; color: var(--text-soft); }
.tier-example-label { margin-bottom: 10px; }
.tier-ladder {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;
  margin: 0 0 18px; padding: 0; list-style: none;
}
.mu-tooltip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 14px 20px; text-align: center;
  background: rgba(8, 8, 12, 0.92); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 0 var(--tier), inset 0 0 24px -12px var(--tier);
}
.mu-tooltip__tier { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--tier-text); }
.mu-tooltip__name { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--tier-text); }
.mu-tooltip__stat { font: 500 14px/1.4 var(--font-mono); color: var(--text); }
.mu-tooltip__bonuses { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: #8EC5FF; }
.mu-tooltip__base { margin-top: 4px; font-size: 13px; color: var(--text-faint); }

.table--tiers { min-width: 560px; }
.table--tiers tbody th {
  padding: 11px 20px; border-top: 1px solid var(--line-soft); background: none; text-align: left;
  font: 500 15px/1.4 var(--font-body); letter-spacing: normal; text-transform: none; color: var(--text);
}
.table--tiers .tier-head { color: var(--tier-text); }
.table--tiers .table__group th {
  padding: 10px 20px; background: var(--bg-raised);
  font: 600 12px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}

/* Formularios */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.input {
  height: 50px; padding: 0 14px;
  background: var(--bg-raised); border: 1px solid var(--field-line); color: var(--text-strong);
  font: 400 16px/1 var(--font-body);
  transition: border-color 0.18s ease;
}
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent); }
.input--error, .input--error:hover { border-color: #E86B5F; }
.field__hint { font-size: 13px; color: var(--text-muted); }
.field__error { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #F08B80; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--silver); }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; }
.btn--outline.btn--small > span { min-height: 38px; padding: 0 14px; background: var(--surface); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled::after { display: none; }
.btn--ghost { background: transparent; color: var(--text-soft); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--text-strong); }
.inline-form { display: inline-flex; }
/* Pedidos (admin): confirmar y rechazar con su motivo, en una fila que se parte en pantallas chicas. */
.table td .inline-form { align-items: center; gap: 8px; margin: 0 8px 6px 0; flex-wrap: wrap; }
.table td .inline-form input[type="text"] { min-height: 40px; min-width: 0; width: 180px; max-width: 100%; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--line, #3A3A3A); color: var(--text-strong); font: inherit; font-size: 14px; }

.alert { padding: 14px 18px; font-size: 15px; }
.alert--error { background: #2A1414; border: 1px solid #6B2B26; color: #F6B4AC; }
.alert--ok { background: #12241A; border: 1px solid #285C3B; color: var(--ok-text); }
.info-note { padding: 14px 18px; background: var(--surface-2); font-size: 15px; color: var(--silver); }

/* Registro e ingreso */
.auth-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.auth-layout--narrow { justify-content: center; }
.auth-layout--narrow .auth-card { flex: 0 1 520px; }
.auth-card { --cut: 22px; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.auth-card__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 32px; background: var(--surface-2);
  font: 700 18px/1.2 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-strong);
}
.auth-card__bar > span:first-child { display: flex; align-items: center; gap: 10px; }
.auth-card__tag { font: 500 12px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--text-muted); }
.auth-card__body { display: flex; flex-direction: column; gap: 22px; padding: 32px; }
.auth-title { font: 800 clamp(44px, 5vw, 64px)/0.95 var(--font-display); text-transform: uppercase; color: var(--text-strong); }
.auth-lead { margin-top: -12px; color: var(--text-soft); }
.auth-switch { text-align: center; font-size: 15px; color: var(--text-soft); }
.auth-side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.auth-note { padding: 18px 20px; background: var(--surface); font-size: 15px; color: var(--silver); }
.steps--stacked { grid-template-columns: 1fr; margin-bottom: 14px; }

/* Panel de cuenta */
.account-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  font-size: 14px; color: var(--text-muted);
}
.account-status strong { color: var(--text-strong); }
.status--chip { padding: 6px 12px; background: var(--surface-2); }
.label-mono { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.1em; color: var(--text-muted); }

.vip-card {
  --cut: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 24px 28px; background: var(--surface);
}
.vip-card__level { display: flex; flex-direction: column; gap: 6px; }
.vip-card__name { display: flex; align-items: center; gap: 16px; }
.vip-card__name h2 { font: 800 40px/1 var(--font-display); text-transform: uppercase; color: var(--accent); }
.pips { display: inline-flex; gap: 8px; }
.pip { width: 12px; height: 12px; border: 1px solid var(--line-strong); transform: rotate(45deg); }
.pip--on { background: var(--accent); border-color: var(--accent); }
.vip-card__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; }
.vip-card__facts > div, .stat-grid > div, .char-card__stats > div, .jewel-grid > div { display: flex; flex-direction: column-reverse; }
.vip-card__facts dt, .stat-grid dt { font-size: 13px; color: var(--text-muted); }
.vip-card__facts dd { margin: 0; font: 500 22px/1.3 var(--font-mono); color: var(--text-strong); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.stat-grid > div { --cut: 14px; gap: 4px; padding: 20px 24px; background: var(--surface); }
.stat-grid dd { margin: 0; font: 500 30px/1.2 var(--font-mono); color: var(--text-strong); }

.account-section { display: flex; flex-direction: column; gap: 0; }
.account-section .section-head { margin-bottom: 18px; }
.account-section .info-note { margin-bottom: 14px; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.char-card { --cut: 16px; display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--surface); }
.char-card__head { display: flex; flex-direction: column; line-height: 1.3; }
.char-card__head h3 { font-size: 19px; font-weight: 600; color: var(--text-strong); }
.char-card__head span { font-size: 14px; color: var(--text-soft); }
.char-card__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.char-card__stats dt { font-size: 12px; color: var(--text-muted); }
.char-card__stats dd { margin: 0; font: 500 17px/1.3 var(--font-mono); color: var(--text-strong); }
.char-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-soft); }
.char-card__foot strong { font-weight: 500; color: var(--text); }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.mini-card { --cut: 18px; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); }
.mini-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mini-card__head h2, .mini-card__title {
  font: 800 28px/1 var(--font-display); text-transform: uppercase; color: var(--text-strong);
}
.mini-card__note { font-size: 14px; color: var(--text-muted); }
.mono-value { font: 500 16px/1.4 var(--font-mono); color: var(--text); }

.flag-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.flag { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flag__box {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-faint);
}
.flag--open .flag__box { border-color: var(--accent); background: var(--surface-2); color: var(--accent); }
.flag__label { font: 500 11px/1 var(--font-mono); color: var(--text-muted); }

.wh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wh {
  --cut: 10px;
  display: flex; align-items: center; justify-content: center; height: 64px;
  border: 1px dashed var(--line-strong); font: 500 13px/1 var(--font-mono); color: var(--text-faint);
}
.wh--open { border: 0; background: var(--accent); color: var(--on-accent); }

.jewel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.jewel-grid > div { gap: 2px; padding: 14px 18px; background: var(--surface); }
.jewel-grid dt { font-size: 13px; color: var(--text-muted); }
.jewel-grid dd { margin: 0; font: 500 20px/1.3 var(--font-mono); color: var(--text-faint); }
.jewel-grid .jewel--some dd { color: var(--item-jewel); }

/* Eventos */
.next-event {
  --cut: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: 32px clamp(24px, 4vw, 48px); background: var(--surface);
  box-shadow: inset 0 4px 0 var(--accent);
}
.next-event__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.next-event__name {
  font: 800 clamp(40px, 5vw, 64px)/0.95 var(--font-display); text-transform: uppercase; color: var(--text-strong);
}
.next-event__desc { max-width: 560px; color: var(--text-soft); }
.next-event__when { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.next-event__when > div { display: flex; flex-direction: column-reverse; }
.next-event__when dt { font-size: 13px; color: var(--text-muted); }
.next-event__when dd { margin: 0; font: 500 32px/1.2 var(--font-mono); color: var(--accent); }

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.event-card { --cut: 16px; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); }
.event-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.event-card h3 { font: 700 26px/1.1 var(--font-display); text-transform: uppercase; color: var(--text-strong); }
.event-card__duration { font: 500 12px/1 var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.event-card__desc, .event-card__next { font-size: 15px; color: var(--text-soft); }
.event-card__next strong { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }
.event-card__times { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.event-card__times li {
  padding: 4px 8px; background: var(--surface-2);
  font: 500 12px/1.2 var(--font-mono); color: var(--silver);
}

.filters { display: flex; flex-direction: column; gap: 14px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.filter-row__label { flex: 0 0 88px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--text-muted); }

.tabs, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tab {
  --cut: 8px;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--surface-2); color: var(--silver); text-decoration: none;
  font: 600 19px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.tab:hover { background: var(--line); color: var(--text-strong); }
.tab:hover .tab__count { color: var(--accent); }
.tab:active { transform: translateY(1px); }
/* Las esquinas cortadas recortan el contorno: el foco se dibuja por dentro. */
.tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.tab.is-current { background: var(--accent); color: var(--on-accent); }
.tab.is-current:hover { background: var(--accent-hover); }
.tab.is-current .tab__count { color: var(--on-accent); }
.tab.is-current:focus-visible { box-shadow: inset 0 0 0 2px var(--on-accent); }

.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--field-line); color: var(--silver); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { color: var(--text-strong); border-color: var(--accent); background: rgba(240, 180, 76, 0.08); }
.chip.is-current { border-color: var(--accent); color: var(--accent); }

.podium {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px;
  margin: 8px 0 0; padding: 0; list-style: none;
}
.podium__card { --cut: 20px; display: flex; flex-direction: column; gap: 18px; padding: 22px 24px 24px; background: var(--surface); }
.podium__card--1 { box-shadow: inset 0 4px 0 var(--accent); }
.podium__card--2 { box-shadow: inset 0 4px 0 var(--silver); }
.podium__card--3 { box-shadow: inset 0 4px 0 var(--bronze); }
.podium__top { display: flex; align-items: center; gap: 18px; }
.podium__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-size: 14px; color: var(--text-soft); }
.podium__name { font-size: 20px; font-weight: 600; color: var(--text-strong); }
.podium__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding-top: 14px; border-top: 1px solid var(--line);
}
.podium__stats > div { display: flex; flex-direction: column-reverse; }
.podium__stats dt { font-size: 12px; color: var(--text-muted); }
.podium__stats dd { margin: 0; font: 500 20px/1.3 var(--font-mono); color: var(--text-strong); }

.table-wrap { --cut: 18px; overflow-x: auto; background: var(--surface); }
.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.table th {
  padding: 14px 20px; background: var(--surface-2); text-align: left;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.table th[aria-sort] { color: var(--accent); }
.table td { padding: 11px 20px; border-top: 1px solid var(--line-soft); color: var(--text-soft); }
.table .table__pos { width: 56px; font-family: var(--font-mono); font-size: 13px; }
.table .table__num { text-align: right; font-family: var(--font-mono); }
.table td.table__name, .table td.table__num { color: var(--text-strong); }
.table td.table__name { font-weight: 600; }

.presence { font-size: 13px; color: var(--text-faint); }
.presence--online { display: inline-flex; align-items: center; gap: 8px; color: var(--ok-text); }
.presence--online .status__dot { background: var(--ok); }

/* ---------- Botín: tablas de drop por jefe, evento y caja ---------- */

.tab__count { margin-left: 8px; font: 500 13px/1 var(--font-mono); color: var(--text-muted); }

/* Cambio de pestaña: se anima solo el panel; el título y las pestañas quedan quietos. */
.is-loot-swap main { view-transition-name: none; }
.is-loot-swap .loot-panel { view-transition-name: loot-panel; }
::view-transition-group(loot-panel) { animation: none; }
::view-transition-old(loot-panel) { animation: loot-swap-out 0.18s ease-in both; }
::view-transition-new(loot-panel) { animation: loot-swap-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes loot-swap-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes loot-swap-in { from { opacity: 0; transform: translateY(10px); } }

/* Respaldo para navegadores sin View Transitions. */
.loot-panel.is-loot-in { animation: loot-swap-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.loot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.loot-card {
  --cut: 16px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 24px;
  background: var(--surface); text-decoration: none;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
/* Mismo destello diagonal que los botones, más suave porque la tarjeta es grande. */
.loot-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(240, 180, 76, 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
}
.loot-card:hover, .loot-card:focus-visible {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 3px 0 var(--accent);
}
.loot-card:hover::after, .loot-card:focus-visible::after { transform: translateX(120%); transition: transform 0.7s ease; }
.loot-card:focus-visible { outline: none; }
.loot-card__kind { font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; color: var(--accent); }
.loot-card__name { font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--text-strong); transition: color 0.18s ease; }
.loot-card:hover .loot-card__name, .loot-card:focus-visible .loot-card__name { color: var(--accent); }
.loot-card__meta { font-size: 14px; color: var(--text-soft); }
.loot-card__coins { margin-top: auto; font: 500 13px/1.4 var(--font-mono); color: var(--text-muted); }

.loot-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0; }
.loot-stats > div { padding: 18px 20px; background: var(--surface); }
.loot-stats dt { font-size: 13px; color: var(--text-muted); }
.loot-stats dd { margin: 0; font: 500 26px/1.2 var(--font-mono); color: var(--text-strong); }

.loot-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.loot-search .input { min-width: 260px; }

.loot-allow {
  display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 14px 20px;
  background: var(--surface-2); font-size: 14px; color: var(--text-soft);
}

.loot-drop { --cut: 16px; background: var(--surface); }
.loot-drop > summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  padding: 18px 24px; cursor: pointer; list-style: none;
}
.loot-drop > summary::-webkit-details-marker { display: none; }
.loot-drop > summary:hover { background: var(--surface-2); }
.loot-drop__label { flex: 1 1 200px; font-weight: 600; color: var(--text-strong); }
.loot-drop__rate { font: 500 16px/1 var(--font-mono); color: var(--accent); }
.loot-drop__meta { font-size: 13px; color: var(--text-muted); }

.loot-cats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
}
.loot-cat { padding: 18px 20px; background: var(--surface); }
.loot-cat > h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.loot-cat > h3 span { font-family: var(--font-mono); }
.loot-items { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.loot-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.loot-item__name { color: var(--text); }
.loot-item__level { font: 500 13px/1 var(--font-mono); color: var(--text-muted); }
.loot-tag { padding: 2px 7px; background: var(--surface-2); font: 500 11px/1.6 var(--font-mono); color: var(--text-soft); }
.loot-tag--exc { background: #2A1A38; color: #B488FF; }
.loot-more { margin-top: 12px; font-size: 13px; color: var(--text-faint); }

.loot-results { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.loot-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 20px; background: var(--surface); font-size: 15px; }
.loot-result__where { margin-left: auto; font-size: 13px; color: var(--text-muted); }


/* ---------- Transición entre páginas del menú (View Transitions) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

main { view-transition-name: page; }

::view-transition-group(nav-pill) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
::view-transition-group(page) { animation-duration: 0.35s; }

/* La página vieja sale rápido y la nueva entra un instante después, para que no se mezclen. */
html:active-view-transition-type(forward)::view-transition-old(page) { animation: page-out-left 0.2s ease-in both; }
html:active-view-transition-type(forward)::view-transition-new(page) { animation: page-in-right 0.32s ease-out 0.08s both; }
html:active-view-transition-type(back)::view-transition-old(page) { animation: page-out-right 0.2s ease-in both; }
html:active-view-transition-type(back)::view-transition-new(page) { animation: page-in-left 0.32s ease-out 0.08s both; }

/* Respaldo sin View Transitions entre páginas (Firefox): mismas animaciones, activadas desde nav-transition.js. */
html[data-swipe] body { overflow-x: clip; }
html[data-swipe="out-forward"] main { animation: page-out-left 0.2s ease-in both; }
html[data-swipe="out-back"] main { animation: page-out-right 0.2s ease-in both; }
html[data-swipe="in-forward"] main { animation: page-in-right 0.32s ease-out both; }
html[data-swipe="in-back"] main { animation: page-in-left 0.32s ease-out both; }
html[data-swipe-pill="pending"] .nav-pill { visibility: hidden; }
html[data-swipe-pill] .site-nav a.is-current { clip-path: none; color: var(--silver); }
.nav-pill { transform-origin: 0 0; }

@keyframes page-out-left { to { opacity: 0; transform: translateX(-80px); } }
@keyframes page-out-right { to { opacity: 0; transform: translateX(80px); } }
@keyframes page-in-right { from { opacity: 0; transform: translateX(80px); } }
@keyframes page-in-left { from { opacity: 0; transform: translateX(-80px); } }

/* ---------- Pantallas chicas y movimiento reducido ---------- */

@media (max-width: 700px) {
  .hero__inner { padding-top: 48px; padding-bottom: 200px; }
  .drop:nth-of-type(n + 6) { display: none; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .floor__plane, .drop__inner, .drop__ring { animation: none; }
  .btn::after { display: none; }
  .btn:active, a:hover > .arrow { transform: none; }
  .loot-panel.is-loot-in { animation: none; }
}
