/* 任務通行證頁面樣式 - 只在任務通行證頁面生效 */

.battlepass-page .battlepass-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

/* 頁面頭部 */
.battlepass-page .battlepass-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(127, 0, 255, 0.1) 0%,
    rgba(0, 212, 255, 0.1) 100%
  );
  border: 1px solid rgba(127, 0, 255, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.battlepass-page .battlepass-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(127, 0, 255, 0.05) 50%,
    transparent 70%
  );
  animation: battlepass-shimmer 3s infinite;
}

.battlepass-page .battlepass-title-section {
  text-align: center;
  z-index: 2;
  position: relative;
}

.battlepass-page .battlepass-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.battlepass-page .battlepass-title i {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(127, 0, 255, 0.5);
}

.battlepass-page .battlepass-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.battlepass-page .season-info {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

.battlepass-page .season-status {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.battlepass-page .season-status.active {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  animation: battlepass-pulse 2s infinite;
}

.battlepass-page .season-status.inactive {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

/* 賽季信息卡片 */
.battlepass-page .season-info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.battlepass-page .season-dates {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.battlepass-page .date-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.battlepass-page .date-item i {
  color: var(--primary-color);
}

.battlepass-page .season-countdown {
  text-align: center;
}

.battlepass-page .countdown-active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.battlepass-page .countdown-active i {
  color: #4caf50;
}

.battlepass-page .countdown-ended {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.battlepass-page .countdown-ended i {
  color: #f44336;
}

/* 進度信息 */
.battlepass-page .progress-info {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.battlepass-page .level-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.battlepass-page .current-level,
.battlepass-page .next-level {
  text-align: center;
  min-width: 80px;
}

.battlepass-page .level-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.battlepass-page .level-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.battlepass-page .xp-progress {
  flex: 1;
  text-align: center;
}

.battlepass-page .xp-bar {
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
}

.battlepass-page .xp-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.5s ease;
  border-radius: var(--radius-sm);
}

.battlepass-page .xp-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.battlepass-page .max-level-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.battlepass-page .progress-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.battlepass-page .stat-item {
  text-align: center;
  min-width: 120px;
}

.battlepass-page .stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.battlepass-page .stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.battlepass-page .stat-note {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.battlepass-page .stat-note small {
  color: #888;
  font-size: 0.9rem;
}

/* 登錄要求頁面 */
.battlepass-page .login-required {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.battlepass-page .login-required-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.battlepass-page .login-required-content i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.battlepass-page .login-required-content h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.battlepass-page .login-required-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.battlepass-page .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #001a2e, #003d5b, #0066cc);
  color: white;
  border: 1px solid #0080ff;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 50%,
    calc(100% - 8px) 100%,
    0 100%
  );
  text-shadow: 0 0 10px rgba(0, 128, 255, 0.8);
  box-shadow:
    0 0 20px rgba(0, 102, 204, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.battlepass-page .login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.battlepass-page .login-btn:hover::before {
  left: 100%;
}

.battlepass-page .login-btn:hover {
  background: linear-gradient(135deg, #0066cc, #0080ff, #00aaff);
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(0, 128, 255, 0.6),
    0 0 30px rgba(0, 170, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: #00aaff;
}

/* 軌道容器 */
.battlepass-page .track-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: relative; /* 🔧 添加相對定位以支持絕對定位的子元素 */
}

.battlepass-page .track-header {
  text-align: center;
  margin-bottom: 2rem;
}

.battlepass-page .track-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.battlepass-page .track-title i {
  color: var(--primary-color);
}

.battlepass-page .track-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* 通行證軌道 */
.battlepass-page .battlepass-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2rem 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.battlepass-page .battlepass-track::-webkit-scrollbar {
  display: none;
}

.battlepass-page .battlepass-track.dragging {
  cursor: grabbing;
}

.battlepass-page .battlepass-track.dragging * {
  pointer-events: none;
}

.battlepass-page .track-level {
  flex-shrink: 0;
  width: 160px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.battlepass-page .track-level.unlocked {
  opacity: 1;
}

.battlepass-page .track-level.current {
  opacity: 1;
  transform: scale(1.05);
}

.battlepass-page .level-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  height: 200px;
}

/* 獎勵插槽 */
.battlepass-page .reward-slot {
  width: 140px;
  height: 110px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.battlepass-page .reward-slot.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.battlepass-page .reward-slot.unlocked {
  border-color: rgba(127, 0, 255, 0.4);
  background: rgba(127, 0, 255, 0.1);
}

.battlepass-page .reward-slot.unlocked:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(127, 0, 255, 0.3);
}

.battlepass-page .reward-slot.claimed {
  border-color: rgba(76, 175, 80, 0.6);
  background: rgba(76, 175, 80, 0.2);
}

.battlepass-page .reward-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.5rem;
  position: relative;
}

.battlepass-page .reward-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.battlepass-page .reward-info {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.battlepass-page .reward-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.battlepass-page .reward-description {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* 獎勵容器 - 修復佈局問題 */
.battlepass-page .reward-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 155px;
  justify-content: space-between;
}

.battlepass-page .claim-btn {
  position: relative;
  bottom: auto;
  right: auto;
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  max-width: 80px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.battlepass-page .claim-btn:hover {
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.battlepass-page .claim-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 已領取按鈕樣式 */
.battlepass-page .claim-btn:disabled,
.battlepass-page .claim-btn.claimed {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.8;
}

.battlepass-page .claim-btn:disabled:hover,
.battlepass-page .claim-btn.claimed:hover {
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.battlepass-page .locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.battlepass-page .locked-overlay i {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

/* 等級節點 */
.battlepass-page .level-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  opacity: 0;
  transform: scale(0.8);
}

.battlepass-page .level-node.unlocked {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  opacity: 1;
  transform: scale(1);
}

.battlepass-page .level-node.current {
  border-color: #ffd700;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #333;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: battlepass-glow 2s infinite;
}

.battlepass-page .level-number {
  font-size: 0.9rem;
  font-weight: 600;
}

.battlepass-page .current-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: #ffd700;
  border-radius: 50%;
  border: 2px solid white;
  animation: battlepass-pulse 1.5s infinite;
}

/* 軌道控制 */
.battlepass-page .track-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.battlepass-page .track-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.battlepass-page .track-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.battlepass-page .track-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.battlepass-page .track-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  min-width: 200px;
}

/* 稀有度樣式 */
.rarity-common .reward-icon {
  color: #b0b0b0;
}
.rarity-uncommon .reward-icon {
  color: #5cb85c;
}
.rarity-rare .reward-icon {
  color: #5bc0de;
}
.rarity-epic .reward-icon {
  color: #9b59b6;
}
.rarity-legendary .reward-icon {
  color: #f39c12;
  text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.rarity-legendary .reward-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(243, 156, 18, 0.1) 50%,
    transparent 70%
  );
  animation: legendary-shimmer 2s infinite;
}

/* 動畫 */
@keyframes battlepass-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes battlepass-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes xp-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes current-level-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(127, 0, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(127, 0, 255, 0.8);
  }
}

@keyframes legendary-shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(200%) rotate(45deg);
  }
}

@keyframes battlepass-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
  .battlepass-page .battlepass-container {
    padding: 1rem 0.5rem;
  }

  .battlepass-page .battlepass-header {
    padding: 1.5rem;
  }

  .battlepass-page .battlepass-title {
    font-size: 2rem;
  }

  .battlepass-page .level-info {
    flex-direction: column;
    gap: 1rem;
  }

  .battlepass-page .season-dates {
    flex-direction: column;
    gap: 0.5rem;
  }

  .battlepass-page .progress-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .battlepass-page .track-level {
    width: 120px;
  }

  .battlepass-page .reward-slot {
    width: 100px;
    height: 80px;
  }

  .battlepass-page .reward-container {
    min-height: 135px;
    gap: 0.4rem;
  }

  .battlepass-page .claim-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    max-width: 70px;
  }

  .battlepass-page .coupon-icon-content i {
    font-size: 1.4rem;
  }

  .battlepass-page .coupon-text {
    font-size: 0.65rem;
    padding: 1px 3px;
  }

  .battlepass-page .reward-icon {
    width: 75px;
    height: 75px;
  }

  .battlepass-page .track-controls {
    gap: 1rem;
  }

  .battlepass-page .track-hint {
    min-width: 150px;
    font-size: 0.8rem;
  }
}

/* 🎁 獎勵類型專用樣式 - 簡潔版 */

/* 獎勵圖示基礎樣式 */
.battlepass-page .reward-icon {
  width: 85px;
  height: 85px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.battlepass-page .reward-icon i {
  font-size: 1.5rem;
  color: white;
}

.battlepass-page .reward-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* 優惠券獎勵樣式 - 保留背景色 */
.battlepass-page .reward-type-coupon .reward-icon {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border-color: rgba(255, 215, 0, 0.4);
}

/* 寶箱獎勵樣式 - 移除背景，突出圖片 */
.battlepass-page .reward-type-case .reward-icon {
  background: transparent;
  border-color: rgba(139, 69, 19, 0.4);
}

/* 皮膚獎勵樣式 - 移除背景，突出圖片 */
.battlepass-page .reward-type-skin .reward-icon {
  background: transparent;
  border-color: rgba(74, 144, 226, 0.4);
}

/* 遊戲幣獎勵樣式 - 保留背景色 */
.battlepass-page .reward-type-money .reward-icon {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  border-color: rgba(76, 175, 80, 0.4);
}

/* 獎勵標籤樣式 */
.battlepass-page .reward-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-primary);
  min-height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 優惠券圖示內容 - 修復佈局 */
.battlepass-page .coupon-icon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
  padding: 8px;
}

.battlepass-page .coupon-icon-content i {
  font-size: 1.8rem;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
}

.battlepass-page .coupon-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 4px;
  border-radius: 3px;
}

.battlepass-page .coupon-label {
  color: #ff8c00;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(255, 140, 0, 0.3);
  animation: coupon-pulse 2s infinite alternate;
}

@keyframes coupon-pulse {
  0% {
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(255, 140, 0, 0.3);
  }
  100% {
    opacity: 1;
    text-shadow:
      0 1px 4px rgba(255, 140, 0, 0.6),
      0 0 8px rgba(255, 140, 0, 0.2);
  }
}

.battlepass-page .money-label {
  color: #4caf50;
  font-size: 0.9rem;
}

.battlepass-page .skin-label {
  font-size: 0.7rem;
  line-height: 1.2;
}

.battlepass-page .wear-rating {
  color: var(--text-secondary);
  font-size: 0.6rem;
}

.battlepass-page .skin-price {
  color: #4caf50;
  font-weight: bold;
  margin-top: 2px;
}

.battlepass-page .case-label {
  color: var(--text-primary);
  font-size: 0.7rem;
  line-height: 1.2;
}

/* 稀有度顏色 */
.battlepass-page .reward-slot[data-rarity="common"] {
  border-color: #9e9e9e;
}

.battlepass-page .reward-slot[data-rarity="rare"] {
  border-color: #2196f3;
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.battlepass-page .reward-slot[data-rarity="epic"] {
  border-color: #9c27b0;
  box-shadow: 0 0 10px rgba(156, 39, 176, 0.3);
}

.battlepass-page .reward-slot[data-rarity="legendary"] {
  border-color: #ff9800;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.battlepass-page .reward-slot[data-rarity="mythical"] {
  border-color: #f44336;
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.4);
  animation: mythical-glow 2s infinite alternate;
}

@keyframes mythical-glow {
  from {
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.4);
  }
  to {
    box-shadow: 0 0 25px rgba(244, 67, 54, 0.6);
  }
}

/* 高級通行證徽章 */
.battlepass-page .premium-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #333;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid #ffa500;
  box-shadow: 0 2px 5px rgba(255, 165, 0, 0.3);
  z-index: 3;
}

/* 獎勵內容布局 */
.battlepass-page .reward-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 10px 8px;
  position: relative;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .battlepass-page .reward-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }

  .battlepass-page .reward-icon i {
    font-size: 1.2rem;
  }

  .battlepass-page .reward-label {
    font-size: 0.7rem;
    min-height: 16px;
  }

  .battlepass-page .coupon-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .battlepass-page .money-label {
    font-size: 0.7rem;
  }

  .battlepass-page .skin-label {
    font-size: 0.6rem;
  }

  .battlepass-page .case-label {
    font-size: 0.6rem;
  }

  .battlepass-page .premium-badge {
    font-size: 0.6rem;
    padding: 1px 4px;
  }

  .battlepass-page .reward-content {
    padding: 8px 6px;
  }
}

/* 領取全部按鈕 */
.battlepass-page .claim-all-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 100;
}

.battlepass-page .claim-all-btn {
  position: relative;
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow:
    0 3px 10px rgba(40, 167, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 100px;
}

.battlepass-page .claim-all-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(40, 167, 69, 0.4),
    0 0 30px rgba(40, 167, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.battlepass-page .claim-all-btn:active {
  transform: translateY(0px);
  box-shadow:
    0 2px 10px rgba(40, 167, 69, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.battlepass-page .claim-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 2px 8px rgba(40, 167, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.battlepass-page .claim-all-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.battlepass-page .claim-all-btn:hover .claim-all-bg {
  transform: translateX(100%);
}

.battlepass-page .claim-all-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.battlepass-page .claim-all-content i {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.battlepass-page .claim-all-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  pointer-events: none;
}

.battlepass-page .claim-all-btn:active .claim-all-effect {
  width: 200px;
  height: 200px;
  opacity: 0;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .battlepass-page .claim-all-container {
    bottom: 15px;
    left: 15px;
  }

  .battlepass-page .claim-all-btn {
    font-size: 11px;
    padding: 7px 14px;
    min-width: 90px;
  }

  .battlepass-page .claim-all-content i {
    font-size: 14px;
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
  .reward-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .reward-card {
    padding: 10px;
    min-height: 110px;
  }

  .reward-card-icon {
    width: 40px;
    height: 40px;
  }

  .reward-card-icon img {
    width: 32px;
    height: 32px;
  }

  .reward-card-icon i {
    font-size: 20px;
  }

  .reward-card-title {
    font-size: 11px;
  }

  .reward-card-subtitle {
    font-size: 9px;
  }

  .reward-card-quantity {
    font-size: 10px;
  }

  .reward-card-action {
    padding: 5px 8px;
    font-size: 9px;
  }
}

/* 🏆 排行榜和開幕活動樣式 */

/* 排行榜區域 */
.battlepass-page .leaderboard-section {
  margin-top: 3rem;
}

/* 開幕活動橫幅 */
.battlepass-page .opening-event-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.battlepass-page .opening-event-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  animation: bannerShimmer 3s infinite;
}

.battlepass-page .event-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.battlepass-page .event-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: eventIconPulse 2s infinite;
}

.battlepass-page .event-title h2 {
  color: #ffd700;
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.battlepass-page .event-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 1rem;
}

/* 獎勵層級 */
.battlepass-page .event-rewards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.battlepass-page .reward-tier {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.battlepass-page .reward-tier:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.battlepass-page .reward-tier.first-place {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
}

.battlepass-page .reward-tier.second-third {
  border-color: rgba(192, 192, 192, 0.5);
  background: rgba(192, 192, 192, 0.1);
}

.battlepass-page .reward-tier.fourth-tenth {
  border-color: rgba(205, 127, 50, 0.5);
  background: rgba(205, 127, 50, 0.1);
}

.battlepass-page .tier-badge {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.battlepass-page .tier-info h3 {
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.battlepass-page .reward-name {
  color: var(--primary-color);
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* 🎁 武器獎勵顯示 */
.battlepass-page .reward-weapon-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.battlepass-page .reward-weapon-image {
  width: 160px;
  height: 110px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.battlepass-page .reward-weapon-image:hover {
  transform: scale(1.05);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.battlepass-page .reward-weapon-info {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.battlepass-page .reward-weapon-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.1);
}

.battlepass-page .reward-weapon-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* 針對不同獎勵層級的特殊樣式 */
.battlepass-page .reward-tier.first-place .reward-weapon-name {
  background: linear-gradient(135deg, #ffd700 0%, #fff200 50%, #ffd700 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.1rem;
  animation: goldShimmer 2s ease-in-out infinite;
}

.battlepass-page .reward-tier.second-third .reward-weapon-name {
  background: linear-gradient(135deg, #c0c0c0 0%, #f0f0f0 50%, #c0c0c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.battlepass-page .reward-tier.fourth-tenth .reward-weapon-name {
  background: linear-gradient(135deg, #cd7f32 0%, #daa520 50%, #cd7f32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 活動提示 */
.battlepass-page .event-notice {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffc107;
  font-size: 0.9rem;
}

.battlepass-page .event-notice i {
  color: #ffc107;
}

/* 排行榜容器 */
.battlepass-page .leaderboard-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.battlepass-page .leaderboard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.battlepass-page .leaderboard-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.battlepass-page .leaderboard-header i {
  color: var(--primary-color);
}

.battlepass-page .leaderboard-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* 排行榜載入狀態 */
.battlepass-page .leaderboard-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.battlepass-page .leaderboard-loading i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* 排行榜列表 */
.battlepass-page .leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.battlepass-page .leaderboard-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.battlepass-page .leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.battlepass-page .leaderboard-item.rank-1 {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
}

.battlepass-page .leaderboard-item.rank-2 {
  border-color: rgba(192, 192, 192, 0.5);
  background: rgba(192, 192, 192, 0.1);
}

.battlepass-page .leaderboard-item.rank-3 {
  border-color: rgba(205, 127, 50, 0.5);
  background: rgba(205, 127, 50, 0.1);
}

.battlepass-page .rank-badge {
  font-size: 1.5rem;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

.battlepass-page .player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.battlepass-page .player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.battlepass-page .player-details {
  flex: 1;
}

.battlepass-page .player-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.battlepass-page .player-stats {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.battlepass-page .achievement-time {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.battlepass-page .reward-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

.battlepass-page .reward-status.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.battlepass-page .reward-status.distributed {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* 空排行榜 */
.battlepass-page .leaderboard-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.battlepass-page .empty-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.battlepass-page .leaderboard-empty h3 {
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.battlepass-page .leaderboard-empty p {
  margin: 0 0 2rem 0;
  font-size: 1rem;
}

.battlepass-page .empty-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.battlepass-page .stat-item {
  text-align: center;
}

.battlepass-page .stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.battlepass-page .stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* 動畫 */
@keyframes bannerShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes eventIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* 🎨 軌道初始化載入狀態 */
.battlepass-page .track-initializing {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.battlepass-page .track-initialization-loading {
  text-align: center;
  color: var(--text-secondary);
}

.battlepass-page .track-initialization-loading .loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.battlepass-page .track-initialization-loading i {
  font-size: 2rem;
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

.battlepass-page .track-initialization-loading p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* 🚨 軌道錯誤狀態 */
.battlepass-page .track-error {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.battlepass-page .track-error .error-content {
  text-align: center;
  color: var(--text-secondary);
  max-width: 400px;
  padding: 2rem;
}

.battlepass-page .track-error i {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

.battlepass-page .track-error h3 {
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.battlepass-page .track-error p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.battlepass-page .retry-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.battlepass-page .retry-btn:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* 🎨 軌道載入完成狀態 */
.battlepass-page .track-loaded {
  animation: trackFadeIn 0.5s ease-out;
}

@keyframes trackFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
  .battlepass-page .opening-event-banner {
    padding: 1.5rem;
  }

  .battlepass-page .event-header {
    flex-direction: column;
    text-align: center;
  }

  .battlepass-page .event-rewards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .battlepass-page .reward-tier {
    min-height: 280px;
    padding: 1rem;
  }

  .battlepass-page .reward-weapon-image {
    width: 140px;
    height: 95px;
  }

  .battlepass-page .reward-weapon-name {
    font-size: 0.85rem;
  }

  .battlepass-page .reward-weapon-value {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }

  .battlepass-page .reward-name {
    min-height: 180px;
  }

  .battlepass-page .leaderboard-container {
    padding: 1.5rem;
  }

  .battlepass-page .leaderboard-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .battlepass-page .player-info {
    width: 100%;
  }

  .battlepass-page .achievement-time {
    align-self: flex-start;
    min-width: auto;
    font-size: 0.8rem;
  }

  .battlepass-page .reward-status {
    align-self: flex-end;
    min-width: auto;
  }

  .battlepass-page .empty-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
