/* ============================================================
   捕魚遊戲 - 全局樣式 (2025 Modern Glassmorphism Theme)
   ============================================================ */

/* ---------- 主題變量 ---------- */
:root {
  /* 深海主色 - 更有層次的漸變 */
  --ocean-deep: #060818;
  --ocean-dark: #0a1230;
  --ocean-mid: #122050;
  --ocean-blue: #2563eb;
  --ocean-light: #3b82f6;
  --ocean-cyan: #22d3ee;
  --ocean-foam: #cffafe;

  /* 紫色輔助 - 現代感 */
  --violet: #8b5cf6;
  --violet-deep: #6d28d9;
  --violet-light: #a78bfa;

  /* 金色 */
  --gold: #fbbf24;
  --gold-deep: #f59e0b;
  --gold-glow: #fde68a;

  /* 霓虹色 */
  --neon-green: #34d399;
  --neon-pink: #f472b6;
  --neon-purple: #a78bfa;
  --neon-orange: #fb923c;

  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;

  --text: #f1f5ff;
  --text-dim: #94a3c8;
  --text-muted: #5f7290;

  /* 玻璃材質 - 更精緻 */
  --glass-bg: rgba(15, 23, 55, 0.55);
  --glass-bg-light: rgba(30, 41, 80, 0.45);
  --glass-border: rgba(139, 92, 246, 0.25);
  --glass-border-light: rgba(34, 211, 238, 0.18);
  --panel-bg: rgba(10, 15, 40, 0.82);
  --panel-bg-solid: #060a1e;

  /* 漸變邊框 */
  --grad-border: linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.5), rgba(244, 114, 182, 0.3));
  --grad-primary: linear-gradient(135deg, #2563eb, #22d3ee);
  --grad-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-violet: linear-gradient(135deg, #8b5cf6, #6d28d9);
  --grad-danger: linear-gradient(135deg, #f87171, #ef4444);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 30px rgba(34, 211, 238, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 30px rgba(251, 191, 36, 0.5), 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-violet: 0 0 30px rgba(139, 92, 246, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* 更圓潤的現代字體 */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Segoe UI', 'Noto Sans TC', 'SF Pro Display', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', 'Menlo', 'Courier New', monospace;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--ocean-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: 0.2px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- 海洋背景 - 多層漸變 ---------- */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(37, 99, 235, 0.35), transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(139, 92, 246, 0.28), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(34, 211, 238, 0.18), transparent 55%),
    linear-gradient(160deg, #0a1230 0%, #060818 45%, #03050f 100%);
}
.ocean-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(244, 114, 182, 0.06), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

/* 氣泡動畫 - 更精緻 */
.bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(34,211,238,0.06));
  box-shadow: inset 0 0 8px rgba(255,255,255,0.3), 0 0 12px rgba(34,211,238,0.1);
  animation: rise linear infinite;
  opacity: 0.5;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(40px) scale(1.3); opacity: 0; }
}

/* 水波紋 - 帶光暈 */
.waves {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(34,211,238,0.15), transparent 70%),
    radial-gradient(ellipse at 30% 100%, rgba(139,92,246,0.1), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   通用組件
   ============================================================ */

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* 玻璃面板 - 漸變邊框 + 精緻光影 */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

/* 按鈕 - 帶光波hover動畫 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, filter .2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:active { transform: scale(0.96); }
/* 光波效果 */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left .6s ease;
  z-index: -1;
}
.btn:hover::after { left: 120%; }

.btn-primary {
  background: var(--grad-primary);
  color: #001020;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 0 40px rgba(34,211,238,0.55), 0 12px 36px rgba(0,0,0,0.4); }
.btn-gold {
  background: var(--grad-gold);
  color: #2a1500;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 0 40px rgba(251,191,36,0.6), 0 12px 36px rgba(0,0,0,0.4); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(139,92,246,0.15); border-color: var(--violet-light); transform: translateY(-2px); }
.btn-danger {
  background: var(--grad-danger);
  color: #fff;
  box-shadow: 0 0 22px rgba(248,113,113,0.4);
}
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); }
.btn:disabled::after { display: none; }

/* 輸入框 - 現代圓角 + focus發光 */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(6, 10, 30, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ocean-cyan);
  background: rgba(6, 10, 30, 0.8);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.12), 0 0 20px rgba(34,211,238,0.15);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.textarea { resize: vertical; min-height: 100px; }

.input-group { position: relative; }
.input-group .input { padding-left: 46px; }
.input-group .icon {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--violet-light);
  font-size: 18px;
  filter: drop-shadow(0 0 4px rgba(139,92,246,0.4));
}
.input-group .icon.svg-icon svg {
  width: 18px; height: 18px;
  display: block;
  color: var(--ocean-cyan);
  filter: drop-shadow(0 0 4px rgba(34,211,238,0.4));
}
.input-group .icon.svg-icon svg path,
.input-group .icon.svg-icon svg rect,
.input-group .icon.svg-icon svg circle,
.input-group .icon.svg-icon svg polygon { stroke: currentColor; }

/* 語言切換 - 現代膠囊 */
.lang-switch {
  display: inline-flex;
  background: rgba(6, 10, 30, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4px;
  gap: 2px;
  backdrop-filter: blur(12px);
}
.lang-switch button {
  padding: 7px 15px;
  border-radius: 26px;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  transition: all .25s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: var(--grad-primary);
  color: #001020;
  box-shadow: 0 2px 14px rgba(34,211,238,0.45);
}

/* ============================================================
   登入 / 註冊頁 - 區塊鏈深海風格 v2
   ============================================================ */

/* ===== 深海動態背景 ===== */
.auth-ocean {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  background: #050a1a;
}
.auth-ocean-layer {
  position: absolute; inset: 0;
  transition: transform 0.3s;
}
.auth-ocean-layer.deep {
  background: radial-gradient(ellipse at 50% 0%, #0c1433 0%, #050a1a 60%);
}
.auth-ocean-layer.mid {
  background: radial-gradient(ellipse at 30% 60%, rgba(37,99,235,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 40%, rgba(34,211,238,0.1) 0%, transparent 50%);
}
.auth-ocean-layer.top {
  background: radial-gradient(ellipse at 50% 100%, rgba(139,92,246,0.08) 0%, transparent 40%);
}

/* 光線穿透 */
.auth-rays { position: absolute; inset: 0; pointer-events: none; }
.auth-rays span {
  position: absolute; top: -10%;
  width: 2px; height: 120%;
  background: linear-gradient(to bottom, transparent, rgba(34,211,238,0.08) 30%, rgba(34,211,238,0.15) 50%, transparent 90%);
  filter: blur(2px);
  animation: rayDrift 8s ease-in-out infinite;
}
.auth-rays span:nth-child(1) { left: 10%; animation-delay: 0s; transform: rotate(-8deg); }
.auth-rays span:nth-child(2) { left: 28%; animation-delay: -2s; transform: rotate(-5deg); opacity: 0.7; }
.auth-rays span:nth-child(3) { left: 50%; animation-delay: -4s; transform: rotate(3deg); }
.auth-rays span:nth-child(4) { left: 72%; animation-delay: -1s; transform: rotate(8deg); opacity: 0.6; }
.auth-rays span:nth-child(5) { left: 90%; animation-delay: -3s; transform: rotate(5deg); opacity: 0.5; }
@keyframes rayDrift {
  0%, 100% { opacity: 0.3; transform-origin: top center; }
  50% { opacity: 0.8; }
}

/* 游動的魚剪影 */
.auth-fish-swim { position: absolute; inset: 0; pointer-events: none; }
.fish-silhouette {
  position: absolute;
  color: rgba(34,211,238,0.12);
  filter: blur(1px);
}
.fish-silhouette.f1 { width: 60px; top: 20%; animation: swimRight 25s linear infinite; }
.fish-silhouette.f2 { width: 45px; top: 55%; animation: swimRight 30s linear infinite -10s; color: rgba(139,92,246,0.1); }
.fish-silhouette.f3 { width: 35px; top: 75%; animation: swimRight 20s linear infinite -5s; color: rgba(34,211,238,0.08); }
@keyframes swimRight {
  0% { left: -80px; transform: scaleX(1); }
  49% { transform: scaleX(1); }
  50% { left: 105%; transform: scaleX(-1); }
  99% { transform: scaleX(-1); }
  100% { left: -80px; transform: scaleX(1); }
}

/* 氣泡 */
.auth-bubbles { position: absolute; inset: 0; pointer-events: none; }
.auth-bubbles span {
  position: absolute; bottom: -20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.4), rgba(34,211,238,0.1));
  animation: bubbleRise linear infinite;
}
.auth-bubbles span:nth-child(1) { left: 5%;  width: 5px; height: 5px; animation-duration: 12s; animation-delay: 0s; }
.auth-bubbles span:nth-child(2) { left: 12%; width: 8px; height: 8px; animation-duration: 15s; animation-delay: -3s; }
.auth-bubbles span:nth-child(3) { left: 20%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: -6s; }
.auth-bubbles span:nth-child(4) { left: 30%; width: 7px; height: 7px; animation-duration: 14s; animation-delay: -1s; }
.auth-bubbles span:nth-child(5) { left: 38%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: -4s; }
.auth-bubbles span:nth-child(6) { left: 48%; width: 9px; height: 9px; animation-duration: 18s; animation-delay: -7s; }
.auth-bubbles span:nth-child(7) { left: 56%; width: 4px; height: 4px; animation-duration: 9s; animation-delay: -2s; }
.auth-bubbles span:nth-child(8) { left: 64%; width: 6px; height: 6px; animation-duration: 13s; animation-delay: -5s; }
.auth-bubbles span:nth-child(9) { left: 72%; width: 8px; height: 8px; animation-duration: 16s; animation-delay: -8s; }
.auth-bubbles span:nth-child(10) { left: 80%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -3s; }
.auth-bubbles span:nth-child(11) { left: 88%; width: 7px; height: 7px; animation-duration: 14s; animation-delay: -6s; }
.auth-bubbles span:nth-child(12) { left: 94%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: -1s; }
@keyframes bubbleRise {
  0% { bottom: -20px; opacity: 0; transform: translateX(0); }
  10% { opacity: 0.7; }
  50% { transform: translateX(15px); }
  90% { opacity: 0.3; }
  100% { bottom: 110vh; opacity: 0; transform: translateX(-10px); }
}

/* ===== 佈局 ===== */
.auth-wrap2 {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  gap: 0;
}

/* 左側展示 */
.auth-showcase {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
}
.showcase-content { max-width: 420px; }

/* 自定義 Banner 圖片 */
.showcase-banner {
  width: 100%;
  max-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 8px 32px rgba(34,211,238,0.15), 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(34,211,238,0.15);
}
.showcase-banner img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  animation: bannerFadeIn 0.8s ease;
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* 移動端 Banner（表單卡片內頂部） */
.auth-mobile-banner {
  display: none;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.1);
}
.auth-mobile-banner img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  animation: bannerFadeIn 0.6s ease;
}
/* 手機端：有圖片src時才顯示 */
@media (max-width: 899px) {
  .auth-mobile-banner:has(img[src]:not([src=""])) {
    display: block;
  }
}
/* 不支援 :has() 的瀏覽器用 JS class 控制 */
.auth-mobile-banner.show-banner { display: block !important; }
.showcase-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 40px;
}
.showcase-logo .logo-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 12px rgba(34,211,238,0.4));
  animation: logoFloat 3s ease-in-out infinite;
}
.showcase-logo .logo-name {
  font-size: 28px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.showcase-headline {
  font-size: 18px; font-weight: 400; color: var(--text-dim);
  margin-bottom: 36px; line-height: 1.6; letter-spacing: 1px;
}
.showcase-features { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(34,211,238,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #22d3ee;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.feature-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.showcase-chain-badge {
  margin-top: 40px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  font-size: 12px; color: #22d3ee; font-weight: 600;
  width: fit-content;
}
.chain-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px rgba(34,211,238,0.8);
  animation: chainPulse 2s ease-in-out infinite;
}
@keyframes chainPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 右側表單卡片 */
.auth-card2 {
  width: 100%; max-width: 440px;
  padding: 28px 30px 32px;
  margin: auto;
  position: relative;
  animation: cardFloatIn2 .6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cardFloatIn2 {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-top {
  display: flex; justify-content: flex-end; margin-bottom: 12px;
}

/* 移動端 Logo */
.auth-mobile-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 24px; }
.auth-mobile-logo .logo-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 10px rgba(34,211,238,0.3));
}
.auth-mobile-logo .logo-name {
  font-size: 24px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title2 {
  font-size: 26px; font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-sub2 { font-size: 13px; color: var(--text-dim); margin-bottom: 28px; line-height: 1.5; }

.auth-submit-btn {
  margin-top: 4px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 4px 20px rgba(251,191,36,0.3), 0 2px 8px rgba(245,158,11,0.2) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.auth-submit-btn:hover {
  background: linear-gradient(135deg, #fcd34d, #fbbf24) !important;
  box-shadow: 0 6px 28px rgba(251,191,36,0.45), 0 2px 12px rgba(245,158,11,0.3) !important;
  transform: translateY(-1px);
}

/* 分割線 */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 20px;
}
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(34,211,238,0.2), transparent); }
.divider-text { font-size: 11px; color: rgba(34,211,238,0.5); letter-spacing: 2px; font-weight: 600; }

.auth-switch2 {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.auth-switch2 a.auth-link-bold {
  color: #22d3ee; font-weight: 600;
  transition: all .2s;
  margin-left: 6px;
}
.auth-switch2 a.auth-link-bold:hover { color: #8b5cf6; text-decoration: underline; }

/* 複選框 */
.auth-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 20px; cursor: pointer;
  user-select: none;
}
.auth-check input { display: none; }
.auth-check-mark {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(34,211,238,0.3);
  border-radius: 4px;
  position: relative;
  transition: all .2s;
  flex-shrink: 0;
}
.auth-check input:checked + .auth-check-mark {
  background: #22d3ee;
  border-color: #22d3ee;
}
.auth-check input:checked + .auth-check-mark::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #001428; font-weight: 700;
}

/* 桌面端顯示左側 */
@media (min-width: 900px) {
  .auth-showcase { display: flex; }
  .auth-mobile-logo { display: none; }
  .auth-wrap2 { padding: 40px 20px; }
}

/* 手機端 */
@media (max-width: 899px) {
  .auth-wrap2 { padding: 0; max-width: 480px; }
  .auth-card2 { max-width: 100%; min-height: 100vh; border-radius: 0; padding: 40px 24px 32px; }
  .auth-ocean-layer.top { display: none; }
  .auth-rays span:nth-child(3),
  .auth-rays span:nth-child(5) { display: none; }
}

.form-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
  animation: shakeError .4s ease;
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.form-error.show { display: block; }

/* 社交登入預留位 */
.social-login {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.5;
}
.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.social-divider::before, .social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ============================================================
   底部導航 - 現代Tab Bar
   ============================================================ */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: rgba(6, 8, 24, 0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 6px;
  z-index: 60;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 28px;
  border-radius: 100px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  letter-spacing: 0.5px;
}
.bottom-nav a .nav-svg { width: 22px; height: 22px; transition: all .3s; }
.bottom-nav a:hover { color: rgba(255,255,255,0.8); }
.bottom-nav a:hover .nav-svg { transform: translateY(-2px); }
.bottom-nav a.active {
  background: linear-gradient(135deg, rgba(34,211,238,0.25), rgba(139,92,246,0.25));
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,211,238,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(34,211,238,0.3);
}
.bottom-nav a.active .nav-svg { 
  filter: drop-shadow(0 0 6px rgba(34,211,238,0.8)); 
  transform: scale(1.1);
}

/* Modal title SVG icon */
.modal-title-icon { width: 18px; height: 18px; vertical-align: text-bottom; margin-right: 4px; color: var(--ocean-cyan); }

/* ============================================================
   遊戲頁面 - 專業佈局
   ============================================================ */
.game-app { width: 100%; height: 100vh; height: 100dvh; overflow: hidden; position: relative; }

/* 遊戲畫布 */
#gameCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  background: linear-gradient(180deg, #0a1230 0%, #060818 50%, #03050f 100%);
  touch-action: none;
}

/* 頂部 HUD 欄 */
.hud-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(6,8,24,0.92), rgba(6,8,24,0));
  pointer-events: none;
  gap: 10px;
}
.hud-top > * { pointer-events: auto; }
.hud-left, .hud-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hud-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.hud-chip:hover { transform: translateY(-2px); }
.hud-chip .hc-svg { width: 16px; height: 16px; flex-shrink: 0; }
.hud-chip .hc-value { font-family: var(--font-mono); font-weight: 700; }
.hud-chip.balance {
  border-color: rgba(52,211,153,0.4);
  background: linear-gradient(135deg, rgba(0,40,24,0.9), rgba(6,18,40,0.82));
}
.hud-chip.balance .hc-svg { color: var(--neon-green); }
.hud-chip.balance .hc-value { color: var(--neon-green); text-shadow: 0 0 12px rgba(52,211,153,0.6); }
.hud-chip.user { border-color: rgba(139,92,246,0.4); color: var(--violet-light); }
.hud-chip.user .hc-svg { color: var(--violet-light); }
.hud-chip.user .hc-value { color: var(--text); }

.balance-pulse { animation: balancePulse .5s ease; }
@keyframes balancePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); filter: brightness(1.3); }
  100% { transform: scale(1); }
}

/* 右側懸浮菜單 (右上角) */
.side-panel {
  position: fixed;
  right: 12px;
  top: 64px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 45;
}
.side-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--ocean-cyan);
  transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}
.side-btn:hover { background: rgba(34,211,238,0.18); transform: scale(1.08) translateY(-2px); box-shadow: var(--shadow-glow); }
.side-btn .sb-svg { width: 20px; height: 20px; }
.side-btn .sb-label { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; }

/* 技能欄 (右側) */
.skill-bar {
  position: fixed;
  right: 14px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 45;
}
.skill-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.3);
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55);
}
.skill-btn:hover { transform: translateY(-3px) scale(1.05); }
.skill-btn:active { transform: scale(0.92); }
.skill-btn .skill-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.skill-btn .skill-icon svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.skill-btn .skill-name {
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.skill-btn .skill-cost {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.65);
  color: var(--gold-glow);
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
}
.skill-btn .skill-key {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 9px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.4);
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.skill-btn .cd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}
.skill-btn.cooling .cd-overlay { display: flex; }
.skill-btn.cooling { filter: grayscale(0.6); }
.skill-btn.disabled { opacity: 0.5; filter: grayscale(0.8); }
.skill-laser { background: linear-gradient(135deg, #ef4444, #fb923c); }
.skill-bomb  { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.skill-freeze { background: linear-gradient(135deg, #2563eb, #22d3ee); }
.skill-lightning { background: linear-gradient(135deg, #fbbf24, #fb923c); }

/* 炮台控制 (底部中央) */
.cannon-control {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 45;
  background: rgba(6,8,24,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 50px;
  padding: 6px 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 20px rgba(34,211,238,0.1);
}
.cannon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(139,92,246,0.15));
  border: 1px solid rgba(34,211,238,0.4);
  color: var(--ocean-cyan);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.cannon-btn svg { width: 16px; height: 16px; }
.cannon-btn:hover { background: rgba(34,211,238,0.3); border-color: var(--ocean-cyan); box-shadow: 0 0 16px rgba(34,211,238,0.55); }
.cannon-btn:active { transform: scale(0.9); }
.cannon-level-display {
  text-align: center;
  padding: 0 6px;
  min-width: 92px;
}
.cannon-level-display .cl-label { font-size: 9px; color: var(--text-dim); font-weight: 700; letter-spacing: 1px; }
.cannon-level-display .cl-value { font-size: 16px; font-weight: 800; color: var(--ocean-cyan); font-family: var(--font-mono); line-height: 1.1; text-shadow: 0 0 10px rgba(34,211,238,0.5); }
.cannon-level-display .cl-bet { font-size: 11px; color: var(--neon-green); font-family: var(--font-mono); font-weight: 700; line-height: 1.2; }

/* 炮台等級刻度條 */
.cannon-scale {
  display: flex;
  gap: 3px;
  margin-top: 3px;
  justify-content: center;
}
.cannon-scale .cs-tick {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all .2s;
}
.cannon-scale .cs-tick.on { background: var(--ocean-cyan); box-shadow: 0 0 6px var(--ocean-cyan); }

/* 自動射擊 (左下) */
.auto-fire-btn {
  position: fixed;
  left: 14px;
  bottom: 88px;
  z-index: 45;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  color: var(--text-dim);
  transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
.auto-fire-btn:hover { transform: translateY(-3px); }
.auto-fire-btn .af-svg { width: 20px; height: 20px; }
.auto-fire-btn .af-label { font-size: 9px; font-weight: 700; }
.auto-fire-btn.active {
  background: linear-gradient(135deg, var(--neon-green), #059669);
  color: #001020;
  border-color: var(--neon-green);
  box-shadow: 0 0 24px rgba(52,211,153,0.55);
  animation: autoPulse 1.4s ease-in-out infinite;
}
@keyframes autoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(52,211,153,0.45); }
  50% { box-shadow: 0 0 32px rgba(52,211,153,0.75); }
}

/* BOSS 警告動畫 */
.boss-warning {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-direction: column;
  gap: 16px;
}
.boss-warning.show { display: flex; animation: bossWarnShow 2.6s ease forwards; }
.boss-warning .bw-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(239,68,68,0.2), transparent 70%);
  animation: bossBgPulse 0.8s ease-in-out infinite;
}
.boss-warning .bw-text {
  position: relative;
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 900;
  letter-spacing: 6px;
  color: #ef4444;
  text-shadow: 0 0 24px rgba(239,68,68,0.95), 0 0 48px rgba(239,68,68,0.65);
  animation: bossTextShake 0.2s linear infinite;
}
.boss-warning .bw-sub {
  position: relative;
  font-size: clamp(14px, 3.5vw, 22px);
  font-weight: 700;
  color: #fca5a5;
  text-shadow: 0 0 12px rgba(239,68,68,0.75);
  letter-spacing: 2px;
}
.boss-warning .bw-frame {
  position: absolute;
  inset: 0;
  border: 6px solid transparent;
  box-shadow: inset 0 0 60px rgba(239,68,68,0.4);
  animation: bossFrame 0.8s ease-in-out infinite;
}
@keyframes bossWarnShow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes bossBgPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes bossTextShake {
  0% { transform: translate(0,0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -2px); }
  100% { transform: translate(2px, 2px); }
}
@keyframes bossFrame {
  0%, 100% { border-color: rgba(239,68,68,0.4); }
  50% { border-color: rgba(239,68,68,0.9); }
}

/* 連線/載入遮罩 */
.game-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(3,5,15,0.94);
  backdrop-filter: blur(10px);
}
.game-loading.hide { display: none; }
.game-loading .gl-logo {
  font-size: 40px;
  animation: floatLogo 2s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.game-loading .gl-text { font-size: 15px; color: var(--text-dim); }
.game-loading .gl-text .loader { margin-right: 8px; }

/* ============================================================
   彈窗 Modal - 現代設計
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 15, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 0;
  animation: popIn .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.modal-lg { max-width: 680px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: var(--panel-bg);
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.modal-close:hover { background: rgba(248,113,113,0.25); color: #fff; transform: rotate(90deg); }
.modal-body { padding: 24px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.9) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ============================================================
   個人中心 - 現代卡片設計
   ============================================================ */
.profile-app { min-height: 100vh; padding-top: 18px; padding-bottom: 100px; }
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 18px;
  animation: staggerIn .5s ease;
}
.profile-header h1 { font-size: 24px; font-weight: 800; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 退出登入按鈕 */
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  background: transparent;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.logout-btn:hover {
  background: rgba(248,113,113,0.12);
  box-shadow: 0 0 18px rgba(248,113,113,0.35);
  transform: translateY(-2px);
}
.logout-btn:active { transform: scale(0.96); }
.logout-btn svg { transition: transform .25s; }
.logout-btn:hover svg { transform: translateX(3px); }

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.balance-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.balance-cards .balance-card:nth-child(1) { animation: staggerIn .5s ease .05s both; }
.balance-cards .balance-card:nth-child(2) { animation: staggerIn .5s ease .15s both; }

.balance-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s;
}
.balance-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.balance-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(20px);
}
.balance-card .bc-icon { font-size: 28px; margin-bottom: 8px; }
.balance-card .bc-label { font-size: 12px; color: var(--text-dim); }
.balance-card .bc-value { font-size: 28px; font-weight: 800; margin-top: 4px; font-family: var(--font-mono); }
.balance-card.gold { border-color: rgba(251,191,36,0.45); }
.balance-card.gold .bc-value { color: var(--gold-glow); text-shadow: 0 0 14px rgba(251,191,36,0.4); }
.balance-card.gold::after { background: var(--gold); }
.balance-card.usdt { border-color: rgba(52,211,153,0.4); }
.balance-card.usdt .bc-value { color: var(--neon-green); text-shadow: 0 0 14px rgba(52,211,153,0.4); }
.balance-card.usdt::after { background: var(--neon-green); }

/* 標籤頁 - 滑動指示器 */
.tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(6,10,30,0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow-x: auto;
  position: relative;
  backdrop-filter: blur(12px);
}
.tabs button {
  flex: 1;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  background: var(--grad-primary);
  color: #001020;
  box-shadow: 0 4px 16px rgba(34,211,238,0.4);
}
.tab-panel { display: none; animation: fadeIn .3s; }
.tab-panel.active { display: block; animation: panelIn .35s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-card {
  padding: 22px;
  margin-bottom: 16px;
  transition: transform .3s, box-shadow .3s;
}
.panel-card:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0,0,0,0.45); }
.panel-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* 記錄列表 */
.record-list { display: flex; flex-direction: column; gap: 8px; }
.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(6,10,30,0.4);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-sm);
  transition: all .25s;
}
.record-item:hover { background: rgba(6,10,30,0.6); border-color: rgba(139,92,246,0.35); transform: translateX(4px); }
.record-item .ri-left { display: flex; flex-direction: column; gap: 2px; }
.record-item .ri-title { font-size: 14px; font-weight: 600; }
.record-item .ri-sub { font-size: 11px; color: var(--text-muted); }
.record-item .ri-amount { font-weight: 800; font-size: 15px; font-family: var(--font-mono); }
.record-item .ri-amount.in { color: var(--neon-green); }
.record-item .ri-amount.out { color: var(--danger); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.tag.pending { background: rgba(251,191,36,0.18); color: var(--warning); }
.tag.success { background: rgba(52,211,153,0.18); color: var(--success); }
.tag.failed { background: rgba(248,113,113,0.18); color: var(--danger); }

/* 錢包地址 */
.wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(6,10,30,0.4);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all .25s;
}
.wallet-item:hover { border-color: rgba(139,92,246,0.35); transform: translateX(4px); }
.wallet-item .wi-addr { font-size: 13px; font-weight: 600; word-break: break-all; }
.wallet-item .wi-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}
.empty-state .es-icon { font-size: 42px; margin-bottom: 10px; opacity: 0.5; }

/* 充值地址展示 */
.deposit-info {
  background: rgba(6,10,30,0.5);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
}
.deposit-info .di-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.deposit-info .di-row:last-child { margin-bottom: 0; }
.deposit-info .di-label { color: var(--text-dim); }
.deposit-info .di-value { font-weight: 700; word-break: break-all; text-align: right; }
.deposit-info .di-addr { font-family: var(--font-mono); color: var(--neon-green); font-size: 12px; }
.copy-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(34,211,238,0.15);
  color: var(--ocean-cyan);
  margin-left: 6px;
  transition: all .2s;
}
.copy-btn:hover { background: rgba(34,211,238,0.3); }

/* 圖片上傳 */
.upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .25s;
}
.upload-area:hover { border-color: var(--ocean-cyan); background: rgba(34,211,238,0.05); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upload-preview .up-item {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.upload-preview .up-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .up-remove {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   通知 Toast - 現代滑入動畫
   ============================================================ */
.toast-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  padding: 0 16px;
  pointer-events: none;
}
.toast {
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 36px rgba(0,0,0,0.55);
  pointer-events: auto;
}
.toast.success { background: rgba(0,40,24,0.9); border: 1px solid var(--success); color: #b3ffd9; }
.toast.error { background: rgba(48,8,8,0.9); border: 1px solid var(--danger); color: #fca5a5; }
.toast.info { background: rgba(0,22,48,0.9); border: 1px solid var(--ocean-cyan); color: var(--ocean-foam); }
.toast.warning { background: rgba(48,32,0,0.9); border: 1px solid var(--warning); color: #fde68a; }
.toast.hide { animation: slideUp .3s ease forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-24px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideUp { to { opacity: 0; transform: translateY(-24px) scale(0.95); } }

/* ============================================================
   規則/排行榜 內容
   ============================================================ */
.rule-section { margin-bottom: 20px; }
.rule-section h4 { font-size: 15px; color: var(--gold-glow); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.rule-section p, .rule-section li { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.rule-section ul { padding-left: 18px; }
.rule-section li { margin-bottom: 4px; list-style: disc; }

.fish-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.fish-table th, .fish-table td { padding: 9px 10px; font-size: 13px; text-align: left; border-bottom: 1px solid rgba(139,92,246,0.12); }
.fish-table th { color: var(--gold-glow); font-weight: 700; position: sticky; top: 60px; background: var(--panel-bg); }
.fish-table td.payout { color: var(--neon-green); font-weight: 700; font-family: var(--font-mono); }
.fish-table td.hp { color: var(--danger); font-weight: 700; font-family: var(--font-mono); }
.fish-table tr.boss-row td { background: rgba(248,113,113,0.08); }
.fish-table tr.boss-row td:first-child { color: var(--danger); font-weight: 700; }
.fish-table .tier-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.tier-badge.t1 { background: rgba(52,211,153,0.18); color: var(--neon-green); }
.tier-badge.t2 { background: rgba(34,211,238,0.18); color: var(--ocean-cyan); }
.tier-badge.t3 { background: rgba(251,191,36,0.18); color: var(--gold-glow); }
.tier-badge.t4 { background: rgba(139,92,246,0.18); color: var(--neon-purple); }
.tier-badge.t5 { background: rgba(244,114,182,0.18); color: var(--neon-pink); }
.tier-badge.tb { background: rgba(248,113,113,0.2); color: var(--danger); }

.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(6,10,30,0.4);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-sm);
  transition: all .25s;
}
.rank-item:hover { transform: translateX(4px); border-color: rgba(139,92,246,0.35); }
.rank-item .ri-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.rank-item.top1 .ri-num { background: linear-gradient(135deg, #fbbf24, #fb923c); color: #2a1500; box-shadow: 0 0 14px rgba(251,191,36,0.4); }
.rank-item.top2 .ri-num { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #1a1a1a; }
.rank-item.top3 .ri-num { background: linear-gradient(135deg, #cd7f32, #92400e); color: #fff; }
.rank-item .ri-name { flex: 1; font-weight: 600; }
.rank-item .ri-wins { color: var(--gold-glow); font-weight: 800; font-family: var(--font-mono); }
.rank-item .ri-boss { color: var(--danger); font-weight: 700; font-family: var(--font-mono); font-size: 12px; }
.rank-item .ri-me { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: var(--ocean-cyan); color: #001020; margin-left: 6px; }

.announce-item {
  padding: 15px;
  background: rgba(6,10,30,0.4);
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all .25s;
}
.announce-item:hover { border-color: rgba(139,92,246,0.3); }
.announce-item.urgent { border-color: rgba(248,113,113,0.4); background: rgba(48,8,8,0.3); }
.announce-item.important { border-color: rgba(251,191,36,0.4); }
.announce-item .ai-title { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.announce-item .ai-pin { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: var(--neon-pink); color: #fff; }
.announce-item .ai-type { font-size: 10px; padding: 1px 6px; border-radius: 8px; }
.announce-item .ai-type.urgent { background: rgba(248,113,113,0.25); color: #fca5a5; }
.announce-item .ai-type.important { background: rgba(251,191,36,0.25); color: #fde68a; }
.announce-item .ai-content { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.announce-item .ai-date { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* Loading */
.loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn .loader { display: none; }
.btn.loading .loader { display: inline-block; }
.btn.loading .btn-text { opacity: 0.6; }

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 768px) {
  .auth-banner { height: 130px; }
  .auth-banner .banner-title { font-size: 26px; }
  .auth-card { padding: 26px 22px 30px; }
  .hud-chip { padding: 6px 10px; font-size: 11px; gap: 5px; }
  .hud-chip .hc-icon { font-size: 13px; }
  .hud-chip .hc-hide { display: none; }
  .side-panel { right: 8px; gap: 7px; }
  .side-btn { width: 46px; height: 46px; }
  .side-btn .sb-label { display: none; }
  .skill-bar { right: 10px; bottom: 88px; gap: 8px; }
  .skill-btn { width: 52px; height: 52px; font-size: 21px; }
  .skill-btn .skill-name { font-size: 9px; }
  .skill-btn .skill-key { display: none; }
  .cannon-control { bottom: 72px; gap: 8px; padding: 5px 6px; }
  .cannon-btn { width: 34px; height: 34px; font-size: 19px; }
  .cannon-level-display { min-width: 76px; }
  .cannon-level-display .cl-value { font-size: 15px; }
  .auto-fire-btn { left: 10px; bottom: 80px; width: 50px; height: 50px; }
  .balance-cards { grid-template-columns: 1fr; }
  .tabs button { font-size: 12px; padding: 10px 6px; }
  .bottom-nav a { padding: 8px 16px; }
  .profile-header { flex-wrap: wrap; gap: 10px; }
  .profile-header h1 { font-size: 20px; }
  .logout-btn span { display: none; }
  .logout-btn { padding: 10px; }
  .hud-top { padding: 8px 10px; }
  .hud-left { gap: 6px; }
  .hud-right { gap: 6px; }
}

/* 手机竖屏 */
@media (max-width: 480px) {
  .skill-bar { gap: 6px; }
  .skill-btn { width: 46px; height: 46px; font-size: 19px; }
  .skill-btn .skill-cost { font-size: 8px; padding: 0 4px; }
  .modal { max-height: 92vh; }
  .modal-body { padding: 16px; }
  .fish-table th, .fish-table td { padding: 7px 6px; font-size: 12px; }
  .hud-chip { padding: 5px 9px; font-size: 10px; }
  .boss-warning .bw-text { letter-spacing: 4px; }
  .auth-card { padding: 22px 18px 26px; }
  .skill-bar { flex-direction: column; gap: 4px; }
  .skill-btn { width: 44px; height: 44px; }
  .skill-btn .skill-name { display: none; }
  .cannon-control { gap: 6px; }
  .cannon-level-display { min-width: 60px; }
  .cannon-level-display .cl-value { font-size: 13px; }
  .cannon-scale .cs-tick { width: 4px; height: 4px; }
}

/* 超小屏 */
@media (max-width: 360px) {
  .skill-btn { width: 40px; height: 40px; }
  .skill-btn .skill-icon svg { width: 18px; height: 18px; }
  .cannon-btn { width: 30px; height: 30px; }
  .auto-fire-btn { width: 44px; height: 44px; }
  .hud-chip { padding: 4px 7px; font-size: 9px; }
}

/* 平板 */
@media (min-width: 769px) and (max-width: 1024px) {
  .skill-bar { gap: 10px; }
  .skill-btn { width: 60px; height: 60px; }
  .side-btn { width: 52px; height: 52px; }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
  .hud-top { padding: 4px 8px; }
  .hud-chip { padding: 4px 8px; font-size: 10px; }
  .hud-chip .hc-hide { display: none; }
  .side-btn { width: 40px; height: 40px; }
  .skill-btn { width: 44px; height: 44px; }
  .skill-btn .skill-name { display: none; }
  .cannon-control { bottom: 60px; }
  .auto-fire-btn { bottom: 66px; width: 44px; height: 44px; }
  .auth-banner { height: 80px; }
  .auth-banner .banner-title { font-size: 20px; }
  .auth-card { padding: 16px 20px; }
}

/* 滾動條 - 現代樣式 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--ocean-cyan), var(--violet)); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--ocean-cyan), var(--violet-light)); }

/* 選中文字樣式 */
::selection { background: rgba(34,211,238,0.3); color: #fff; }
