/* ===== Battle Pass — reference layout ===== */

.bpv {
  --bp-bg: #0a0a0c;
  --bp-panel: #121218;
  --bp-card: #16161c;
  --bp-line: rgba(255, 255, 255, 0.08);
  --bp-gold: #f0b429;
  --bp-gold-2: #d4920a;
  --bp-muted: rgba(247, 241, 230, 0.55);
  --bp-text: #f4efe6;
  position: relative;
  min-height: calc(100vh - 2.5rem - 58px);
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(240, 180, 41, 0.08), transparent 55%),
    radial-gradient(700px 380px at 10% 100%, rgba(60, 90, 160, 0.1), transparent 50%),
    var(--bp-bg);
  color: var(--bp-text);
  overflow: auto;
  padding: 1rem 1rem 5.25rem;
}

.bpv__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
}

/* Header */
.bpv-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.25rem 0.5rem 0;
}

.bpv-head--compact {
  grid-template-columns: 1fr;
  margin-bottom: 0.75rem;
}

.bpv-head__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.bpv-head__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 180, 41, 0.45);
  background: #0d0d12;
}

.bpv-head__brand-name {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bp-gold);
  font-weight: 700;
}

.bpv-head__title {
  margin: 0.1rem 0 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #f8fafc;
}

.bpv-head__lead {
  margin: 0.55rem 0 0.85rem;
  max-width: 46ch;
  color: var(--bp-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bpv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.bpv-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--bp-line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.78);
}

.bpv-chip--gold {
  color: #1a1408;
  border-color: transparent;
  background: linear-gradient(120deg, #a78bfa, var(--bp-gold));
}

.bpv-xp__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bp-muted);
}

.bpv-xp__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(240, 180, 41, 0.15);
}

.bpv-xp__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bp-gold-2), var(--bp-gold), #ffe29a);
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.45);
}

.bpv-head__art {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bpv-head__case {
  width: min(220px, 42vw);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  transform: translateX(-18px);
}

.bpv-head__char {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(150px, 28vw);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}

/* Body */
.bpv-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 72px;
  gap: 0.75rem;
  align-items: stretch;
}

.bpv-body--solo {
  grid-template-columns: minmax(0, 1fr) 72px;
}

/* Left side */
.bpv-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.65rem;
  border-radius: 16px;
  border: 1px solid var(--bp-line);
  background: linear-gradient(180deg, #15151c, #0e0e14);
  text-align: center;
}

.bpv-side__ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 180, 41, 0.4);
}

.bpv-side__get {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(120deg, #ffe29a, var(--bp-gold));
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.bpv-side__get.is-locked,
.bpv-side__prem.is-locked {
  cursor: default;
  color: rgba(247, 241, 230, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.bpv-side__lvl {
  margin-top: 0.35rem;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

.bpv-side__cap {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--bp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bpv-side__prem {
  appearance: none;
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid rgba(240, 180, 41, 0.55);
  background: transparent;
  color: var(--bp-gold);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(240, 180, 41, 0.12);
}

.bpv-side__prem.is-on {
  cursor: default;
  background: rgba(240, 180, 41, 0.08);
}

.bpv-side__ghost {
  appearance: none;
  width: 100%;
  border: 1px solid var(--bp-line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(247, 241, 230, 0.8);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.45rem 0.4rem;
  cursor: pointer;
}

.bpv-keys {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.25rem;
}

.bpv-keys__item {
  appearance: none;
  border: 1px solid var(--bp-line);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
  display: grid;
  grid-template-columns: 28px auto;
  grid-template-rows: auto auto;
  column-gap: 0.35rem;
  align-items: center;
  padding: 0.35rem;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.bpv-keys__item img {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bpv-keys__item b {
  font-size: 0.75rem;
  color: var(--bp-gold);
}

.bpv-keys__item span {
  font-size: 0.62rem;
  color: var(--bp-muted);
}

/* Tracks */
.bpv-main {
  min-width: 0;
  padding: 0.75rem 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--bp-line);
  background: rgba(12, 12, 16, 0.72);
  position: relative;
}

.bpv-tracks {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
}

.bpv-tracks__labels {
  display: grid;
  grid-template-rows: 122px 28px 122px;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0;
}

.bpv-line__tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  color: rgba(247, 241, 230, 0.72);
}

.bpv-line__tag--prem {
  color: var(--bp-gold);
}

.bpv-line__tag--prem span {
  margin-left: 0.15rem;
}

.bpv-tracks__scroll {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 180, 41, 0.35) transparent;
  padding-bottom: 0.25rem;
}

.bpv-col {
  flex: 0 0 108px;
  display: grid;
  grid-template-rows: 122px 28px 122px;
  gap: 0.35rem;
  align-items: center;
}

.bpv-mark {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(247, 241, 230, 0.35);
}

.bpv-col.is-open .bpv-mark {
  color: rgba(247, 241, 230, 0.7);
}

.bpv-col.is-current .bpv-mark {
  color: var(--bp-gold);
  text-shadow: 0 0 12px rgba(240, 180, 41, 0.45);
}

.bpv-col--mile .bpv-mark {
  color: #ffe29a;
}

.bpv-card {
  width: 100%;
  height: 122px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.25rem;
  padding: 0.55rem 0.4rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bp-card);
  box-sizing: border-box;
}

.bpv-col.is-current .bpv-card {
  border-color: rgba(240, 180, 41, 0.75);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.25), 0 0 22px rgba(240, 180, 41, 0.18);
}

.bpv-card--locked,
.bpv-card--need-prem {
  opacity: 0.55;
  filter: grayscale(0.2);
}

.bpv-card--claimed {
  opacity: 0.85;
}

.bpv-card--ready {
  border-color: rgba(93, 222, 160, 0.35);
}

.bpv-card--case .bpv-card__label {
  color: #ffe29a;
}

.bpv-card__media {
  display: grid;
  place-items: center;
  min-height: 48px;
}

.bpv-card__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.bpv-card__rc {
  display: grid;
  justify-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.bpv-card__rc small {
  font-size: 0.65rem;
  color: var(--bp-gold);
  letter-spacing: 0.08em;
}

.bpv-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: rgba(247, 241, 230, 0.88);
}

.bpv-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(93, 222, 160, 0.95);
}

.bpv-card__status i {
  font-style: normal;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(93, 222, 160, 0.2);
  font-size: 0.55rem;
}

.bpv-card__lock {
  font-size: 0.75rem;
  color: rgba(247, 241, 230, 0.4);
}

.bpv-card__claim {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(120deg, #ffe29a, var(--bp-gold));
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.bpv-more {
  appearance: none;
  border: 1px solid rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.06);
  color: var(--bp-gold);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  margin-top: 0.75rem;
  float: right;
}

/* Right rail */
.bpv-rail {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.35rem;
}

.bpv-rail__btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bp-muted);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.2rem;
  border-radius: 12px;
  cursor: pointer;
}

.bpv-rail__btn span {
  font-size: 1.1rem;
  line-height: 1;
}

.bpv-rail__btn.is-active {
  color: var(--bp-gold);
  border-color: rgba(240, 180, 41, 0.45);
  box-shadow: 0 0 18px rgba(240, 180, 41, 0.15);
  background: rgba(240, 180, 41, 0.06);
}

/* Footer */
.bpv-foot {
  position: sticky;
  bottom: 0.5rem;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.bpv-foot__back {
  appearance: none;
  border: 1px solid var(--bp-line);
  background: rgba(12, 12, 16, 0.92);
  color: rgba(247, 241, 230, 0.85);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.bpv-foot__tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid var(--bp-line);
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(8px);
}

.bpv-foot__tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bp-muted);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 68px;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  cursor: pointer;
}

.bpv-foot__tab span {
  font-size: 1rem;
}

.bpv-foot__tab.is-active {
  color: var(--bp-gold);
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow: 0 0 16px rgba(240, 180, 41, 0.18);
}

/* Info / tasks */
.bpv-panel {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--bp-line);
  background: rgba(12, 12, 16, 0.8);
}

.bpv-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.bpv-panel p {
  margin: 0 0 0.85rem;
  color: var(--bp-muted);
}

.bpv-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(247, 241, 230, 0.85);
  line-height: 1.55;
}

.bpv-panel__sub {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: rgba(247, 241, 230, 0.9);
}

.bpv-tasks {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.bpv-task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--bp-line);
  background: rgba(0, 0, 0, 0.28);
}

.bpv-task.is-done {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 101, 52, 0.18);
}

.bpv-task__ico {
  font-size: 1.4rem;
  line-height: 1;
}

.bpv-task__body h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.bpv-task__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--bp-muted);
}

.bpv-task__reward {
  text-align: right;
  display: grid;
  gap: 0.15rem;
}

.bpv-task__reward b {
  color: #fde68a;
  font-size: 0.95rem;
}

.bpv-task__reward span {
  font-size: 0.72rem;
  color: var(--bp-muted);
}

.bpv-task.is-done .bpv-task__reward span {
  color: #86efac;
}

@media (max-width: 980px) {
  .bpv-head {
    grid-template-columns: 1fr;
  }
  .bpv-head__art {
    display: none;
  }
  .bpv-body {
    grid-template-columns: 1fr;
  }
  .bpv-rail {
    display: none;
  }
  .bpv-side {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .bpv-side__lvl {
    font-size: 2.4rem;
  }
  .bpv-tracks {
    grid-template-columns: 1fr;
  }
  .bpv-tracks__labels {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .bpv-line__tag--gap {
    display: none;
  }
}
