/**
 * Wizard's College Landing Page Styles
 * 
 * Interactive castle interior with guide character pointing to destinations
 */

.wizards-college-landing {
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.wizards-college-landing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.wizards-college-landing > * {
  position: relative;
  z-index: 1;
}

/* Welcome Header */
.welcome-header {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}

.welcome-header h1 {
  font-size: 3.5rem;
  margin: 0 0 15px 0;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
               0 0 40px rgba(118, 75, 162, 0.3);
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-header p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Castle Interior Container */
.castle-interior-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.castle-interior-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
  position: relative;
  /* Remove background gradient - let the image show through */
  /* background: linear-gradient(135deg, #2d1b3d 0%, #1a0f2e 50%, #0d0518 100%); */
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  text-align: center;
  padding: 40px;
  /* Ensure transparency works properly */
  background-color: transparent;
}

.castle-interior-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
  animation: castleZoom 20s ease-in-out infinite;
}

@keyframes castleZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Guide Character */
.guide-character {
  position: absolute;
  left: 50% !important; /* Fixed center position - never changes */
  top: 50% !important; /* Fixed center position - never changes */
  z-index: 10;
  cursor: pointer;
  /* Center the character at its position */
  transform-origin: center center;
  margin: 0 !important; /* No margins */
  /* Hover animation - combines centering with floating */
  animation: luckyHover 3s ease-in-out infinite;
}

@keyframes luckyHover {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

.guide-character img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
  object-fit: contain;
  animation: luckyColorRotate 8s linear infinite;
}

@keyframes luckyColorRotate {
  0% {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) hue-rotate(0deg);
  }
  100% {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) hue-rotate(360deg);
  }
}

/* Sprite sheet support - if using a sprite sheet, use background-image instead */
.guide-character.sprite-sheet {
  width: 120px;
  height: 120px;
  /* Sprite sheet is 1024x1024, 4x4 grid, 256x256 per frame */
  /* Display size is 120px, so we scale the sprite sheet proportionally */
  /* background-size: total sprite width * (display width / frame width) */
  /* For 4x4: 1024px * (120px / 256px) = 480px */
  background-color: rgba(255, 0, 0, 0.3) !important; /* DEBUG: Red background to see if element is visible */
  background-image: url('/images/4x4-lucky-trans.png') !important; /* Force image to load */
  background-size: 480px 480px !important;
  background-repeat: no-repeat !important;
  background-position: -25% -25% !important; /* Default: center frame [1,1] - use !important to override inline styles */
  transition: background-position 0.2s ease; /* Shorter transition to prevent intermediate values */
  /* Ensure the container itself is transparent */
  background-clip: padding-box;
  /* DEBUG: Make sure element is visible */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  animation: luckyColorRotateSprite 8s linear infinite;
}

@keyframes luckyColorRotateSprite {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.guide-character.sprite-sheet:hover {
  transform: scale(1.1);
}

/* Note: Filters like drop-shadow don't work well with background-image */
/* If you need a shadow effect, consider using a wrapper element with filter */

.guide-character:hover img {
  transform: scale(1.1);
}

.guide-speech-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 250px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  /* Position above the character, centered horizontally */
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  margin-bottom: 15px;
  z-index: 20;
}

.guide-character.active .guide-speech-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.guide-speech-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(255, 255, 255, 0.95);
  /* Point down to the character */
}

/* Destination Hotspots */
.destination-hotspot {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 10px;
  font-size: 4.5rem;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: none;
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 6s ease-in-out infinite;
  opacity: 0;
  /* Bubble effect - warping/distortion */
  filter: brightness(1.1) contrast(1.05) saturate(1.1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Gentle bobbing motion with subtle bubble warping */
@keyframes destinationBob {
  /* Smooth vertical bobbing with minimal horizontal drift */
  0%, 100% {
    transform: perspective(1000px) translateY(0) translateX(0) rotate(0deg) rotateX(0deg) rotateY(0deg) scale(1);
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
  }
  25% {
    transform: perspective(1000px) translateY(-8px) translateX(2px) rotate(0.3deg) rotateX(0.5deg) rotateY(-0.2deg) scale(1.005);
    filter: brightness(1.11) contrast(1.055) saturate(1.11);
  }
  50% {
    transform: perspective(1000px) translateY(0) translateX(0) rotate(0deg) rotateX(0deg) rotateY(0deg) scale(1);
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
  }
  75% {
    transform: perspective(1000px) translateY(-6px) translateX(-2px) rotate(-0.3deg) rotateX(-0.5deg) rotateY(0.2deg) scale(1.005);
    filter: brightness(1.11) contrast(1.055) saturate(1.11);
  }
}

/* Different color glows for each destination with randomized frequencies and offsets */
.destination-hotspot[data-route="/library"],
.destination-hotspot[data-destination="library"] {
  filter: brightness(1.1) contrast(1.05) saturate(1.1)
          drop-shadow(0 0 10px rgba(59, 130, 246, 0.8))
          drop-shadow(0 0 20px rgba(59, 130, 246, 0.6))
          drop-shadow(0 0 30px rgba(59, 130, 246, 0.4));
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 7.3s ease-in-out infinite;
  animation-delay: 0s, 0.8s;
}

.destination-hotspot[data-route="/games-library"],
.destination-hotspot[data-destination="games-library"] {
  filter: brightness(1.1) contrast(1.05) saturate(1.1)
          drop-shadow(0 0 10px rgba(34, 197, 94, 0.8))
          drop-shadow(0 0 20px rgba(34, 197, 94, 0.6))
          drop-shadow(0 0 30px rgba(34, 197, 94, 0.4));
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 5.7s ease-in-out infinite;
  animation-delay: 0s, 2.4s;
}

.destination-hotspot[data-route="/radio"],
.destination-hotspot[data-destination="radio"] {
  filter: brightness(1.1) contrast(1.05) saturate(1.1)
          drop-shadow(0 0 10px rgba(168, 85, 247, 0.8))
          drop-shadow(0 0 20px rgba(168, 85, 247, 0.6))
          drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 6.9s ease-in-out infinite;
  animation-delay: 0s, 4.1s;
}

.destination-hotspot[data-route="/merchandise"],
.destination-hotspot[data-destination="merchandise"] {
  filter: brightness(1.1) contrast(1.05) saturate(1.1)
          drop-shadow(0 0 10px rgba(249, 115, 22, 0.8))
          drop-shadow(0 0 20px rgba(249, 115, 22, 0.6))
          drop-shadow(0 0 30px rgba(249, 115, 22, 0.4));
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 5.2s ease-in-out infinite;
  animation-delay: 0s, 1.3s;
}

.destination-hotspot[data-route="/social"],
.destination-hotspot[data-destination="social"] {
  filter: brightness(1.1) contrast(1.05) saturate(1.1)
          drop-shadow(0 0 10px rgba(6, 182, 212, 0.8))
          drop-shadow(0 0 20px rgba(6, 182, 212, 0.6))
          drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 7.8s ease-in-out infinite;
  animation-delay: 0s, 3.7s;
}

.destination-hotspot[data-route="/lore-masters"],
.destination-hotspot[data-destination="lore-masters"] {
  filter: brightness(1.1) contrast(1.05) saturate(1.1)
          drop-shadow(0 0 10px rgba(234, 179, 8, 0.8))
          drop-shadow(0 0 20px rgba(234, 179, 8, 0.6))
          drop-shadow(0 0 30px rgba(234, 179, 8, 0.4));
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 6.1s ease-in-out infinite;
  animation-delay: 0s, 5.5s;
}

@keyframes destinationFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.destination-hotspot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-width: 100%;
  max-height: 100%;
  transition: filter 0.3s ease;
  /* Bubble effect on images */
  filter: brightness(1.05) contrast(1.02);
}

/* Match image glows to parent hotspot glows with bubble effect */
.destination-hotspot[data-route="/library"] img,
.destination-hotspot[data-destination="library"] img {
  filter: brightness(1.05) contrast(1.02) saturate(1.05)
          drop-shadow(0 0 10px rgba(59, 130, 246, 0.8))
          drop-shadow(0 0 20px rgba(59, 130, 246, 0.6))
          drop-shadow(0 0 30px rgba(59, 130, 246, 0.4));
}

.destination-hotspot[data-route="/games-library"] img,
.destination-hotspot[data-destination="games-library"] img {
  filter: brightness(1.05) contrast(1.02) saturate(1.05)
          drop-shadow(0 0 10px rgba(34, 197, 94, 0.8))
          drop-shadow(0 0 20px rgba(34, 197, 94, 0.6))
          drop-shadow(0 0 30px rgba(34, 197, 94, 0.4));
}

.destination-hotspot[data-route="/radio"] img,
.destination-hotspot[data-destination="radio"] img {
  filter: brightness(1.05) contrast(1.02) saturate(1.05)
          drop-shadow(0 0 10px rgba(168, 85, 247, 0.8))
          drop-shadow(0 0 20px rgba(168, 85, 247, 0.6))
          drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
}

.destination-hotspot[data-route="/merchandise"] img,
.destination-hotspot[data-destination="merchandise"] img {
  filter: brightness(1.05) contrast(1.02) saturate(1.05)
          drop-shadow(0 0 10px rgba(249, 115, 22, 0.8))
          drop-shadow(0 0 20px rgba(249, 115, 22, 0.6))
          drop-shadow(0 0 30px rgba(249, 115, 22, 0.4));
}

.destination-hotspot[data-route="/social"] img,
.destination-hotspot[data-destination="social"] img {
  filter: brightness(1.05) contrast(1.02) saturate(1.05)
          drop-shadow(0 0 10px rgba(6, 182, 212, 0.8))
          drop-shadow(0 0 20px rgba(6, 182, 212, 0.6))
          drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
}

.destination-hotspot[data-route="/lore-masters"] img,
.destination-hotspot[data-destination="lore-masters"] img {
  filter: brightness(1.05) contrast(1.02) saturate(1.05)
          drop-shadow(0 0 10px rgba(234, 179, 8, 0.8))
          drop-shadow(0 0 20px rgba(234, 179, 8, 0.6))
          drop-shadow(0 0 30px rgba(234, 179, 8, 0.4));
}


.destination-hotspot:hover {
  transform: scale(1.2);
  background: transparent;
  box-shadow: none;
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 2s ease-in-out infinite;
}

.destination-hotspot[data-route="/library"]:hover,
.destination-hotspot[data-destination="library"]:hover {
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.9))
          drop-shadow(0 0 30px rgba(59, 130, 246, 0.7))
          drop-shadow(0 0 45px rgba(59, 130, 246, 0.5));
}

.destination-hotspot[data-route="/games-library"]:hover,
.destination-hotspot[data-destination="games-library"]:hover {
  filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.9))
          drop-shadow(0 0 30px rgba(34, 197, 94, 0.7))
          drop-shadow(0 0 45px rgba(34, 197, 94, 0.5));
}

.destination-hotspot[data-route="/radio"]:hover,
.destination-hotspot[data-destination="radio"]:hover {
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.9))
          drop-shadow(0 0 30px rgba(168, 85, 247, 0.7))
          drop-shadow(0 0 45px rgba(168, 85, 247, 0.5));
}

.destination-hotspot[data-route="/merchandise"]:hover,
.destination-hotspot[data-destination="merchandise"]:hover {
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.9))
          drop-shadow(0 0 30px rgba(249, 115, 22, 0.7))
          drop-shadow(0 0 45px rgba(249, 115, 22, 0.5));
}

.destination-hotspot[data-route="/social"]:hover,
.destination-hotspot[data-destination="social"]:hover {
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.9))
          drop-shadow(0 0 30px rgba(6, 182, 212, 0.7))
          drop-shadow(0 0 45px rgba(6, 182, 212, 0.5));
}

.destination-hotspot[data-route="/lore-masters"]:hover,
.destination-hotspot[data-destination="lore-masters"]:hover {
  filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.9))
          drop-shadow(0 0 30px rgba(234, 179, 8, 0.7))
          drop-shadow(0 0 45px rgba(234, 179, 8, 0.5));
}

.destination-hotspot:hover img {
  filter: inherit;
}

.destination-hotspot.active {
  transform: scale(1.3);
  background: transparent;
  border: none;
  box-shadow: none;
  animation: destinationFadeIn 1s ease-out forwards, destinationBob 3s ease-in-out infinite;
}

.destination-hotspot[data-route="/library"].active,
.destination-hotspot[data-destination="library"].active {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.9))
          drop-shadow(0 0 40px rgba(59, 130, 246, 0.7))
          drop-shadow(0 0 60px rgba(59, 130, 246, 0.5));
}

.destination-hotspot[data-route="/games-library"].active,
.destination-hotspot[data-destination="games-library"].active {
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.9))
          drop-shadow(0 0 40px rgba(34, 197, 94, 0.7))
          drop-shadow(0 0 60px rgba(34, 197, 94, 0.5));
}

.destination-hotspot[data-route="/radio"].active,
.destination-hotspot[data-destination="radio"].active {
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.9))
          drop-shadow(0 0 40px rgba(168, 85, 247, 0.7))
          drop-shadow(0 0 60px rgba(168, 85, 247, 0.5));
}

.destination-hotspot[data-route="/merchandise"].active,
.destination-hotspot[data-destination="merchandise"].active {
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.9))
          drop-shadow(0 0 40px rgba(249, 115, 22, 0.7))
          drop-shadow(0 0 60px rgba(249, 115, 22, 0.5));
}

.destination-hotspot[data-route="/social"].active,
.destination-hotspot[data-destination="social"].active {
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.9))
          drop-shadow(0 0 40px rgba(6, 182, 212, 0.7))
          drop-shadow(0 0 60px rgba(6, 182, 212, 0.5));
}

.destination-hotspot[data-route="/lore-masters"].active,
.destination-hotspot[data-destination="lore-masters"].active {
  filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.9))
          drop-shadow(0 0 40px rgba(234, 179, 8, 0.7))
          drop-shadow(0 0 60px rgba(234, 179, 8, 0.5));
}

.destination-hotspot.active img {
  filter: inherit;
}

.destination-tooltip {
  display: none; /* Tooltips removed - users click to see info panel */
}

/* Destination Info Panel */
.destination-info-panel {
  position: fixed;
  /* Position will be set dynamically via JavaScript */
  background: var(--theme-card-bg, rgba(255, 255, 255, 0.95));
  padding: 25px 35px;
  border-radius: 15px;
  box-shadow: 0 8px 30px var(--theme-card-shadow, rgba(0, 0, 0, 0.4));
  max-width: 600px;
  width: 90%;
  z-index: 1001; /* Higher than header z-index (1000) to ensure it appears above */
  opacity: 0;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transform: translateY(100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: none;
  color: var(--theme-text-primary, #333);
}

.destination-info-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.destination-info-panel h3 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  color: var(--theme-text-primary, #333);
  display: flex;
  align-items: center;
  gap: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.destination-info-panel p {
  margin: 0 0 20px 0;
  color: var(--theme-text-secondary, #666);
  font-size: 1rem;
  line-height: 1.6;
}

.destination-info-panel .destination-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.destination-info-panel .btn-visit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.destination-info-panel .btn-visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.destination-info-panel .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--theme-text-tertiary, #999);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.destination-info-panel .btn-close:hover {
  background: var(--theme-bg-tertiary, rgba(0, 0, 0, 0.1));
  color: var(--theme-text-primary, #333);
}

/* Responsive Design */
@media (max-width: 768px) {
  .welcome-header h1 {
    font-size: 2.5rem;
  }

  .welcome-header p {
    font-size: 1.1rem;
  }

  .castle-interior-container {
    padding: 10px;
    max-width: 100%;
  }

  .castle-interior-image {
    min-height: auto;
    padding: 10px;
    position: relative;
  }

  .castle-interior-image img {
    width: 100%;
    height: auto;
    min-height: 500px;
    object-fit: contain;
    display: block;
  }

  /* Guide Character - hide on small screens */
  .guide-character {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .guide-character img {
    display: none !important;
  }

  /* Sprite sheet support - hidden on small screens */
  .guide-character.sprite-sheet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Hide speech bubble on small screens */
  .guide-speech-bubble {
    display: none !important;
  }

  /* Destination Hotspots - ensure proper sizing and touch targets on mobile */
  .destination-hotspot {
    width: 90px !important;
    height: 90px !important;
    font-size: 2.5rem !important;
    border: none !important;
    background: transparent !important;
    padding: 8px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    box-shadow: none !important;
  }

  /* Mobile color glows for each destination */
  .destination-hotspot[data-route="/library"],
  .destination-hotspot[data-destination="library"] {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8))
            drop-shadow(0 0 15px rgba(59, 130, 246, 0.6))
            drop-shadow(0 0 25px rgba(59, 130, 246, 0.4)) !important;
  }

  .destination-hotspot[data-route="/games-library"],
  .destination-hotspot[data-destination="games-library"] {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.8))
            drop-shadow(0 0 15px rgba(34, 197, 94, 0.6))
            drop-shadow(0 0 25px rgba(34, 197, 94, 0.4)) !important;
  }

  .destination-hotspot[data-route="/radio"],
  .destination-hotspot[data-destination="radio"] {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8))
            drop-shadow(0 0 15px rgba(168, 85, 247, 0.6))
            drop-shadow(0 0 25px rgba(168, 85, 247, 0.4)) !important;
  }

  .destination-hotspot[data-route="/merchandise"],
  .destination-hotspot[data-destination="merchandise"] {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8))
            drop-shadow(0 0 15px rgba(249, 115, 22, 0.6))
            drop-shadow(0 0 25px rgba(249, 115, 22, 0.4)) !important;
  }

  .destination-hotspot[data-route="/social"],
  .destination-hotspot[data-destination="social"] {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8))
            drop-shadow(0 0 15px rgba(6, 182, 212, 0.6))
            drop-shadow(0 0 25px rgba(6, 182, 212, 0.4)) !important;
  }

  .destination-hotspot[data-route="/lore-masters"],
  .destination-hotspot[data-destination="lore-masters"] {
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8))
            drop-shadow(0 0 15px rgba(234, 179, 8, 0.6))
            drop-shadow(0 0 25px rgba(234, 179, 8, 0.4)) !important;
  }

  .destination-hotspot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  /* Match mobile image glows to parent */
  .destination-hotspot[data-route="/library"] img,
  .destination-hotspot[data-destination="library"] img {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8))
            drop-shadow(0 0 15px rgba(59, 130, 246, 0.6))
            drop-shadow(0 0 25px rgba(59, 130, 246, 0.4)) !important;
  }

  .destination-hotspot[data-route="/games-library"] img,
  .destination-hotspot[data-destination="games-library"] img {
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.8))
            drop-shadow(0 0 15px rgba(34, 197, 94, 0.6))
            drop-shadow(0 0 25px rgba(34, 197, 94, 0.4)) !important;
  }

  .destination-hotspot[data-route="/radio"] img,
  .destination-hotspot[data-destination="radio"] img {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8))
            drop-shadow(0 0 15px rgba(168, 85, 247, 0.6))
            drop-shadow(0 0 25px rgba(168, 85, 247, 0.4)) !important;
  }

  .destination-hotspot[data-route="/merchandise"] img,
  .destination-hotspot[data-destination="merchandise"] img {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.8))
            drop-shadow(0 0 15px rgba(249, 115, 22, 0.6))
            drop-shadow(0 0 25px rgba(249, 115, 22, 0.4)) !important;
  }

  .destination-hotspot[data-route="/social"] img,
  .destination-hotspot[data-destination="social"] img {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8))
            drop-shadow(0 0 15px rgba(6, 182, 212, 0.6))
            drop-shadow(0 0 25px rgba(6, 182, 212, 0.4)) !important;
  }

  .destination-hotspot[data-route="/lore-masters"] img,
  .destination-hotspot[data-destination="lore-masters"] img {
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.8))
            drop-shadow(0 0 15px rgba(234, 179, 8, 0.6))
            drop-shadow(0 0 25px rgba(234, 179, 8, 0.4)) !important;
  }

  .destination-info-panel {
    padding: 20px 25px;
    bottom: 20px;
  }

  .destination-info-panel h3 {
    font-size: 1.5rem;
  }

  .destination-info-panel .destination-actions {
    flex-direction: column;
  }

  .destination-info-panel .btn-visit {
    width: 100%;
    justify-content: center;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .wizards-college-landing {
    padding: 20px 10px;
  }

  .castle-interior-container {
    padding: 5px;
    border-radius: 15px;
    max-width: 100%;
  }

  .castle-interior-image {
    padding: 5px;
    position: relative;
  }

  .castle-interior-image img {
    min-height: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Guide Character - hide on extra small screens */
  .guide-character {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .guide-character img {
    display: none !important;
  }

  /* Sprite sheet support - hidden on extra small screens */
  .guide-character.sprite-sheet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Hide speech bubble on extra small screens */
  .guide-speech-bubble {
    display: none !important;
  }

  /* Destination Hotspots - ensure they're visible and touchable on small screens */
  .destination-hotspot {
    width: 75px !important;
    height: 75px !important;
    font-size: 2rem !important;
    border: none !important;
    background: transparent !important;
    padding: 6px !important;
    min-width: 75px !important;
    min-height: 75px !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    box-shadow: none !important;
  }

  /* Extra small mobile color glows */
  .destination-hotspot[data-route="/library"],
  .destination-hotspot[data-destination="library"] {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.8))
            drop-shadow(0 0 12px rgba(59, 130, 246, 0.6))
            drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)) !important;
  }

  .destination-hotspot[data-route="/games-library"],
  .destination-hotspot[data-destination="games-library"] {
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.8))
            drop-shadow(0 0 12px rgba(34, 197, 94, 0.6))
            drop-shadow(0 0 20px rgba(34, 197, 94, 0.4)) !important;
  }

  .destination-hotspot[data-route="/radio"],
  .destination-hotspot[data-destination="radio"] {
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8))
            drop-shadow(0 0 12px rgba(168, 85, 247, 0.6))
            drop-shadow(0 0 20px rgba(168, 85, 247, 0.4)) !important;
  }

  .destination-hotspot[data-route="/merchandise"],
  .destination-hotspot[data-destination="merchandise"] {
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.8))
            drop-shadow(0 0 12px rgba(249, 115, 22, 0.6))
            drop-shadow(0 0 20px rgba(249, 115, 22, 0.4)) !important;
  }

  .destination-hotspot[data-route="/social"],
  .destination-hotspot[data-destination="social"] {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.8))
            drop-shadow(0 0 12px rgba(6, 182, 212, 0.6))
            drop-shadow(0 0 20px rgba(6, 182, 212, 0.4)) !important;
  }

  .destination-hotspot[data-route="/lore-masters"],
  .destination-hotspot[data-destination="lore-masters"] {
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.8))
            drop-shadow(0 0 12px rgba(234, 179, 8, 0.6))
            drop-shadow(0 0 20px rgba(234, 179, 8, 0.4)) !important;
  }

  .destination-hotspot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  /* Match extra small mobile image glows */
  .destination-hotspot[data-route="/library"] img,
  .destination-hotspot[data-destination="library"] img {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.8))
            drop-shadow(0 0 12px rgba(59, 130, 246, 0.6))
            drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)) !important;
  }

  .destination-hotspot[data-route="/games-library"] img,
  .destination-hotspot[data-destination="games-library"] img {
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.8))
            drop-shadow(0 0 12px rgba(34, 197, 94, 0.6))
            drop-shadow(0 0 20px rgba(34, 197, 94, 0.4)) !important;
  }

  .destination-hotspot[data-route="/radio"] img,
  .destination-hotspot[data-destination="radio"] img {
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8))
            drop-shadow(0 0 12px rgba(168, 85, 247, 0.6))
            drop-shadow(0 0 20px rgba(168, 85, 247, 0.4)) !important;
  }

  .destination-hotspot[data-route="/merchandise"] img,
  .destination-hotspot[data-destination="merchandise"] img {
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.8))
            drop-shadow(0 0 12px rgba(249, 115, 22, 0.6))
            drop-shadow(0 0 20px rgba(249, 115, 22, 0.4)) !important;
  }

  .destination-hotspot[data-route="/social"] img,
  .destination-hotspot[data-destination="social"] img {
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.8))
            drop-shadow(0 0 12px rgba(6, 182, 212, 0.6))
            drop-shadow(0 0 20px rgba(6, 182, 212, 0.4)) !important;
  }

  .destination-hotspot[data-route="/lore-masters"] img,
  .destination-hotspot[data-destination="lore-masters"] img {
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.8))
            drop-shadow(0 0 12px rgba(234, 179, 8, 0.6))
            drop-shadow(0 0 20px rgba(234, 179, 8, 0.4)) !important;
  }

  .welcome-header {
    margin-bottom: 20px;
  }

  .welcome-header h1 {
    font-size: 2rem;
  }

  .welcome-header p {
    font-size: 1rem;
  }
}

/* Loading State */
.castle-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
}

