/* ============================================
   FishGame 競技捕魚 — Prototype CSS
   Deep Sea Luxury × Casino Arcade Theme
   ============================================ */

/* --- CSS Design Tokens --- */
:root {
  --bg-deep:          #051428;
  --bg-panel:         rgba(10, 35, 64, 0.85);
  --bg-card:          rgba(10, 35, 64, 0.90);
  --bg-modal:         rgba(5, 10, 25, 0.95);
  --color-gold:       #F5C842;
  --color-gold-hover: #C99A00;
  --color-gold-dim:   rgba(245, 200, 66, 0.25);
  --color-neon:       #00F5D4;
  --color-neon-dim:   rgba(0, 245, 212, 0.3);
  --color-error:      #FF4444;
  --color-success:    #00FF88;
  --color-text:       #FFFFFF;
  --color-text-dim:   rgba(255, 255, 255, 0.65);
  --color-text-mute:  rgba(255, 255, 255, 0.35);
  --color-border:     rgba(245, 200, 66, 0.25);
  --color-border-dim: rgba(255, 255, 255, 0.08);

  --font-main: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, -apple-system, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --shadow-gold:   0 0 20px rgba(245, 200, 66, 0.35), 0 4px 16px rgba(0,0,0,0.5);
  --shadow-neon:   0 0 16px rgba(0, 245, 212, 0.4);
  --shadow-deep:   0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);

  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);

  --spacing-xs:  4px;
  --spacing-sm:  8px;
  --spacing-md:  16px;
  --spacing-lg:  24px;
  --spacing-xl:  32px;
  --spacing-2xl: 48px;

  --proto-nav-h: 48px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(ellipse at 50% 0%, #0D3360 0%, #051428 60%, #030B1A 100%);
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- Water Wave Background Effect --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 40% at 20% 60%, rgba(0,100,200,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 80% 30%, rgba(0,50,120,0.06) 0%, transparent 60%);
  animation: waterShimmer 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle 300px at var(--mx, 50%) var(--my, 50%), rgba(0,245,212,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: waterRipple 12s ease-in-out infinite;
}

@keyframes waterShimmer {
  0%   { opacity: 0.6; transform: scaleX(1) scaleY(1); }
  33%  { opacity: 0.8; transform: scaleX(1.05) scaleY(0.97); }
  66%  { opacity: 0.5; transform: scaleX(0.96) scaleY(1.04); }
  100% { opacity: 0.7; transform: scaleX(1.02) scaleY(1.02); }
}

@keyframes waterRipple {
  0%   { --mx: 20%; --my: 70%; }
  25%  { --mx: 75%; --my: 30%; }
  50%  { --mx: 50%; --my: 80%; }
  75%  { --mx: 15%; --my: 40%; }
  100% { --mx: 20%; --my: 70%; }
}

/* --- Proto Navigation Bar --- */
#proto-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--proto-nav-h);
  background: rgba(3, 11, 26, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  z-index: 1000;
}

#proto-nav button {
  background: transparent;
  border: 1px solid var(--color-border-dim);
  color: var(--color-text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

#proto-nav button:hover {
  border-color: var(--color-gold-dim);
  color: var(--color-gold);
}

#proto-breadcrumb {
  font-size: 13px;
  color: var(--color-text-dim);
  font-weight: 500;
}

/* --- Screen Container --- */
#proto-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--proto-nav-h);
}

/* --- Screen Enter Animation --- */
@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen {
  animation: screenEnter var(--duration-normal) var(--ease-out-expo) both;
  min-height: calc(100vh - var(--proto-nav-h));
  position: relative;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, #F5C842 0%, #E0A800 50%, #C99A00 100%);
  color: #1A1000;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--duration-fast) var(--ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(245,200,66,0.5), 0 6px 20px rgba(0,0,0,0.5);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 23px;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(245, 200, 66, 0.1);
  box-shadow: 0 0 16px rgba(245,200,66,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  background: transparent;
  color: var(--color-text-dim);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, #FF4444, #CC2222);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,68,68,0.3);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255,68,68,0.5);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, rgba(0,245,212,0.15), rgba(0,245,212,0.05));
  color: var(--color-neon);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 23px;
  border: 1px solid var(--color-neon-dim);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.btn-neon:hover {
  background: rgba(0,245,212,0.2);
  box-shadow: 0 0 24px rgba(0,245,212,0.5);
  transform: translateY(-1px);
}

/* --- Game Card --- */
.game-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-lg);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,200,66,0.4), transparent);
}

.game-card:hover {
  border-color: rgba(245,200,66,0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 20px rgba(245,200,66,0.1);
  transform: translateY(-3px);
}

.game-card.selected {
  border-color: var(--color-gold);
  box-shadow: 0 0 24px rgba(245,200,66,0.3), var(--shadow-card);
}

/* --- HUD Bar --- */
.hud-bar {
  position: fixed;
  top: var(--proto-nav-h);
  left: 0; right: 0;
  height: 52px;
  background: rgba(3, 11, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-dim);
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-md);
  gap: var(--spacing-md);
  z-index: 100;
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.hud-stat .value {
  color: var(--color-gold);
}

.hud-stat .label {
  color: var(--color-text-dim);
  font-size: 12px;
}

/* --- Progress Bar --- */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #E0A800, #F5C842, #FFE066);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(245,200,66,0.6);
  transition: width var(--duration-slow) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  from { left: -60%; }
  to   { left: 160%; }
}

/* --- Boss HP Bar --- */
.boss-hp-container {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255,68,68,0.3);
}

.boss-hp-bar {
  height: 100%;
  background: linear-gradient(90deg, #FF4444 0%, #FF8800 50%, #00FF88 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255,68,68,0.5);
}

/* --- Player Avatar --- */
.player-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gold);
  background: linear-gradient(135deg, #0D3360, #051428);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold);
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.player-avatar.vip {
  border-color: var(--color-neon);
  animation: vipGlow 2s ease-in-out infinite;
}

@keyframes vipGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0,245,212,0.4), 0 0 16px rgba(0,245,212,0.2); }
  50%       { box-shadow: 0 0 16px rgba(0,245,212,0.7), 0 0 32px rgba(0,245,212,0.3); }
}

.player-avatar.large {
  width: 72px;
  height: 72px;
  font-size: 28px;
  border-width: 3px;
}

/* --- VIP Badge --- */
.vip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vip-badge.vip-0 { background: rgba(255,255,255,0.1); color: var(--color-text-mute); }
.vip-badge.vip-1 { background: linear-gradient(90deg, #B5803A, #D4A050); color: #FFF; }
.vip-badge.vip-2 { background: linear-gradient(90deg, #888, #CCC); color: #FFF; }
.vip-badge.vip-3 { background: linear-gradient(90deg, #F5C842, #E0A800); color: #1A1000; }
.vip-badge.vip-4 { background: linear-gradient(90deg, #00C8FF, #0080FF); color: #FFF; }
.vip-badge.vip-5 { background: linear-gradient(90deg, #FF00AA, #8800FF); color: #FFF; animation: vipBadgeShine 1.5s ease-in-out infinite; }

@keyframes vipBadgeShine {
  0%, 100% { box-shadow: 0 0 6px rgba(255,0,170,0.5); }
  50%       { box-shadow: 0 0 14px rgba(136,0,255,0.7); }
}

/* --- Skill Button (cooldown conic-gradient) --- */
.skill-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(10, 35, 64, 0.9);
  border: 2px solid var(--color-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  position: relative;
  transition: all var(--duration-fast);
  overflow: visible;
}

.skill-btn:hover {
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(245,200,66,0.4);
}

.skill-btn.on-cooldown {
  cursor: not-allowed;
}

.skill-btn .cooldown-overlay {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: conic-gradient(
    rgba(0,0,0,0.7) var(--cd-progress, 0%),
    transparent var(--cd-progress, 0%)
  );
  pointer-events: none;
}

.skill-btn .cooldown-text {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--color-gold);
  font-weight: 700;
  white-space: nowrap;
}

/* --- Jackpot Animation --- */
@keyframes jackpotGlow {
  0%   { box-shadow: 0 0 10px rgba(245,200,66,0.3); opacity: 1; transform: scale(1); }
  50%  { box-shadow: 0 0 40px rgba(245,200,66,0.8), 0 0 80px rgba(245,200,66,0.4); opacity: 0.9; transform: scale(1.05); }
  100% { box-shadow: 0 0 10px rgba(245,200,66,0.3); opacity: 1; transform: scale(1); }
}

@keyframes jackpotText {
  0%   { transform: scale(0.5) rotate(-5deg); opacity: 0; }
  50%  { transform: scale(1.1) rotate(2deg); opacity: 1; }
  70%  { transform: scale(0.95) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.jackpot-text {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  color: var(--color-gold);
  text-shadow: 0 0 20px rgba(245,200,66,0.8), 0 0 40px rgba(245,200,66,0.4);
  animation: jackpotText 0.6s var(--ease-bounce) both;
  letter-spacing: 4px;
}

.jackpot-progress {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(245,200,66,0.2);
}

.jackpot-fill {
  height: 100%;
  background: linear-gradient(90deg, #F5C842, #FFD700, #FFF068);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(245,200,66,0.7);
  animation: jackpotGlow 2s ease-in-out infinite;
}

/* --- Coin Fly Animation --- */
@keyframes coinFly {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translate(var(--coin-dx, 0px), var(--coin-dy, -120px)) rotate(var(--coin-rot, 360deg)) scale(0.5); opacity: 0; }
}

.coin-particle {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 35%, #FFE566, #F5C842 50%, #C99A00);
  pointer-events: none;
  z-index: 997;
  animation: coinFly 0.8s var(--ease-in-expo) forwards;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--spacing-lg);
  animation: screenEnter var(--duration-normal) var(--ease-out-expo) both;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 40px rgba(245,200,66,0.1);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* --- Text Utilities --- */
.text-gold  { color: var(--color-gold); }
.text-neon  { color: var(--color-neon); }
.text-dim   { color: var(--color-text-dim); }
.text-mute  { color: var(--color-text-mute); }
.text-error { color: var(--color-error); }
.text-success { color: var(--color-success); }

.text-glow {
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(245,200,66,0.6), 0 0 20px rgba(245,200,66,0.3);
}

.text-neon-glow {
  color: var(--color-neon);
  text-shadow: 0 0 10px rgba(0,245,212,0.6), 0 0 20px rgba(0,245,212,0.3);
}

.text-gradient {
  background: linear-gradient(135deg, #F5C842, #FFE066, #F5C842);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Form Inputs --- */
.input-field {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 15px;
  transition: all var(--duration-fast);
  outline: none;
  -webkit-appearance: none;
}

.input-field::placeholder { color: var(--color-text-mute); }

.input-field:focus {
  border-color: var(--color-gold-dim);
  background: rgba(245,200,66,0.05);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.1);
}

/* --- Tab Bar --- */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(3, 11, 26, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border-dim);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all var(--duration-fast);
  color: var(--color-text-mute);
  font-size: 11px;
  font-weight: 500;
  border: none;
  background: transparent;
  font-family: var(--font-main);
}

.tab-item .tab-icon {
  font-size: 20px;
  transition: transform var(--duration-fast) var(--ease-bounce);
}

.tab-item:hover .tab-icon { transform: scale(1.2); }

.tab-item.active {
  color: var(--color-gold);
}

.tab-item.active .tab-icon {
  filter: drop-shadow(0 0 6px rgba(245,200,66,0.6));
}

/* --- Room Card --- */
.room-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245,200,66,0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.room-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,200,66,0.05), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.room-card:hover {
  border-color: rgba(245,200,66,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(245,200,66,0.1);
}

.room-card:hover::after { opacity: 1; }

.room-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.room-status.waiting  { background: rgba(0,255,136,0.15); color: var(--color-success); }
.room-status.playing  { background: rgba(245,200,66,0.15); color: var(--color-gold); }
.room-status.full     { background: rgba(255,68,68,0.15); color: var(--color-error); }

.room-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* --- Toast Notification --- */
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-deep);
  animation: toastIn var(--duration-fast) var(--ease-out-expo) both;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  min-width: 200px;
}

.toast.success { border-left: 3px solid var(--color-success); color: var(--color-success); }
.toast.error   { border-left: 3px solid var(--color-error); color: var(--color-error); }
.toast.info    { border-left: 3px solid var(--color-neon); color: var(--color-neon); }
.toast.gold    { border-left: 3px solid var(--color-gold); color: var(--color-gold); }

/* --- Lobby Player Card --- */
.player-info-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--color-border-dim);
}

.player-stats {
  display: flex;
  gap: var(--spacing-md);
  margin-left: auto;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
}

/* --- Weapon/Cannon Cards --- */
.weapon-card {
  background: var(--bg-card);
  border: 2px solid rgba(245,200,66,0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  text-align: center;
  position: relative;
}

.weapon-card.selected {
  border-color: var(--color-gold);
  background: rgba(245,200,66,0.08);
  box-shadow: 0 0 20px rgba(245,200,66,0.2);
}

.weapon-card:hover:not(.selected) {
  border-color: rgba(245,200,66,0.3);
  transform: translateY(-3px);
}

.weapon-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

/* --- Matchmaking --- */
@keyframes playerFlyIn {
  from { transform: scale(0) translateY(-40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.match-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: playerFlyIn 0.5s var(--ease-bounce) both;
}

@keyframes matchmakingPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245,200,66,0.2); }
  50%       { box-shadow: 0 0 40px rgba(245,200,66,0.5), 0 0 60px rgba(0,245,212,0.2); }
}

.matchmaking-ring {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gold-dim);
  position: relative;
  animation: matchmakingPulse 2s ease-in-out infinite;
}

/* --- Settlement --- */
@keyframes countUp {
  from { transform: scale(1.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.rank-reveal {
  animation: screenEnter 0.5s var(--ease-out-expo) both;
}

.rank-reveal:nth-child(2) { animation-delay: 0.15s; }
.rank-reveal:nth-child(3) { animation-delay: 0.30s; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245,200,66,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,200,66,0.6); }

/* --- Utility --- */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm      { gap: var(--spacing-sm); }
.gap-md      { gap: var(--spacing-md); }
.gap-lg      { gap: var(--spacing-lg); }
.w-full      { width: 100%; }
.text-center { text-align: center; }
.mt-sm       { margin-top: var(--spacing-sm); }
.mt-md       { margin-top: var(--spacing-md); }
.mt-lg       { margin-top: var(--spacing-lg); }
.mb-sm       { margin-bottom: var(--spacing-sm); }
.mb-md       { margin-bottom: var(--spacing-md); }
.rounded-full { border-radius: var(--radius-full); }

/* --- Loading Scene --- */
.loading-fish-logo {
  font-size: 80px;
  animation: fishSwim 2s ease-in-out infinite;
  display: block;
  margin-bottom: 12px;
}

@keyframes fishSwim {
  0%, 100% { transform: translateX(-10px) rotate(-3deg); }
  50%       { transform: translateX(10px) rotate(3deg); }
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .player-stats { gap: var(--spacing-sm); }
  .stat-chip { padding: 4px 8px; font-size: 12px; }
  .skill-btn { width: 48px; height: 48px; font-size: 18px; }
  .modal-content { padding: var(--spacing-lg); }
}
