/* =====================================================================
   BATTLE PASS V4 — S2 Despertar
   Hero full-bg + 3 filas stacked + misiones inline + tipografía limpia.
   ===================================================================== */

#bp4-content {
  display: block;
  /* Override de fuentes — más limpio, sin Cinzel pesado */
  --bp4-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bp4-font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --bp4-font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-family: var(--bp4-font);
}
#bp4-content.bp4-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: 28px;
  padding: 80px 0;
}

/* ============ HERO (background full-width) ============ */
.bp4-hero {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow:
    0 10px 36px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(255,200,87,0.18);
}
.bp4-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/bg/battle_pass.png') center / cover no-repeat, #0a0518;
  z-index: 0;
  filter: saturate(1.05);
}
.bp4-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,4,18,0.94) 0%, rgba(8,4,18,0.78) 35%, rgba(8,4,18,0.3) 65%, rgba(8,4,18,0.5) 100%),
    radial-gradient(ellipse at 25% 50%, rgba(184,132,255,0.18), transparent 50%),
    linear-gradient(180deg, rgba(8,4,18,0.25) 0%, transparent 30%, transparent 70%, rgba(8,4,18,0.6) 100%);
  z-index: 1;
}

/* Decoraciones de esquina (ornamental corners) */
.bp4-hero-deco {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}
.bp4-deco-tl {
  top: 12px; left: 12px;
  border-top: 2px solid rgba(255,200,87,0.55);
  border-left: 2px solid rgba(255,200,87,0.55);
  border-top-left-radius: 6px;
}
.bp4-deco-tr {
  top: 12px; right: 12px;
  border-top: 2px solid rgba(255,200,87,0.55);
  border-right: 2px solid rgba(255,200,87,0.55);
  border-top-right-radius: 6px;
}
.bp4-deco-bl {
  bottom: 12px; left: 12px;
  border-bottom: 2px solid rgba(255,200,87,0.4);
  border-left: 2px solid rgba(255,200,87,0.4);
  border-bottom-left-radius: 6px;
}
.bp4-deco-br {
  bottom: 12px; right: 12px;
  border-bottom: 2px solid rgba(255,200,87,0.4);
  border-right: 2px solid rgba(255,200,87,0.4);
  border-bottom-right-radius: 6px;
}

.bp4-hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  padding: 32px 36px;
  min-height: 360px;
  align-items: stretch;
}

/* LEFT side */
.bp4-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Ornamental rule + sigilo arriba del título */
.bp4-hero-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
}
.bp4-hero-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,200,87,0.6), transparent);
}
.bp4-hero-sigil {
  font-size: 22px;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(255,200,87,0.5));
}

.bp4-hero-title-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp4-hero-eyebrow {
  font-family: var(--bp4-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.bp4-hero-title {
  font-family: var(--bp4-font-display);
  font-size: 56px;
  font-weight: 600;
  margin: 0;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 0%, #ffd97a 45%, #b97f2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 24px rgba(255,200,87,0.25);
  filter: drop-shadow(0 0 12px rgba(255,200,87,0.15));
}
.bp4-hero-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  margin-top: 4px;
}
.bp4-hero-subtitle-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,200,87,0.4), transparent);
}
.bp4-hero-subtitle-text {
  font-family: var(--bp4-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,200,87,0.85);
  white-space: nowrap;
}
.bp4-roman {
  font-family: var(--bp4-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-left: 4px;
  vertical-align: -1px;
}

/* Card interno con nivel + xp — más ornado */
.bp4-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 22px;
  background:
    linear-gradient(180deg, rgba(20,10,42,0.65), rgba(8,4,18,0.78));
  border: 1px solid rgba(255,200,87,0.3);
  border-radius: 14px;
  align-items: center;
  backdrop-filter: blur(8px);
  max-width: 520px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 20px rgba(0,0,0,0.4);
}
.bp4-hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,200,87,0.5) 0%, transparent 30%, transparent 70%, rgba(255,200,87,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.bp4-circular {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.bp4-circ-svg { width: 100%; height: 100%; display: block; }
.bp4-circ-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 7; }
.bp4-circ-fg {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .7s ease;
  filter: drop-shadow(0 0 6px rgba(255,200,87,0.4));
}
.bp4-circ-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bp4-circ-lbl {
  font-family: var(--bp4-font);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.bp4-circ-cur {
  font-family: var(--bp4-font);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
}
.bp4-circ-max {
  font-family: var(--bp4-font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.bp4-hero-xp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bp4-hero-xp-label {
  font-family: var(--bp4-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,200,87,0.7);
  margin-bottom: 2px;
}
.bp4-hero-xp-nums {
  font-family: var(--bp4-font-mono);
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.bp4-hero-xp-nums b { color: #fff; font-weight: 700; font-size: 17px; }
.bp4-hero-xp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--bp4-font);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.bp4-hero-xp-foot i {
  color: var(--gold);
  font-size: 12px;
  margin-right: 4px;
}

.bp4-xp-bar {
  height: 8px;
  background: rgba(0,0,0,0.55);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.bp4-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #b884ff, #ffc857);
  border-radius: 99px;
  position: relative;
  transition: width .6s ease;
}
.bp4-xp-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: bp4-shine 2.5s linear infinite;
}
@keyframes bp4-shine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Banner premium/vip activo */
.bp4-premium-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(124,240,154,0.18), rgba(124,240,154,0.04));
  border: 1px solid rgba(124,240,154,0.45);
  border-radius: 12px;
  max-width: 480px;
  backdrop-filter: blur(6px);
}
.bp4-premium-banner i {
  font-size: 22px;
  color: #7cf09a;
  flex-shrink: 0;
}
.bp4-premium-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bp4-premium-banner-text b {
  font-family: var(--bp4-font);
  font-size: 13px;
  font-weight: 700;
  color: #7cf09a;
  letter-spacing: 0.02em;
}
.bp4-premium-banner-text span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
}
.bp4-vip-banner {
  background: linear-gradient(90deg, rgba(184,132,255,0.2), rgba(184,132,255,0.04));
  border-color: rgba(184,132,255,0.5);
}
.bp4-vip-banner i { color: #d6b8ff; }
.bp4-vip-banner b { color: #d6b8ff; }

/* RIGHT side */
.bp4-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.bp4-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bp4-art-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  font-family: var(--bp4-font);
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  cursor: default;
}
.bp4-art-tag i { font-size: 13px; color: var(--gold); }
.bp4-art-tag b { color: #fff; font-weight: 600; margin-left: 2px; font-family: var(--bp4-font-mono); font-size: 11.5px; }
button.bp4-art-tag {
  cursor: pointer;
  transition: all .15s ease;
  font-family: var(--bp4-font);
}
button.bp4-art-tag:hover {
  background: rgba(184,132,255,0.25);
  border-color: rgba(184,132,255,0.5);
  color: #fff;
}

.bp4-hero-cta {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
}
.bp4-buy-level-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(180deg, #ffd97a 0%, #ffc857 45%, #b97f2e 100%);
  color: #2a1a00;
  border: 1px solid #ffe19a;
  border-radius: 14px;
  font-family: var(--bp4-font);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow:
    0 8px 22px rgba(255,200,87,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.bp4-buy-level-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.bp4-buy-level-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(255,200,87,0.5),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.bp4-buy-level-btn:hover::before { transform: translateX(100%); }

/* Variante "Comprar Pase" — violeta-dorado, más llamativo */
.bp4-buy-pass-btn {
  background: linear-gradient(135deg, #ffc857 0%, #ff8d63 35%, #b884ff 100%);
  color: #1a0a2e;
  border-color: #ffe19a;
  box-shadow:
    0 8px 22px rgba(184,132,255,0.45),
    0 4px 14px rgba(255,200,87,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);
  animation: bp4-pass-pulse 2.4s ease-in-out infinite;
}
.bp4-buy-pass-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(184,132,255,0.55),
    0 6px 18px rgba(255,200,87,0.45),
    inset 0 1px 0 rgba(255,255,255,0.5);
  animation: none;
}
.bp4-buy-pass-btn .bp4-buy-level-icon {
  background: rgba(26,10,46,0.25);
  color: #2a1a00;
}
@keyframes bp4-pass-pulse {
  0%, 100% {
    box-shadow:
      0 8px 22px rgba(184,132,255,0.45),
      0 4px 14px rgba(255,200,87,0.35),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(184,132,255,0.65),
      0 6px 18px rgba(255,200,87,0.5),
      inset 0 1px 0 rgba(255,255,255,0.5);
  }
}
.bp4-buy-level-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42,26,0,0.18);
  border-radius: 10px;
  font-size: 20px;
  flex-shrink: 0;
}
.bp4-buy-level-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}
.bp4-buy-level-lbl {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bp4-buy-level-sub {
  font-weight: 600;
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 0.04em;
}
.bp4-buy-level-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(42,26,0,0.25);
  padding: 6px 12px;
  border-radius: 99px;
  margin-left: 6px;
  flex-shrink: 0;
}
.bp4-buy-level-cost i { color: #4ec6ff; font-size: 14px; }
.bp4-buy-level-cost b { font-family: var(--bp4-font); font-weight: 800; }
.bp4-max-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #ffc857, #b97f2e);
  color: #2a1a00;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--bp4-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

/* ============ TRACKS WRAP (con flechas laterales) ============ */
.bp4-tracks-wrap {
  position: relative;
  margin-bottom: 18px;
}
.bp4-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20,10,42,0.92);
  border: 1px solid rgba(184,132,255,0.4);
  color: #fff;
  cursor: pointer;
  z-index: 6;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.bp4-scroll-btn:hover {
  background: rgba(184,132,255,0.3);
  transform: translateY(-50%) scale(1.08);
}
.bp4-scroll-left  { left: -12px; }
.bp4-scroll-right { right: -12px; }

/* ============ TRACKS LAYOUT ============ */
.bp4-tracks {
  position: relative;
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(15,7,32,0.6), rgba(8,4,18,0.7));
  border: 1px solid rgba(255,200,87,0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 6px 20px rgba(0,0,0,0.35);
}

.bp4-tracks-labels {
  flex-shrink: 0;
  width: 132px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20,10,42,0.97), rgba(10,5,22,0.97));
  border-right: 2px solid rgba(255,200,87,0.18);
  z-index: 2;
}
.bp4-track-lbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--bp4-font);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  position: relative;
}
.bp4-track-lbl:last-child { border-bottom: none; }
.bp4-track-lbl i {
  font-size: 22px;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Linea de acento vertical a la izquierda de cada track activo */
.bp4-track-lbl-free::before,
.bp4-track-lbl-premium.is-active::before,
.bp4-track-lbl-vip.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
}
.bp4-track-lbl-free::before { background: linear-gradient(180deg, #b884ff, #6e3acc); }
.bp4-track-lbl-premium.is-active::before { background: linear-gradient(180deg, #ffc857, #b97f2e); }
.bp4-track-lbl-vip.is-active::before { background: linear-gradient(180deg, #d6b8ff, #6e3acc); }

.bp4-track-lbl-head {
  height: 42px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4);
  font-family: var(--bp4-font);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(255,200,87,0.15);
}

.bp4-track-lbl-free,
.bp4-track-lbl-premium,
.bp4-track-lbl-vip {
  height: 144px;
}
.bp4-track-lbl-free { color: #d8d8e3; }
.bp4-track-lbl-free i { color: #b884ff; }

.bp4-track-lbl-premium.is-active {
  background: linear-gradient(180deg, rgba(255,200,87,0.2), rgba(255,141,99,0.06));
  color: #ffe7a8;
}
.bp4-track-lbl-premium.is-active i { color: var(--gold); }
.bp4-track-lbl-premium.is-locked {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background .15s ease;
}
.bp4-track-lbl-premium.is-locked:hover {
  background: rgba(255,200,87,0.1);
  color: rgba(255,200,87,0.85);
}
.bp4-track-lbl-premium.is-locked i { color: rgba(255,200,87,0.5); }

.bp4-track-lbl-vip.is-active {
  background: linear-gradient(180deg, rgba(184,132,255,0.25), rgba(110,58,204,0.08));
  color: #d6b8ff;
}
.bp4-track-lbl-vip.is-active i { color: #d6b8ff; }
.bp4-track-lbl-vip.is-locked {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
  color: rgba(255,255,255,0.45);
  cursor: pointer;
}
.bp4-track-lbl-vip.is-locked:hover {
  background: rgba(184,132,255,0.1);
}
.bp4-track-lbl-vip.is-locked i { color: rgba(184,132,255,0.5); }

.bp4-track-status {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: var(--bp4-font);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.bp4-track-status-prem {
  background: linear-gradient(180deg, #ffc857, #b97f2e);
  color: #2a1a00;
}
.bp4-track-status-vip {
  background: linear-gradient(180deg, #b884ff, #6e3acc);
  color: #fff;
}

/* Scrollable cells container */
.bp4-tracks-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,132,255,0.3) transparent;
}
.bp4-tracks-scroll::-webkit-scrollbar { height: 10px; }
.bp4-tracks-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.25); }
.bp4-tracks-scroll::-webkit-scrollbar-thumb {
  background: rgba(184,132,255,0.3);
  border-radius: 99px;
}
.bp4-tracks-scroll::-webkit-scrollbar-thumb:hover { background: rgba(184,132,255,0.5); }

.bp4-tracks-grid {
  display: grid;
  grid-template-columns: repeat(var(--bp4-levels), 104px);
  grid-template-rows: 42px repeat(var(--bp4-rows), 144px);
  gap: 0;
  padding-bottom: 4px;
}

/* Level number header — más ornado */
.bp4-grid-lvl {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,200,87,0.15);
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0));
}
.bp4-grid-lvl span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 26px;
  padding: 0 10px;
  font-family: var(--bp4-font);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  letter-spacing: 0;
  transition: all .2s ease;
}
.bp4-grid-lvl.is-reached span {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.bp4-grid-lvl.is-milestone span {
  color: #d6b8ff;
  border-color: rgba(184,132,255,0.5);
  background: linear-gradient(180deg, rgba(184,132,255,0.15), rgba(184,132,255,0.04));
  box-shadow: 0 0 8px rgba(184,132,255,0.25);
}
.bp4-grid-lvl.is-current span {
  background: linear-gradient(180deg, #ffc857, #b97f2e);
  color: #2a1a00;
  border-color: #ffd97a;
  box-shadow:
    0 0 14px rgba(255,200,87,0.55),
    inset 0 1px 0 rgba(255,255,255,0.35);
  font-weight: 800;
  transform: scale(1.08);
}

/* CELL — grid interno para alineación perfecta */
.bp4-cell {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 28px;
  align-items: center;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  background: rgba(255,255,255,0.015);
  border-right: 1px solid rgba(255,255,255,0.04);
  transition: background .15s ease, transform .15s ease;
}
.bp4-cell:hover {
  background: rgba(255,255,255,0.06);
  z-index: 1;
}
.bp4-cell:last-child { border-right: none; }

/* Columna del nivel actual: accent gold a lo largo de todas las filas */
.bp4-cell.is-current-col {
  background: linear-gradient(180deg, rgba(255,200,87,0.14), rgba(255,200,87,0.04));
  border-right: 1px solid rgba(255,200,87,0.35);
  border-left: 1px solid rgba(255,200,87,0.35);
}
.bp4-cell.is-current-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,200,87,0.05) 0%, transparent 50%, rgba(255,200,87,0.05) 100%);
  pointer-events: none;
}
.bp4-cell.is-milestone:not(.is-current-col) {
  background: linear-gradient(180deg, rgba(184,132,255,0.06), rgba(184,132,255,0.02));
}

/* Track row tints — más distinguibles */
.bp4-cell-free {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.bp4-cell-premium {
  background-image: linear-gradient(180deg, rgba(255,200,87,0.05), rgba(255,200,87,0.01));
  border-top: 1px solid rgba(255,200,87,0.12);
}
.bp4-cell-vip {
  background-image: linear-gradient(180deg, rgba(184,132,255,0.07), rgba(184,132,255,0.02));
  border-top: 1px solid rgba(184,132,255,0.2);
}

/* Override milestone bg para mantener tinte de track */
.bp4-cell-premium.is-milestone:not(.is-current-col) {
  background-image: linear-gradient(180deg, rgba(255,200,87,0.1), rgba(184,132,255,0.04));
}
.bp4-cell-vip.is-milestone:not(.is-current-col) {
  background-image: linear-gradient(180deg, rgba(184,132,255,0.15), rgba(184,132,255,0.04));
}

.bp4-cell.is-locked-track {
  filter: grayscale(0.65) opacity(0.55);
}

.bp4-cell-body {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.bp4-cell-empty {
  font-size: 22px;
  color: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* REWARD CHIP — icono SIEMPRE como fondo, imagen overlay */
.bp4-rw {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.48));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: rgba(255,255,255,0.9);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 3px 8px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  /* 2026-06-04: clickeable → mostrar pointer + hover gold ring para que se note. */
  cursor: pointer;
}
.bp4-rw:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255,200,87,0.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 6px 16px rgba(0,0,0,0.55),
    0 0 18px rgba(255,200,87,0.30);
  z-index: 2;
}
.bp4-rw:active {
  transform: translateY(0) scale(1.0);
}
.bp4-cell:hover .bp4-rw {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 12px rgba(0,0,0,0.45);
}
/* Multi-rewards: 2+ rewards en la misma celda → más chicos pero consistentes */
.bp4-cell-body:has(.bp4-rw + .bp4-rw) .bp4-rw {
  width: 44px;
  height: 44px;
}
.bp4-rw-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: inherit;
  z-index: 0;
  pointer-events: none;
}
.bp4-rw-icon iconify-icon,
.bp4-rw-icon .bp4-iconify {
  font-size: 38px;
  width: 38px;
  height: 38px;
  color: inherit;
  display: inline-block;
}
.bp4-cell-body:has(.bp4-rw + .bp4-rw) .bp4-rw .bp4-rw-icon {
  font-size: 22px;
}
.bp4-cell-body:has(.bp4-rw + .bp4-rw) .bp4-rw .bp4-rw-icon iconify-icon,
.bp4-cell-body:has(.bp4-rw + .bp4-rw) .bp4-rw .bp4-rw-icon .bp4-iconify {
  font-size: 26px;
  width: 26px;
  height: 26px;
}
.bp4-rw-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
  z-index: 1;
}
.bp4-rw-num {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--bp4-font-mono);
  color: #fff;
  text-shadow: 0 1px 2px #000;
  background: rgba(0,0,0,0.82);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1;
  z-index: 2;
  letter-spacing: 0.02em;
}

.bp4-rw-gold {
  background: linear-gradient(180deg, rgba(255,200,87,0.18), rgba(0,0,0,0.45));
  border-color: rgba(255,200,87,0.5);
  color: var(--gold);
}
.bp4-rw-attr {
  background: linear-gradient(180deg, rgba(255,112,144,0.16), rgba(0,0,0,0.45));
  border-color: rgba(255,112,144,0.45);
  color: #ff7090;
}
.bp4-rw-tree {
  background: linear-gradient(180deg, rgba(124,240,154,0.16), rgba(0,0,0,0.45));
  border-color: rgba(124,240,154,0.45);
  color: #7cf09a;
}
.bp4-rw-race.r-common    { border-color: rgba(168,168,179,0.45); }
.bp4-rw-race.r-uncommon  { border-color: rgba(95,214,132,0.55); box-shadow: inset 0 0 8px rgba(95,214,132,0.15); }
.bp4-rw-race.r-rare      { border-color: rgba(90,166,255,0.55); box-shadow: inset 0 0 8px rgba(90,166,255,0.15); }
.bp4-rw-race.r-epic      { border-color: rgba(184,132,255,0.55); box-shadow: inset 0 0 8px rgba(184,132,255,0.18); }
.bp4-rw-race.r-legendary { border-color: rgba(255,200,87,0.6);  box-shadow: inset 0 0 10px rgba(255,200,87,0.2); }

.bp4-rw-box.r-common    { border-color: rgba(168,168,179,0.4); }
.bp4-rw-box.r-uncommon  { border-color: rgba(95,214,132,0.45); }
.bp4-rw-box.r-rare      { border-color: rgba(90,166,255,0.5); }
.bp4-rw-box.r-epic      { border-color: rgba(184,132,255,0.5); }
.bp4-rw-box.r-legendary { border-color: rgba(255,200,87,0.55); }

.bp4-rw-scroll  { border-color: rgba(184,132,255,0.4); }
.bp4-rw-potion  { border-color: rgba(95,214,132,0.4); }

/* Status icon — siempre en su fila del grid, alineado abajo */
.bp4-cell-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
  padding: 0;
  cursor: default;
  flex-shrink: 0;
  align-self: end;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.bp4-cell-status-claimed {
  background: linear-gradient(180deg, #7cf09a, #4ac675);
  border-color: #7cf09a;
  color: #062414;
}
.bp4-cell-status-ready {
  background: linear-gradient(180deg, #ffc857, #b97f2e);
  border-color: #ffd97a;
  color: #2a1a00;
  cursor: pointer;
  animation: bp4-pulse 1.6s ease-in-out infinite;
}
.bp4-cell-status-ready:hover { transform: scale(1.15); }
.bp4-cell-status-ready.is-claiming { animation: none; opacity: 0.7; }
@keyframes bp4-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,200,87,0.55); }
  50% { box-shadow: 0 0 0 6px rgba(255,200,87,0); }
}
.bp4-cell-status-locked { color: rgba(255,255,255,0.45); }
.bp4-cell-status-locked-track { color: var(--gold); }

.bp4-cell.is-ready {
  background: linear-gradient(180deg, rgba(255,200,87,0.1), rgba(255,200,87,0.02));
}
.bp4-cell.is-ready .bp4-rw {
  box-shadow: 0 0 0 1px rgba(255,200,87,0.4);
}

/* ============ MISIONES INLINE ============ */
.bp4-missions-section {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.bp4-missions-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bp4-missions-header-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184,132,255,0.18);
  border: 1px solid rgba(184,132,255,0.4);
  border-radius: 12px;
  font-size: 22px;
  color: #b884ff;
  flex-shrink: 0;
}
.bp4-missions-header-text {
  flex: 1;
  min-width: 0;
}
.bp4-missions-header-title {
  font-family: var(--bp4-font);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.bp4-missions-header-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  line-height: 1.3;
}

.bp4-missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ========== Mission card (v2 — rediseñado) ========== */
.bp4-mission {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25)),
    rgba(15,7,32,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: all .2s ease;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.bp4-mission::before {
  /* Accent vertical de color a la izquierda */
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--bp4-mc, rgba(255,200,87,0.6));
  opacity: 0.85;
}
.bp4-mission:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.22)),
    rgba(15,7,32,0.45);
  border-color: var(--bp4-mc, rgba(184,132,255,0.4));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 6px 16px rgba(0,0,0,0.35);
}

/* ===== Top row: icon + titles + XP pill ===== */
.bp4-mission-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bp4-mission-icon-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bp4-mc-bg, rgba(255,200,87,0.2)), rgba(0,0,0,0.4));
  border: 1px solid var(--bp4-mc, rgba(255,200,87,0.5));
  border-radius: 12px;
  font-size: 22px;
  color: var(--bp4-mc, var(--gold));
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 2px 6px rgba(0,0,0,0.3);
}
.bp4-mission-titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp4-mission-name {
  font-family: var(--bp4-font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.bp4-mission-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.2;
}
.bp4-mission-xp-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 5px 10px;
  background: linear-gradient(180deg, rgba(255,200,87,0.2), rgba(255,141,99,0.05));
  border: 1px solid rgba(255,200,87,0.45);
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.bp4-mission-xp-val {
  font-family: var(--bp4-font);
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.01em;
}
.bp4-mission-xp-lbl {
  font-family: var(--bp4-font);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,200,87,0.7);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-top: 2px;
}

/* ===== Progress section ===== */
.bp4-mission-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp4-mission-bar {
  height: 8px;
  background: rgba(0,0,0,0.55);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.bp4-mission-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bp4-mc, #b884ff), var(--bp4-mc-2, #6e3acc));
  border-radius: 99px;
  transition: width .5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 8px var(--bp4-mc-glow, rgba(184,132,255,0.4));
}
.bp4-mission-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: bp4-shine 2.5s linear infinite;
}
.bp4-mission-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bp4-mission-count {
  font-family: var(--bp4-font-mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.bp4-mission-count b {
  color: #fff;
  font-weight: 700;
}
.bp4-mission-count-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 1px;
}
.bp4-mission-pct {
  font-family: var(--bp4-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--bp4-mc, var(--gold));
  letter-spacing: 0.02em;
  padding: 1px 7px;
  background: rgba(0,0,0,0.4);
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ===== State row (completo / locked) ===== */
.bp4-mission-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--bp4-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bp4-mission-state.is-done {
  background: linear-gradient(180deg, rgba(124,240,154,0.2), rgba(124,240,154,0.05));
  border: 1px solid rgba(124,240,154,0.45);
  color: #7cf09a;
  box-shadow: 0 2px 8px rgba(124,240,154,0.15);
}
.bp4-mission-state.is-locked {
  background: linear-gradient(180deg, rgba(255,200,87,0.15), rgba(255,200,87,0.02));
  border: 1px solid rgba(255,200,87,0.4);
  color: var(--gold);
}
.bp4-mission-state i { font-size: 13px; }

/* ===== Premium ribbon (corner) ===== */
.bp4-mission-ribbon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #ffc857, #b97f2e);
  color: #2a1a00;
  border-radius: 99px;
  font-family: var(--bp4-font);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow:
    0 2px 8px rgba(255,200,87,0.45),
    inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 2;
}
.bp4-mission-ribbon i { font-size: 9px; }

/* ===== Variantes de estado ===== */
.bp4-mission.is-full {
  background:
    linear-gradient(180deg, rgba(124,240,154,0.12), rgba(124,240,154,0.02)),
    rgba(15,7,32,0.4);
  border-color: rgba(124,240,154,0.4);
}
.bp4-mission.is-full::before { background: linear-gradient(180deg, #7cf09a, #4ac675); }
.bp4-mission.is-full .bp4-mission-fill {
  background: linear-gradient(90deg, #7cf09a, #4ac675);
  box-shadow: 0 0 10px rgba(124,240,154,0.5);
}
.bp4-mission.is-full .bp4-mission-pct {
  color: #7cf09a;
  border-color: rgba(124,240,154,0.4);
}
.bp4-mission.is-full .bp4-mission-icon-box {
  background: linear-gradient(180deg, rgba(124,240,154,0.25), rgba(0,0,0,0.4));
  border-color: rgba(124,240,154,0.55);
  color: #7cf09a;
}

.bp4-mission.is-prem-locked {
  opacity: 0.78;
}
.bp4-mission.is-prem-locked .bp4-mission-icon-box {
  filter: saturate(0.6);
}
.bp4-mission.is-prem-locked .bp4-mission-fill {
  opacity: 0.35;
}

/* ===== Color variants (per source) ===== */
.bp4-mission-c-gold    { --bp4-mc: #ffc857; --bp4-mc-2: #b97f2e; --bp4-mc-bg: rgba(255,200,87,0.22); --bp4-mc-glow: rgba(255,200,87,0.4); }
.bp4-mission-c-red     { --bp4-mc: #ff7c7c; --bp4-mc-2: #b94545; --bp4-mc-bg: rgba(255,124,124,0.22); --bp4-mc-glow: rgba(255,124,124,0.4); }
.bp4-mission-c-crimson { --bp4-mc: #e94560; --bp4-mc-2: #8e1b30; --bp4-mc-bg: rgba(233,69,96,0.22);  --bp4-mc-glow: rgba(233,69,96,0.4); }
.bp4-mission-c-orange  { --bp4-mc: #ff9b54; --bp4-mc-2: #b96e26; --bp4-mc-bg: rgba(255,155,84,0.22); --bp4-mc-glow: rgba(255,155,84,0.4); }
.bp4-mission-c-amber   { --bp4-mc: #f5cf78; --bp4-mc-2: #b97f2e; --bp4-mc-bg: rgba(245,207,120,0.22);--bp4-mc-glow: rgba(245,207,120,0.4); }
.bp4-mission-c-azure   { --bp4-mc: #5aa6ff; --bp4-mc-2: #2e5fb9; --bp4-mc-bg: rgba(90,166,255,0.22); --bp4-mc-glow: rgba(90,166,255,0.4); }
.bp4-mission-c-cyan    { --bp4-mc: #4ec6ff; --bp4-mc-2: #2087c9; --bp4-mc-bg: rgba(78,198,255,0.22); --bp4-mc-glow: rgba(78,198,255,0.4); }
.bp4-mission-c-royal   { --bp4-mc: #8a7dff; --bp4-mc-2: #4538b9; --bp4-mc-bg: rgba(138,125,255,0.22);--bp4-mc-glow: rgba(138,125,255,0.4); }
.bp4-mission-c-violet  { --bp4-mc: #b884ff; --bp4-mc-2: #6e3acc; --bp4-mc-bg: rgba(184,132,255,0.22);--bp4-mc-glow: rgba(184,132,255,0.4); }
.bp4-mission-c-emerald { --bp4-mc: #5fd684; --bp4-mc-2: #2e8e48; --bp4-mc-bg: rgba(95,214,132,0.22); --bp4-mc-glow: rgba(95,214,132,0.4); }
.bp4-mission-c-bronze  { --bp4-mc: #cd8e52; --bp4-mc-2: #7a4f2a; --bp4-mc-bg: rgba(205,142,82,0.22); --bp4-mc-glow: rgba(205,142,82,0.4); }

/* ============ FOOTER CARDS (XP boost + Get levels) ============ */
.bp4-foot-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.bp4-foot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--bp4-font);
  text-align: left;
}
.bp4-foot-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(184,132,255,0.3);
  transform: translateY(-2px);
}
.bp4-foot-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,200,87,0.15);
  border: 1px solid rgba(255,200,87,0.4);
  border-radius: 12px;
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
}
.bp4-foot-xpboost.is-on .bp4-foot-icon {
  background: linear-gradient(180deg, rgba(255,200,87,0.3), rgba(255,141,99,0.2));
  border-color: rgba(255,200,87,0.6);
}
.bp4-foot-icon-violet {
  background: linear-gradient(180deg, rgba(184,132,255,0.25), rgba(110,58,204,0.18)) !important;
  border-color: rgba(184,132,255,0.5) !important;
  color: #fff !important;
}
.bp4-foot-buylvl {
  background: linear-gradient(135deg, rgba(184,132,255,0.18), rgba(110,58,204,0.08));
  border-color: rgba(184,132,255,0.4);
}
.bp4-foot-buylvl:hover {
  background: linear-gradient(135deg, rgba(184,132,255,0.28), rgba(110,58,204,0.14));
  border-color: rgba(184,132,255,0.6);
}
.bp4-foot-body { flex: 1; min-width: 0; }
.bp4-foot-title {
  font-family: var(--bp4-font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.bp4-foot-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
  line-height: 1.3;
}
.bp4-foot-chev {
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  flex-shrink: 0;
}

/* ============ BUY PREMIUM CTA ============ */
.bp4-buy-prem-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255,200,87,0.18) 0%, rgba(255,141,99,0.12) 100%);
  border: 1px solid rgba(255,200,87,0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s ease;
  margin-top: 6px;
  font-family: var(--bp4-font);
}
.bp4-buy-prem-cta:hover {
  background: linear-gradient(135deg, rgba(255,200,87,0.28) 0%, rgba(255,141,99,0.18) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,200,87,0.25);
}
.bp4-bp-left {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffc857, #b97f2e);
  color: #2a1a00;
  font-size: 24px;
  border-radius: 12px;
  flex-shrink: 0;
}
.bp4-bp-mid {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.bp4-bp-title {
  font-family: var(--bp4-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.bp4-bp-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  margin-top: 3px;
}
.bp4-bp-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,200,87,0.3);
  border-radius: 99px;
  font-weight: 700;
  color: var(--gold);
  font-size: 15px;
  flex-shrink: 0;
  font-family: var(--bp4-font-mono);
}
.bp4-bp-right i { color: #4ec6ff; }

/* ============ BUY LEVEL MODAL ============ */
.bp-buy-opts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.bp-buy-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,200,87,0.25);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.bp-buy-opt:hover:not(.is-disabled) {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(255,200,87,0.12), rgba(255,200,87,0.04));
}
.bp-buy-opt.is-disabled { opacity: 0.4; cursor: not-allowed; }
.bp-buy-opt-qty { font-weight: 700; font-size: 14px; }
.bp-buy-opt-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.bp-buy-opt-cost i { color: #4ec6ff; }
.bp-buy-opt-target {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', monospace;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .bp4-hero-content { grid-template-columns: 1fr; padding: 24px 22px; }
  .bp4-hero { min-height: auto; }
  .bp4-hero-right { align-items: stretch; }
  .bp4-hero-tags { justify-content: flex-start; }
  .bp4-hero-cta { justify-content: stretch; }
  .bp4-buy-level-btn { flex: 1; }
  .bp4-hero-title { font-size: 42px; }
  .bp4-hero-eyebrow { letter-spacing: 0.22em; }
  .bp4-tracks-labels { width: 110px; }
  .bp4-track-lbl { font-size: 12px; padding: 8px 4px; }
  .bp4-track-lbl i { font-size: 18px; }
  .bp4-track-status { font-size: 8px; padding: 1px 6px; }
  .bp4-foot-cards { grid-template-columns: 1fr; }
  .bp4-missions-grid { grid-template-columns: 1fr 1fr; }
  .bp4-deco { width: 36px; height: 36px; }
}
@media (max-width: 640px) {
  .bp4-hero-content { padding: 20px 18px; }
  .bp4-hero-card { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 16px; }
  .bp4-circular { width: 110px; height: 110px; }
  .bp4-circ-cur { font-size: 32px; }
  .bp4-hero-title { font-size: 34px; }
  .bp4-hero-sigil { font-size: 18px; }
  .bp4-tracks-grid {
    grid-template-columns: repeat(var(--bp4-levels), 88px);
    grid-template-rows: 38px repeat(var(--bp4-rows), 128px);
  }
  .bp4-cell { grid-template-rows: 1fr 24px; padding: 10px 5px 8px; }
  .bp4-rw { width: 54px; height: 54px; }
  .bp4-rw-icon { font-size: 26px; }
  .bp4-rw-icon iconify-icon, .bp4-rw-icon .bp4-iconify { font-size: 32px; width: 32px; height: 32px; }
  .bp4-cell-body:has(.bp4-rw + .bp4-rw) .bp4-rw { width: 38px; height: 38px; }
  .bp4-cell-body:has(.bp4-rw + .bp4-rw) .bp4-rw .bp4-rw-icon { font-size: 16px; }
  .bp4-cell-body:has(.bp4-rw + .bp4-rw) .bp4-rw .bp4-rw-icon iconify-icon { font-size: 22px; width: 22px; height: 22px; }
  .bp4-cell-status { width: 22px; height: 22px; font-size: 12px; }
  .bp4-tracks-labels { width: 92px; }
  .bp4-track-lbl-free,
  .bp4-track-lbl-premium,
  .bp4-track-lbl-vip { height: 128px; }
  .bp4-scroll-btn { display: none; }
  .bp4-buy-level-btn { padding: 11px 14px; gap: 10px; }
  .bp4-buy-level-icon { width: 32px; height: 32px; font-size: 16px; }
  .bp4-buy-level-lbl { font-size: 12px; }
  .bp4-buy-level-sub { font-size: 9px; }
  .bp4-foot-card { padding: 12px 14px; }
  .bp4-missions-grid { grid-template-columns: 1fr; }
  .bp4-missions-header-title { font-size: 15px; }
  .bp4-missions-section { padding: 14px; }
}

/* =====================================================================
   2026-06-02l · BP4 "How does it work?" modal (Obsidian Codex)
   Tag distinto para items-de-raza + modal completo informativo.
   ===================================================================== */
.bp4-art-tag--race {
  background: rgba(212,175,55,0.10) !important;
  border-color: rgba(212,175,55,0.45) !important;
  color: #d4af37 !important;
}
.bp4-art-tag--race i { color: #ffc857 !important; }

.bp4-hw-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(20,10,40,0.78) 0%, rgba(4,2,12,0.92) 100%);
  backdrop-filter: blur(6px);
  padding: 16px;
  animation: bp4-hw-fadein 200ms ease-out;
}
@keyframes bp4-hw-fadein { from { opacity: 0; } to { opacity: 1; } }
.bp4-hw-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top, rgba(80,50,140,0.22) 0%, transparent 60%),
    linear-gradient(180deg, #15102a 0%, #0a0418 100%);
  border: 1px solid rgba(212,175,55,0.32);
  border-radius: 16px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
  color: #f5edd6;
  animation: bp4-hw-pop 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bp4-hw-pop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.bp4-hw-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #f5edd6;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.bp4-hw-close:hover { background: rgba(255,80,80,0.25); transform: rotate(90deg); }
.bp4-hw-close i { font-size: 16px; }
.bp4-hw-header {
  padding: 20px 24px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(212,175,55,0.14);
}
.bp4-hw-rule {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  color: #d4af37;
}
.bp4-hw-rule span {
  width: 38px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
}
.bp4-hw-rule i { font-size: 18px; }
.bp4-hw-header h2 {
  margin: 0 0 6px;
  font-family: 'Cinzel', serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f5edd6;
}
.bp4-hw-header p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(245,237,214,0.62);
  line-height: 1.4;
}
.bp4-hw-body-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp4-hw-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  border-left-width: 3px;
}
.bp4-hw-row.is-gold  { border-left-color: #d4af37; }
.bp4-hw-row.is-free  { border-left-color: #5fd684; }
.bp4-hw-row.is-prem  { border-left-color: #a78bfa; }
.bp4-hw-row.is-vip   { border-left-color: #ffc857; }
.bp4-hw-row.is-race  {
  border-left-color: #d4af37;
  background: rgba(212,175,55,0.06);
  border-color: rgba(212,175,55,0.30);
}
.bp4-hw-ico {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.30);
  border-radius: 50%;
  color: #d4af37;
  font-size: 18px;
}
.bp4-hw-row.is-free .bp4-hw-ico  { background: rgba(95,214,132,0.10);  border-color: rgba(95,214,132,0.32);  color: #5fd684; }
.bp4-hw-row.is-prem .bp4-hw-ico  { background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.32); color: #a78bfa; }
.bp4-hw-row.is-vip .bp4-hw-ico   { background: rgba(255,200,87,0.10);  border-color: rgba(255,200,87,0.32);  color: #ffc857; }
.bp4-hw-body { flex: 1; min-width: 0; }
.bp4-hw-title {
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5edd6;
  margin-bottom: 4px;
}
.bp4-hw-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(245,237,214,0.78);
}
.bp4-hw-desc b { color: #ffc857; }
.bp4-hw-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(212,175,55,0.14);
  display: flex;
  justify-content: center;
}
.bp4-hw-ok-btn {
  padding: 10px 28px;
  background: linear-gradient(180deg, rgba(212,175,55,0.20), rgba(212,175,55,0.08));
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 8px;
  color: #f5edd6;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.bp4-hw-ok-btn:hover {
  background: linear-gradient(180deg, rgba(212,175,55,0.30), rgba(212,175,55,0.14));
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .bp4-hw-modal { max-height: calc(100vh - 16px); border-radius: 14px; }
  .bp4-hw-header { padding: 16px 18px 10px; }
  .bp4-hw-header h2 { font-size: 16px; }
  .bp4-hw-header p { font-size: 11.5px; }
  .bp4-hw-body-list { padding: 12px 14px; gap: 8px; }
  .bp4-hw-row { padding: 10px; gap: 10px; }
  .bp4-hw-title { font-size: 12.5px; }
  .bp4-hw-desc { font-size: 11.5px; }
  .bp4-hw-ico { width: 32px; height: 32px; font-size: 16px; }
}
