/* NAVBAR STICKY DEL HUB */
.hub-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 30px;
  background: rgba(7, 5, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav-liepard-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.45));
}

.nav-eyebrow {
  display: block;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--liepard-gold);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.hub-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hub-tab {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.16s ease;
}

.hub-tab span {
  color: var(--text-muted);
  font-size: 11px;
}

.hub-tab:hover {
  color: var(--text-main);
  background: rgba(124, 58, 237, 0.16);
}

.hub-tab.is-active {
  background: var(--liepard-gold);
  color: #07050c;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.35);
}

.hub-tab.is-active span {
  color: #3b136c;
}

.nav-badge {
  font-style: normal;
  background: var(--liepard-crimson);
  color: #fff;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
}

.nav-status-group {
  display: flex;
  align-items: center;
}

.irc-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 7px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(245, 197, 24, 0.12));
  border: 1px solid var(--border-gold);
  color: var(--liepard-gold-bright);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.cat-status-emoji {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.irc-indicator.is-offline {
  opacity: 0.65;
  border-color: var(--border-subtle);
}

/* CONTENEDOR DE VISTAS */
.hub-shell {
  position: relative;
  z-index: 2;
  max-width: 1520px;
  margin: 0 auto;
  padding: 24px 30px 64px;
}

.view-section {
  display: none;
  animation: fadeSlide 0.22s ease;
}

.view-section.is-visible {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO POKEALEX + LIEPARD + METAS DE SUBS */
.hero-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(400px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
  align-items: stretch;
}

.hero-card-pokealex {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  background:
    linear-gradient(130deg, rgba(59, 19, 108, 0.55) 0%, rgba(17, 11, 28, 0.96) 58%, rgba(245, 197, 24, 0.12) 100%);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 32px;
  overflow: hidden;
  align-items: center;
}

.hero-display-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-role-text {
  color: var(--liepard-gold);
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 14.5px;
  margin-top: 8px;
}

.hero-manifesto {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
}

.hero-quick-jumps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn-primary-gold {
  background: linear-gradient(135deg, var(--liepard-gold-bright), var(--liepard-gold));
  color: #07050c;
  border: none;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary-gold:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 28px rgba(245, 197, 24, 0.45);
}

/* REDES SOCIALES */
.socials-showcase {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
}

.socials-kicker {
  display: block;
  font-family: var(--font-tech);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.socials-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.social-brand-btn {
  --brand-color: #f5c518;
  --brand-bg: rgba(245, 197, 24, 0.14);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-tech);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(145deg, rgba(25, 16, 41, 0.92), rgba(9, 6, 16, 0.96));
  border: 1px solid color-mix(in srgb, var(--brand-color) 38%, rgba(255, 255, 255, 0.08));
  border-bottom: 3px solid var(--brand-color);
  padding: 8px 11px 8px 9px;
  border-radius: 12px;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease;
}

.social-left-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.social-left-wrap span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg);
  color: var(--brand-color);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-icon-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.social-brand-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, var(--brand-bg), rgba(17, 11, 28, 0.95));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-color) 28%, transparent);
}

.social-brand-btn:hover .social-icon-badge {
  transform: rotate(-6deg) scale(1.08);
  background: var(--brand-color);
  color: #07050c;
}

.social-brand-btn:hover .social-arrow {
  transform: translate(2px, -2px);
  color: var(--brand-color);
}

/* COMPOSICIÓN FOTO POKEALEX + LIEPARD */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 375px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(168, 85, 247, 0.48), rgba(11, 7, 20, 0.95) 75%);
  border: 2px solid var(--border-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 24px;
  overflow: visible;
}

.pokealex-portrait {
  width: 94%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
}

.liepard-companion {
  position: absolute;
  width: 136px;
  height: 136px;
  object-fit: contain;
  right: -24px;
  bottom: -16px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 14px rgba(168, 85, 247, 0.55));
  pointer-events: none;
}

/* TARJETA DE METAS DE SUBS */
.subgoal-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 197, 24, 0.1), transparent 50%),
    var(--bg-surface);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.subgoal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kicker-gold {
  display: block;
  font-family: var(--font-tech);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--liepard-gold);
  text-transform: uppercase;
}

.card-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-main);
}

.subgoal-counter-jewel {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: linear-gradient(145deg, #1d1132, #0b0714);
  border: 1.5px solid var(--border-gold);
  padding: 8px 15px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 18px rgba(245, 197, 24, 0.08);
}

.subgoal-current-big {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff7c2 0%, var(--liepard-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(245, 197, 24, 0.35));
}

.subgoal-divider {
  font-family: var(--font-tech);
  color: var(--liepard-purple-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.subgoal-target-num {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-soft);
}

.subgoal-unit {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--liepard-gold);
  margin-left: 3px;
}

.subgoal-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subgoal-bar-outer {
  flex: 1;
  height: 14px;
  background: var(--bg-obsidian);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: 2px;
}

.subgoal-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--liepard-purple), var(--liepard-gold-bright));
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.45);
  transition: width 0.45s ease;
}

.subgoal-pct-badge {
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 700;
  color: var(--liepard-gold-bright);
  min-width: 38px;
  text-align: right;
}

/* LISTA DE METAS */
.milestones-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.milestone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  transition: all 0.2s ease;
}

.milestone-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.milestone-num-pill {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(7, 5, 12, 0.65);
  color: var(--liepard-gold);
  border: 1px solid rgba(245, 197, 24, 0.25);
  min-width: 54px;
  text-align: center;
  flex-shrink: 0;
}

.milestone-title {
  color: var(--text-soft);
  font-weight: 500;
}

.milestone-status-tag {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.milestone-item.unlocked {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(245, 197, 24, 0.16));
  border-color: var(--liepard-gold);
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.12);
}

.milestone-item.unlocked .milestone-num-pill {
  background: var(--liepard-gold);
  color: #07050c;
  border-color: var(--liepard-gold);
}

.milestone-item.unlocked .milestone-title {
  color: var(--text-main);
  font-weight: 700;
}

.milestone-item.unlocked .milestone-status-tag {
  background: var(--liepard-gold);
  color: #07050c;
}

.milestone-item.next-up {
  border-color: var(--liepard-purple-light);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.24), var(--bg-elevated));
}

.milestone-item.next-up .milestone-status-tag {
  background: rgba(168, 85, 247, 0.28);
  color: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

/* PIE DE PARTICIPANTES Y METAS ALCANZADAS */
.uptime-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.footer-mini-stat {
  background: rgba(7, 5, 12, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-mini-stat span {
  display: block;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-mini-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-main);
}

.footer-mini-stat strong.gold-highlight {
  color: var(--liepard-gold);
}

/* PÍLDORAS REUTILIZABLES EN FICHA DE USUARIO */
.pill-gold {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--liepard-gold-dim);
  color: var(--liepard-gold-bright);
  border: 1px solid var(--border-gold);
}

.pill-violet {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.25);
  color: #e9d5ff;
  border: 1px solid var(--border-subtle);
}

/* TARJETAS BASE Y STREAM + CHAT EN TIEMPO REAL */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(25, 16, 41, 0.65);
  flex-wrap: wrap;
}

.player-head-titles {
  min-width: 0;
  flex: 1;
}

.player-head-titles .card-heading {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-chip {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-chip:hover {
  border-color: var(--liepard-gold);
}

.btn-chip-gold {
  background: var(--liepard-gold);
  color: #07050c;
  border-color: var(--liepard-gold);
}

.btn-chip-close {
  background: rgba(239, 68, 100, 0.18);
  color: #ff8fa3;
  border-color: rgba(239, 68, 100, 0.45);
  padding: 6px 9px;
}

.btn-chip-close:hover {
  background: var(--liepard-crimson);
  color: #fff;
  border-color: var(--liepard-crimson);
}

.hub-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(380px, 1fr);
  gap: 20px;
  align-items: start;
}

.video-aspect {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030207;
}

.video-aspect iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* DOCK MINI-PLAYER FLOTANTE + PÍLDORA DE REAPERTURA */
.floating-pip-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 375px;
  z-index: 90;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-gold);
}

.floating-pip-dock .card-head {
  padding: 8px 12px;
}

.floating-pip-dock .kicker-gold {
  display: none;
}

.floating-pip-dock .card-heading {
  font-size: 0.82rem;
}

.reopen-pip-pill {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  color: var(--liepard-gold-bright);
  border: 1.5px solid var(--border-gold);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.reopen-pip-pill:hover {
  transform: translateY(-2px);
  background: var(--liepard-gold);
  color: #07050c;
}

.reopen-pip-pill[hidden],
.floating-pip-dock[hidden] {
  display: none !important;
}

/* FEED DE ACTIVIDAD EN VIVO */
.hint-tag,
.count-pill {
  font-family: var(--font-tech);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--liepard-gold-dim);
  color: var(--liepard-gold-bright);
  border: 1px solid var(--border-gold);
}

.live-feed-list {
  list-style: none;
  max-height: 460px;
  overflow-y: auto;
}

.feed-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  font-size: 13.5px;
}

.feed-row:hover {
  background: var(--bg-elevated);
}

.feed-row.is-pokemon {
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.2), rgba(124, 58, 237, 0.2));
  border-left: 4px solid var(--liepard-gold);
}

.feed-row.is-battle {
  background: linear-gradient(90deg, rgba(239, 68, 100, 0.2), transparent);
  border-left: 4px solid var(--liepard-crimson);
}

.user-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.user-name-strong {
  font-weight: 700;
  color: var(--text-main);
}

.user-name-strong:hover {
  color: var(--liepard-gold);
}

.pts-tag {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--liepard-gold);
  color: #07050c;
  white-space: nowrap;
}

.sub-badge {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--liepard-purple);
  color: var(--liepard-gold-bright);
}

.feed-poke-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.feed-text {
  color: var(--text-soft);
  word-break: break-word;
}

.feed-delta {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  color: var(--liepard-gold);
  white-space: nowrap;
}

/* SECCIÓN COMBATES */
.section-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-big-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.command-guide {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.arena-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
}

.arena-side-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.battles-stack,
.waiting-stack,
.recent-stack {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.battle-arena-card {
  background: linear-gradient(155deg, var(--bg-elevated), var(--bg-obsidian));
  border: 1.5px solid var(--liepard-gold);
  border-radius: var(--radius-md);
  padding: 18px;
}

.battle-timer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-tech);
  font-size: 12px;
  margin-bottom: 8px;
}

.battle-countdown-bar {
  height: 8px;
  background: var(--bg-obsidian);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.battle-countdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--liepard-crimson), var(--liepard-gold));
  transition: width 0.25s linear;
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.fighter-box {
  background: rgba(7, 5, 12, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}

.fighter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.type-mult-pill {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  color: var(--liepard-gold);
}

.vs-emblem {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--liepard-gold);
  padding: 8px;
}

.battle-highlights {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-tech);
  font-size: 11.5px;
  color: var(--text-soft);
  display: grid;
  gap: 4px;
}

.waiting-item,
.recent-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* PESTAÑAS DE RANKING Y FILAS */
.ranking-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
}

.rank-tab.is-active {
  background: var(--liepard-purple);
  border-color: var(--liepard-gold);
  color: var(--liepard-gold-bright);
}

.leaderboard-container {
  max-height: 680px;
  overflow-y: auto;
}

.lb-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
  cursor: pointer;
}

.lb-row:hover {
  background: var(--bg-hover);
}

.lb-row.top-1 {
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.16), transparent);
  border-left: 4px solid var(--liepard-gold);
}
.lb-row.top-2 {
  border-left: 4px solid var(--liepard-purple-light);
}
.lb-row.top-3 {
  border-left: 4px solid var(--liepard-crimson);
}

.lb-rank {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
}
.top-1 .lb-rank { color: var(--liepard-gold); }

.lb-stat-focus {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 14px;
  color: var(--liepard-gold-bright);
  text-align: right;
  min-width: 120px;
}

.mini-team-strip {
  display: flex;
  gap: 4px;
}

.mini-sprite {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-subtle);
  padding: 2px;
  object-fit: contain;
}

.mini-sprite.tier-S { border-color: var(--liepard-gold); }
.mini-sprite.tier-Z { border-color: var(--liepard-crimson); }

/* BUSCAR USUARIOS / INSPECTOR DE 6 SLOTS CON TIPOS */
.pokedex-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  gap: 20px;
  align-items: start;
}

.inspector-panel {
  padding: 20px;
}

.search-form-lg {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.search-form-lg input {
  flex: 1;
  background: var(--bg-obsidian);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  padding: 13px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
}

.search-form-lg input:focus {
  outline: none;
  border-color: var(--liepard-gold);
}

.search-form-lg button {
  background: var(--liepard-gold);
  color: #07050c;
  border: none;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-tech);
  font-weight: 700;
  cursor: pointer;
}

.trainer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.t-stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.t-stat-box span {
  display: block;
  font-family: var(--font-tech);
  font-size: 10.5px;
  color: var(--text-muted);
}

.t-stat-box strong {
  font-family: var(--font-tech);
  font-size: 1.2rem;
}

.team-6-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pokemon-card-slot {
  position: relative;
  background: var(--bg-obsidian);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 148px;
  justify-content: center;
}

.pokemon-card-slot.tier-S { border-color: var(--liepard-gold); }
.pokemon-card-slot.tier-Z { border-color: var(--liepard-crimson); }
.pokemon-card-slot.empty { border-style: dashed; opacity: 0.5; }

.pokemon-card-slot img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.poke-types-row {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.type-pill {
  font-family: var(--font-tech);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--liepard-gold-bright);
  border: 1px solid var(--border-subtle);
}

.rules-body {
  padding: 18px 20px;
  display: grid;
  gap: 9px;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border-radius: 8px;
}

.rule-row strong {
  font-family: var(--font-tech);
  color: var(--liepard-gold);
}

.rule-row.highlight {
  border: 1px solid var(--border-gold);
}

.rule-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 6px 0;
}

.rule-note {
  font-size: 13px;
  color: var(--text-soft);
}

.empty-box {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-tech);
  font-size: 13px;
}

/* TABLETS INTERMEDIAS (SIN AFECTAR ESCRITORIO) */
@media (max-width: 1160px) {
  .hero-bento,
  .hub-live-grid,
  .arena-columns,
  .pokedex-layout {
    grid-template-columns: 1fr;
  }
  .hero-card-pokealex {
    grid-template-columns: 1fr;
  }
  .socials-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .floating-pip-dock,
  .reopen-pip-pill {
    display: none !important;
  }
}

/* ==================== VISTA EXCLUSIVA PARA MÓVILES ==================== */
@media (max-width: 768px) {
  /* Navbar compacta: Logo + Electrogatita arriba y cuadrícula 2x2 simétrica debajo */
  .hub-navbar {
    padding: 10px 12px;
    gap: 10px;
  }

  .nav-brand {
    order: 1;
    gap: 8px;
  }

  .nav-liepard-icon {
    width: 34px;
    height: 34px;
  }

  .nav-eyebrow {
    font-size: 9px;
  }

  .nav-logo-text {
    font-size: 1.08rem;
  }

  .nav-status-group {
    order: 2;
    margin-left: auto;
  }

  .irc-indicator {
    padding: 5px 11px;
    font-size: 11.5px;
    gap: 6px;
  }

  .hub-tabs {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border-radius: 14px;
    padding: 6px;
  }

  .hub-tab {
    justify-content: center;
    text-align: center;
    border-radius: 9px;
    padding: 9px 6px;
    font-size: 11.5px;
    gap: 5px;
    width: 100%;
  }

  /* Contenedor general ajustado a bordes móviles */
  .hub-shell {
    padding: 14px 12px 44px;
  }

  .hero-bento {
    gap: 16px;
    margin-bottom: 16px;
  }

  /* Tarjeta PokeAlex centrada y cuadrada */
  .hero-card-pokealex {
    padding: 20px 16px 24px;
    gap: 20px;
    text-align: center;
  }

  .hero-display-name {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .hero-role-text {
    font-size: 13px;
  }

  .hero-manifesto {
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-quick-jumps {
    justify-content: center;
    margin-top: 18px;
  }

  .btn-primary-gold {
    width: 100%;
    padding: 13px 16px;
    text-align: center;
  }

  .socials-showcase {
    margin-top: 20px;
    padding-top: 16px;
  }

  .socials-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .social-brand-btn {
    padding: 8px 9px;
    font-size: 11.5px;
  }

  .social-icon-badge {
    width: 25px;
    height: 25px;
  }

  /* Retrato sin desborde lateral de Liepard */
  .portrait-frame {
    max-width: 248px;
    height: 280px;
    margin: 0 auto 6px;
    padding-top: 18px;
  }

  .liepard-companion {
    width: 102px;
    height: 102px;
    right: -10px;
    bottom: -10px;
  }

  /* Tarjeta de Metas de Subs cuadrada en móvil */
  .subgoal-card {
    padding: 18px 15px;
    gap: 12px;
  }

  .subgoal-top {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  .subgoal-counter-jewel {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }

  .milestone-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .milestone-left {
    gap: 7px;
  }

  .milestone-num-pill {
    min-width: 48px;
    font-size: 11px;
    padding: 2px 6px;
  }

  .milestone-title {
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
  }

  .milestone-status-tag {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  .uptime-strip {
    gap: 8px;
  }

  .footer-mini-stat {
    padding: 9px 10px;
  }

  .footer-mini-stat span {
    font-size: 9.5px;
    line-height: 1.25;
  }

  .footer-mini-stat strong {
    font-size: 1.1rem;
  }

  /* Cabeceras de tarjetas y chat en vivo en 2 líneas limpias */
  .card-head {
    padding: 12px 14px;
  }

  .card-heading {
    font-size: 1rem;
  }

  .hub-live-grid {
    gap: 16px;
  }

  .live-feed-list {
    max-height: 380px;
  }

  .feed-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    padding: 10px 14px;
  }

  .feed-row .user-inline {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px;
  }

  .feed-row .feed-delta {
    grid-column: 2;
    grid-row: 1;
    align-self: flex-start;
    font-size: 10.5px;
  }

  .feed-row .feed-text {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 13px;
    line-height: 1.38;
  }

  /* Sección 02 Combates cuadrada verticalmente */
  .section-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .section-big-title {
    font-size: 1.45rem;
  }

  .command-guide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px;
    width: 100%;
    font-size: 12.5px;
  }

  .battles-stack,
  .waiting-stack,
  .recent-stack {
    padding: 12px;
    gap: 12px;
  }

  .battle-arena-card {
    padding: 14px 12px;
  }

  .battle-timer-top {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .vs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vs-emblem {
    text-align: center;
    padding: 2px 0;
    font-size: 1.05rem;
  }

  .fighter-head {
    flex-wrap: wrap;
    gap: 4px;
  }

  .mini-team-strip {
    flex-wrap: wrap;
  }

  .waiting-item,
  .recent-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Sección 03 Rankings: pestañas cuadradas en bloque y filas de 2 pisos */
  .ranking-category-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .rank-tab {
    text-align: center;
    padding: 10px 8px;
    font-size: 11.5px;
    width: 100%;
  }

  .rank-tab:last-child {
    grid-column: 1 / -1;
  }

  .lb-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px 14px;
  }

  .lb-row > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.92rem;
  }

  .lb-row > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .lb-row > :nth-child(2) .user-inline {
    flex-wrap: wrap;
    gap: 5px;
  }

  .lb-row > :nth-child(4) {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    font-size: 12.5px;
    align-self: flex-start;
  }

  .lb-row > :nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 8px;
    border-top: 1px dashed rgba(168, 85, 247, 0.16);
  }

  /* Sección 04 Buscar Usuarios: sin zoom en iOS + cuadrículas 2x3 exactas */
  .inspector-panel {
    padding: 14px 12px;
  }

  .search-form-lg {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  .search-form-lg input {
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
  }

  .search-form-lg button {
    width: 100%;
    padding: 13px 16px;
  }

  .trainer-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .t-stat-box {
    padding: 9px 10px;
  }

  .t-stat-box strong {
    font-size: 1.08rem;
  }

  .team-6-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .pokemon-card-slot {
    min-height: 136px;
    padding: 11px 8px 10px;
  }

  .pokemon-card-slot img {
    width: 60px;
    height: 60px;
  }

  .rules-body {
    padding: 14px 12px;
  }

  .rule-row {
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
  }

  .rule-row strong {
    white-space: nowrap;
  }
}