/* css/ui-panels.css - UI Panel Styles */

/* Base UI Panel Styles */
.ui-panel {
  position: absolute;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 2px solid #00ffff;
  border-radius: 15px;
  padding: 15px;
  box-shadow:
    0 0 30px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.ui-panel:hover {
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.7),
    inset 0 0 30px rgba(0, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Panel Header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.panel-close {
  width: 20px;
  height: 20px;
  background: rgba(255, 0, 0, 0.5);
  border: 1px solid #ff0000;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

.panel-close:hover {
  background: #ff0000;
  transform: scale(1.2);
}

/* Scrollable Content */
.panel-content {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom Scrollbar for Panels */
.panel-content::-webkit-scrollbar {
  width: 6px;
}

.panel-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 3px;
  box-shadow: 0 0 5px #00ffff;
}

/* Panel Animations */
@keyframes panel-slide-in {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes panel-pulse {

  0%,
  100% {
    box-shadow:
      0 0 30px rgba(0, 255, 255, 0.5),
      inset 0 0 20px rgba(0, 255, 255, 0.1);
  }

  50% {
    box-shadow:
      0 0 50px rgba(0, 255, 255, 0.8),
      inset 0 0 30px rgba(0, 255, 255, 0.3);
  }
}

.ui-panel.animate-in {
  animation: panel-slide-in 0.5s ease-out;
}

.ui-panel.pulse {
  animation: panel-pulse 2s ease-in-out infinite;
}

/* Collapsible Panels */
.ui-panel.collapsed {
  height: auto !important;
}

.ui-panel.collapsed .panel-content {
  display: none;
}

.panel-toggle {
  position: absolute;
  top: 10px;
  right: 40px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #00ffff;
  transition: transform 0.3s ease;
}

.panel-toggle:hover {
  color: #00ff00;
}

.ui-panel.collapsed .panel-toggle {
  transform: rotate(180deg);
}

/* Panel Tabs */
.panel-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-tab {
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #888888;
}

.panel-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.panel-tab.active {
  background: rgba(0, 255, 255, 0.2);
  border-color: #00ffff;
  color: #00ffff;
  box-shadow: 0 -5px 15px rgba(0, 255, 255, 0.3);
}

/* Panel Grid Layout */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.panel-grid-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.panel-grid-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #00ffff;
  transform: translateY(-2px);
}

/* Panel Lists */
.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.panel-list-item {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-list-item:last-child {
  border-bottom: none;
}

.panel-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 15px;
}

/* Panel Buttons */
.panel-button {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #00ffff 0%, #0088ff 100%);
  border: none;
  border-radius: 20px;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 12px;
  box-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
}

.panel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
}

.panel-button:active {
  transform: translateY(0);
}

.panel-button.secondary {
  background: linear-gradient(135deg, #ff0080 0%, #ff00ff 100%);
  box-shadow: 0 2px 10px rgba(255, 0, 128, 0.3);
}

.panel-button.danger {
  background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
}

/* Panel Input Fields */
.panel-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.panel-input:focus {
  outline: none;
  border-color: #00ffff;
  background: rgba(0, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Panel Progress Bars */
.panel-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.panel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ffff 0%, #00ff00 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px currentColor;
  position: relative;
  overflow: hidden;
}

.panel-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: progress-shine 2s linear infinite;
}

@keyframes progress-shine {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

/* Panel Tooltips */
.panel-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.panel-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00ffff;
  border-radius: 5px;
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.panel-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 10px);
}

/* Panel Notifications */
.panel-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.9) 0%, rgba(0, 136, 255, 0.9) 100%);
  border-radius: 10px;
  color: #000000;
  font-weight: bold;
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
  transform: translateX(400px);
  transition: transform 0.5s ease;
  z-index: 10000;
}

.panel-notification.show {
  transform: translateX(0);
}

.panel-notification.error {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.9) 0%, rgba(255, 68, 68, 0.9) 100%);
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.panel-notification.success {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.9) 0%, rgba(0, 200, 0, 0.9) 100%);
  box-shadow: 0 5px 20px rgba(0, 255, 0, 0.5);
}

/* Responsive Panels */
@media (max-width: 768px) {
  .ui-panel {
    position: fixed;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: 50vh;
  }

  .panel-content {
    max-height: 40vh;
  }

  .panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

/* Dark Mode Variant */
.dark-mode .ui-panel {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(5, 5, 10, 0.95) 100%);
  border-color: #ff00ff;
  box-shadow:
    0 0 30px rgba(255, 0, 255, 0.5),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
}

/* css/ui-panels.css - Fixed UI Panel Positioning */

/* Base UI Panel Styles */
.ui-panel {
  position: absolute;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid #00ffff;
  border-radius: 12px;
  padding: 15px;
  color: #fff;
  font-family: 'Orbitron', monospace;
  z-index: 100;
  /* Above canvas but below overlays */
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.5),
    inset 0 0 10px rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.ui-panel h3 {
  margin: 0 0 10px 0;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  font-size: 16px;
  text-align: center;
}

/* Shop Panel - Top Left */
#shopPanel {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 220px;
  max-height: 300px;
  overflow-y: auto;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin: 5px 0;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.shop-item:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: #00ffff;
  transform: translateX(5px);
}

.shop-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-item.disabled:hover {
  transform: none;
}

/* Leaderboard Panel - Top Right */
#leaderboardPanel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
}

.leaderboard-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin: 3px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.leaderboard-entry.current-player {
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid #00ffff;
}

.leaderboard-entry .rank {
  font-weight: bold;
  color: #ffff00;
  width: 30px;
}

.leaderboard-entry .name {
  flex: 1;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-entry .score {
  color: #00ff00;
  font-weight: bold;
}

/* Billboard Stats - Left Middle */
#billboardPanel {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
}

.billboard-stat {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.billboard-stat:last-child {
  border-bottom: none;
}

.billboard-stat .label {
  color: #888;
}

.billboard-stat .value {
  color: #00ff00;
  font-weight: bold;
}

/* Avatar Control - Left Bottom */
#avatarPanel {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 200px;
}

.avatar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 5px;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 25px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch.active {
  background: #00ffff;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active::after {
  transform: translateX(25px);
}

/* Bonus Bank - Bottom Right */
#bonusBank {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 200px;
  text-align: center;
}

.bank-amount {
  font-size: 32px;
  color: #ffff00;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
  margin: 10px 0;
}

/* Scrollbar Styling */
.ui-panel::-webkit-scrollbar {
  width: 8px;
}

.ui-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.ui-panel::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 4px;
}

.ui-panel::-webkit-scrollbar-thumb:hover {
  background: #00cccc;
}

/* Hide panels during loading */
body:has(#loadingScreen:not([style*="display: none"])) .ui-panel {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .ui-panel {
    font-size: 12px;
    padding: 10px;
  }

  #shopPanel,
  #billboardPanel,
  #avatarPanel {
    width: 160px;
  }

  #leaderboardPanel {
    width: 220px;
  }

  #bonusBank {
    width: 150px;
  }

  .bank-amount {
    font-size: 24px;
  }
}

/* Panel visibility states */
.ui-panel.hidden {
  display: none;
}

.ui-panel.minimized {
  height: auto;
  overflow: hidden;
}

.ui-panel.minimized>*:not(h3) {
  display: none;
}

/* css/ui-panels.css - UI Panel Styles for Three-Column Layout */

/* Base Panel Section Styles */
.panel-section {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  backdrop-filter: blur(5px);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.panel-section:hover {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow:
    0 4px 20px rgba(0, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Panel Titles */
.panel-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00ffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Account Balance */
.account-balance {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  border: 2px solid #FF8C00;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.account-balance::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

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

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.balance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.balance-amount {
  font-size: 28px;
  font-weight: 900;
  margin-top: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Currency Exchange */
.currency-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.3s;
}

.currency-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.5);
  transform: translateX(5px);
}

.buy-btn {
  background: linear-gradient(135deg, #00ff00, #00cc00);
  border: none;
  border-radius: 15px;
  padding: 5px 15px;
  color: #000;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.buy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.5);
}

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

/* Shop Items */
#shopItems {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.shop-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
  transform: translateX(5px);
}

.shop-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-item.disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.shop-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-item-icon {
  font-size: 20px;
}

.shop-item-details {
  display: flex;
  flex-direction: column;
}

.shop-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.shop-item-desc {
  font-size: 10px;
  color: #888888;
}

.shop-item-cost {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
  border-radius: 15px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: bold;
  color: #ffd700;
}

/* Billboard Stats */
.billboard-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.billboard-stat:last-child {
  border-bottom: none;
}

.billboard-stat-label {
  color: #888888;
  font-size: 12px;
}

.billboard-stat-value {
  color: #00ff00;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Avatar Control */
.avatar-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.avatar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.avatar-status {
  width: 50px;
  height: 24px;
  background: #333333;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.avatar-status::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.avatar-status.on {
  background: #00ff00;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(0, 255, 0, 0.5);
}

.avatar-status.on::after {
  transform: translateX(26px);
}

/* Leaderboard Entries */
#leaderboardEntries,
#globalLeaderboard {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.3s;
}

.leaderboard-entry:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.leaderboard-entry.current-player {
  background: rgba(0, 255, 255, 0.2);
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.leaderboard-rank {
  width: 30px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.leaderboard-name {
  flex: 1;
  padding: 0 10px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  font-weight: bold;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.leaderboard-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 8px 0;
}

/* Bonus Bank */
.bank-display {
  text-align: center;
  padding: 20px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.bank-amount {
  font-size: 36px;
  font-weight: 900;
  color: #ffd700;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.bank-info {
  font-size: 12px;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Shop Feedback Messages */
.shop-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px 30px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 18px;
  z-index: 200;
  pointer-events: none;
  animation: feedbackPop 0.5s ease-out;
}

@keyframes feedbackPop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.shop-feedback.success {
  background: rgba(0, 255, 0, 0.9);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
}

.shop-feedback.error {
  background: rgba(255, 0, 0, 0.9);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.shop-feedback.warning {
  background: rgba(255, 255, 0, 0.9);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 255, 0, 0.8);
}

/* Power-up Active Indicators */
.powerup-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #00ff00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
  animation: powerupPulse 1s ease-in-out infinite;
}

@keyframes powerupPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Custom Scrollbar for Panel Content */
.panel-section::-webkit-scrollbar {
  width: 6px;
}

.panel-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.panel-section::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.5);
  border-radius: 3px;
}

.panel-section::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.7);
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.canvas-container .city-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.canvas-container #gameCanvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}