/* 現代化賽博龐克風格開箱頁面 - 改進版 */

/* 確保導航列正確顯示 */
#navbar-container {
  height: 60px;
}

/* 賽博龐克背景效果 - 適應70%寬度 */
.case-cyber-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #050509 0%, #0a0a12 50%, #060610 100%);
}

.case-cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: -1px -1px;
  animation: cyber-grid-move 20s linear infinite;
  opacity: 0.4;
}

.case-cyber-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 首頁風格的動態粒子效果 */
.case-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 245, 255, 0.8);
  border-radius: 50%;
  animation: case-particle-float 10s linear infinite;
  box-shadow: 0 0 6px rgba(0, 245, 255, 0.8);
}

@keyframes case-particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(100px);
  }
}

/* 保留原有的靜態背景粒子作為備份 */
.case-cyber-particles::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(
    circle,
    rgba(80, 120, 160, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: cyber-particles-drift 25s linear infinite;
  opacity: 0.3;
}

.case-cyber-scanner {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.8),
    transparent
  );
  animation: cyber-scanner-sweep 8s linear infinite;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.case-cyber-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(80, 120, 160, 0.015) 40px,
    rgba(80, 120, 160, 0.015) 42px
  );
  animation: cyber-waves-move 18s linear infinite;
}

@keyframes cyber-grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes cyber-particles-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-50px, -50px) rotate(360deg);
  }
}

@keyframes cyber-scanner-sweep {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh);
  }
}

@keyframes cyber-waves-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(80px);
  }
}

/* 主要內容容器 - 70%寬度適配 */
.case-main-content {
  position: relative;
  z-index: 1;
  padding: 12px 0 20px 0;
  width: 90%;
  margin: 0 auto;
}

/* 頂部英雄區域 - 縮小尺寸 */
.case-hero-section {
  background: linear-gradient(
    135deg,
    rgba(20, 25, 35, 0.92) 0%,
    rgba(15, 18, 28, 0.95) 50%,
    rgba(18, 22, 32, 0.92) 100%
  );
  border-radius: 16px;
  padding: 20px 25px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(80, 120, 160, 0.08);
  border: 1px solid rgba(80, 120, 160, 0.15);
}

.case-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(80, 120, 160, 0.03) 0%,
    transparent 50%,
    rgba(120, 100, 180, 0.03) 100%
  );
  z-index: 1;
}

.case-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 箱子標題容器 - 最上方 */
.case-title-container {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

/* 開箱動畫區域 - 中間 */
.theater-stage {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* 控制區域 - 下方（數量在左邊，動畫選擇在中間，開箱按鈕在右邊） */
.case-control-zone {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

@keyframes case-glow-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.03);
  }
}

.case-image {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(80, 120, 160, 0.3));
  animation: case-float 6s ease-in-out infinite;
}

@keyframes case-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-5px) rotate(1deg);
  }
  66% {
    transform: translateY(-3px) rotate(-1deg);
  }
}

.case-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow:
    0 0 20px rgba(80, 120, 160, 0.6),
    0 0 40px rgba(80, 120, 160, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  word-wrap: break-word;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(135deg, #ffffff, #a0c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.case-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(80, 120, 160, 0.8),
    transparent
  );
  border-radius: 1px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: status-pulse 2.5s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.quantity-module {
  position: relative;
  z-index: 2;
  width: auto;
  flex-shrink: 0;
}

/* 等級箱子專用樣式 - 無數量選擇器佈局 */
.case-control-zone.level-case-layout {
  justify-content: center;
  gap: 40px;
}

.case-control-zone.level-case-layout .control-modules-container {
  margin: 0;
}

.case-control-zone.level-case-layout .action-module {
  margin: 0;
}

.open-amount-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.case-amount-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(80, 120, 160, 0.15);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 36px;
  width: 36px;
  flex-shrink: 0;
}

.case-amount-btn .btn-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  width: 100%;
  padding: 0;
  font-size: 0.9em;
}

.case-amount-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(80, 120, 160, 0.3);
  box-shadow: 0 6px 12px rgba(80, 120, 160, 0.15);
}

.case-amount-btn.active {
  background: linear-gradient(
    135deg,
    rgba(80, 120, 160, 0.1) 0%,
    rgba(120, 100, 180, 0.1) 100%
  );
  border-color: rgba(80, 120, 160, 0.4);
  box-shadow: 0 0 15px rgba(80, 120, 160, 0.2);
}

.btn-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  text-align: center;
}

/* 動畫速度開關模組 */
.animation-speed-module {
  position: relative;
  z-index: 2;
  width: auto;
  flex-shrink: 0;
  transform: scale(0.85);
}

.speed-switch-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speed-switch-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.external-lightning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(128, 128, 128, 0.6);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.external-lightning-icon.active {
  color: rgba(255, 193, 7, 0.9);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.6));
}

.speed-switch {
  position: relative;
  width: 70px;
  height: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(80, 120, 160, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.speed-switch:hover {
  border-color: rgba(80, 120, 160, 0.3);
  box-shadow: 0 0 15px rgba(80, 120, 160, 0.1);
}

.speed-switch-track {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 25, 0.8) 0%,
    rgba(20, 25, 35, 0.8) 100%
  );
  overflow: hidden;
}

.speed-switch-thumb {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(80, 120, 160, 0.9) 0%,
    rgba(120, 100, 180, 0.9) 100%
  );
  transform: translateY(-50%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 0 12px rgba(80, 120, 160, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.speed-switch-thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(200, 220, 255, 0.9) 100%
  );
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.speed-switch.fast .speed-switch-thumb {
  left: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 193, 7, 0.9) 0%,
    rgba(255, 235, 59, 0.9) 100%
  );
  box-shadow:
    0 0 12px rgba(255, 193, 7, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

.speed-switch.fast .speed-switch-thumb::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 245, 157, 0.95) 100%
  );
}

.speed-switch-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  pointer-events: none;
  z-index: 1;
}

.speed-label {
  position: absolute;
  width: 50%;
  height: 100%;
  cursor: pointer;
  user-select: none;
}

.speed-label-left {
  left: 0;
  top: 0;
}

.speed-label-right {
  right: 0;
  top: 0;
}

@keyframes icon-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ===== 控制模組容器 ===== */
.control-modules-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* ===== 音量控制模組樣式 ===== */
.volume-control-module {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.volume-control-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.volume-control-container:hover {
  border-color: transparent;
  box-shadow: none;
}

/* 音量圖標 */
.volume-icon {
  cursor: pointer;
  color: rgba(100, 200, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.volume-icon:hover {
  color: rgba(100, 200, 255, 1);
  transform: scale(1.1);
}

.volume-icon.muted {
  color: rgba(255, 100, 100, 0.8);
}

.volume-icon.muted:hover {
  color: rgba(255, 100, 100, 1);
}

/* 靜音時隱藏音波線條 */
.volume-icon.muted .volume-waves {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 低音量時只顯示一條音波 */
.volume-icon.low-volume .volume-waves path:last-child {
  opacity: 0.3;
}

/* 音量滑桿容器 */
.volume-slider-container {
  position: relative;
  width: 100px;
  height: 20px;
  display: flex;
  align-items: center;
}

/* 滑桿背景軌道 */
.volume-track-bg {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(100, 200, 255, 0.2);
  border-radius: 2px;
  transform: translateY(-50%);
  overflow: hidden;
}

/* 已填充的軌道 */
.volume-track-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 136, 0.8) 0%,
    rgba(100, 200, 255, 0.8) 100%
  );
  border-radius: 2px;
  width: 50%; /* 預設50% */
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(100, 200, 255, 0.3);
}

.volume-track-fill.muted {
  background: linear-gradient(
    90deg,
    rgba(255, 100, 100, 0.6) 0%,
    rgba(255, 150, 150, 0.6) 100%
  );
  box-shadow: 0 0 8px rgba(255, 100, 100, 0.3);
}

/* 實際的滑桿輸入 */
.volume-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

/* 滑桿拖拽點 (Webkit) */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(
    135deg,
    rgba(100, 200, 255, 0.9) 0%,
    rgba(0, 255, 136, 0.9) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(100, 200, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow:
    0 0 15px rgba(100, 200, 255, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.4);
}

.volume-slider.muted::-webkit-slider-thumb {
  background: linear-gradient(
    135deg,
    rgba(255, 100, 100, 0.9) 0%,
    rgba(255, 150, 150, 0.9) 100%
  );
  box-shadow:
    0 0 10px rgba(255, 100, 100, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 滑桿拖拽點 (Firefox) */
.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(
    135deg,
    rgba(100, 200, 255, 0.9) 0%,
    rgba(0, 255, 136, 0.9) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(100, 200, 255, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow:
    0 0 15px rgba(100, 200, 255, 0.6),
    0 3px 8px rgba(0, 0, 0, 0.4);
}

/* 音量百分比顯示 - 隱藏 */
.volume-percentage {
  display: none;
}

/* 滑桿活躍狀態效果 */
.volume-slider:active::-webkit-slider-thumb {
  transform: scale(1.3);
  box-shadow:
    0 0 20px rgba(100, 200, 255, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

.volume-slider:active::-moz-range-thumb {
  transform: scale(1.3);
  box-shadow:
    0 0 20px rgba(100, 200, 255, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

/* 軌道填充動畫 */
.volume-track-fill.animating {
  animation: volume-fill-pulse 0.3s ease-out;
}

@keyframes volume-fill-pulse {
  0% {
    transform: scaleY(1);
    filter: brightness(1);
  }
  50% {
    transform: scaleY(1.5);
    filter: brightness(1.3);
  }
  100% {
    transform: scaleY(1);
    filter: brightness(1);
  }
}

/* 響應式設計 - 控制模組容器 */
@media (max-width: 768px) {
  .control-modules-container {
    gap: 6px;
    margin-bottom: 10px;
  }

  .volume-control-container {
    gap: 10px;
    padding: 6px 12px;
  }

  .volume-slider-container {
    width: 80px;
  }

  .volume-icon {
    width: 20px;
    height: 20px;
  }

  .volume-icon svg {
    width: 18px;
    height: 18px;
  }

  .volume-percentage {
    font-size: 0.75rem;
    min-width: 30px;
  }
}

@media (max-width: 480px) {
  .control-modules-container {
    gap: 5px;
    margin-bottom: 8px;
  }

  .volume-control-container {
    gap: 8px;
    padding: 5px 10px;
  }

  .volume-slider-container {
    width: 70px;
  }

  .volume-icon {
    width: 18px;
    height: 18px;
  }

  .volume-icon svg {
    width: 16px;
    height: 16px;
  }

  .volume-percentage {
    font-size: 0.7rem;
    min-width: 28px;
  }

  .volume-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }

  .volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
}

.action-module {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 300px;
}

/* 全新極簡科技風開箱按鈕 */
.open-btn {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 0;
  height: 52px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 12px;
}

/* 外圍發光環 */
.btn-glow-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 12px;
  background: linear-gradient(
    45deg,
    rgba(255, 0, 110, 0.3),
    rgba(0, 212, 255, 0.3),
    rgba(0, 255, 136, 0.3),
    rgba(255, 0, 110, 0.3)
  );
  background-size: 400% 400%;
  animation: glow-ring-flow 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.open-btn:hover .btn-glow-ring {
  opacity: 1;
}

.glow-pulse {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  animation: glow-pulse-beat 2s ease-in-out infinite;
}

@keyframes glow-ring-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes glow-pulse-beat {
  0%,
  100% {
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.2);
  }
}

/* 主背景 */
.btn-main-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
}

.bg-animated-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(20, 25, 35, 0.95) 0%,
    rgba(30, 35, 45, 0.9) 50%,
    rgba(25, 30, 40, 0.95) 100%
  );
  transition: all 0.4s ease;
}

.open-btn:hover .bg-animated-gradient {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(20, 25, 35, 0.9) 30%,
    rgba(30, 35, 45, 0.9) 70%,
    rgba(0, 255, 136, 0.15) 100%
  );
}

.bg-tech-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(0, 212, 255, 0.05) 10px,
      rgba(0, 212, 255, 0.05) 11px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 10px,
      rgba(0, 212, 255, 0.03) 10px,
      rgba(0, 212, 255, 0.03) 11px
    );
  animation: tech-pattern-slide 8s linear infinite;
  opacity: 0.6;
}

@keyframes tech-pattern-slide {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(10px, 10px);
  }
}

/* 邊框效果 */
.btn-border-fx {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.border-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 212, 255, 0.6);
  transition: all 0.3s ease;
}

.border-corner.top-left {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
}

.border-corner.top-right {
  top: 4px;
  right: 4px;
  border-left: none;
  border-bottom: none;
}

.border-corner.bottom-left {
  bottom: 4px;
  left: 4px;
  border-right: none;
  border-top: none;
}

.border-corner.bottom-right {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
}

.open-btn:hover .border-corner {
  border-color: rgba(0, 255, 136, 0.8);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.border-scan-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.4) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
}

.open-btn:hover .border-scan-line {
  left: 100%;
}

/* 按鈕主要內容 */
.btn-main-content {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 0 20px;
}

.btn-main-text {
  position: relative;
  text-align: center;
}

.main-label {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  display: block;
  margin-bottom: 2px;
}

.price-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(0, 255, 136, 0.9);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
  transition: all 0.3s ease;
  display: block;
}

.open-btn:hover .main-label {
  color: #00ff88;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.open-btn:hover .price-label {
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.text-fx-line {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 212, 255, 0.8),
    rgba(0, 255, 136, 0.8)
  );
  transition: width 0.4s ease;
}

.open-btn:hover .text-fx-line {
  width: 100%;
}

.btn-power-indicator {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.btn-power-indicator.left {
  align-items: flex-start;
}

.btn-power-indicator.right {
  align-items: flex-end;
}

.power-bar {
  height: 2px;
  background: rgba(0, 212, 255, 0.3);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.btn-power-indicator.left .power-bar:nth-child(1) {
  width: 20px;
  background: rgba(0, 212, 255, 0.6);
}

.btn-power-indicator.left .power-bar:nth-child(2) {
  width: 18px;
  animation: power-bar-pulse 2s ease-in-out infinite;
  animation-delay: 0.2s;
}

.btn-power-indicator.left .power-bar:nth-child(3) {
  width: 16px;
  animation: power-bar-pulse 2s ease-in-out infinite;
  animation-delay: 0.4s;
}

.btn-power-indicator.right .power-bar:nth-child(1) {
  width: 20px;
  background: rgba(0, 212, 255, 0.6);
}

.btn-power-indicator.right .power-bar:nth-child(2) {
  width: 18px;
  animation: power-bar-pulse 2s ease-in-out infinite;
  animation-delay: 0.6s;
}

.btn-power-indicator.right .power-bar:nth-child(3) {
  width: 16px;
  animation: power-bar-pulse 2s ease-in-out infinite;
  animation-delay: 0.8s;
}

.open-btn:hover .power-bar {
  background: rgba(0, 255, 136, 0.8);
  box-shadow: 0 0 4px rgba(0, 255, 136, 0.4);
}

@keyframes power-bar-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* 懸浮粒子 */
.btn-floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
}

.float-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  animation: float-particle-drift 4s ease-in-out infinite;
}

.float-particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.float-particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 1s;
}

.float-particle:nth-child(3) {
  top: 40%;
  right: 20%;
  animation-delay: 2s;
}

.float-particle:nth-child(4) {
  bottom: 30%;
  left: 60%;
  animation-delay: 3s;
}

@keyframes float-particle-drift {
  0%,
  100% {
    transform: translateY(0px) scale(0.8);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-8px) scale(1.2);
    opacity: 1;
  }
}

/* 點擊爆炸效果 */
.btn-explosion-fx {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 136, 0.6) 0%,
    rgba(0, 212, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 5;
}

.open-btn:active .btn-explosion-fx {
  width: 120px;
  height: 120px;
}

/* 按鈕整體效果 */
.open-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(0, 212, 255, 0.15);
}

.open-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* 等級箱子特殊樣式 */
.open-btn.level-case-ready {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.2) 0%,
    rgba(0, 212, 255, 0.15) 50%,
    rgba(0, 255, 136, 0.2) 100%
  );
  border: 2px solid rgba(0, 255, 136, 0.5);
  box-shadow:
    0 0 20px rgba(0, 255, 136, 0.3),
    inset 0 0 20px rgba(0, 255, 136, 0.1);
}

.open-btn.level-case-ready .bg-animated-gradient {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.25) 0%,
    rgba(0, 212, 255, 0.2) 30%,
    rgba(20, 25, 35, 0.8) 50%,
    rgba(0, 212, 255, 0.2) 70%,
    rgba(0, 255, 136, 0.25) 100%
  );
}

.open-btn.level-case-ready .main-label {
  color: #00ff88;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  font-weight: 700;
}

.open-btn.level-case-ready .price-label {
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
  font-weight: 600;
}

.open-btn.level-case-disabled {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.15) 0%,
    rgba(60, 60, 60, 0.3) 50%,
    rgba(255, 0, 0, 0.15) 100%
  );
  border: 2px solid rgba(255, 100, 100, 0.4);
  cursor: not-allowed;
}

.open-btn.level-case-disabled .bg-animated-gradient {
  background: linear-gradient(
    135deg,
    rgba(60, 60, 60, 0.7) 0%,
    rgba(40, 40, 40, 0.8) 50%,
    rgba(60, 60, 60, 0.7) 100%
  );
}

.open-btn.level-case-disabled .main-label {
  color: #ff6666;
  text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

.open-btn.level-case-disabled .price-label {
  color: #ff9999;
  text-shadow: 0 0 8px rgba(255, 100, 100, 0.4);
}

/* 等級箱子載入狀態 - 空白等待API回應 */
.open-btn.level-case-loading {
  background: linear-gradient(
    135deg,
    rgba(100, 100, 100, 0.1) 0%,
    rgba(50, 50, 50, 0.2) 50%,
    rgba(100, 100, 100, 0.1) 100%
  );
  border: 2px solid rgba(150, 150, 150, 0.3);
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
}

.open-btn.level-case-loading .bg-animated-gradient {
  background: linear-gradient(
    135deg,
    rgba(60, 60, 60, 0.5) 0%,
    rgba(40, 40, 40, 0.6) 50%,
    rgba(60, 60, 60, 0.5) 100%
  );
  animation: loading-pulse 2s ease-in-out infinite;
}

.open-btn.level-case-loading .main-label {
  color: transparent; /* 完全透明，保持空白 */
  text-shadow: none;
}

.open-btn.level-case-loading .price-label {
  color: transparent; /* 完全透明，保持空白 */
  text-shadow: none;
}

/* 載入脈動動畫 */
@keyframes loading-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

/* 等級箱子冷卻動畫 - 修改為灰色主題 */
.open-btn.level-case-cooldown {
  background: linear-gradient(
    135deg,
    rgba(120, 120, 120, 0.2) 0%,
    rgba(80, 80, 80, 0.4) 50%,
    rgba(120, 120, 120, 0.2) 100%
  );
  border: 2px solid rgba(120, 120, 120, 0.5);
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
  opacity: 0.7;
}

.open-btn.level-case-cooldown .bg-animated-gradient {
  background: linear-gradient(
    135deg,
    rgba(70, 70, 70, 0.8) 0%,
    rgba(50, 50, 50, 0.9) 50%,
    rgba(70, 70, 70, 0.8) 100%
  );
}

.open-btn.level-case-cooldown .main-label {
  color: #cccccc;
  text-shadow: 0 0 5px rgba(200, 200, 200, 0.3);
}

.open-btn.level-case-cooldown .price-label {
  color: #aaaaaa;
  text-shadow: 0 0 3px rgba(180, 180, 180, 0.2);
}

/* 冷卻倒數動畫效果 - 修改為灰色主題 */
.cooldown-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(160, 160, 160, 0.8),
    rgba(120, 120, 120, 0.8)
  );
  border-radius: 0 0 8px 8px;
  animation: cooldown-pulse 2s ease-in-out infinite;
}

@keyframes cooldown-pulse {
  0%,
  100% {
    opacity: 0.5;
    box-shadow: 0 0 5px rgba(150, 150, 150, 0.3);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(180, 180, 180, 0.5);
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
  .open-btn {
    height: 46px;
  }

  .main-label {
    font-size: 0.9rem;
  }

  .btn-main-content {
    gap: 12px;
    padding: 0 16px;
  }

  .btn-power-indicator.left .power-bar:nth-child(1),
  .btn-power-indicator.right .power-bar:nth-child(1) {
    width: 18px;
  }

  .btn-power-indicator.left .power-bar:nth-child(2),
  .btn-power-indicator.right .power-bar:nth-child(2) {
    width: 16px;
  }

  .btn-power-indicator.left .power-bar:nth-child(3),
  .btn-power-indicator.right .power-bar:nth-child(3) {
    width: 14px;
  }
}

.animation-card {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 50, 0.8),
    rgba(20, 20, 40, 0.9)
  );
  border-radius: 20px;
  border: 1px solid rgba(100, 200, 255, 0.2);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
}

.animation-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.8),
    transparent
  );
  animation: cardScan 4s linear infinite;
}

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

.animation-card-inner {
  padding: 50px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.animation-placeholder {
  text-align: center;
  width: 100%;
}

.animation-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(100, 200, 255, 0.3);
  border-radius: 50%;
  animation: iconSpin 4s linear infinite;
}

.icon-ring::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: rgba(100, 200, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

@keyframes iconSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.icon-center {
  font-size: 2rem;
  z-index: 1;
}

.animation-text h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.animation-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.animation-features {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: rgba(100, 200, 255, 0.9);
}

.feature-icon {
  font-size: 1.2rem;
}

.inline-opening-container {
  display: none;
  width: 100%;
  min-height: 200px;
}

/* 多箱開啟容器 */
.multi-open-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.slot-machine {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 50, 0.9),
    rgba(20, 20, 40, 0.95)
  );
  border-radius: 20px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.multi-open-results-summary {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 50, 0.9),
    rgba(20, 20, 40, 0.95)
  );
  border-radius: 20px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
}

#multiOpenResultsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* 上榜區域 - 重新設計為橫向排列的小卡片（類似LiveDrop風格） */
.leaderboard-section {
  margin-bottom: 40px;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 50, 0.8),
    rgba(20, 20, 40, 0.9)
  );
  border-radius: 20px;
  border: 1px solid rgba(100, 200, 255, 0.2);
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* 添加賽博龐克發光效果 */
.leaderboard-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(100, 200, 255, 0.8) 50%,
    transparent 100%
  );
  animation: leaderboard-scan-line 3s linear infinite;
}

@keyframes leaderboard-scan-line {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.header-cyber-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.cyber-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.5),
    transparent
  );
  position: relative;
  max-width: 150px;
}

.cyber-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.8),
    transparent
  );
  animation: cyber-line-flow 2s ease-in-out infinite;
}

@keyframes cyber-line-flow {
  0%,
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    transform: translateX(0);
    opacity: 1;
  }
}

.cyber-node {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-core {
  font-size: 2rem;
  z-index: 2;
  position: relative;
  color: rgba(100, 200, 255, 0.8);
}

.node-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(100, 200, 255, 0.4);
  border-radius: 50%;
  animation: node-ring-spin 4s linear infinite;
}

@keyframes node-ring-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 標題樣式 */
.leaderboard-title {
  margin-bottom: 20px;
}

.title-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  font-family: "Orbitron", monospace;
  text-shadow:
    0 0 10px rgba(100, 200, 255, 0.8),
    0 0 20px rgba(100, 200, 255, 0.4);
}

.title-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 5px currentColor);
  animation: title-pulse 2s ease-in-out infinite;
}

@keyframes title-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.title-subtitle {
  color: rgba(100, 200, 255, 0.6);
  font-size: 0.9rem;
  font-family: "JetBrains Mono", monospace;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* 排行榜內容 - 橫向排列的小卡片 */
.leaderboard-content {
  position: relative;
  min-height: 150px;
  width: 100%;
  overflow: hidden;
}

.leaderboard-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 15px;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 10px 5px;
  min-height: 180px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 200, 255, 0.3) transparent;
  justify-content: start;
  align-items: start;
}

/* 自定義滾動條樣式 */
.leaderboard-grid::-webkit-scrollbar {
  height: 6px;
}

.leaderboard-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.leaderboard-grid::-webkit-scrollbar-thumb {
  background: rgba(100, 200, 255, 0.3);
  border-radius: 3px;
}

.leaderboard-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 200, 255, 0.5);
}

/* 排行榜卡片 - 類似LiveDrop的設計 */
.leaderboard-item {
  position: relative;
  width: 160px;
  height: 210px;
  min-width: 160px;
  max-width: 160px;
  min-height: 210px;
  max-height: 210px;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 26, 0.9),
    rgba(10, 10, 20, 0.95)
  );
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  /* 賽博龐克斜角設計 */
  clip-path: polygon(
    0 8px,
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%
  );
}

.leaderboard-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(100, 200, 255, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.leaderboard-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(100, 200, 255, 0.6);
  box-shadow:
    0 10px 30px rgba(100, 200, 255, 0.3),
    inset 0 0 20px rgba(100, 200, 255, 0.1);
}

.leaderboard-item:hover::before {
  opacity: 1;
  animation: leaderboard-scan 2s linear infinite;
}

@keyframes leaderboard-scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* 排行榜卡片頭部 */
.leaderboard-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(100, 200, 255, 0.2);
  position: relative;
  z-index: 2;
}

.item-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 215, 0, 0.9);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  font-family: "Orbitron", monospace;
}

.drop-time {
  font-size: 0.7rem;
  color: rgba(100, 200, 255, 0.7);
  font-family: "JetBrains Mono", monospace;
}

/* 武器區域 */
.item-weapon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  z-index: 2;
}

.weapon-image {
  width: 80px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.3));
  transition: transform 0.3s ease;
}

.leaderboard-item:hover .weapon-image {
  transform: scale(1.1) rotate(3deg);
}

.weapon-info {
  text-align: center;
  width: 100%;
}

.weapon-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  max-height: 30px;
  overflow: hidden;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  font-family: "Orbitron", monospace;
  margin-bottom: 3px;
}

.weapon-rarity {
  font-size: 0.65rem;
  color: rgba(100, 200, 255, 0.8);
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 用戶區域 */
.item-user {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(100, 200, 255, 0.2);
  position: relative;
  z-index: 2;
}

.user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(100, 200, 255, 0.4);
  box-shadow: 0 0 5px rgba(100, 200, 255, 0.3);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.case-user-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(100, 200, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Orbitron", monospace;
  text-shadow: 0 0 3px rgba(100, 200, 255, 0.5);
}

/* 發光效果 */
.item-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(100, 200, 255, 0.05) 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.leaderboard-item:hover .item-glow {
  opacity: 1;
}

/* 稀有度特殊效果 */
.leaderboard-item.white {
  border-color: rgba(255, 255, 255, 0.2);
}
.leaderboard-item.light-blue {
  border-color: rgba(94, 152, 217, 0.3);
}
.leaderboard-item.blue {
  border-color: rgba(75, 105, 255, 0.3);
}
.leaderboard-item.dark-blue {
  border-color: rgba(50, 50, 255, 0.4);
}
.leaderboard-item.purple {
  border-color: rgba(136, 71, 255, 0.4);
}
.leaderboard-item.pink {
  border-color: rgba(211, 44, 230, 0.4);
}
.leaderboard-item.red {
  border-color: rgba(235, 75, 75, 0.4);
}
.leaderboard-item.golden {
  border-color: rgba(255, 215, 0, 0.5);
  animation: golden-leaderboard-pulse 2s ease-in-out infinite;
}

@keyframes golden-leaderboard-pulse {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  }
  50% {
    filter: brightness(1.2);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
  }
}

/* 載入和錯誤狀態 */
.leaderboard-loading,
.leaderboard-empty,
.leaderboard-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: rgba(100, 200, 255, 0.7);
  font-family: "Orbitron", monospace;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(100, 200, 255, 0.2);
  border-top: 3px solid rgba(100, 200, 255, 0.8);
  border-radius: 50%;
  animation: leaderboard-spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes leaderboard-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text,
.empty-text,
.error-text {
  font-size: 0.9rem;
  text-align: center;
  color: rgba(100, 200, 255, 0.6);
  margin-top: 10px;
}

.empty-icon,
.error-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.7;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .leaderboard-section {
    padding: 20px;
  }

  .leaderboard-item {
    width: 120px;
    height: 140px;
    min-width: 120px;
    max-width: 120px;
    min-height: 140px;
    max-height: 140px;
  }

  .weapon-image {
    width: 65px;
    height: 50px;
  }

  .weapon-name {
    font-size: 0.7rem;
    max-height: 24px;
  }

  .weapon-rarity {
    font-size: 0.6rem;
  }

  .case-user-name {
    font-size: 0.65rem;
  }

  .item-rank {
    font-size: 0.75rem;
  }

  .drop-time {
    font-size: 0.65rem;
  }

  .title-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .title-icon {
    font-size: 1.5rem;
  }

  .leaderboard-grid {
    gap: 10px;
    grid-auto-columns: 120px;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    overflow-x: visible;
    justify-items: center;
  }
}

@media (max-width: 480px) {
  .leaderboard-section {
    padding: 15px;
  }

  .leaderboard-item {
    width: 100px;
    height: 120px;
    min-width: 100px;
    max-width: 100px;
    min-height: 120px;
    max-height: 120px;
  }

  .weapon-image {
    width: 55px;
    height: 40px;
  }

  .weapon-name {
    font-size: 0.65rem;
    max-height: 20px;
  }

  .weapon-rarity {
    font-size: 0.55rem;
  }

  .case-user-name {
    font-size: 0.6rem;
  }

  .item-rank {
    font-size: 0.7rem;
  }

  .drop-time {
    font-size: 0.6rem;
  }

  .title-text {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .title-icon {
    font-size: 1.3rem;
  }

  .leaderboard-grid {
    gap: 8px;
    grid-auto-columns: 100px;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    overflow-x: visible;
    justify-items: center;
  }

  .leaderboard-item-header {
    padding: 6px 8px;
  }

  .item-user {
    padding: 4px 8px;
  }

  .user-avatar {
    width: 18px;
    height: 18px;
  }
}

/* 相容原有的樣式類名 */
.header-decoration {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.deco-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.5),
    transparent
  );
}

.deco-center {
  font-size: 1.8rem;
  color: rgba(100, 200, 255, 0.8);
}

.item-preview {
  display: flex;
  align-items: center;
  gap: 15px;
}

.item-preview img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
}

.item-name {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.item-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00ff88;
}

/* 箱子內容物區域 */
.case-items-section {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 50, 0.8),
    rgba(20, 20, 40, 0.9)
  );
  border-radius: 20px;
  border: 1px solid rgba(100, 200, 255, 0.2);
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.case-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 210px);
  gap: 20px;
  justify-content: center;
}

/* 賽博龐克物品卡片樣式 */
:root {
  /* 稀有度顏色定義 */
  --rarity-consumer: #b0c3d9;
  --rarity-industrial: #5e98d9;
  --rarity-mil-spec: #4b69ff;
  --rarity-restricted: #8847ff;
  --rarity-classified: #d32ce6;
  --rarity-covert: #eb4b4b;
  --rarity-golden: #ffd700;
  --rarity-contraband: #e4ae39;
}

.case-item,
.cyber-case-item {
  background: rgba(15, 15, 26, 0.9);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 0;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 240px;
  cursor: pointer;
  max-width: 210px;
}

.case-item::before,
.cyber-case-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(0, 245, 255, 0.1),
    rgba(255, 0, 110, 0.1),
    rgba(191, 0, 255, 0.1)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.case-item:hover::before,
.cyber-case-item:hover::before {
  opacity: 1;
}

.case-item:hover,
.cyber-case-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow:
    inset 0 0 20px rgba(0, 245, 255, 0.1),
    0 0 20px rgba(0, 245, 255, 0.2);
}

/* 邊框效果 */
.item-border-effect {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(0, 245, 255, 0.3),
    rgba(255, 0, 110, 0.3),
    rgba(191, 0, 255, 0.3)
  );
  z-index: -1;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.case-item:hover .item-border-effect,
.cyber-case-item:hover .item-border-effect {
  opacity: 1;
}

/* 掃描線效果 */
.item-scan-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.8),
    transparent
  );
  animation: item-scan 3s linear infinite;
  z-index: 2;
}

@keyframes item-scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.case-item:hover .item-scan-line,
.cyber-case-item:hover .item-scan-line {
  animation-duration: 1.5s;
}

/* 圖片容器 */
.item-image-container {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  filter: saturate(1.1) brightness(1.1);
}

.case-item:hover .item-image,
.cyber-case-item:hover .item-image {
  transform: scale(1.05);
  filter: saturate(1.3) brightness(1.2);
}

/* 發光效果 */
.item-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(0, 245, 255, 0.1) 50%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-item:hover .item-glow-effect,
.cyber-case-item:hover .item-glow-effect {
  opacity: 1;
}

/* 物品詳細信息 */
.item-details {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.item-wear {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 245, 255, 0.1);
  padding: 3px 6px;
  border-radius: 2px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
  flex: 1;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.item-price {
  font-size: 1rem;
  font-weight: 700;
  color: #00ff41;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
  margin-bottom: 4px;
}

.item-drop-rate {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

/* 稀有度指示器 */
.item-rarity-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(0, 245, 255, 0.6),
    rgba(0, 245, 255, 0.3)
  );
}

/* 稀有度特殊樣式 */

/* 消費級 */
.case-item.rarity-consumer,
.cyber-case-item.rarity-consumer {
  border-color: rgba(176, 195, 217, 0.3);
}
.case-item.rarity-consumer .item-border-effect,
.cyber-case-item.rarity-consumer .item-border-effect {
  background: linear-gradient(
    45deg,
    var(--rarity-consumer),
    rgba(176, 195, 217, 0.5),
    var(--rarity-consumer)
  );
}
.case-item.rarity-consumer .item-rarity-indicator,
.cyber-case-item.rarity-consumer .item-rarity-indicator {
  background: linear-gradient(
    90deg,
    var(--rarity-consumer),
    rgba(176, 195, 217, 0.6)
  );
}
.case-item.rarity-consumer .item-scan-line,
.cyber-case-item.rarity-consumer .item-scan-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rarity-consumer),
    transparent
  );
}
.case-item.rarity-consumer:hover .item-glow-effect,
.cyber-case-item.rarity-consumer:hover .item-glow-effect {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(176, 195, 217, 0.15) 50%,
    transparent 80%
  );
}

/* 工業級 */
.case-item.rarity-industrial,
.cyber-case-item.rarity-industrial {
  border-color: rgba(94, 152, 217, 0.3);
}
.case-item.rarity-industrial .item-border-effect,
.cyber-case-item.rarity-industrial .item-border-effect {
  background: linear-gradient(
    45deg,
    var(--rarity-industrial),
    rgba(94, 152, 217, 0.5),
    var(--rarity-industrial)
  );
}
.case-item.rarity-industrial .item-rarity-indicator,
.cyber-case-item.rarity-industrial .item-rarity-indicator {
  background: linear-gradient(
    90deg,
    var(--rarity-industrial),
    rgba(94, 152, 217, 0.6)
  );
}
.case-item.rarity-industrial .item-scan-line,
.cyber-case-item.rarity-industrial .item-scan-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rarity-industrial),
    transparent
  );
}
.case-item.rarity-industrial:hover .item-glow-effect,
.cyber-case-item.rarity-industrial:hover .item-glow-effect {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(94, 152, 217, 0.15) 50%,
    transparent 80%
  );
}

/* 軍規級 */
.case-item.rarity-mil-spec,
.cyber-case-item.rarity-mil-spec {
  border-color: rgba(75, 105, 255, 0.3);
}
.case-item.rarity-mil-spec .item-border-effect,
.cyber-case-item.rarity-mil-spec .item-border-effect {
  background: linear-gradient(
    45deg,
    var(--rarity-mil-spec),
    rgba(75, 105, 255, 0.5),
    var(--rarity-mil-spec)
  );
}
.case-item.rarity-mil-spec .item-rarity-indicator,
.cyber-case-item.rarity-mil-spec .item-rarity-indicator {
  background: linear-gradient(
    90deg,
    var(--rarity-mil-spec),
    rgba(75, 105, 255, 0.6)
  );
}
.case-item.rarity-mil-spec .item-scan-line,
.cyber-case-item.rarity-mil-spec .item-scan-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rarity-mil-spec),
    transparent
  );
}
.case-item.rarity-mil-spec:hover .item-glow-effect,
.cyber-case-item.rarity-mil-spec:hover .item-glow-effect {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(75, 105, 255, 0.15) 50%,
    transparent 80%
  );
}

/* 限制級 */
.case-item.rarity-restricted,
.cyber-case-item.rarity-restricted {
  border-color: rgba(136, 71, 255, 0.3);
}
.case-item.rarity-restricted .item-border-effect,
.cyber-case-item.rarity-restricted .item-border-effect {
  background: linear-gradient(
    45deg,
    var(--rarity-restricted),
    rgba(136, 71, 255, 0.5),
    var(--rarity-restricted)
  );
}
.case-item.rarity-restricted .item-rarity-indicator,
.cyber-case-item.rarity-restricted .item-rarity-indicator {
  background: linear-gradient(
    90deg,
    var(--rarity-restricted),
    rgba(136, 71, 255, 0.6)
  );
}
.case-item.rarity-restricted .item-scan-line,
.cyber-case-item.rarity-restricted .item-scan-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rarity-restricted),
    transparent
  );
}
.case-item.rarity-restricted:hover .item-glow-effect,
.cyber-case-item.rarity-restricted:hover .item-glow-effect {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(136, 71, 255, 0.15) 50%,
    transparent 80%
  );
}

/* 分類級 */
.case-item.rarity-classified,
.cyber-case-item.rarity-classified {
  border-color: rgba(211, 44, 230, 0.3);
}
.case-item.rarity-classified .item-border-effect,
.cyber-case-item.rarity-classified .item-border-effect {
  background: linear-gradient(
    45deg,
    var(--rarity-classified),
    rgba(211, 44, 230, 0.5),
    var(--rarity-classified)
  );
}
.case-item.rarity-classified .item-rarity-indicator,
.cyber-case-item.rarity-classified .item-rarity-indicator {
  background: linear-gradient(
    90deg,
    var(--rarity-classified),
    rgba(211, 44, 230, 0.6)
  );
}
.case-item.rarity-classified .item-scan-line,
.cyber-case-item.rarity-classified .item-scan-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rarity-classified),
    transparent
  );
}
.case-item.rarity-classified:hover .item-glow-effect,
.cyber-case-item.rarity-classified:hover .item-glow-effect {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(211, 44, 230, 0.15) 50%,
    transparent 80%
  );
}

/* 隱密級 */
.case-item.rarity-covert,
.cyber-case-item.rarity-covert {
  border-color: rgba(235, 75, 75, 0.3);
}
.case-item.rarity-covert .item-border-effect,
.cyber-case-item.rarity-covert .item-border-effect {
  background: linear-gradient(
    45deg,
    var(--rarity-covert),
    rgba(235, 75, 75, 0.5),
    var(--rarity-covert)
  );
}
.case-item.rarity-covert .item-rarity-indicator,
.cyber-case-item.rarity-covert .item-rarity-indicator {
  background: linear-gradient(
    90deg,
    var(--rarity-covert),
    rgba(235, 75, 75, 0.6)
  );
}
.case-item.rarity-covert .item-scan-line,
.cyber-case-item.rarity-covert .item-scan-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rarity-covert),
    transparent
  );
}
.case-item.rarity-covert:hover .item-glow-effect,
.cyber-case-item.rarity-covert:hover .item-glow-effect {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(235, 75, 75, 0.15) 50%,
    transparent 80%
  );
}

/* 金色/特殊級 */
.case-item.rarity-golden,
.cyber-case-item.rarity-golden {
  border-color: rgba(255, 215, 0, 0.3);
}
.case-item.rarity-golden .item-border-effect,
.cyber-case-item.rarity-golden .item-border-effect {
  background: linear-gradient(
    45deg,
    var(--rarity-golden),
    rgba(255, 215, 0, 0.5),
    var(--rarity-golden)
  );
}
.case-item.rarity-golden .item-rarity-indicator,
.cyber-case-item.rarity-golden .item-rarity-indicator {
  background: linear-gradient(
    90deg,
    var(--rarity-golden),
    rgba(255, 215, 0, 0.6)
  );
}
.case-item.rarity-golden .item-scan-line,
.cyber-case-item.rarity-golden .item-scan-line {
  background: linear-gradient(
    90deg,
    transparent,
    var(--rarity-golden),
    transparent
  );
}
.case-item.rarity-golden:hover .item-glow-effect,
.cyber-case-item.rarity-golden:hover .item-glow-effect {
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(255, 215, 0, 0.15) 50%,
    transparent 80%
  );
}

/* 響應式設計調整 */
@media (max-width: 768px) {
  .case-item,
  .cyber-case-item {
    height: 200px;
  }

  .item-image-container {
    height: 120px;
  }

  .item-details {
    padding: 8px;
  }

  .item-name {
    font-size: 0.8rem;
  }

  .item-price {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .case-item,
  .cyber-case-item {
    height: 180px;
  }

  .item-image-container {
    height: 100px;
  }

  .item-details {
    padding: 6px;
  }

  .item-name {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .item-wear {
    font-size: 0.7rem;
    padding: 2px 4px;
  }

  .item-price {
    font-size: 0.85rem;
  }

  .item-drop-rate {
    font-size: 0.7rem;
  }
}

/* 特殊hover效果 */
.case-item.rarity-consumer:hover,
.cyber-case-item.rarity-consumer:hover {
  border-color: var(--rarity-consumer);
  box-shadow: 0 0 20px rgba(176, 195, 217, 0.3);
}

.case-item.rarity-industrial:hover,
.cyber-case-item.rarity-industrial:hover {
  border-color: var(--rarity-industrial);
  box-shadow: 0 0 20px rgba(94, 152, 217, 0.3);
}

.case-item.rarity-mil-spec:hover,
.cyber-case-item.rarity-mil-spec:hover {
  border-color: var(--rarity-mil-spec);
  box-shadow: 0 0 20px rgba(75, 105, 255, 0.3);
}

.case-item.rarity-restricted:hover,
.cyber-case-item.rarity-restricted:hover {
  border-color: var(--rarity-restricted);
  box-shadow: 0 0 20px rgba(136, 71, 255, 0.3);
}

.case-item.rarity-classified:hover,
.cyber-case-item.rarity-classified:hover {
  border-color: var(--rarity-classified);
  box-shadow: 0 0 20px rgba(211, 44, 230, 0.3);
}

.case-item.rarity-covert:hover,
.cyber-case-item.rarity-covert:hover {
  border-color: var(--rarity-covert);
  box-shadow: 0 0 20px rgba(235, 75, 75, 0.3);
}

.case-item.rarity-golden:hover,
.cyber-case-item.rarity-golden:hover {
  border-color: var(--rarity-golden);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 錯誤容器 */
.error-container {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 100, 100, 0.9);
  margin-bottom: 15px;
}

.missing-items-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
}

.missing-items-container h3 {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.missing-items-container ul {
  list-style: none;
  padding: 0;
}

.missing-items-container li {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

/* 載入動畫 */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  color: rgba(255, 255, 255, 0.7);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: rgba(100, 200, 255, 0.8);
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 響應式設計 - 70%寬度優化 */
@media (max-width: 1200px) {
  .case-hero-container {
    gap: 20px;
    padding: 0 15px;
  }

  .case-control-zone {
    max-width: 500px;
    gap: 20px;
  }

  .case-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .case-hero-section {
    padding: 15px 12px;
  }

  .case-hero-container {
    gap: 15px;
    padding: 0 10px;
  }

  .case-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  .case-control-zone {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
  }

  .open-amount-selector {
    gap: 6px;
  }

  .case-amount-btn {
    height: 36px;
    width: 36px;
  }

  .animation-speed-module {
    width: auto;
  }

  .speed-switch {
    width: 70px;
    height: 32px;
    border-radius: 16px;
  }

  .speed-switch-track {
    border-radius: 14px;
  }

  .speed-switch-thumb {
    width: 24px;
    height: 24px;
  }

  .speed-switch-thumb::before {
    width: 16px;
    height: 16px;
  }

  .external-lightning-icon svg {
    width: 16px;
    height: 16px;
  }

  .action-module {
    width: 100%;
    max-width: 280px;
  }

  .theater-stage {
    min-height: 250px;
    padding: 25px;
  }

  .contents-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 等級箱子響應式樣式 */
  .case-control-zone.level-case-layout {
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .case-hero-section {
    padding: 12px 8px;
  }

  .case-hero-container {
    padding: 0 8px;
  }

  .case-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .case-control-zone {
    gap: 12px;
  }

  .open-amount-selector {
    gap: 4px;
  }

  .case-amount-btn {
    height: 32px;
    width: 32px;
  }

  .speed-switch {
    width: 60px;
    height: 28px;
    border-radius: 14px;
  }

  .speed-switch-track {
    border-radius: 12px;
  }

  .speed-switch-thumb {
    width: 20px;
    height: 20px;
  }

  .speed-switch-thumb::before {
    width: 14px;
    height: 14px;
  }

  .external-lightning-icon svg {
    width: 14px;
    height: 14px;
  }

  .btn-content {
    gap: 6px;
  }

  .btn-number {
    font-size: 0.8rem;
  }

  .action-module {
    max-width: 260px;
  }

  .theater-stage {
    min-height: 200px;
    padding: 20px;
  }

  /* 等級箱子響應式樣式 */
  .case-control-zone.level-case-layout {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }
}

/* 新的賽博龐克風格樣式 */

/* 劇場舞台樣式 - 緊湊版 */
.theater-stage {
  background: linear-gradient(
    135deg,
    rgba(20, 25, 35, 0.92) 0%,
    rgba(15, 18, 28, 0.95) 50%,
    rgba(18, 22, 32, 0.92) 100%
  );
  border-radius: 14px;
  padding: 35px;
  border: 1px solid rgba(80, 120, 160, 0.2);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(80, 120, 160, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 345px;
}

.stage-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stage-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(80, 120, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 120, 160, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: stage-grid-flow 25s linear infinite;
}

@keyframes stage-grid-flow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

.stage-spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(80, 120, 160, 0.06) 0%,
    rgba(80, 120, 160, 0.03) 50%,
    transparent 100%
  );
  animation: spotlight-pulse 5s ease-in-out infinite;
}

@keyframes spotlight-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes center-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* 排行榜樣式 */
.header-cyber-decoration {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.cyber-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.6),
    transparent
  );
  position: relative;
}

.cyber-line::before {
  content: "";
  position: absolute;
  top: -1px;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.2),
    transparent
  );
  animation: cyber-line-flow 3s ease-in-out infinite;
}

@keyframes cyber-line-flow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.cyber-node {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-core {
  font-size: 2rem;
  z-index: 2;
  position: relative;
}

.node-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(100, 200, 255, 0.4);
  border-radius: 50%;
  animation: node-ring-spin 4s linear infinite;
}

@keyframes node-ring-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.player-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: rgba(100, 200, 255, 0.2);
  filter: blur(8px);
  z-index: -1;
  animation: avatar-glow-rotate 4s linear infinite;
}

@keyframes avatar-glow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.reward-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
}

.reward-name {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

/* 箱子內容物區域樣式 - 緊湊版 */
.case-contents-section {
  margin-bottom: 30px;
}

.contents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.header-tech-decoration {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tech-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(80, 120, 160, 0.5), transparent);
}

.tech-node {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(80, 120, 160, 0.3);
  border-radius: 50%;
}

.node-inner {
  font-size: 1.2rem;
  z-index: 2;
}

.node-pulse {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1.5px solid rgba(80, 120, 160, 0.4);
  border-radius: 50%;
  animation: node-pulse-expand 2.5s ease-in-out infinite;
}

@keyframes node-pulse-expand {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.contents-title-group {
  flex: 1;
}

.contents-subtitle {
  font-size: 0.9rem;
  color: rgba(80, 120, 160, 0.7);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 0px;
}

.contents-showcase {
  padding: 20px;
}

/* ===== 賽博龐克風格開箱動畫樣式 ===== */

/* 轉盤外框容器 */
.roulette-container {
  position: relative !important;
  width: 100% !important;
  height: 230px !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 25, 0.95) 0%,
    rgba(15, 20, 35, 0.98) 50%,
    rgba(20, 25, 40, 0.95) 100%
  ) !important;

  /* 賽博龐克邊框效果 */
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
  box-shadow:
    0 0 0 2px rgba(0, 245, 255, 0.3),
    0 0 20px rgba(0, 245, 255, 0.15),
    inset 0 0 30px rgba(0, 245, 255, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4) !important;

  /* 科技感斜角 */
  clip-path: polygon(
    20px 0%,
    100% 0%,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0% 100%,
    0% 20px
  ) !important;
}

/* 轉盤外框動態效果 */
.roulette-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(0, 245, 255, 0.6) 0%,
    rgba(255, 0, 110, 0.4) 25%,
    rgba(191, 0, 255, 0.5) 50%,
    rgba(0, 255, 136, 0.4) 75%,
    rgba(0, 245, 255, 0.6) 100%
  );
  background-size: 400% 400%;
  animation: roulette-border-glow 4s ease-in-out infinite;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
  clip-path: inherit;
}

@keyframes roulette-border-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 轉盤內部科技格線 */
.roulette-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: tech-grid-move 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes tech-grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

/* 賽博龐克指針設計 */
.roulette-pointer {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: linear-gradient(
    180deg,
    rgba(0, 255, 136, 0.9) 0%,
    rgba(0, 245, 255, 1) 50%,
    rgba(0, 255, 136, 0.9) 100%
  ) !important;
  transform: translateX(-50%) !important;
  z-index: 100 !important;
  border-radius: 1.5px !important;

  /* 強烈發光效果 */
  box-shadow:
    0 0 10px rgba(0, 255, 136, 0.8),
    0 0 20px rgba(0, 245, 255, 0.6),
    0 0 30px rgba(0, 255, 136, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.3) !important;

  /* 動態效果 */
  animation: pointer-pulse 2s ease-in-out infinite !important;
}

@keyframes pointer-pulse {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(0, 255, 136, 0.8),
      0 0 20px rgba(0, 245, 255, 0.6),
      0 0 30px rgba(0, 255, 136, 0.4),
      inset 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 15px rgba(0, 255, 136, 1),
      0 0 30px rgba(0, 245, 255, 0.8),
      0 0 45px rgba(0, 255, 136, 0.6),
      inset 0 0 15px rgba(255, 255, 255, 0.5);
  }
}

/* 指針頂部三角形 */
.roulette-pointer > div:first-child {
  position: absolute !important;
  top: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent !important;
  border-right: 6px solid transparent !important;
  border-bottom: 8px solid rgba(0, 255, 136, 0.95) !important;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.8)) !important;

  /* 科技感切角 */
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%) !important;
}

/* 指針底部三角形 */
.roulette-pointer > div:last-child {
  position: absolute !important;
  bottom: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent !important;
  border-right: 6px solid transparent !important;
  border-top: 8px solid rgba(0, 255, 136, 0.95) !important;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.8)) !important;

  /* 科技感切角 */
  clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%) !important;
}

/* 轉盤項目軌道 */
.roulette-items {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 220px !important;
  grid-gap: 20px !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  transform: translateX(0) !important;
  will-change: transform !important;
  padding: 15px 0 !important;
  align-items: center !important;
}

/* 賽博龐克物品卡片設計 */
.roulette-item {
  width: 200px !important;
  height: 200px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(
    135deg,
    rgba(15, 20, 35, 0.9) 0%,
    rgba(25, 30, 45, 0.8) 100%
  ) !important;

  /* 科技感斜角邊框 */
  clip-path: polygon(
    15px 0%,
    100% 0%,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0% 100%,
    0% 15px
  ) !important;

  /* 邊框和發光效果 */
  border: 2px solid rgba(100, 200, 255, 0.3) !important;
  box-shadow:
    0 0 15px rgba(100, 200, 255, 0.2),
    inset 0 0 20px rgba(100, 200, 255, 0.05) !important;

  transition: all 0.3s ease !important;
}

/* 中獎物品特殊效果 */
.roulette-item.winning-item {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.15) 0%,
    rgba(0, 245, 255, 0.1) 50%,
    rgba(0, 255, 136, 0.15) 100%
  ) !important;

  border: 2px solid rgba(0, 255, 136, 0.6) !important;
  box-shadow:
    0 0 25px rgba(0, 255, 136, 0.4),
    0 0 50px rgba(0, 245, 255, 0.2),
    inset 0 0 30px rgba(0, 255, 136, 0.1) !important;

  animation: winning-item-glow 2s ease-in-out infinite !important;
}

@keyframes winning-item-glow {
  0%,
  100% {
    box-shadow:
      0 0 25px rgba(0, 255, 136, 0.4),
      0 0 50px rgba(0, 245, 255, 0.2),
      inset 0 0 30px rgba(0, 255, 136, 0.1);
  }
  50% {
    box-shadow:
      0 0 35px rgba(0, 255, 136, 0.6),
      0 0 70px rgba(0, 245, 255, 0.3),
      inset 0 0 40px rgba(0, 255, 136, 0.15);
  }
}

/* 物品卡片頂部科技線條 */
.roulette-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.6),
    transparent
  );
  z-index: 2;
}

/* 物品卡片底部科技線條 */
.roulette-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.6),
    transparent
  );
  z-index: 2;
}

/* 物品圖片容器 */
.roulette-item > div:first-child {
  width: 100% !important;
  height: 65% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(100, 200, 255, 0.05) 50%,
    rgba(0, 0, 0, 0.2) 100%
  ) !important;
  border-bottom: 1px solid rgba(100, 200, 255, 0.2) !important;
}

/* 物品圖片 */
.roulette-item img {
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 8px rgba(100, 200, 255, 0.2)) !important;
  transition: all 0.3s ease !important;
}

/* 物品信息容器 */
.roulette-item > div:last-child {
  width: 100% !important;
  height: 35% !important;
  padding: 8px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(15, 20, 35, 0.5) 100%
  ) !important;
}

/* 物品名稱 */
.roulette-item > div:last-child > div {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  text-shadow: 0 0 8px rgba(100, 200, 255, 0.3) !important;
  font-family: "JetBrains Mono", monospace !important;
  letter-spacing: 0.5px !important;
}

/* 稀有度邊框顏色覆蓋 */
.roulette-item[data-rarity="1"] {
  border-color: rgba(176, 195, 217, 0.5) !important;
}
.roulette-item[data-rarity="2"] {
  border-color: rgba(94, 152, 217, 0.5) !important;
}
.roulette-item[data-rarity="3"] {
  border-color: rgba(75, 105, 255, 0.5) !important;
}
.roulette-item[data-rarity="4"] {
  border-color: rgba(136, 71, 255, 0.5) !important;
}
.roulette-item[data-rarity="5"] {
  border-color: rgba(211, 44, 230, 0.5) !important;
}
.roulette-item[data-rarity="6"] {
  border-color: rgba(235, 75, 75, 0.5) !important;
}
.roulette-item[data-rarity="7"] {
  border-color: rgba(255, 215, 0, 0.5) !important;
}

/* 稀有度發光效果 */
.roulette-item[data-rarity="1"]:hover {
  box-shadow: 0 0 20px rgba(176, 195, 217, 0.3) !important;
}
.roulette-item[data-rarity="2"]:hover {
  box-shadow: 0 0 20px rgba(94, 152, 217, 0.3) !important;
}
.roulette-item[data-rarity="3"]:hover {
  box-shadow: 0 0 20px rgba(75, 105, 255, 0.3) !important;
}
.roulette-item[data-rarity="4"]:hover {
  box-shadow: 0 0 20px rgba(136, 71, 255, 0.3) !important;
}
.roulette-item[data-rarity="5"]:hover {
  box-shadow: 0 0 20px rgba(211, 44, 230, 0.3) !important;
}
.roulette-item[data-rarity="6"]:hover {
  box-shadow: 0 0 20px rgba(235, 75, 75, 0.3) !important;
}
.roulette-item[data-rarity="7"]:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
}

/* 響應式設計 - 開箱動畫 */
@media (max-width: 768px) {
  .roulette-container {
    height: 200px !important;
    clip-path: polygon(
      15px 0%,
      100% 0%,
      100% calc(100% - 15px),
      calc(100% - 15px) 100%,
      0% 100%,
      0% 15px
    ) !important;
  }

  .roulette-items {
    grid-auto-columns: 180px !important;
    grid-gap: 15px !important;
    padding: 10px 0 !important;
  }

  .roulette-item {
    width: 160px !important;
    height: 180px !important;
    clip-path: polygon(
      12px 0%,
      100% 0%,
      100% calc(100% - 12px),
      calc(100% - 12px) 100%,
      0% 100%,
      0% 12px
    ) !important;
  }

  .roulette-item > div:last-child > div {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .roulette-container {
    height: 180px !important;
  }

  .roulette-items {
    grid-auto-columns: 140px !important;
    grid-gap: 10px !important;
    padding: 8px 0 !important;
  }

  .roulette-item {
    width: 120px !important;
    height: 160px !important;
    clip-path: polygon(
      10px 0%,
      100% 0%,
      100% calc(100% - 10px),
      calc(100% - 10px) 100%,
      0% 100%,
      0% 10px
    ) !important;
  }

  .roulette-pointer {
    width: 2px !important;
  }

  .roulette-pointer > div:first-child,
  .roulette-pointer > div:last-child {
    border-left-width: 4px !important;
    border-right-width: 4px !important;
  }

  .roulette-pointer > div:first-child {
    border-bottom-width: 6px !important;
    top: -6px !important;
  }

  .roulette-pointer > div:last-child {
    border-top-width: 6px !important;
    bottom: -6px !important;
  }
}

/* 等級箱子導航按鈕樣式 */
.case-title-container.level-case-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 80px;
}

.title-with-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  position: relative;
}

.level-nav-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  color: #00f5ff;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  overflow: hidden;
  z-index: 1;
}

.level-nav-btn::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(145deg, #0f0f23, #1a1a2e);
  border-radius: 50%;
  z-index: -1;
  transition: all 0.3s ease;
}

.level-nav-btn:hover::before {
  background: linear-gradient(145deg, #1a1a2e, #0f0f23);
}

.level-nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.level-nav-btn:active {
  transform: scale(0.95);
}

.level-nav-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-btn-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.nav-arrow svg {
  width: 16px;
  height: 16px;
  stroke: #00f5ff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(0, 245, 255, 0.5));
  transition: all 0.3s ease;
}

.level-nav-btn:hover .nav-arrow svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.8));
}

.level-nav-btn:hover .nav-arrow {
  transform: scale(1.1);
}

/* 等級箱子的標題樣式調整 */
.level-case-title .case-title {
  font-size: 2rem;
  flex-shrink: 0;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  flex: 1;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .case-title-container.level-case-title {
    min-height: 80px;
    gap: 15px;
  }

  .title-with-navigation {
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
  }

  .level-case-title .case-title {
    font-size: 1.8rem;
    max-width: 100%;
    text-align: center;
    flex: 1;
  }

  .level-nav-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .case-title-container.level-case-title {
    gap: 10px;
  }

  .title-with-navigation {
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
  }

  .level-case-title .case-title {
    font-size: 1.6rem;
    text-align: center;
    flex: 1;
  }

  .level-nav-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .nav-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* 動畫效果 */
@keyframes level-nav-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
  }
}

.level-nav-btn:not(.disabled):hover {
  animation: level-nav-pulse 1.5s ease-in-out infinite;
}

/* 等級箱子標題容器的賽博龐克效果 */
.case-title-container.level-case-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 245, 255, 0.03) 50%,
    transparent 100%
  );
  border-radius: 8px;
  pointer-events: none;
}

.case-title-container.level-case-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.6),
    transparent
  );
  border-radius: 1px;
}

/* 已移除原 quantity-selector 樣式（使用原本的 quantity-module） */

/* 已移除 quantity-info 樣式（簡化UI） */

/* 已移除數量按鈕免費狀態樣式（保持原始樣式） */

/* 免費模式按鈕樣式 - 使用原本顏色（已移除特殊樣式） */

/* 所有免費模式樣式已移除，使用預設按鈕外觀 */
