/* =============================================================
   Rewards — Complete UI v10
   Dark + Red theme matching CCE design language
   ============================================================= */

/* ── CSS vars ─────────────────────────────────────────────── */
:root {
  --rw-red:        #f4012b;
  --rw-red-dim:    rgba(244,1,43,.14);
  --rw-gold:       #f1c40f;
  --rw-gold-dim:   rgba(241,196,15,.13);
  --rw-card:       #1a1a1a;
  --rw-card-2:     #111111;
  --rw-card-grad:  linear-gradient(180deg, rgba(26,26,26,0.95) 0%, rgba(13,13,13,0.98) 100%);
  --rw-border:     rgba(255,255,255,.10);
  --rw-border-mid: rgba(255,255,255,.15);
  --rw-text:       #e2e4e8;
  --rw-muted:      #8a8e96;
  --rw-green:      #22c55e;
  --rw-blue:       #60a5fa;
  --bp-progress-grey: #34373d;
  --bp-progress-gradient: linear-gradient(90deg,
    #f4012b 0%, #f39c12 6.25%, #f1c40f 12.5%, #f39c12 18.75%, #f4012b 25%,
    #f39c12 31.25%, #f1c40f 37.5%, #f39c12 43.75%, #f4012b 50%,
    #f39c12 56.25%, #f1c40f 62.5%, #f39c12 68.75%, #f4012b 75%,
    #f39c12 81.25%, #f1c40f 87.5%, #f39c12 93.75%, #f4012b 100%);
  --bp-progress-line-height: 6px;
  --bp-progress-node-size: 20px;
}

/* ── Page shell ───────────────────────────────────────────── */
.rewards-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  color: var(--rw-text);
}

/* ── Page header ──────────────────────────────────────────── */
.rw-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.rw-header h1 {
  font-family: 'Apex', sans-serif;
  font-size: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.rw-header h1 i { color: var(--rw-red); }
.rw-token-chip {
  background: var(--rw-card);
  border: 1px solid var(--rw-border-mid);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rw-gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* ── Tab nav (styled like ranking division tabs) ──────────── */
.rw-tabs {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.rw-tab-group {
  display: flex;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rw-tab {
  background-color: transparent;
  color: #888;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Apex', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.rw-tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.rw-tab.is-active {
  background: linear-gradient(135deg, #f4012b 0%, #d00124 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(244, 1, 43, 0.3);
}
.rw-tab i {
  font-size: 14px;
  line-height: 1;
}
.rw-tab.is-active i {
  color: #fff;
  opacity: 1;
}
.rw-tab:hover i {
  color: #fff;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .rw-tab:hover::before { animation: none; }
}

/* ── Credits balance display — right side of section header ── */
.rw-balance-display {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Apex', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #ffe27a;
  line-height: 1;
  text-shadow: 0 0 10px rgba(241,196,15,.30), 0 0 2px rgba(255,255,255,.34);
}
.rw-balance-display span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-top: 1px;
}
.rw-balance-display .rw-credit-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  top: 0;
  filter: brightness(1.18) saturate(1.14) drop-shadow(0 0 9px rgba(241,196,15,.34));
}

/* ── Inline credit icon (costs, modal, etc.) ───────────────── */
.rw-credit-icon { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; position: relative; top: -1px; }

/* ── Banners ──────────────────────────────────────────────── */
.rw-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #d6d9de;
  background: rgba(244,1,43,.08);
  border: 1px solid rgba(244,1,43,.25);
}
.rw-banner i { color: var(--rw-red); font-size: 16px; flex-shrink: 0; }
.rw-banner a { color: var(--rw-red); font-weight: 600; }
.rw-banner__text { flex: 1; }
.rw-banner__text strong { color: #fff; display: block; margin-bottom: 2px; font-family: 'Apex', sans-serif; letter-spacing: 1px; }
.rw-banner--shareplay {
  background: linear-gradient(100deg, rgba(241,196,15,.06) 0%, rgba(18,18,22,0.0) 55%);
  border-color: rgba(241,196,15,.28);
  border-left: 3px solid rgba(241,196,15,.7);
}
.rw-banner--shareplay i { color: var(--rw-gold); }
.rw-banner__cta {
  background: var(--rw-red);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rw-banner__cta:hover { background: #d60125; }
/* SharePlay banner — gold-tinted ghost button to match the gold accent */
.rw-banner--shareplay .rw-banner__cta {
  background: rgba(241,196,15,.10);
  color: #f1c40f !important;
  border: 1px solid rgba(241,196,15,.40);
}
.rw-banner--shareplay .rw-banner__cta:hover {
  background: rgba(241,196,15,.20);
  border-color: rgba(241,196,15,.70);
  color: #ffe066 !important;
}

/* ── Card ─────────────────────────────────────────────────── */
.rw-card { background: var(--rw-card-grad); border: 1px solid var(--rw-border); border-radius: 12px; padding: 20px 22px; }

/* ── Progress bar ─────────────────────────────────────────── */
.rw-progress { height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.rw-progress-bar { height: 100%; background: linear-gradient(90deg,var(--rw-red),#ff4d6d); border-radius: 3px; transition: width .4s ease; }

/* ── Empty state ──────────────────────────────────────────── */
.rw-empty {
  text-align: center; padding: 48px 24px; color: var(--rw-muted);
  background: var(--rw-card-grad); border: 1px dashed var(--rw-border-mid);
  border-radius: 12px; font-size: 15px;
}
.rw-empty i { font-size: 28px; display: block; margin-bottom: 10px; color: #333; }

/* ── Pill filters ─────────────────────────────────────────── */
.rw-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rw-pill {
  background: var(--rw-card); border: 1px solid var(--rw-border-mid);
  color: var(--rw-muted); padding: 6px 14px; border-radius: 9999px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.rw-pill:hover { border-color: var(--rw-red); color: #fff; }
.rw-pill.is-active { background: var(--rw-red); border-color: var(--rw-red); color: #fff; }

/* ── Toast ────────────────────────────────────────────────── */
.rewards-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #1c1f25; border: 1px solid var(--rw-green); border-left: 4px solid var(--rw-green);
  color: #fff; padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 9999; animation: rw-toast-in .2s ease;
}
.rewards-toast a { color: var(--rw-gold); margin-left: 8px; }
.rewards-toast--error { border-color: var(--rw-red); border-left-color: var(--rw-red); }
@keyframes rw-toast-in { from { transform: translateY(10px); opacity:0; } to { transform:none; opacity:1; } }

/* =============================================================
   HUB — XP Leaderboard
   ============================================================= */

.rw-user-hero {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center; margin-bottom: 28px;
  background: var(--rw-card-grad); border: 1px solid var(--rw-border);
  border-radius: 14px; padding: 22px 28px;
}
.rw-user-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(244,1,43,.4); object-fit: cover;
  background: #1a1a1a; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #555;
  box-shadow: 0 0 0 4px rgba(244,1,43,.08);
}
.rw-user-info__name {
  font-family: 'Apex', sans-serif;
  font-size: 22px; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 5px;
  background: linear-gradient(145deg, #ffffff 20%, rgba(255,255,255,.5) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rw-user-info__badges {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.rw-user-info__prog-label { font-size: 12px; color: var(--rw-muted); margin-top: 6px; }
.rw-level-badge {
  padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; display: inline-block;
  font-family: 'Apex', sans-serif;
}
.rw-level-badge--grey  { background: rgba(150,150,150,.15); color: #b0b0b0; }
.rw-level-badge--green { background: rgba(34,197,94,.15); color: #22c55e; }
.rw-level-badge--blue  { background: rgba(59,130,246,.15); color: var(--rw-blue); }
.rw-level-badge--red   { background: var(--rw-red-dim); color: var(--rw-red); }
.rw-rank-pill {
  background: var(--rw-red-dim); color: var(--rw-red);
  padding: 3px 10px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; font-family: 'Apex', sans-serif;
  letter-spacing: .5px; text-transform: uppercase;
}
.rw-user-stats {
  display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; color: var(--rw-muted);
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rw-border);
}
.rw-user-stats > span {
  padding-right: 16px; margin-right: 16px;
  border-right: 1px solid var(--rw-border);
}
.rw-user-stats > span:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.rw-user-stats strong { color: #fff; font-family: 'Apex', sans-serif; font-size: 13px; letter-spacing: .5px; }
.rw-user-stats i { color: var(--rw-red); margin-right: 6px; }
.rw-stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--rw-muted); margin-right: 6px; font-family: 'Apex', sans-serif; }
.rw-xp-display { text-align: right; display: flex; flex-direction: column; gap: 12px; }
.rw-xp-block { text-align: right; }
.rw-xp-value { font-family:'Apex',sans-serif; font-size: 28px; color: #fff; line-height: 1; }
.rw-xp-label { font-size: 10px; color: var(--rw-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 3px; }
.rw-xp-block + .rw-xp-block { padding-top: 12px; border-top: 1px solid var(--rw-border); }

/* Leaderboard */
.rw-section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rw-section-title { font-family:'Apex',sans-serif; font-size: 20px; color: #fff; display: flex; align-items: center; gap: 8px; margin: 0; }
.rw-section-title i { color: var(--rw-red); }
/* ── Battle Pass Section Header ── */
.rw-bp-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 20px; padding: 0 2px;
}
.rw-bp-header__left { line-height: 1; }
.rw-bp-header__eyebrow {
  font-family: 'Apex', sans-serif;
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--rw-red); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.rw-bp-header__title {
  font-family: 'Apex', sans-serif;
  font-size: 46px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin: 0; line-height: 1;
  background: linear-gradient(145deg, #ffffff 20%, rgba(255,255,255,.5) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rw-bp-header__right { text-align: right; flex-shrink: 0; padding-bottom: 2px; min-width: 210px; }
.rw-bp-header__season {
  font-family: 'Apex', sans-serif; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--rw-muted); margin-bottom: 7px;
}
.rw-bp-header__progress { font-family: 'Apex', sans-serif; font-size: 24px; }
.rw-bp-header__cur { color: var(--rw-red); font-weight: 700; }
.rw-bp-header__sep { color: rgba(255,255,255,.2); margin: 0 5px; }
.rw-bp-header__max { color: rgba(255,255,255,.45); }
/* Live countdown */
.rw-bp-countdown {
  font-family: 'Apex', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--rw-red);
  line-height: 1;
  text-shadow: 0 0 18px rgba(244,1,43,.45);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: block;
  min-width: 210px;
  text-align: right;
}
/* ── Divider Heading (used for Leaderboard) ── */
.rw-div-heading {
  display: flex; align-items: center; gap: 14px;
}
.rw-div-heading__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1) 30%, rgba(255,255,255,.1) 70%, transparent);
}
.rw-div-heading__inner {
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: 'Apex', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #fff;
}
.rw-div-heading__inner i { color: #fbbf24; font-size: 13px; }
.rw-div-heading__badge {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fbbf24;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.28);
  padding: 2px 7px; border-radius: 4px;
}
.rw-table-wrap {
  background: var(--rw-card-grad);
  border: 1px solid var(--rw-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
}
.rw-table-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.rw-table-section-hd {
  padding: 20px 24px 16px;
  position: relative;
}
.rw-table-section-title {
  font-family: 'Apex', sans-serif;
  font-size: 30px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; margin: 0; line-height: 1;
  background: linear-gradient(145deg, #ffffff 20%, rgba(255,255,255,.5) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rw-table { width: 100%; border-collapse: collapse; table-layout: fixed; position: relative; }
.rewards-page > .rw-table-wrap {
  background: transparent;
  border: none;
  overflow: visible;
}
.rewards-page > .rw-table-wrap::before { display: none; }
.rewards-page > .rw-table-wrap > .rw-table {
  background: var(--rw-card-grad);
  border: 1px solid var(--rw-border);
  border-radius: 14px;
  overflow: hidden;
}
/* Fixed column widths — keeps headers aligned with data cells */
.rw-table col.col-rank  { width: 56px; }
.rw-table col.col-level { width: 112px; }
.rw-table col.col-xp    { width: 154px; }
.rw-table col.col-msg   { width: 126px; }
.rw-table col.col-voice { width: 126px; }
/* Center leaderboard metric columns so headers and values share the same axis */
.rw-table th:nth-child(n+3),
.rw-table td:nth-child(n+3),
.rw-table th.rw-num,
.rw-table .rw-num { text-align: center; }
.rw-table th {
  padding: 12px 16px; background: rgba(255,255,255,.03);
  color: var(--rw-muted); font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 700; text-align: left;
  font-family: 'Apex', sans-serif; border-bottom: 1px solid var(--rw-border);
}
.rw-table td { padding: 13px 16px; border-top: 1px solid var(--rw-border); color: var(--rw-text); vertical-align: middle; }
.rw-table tr.is-me td { background: rgba(244,1,43,.06); }
.rw-table tr.is-me td:first-child { border-left: 3px solid var(--rw-red); }
/* Placeholder rows for unfilled leaderboard slots */
.rw-lb-placeholder { opacity: .28; pointer-events: none; }
.rw-lb-placeholder:hover { background: transparent !important; }
.rw-lb-dash { color: var(--rw-muted) !important; font-size: 13px; }
.rw-avatar-empty {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.04); border: 1px solid var(--rw-border);
  flex-shrink: 0;
}
.rw-table tr:hover td { background: rgba(255,255,255,.025); }
.rw-num { text-align: right; font-variant-numeric: tabular-nums; font-family: 'Apex', sans-serif; font-size: 15px; color: #fff; }
.rw-player-cell { display: flex; align-items: center; gap: 12px; }
.rw-avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #1a1a1a; flex-shrink: 0; border: 1px solid var(--rw-border); }
.rw-medal-gold   { color: #f1c40f; font-weight: 700; font-family: 'Apex', sans-serif; font-size: 15px; }
.rw-medal-silver { color: #bdc3c7; font-weight: 700; font-family: 'Apex', sans-serif; font-size: 15px; }
.rw-medal-bronze { color: #cd7f32; font-weight: 700; font-family: 'Apex', sans-serif; font-size: 15px; }
.rw-table-rank { font-family: 'Apex', sans-serif; font-size: 14px; color: var(--rw-muted); }
.rw-progress--sm { width: 80px; height: 5px; }
.rw-how-details { background: var(--rw-card-grad); border: 1px solid var(--rw-border); border-radius: 12px; padding: 14px 18px; margin-top: 24px; }
.rw-how-details summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; display: flex; align-items: center; gap: 8px; }
.rw-how-details summary i { color: var(--rw-red); }
.rw-how-details summary::-webkit-details-marker { display: none; }
.rw-how-list { list-style: none; padding: 14px 0 0; margin: 0; color: #c0c5cc; }
.rw-how-list li { padding: 5px 0; }/* =============================================================
   COMBINED HERO CARD (hub.html - Battle Pass + Leaderboard)
   ============================================================= */
.rw-season-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; margin-bottom: 16px; padding: 10px 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--rw-border); border-radius: 10px;
}
.rw-season-title { font-family:'Apex',sans-serif; font-size:13px; color:#fff; letter-spacing:.5px; text-transform:uppercase; display:flex; align-items:center; gap:8px; }
.rw-season-title i { color:var(--rw-red); }
.rw-season-dates { font-size:12px; color:var(--rw-muted); }
.rw-stat-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(196px, 230px);
  gap: 32px; align-items: center; margin-bottom: 28px;
  background: transparent; border: none;
  border-radius: 0; padding: 30px 34px;
}
/* When rw-stat-hero lives inside rw-table-wrap it becomes a flush inner row */
.rw-table-wrap .rw-stat-hero {
  background: transparent;
  border: none;
  border-bottom: none;
  border-radius: 0;
  margin: 0;
  padding: 30px clamp(22px, 3vw, 36px) 32px;
  position: relative;
  z-index: 1;
}
.rw-avatar-lg { width: 120px; height: 120px; }
.rw-hero-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rw-hero-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 18px; }
.rw-hero-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rw-stat-hero .rw-user-info__name {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: 1.6px;
  padding-bottom: .1em;
  overflow: visible;
  overflow-wrap: anywhere;
}
.rw-stat-hero .rw-level-badge {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 8px;
}
.rw-hero-prog { margin-bottom: 10px; max-width: 100%; }
.rw-hero-prog-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--rw-muted); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 7px; font-family:'Apex',sans-serif;
}
.rw-hero-prog-label span:first-child {
  font-size: 15px;
  line-height: 1.2;
}
.rw-stat-hero .rw-progress { height: 10px; border-radius: 999px; }
.rw-stat-hero .rw-progress-bar { border-radius: inherit; }
.rw-hero-prog-sub { font-size: 14px; line-height: 1.35; color: var(--rw-muted); margin-top: 8px; font-family: 'URW Dock', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.rw-hero-prog--bp { margin-bottom: 12px; }
.rw-hero-right {
  min-width: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 0%, rgba(244,1,43,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 18px 36px rgba(0,0,0,.20), inset 0 0 0 1px rgba(255,255,255,.025);
}
.rw-hero-stat {
  width: 100%;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  text-align: center;
}
.rw-hero-stat:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.rw-hero-stat__label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; color: var(--rw-muted); margin-bottom: 8px; font-family:'Apex',sans-serif; }
.rw-hero-stat__value { font-family:'Apex',sans-serif; font-size: clamp(24px, 2.55vw, 32px); color: #fff; line-height: 1; overflow-wrap: anywhere; }
.rw-hero-stat__sub { font-size: 12px; color: var(--rw-muted); margin-top: 2px; }
.rw-track-section {
  margin-bottom: 28px;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 24px 24px 20px;
  position: relative;
  overflow: hidden;
}
.rw-track-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.rw-track-section .rw-section-hd { margin-bottom: 12px; }


/* =============================================================
   BATTLE PASS — horizontal scroll track
   ============================================================= */

.bp-page-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.bp-page-header h1 { font-family:'Apex',sans-serif; font-size: 26px; color: #fff; margin: 0 0 6px; }
.bp-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--rw-muted); flex-wrap: wrap; }
.bp-status-pill { padding: 2px 9px; border-radius: 9999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.bp-status-pill--active    { background: rgba(34,197,94,.2); color: #22c55e; }
.bp-status-pill--past,
.bp-status-pill--draft     { background: rgba(255,255,255,.07); color: #888; }
.bp-status-pill--scheduled { background: rgba(59,130,246,.2);  color: var(--rw-blue); }

/* Summary bar */
.bp-summary {
  display: flex; background: var(--rw-card-grad); border: 1px solid var(--rw-border);
  border-radius: 14px; margin-bottom: 24px; overflow: hidden; flex-wrap: wrap;
}
.bp-stat {
  flex: 1; min-width: 120px; padding: 18px 22px;
  border-right: 1px solid var(--rw-border);
  display: flex; flex-direction: column; gap: 4px;
}
.bp-stat:last-child { border-right: none; }
.bp-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--rw-muted); }
.bp-stat__value { font-family:'Apex',sans-serif; font-size: 30px; color: #fff; line-height: 1; }
.bp-stat__sub { font-size: 13px; color: var(--rw-muted); }
.bp-stat--progress { flex: 2; min-width: 200px; justify-content: center; }
.bp-xp-bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--rw-muted); margin-bottom: 6px; }
.bp-xp-bar { height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.bp-xp-bar-fill { height: 100%; background: linear-gradient(90deg,#f1c40f,#f39c12); border-radius: 4px; transition: width .5s ease; }
.bp-xp-nums { font-size: 12px; color: var(--rw-muted); margin-top: 4px; }

/* Track */
/* ─────────────────────────────────────────────────────────────────────────────
   BATTLE PASS TRACK  (overhauled — in-game feel)
   ───────────────────────────────────────────────────────────────────────────── */
/* ── Outer wrapper — card styling now lives on .rw-track-section ── */
.bp-track-wrap {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  position: relative;
}
.bp-track-wrap::before { display: none; } /* dot-grid lives on .rw-track-section::before */
/* Progress bar below the track — no visible container, blends into section */
.rw-bp-track-prog {
  flex: 1;
  min-width: 0;
  position: relative; z-index: 1;
  padding: 4px 8px;
  background: transparent;
  border: none;
}
.rw-bp-track-prog .bp-xp-bar {
  height: 7px;
}
/* ── Scrollable container ── */
.bp-track-outer {
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: none;        /* Firefox */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.bp-track-outer::-webkit-scrollbar { display: none; } /* Chrome/Safari/Edge */
/* ── Inner body — contains #bp-track and the progress rail.
   Flex-column guarantees the rail sibling renders BELOW #bp-track regardless
   of any decorators, margin-collapse, or absolute children inside the tiers. */
.bp-track-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 20px;
  padding-bottom: 44px;
  min-width: max-content;
}
#bp-track { order: 1; }
/* .bp-track-line-rail and .bp-track-line-fill removed */
.bp-track-line-fill {
  display: none;
}
/* ── Dynamic XP progress rail below the Battle Pass cards ── */
.bp-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: var(--bp-progress-node-size);
  pointer-events: none;
  z-index: 2;
}
.bp-progress-track[hidden] { display: none !important; }
.bp-progress-rail,
.bp-progress-fill {
  position: absolute;
  top: 50%;
  height: var(--bp-progress-line-height);
  border-radius: 999px;
  transform: translateY(-50%);
}
.bp-progress-rail {
  background: var(--bp-progress-grey);
  box-shadow: none;
  z-index: 1;
}
.bp-progress-fill {
  background: var(--bp-progress-gradient);
  box-shadow: 0 0 14px rgba(244,1,43,.22);
  transition: width 500ms ease-out;
  z-index: 2;
}
.bp-progress-nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.bp-progress-node {
  position: absolute;
  top: 50%;
  width: var(--bp-progress-node-size);
  height: var(--bp-progress-node-size);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bp-progress-grey);
  border: 0;
  color: #fff;
  font-family: 'Apex', sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  box-shadow: none;
  transition: background 250ms ease-out, box-shadow 250ms ease-out;
}
.bp-progress-node.is-unlocked {
  background-color: var(--rw-red);
  box-shadow: 0 0 12px rgba(244,1,43,.18);
}
.bp-progress-node.is-locked {
  background: var(--bp-progress-grey);
  box-shadow: none;
}
/* ── Track row — cards centered vertically ── */
.bp-track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  position: relative;
  z-index: 1;
}
/* ── Base tier card — rounded rectangle ── */
.bp-tier {
  position: relative;
  width: 150px; height: 195px; flex-shrink: 0;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  border: 2px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04); /* locked default — matches empty rail */
  transition: transform .18s ease, box-shadow .18s ease;
  cursor: default;
  overflow: visible;
  padding: 0; min-height: unset;
  z-index: 1;
}
/* Connector lines removed */
.bp-tier::after { display: none; }
/* ::before reserved for has-bonus divider */
.bp-tier:not(.has-bonus)::before { display: none; }
/* hover */
.bp-tier:hover { transform: scale(1.06); box-shadow: 0 0 18px rgba(0,0,0,.5); }
/* ── State: milestone — slightly taller card ── */
.bp-tier.is-milestone { width: 178px; height: 225px; border-radius: 28px; }
/* ── State: locked — identical colour to the empty rail ── */
.bp-tier.is-locked {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.06) !important;
  box-shadow: none !important;
  /* No opacity here — child opacity can't escape a parent opacity stacking context */
}
.bp-tier.is-locked:hover { transform: none; box-shadow: none !important; }
/* Dim the reward text & label on locked tiers without affecting the lock badge */
.bp-tier.is-locked .bp-tier__reward,
.bp-tier.is-locked .bp-tier__label,
.bp-tier.is-locked .bp-tier__check { opacity: 0.45; }
/* ── State: unlocked — gradient applied by JS ── */
.bp-tier.is-unlocked { /* intentionally empty; JS sets background gradient */ }
/* ── State: current — white pulsing border; gradient applied by JS ── */
.bp-tier.is-current {
  border-color: rgba(255,255,255,.9) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 0 14px rgba(255,255,255,.24);
  animation: bp-pulse 3s ease-in-out infinite;
}
@keyframes bp-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 9px rgba(255,255,255,.18); }
  50%     { box-shadow: 0 0 0 2px rgba(255,255,255,.38), 0 0 17px rgba(255,255,255,.32); }
}
/* ── Tier number — hidden (reserved for future use) ── */
.bp-tier__num { display: none; }
/* ── Reward icon — centred in the circle ── */
.bp-tier__icon { font-size: 36px; line-height: 1; margin: 0; }
.bp-tier.is-milestone .bp-tier__icon { font-size: 45px; }
/* Custom PNG icons */
.bp-tier__icon img {
  width: 96px; height: 96px; object-fit: contain; display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
}
.bp-tier.is-milestone .bp-tier__icon img { width: 114px; height: 114px; }
.bp-tier__icon-half img {
  width: 49px; height: 49px; object-fit: contain; display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
/* ── Locked tier: greyscale icon images ── */
.bp-tier.is-locked .bp-tier__icon img,
.bp-tier.is-locked .bp-tier__icon-half img {
  filter: grayscale(1) brightness(0.55) !important;
}
.bp-tier.is-milestone .bp-tier__icon-half img { width: 56px; height: 56px; }
/* Giveaway bonus icon is slightly smaller visually — boost it 15% */
.bp-tier__icon-half--bonus img {
  width: 65px; height: 65px;
}
.bp-tier.is-milestone .bp-tier__icon-half--bonus img {
  width: 75px; height: 75px;
}
/* Locked non-giveaway rewards render 15% smaller; Giveaway.png icons keep their base size. */
.bp-tier.is-locked .bp-tier__icon > img:not([src*="Giveaway.png"]),
.bp-tier.is-locked .bp-tier__icon-half img:not([src*="Giveaway.png"]) {
  transform: scale(.85);
  transform-origin: center;
}
/* ── Reward label — below the circle ── */
.bp-tier__reward {
  position: static;
  transform: none;
  font-family: 'URW Dock', sans-serif;
  font-size: 13px; font-weight: 700;
  color: #fff;
  text-align: center; white-space: nowrap; line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
  border: none; border-radius: 0; background: transparent; padding: 0;
}
#bp-track .bp-tier__reward span {
  font-family: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
/* all per-type colour overrides removed — uniform white */
.bp-tier__reward--tokens,
.bp-tier__reward--xp,
.bp-tier__reward--pq,
.bp-tier__reward--entry,
.bp-tier__reward--role { color: #fff; }
.bp-tier__reward--xp {
  position: relative;
  top: -3px;
}
/* ── Milestone sub-label — inside the card, below reward text ── */
.bp-tier__label {
  position: static;
  transform: none;
  margin-top: 4px;
  font-size: 10px; color: var(--rw-gold);
  font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; white-space: nowrap;
  text-align: center;
}
/* ── Split-circle design: dual-reward milestone tiers ── */

/* Hard left/right two-tone background — only for locked has-bonus; unlocked gets gradient via JS */
.bp-tier.has-bonus.is-locked {
  background: rgba(255,255,255,.08) !important;
}
.bp-tier.has-bonus.is-unlocked,
.bp-tier.has-bonus.is-current { /* gradient applied by JS */ }
/* Vertical divider line (fades at top/bottom) */
.bp-tier.has-bonus::before {
  display: block;
  content: '';
  position: absolute;
  left: calc(50% - 0.5px); top: 14%; bottom: 14%;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.30) 30%,
    rgba(255,255,255,.30) 70%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Split icon row — pinned to fill the exact circle bounds */
.bp-tier__icon--split {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
}
.bp-tier__icon-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
}
.bp-tier.is-milestone .bp-tier__icon-half { font-size: 31px; }
.bp-tier__icon-half--bonus {
  color: #c084fc;
  font-size: 22px;
}
.bp-tier.is-milestone .bp-tier__icon-half--bonus { font-size: 28px; }
/* Split reward label: two stacked lines below the circle */
.bp-tier__reward.bp-tier__reward--split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1;
  position: static;
  margin-top: 6px;
}
.bp-tier__reward--split .bp-tier__reward--entry { color: #c084fc; }
/* has-bonus label — same as other labels, already handled by static positioning */
.bp-tier.has-bonus .bp-tier__label { bottom: unset; }
/* ── Tier state indicators — absolute overlays; do not affect card layout ── */
.bp-tier__state-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 6;
}
.bp-tier__state-badge--unlocked {
  top: 22px;
  bottom: auto;
  gap: 4px;
  min-width: 70px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,224,130,.55) 0%, rgba(241,196,15,.45) 58%, rgba(217,155,18,.42) 100%);
  border: 1px solid rgba(255,224,130,.42);
  color: #fff;
  font-family: 'URW Dock', sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .45px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(241,196,15,.12), inset 0 1px 0 rgba(255,255,255,.20);
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}
.bp-tier__state-badge--unlocked i { font-size: 9px; }
.bp-tier__state-badge--locked {
  top: 22px;
  color: rgba(180,185,195,.45);
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0,0,0,.35);
}
.bp-tier.is-milestone .bp-tier__state-badge--unlocked { top: 26px; bottom: auto; }
.bp-tier.is-milestone .bp-tier__state-badge--locked { top: 26px; }
/* ── Unlocked check badge — removed ── */
.bp-tier__check { display: none; }
/* ── Current-tier bouncing arrow — removed ── */
.bp-current-dot { display: none; }

/* ── Battle Pass tier strip refinement — reward-color lasers + clearer states ── */
.bp-tier {
  --bp-tier-rgb: 241, 196, 15;
  --bp-tier-text: rgb(var(--bp-tier-rgb));
  --bp-tier-laser-angle: 0deg;
  --bp-tier-laser-alpha: .58;
  --bp-tier-laser-white: .46;
  --bp-tier-laser-size: 1px;
  border-color: rgba(var(--bp-tier-rgb), .36);
  background:
    linear-gradient(135deg, rgba(var(--bp-tier-rgb), .16) 0%, rgba(var(--bp-tier-rgb), .045) 34%, rgba(255,255,255,.035) 50%, rgba(var(--bp-tier-rgb), .08) 100%),
    rgba(255,255,255,.035);
  box-shadow: 0 0 0 1px rgba(var(--bp-tier-rgb), .10) inset, 0 10px 24px rgba(0,0,0,.22);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease, background .22s ease;
}
.bp-tier::after {
  content: '';
  display: block;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: var(--bp-tier-laser-size);
  background: conic-gradient(from var(--bp-tier-laser-angle), rgba(var(--bp-tier-rgb), .26), transparent 18%, transparent 54%, rgba(var(--bp-tier-rgb), var(--bp-tier-laser-alpha)) 67%, rgba(255,255,255,var(--bp-tier-laser-white)) 72%, rgba(var(--bp-tier-rgb), var(--bp-tier-laser-alpha)) 78%, rgba(var(--bp-tier-rgb), .24) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .72;
  z-index: 4;
  animation: bp-tier-laser-trace 5.5s linear infinite;
}
.bp-tier.is-locked[data-rtype="giveaway_entries"]::after,
.bp-tier.is-locked[data-rtype="priority_queue_capsule"]::after {
  inset: -3px;
  padding: 2px;
  background: conic-gradient(from var(--bp-tier-laser-angle), transparent 0 62%, rgba(var(--bp-tier-rgb), .92) 69%, rgba(255,255,255,.68) 73%, rgba(var(--bp-tier-rgb), .92) 79%, transparent 88% 100%);
  opacity: .88;
  animation: bp-tier-laser-trace 2.7s linear infinite;
}
.bp-tier[data-rtype="cce_tokens"] {
  --bp-tier-rgb: 244, 208, 92;
  --bp-tier-text: #f5d66f;
}
.bp-tier[data-rtype="xp_multiplier_capsule"] {
  --bp-tier-rgb: 244, 1, 43;
  --bp-tier-text: #ff6f82;
}
.bp-tier[data-rtype="giveaway_entries"] {
  --bp-tier-rgb: 126, 73, 178;
  --bp-tier-text: #b990e6;
  --bp-tier-laser-alpha: .68;
  --bp-tier-laser-white: .54;
  border-color: rgba(var(--bp-tier-rgb), .44);
  box-shadow: 0 0 0 1px rgba(var(--bp-tier-rgb), .12) inset, 0 0 18px rgba(var(--bp-tier-rgb), .12), 0 10px 24px rgba(0,0,0,.22);
}
.bp-tier[data-rtype="priority_queue_capsule"] {
  --bp-tier-rgb: 78, 214, 132;
  --bp-tier-text: #8ee8b1;
  --bp-tier-laser-alpha: .76;
  --bp-tier-laser-white: .62;
  --bp-tier-laser-size: 2px;
  border-color: rgba(var(--bp-tier-rgb), .56);
  background:
    linear-gradient(135deg, rgba(var(--bp-tier-rgb), .24) 0%, rgba(var(--bp-tier-rgb), .065) 34%, rgba(255,255,255,.05) 50%, rgba(var(--bp-tier-rgb), .13) 100%),
    rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(var(--bp-tier-rgb), .16) inset, 0 0 24px rgba(var(--bp-tier-rgb), .18), 0 12px 26px rgba(0,0,0,.26);
}
.bp-tier:hover {
  transform: translateY(-4px) scale(1.075);
  border-color: rgba(var(--bp-tier-rgb), .72);
  background:
    linear-gradient(135deg, rgba(var(--bp-tier-rgb), .25) 0%, rgba(var(--bp-tier-rgb), .075) 34%, rgba(255,255,255,.055) 50%, rgba(var(--bp-tier-rgb), .14) 100%),
    rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(var(--bp-tier-rgb), .18) inset, 0 0 28px rgba(var(--bp-tier-rgb), .26), 0 18px 36px rgba(0,0,0,.34);
}
.bp-tier[data-rtype="priority_queue_capsule"]:hover {
  transform: translateY(-6px) scale(1.095);
  border-color: rgba(var(--bp-tier-rgb), .86);
  box-shadow: 0 0 0 1px rgba(var(--bp-tier-rgb), .28) inset, 0 0 40px rgba(var(--bp-tier-rgb), .38), 0 22px 42px rgba(0,0,0,.38);
}
.bp-tier[data-rtype="priority_queue_capsule"]:hover::after {
  --bp-tier-laser-alpha: .95;
  --bp-tier-laser-white: .80;
  animation-duration: 3.2s;
  opacity: .95;
}
.bp-tier.is-locked[data-rtype="giveaway_entries"]:hover::after,
.bp-tier.is-locked[data-rtype="priority_queue_capsule"]:hover::after {
  inset: -5px;
  opacity: 1;
  animation: bp-tier-laser-trace 1.9s linear infinite;
}
.bp-tier.is-locked {
  background:
    linear-gradient(135deg, rgba(var(--bp-tier-rgb), .12) 0%, rgba(var(--bp-tier-rgb), .035) 38%, rgba(255,255,255,.025) 100%),
    rgba(255,255,255,.035) !important;
  border-color: rgba(var(--bp-tier-rgb), .28) !important;
  box-shadow: 0 0 0 1px rgba(var(--bp-tier-rgb), .08) inset, 0 10px 24px rgba(0,0,0,.20) !important;
}
.bp-tier.is-locked:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 0 1px rgba(var(--bp-tier-rgb), .15) inset, 0 0 24px rgba(var(--bp-tier-rgb), .20), 0 16px 32px rgba(0,0,0,.30) !important;
}
.bp-tier.is-unlocked:not(.is-current) {
  border-color: rgba(185,190,198,.18) !important;
  filter: grayscale(.56) saturate(.48) brightness(.70);
  background:
    linear-gradient(135deg, rgba(185,190,198,.08) 0%, rgba(var(--bp-tier-rgb), .035) 42%, rgba(255,255,255,.025) 100%),
    rgba(255,255,255,.025) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.035) inset, 0 8px 20px rgba(0,0,0,.18) !important;
}
.bp-tier.is-unlocked:not(.is-current)::after {
  opacity: 0;
  animation: none;
}
.bp-tier.is-unlocked:not(.is-current):hover {
  filter: grayscale(.36) saturate(.62) brightness(.80);
}
.bp-tier.is-current {
  --bp-tier-rgb: 255, 255, 255;
  --bp-tier-text: #fff;
  filter: none;
  border-color: rgba(255,255,255,.72) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045) 46%, rgba(255,255,255,.11)) !important;
}
.bp-tier.is-current::after {
  --bp-tier-laser-alpha: .38;
  --bp-tier-laser-white: .34;
  opacity: .36;
  animation-duration: 6.4s;
}
.bp-tier__icon { font-size: 42px; }
.bp-tier.is-milestone .bp-tier__icon { font-size: 52px; }
.bp-tier__icon img {
  width: 106px;
  height: 106px;
  filter: drop-shadow(0 2px 8px rgba(var(--bp-tier-rgb), .30)) drop-shadow(0 2px 6px rgba(0,0,0,.55));
}
.bp-tier.is-milestone .bp-tier__icon img { width: 126px; height: 126px; }
.bp-tier__icon-half img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 7px rgba(var(--bp-tier-rgb), .25)) drop-shadow(0 1px 4px rgba(0,0,0,.45));
}
.bp-tier.is-milestone .bp-tier__icon-half img { width: 64px; height: 64px; }
.bp-tier__icon-half--bonus img { width: 72px; height: 72px; }
.bp-tier.is-milestone .bp-tier__icon-half--bonus img { width: 84px; height: 84px; }
.bp-tier.is-locked .bp-tier__icon img,
.bp-tier.is-locked .bp-tier__icon-half img {
  filter: grayscale(.28) brightness(.86) drop-shadow(0 1px 5px rgba(var(--bp-tier-rgb), .18)) !important;
}
.bp-tier.is-locked .bp-tier__icon > img:not([src*="Giveaway.png"]),
.bp-tier.is-locked .bp-tier__icon-half img:not([src*="Giveaway.png"]) {
  transform: scale(.95);
}
.bp-tier.is-unlocked:not(.is-current) .bp-tier__icon img,
.bp-tier.is-unlocked:not(.is-current) .bp-tier__icon-half img {
  filter: grayscale(.68) brightness(.76) drop-shadow(0 1px 4px rgba(0,0,0,.45)) !important;
}
.bp-tier.is-current .bp-tier__icon img,
.bp-tier.is-current .bp-tier__icon-half img {
  filter: drop-shadow(0 0 14px rgba(255,255,255,.42)) drop-shadow(0 0 28px rgba(255,255,255,.18)) drop-shadow(0 2px 7px rgba(0,0,0,.62)) !important;
}
.bp-tier__reward {
  font-size: 14px;
  color: var(--bp-tier-text);
  text-shadow: 0 0 12px rgba(var(--bp-tier-rgb), .26);
}
#bp-track .bp-tier__reward span { color: inherit; }
.bp-tier__reward--tokens,
.bp-tier__reward--xp,
.bp-tier__reward--pq,
.bp-tier__reward--entry,
.bp-tier__reward--role { color: var(--bp-tier-text); }
.bp-tier__reward--split .bp-tier__reward--entry { color: #b990e6; }
.bp-tier.is-current .bp-tier__reward,
.bp-tier.is-current .bp-tier__reward span,
.bp-tier.is-current .bp-tier__reward--tokens,
.bp-tier.is-current .bp-tier__reward--xp,
.bp-tier.is-current .bp-tier__reward--pq,
.bp-tier.is-current .bp-tier__reward--entry,
.bp-tier.is-current .bp-tier__reward--role {
  color: #fff;
  text-shadow: 0 0 14px rgba(255,255,255,.44);
}
.bp-tier.is-locked .bp-tier__reward,
.bp-tier.is-locked .bp-tier__label,
.bp-tier.is-locked .bp-tier__check { opacity: .78; }
.bp-tier.is-unlocked:not(.is-current) .bp-tier__reward,
.bp-tier.is-unlocked:not(.is-current) .bp-tier__label {
  color: rgba(188,193,201,.62);
  opacity: .72;
  text-shadow: none;
}
.bp-tier__label {
  font-size: 11px;
  color: rgba(var(--bp-tier-rgb), .88);
}
.bp-tier__state-badge--unlocked {
  top: 21px;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-size: 10px;
  letter-spacing: .55px;
  box-shadow: none;
  text-shadow: 0 0 7px rgba(255,255,255,.28), 0 1px 3px rgba(0,0,0,.65);
}
.bp-tier__state-badge--unlocked::before {
  content: '✓';
  margin-right: 4px;
  font-weight: 900;
}
.bp-tier.is-unlocked:not(.is-current) .bp-tier__state-badge--unlocked {
  color: rgba(210,214,222,.68);
  text-shadow: none;
}
.bp-tier.is-milestone .bp-tier__state-badge--unlocked { top: 25px; }
.bp-progress-node {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.88);
  box-shadow: 0 0 0 1px rgba(0,0,0,.22), 0 2px 7px rgba(0,0,0,.35);
}
.bp-progress-node.is-unlocked {
  box-shadow: 0 0 12px rgba(244,1,43,.24), 0 0 0 1px rgba(255,255,255,.16);
}
.bp-progress-node.is-current {
  color: #111;
  background: #fff !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.95);
  box-shadow: 0 0 0 3px rgba(255,255,255,.20), 0 0 18px rgba(255,255,255,.80), 0 0 32px rgba(241,196,15,.34);
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 5;
}

/* Giveaway-bound Battle Pass tiers: replace the purple card fill with the configured giveaway image. */
.bp-tier.has-giveaway-bg {
  --bp-tier-rgb: 126, 73, 178;
  --bp-tier-text: #fff;
  filter: none !important;
  border-color: rgba(255,255,255,.36) !important;
  background:
    linear-gradient(180deg, rgba(3,3,8,.10) 0%, rgba(3,3,8,.32) 42%, rgba(3,3,8,.76) 100%),
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.16), transparent 54%),
    var(--bp-giveaway-bg-url) center / cover no-repeat !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 0 26px rgba(126,73,178,.30), 0 16px 34px rgba(0,0,0,.34) !important;
}
.bp-tier.has-giveaway-bg:hover {
  border-color: rgba(255,255,255,.68) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.24) inset, 0 0 34px rgba(126,73,178,.42), 0 22px 42px rgba(0,0,0,.42) !important;
}
.bp-tier.has-giveaway-bg[data-rtype="giveaway_entries"] > .bp-tier__icon {
  opacity: .08;
}
.bp-tier.has-giveaway-bg .bp-tier__icon-half--bonus img {
  opacity: .16;
}
.bp-tier.has-giveaway-bg .bp-tier__reward,
.bp-tier.has-giveaway-bg .bp-tier__reward span,
.bp-tier.has-giveaway-bg .bp-tier__reward--entry,
.bp-tier.has-giveaway-bg .bp-tier__label,
.bp-tier.has-giveaway-bg.is-unlocked:not(.is-current) .bp-tier__reward,
.bp-tier.has-giveaway-bg.is-unlocked:not(.is-current) .bp-tier__label {
  color: #fff !important;
  opacity: 1;
  text-shadow: 0 2px 7px rgba(0,0,0,.86), 0 0 14px rgba(0,0,0,.62);
}
.bp-tier.has-giveaway-bg .bp-tier__state-badge--locked {
  color: rgba(255,255,255,.82);
  text-shadow: 0 2px 7px rgba(0,0,0,.82);
}
.bp-tier.is-giveaway-link {
  cursor: pointer;
}
.bp-tier.is-giveaway-link:focus-visible {
  outline: 3px solid rgba(255,255,255,.72);
  outline-offset: 5px;
}

@property --bp-tier-laser-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes bp-tier-laser-trace {
  to { --bp-tier-laser-angle: 360deg; }
}


@media (prefers-reduced-motion: reduce) {
  .bp-tier,
  .bp-tier::after { animation: none; }
}

/* ── Milestone star crown ── */
.bp-milestone-crown {
  position: absolute;
  top: -62px; left: 50%;
  transform: translateX(-50%);
  font-size: 20px; line-height: 1;
  filter: drop-shadow(0 0 7px rgba(241,196,15,.9));
}

/* =============================================================
   CHALLENGES
   ============================================================= */

.rw-challenge-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(336px,1fr)); gap: 20px; }

/* Challenge section headers inside the grid */
.rw-ch-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 2px 2px;
  margin: 12px 0 2px;
  position: relative;
  overflow: visible;
}
.rw-ch-section--game_match {
  --rw-ch-accent:    #f4012b;
  --rw-ch-accent-bg: rgba(244,1,43,.08);
}
.rw-ch-section--discord {
  --rw-ch-accent:    #5865f2;
  --rw-ch-accent-bg: rgba(88,101,242,.08);
}
.rw-ch-section__left { min-width: 0; }
.rw-ch-section__eyebrow { color: var(--rw-ch-accent, var(--rw-red)); }
.rw-ch-section__eyebrow i { color: inherit; text-shadow: 0 0 14px var(--rw-ch-accent-bg, rgba(244,1,43,.34)); }
.rw-ch-section__title {
  font-size: clamp(34px, 4.4vw, 46px);
  overflow-wrap: anywhere;
}
.rw-ch-section__count {
  font-family: 'Apex', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--rw-ch-accent, var(--rw-red));
  flex-shrink: 0;
  letter-spacing: 1px;
  line-height: 1;
  min-width: 112px;
  text-align: right;
  padding-bottom: 5px;
  text-shadow: 0 0 16px var(--rw-ch-accent-bg, rgba(244,1,43,.28));
}
.rw-ch-section__count span {
  display: block;
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rw-muted);
  text-align: right;
  opacity: 1;
  font-weight: 600;
  margin-top: 1px;
}
.rw-challenge-card {
  background: var(--rw-card-grad); border: 1px solid var(--rw-border);
  border-radius: 14px; padding: 58px 22px 22px; display: flex;
  flex-direction: column; gap: 12px; position: relative; transition: border-color .15s;
  min-height: 194px;
}
.rw-challenge-card:hover { border-color: var(--rw-border-mid); }
.rw-challenge-card.is-completed { border-color: rgba(34,197,94,.3); background: #141c16; }
.rw-challenge-card.is-locked { opacity: .45; pointer-events: none; }
.rw-challenge-card.is-tracked,
.rw-challenge-card:has(.rw-ch-track-btn.is-tracked) {
  border-color: rgba(244,1,43,.55);
  box-shadow: 0 0 0 1px rgba(244,1,43,.12) inset, 0 0 24px rgba(244,1,43,.12);
}
.rw-challenge-card.is-completed { padding-top: 58px; }
.rw-ch-track-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.76);
  font-family: 'Apex', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.025);
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}
.rw-ch-track-btn i { color: var(--rw-red); font-size: 12px; }
.rw-ch-track-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(244,1,43,.45);
  color: #fff;
  background: rgba(244,1,43,.13);
  box-shadow: 0 0 20px rgba(244,1,43,.16), 0 10px 22px rgba(0,0,0,.26);
}
.rw-ch-track-btn.is-tracked {
  background: linear-gradient(135deg, var(--rw-red), #c90022);
  border-color: rgba(255,93,120,.72);
  color: #fff;
  box-shadow: 0 0 20px rgba(244,1,43,.32), 0 9px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.22);
}
.rw-ch-track-btn.is-tracked i { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.36); }
.rw-ch-track-btn:disabled { cursor: wait; opacity: .72; transform: none; }
.rw-ch-track-btn.is-busy i { animation: rw-track-spin .9s linear infinite; }
@keyframes rw-track-spin { to { transform: rotate(360deg); } }
.rw-ch-head { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.rw-ch-head > div:last-child { min-width: 0; }
.rw-ch-icon { width: 53px; height: 53px; border-radius: 12px; background: var(--rw-red-dim); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.rw-ch-icon img { width: 34px; height: 34px; object-fit: contain; }
.rw-ch-icon i { color: var(--rw-red); }
.rw-ch-title { font-family: 'Apex', sans-serif; font-weight: 700; font-size: 18px; color: #fff; line-height: 1.3; letter-spacing: .4px; overflow-wrap: anywhere; }
.rw-ch-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 5px; }
.rw-ch-cat { display: inline-block; background: var(--rw-red-dim); color: var(--rw-red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 5px; margin-top: 4px; }
.rw-ch-dur-badge { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 5px; }
.rw-dur-weekly  { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.rw-dur-season  { background: rgba(234,179,8,0.15);  color: #fde047; }
.rw-dur-onetime { background: rgba(34,197,94,0.15);  color: #86efac; }
.rw-ch-desc { font-size: 16px; color: var(--rw-muted); line-height: 1.5; overflow-wrap: anywhere; }
.rw-ch-prog-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--rw-muted); }
.rw-challenge-card .rw-progress { height: 8px; }
.rw-ch-rewards { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.rw-xp-pill { background: rgba(244,1,43,.15); color: var(--rw-red); font-size: 16px; font-weight: 700; padding: 4px 12px; border-radius: 9999px; }
.rw-bonus-pill { background: var(--rw-gold-dim); color: var(--rw-gold); font-size: 16px; font-weight: 700; padding: 4px 12px; border-radius: 9999px; }
.rw-reset-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--rw-red-dim); border: 1px solid rgba(244,1,43,.25); color: var(--rw-red); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 9999px; }
.rw-ch-done-stamp { position: absolute; top: 14px; left: 14px; background: rgba(34,197,94,.2); color: #22c55e; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 7px; letter-spacing: .5px; z-index: 2; }

/* =============================================================
   INVENTORY
   ============================================================= */

.rw-inv-section { margin-bottom: 24px; }
.rw-inv-section-title { font-family:'Apex',sans-serif; font-size: 13px; color: #fff; letter-spacing: 1px; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.rw-inv-section-title i { color: var(--rw-red); }
.rw-inv-section-title .fa-history { color: var(--rw-muted); }
/* Video-game inventory grid */
.rw-inv-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 10px; }
.rw-inv-card { background: linear-gradient(160deg,#18181f,#111116); border: 2px solid rgba(255,255,255,.1); border-radius: 10px; overflow: visible; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; }
.rw-inv-card:hover { transform: translateY(-2px); border-color: rgba(244,1,43,.5); box-shadow: 0 4px 18px rgba(244,1,43,.12); }
.rw-inv-card.is-active-item { border-color: rgba(34,197,94,.55); box-shadow: 0 0 14px rgba(34,197,94,.18); }
.rw-inv-card.is-active-item:hover { border-color: rgba(34,197,94,.72); box-shadow: 0 0 20px rgba(34,197,94,.24); }
.rw-inv-card.has-active-type:hover::after {
  content: attr(data-active-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 12;
  width: max-content;
  max-width: 220px;
  padding: 6px 9px;
  border: 1px solid rgba(34,197,94,.36);
  border-radius: 7px;
  background: rgba(12,18,14,.96);
  color: #d9ffe7;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.36), 0 0 12px rgba(34,197,94,.14);
  pointer-events: none;
}
.rw-inv-art {
  --rw-art-rgb: 255, 255, 255;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid rgba(var(--rw-art-rgb), .16);
  background:
    linear-gradient(135deg, rgba(var(--rw-art-rgb), .24) 0%, rgba(var(--rw-art-rgb), .065) 34%, rgba(255,255,255,.05) 50%, rgba(var(--rw-art-rgb), .13) 100%),
    rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(var(--rw-art-rgb), .10) inset;
}
.rw-inv-art--xp,
.rw-store-art--xp { --rw-art-rgb: 244, 1, 43; }
.rw-inv-art--pq,
.rw-store-art--pq { --rw-art-rgb: 78, 214, 132; }
.rw-inv-art--rename,
.rw-store-art--rename { --rw-art-rgb: 126, 73, 178; }
.rw-inv-art--premium,
.rw-store-art--premium { --rw-art-rgb: 241, 196, 15; }
.rw-inv-art--discord,
.rw-store-art--discord { --rw-art-rgb: 88, 101, 242; }
.rw-inv-art--generic,
.rw-store-art--generic { --rw-art-rgb: 255, 255, 255; }
.rw-inv-art img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.7)); }
.rw-inv-art.rw-inv-art--rename > img { width: 108px; height: 108px; }
.rw-inv-art .fa-crown,
.rw-store-art .fa-crown { font-size: 44px; color: #f1c40f; text-shadow: 0 0 14px rgba(241,196,15,.45); }
.rw-inv-art .fa-discord,
.rw-store-art .fa-discord { font-size: 44px; color: #5865f2; text-shadow: 0 0 14px rgba(88,101,242,.45); }
.rw-inv-active-badge { position: absolute; top: 5px; right: 5px; background: rgba(34,197,94,.9); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .6px; }
.rw-inv-body { padding: 8px 9px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; text-align: center; }
.rw-inv-name { font-family: 'URW Dock', sans-serif; font-weight: 700; font-size: 14px; color: #fff; line-height: 1.25; text-transform: uppercase; letter-spacing: .5px; }
.rw-inv-dur span { font-size: 12px; background: var(--rw-red-dim); color: var(--rw-red); padding: 2px 7px; border-radius: 9999px; font-weight: 600; }
.rw-inv-dur span.rw-inv-countdown { background: rgba(34,197,94,.12); color: var(--rw-green); padding: 2px 7px; border-radius: 9999px; }
.rw-inv-source { font-size: 10px; color: var(--rw-muted); }
.rw-inv-countdown { font-size: 12px; color: var(--rw-green); font-weight: 600; }
.rw-inv-foot { padding: 6px 8px 8px; }
.rw-inv-btn { width: 100%; padding: 7px 6px; background: linear-gradient(135deg,var(--rw-red),#d60125); color: #fff; border: none; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; transition: opacity .15s; }
.rw-inv-btn:hover:not(:disabled) { opacity: .88; }
.rw-inv-btn:disabled { background: rgba(255,255,255,.07); color: var(--rw-muted); cursor: not-allowed; }
.rw-inv-btn--active { background: rgba(34,197,94,.15) !important; color: #3cff86 !important; border: 1px solid rgba(34,197,94,.35) !important; cursor: default !important; text-shadow: 0 0 7px rgba(60,255,134,.55), 0 0 16px rgba(34,197,94,.34); box-shadow: 0 0 12px rgba(34,197,94,.18), inset 0 0 10px rgba(34,197,94,.08); }
@keyframes inv-glow { 0%,100%{ box-shadow:0 0 8px rgba(34,197,94,.15); } 50%{ box-shadow:0 0 22px rgba(34,197,94,.4); } }
.rw-inv-history { list-style: none; padding: 0; margin: 0; background: var(--rw-card-grad); border: 1px solid var(--rw-border); border-radius: 12px; overflow: hidden; }
.rw-inv-history li { padding: 9px 16px; border-bottom: 1px solid var(--rw-border); font-size: 13px; color: var(--rw-muted); }
.rw-inv-history li:last-child { border-bottom: none; }

/* =============================================================
   STORE
   ============================================================= */

.rw-store-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 10px; }
.rw-store-card { background: linear-gradient(160deg,#18181f,#111116); border: 2px solid rgba(255,255,255,.1); border-radius: 10px; overflow: visible; display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s; position: relative; }
.rw-store-card:hover:not(.is-sold) { transform: translateY(-2px); border-color: rgba(244,1,43,.5); box-shadow: 0 4px 18px rgba(244,1,43,.12); }
.rw-store-card.is-owned:hover:not(.is-sold) { border-color: rgba(34,197,94,.72); box-shadow: 0 0 20px rgba(34,197,94,.24); }
.rw-store-card[data-needed]:hover::after {
  content: attr(data-needed);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 12;
  width: max-content;
  max-width: 180px;
  padding: 6px 9px;
  border: 1px solid rgba(241,196,15,.32);
  border-radius: 7px;
  background: rgba(18,15,6,.96);
  color: #ffe27a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.36), 0 0 12px rgba(241,196,15,.14);
  pointer-events: none;
}
.rw-store-card.is-sold { opacity: .5; }
.rw-store-art {
  --rw-art-rgb: 255, 255, 255;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(var(--rw-art-rgb), .24) 0%, rgba(var(--rw-art-rgb), .065) 34%, rgba(255,255,255,.05) 50%, rgba(var(--rw-art-rgb), .13) 100%),
    rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(var(--rw-art-rgb), .16);
  box-shadow: 0 0 0 1px rgba(var(--rw-art-rgb), .10) inset;
  font-size: 38px;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.rw-store-art img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.7)); }
.rw-store-art.rw-store-art--rename > img { width: 108px; height: 108px; }
.rw-store-cat-badge { position: absolute; top: 5px; left: 5px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; }
.rw-store-cat-badge--functional { background: rgba(244,1,43,.25); color: var(--rw-red); }
.rw-store-cat-badge--cosmetic   { background: rgba(168,85,247,.2); color: #a855f7; }
.rw-store-sold-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-family:'Apex',sans-serif; font-size: 15px; color: var(--rw-muted); letter-spacing: 2px; }
.rw-store-owned-overlay { background: rgba(34,197,94,.18); color: #22c55e; }
.rw-store-card.is-owned { opacity: .85; }
.rw-store-card.is-owned .rw-store-btn[disabled] { background: rgba(34,197,94,.15); color: #22c55e; border-color: rgba(34,197,94,.35); cursor: default; }
.rw-store-body { padding: 8px 9px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; text-align: center; }
.rw-store-name { font-family: 'URW Dock', sans-serif; font-weight: 700; font-size: 14px; color: #fff; line-height: 1.25; text-transform: uppercase; letter-spacing: .5px; }
.rw-store-desc { font-size: 12px; color: var(--rw-muted); line-height: 1.45; flex: 1; }
.rw-store-cost {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px 4px 13px;
  background: linear-gradient(135deg, #ffe155 0%, #ee9800 100%);
  clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 11px 100%, 0% 50%);
  color: #1a0800;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .3px;
  text-shadow: none;
  filter: drop-shadow(-2px 1px 5px rgba(0,0,0,.55));
  pointer-events: none;
}
.rw-store-cost .rw-credit-icon { width: 13px; height: 13px; top: 0; vertical-align: baseline; }
.rw-store-cost .rw-cost-coin { font-size: 12px; line-height: 1; display: inline-flex; align-items: center; }
.rw-store-stock { font-size: 12px; color: var(--rw-muted); }
.rw-store-foot { padding: 6px 8px 8px; }
.rw-store-btn { width: 100%; padding: 7px 6px; background: linear-gradient(135deg,var(--rw-red),#d60125); color: #fff; border: none; border-radius: 6px; font-weight: 700; font-size: 13px; cursor: pointer; transition: opacity .15s; }
.rw-store-btn:hover:not(:disabled) { opacity: .88; }
.rw-store-btn:disabled { background: rgba(255,255,255,.07); color: var(--rw-muted); cursor: not-allowed; }

/* Modal */
.rw-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
#purchase-modal { background: rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.rw-modal {
  background: linear-gradient(165deg, rgba(26,26,26,.98) 0%, rgba(13,13,13,.99) 50%, rgba(8,8,8,1) 100%);
  border: 1px solid rgba(80,80,80,.3);
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: rw-toast-in .18s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), 0 8px 32px rgba(0,0,0,.5);
}
.rw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rw-modal-header-title {
  font-family: 'Apex', sans-serif;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.rw-modal-header-title i { color: var(--rw-red); margin-right: .35rem; font-size: 11px; }
.rw-modal-close {
  background: rgba(255,255,255,.05);
  border: 1px solid #444;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
  transition: all .2s;
  font-size: 12px;
}
.rw-modal-close:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #666; }
.rw-modal-row { margin-bottom: 15px; }
.rw-modal-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--rw-muted); margin-bottom: 7px; }
.rw-modal-input,.rw-modal-select { width: 100%; padding: 9px 13px; background: #111214; border: 1px solid var(--rw-border-mid); border-radius: 8px; color: #fff; font-size: 14px; }
.rw-modal-input:focus,.rw-modal-select:focus { outline: none; border-color: var(--rw-red); }
.rw-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.rw-modal-actions .rw-store-btn { flex: 1; }
.rw-modal-cancel { flex: 1; padding: 9px; background: rgba(255,255,255,.07); color: var(--rw-muted); border: 1px solid var(--rw-border-mid); border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
.rw-modal-cancel:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Activate modal ────────────────────────────────────────── */
.rw-activate-overlay {
  background: rgba(0,0,0,.85) !important;
  backdrop-filter: blur(8px);
}
.rw-activate-flyout {
  position: relative;
  min-width: 360px;
  max-width: 460px;
  width: 100%;
  background: linear-gradient(165deg, rgba(26,26,26,.98) 0%, rgba(13,13,13,.99) 50%, rgba(8,8,8,1) 100%);
  border: 1px solid rgba(80,80,80,.3);
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), 0 8px 32px rgba(0,0,0,.5);
  animation: rw-toast-in .18s ease;
}
.rw-activate-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rw-activate-flyout-title {
  font-family: 'Apex', sans-serif;
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.rw-activate-flyout-title i { color: var(--rw-red); margin-right: .35rem; font-size: 11px; }
.rw-activate-close-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid #444;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
  transition: all .2s;
  font-size: 12px;
}
.rw-activate-close-btn:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #666; }
.rw-activate-flyout-desc { color: #555; font-size: 11px; margin: 0 0 .9rem; line-height: 1.5; }
.rw-activate-item-row { background: rgba(244,1,43,.07); border: 1px solid rgba(244,1,43,.2); border-radius: 10px; padding: 11px 15px; margin-bottom: 12px; font-family: 'Apex', sans-serif; font-size: 14px; color: #fff; font-weight: 700; display: flex; align-items: center; }
.rw-activate-warning { font-size: 11px; color: #555; margin: 0 0 18px; display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.rw-activate-warning i { color: #f59e0b; flex-shrink: 0; margin-top: 1px; }
.rw-balance-preview { background: rgba(255,255,255,.04); border: 1px solid var(--rw-border); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--rw-muted); margin-top: 14px; }
.rw-balance-preview strong { color: #fff; }

/* =============================================================
   GIVEAWAY
   ============================================================= */

.rw-gw-shell { display: grid; gap: 18px; }
#rw-hiw-modal { display: none; }
#rw-hiw-modal.is-open { display: flex; }
.rw-gw-hero {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 14%, rgba(244,1,43,.34), transparent 33%),
    radial-gradient(circle at 85% 0%, rgba(241,196,15,.18), transparent 30%),
    linear-gradient(135deg, #171717 0%, #080808 68%, #130407 100%);
  box-shadow: 0 28px 70px rgba(0,0,0,.46), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.rw-gw-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 24%, transparent 74%, rgba(244,1,43,.14)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 16px);
  opacity: .86;
}
.rw-gw-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.08) brightness(.68);
}
.rw-gw-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.66) 43%, rgba(0,0,0,.32) 100%),
    linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,.12));
}
.rw-gw-hero--empty .rw-gw-hero-shade { background: radial-gradient(circle at 70% 42%, rgba(244,1,43,.16), transparent 38%); }
.rw-gw-hero-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: stretch;
  gap: 28px;
  padding: clamp(24px, 4vw, 46px);
}
.rw-gw-hero-main { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.rw-gw-kicker,
.rw-gw-hero-meta,
.rw-gw-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rw-gw-kicker { margin-bottom: 14px; }
.rw-gw-season {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--rw-red-dim);
  color: var(--rw-red);
  font-family: 'Apex', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rw-gw-season i { color: currentColor; font-size: 10px; }
.rw-gw-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Apex', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rw-gw-status--open { background: rgba(34,197,94,.15); color: #22c55e; }
.rw-gw-status--open::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; animation: gw-dot 1.5s ease-in-out infinite; }
@keyframes gw-dot { 0%,100%{opacity:1; transform:scale(1);}50%{opacity:.38; transform:scale(.78);} }
.rw-gw-status--closed { background: rgba(150,150,150,.15); color: #b0b0b0; }
.rw-gw-status--drawn  { background: var(--rw-gold-dim); color: var(--rw-gold); }
.rw-gw-hero-title {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: 'Apex', sans-serif;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: .93;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 4px 26px rgba(0,0,0,.72), 0 0 28px rgba(244,1,43,.16);
}
.rw-gw-hero-meta { margin-top: 18px; color: rgba(255,255,255,.78); font-size: 15px; font-weight: 700; }
.rw-gw-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.rw-gw-hero-meta i { color: var(--rw-gold); }
.rw-gw-desc {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}
.rw-gw-actions { margin-top: 24px; gap: 10px; }
.rw-gw-hiw-btn,
.rw-gw-connect-btn,
.rw-gw-hero-sponsor {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .18s ease, border-color .2s ease, background .2s ease, color .18s ease, box-shadow .2s ease;
}
/* ── How-it-works button ── */
.rw-gw-hiw-btn {
  padding: 8px 16px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13);
  font-family: 'Apex', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.rw-gw-hiw-btn i { color: var(--rw-red); font-size: 11px; filter: drop-shadow(0 0 4px rgba(244,1,43,.5)); }
.rw-gw-hiw-btn:hover,
.rw-gw-connect-btn:hover,
.rw-gw-hero-sponsor:hover { transform: translateY(-1px); }
.rw-gw-hiw-btn:hover { background: rgba(244,1,43,.12); border-color: rgba(244,1,43,.4); color: #fff; box-shadow: 0 0 18px rgba(244,1,43,.18), 0 4px 16px rgba(0,0,0,.32); }
/* ── Sponsor pill ── */
.rw-gw-hero-sponsor {
  padding: 5px 13px 5px 6px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 8px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.rw-gw-hero-sponsor:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.07); }
.rw-gw-hero-sponsor img,
.rw-gw-sponsor-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.rw-gw-sponsor-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--rw-gold); border: none; }
.rw-gw-hero-sponsor span:not(.rw-gw-sponsor-mark) { display: grid; gap: 1px; color: inherit; font-family: 'Apex', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .7px; line-height: 1.1; text-transform: uppercase; }
.rw-gw-hero-sponsor small { color: rgba(255,255,255,.38); font-family: inherit; font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rw-gw-entry-panel {
  align-self: end;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(241,196,15,.18), transparent 34%),
    linear-gradient(180deg, rgba(18,18,18,.88), rgba(8,8,8,.92));
  box-shadow: 0 18px 42px rgba(0,0,0,.36), 0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter: blur(16px);
}
.rw-gw-entry-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--rw-red), var(--rw-gold));
}
.rw-gw-entry-panel__label,
.rw-gw-section-kicker {
  color: var(--rw-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rw-gw-entry-total {
  margin-top: 12px;
  color: #fff;
  font-family: 'Apex', sans-serif;
  font-size: clamp(44px, 5vw, 68px);
  line-height: .9;
  text-shadow: 0 0 26px rgba(244,1,43,.24);
}
.rw-gw-entry-total span { display: block; margin-top: 8px; color: rgba(255,255,255,.58); font-family: inherit; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.rw-gw-entry-total--locked { display: flex; align-items: center; gap: 13px; font-size: 28px; line-height: 1.15; color: rgba(255,255,255,.88); }
.rw-gw-entry-total--locked span { display: inline; margin: 0; font-size: 18px; }
.rw-gw-mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.rw-gw-mini-stats div { padding: 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.055); }
.rw-gw-mini-stats strong { display: block; color: #fff; font-family: 'Apex', sans-serif; font-size: 24px; line-height: 1; }
.rw-gw-mini-stats span { display: block; margin-top: 6px; color: rgba(255,255,255,.58); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rw-gw-entry-note { margin: 18px 0 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.55; }
.rw-gw-connect-btn { margin-top: 18px; width: 100%; min-height: 46px; color: #151000; background: linear-gradient(90deg, var(--rw-gold), #ffef9a); font-weight: 900; box-shadow: 0 14px 30px rgba(241,196,15,.16); }
.rw-gw-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rw-gw-step {
  position: relative;
  min-height: 0;
  padding: 12px 14px 12px 48px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  overflow: hidden;
}
.rw-gw-step span {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--rw-red);
  background: var(--rw-red-dim);
  font-family: 'Apex', sans-serif;
  font-size: 11px;
}
.rw-gw-step strong { display: block; color: #fff; font-size: 13px; margin-bottom: 3px; }
.rw-gw-step p { margin: 0; color: var(--rw-muted); font-size: 12px; line-height: 1.35; }
.rw-gw-prize-section {
  border: 1px solid var(--rw-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--rw-card-grad);
}
.rw-gw-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rw-border); }
.rw-gw-section-head h2 { margin: 4px 0 0; color: #fff; font-family: 'Apex', sans-serif; font-size: 26px; line-height: 1; text-transform: uppercase; }
.rw-gw-section-head p { max-width: 360px; margin: 0; color: var(--rw-muted); font-size: 13px; line-height: 1.45; text-align: right; }
.rw-gw-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.rw-gw-prizes .rw-empty { grid-column: 1 / -1; }
.rw-prize-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-areas:
    "media ribbon"
    "media body"
    "winner winner";
  column-gap: 14px;
  row-gap: 8px;
  align-items: start;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  text-align: left;
}
.rw-prize-card--p1 { border-color: rgba(241,196,15,.24); }
.rw-prize-card--p2 { border-color: rgba(189,195,199,.18); }
.rw-prize-card--p3 { border-color: rgba(205,127,50,.20); }
.rw-prize-ribbon { grid-area: ribbon; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.56); font-family:'Apex',sans-serif; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.rw-prize-ribbon span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 3px 7px; border-radius: 6px; background: rgba(150,150,150,.15); color: #b0b0b0; font-size: 11px; letter-spacing: .5px; }
.rw-prize-card--p1 .rw-prize-ribbon span { background: var(--rw-gold-dim); color: var(--rw-gold); }
.rw-prize-card--p2 .rw-prize-ribbon span { background: rgba(189,195,199,.12); color: #bdc3c7; }
.rw-prize-card--p3 .rw-prize-ribbon span { background: rgba(205,127,50,.13); color: #cd7f32; }
.rw-prize-img-wrap {
  grid-area: media;
  width: 74px;
  height: 74px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.06);
}
.rw-prize-img-wrap--empty { color: rgba(255,255,255,.20); font-size: 28px; }
.rw-prize-img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.rw-prize-body { grid-area: body; min-width: 0; }
.rw-prize-title { margin: 0 0 5px; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.25; }
.rw-prize-desc { margin: 0; color: var(--rw-muted); font-size: 13px; line-height: 1.4; }
.rw-prize-winner {
  grid-area: winner;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(34,197,94,.18);
  border-radius: 10px;
  background: rgba(34,197,94,.07);
}
.rw-prize-winner img,
.rw-prize-winner__avatar { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: rgba(255,255,255,.08); }
.rw-prize-winner__avatar { display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.58); }
.rw-prize-winner span { min-width: 0; display: grid; gap: 1px; }
.rw-prize-winner small { color: rgba(255,255,255,.48); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rw-prize-winner strong { overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.rw-redraw-badge { margin-left: auto; background: rgba(245,158,11,.14); color: #fbbf24; font-size: 10px; font-style: normal; font-weight: 800; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }

/* =============================================================
   SECTION LOCK STATE  (SharePlay gate — greyed + non-interactive)
   ============================================================= */
/* Any section marked as locked gets a positioning context for the overlay */
.rw-section--locked { position: relative; }

/* Dim the outer border of the track section to match the filtered hub cols */
.rw-track-section.rw-section--locked { border-color: rgba(255,255,255,.04); }
/* Content wrapper — desaturated but fully visible */
.rw-locked-content {
  filter: grayscale(0.9);
  pointer-events: none;
  user-select: none;
}
/* For the hub split we target the columns directly (keeps grid layout intact) */
.rw-hub-split.rw-section--locked .rw-hub-col {
  filter: grayscale(0.9);
  pointer-events: none;
  user-select: none;
}
/* Overlay — sits above the greyed content with a darkening backdrop */
.rw-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: brightness(0.65);
}
.rw-lock-overlay__icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.rw-lock-overlay__icon i { font-size: 22px; color: rgba(255,255,255,.32); }
/* Card — glassmorphism box that reads clearly without jarring contrast */
.rw-lock-card {
  background: rgba(14, 14, 20, 0.55);
  opacity: 0.72;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 26px 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.rw-lock-card__logo {
  width: 52px; height: 52px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(241,196,15,.4));
}
.rw-lock-overlay__title {
  font-family: 'Apex', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #fff;
  margin: 0;
  text-align: center;
}
.rw-lock-overlay__sub {
  font-size: 12px; color: rgba(255,255,255,.55);
  margin: -2px 0 0; line-height: 1.6;
  text-align: center;
}
/* CTA inside the card */
.rw-lock-card .rw-banner__cta { margin-top: 4px; }
/* =============================================================
   HUB SPLIT (Store + Inventory side-by-side)
   ============================================================= */
.rw-hub-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.rw-hub-col {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow: visible;
}
.rw-hub-col::before {
  display: none;
}
.rw-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Apex', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 0 12px rgba(255,255,255,.08);
}
.rw-section-header__title {
  background: linear-gradient(145deg, #ffffff 20%, rgba(255,255,255,.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rw-section-header i { color: var(--rw-red); font-size: 25px; text-shadow: 0 0 14px rgba(244,1,43,.34); }
.rw-section-link {
  margin-left: auto;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--rw-muted);
  text-decoration: none;
  transition: color .15s;
}
.rw-section-link:hover { color: var(--rw-red); }

/* =============================================================
   MOBILE
   ============================================================= */

@media (max-width: 768px) {
  .rewards-page { padding: 16px 14px 60px; }
  .rw-user-hero { grid-template-columns: auto 1fr; }
  .rw-xp-display { display: none; }
  .rw-stat-hero { grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
  .rw-table-wrap .rw-stat-hero { padding: 22px 18px 24px; }
  .rw-avatar-lg { width: 98px; height: 98px; }
  .rw-stat-hero .rw-user-info__name { font-size: clamp(24px, 8vw, 32px); }
  .rw-hero-name-row { gap: 10px; margin-bottom: 14px; }
  .rw-hero-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }
  .rw-hero-stat { padding: 13px 10px; }
  .rw-hero-stat__value { font-size: clamp(23px, 7vw, 30px); }
  .rw-season-bar { flex-direction: column; align-items: flex-start; }
  .rw-table th:nth-child(n+4), .rw-table td:nth-child(n+4) { display: none; }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table {
    table-layout: fixed;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table col.col-rank { width: 42px; }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table col.col-level { width: 70px; }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table col.col-xp,
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table col.col-msg,
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table col.col-voice {
    width: 0;
    visibility: collapse;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table th,
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table td {
    padding: 11px 8px;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table th:first-child,
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table td:first-child {
    padding-left: 10px;
    padding-right: 4px;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table th:nth-child(3),
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table td:nth-child(3) {
    padding-left: 4px;
    padding-right: 10px;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table .rw-player-cell {
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    overflow: hidden;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table .rw-avatar-sm {
    width: 28px;
    height: 28px;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table .rw-player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rewards-page > .rw-table-wrap > .rw-leaderboard-table .rw-level-badge {
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .bp-summary { flex-direction: column; }
  .bp-stat { border-right: none; border-bottom: 1px solid var(--rw-border); }
  .bp-stat:last-child { border-bottom: none; }
  .rw-prize-grid { flex-direction: column; }
  .rw-gw-hero { min-height: auto; }
  .rw-gw-hero-content { grid-template-columns: 1fr; gap: 22px; }
  .rw-gw-hero-main { justify-content: flex-start; }
  .rw-gw-entry-panel { align-self: stretch; }
  .rw-gw-explainer { grid-template-columns: 1fr; }
  .rw-gw-section-head { align-items: flex-start; flex-direction: column; }
  .rw-gw-section-head p { max-width: none; text-align: left; }
  .rw-gw-prizes { grid-template-columns: 1fr; }
  .rw-store-grid { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
  .rw-inv-grid   { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
  .rw-tabs { gap: 0.75rem; }
  .rw-tab-group { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; width: 100%; max-width: 100%; }
  .rw-tab-group::-webkit-scrollbar { display: none; }
  .rw-tab { padding: 0.6rem 1rem; font-size: 0.75rem; }
  .rw-tab i { font-size: 12px; }
  .rw-hub-split { grid-template-columns: 1fr; }
  .rw-challenge-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rw-ch-section { align-items: flex-start; gap: 14px; margin-top: 8px; }
  .rw-ch-section__title { font-size: clamp(30px, 10vw, 38px); }
  .rw-ch-section__count { min-width: auto; font-size: 22px; padding-bottom: 2px; }
  .rw-ch-section__count span { font-size: 10px; }
}

@media (max-width: 460px) {
  .rw-gw-hero-content { padding: 20px; }
  .rw-gw-hero-title { font-size: clamp(32px, 13vw, 46px); }
  .rw-gw-hero-meta { align-items: flex-start; flex-direction: column; font-size: 14px; }
  .rw-gw-actions { align-items: stretch; flex-direction: column; }
  .rw-gw-hiw-btn,
  .rw-gw-hero-sponsor { width: 100%; }
  .rw-gw-entry-panel { padding: 20px; }
  .rw-gw-mini-stats { grid-template-columns: 1fr; }
  .rw-gw-prize-section { padding: 14px; }
  .rw-gw-step { padding: 11px 12px 11px 44px; }
  .rw-gw-step span { left: 11px; top: 12px; }
  .rw-prize-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 12px; }
  .rw-prize-img-wrap { width: 64px; height: 64px; }
  .rw-prize-img { width: 50px; height: 50px; }
  .rw-ch-section { flex-direction: column; align-items: flex-start; }
  .rw-ch-section__count { text-align: left; }
  .rw-ch-section__count span { text-align: left; }
  .rw-challenge-card { padding: 54px 18px 18px; min-height: 0; }
  .rw-challenge-card.is-completed { padding-top: 54px; }
  .rw-ch-track-btn { min-height: 30px; padding: 6px 10px; font-size: 10px; }
  .rw-ch-title { font-size: 16px; }
  .rw-ch-desc { font-size: 14px; }
  .rw-xp-pill,
  .rw-bonus-pill { font-size: 14px; }
}
/* ── XP Info Button ── */
.rw-xp-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  font-family: 'URW Dock', sans-serif;
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
  margin-top: 8px;
}
.rw-xp-info-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75);
}
.rw-xp-info-btn i {
  font-size: 11px;
  color: inherit;
}
/* ── XP Info Modal ── */
.rw-xp-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.rw-xp-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.rw-xp-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(165deg, rgba(26,26,26,0.98) 0%, rgba(13,13,13,0.99) 50%, rgba(8,8,8,1) 100%);
  border: 1px solid rgba(80,80,80,0.3);
  border-radius: 16px;
  padding: 1.5rem 1.75rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s, opacity 0.22s;
  opacity: 0;
}
.rw-xp-modal-overlay.is-open .rw-xp-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.rw-xp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rw-xp-modal-title {
  font-family: 'Apex', sans-serif;
  font-size: 0.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.rw-xp-modal-title i { color: var(--rw-red); font-size: 0.65rem; }
.rw-xp-modal-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
  font-size: 14px;
}
.rw-xp-modal-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.rw-xp-modal-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1.1rem;
  letter-spacing: 0.3px;
}
.rw-xp-source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rw-xp-source-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.rw-xp-source-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}
.rw-xp-source-card--wide {
  grid-column: 1 / -1;
}
.rw-xp-source-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}
.rw-xp-source-name {
  font-family: 'Apex', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.rw-xp-source-value {
  font-size: 11px;
  color: var(--rw-red);
  font-family: 'Apex', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.rw-xp-source-note {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.45;
}
.rw-xp-source-card a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.15s;
}
.rw-xp-source-card a:hover { color: #fff; }
@media (max-width: 520px) {
  .rw-xp-source-grid { grid-template-columns: 1fr; }
  .rw-xp-modal-panel { padding: 1.1rem 1rem 1.25rem; }
  .rw-xp-info-btn { font-size: 11px; padding: 6px 11px; }
}
/* ── XP Multiplier Active Badge ── */
.rw-prog-sub-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}
.rw-prog-sub-row .rw-hero-prog-sub {
  margin-top: 0;
}
.rw-xp-mult-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 1, 43, 0.12);
  border: 1px solid rgba(244, 1, 43, 0.28);
  color: rgba(244, 1, 43, 0.8);
  font-family: 'Apex', sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  /* Animate in/out without affecting layout of sibling elements */
  max-width: 180px;
  opacity: 1;
  transition: max-width 0.35s ease, opacity 0.25s ease, padding 0.3s ease, border-width 0.3s ease;
  animation: xp-mult-pulse 3s ease-in-out infinite;
}
.rw-xp-mult-badge--hidden {
  max-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  border-left-width: 0;
  border-right-width: 0;
  pointer-events: none;
  animation: none;
}
.rw-xp-mult-badge i {
  font-size: 8px;
  flex-shrink: 0;
}
@keyframes xp-mult-pulse {
  0%, 100% { opacity: 0.6; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 6px rgba(244, 1, 43, 0.2); }
}

/* ── Rewards hub battle pass header: mobile-only reset ── */
@media (max-width: 768px) {
  .rewards-page .rw-track-section > .rw-bp-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
    padding: 0;
  }

  .rewards-page .rw-track-section > .rw-bp-header > * {
    min-width: 0;
    width: 100%;
  }

  .rewards-page .rw-bp-header__left {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
  }

  .rewards-page .rw-bp-header__eyebrow {
    flex: 0 0 100%;
    margin: 0;
    font-size: 11px;
    letter-spacing: 1.8px;
  }

  .rewards-page .rw-bp-header__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(29px, 9vw, 38px);
    letter-spacing: 1px;
    overflow-wrap: anywhere;
  }

  .rewards-page .rw-xp-info-btn {
    flex: 0 0 auto;
    max-width: 100%;
    white-space: nowrap;
  }

  .rewards-page .rw-bp-header__right {
    order: 2;
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
  }

  .rewards-page .rw-bp-header__season {
    margin: 0;
    font-size: 10px;
    letter-spacing: 1.2px;
    line-height: 1.25;
  }

  .rewards-page .rw-bp-countdown {
    min-width: 0;
    flex: 0 1 auto;
    font-size: clamp(18px, 5.6vw, 24px);
    letter-spacing: 1px;
    text-align: right;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .rewards-page .rw-bp-track-prog {
    order: 3;
    padding: 0;
  }

  .rewards-page .rw-bp-track-prog .rw-hero-prog-label {
    gap: 10px;
    font-size: 10px;
    letter-spacing: .8px;
  }

  .rewards-page .rw-bp-track-prog .rw-hero-prog-label span:first-child {
    font-size: 13px;
  }

  .rewards-page .rw-prog-sub-row {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 9px;
  }

  .rewards-page .rw-prog-sub-row .rw-hero-prog-sub {
    font-size: 11px;
  }

  .rewards-page .rw-xp-mult-badge {
    flex-shrink: 0;
  }
}

@media (max-width: 460px) {
  .rewards-page .rw-bp-header__eyebrow {
    display: none;
  }

  .rewards-page .rw-bp-header__left {
    align-items: stretch;
  }

  .rewards-page .rw-bp-header__title,
  .rewards-page .rw-xp-info-btn {
    flex-basis: 100%;
  }

  .rewards-page .rw-xp-info-btn {
    justify-content: center;
  }

  .rewards-page .rw-bp-header__right {
    flex-wrap: wrap;
  }

  .rewards-page .rw-bp-countdown {
    flex-basis: 100%;
    text-align: left;
  }
}

