:root {
  --wii-blue: #0058A8;
  --wii-teal: #00C3E3;
  --wii-light-blue: #E8F4FD;
  --wii-white: #FFFFFF;
  --wii-gray: #F0F0F0;
  --wii-dark: #333333;
  --wii-mid-gray: #888888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, system-ui, sans-serif;
  background: linear-gradient(180deg, #E8F4FD 0%, #F5FAFE 30%, #FFFFFF 100%);
  min-height: 100vh;
  color: var(--wii-dark);
}

/* Wii-style click effect */
.wii-clickable {
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.wii-clickable:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.wii-clickable:active {
  transform: scale(0.97);
}

/* Tree node hover */
.tree-node {
  transition: background-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.tree-node:hover {
  background-color: rgba(0, 195, 227, 0.08);
}

/* Progress bar animation */
@keyframes progressFill {
  0% { width: 0%; }
  15% { width: 12%; }
  35% { width: 34%; }
  50% { width: 56%; }
  70% { width: 78%; }
  85% { width: 91%; }
  100% { width: 100%; }
}

.progress-animate {
  animation: progressFill 2.2s ease-in-out forwards;
}

/* Disc spin easter egg */
@keyframes discSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(360deg) scale(1.3); }
  50% { transform: rotate(720deg) scale(1); }
  75% { transform: rotate(1080deg) scale(1.15); }
  100% { transform: rotate(1440deg) scale(1); }
}

.disc-spinning {
  animation: discSpin 2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

/* Slide in panel */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in {
  animation: slideIn 0.35s ease-out;
}

/* Fade expand */
@keyframes fadeExpand {
  from { opacity: 0; max-height: 0; transform: translateY(-8px); }
  to { opacity: 1; max-height: 500px; transform: translateY(0); }
}

.fade-expand {
  animation: fadeExpand 0.4s ease-out;
  overflow: hidden;
}

/* Extract glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 195, 227, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 195, 227, 0.6); }
}

.glow-pulse {
  animation: glowPulse 1.5s ease-in-out infinite;
}

/* Waveform animation */
@keyframes waveBar {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

/* Toast animation */
@keyframes toastSlide {
  0% { transform: translateX(100%); opacity: 0; }
  10% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.toast-animate {
  animation: toastSlide 3.5s ease-in-out forwards;
}

/* Hex row alternating */
.hex-row-even { background-color: #f8fbfe; }
.hex-row-odd { background-color: #ffffff; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--wii-gray);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb {
  background: var(--wii-teal);
  border-radius: 3px;
}

/* Banner mockup gradient */
.banner-gradient {
  background: linear-gradient(135deg, #0058A8 0%, #00C3E3 50%, #0058A8 100%);
}

/* Icon animation */
@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-6px) scale(1.05); }
  50% { transform: translateY(0) scale(1); }
  75% { transform: translateY(-3px) scale(1.02); }
}

.icon-bounce {
  animation: iconBounce 2s ease-in-out infinite;
}

/* Upload zone */
.upload-zone {
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: #00C3E3 !important;
  background: rgba(0, 195, 227, 0.05) !important;
}

.upload-zone-active {
  border-color: #0058A8 !important;
  background: rgba(0, 88, 168, 0.08) !important;
  transform: scale(1.01);
}

/* Accordion */
@keyframes accordionOpen {
  from { max-height: 0; opacity: 0; }
  to { max-height: 600px; opacity: 1; }
}

.accordion-open {
  animation: accordionOpen 0.4s ease-out;
  overflow: hidden;
}

/* Button glow */
.btn-wii {
  background: linear-gradient(180deg, #0068C8 0%, #0058A8 100%);
  transition: all 0.2s ease;
}

.btn-wii:hover {
  background: linear-gradient(180deg, #0078D8 0%, #0068C8 100%);
  box-shadow: 0 0 16px rgba(0, 88, 168, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .explorer-layout {
    flex-direction: column !important;
  }
}