


.wf-bp--progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}
.wf-bp--progress-bar-small {
  height: 6px;
  background: var(--color-gray-200);
}
.wf-bp--progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


.wf-bp--levels-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px 20px;
  scroll-padding: 4px;
  scroll-snap-type: x mandatory;
}
.wf-bp--levels-track::-webkit-scrollbar {
  height: 8px;
}
.wf-bp--levels-track::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 9999px;
}

.wf-bp--level-card {
  flex: 0 0 180px;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl, 16px);
  padding: 14px;
  scroll-snap-align: start;
  transition: all 0.2s;
}
.wf-bp--level-card.is-reached {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, white 80%);
}

.wf-bp--level-id {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-gray-500);
}
.wf-bp--level-card.is-reached .wf-bp--level-id {
  color: #d97706;
}

.wf-bp--level-track {
  border-top: 1px dashed var(--color-gray-200);
  padding-top: 10px;
  margin-top: 10px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wf-bp--level-track:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.wf-bp--track-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-400);
}
.wf-bp--track-premium .wf-bp--track-label {
  color: #d97706;
}

.wf-bp--rewards-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}
.wf-bp--reward-chip {
  background: var(--color-gray-100);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gray-700);
  font-family: var(--font-mono);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-bp--track-premium .wf-bp--reward-chip {
  background: #fef3c7;
  color: #92400e;
}
.wf-bp--reward-empty {
  font-size: 11px;
  color: var(--color-gray-300);
}


.wf-bp--claim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 9999px;
  background: var(--color-black);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.wf-bp--claim-btn:hover {
  background: var(--color-gray-800);
}
.wf-bp--claim-btn:active {
  transform: scale(0.96);
}
.wf-bp--claim-premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.wf-bp--claim-premium:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.wf-bp--claimed-tag,
.wf-bp--auto-tag,
.wf-bp--locked-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wf-bp--claimed-tag {
  background: #d1fae5;
  color: #047857;
}
.wf-bp--auto-tag {
  background: #fef3c7;
  color: #92400e;
  animation: wf-bp-pulse 1.6s infinite;
}
.wf-bp--locked-tag {
  background: var(--color-gray-100);
  color: var(--color-gray-500);
}
@keyframes wf-bp-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}


.wf-bp--set {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-2xl, 16px);
  overflow: hidden;
}
.wf-bp--set[open] {
  border-color: var(--color-gray-300);
}
.wf-bp--set-summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.wf-bp--set-summary::-webkit-details-marker { display: none; }
.wf-bp--set-summary:hover {
  background: var(--color-zinc-50, #fafafa);
}

.wf-bp--set-id {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.wf-bp--set-progress {
  font-size: 12px;
  color: var(--color-gray-500);
  font-family: var(--font-mono);
}
.wf-bp--set-rewards-hint {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
}


.wf-bp--challenges {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wf-bp--challenge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-zinc-50, #fafafa);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.wf-bp--challenge.is-completed {
  background: #fef3c7;
  border-color: #fde68a;
}
.wf-bp--challenge.is-claimed {
  background: #ecfdf5;
  border-color: #d1fae5;
}
.wf-bp--challenge-main {
  flex: 1;
  min-width: 0;
}
.wf-bp--challenge-desc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wf-bp--challenge-key {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--color-gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-bp--premium-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.wf-bp--challenge-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wf-bp--challenge-progress .wf-bp--progress-bar {
  flex: 1;
  max-width: 280px;
}
.wf-bp--progress-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-gray-600);
  flex-shrink: 0;
}
.wf-bp--challenge-side {
  flex-shrink: 0;
}


.wf-bp--set-rewards {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed var(--color-gray-200);
}
.wf-bp--set-reward-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, white 80%);
  border: 1px solid #fde68a;
}
.wf-bp--set-reward-card.wf-bp--super {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fbbf24;
}
.wf-bp--set-reward-info {
  flex: 1;
  min-width: 0;
}
.wf-bp--set-reward-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
}


@media (prefers-color-scheme: dark) {
  .wf-bp--level-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
  }
  .wf-bp--set {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
  }
  .wf-bp--challenge {
    background: rgba(255,255,255,0.03);
  }
  .wf-bp--reward-chip {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
  }
}




.wf-bp.wf-bp--has-bg {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
  position: relative;
  isolation: isolate;
}
.wf-bp.wf-bp--has-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.78) 0%,
                rgba(255, 255, 255, 0.94) 30%,
                rgba(255, 255, 255, 0.96) 100%);
  z-index: -1;
  pointer-events: none;
}


.wf-bp--hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  max-height: 420px;
  background: #111;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.25);
}
.wf-bp--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wf-bp--hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background: linear-gradient(180deg,
                transparent 50%,
                rgba(0, 0, 0, 0.6) 100%);
}
.wf-bp--hero-tag {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


.wf-bp--intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
  cursor: pointer;
  animation: wf-bp-intro-fade-in 0.4s ease-out;
}
@keyframes wf-bp-intro-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.wf-bp--intro-animation {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
}
.wf-bp--intro-skip {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  user-select: none;
}
.wf-bp--intro-skip span {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}
@media (max-width: 640px) {
  .wf-bp--intro-overlay {
    padding: 16px;
    gap: 16px;
  }
  .wf-bp--intro-animation {
    max-height: 70vh;
  }
}



.wf-bp--paused {
  animation: wf-bp-fade-in 0.5s ease-out;
}
@keyframes wf-bp-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wf-bp--paused-icon {
  font-size: 80px;
  color: rgba(0, 0, 0, 0.18);
  line-height: 1;
}


.wf-bp.wf-bp--has-bg {
  position: relative;
  isolation: isolate;
  background-image: none !important;
}
.wf-bp.wf-bp--has-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--wf-bp-page-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}
.wf-bp.wf-bp--has-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(248, 250, 252, 0.72) 0%,
    rgba(248, 250, 252, 0.88) 38%,
    rgba(248, 250, 252, 0.96) 100%);
}
.wf-bp--hero-media,
.wf-bp--hero-media video,
.wf-bp--hero-media img {
  width: 100%;
}
.wf-bp--hero-media video,
.wf-bp--hero-media img {
  height: 100%;
  object-fit: cover;
  display: block;
}
.wf-bp--hero-overlay > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.wf-bp--hero-end {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: right;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.wf-bp--hero-end b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 16px;
  letter-spacing: 0;
}
.wf-bp--summary {
  position: relative;
  overflow: visible;
}
.wf-bp--summary > .bento-card {
  min-height: 260px;
}
.wf-bp--summary > .bento-card:first-child {
  background: linear-gradient(135deg, #101827 0%, #0b0f18 100%) !important;
  box-shadow: 0 22px 70px -24px rgba(15,23,42,.55);
}
.wf-bp--premium-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 260px;
  border-radius: 22px !important;
  box-shadow: 0 22px 70px -34px rgba(15,23,42,.45);
}
.wf-bp--premium-card form { margin-top: auto; }
.wf-bp--premium-card button {
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 16px 34px -20px rgba(245,158,11,.9);
}
.wf-bp--empty-card {
  border: 1px dashed rgba(148,163,184,.65);
  background: rgba(255,255,255,.78);
  border-radius: 20px;
  padding: 28px;
  color: #64748b;
  font-size: 14px;
  backdrop-filter: blur(10px);
}
.wf-bp--challenge-key {
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.45;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.wf-bp--intro-animation:is(video) {
  width: min(100%, 1280px);
  max-height: 78vh;
  object-fit: contain;
}
@media (max-width: 768px) {
  .wf-bp--hero {
    aspect-ratio: 16 / 7;
    border-radius: 18px;
  }
  .wf-bp--summary > .bento-card,
  .wf-bp--premium-card {
    min-height: auto;
  }
  .wf-bp--hero-overlay > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .wf-bp--hero-end { text-align: left; }
}


.wf-bp--premium-card {
  overflow: visible !important;
}
.wf-bp--premium-card h3,
.wf-bp--premium-card p,
.wf-bp--premium-card span {
  position: relative;
  z-index: 1;
}
.wf-bp--buy-premium-form {
  display: block !important;
  width: 100% !important;
  margin-top: auto !important;
  position: relative;
  z-index: 2;
}
.wf-bp--buy-premium-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 18px 36px -20px rgba(217,119,6,.95) !important;
  transition: transform .16s ease, filter .16s ease !important;
}
.wf-bp--buy-premium-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.wf-bp--buy-premium-btn:active { transform: translateY(0) scale(.98); }

.wf-bp--paused {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(620px, calc(100vh - 160px));
}
.wf-bp--paused-card {
  width: min(760px, 100%);
  border-radius: 36px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 28px 80px -34px rgba(15,23,42,.35);
  padding: clamp(34px, 6vw, 70px) clamp(24px, 5vw, 64px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.wf-bp--paused-icon {
  width: 84px;
  height: 84px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px !important;
  line-height: 1;
}
.wf-bp--paused-title {
  margin: 0 0 16px;
  color: #020617;
  font-size: clamp(36px, 6vw, 62px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.065em;
}
.wf-bp--paused-message {
  margin: 0 auto 26px;
  max-width: 560px;
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
}
.wf-bp--paused-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.wf-bp--paused-meta b { color: #475569; }
.wf-bp--paused-meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: #cbd5e1;
}
.wf-bp--daily-refresh {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.9);
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
  .wf-bp--paused-meta {
    flex-direction: column;
    border-radius: 22px;
    gap: 4px;
  }
  .wf-bp--paused-meta span + span::before { display: none; }
}

/* 高级版卡片保持纯白背景，不叠加赛季图片或纹理 */
.wf-bp--premium-card,
.wf-bp--premium-card.is-premium-active {
  position: relative;
  overflow: hidden !important;
  background: #fff !important;
}
.wf-bp--premium-card::before,
.wf-bp--premium-card::after,
.wf-bp--premium-card.is-premium-active::before,
.wf-bp--premium-card.is-premium-active::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
.wf-bp--premium-card > * {
  position: relative;
  z-index: 1;
}
