[hidden] { display: none !important; }

.rw { max-width: 1240px; }

/* ---------- header ---------- */
.rw-head { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.rw-title { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-family: var(--font-logo); font-weight: 400; font-size: 38px; line-height: 1; }
.rw-title .ico { width: 34px; height: 34px; }
.rw-head p { margin: 0; color: var(--muted); }
.rw-h2 { margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 24px; line-height: 1.1; }

/* ---------- rank ---------- */
.rank {
  margin-top: 26px;
  padding: 26px;
  scroll-margin-top: 90px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(520px 260px at 8% 0%, rgba(154, 92, 245, 0.2), transparent 70%),
    var(--panel);
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.04s backwards;
}
.rank-now { display: flex; align-items: center; gap: 28px; }
.rank-art { flex: none; display: grid; place-items: center; width: 150px; height: 150px; }
.rank-art img { display: block; max-width: 130px; max-height: 140px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5)); animation: bob 5s ease-in-out infinite alternate; }
.rank-info { flex: 1; min-width: 0; }
.rank-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rank-name { margin: 2px 0 4px; font-family: var(--font-logo); font-weight: 400; font-size: 40px; line-height: 1; }
.rank-wagered { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.rank-wagered b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-bar { height: 10px; max-width: 520px; overflow: hidden; border-radius: 5px; background: #26242c; }
.rank-bar i { display: block; width: 0; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7c47d9, #b080ff); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.rank-next { margin: 10px 0 0; font-size: 13px; color: #cfc4e6; }

.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121117;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step img { display: block; width: 46px; height: 52px; object-fit: contain; opacity: 0.8; transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease; }
.step:hover img { opacity: 1; transform: translateY(-3px); }
.step-name { font-family: var(--font-logo); font-size: 17px; line-height: 1; color: var(--muted); }
.step-min { font-size: 11px; font-weight: 600; color: #6c6879; }
.step.is-reached img { opacity: 1; }
.step.is-reached .step-name { color: var(--text); }
.step.is-current { border-color: var(--purple); background: linear-gradient(160deg, #2c1a50, #1a1030); }
.step.is-current img { opacity: 1; filter: drop-shadow(0 6px 12px rgba(154, 92, 245, 0.5)); transform: scale(1.12); }
.step.is-current:hover img { transform: scale(1.12) translateY(-3px); }
.step.is-current .step-name { color: #fff; }
.step.is-current .step-min { color: #cfc4e6; }

@media (max-width: 860px) {
  .rank { padding: 20px 16px; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .rank-now { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rank-art { width: 110px; height: 110px; }
  .rank-art img { max-width: 96px; max-height: 104px; }
  .rank-name { font-size: 34px; }
}

/* ---------- rakeback ---------- */
.rb { margin-top: 34px; animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards; }
.rb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rb-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.rb-all { flex: none; gap: 8px; height: 44px; padding: 0 20px; }
.rb-all img { width: 16px; height: 16px; object-fit: contain; }
.rb-all span { font-variant-numeric: tabular-nums; }
.rb-all:disabled { opacity: 0.45; cursor: not-allowed; }
.rb-grid { display: flex; flex-direction: column; gap: 10px; }

.rbr {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.2s ease;
}
.rbr:not(.is-locked):hover { border-color: #3a3743; }
.rbr.is-locked { opacity: 0.55; }
.rbr-art { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, rgba(154, 92, 245, 0.22), rgba(154, 92, 245, 0.04) 70%); }
.rbr-art img { width: 40px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.rbr-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.rbr-name { margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 22px; line-height: 1.1; }
.rbr-rate { font-family: var(--font-logo); font-size: 17px; line-height: 1; color: #c9a6ff; }
.rbr-desc { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.rbr-meta { display: block; margin-top: 6px; font-size: 12px; color: #9a96a6; font-variant-numeric: tabular-nums; }
.rbr-lock { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 600; color: #cfc4e6; }
.rbr-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rbr-side { display: flex; align-items: center; gap: 16px; }
.rbr-amt { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; }
.rbr-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rbr-amt b { font-family: var(--font-logo); font-weight: 400; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rbr-btn { min-width: 96px; }
.rbr-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rbr-note { font-size: 12px; color: var(--muted); }

/* floating +amount on claim */
.rw-pop {
  position: absolute;
  right: 130px;
  top: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-logo);
  font-size: 18px;
  pointer-events: none;
  animation: rwpop 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.rw-pop img { width: 16px; height: 16px; }
@keyframes rwpop {
  0% { opacity: 0; transform: translateY(10px) scale(0.8); }
  15% { opacity: 1; transform: translateY(0) scale(1.05); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-40px) scale(1); }
}

@media (max-width: 640px) {
  .rb-head { flex-direction: column; align-items: stretch; }
  .rbr { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 14px; padding: 14px; }
  .rbr-art { width: 48px; height: 48px; }
  .rbr-art img { width: 30px; height: 34px; }
  .rbr-side { grid-column: 1 / -1; justify-content: space-between; }
  .rbr-btn { flex: 1; }
  .rw-pop { right: 20px; }
}
