body {
  margin: 0;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  overscroll-behavior: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow-y: hidden;
}

canvas {
  display: block;
  overscroll-behavior: none;
  width: 100vw;
  height: 100vh;
  overflow-y: hidden;
}

#info {
  position: absolute;
  top: 0px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  z-index: 1; /* TODO Solve this in HTML */
}

a,
button,
input,
select {
  pointer-events: auto;
}

.dg.ac {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 2 !important; /* TODO Solve this in HTML */
}

#overlay {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

#overlay button {
  background: #ffffff;
  border: 0;
  color: #000000;
  padding: 16px 20px;
  text-transform: uppercase;
  cursor: pointer;
}

#notSupported {
  width: 50%;
  margin: auto;
  background-color: #f00;
  margin-top: 20px;
  padding: 10px;
}

#tooltip {
  position: fixed;
  left: 0;
  top: 0;
  min-width: 100px;
  text-align: center;
  padding: 5px 12px;
  font-family: monospace;
  background: #ffffff;
  display: none;
  opacity: 0;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s linear;
  border-radius: 3px;
}

#joystick-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: 125px;
  height: 125px;
  position: fixed;
  bottom: 25px;
  right: 25px;
  text-align: center;
  border-radius: 100%;
  display: flex; /* [1] */
  justify-content: center; /* [2] */
  align-items: center;
  visibility: hidden;
  opacity: 1;
}

#joystick {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 100%;
  cursor: pointer;
  height: 45%;
  user-select: none;
  width: 45%;
  margin: 0 auto;
  visibility: hidden;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
}

#space-button {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 120px;
  height: 44px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  visibility: visible;
  transition: all 0.15s ease;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  outline: none;
}

#space-button:active {
  transform: translateY(2px);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

#space-button:hover {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 1);
}

/* Responsive sizing for space button */
@media (max-width: 480px) {
  #space-button {
    width: 110px;
    height: 50px;
    font-size: 12px;
    border-radius: 20px;
    bottom: 20px;
    left: 25px;
  }
  
  #joystick-wrapper {
    width: 100px;
    height: 100px;
    bottom: 20px;
    right: 60px;
  }
}

@media (max-width: 360px) {
  #space-button {
    width: 100px;
    height: 50px;
    font-size: 11px;
    border-radius: 20px;
    bottom: 15px;
    left: 25px;
  }
}

.preload-overlay {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('./src/jsm/space.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
}

/* Spaceman overlay styling with 3D effects */
.spaceman-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1002;
  pointer-events: none;
  
  /* 3D Transform and perspective */
  transform: perspective(1000px) rotateX(5deg) rotateY(-2deg) translateZ(20px);
  transform-style: preserve-3d;
  
  /* 3D Shadow effects */
  filter: 
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6))
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4))
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
  
  /* Glow effect for space atmosphere */
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.1),
    0 0 60px rgba(135, 206, 250, 0.15),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  
  /* Subtle animation for floating effect */
  animation: spaceman-float 6s ease-in-out infinite;
  
  /* Enhanced contrast and depth */
  filter: 
    contrast(1.1) 
    brightness(1.05)
    saturate(1.1)
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6))
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4))
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
}

/* Floating animation for 3D spaceman */
@keyframes spaceman-float {
  0%, 100% {
    transform: perspective(1000px) translateZ(20px) translateY(0px);
  }
  50% {
    transform: perspective(1000px) translateZ(20px) translateY(-8px);
  }
}

/* Mobile optimizations for spaceman overlay - iOS Safari has issues with complex filters */
@media (max-width: 768px) {
  .spaceman-overlay {
    /* Simplify transforms and filters for mobile/iOS */
    transform: translateY(0px);
    filter: none;
    box-shadow: none;
    animation: spaceman-float-simple 6s ease-in-out infinite;
  }
  
  @keyframes spaceman-float-simple {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-8px);
    }
  }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
  .spaceman-overlay {
    /* Remove complex filters that iOS Safari struggles with */
    filter: none !important;
    /* Ensure visibility */
    opacity: 1 !important;
    visibility: visible !important;
    /* Simplify transform */
    transform: translateY(0px) !important;
    animation: spaceman-float-simple 6s ease-in-out infinite !important;
  }
}

/* Front title - in front of spaceman with low opacity */
#name-display-front {
  margin: 0 auto;
  font-size: 150px;
  font-weight: 900;
  font-family: 'Audiowide', 'Orbitron', 'Roboto', sans-serif;
  text-align: center;
  z-index: 1003;
  pointer-events: none;
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  line-height: 1.0;
  opacity: 0.15;
  
  /* Same liquid glass 3D effect as original */
  color: transparent;
  background:
    radial-gradient(200% 120% at 50% 55%,
      rgba(255,165,0,0.95) 0%,
      rgba(255,200,50,0.8) 28%,
      rgba(255,165,0,0.6) 50%,
      rgba(200,120,0,0.4) 70%,
      rgba(150,90,0,0.3) 100%
    ),
    linear-gradient(180deg,
      rgba(255,165,0,0.95) 0%,
      rgba(255,180,30,0.8) 15%,
      rgba(255,165,0,0.6) 45%,
      rgba(255,190,40,0.85) 52%,
      rgba(255,165,0,0.5) 72%,
      rgba(200,120,0,0.3) 100%
    ),
    conic-gradient(from 180deg at 50% 50%,
      rgba(255,165,0,0) 0 15%,
      rgba(255,165,0,0.6) 22%,
      rgba(255,165,0,0) 30% 100%
    );
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-position: center center, center center, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255, 165, 0, 0.5);
  text-shadow:
    0 1px 0 rgba(255,165,0,0.8),
    0 2px 0 rgba(255,180,30,0.6),
    0 3px 0 rgba(255,165,0,0.5),
    0 4px 0 rgba(200,120,0,0.4),
    0 5px 2px rgba(0,0,0,0.12),
    0 8px 6px rgba(0,0,0,0.16),
    0 14px 12px rgba(0,0,0,0.18),
    0 24px 22px rgba(0,0,0,0.18),
    0 36px 30px rgba(0,0,0,0.16),
    0 48px 40px rgba(0,0,0,0.12),
    0 0 22px rgba(255,165,0,0.4),
    0 0 42px rgba(255,165,0,0.3);
  filter:
    drop-shadow(0 0 12px rgba(255,165,0,0.3))
    drop-shadow(0 0 28px rgba(255,165,0,0.2));
  animation: liquid-shift 6s ease-in-out infinite;
}

/* Responsive font sizes and positioning for front title */
@media (max-width: 1200px) {
  #name-display-front {
    font-size: 110px;
    top: 18%;
  }
}

@media (max-width: 992px) {
  #name-display-front {
    font-size: 90px;
    top: 20%;
  }
}

@media (max-width: 768px) {
  #name-display-front {
    font-size: 75px;
    top: 21%;
  }
}

@media (max-width: 576px) {
  #name-display-front {
    font-size: 60px;
    top: 22%;
  }
}

@media (max-width: 480px) {
  #name-display-front {
    font-size: 50px;
    top: 30%;
  }
}

@media (max-width: 360px) {
  #name-display-front {
    font-size: 32px;
    top: 24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #name-display-front {
    animation: none;
  }
}

/* Animated stars overlay */
.preload-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: twinkle 4s ease-in-out infinite alternate;
  z-index: 1;
}

.preload-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 50px 50px, #fff, transparent),
    radial-gradient(1px 1px at 100px 100px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 150px 50px, #eee, transparent),
    radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 250px 50px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: twinkle 3s ease-in-out infinite alternate-reverse;
  z-index: 1;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

/* Additional star layers for more realistic effect */
.star-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 25px 25px, #fff, transparent),
    radial-gradient(1px 1px at 75px 75px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 125px 25px, #eee, transparent),
    radial-gradient(1px 1px at 175px 75px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 225px 25px, #ddd, transparent),
    radial-gradient(1px 1px at 275px 75px, rgba(255,255,255,0.8), transparent);
  background-repeat: repeat;
  background-size: 300px 100px;
  animation: twinkle 5s ease-in-out infinite alternate;
  z-index: 1;
}

.star-field:nth-child(2) {
  animation-delay: 1s;
  animation-duration: 3s;
}

.star-field:nth-child(3) {
  animation-delay: 2s;
  animation-duration: 4s;
}

.postload {
  visibility: hidden;
  display: none;
  opacity: 0;
  transition: none;
}

.postload.show-popup {
  visibility: visible;
  display: block;
  animation: popup-fade-in 0.8s ease-out forwards;
}

@keyframes popup-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.8) translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(-50%, 0);
  }
}

/* Override for elements that need different transforms */
#name-display.show-popup {
  animation: popup-fade-in-name 0.8s ease-out forwards;
}

#name-display-front.show-popup {
  animation: popup-fade-in-name-front 0.8s ease-out forwards;
}

#start-button.show-popup {
  animation: popup-fade-in-button 0.8s ease-out forwards;
}

@keyframes popup-fade-in-name {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

@keyframes popup-fade-in-name-front {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8) translateY(20px);
  }
  100% {
    opacity: 0.15;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

@keyframes popup-fade-in-button {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

.bottom-webgl-text-div {
  position: absolute;
  bottom: 15vh;
  text-align: center;
}

.bottom-webgl-text {
  padding: 0px 0px 0px 0px;
}

.start-page-text {
  padding-right: 30px;
  padding-left: 30px;
  padding-bottom: 20px;
  font-size: calc(24px + (20 - 18) * (100vw - 400px) / (800 - 400));
}

.floyd-text {
  padding-right: 30px;
  padding-left: 30px;
  padding-bottom: 20px;
  font-size: calc(32px + (24 - 18) * (100vw - 400px) / (800 - 400));
}

.start-page-content-div {
  display: inline-block;
  text-align: center;
  justify-content: center;
}

#start-button {
  margin: 0 auto;
  font-size: 25px;
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 165, 0, 0.4);
  color: #FFA500;
  border-radius: 12px;
  padding: 15px 30px 15px 30px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: none;
  outline: none;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1004;
  pointer-events: auto;
  box-shadow: 
    0 0 3px rgba(255, 165, 0, 0.15);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 2px rgba(255, 165, 0, 0.3);
  font-family: 'Orbitron', 'Audiowide', 'Roboto', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  overflow: hidden;
}

#start-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.35), transparent);
  background-size: 100px 100px;
  animation: star-drift 8s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes star-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(360deg);
  }
}

#start-button:hover {
  cursor: pointer;
  border-color: rgba(255, 165, 0, 0.6);
  box-shadow: 
    0 0 5px rgba(255, 165, 0, 0.2);
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.7),
    0 0 3px rgba(255, 165, 0, 0.4);
  transform: translateX(-50%) translateY(-2px);
  background: transparent;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#start-button:active {
  transform: translateX(-50%) translateY(0px);
  box-shadow: 
    0 0 3px rgba(255, 165, 0, 0.2);
  background: transparent;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Music Toggle Button */
#music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1005;
  padding: 12px 16px;
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 165, 0, 0.4);
  color: #FFA500;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 3px rgba(255, 165, 0, 0.15);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 2px rgba(255, 165, 0, 0.3);
  font-family: 'Orbitron', 'Audiowide', 'Roboto', sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#music-toggle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.35), transparent);
  background-size: 100px 100px;
  animation: star-drift 8s linear infinite;
  pointer-events: none;
  opacity: 0.4;
}

#music-toggle:hover {
  border-color: rgba(255, 165, 0, 0.6);
  box-shadow: 
    0 0 5px rgba(255, 165, 0, 0.2);
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.7),
    0 0 3px rgba(255, 165, 0, 0.4);
  transform: translateY(-2px);
  background: transparent;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#music-toggle:active {
  transform: translateY(0px);
  box-shadow: 
    0 0 3px rgba(255, 165, 0, 0.2);
  background: transparent;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Responsive sizing for music toggle button */
@media (max-width: 768px) {
  #music-toggle {
    bottom: 15px;
    right: 15px;
    padding: 10px 14px;
    font-size: 20px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  #music-toggle {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 18px;
    min-width: 40px;
    min-height: 40px;
  }
}

#name-display {
  margin: 0 auto;
  font-size: 150px;
  font-weight: 900;
  font-family: 'Audiowide', 'Orbitron', 'Roboto', sans-serif;
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  /* letter-spacing: 8px; */
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  line-height: 1.0;
  /* Liquid glass 3D effect */
  color: transparent;
  background:
    radial-gradient(200% 120% at 50% 55%,
      rgba(255,165,0,0.95) 0%,
      rgba(255,200,50,0.8) 28%,
      rgba(255,165,0,0.6) 50%,
      rgba(200,120,0,0.4) 70%,
      rgba(150,90,0,0.3) 100%
    ),
    linear-gradient(180deg,
      rgba(255,165,0,0.95) 0%,
      rgba(255,180,30,0.8) 15%,
      rgba(255,165,0,0.6) 45%,
      rgba(255,190,40,0.85) 52%,
      rgba(255,165,0,0.5) 72%,
      rgba(200,120,0,0.3) 100%
    ),
    conic-gradient(from 180deg at 50% 50%,
      rgba(255,165,0,0) 0 15%,
      rgba(255,165,0,0.6) 22%,
      rgba(255,165,0,0) 30% 100%
    );
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-position: center center, center center, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255, 165, 0, 0.5);
  text-shadow:
    0 1px 0 rgba(255,165,0,0.8),
    0 2px 0 rgba(255,180,30,0.6),
    0 3px 0 rgba(255,165,0,0.5),
    0 4px 0 rgba(200,120,0,0.4),
    0 5px 2px rgba(0,0,0,0.12),
    0 8px 6px rgba(0,0,0,0.16),
    0 14px 12px rgba(0,0,0,0.18),
    0 24px 22px rgba(0,0,0,0.18),
    0 36px 30px rgba(0,0,0,0.16),
    0 48px 40px rgba(0,0,0,0.12),
    0 0 22px rgba(255,165,0,0.4),
    0 0 42px rgba(255,165,0,0.3);
  filter:
    drop-shadow(0 0 12px rgba(255,165,0,0.3))
    drop-shadow(0 0 28px rgba(255,165,0,0.2));
  animation: liquid-shift 6s ease-in-out infinite;
}

/* Liquid glass animation */
@keyframes liquid-shift {
  0% {
    background-position: center center, center center, 0% 50%;
    filter: drop-shadow(0 0 12px rgba(255,165,0,0.3)) drop-shadow(0 0 28px rgba(255,165,0,0.2));
  }
  50% {
    background-position: center center, center center, 100% 50%;
    filter: drop-shadow(0 0 18px rgba(255,165,0,0.4)) drop-shadow(0 0 36px rgba(255,165,0,0.3));
  }
  100% {
    background-position: center center, center center, 0% 50%;
    filter: drop-shadow(0 0 12px rgba(255,165,0,0.3)) drop-shadow(0 0 28px rgba(255,165,0,0.2));
  }
}

/* Responsive liquid-shift animations for different screen sizes */
@media (max-width: 1200px) {
  @keyframes liquid-shift {
    0%, 100% {
      background-position: center center, center center, 0% 50%;
      filter: drop-shadow(0 0 9px rgba(255,165,0,0.3)) drop-shadow(0 0 20px rgba(255,165,0,0.2));
    }
    50% {
      background-position: center center, center center, 100% 50%;
      filter: drop-shadow(0 0 13px rgba(255,165,0,0.4)) drop-shadow(0 0 26px rgba(255,165,0,0.3));
    }
  }
}

@media (max-width: 992px) {
  @keyframes liquid-shift {
    0%, 100% {
      background-position: center center, center center, 0% 50%;
      filter: drop-shadow(0 0 7px rgba(255,165,0,0.3)) drop-shadow(0 0 16px rgba(255,165,0,0.2));
    }
    50% {
      background-position: center center, center center, 100% 50%;
      filter: drop-shadow(0 0 10px rgba(255,165,0,0.4)) drop-shadow(0 0 20px rgba(255,165,0,0.3));
    }
  }
}

@media (max-width: 768px) {
  @keyframes liquid-shift {
    0%, 100% {
      background-position: center center, center center, 0% 50%;
      filter: drop-shadow(0 0 6px rgba(255,165,0,0.3)) drop-shadow(0 0 12px rgba(255,165,0,0.2));
    }
    50% {
      background-position: center center, center center, 100% 50%;
      filter: drop-shadow(0 0 8px rgba(255,165,0,0.4)) drop-shadow(0 0 16px rgba(255,165,0,0.3));
    }
  }
}

@media (max-width: 576px) {
  @keyframes liquid-shift {
    0%, 100% {
      background-position: center center, center center, 0% 50%;
      filter: drop-shadow(0 0 5px rgba(255,165,0,0.3)) drop-shadow(0 0 10px rgba(255,165,0,0.2));
    }
    50% {
      background-position: center center, center center, 100% 50%;
      filter: drop-shadow(0 0 7px rgba(255,165,0,0.4)) drop-shadow(0 0 13px rgba(255,165,0,0.3));
    }
  }
}

@media (max-width: 480px) {
  @keyframes liquid-shift {
    0%, 100% {
      background-position: center center, center center, 0% 50%;
      filter: drop-shadow(0 0 4px rgba(255,165,0,0.3)) drop-shadow(0 0 8px rgba(255,165,0,0.2));
    }
    50% {
      background-position: center center, center center, 100% 50%;
      filter: drop-shadow(0 0 6px rgba(255,165,0,0.4)) drop-shadow(0 0 11px rgba(255,165,0,0.3));
    }
  }
}

@media (max-width: 360px) {
  @keyframes liquid-shift {
    0%, 100% {
      background-position: center center, center center, 0% 50%;
      filter: drop-shadow(0 0 3px rgba(255,165,0,0.3)) drop-shadow(0 0 6px rgba(255,165,0,0.2));
    }
    50% {
      background-position: center center, center center, 100% 50%;
      filter: drop-shadow(0 0 4px rgba(255,165,0,0.4)) drop-shadow(0 0 8px rgba(255,165,0,0.3));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  #name-display {
    animation: none;
  }
}

/* Responsive font sizes and positioning for name display */
@media (max-width: 1200px) {
  #name-display, #name-display1 {
    font-size: 110px;
    top: 18%;
    text-shadow:
      0 1px 0 rgba(255,165,0,0.8),
      0 2px 0 rgba(255,180,30,0.6),
      0 3px 0 rgba(255,165,0,0.5),
      0 4px 0 rgba(200,120,0,0.4),
      0 4px 2px rgba(0,0,0,0.12),
      0 6px 5px rgba(0,0,0,0.16),
      0 10px 9px rgba(0,0,0,0.18),
      0 18px 16px rgba(0,0,0,0.18),
      0 26px 22px rgba(0,0,0,0.16),
      0 35px 30px rgba(0,0,0,0.12),
      0 0 16px rgba(255,165,0,0.4),
      0 0 30px rgba(255,165,0,0.3);
    filter:
      drop-shadow(0 0 9px rgba(255,165,0,0.3))
      drop-shadow(0 0 20px rgba(255,165,0,0.2));
  }
}

@media (max-width: 992px) {
  #name-display, #name-display1 {
    font-size: 90px;
    top: 20%;
    text-shadow:
      0 1px 0 rgba(255,165,0,0.8),
      0 2px 0 rgba(255,180,30,0.6),
      0 2px 0 rgba(255,165,0,0.5),
      0 3px 0 rgba(200,120,0,0.4),
      0 3px 1px rgba(0,0,0,0.12),
      0 5px 4px rgba(0,0,0,0.16),
      0 8px 7px rgba(0,0,0,0.18),
      0 14px 13px rgba(0,0,0,0.18),
      0 20px 18px rgba(0,0,0,0.16),
      0 28px 24px rgba(0,0,0,0.12),
      0 0 12px rgba(255,165,0,0.4),
      0 0 24px rgba(255,165,0,0.3);
    filter:
      drop-shadow(0 0 7px rgba(255,165,0,0.3))
      drop-shadow(0 0 16px rgba(255,165,0,0.2));
  }
}

@media (max-width: 768px) {
  #name-display, #name-display1 {
    font-size: 75px;
    top: 21%;
    text-shadow:
      0 1px 0 rgba(255,165,0,0.8),
      0 1px 0 rgba(255,180,30,0.6),
      0 2px 0 rgba(255,165,0,0.5),
      0 2px 0 rgba(200,120,0,0.4),
      0 2px 1px rgba(0,0,0,0.12),
      0 4px 3px rgba(0,0,0,0.16),
      0 6px 5px rgba(0,0,0,0.18),
      0 10px 9px rgba(0,0,0,0.18),
      0 15px 13px rgba(0,0,0,0.16),
      0 20px 18px rgba(0,0,0,0.12),
      0 0 10px rgba(255,165,0,0.4),
      0 0 18px rgba(255,165,0,0.3);
    filter:
      drop-shadow(0 0 6px rgba(255,165,0,0.3))
      drop-shadow(0 0 12px rgba(255,165,0,0.2));
  }
}

@media (max-width: 576px) {
  #name-display, #name-display1 {
    font-size: 60px;
    top: 22%;
    text-shadow:
      0 1px 0 rgba(255,165,0,0.8),
      0 1px 0 rgba(255,180,30,0.6),
      0 1px 0 rgba(255,165,0,0.5),
      0 2px 0 rgba(200,120,0,0.4),
      0 2px 1px rgba(0,0,0,0.12),
      0 3px 2px rgba(0,0,0,0.16),
      0 5px 4px rgba(0,0,0,0.18),
      0 8px 7px rgba(0,0,0,0.18),
      0 12px 10px rgba(0,0,0,0.16),
      0 16px 14px rgba(0,0,0,0.12),
      0 0 8px rgba(255,165,0,0.4),
      0 0 14px rgba(255,165,0,0.3);
    filter:
      drop-shadow(0 0 5px rgba(255,165,0,0.3))
      drop-shadow(0 0 10px rgba(255,165,0,0.2));
  }
}

@media (max-width: 480px) {
  #name-display, #name-display1 {
    font-size: 50px;
    top: 30%;
    text-shadow:
      0 1px 0 rgba(255,165,0,0.8),
      0 1px 0 rgba(255,180,30,0.6),
      0 1px 0 rgba(255,165,0,0.5),
      0 1px 0 rgba(200,120,0,0.4),
      0 1px 1px rgba(0,0,0,0.12),
      0 2px 2px rgba(0,0,0,0.16),
      0 4px 3px rgba(0,0,0,0.18),
      0 6px 5px rgba(0,0,0,0.18),
      0 9px 8px rgba(0,0,0,0.16),
      0 12px 11px rgba(0,0,0,0.12),
      0 0 6px rgba(255,165,0,0.4),
      0 0 11px rgba(255,165,0,0.3);
    filter:
      drop-shadow(0 0 4px rgba(255,165,0,0.3))
      drop-shadow(0 0 8px rgba(255,165,0,0.2));
  }
}

@media (max-width: 360px) {
  #name-display, #name-display1 {
    font-size: 32px;
    top: 24%;
    text-shadow:
      0 1px 0 rgba(255,165,0,0.8),
      0 1px 0 rgba(255,180,30,0.6),
      0 1px 0 rgba(255,165,0,0.5),
      0 1px 0 rgba(200,120,0,0.4),
      0 1px 1px rgba(0,0,0,0.12),
      0 2px 2px rgba(0,0,0,0.16),
      0 3px 2px rgba(0,0,0,0.18),
      0 4px 3px rgba(0,0,0,0.18),
      0 6px 5px rgba(0,0,0,0.16),
      0 8px 7px rgba(0,0,0,0.12),
      0 0 4px rgba(255,165,0,0.4),
      0 0 7px rgba(255,165,0,0.3);
    filter:
      drop-shadow(0 0 3px rgba(255,165,0,0.3))
      drop-shadow(0 0 6px rgba(255,165,0,0.2));
  }
}

/* Responsive font sizes for Enter Orbit button */
@media (max-width: 1200px) {
  #start-button {
    font-size: 22px;
    padding: 13px 26px 13px 26px;
  }
}

@media (max-width: 992px) {
  #start-button {
    font-size: 22px;
    padding: 13px 26px 13px 26px;
  }
}

@media (max-width: 768px) {
  #start-button {
    font-size: 22px;
    padding: 13px 26px 13px 26px;
  }
}

@media (max-width: 576px) {
  #start-button {
    font-size: 20px;
    padding: 12px 24px 12px 24px;
  }
}

@media (max-width: 480px) {
  #start-button {
    font-size: 18px;
    padding: 11px 22px 11px 22px;
  }
}

@media (max-width: 360px) {
  #start-button {
    font-size: 16px;
    padding: 10px 20px 10px 20px;
  }
}

@keyframes cosmic-glow {
  0% {
    text-shadow: 
      0 0 10px #fffc00,
      0 0 20px #fffc00,
      0 0 30px #fffc00,
      0 0 40px #ff6b35,
      0 0 50px #ff6b35,
      0 0 60px #ff6b35;
  }
  100% {
    text-shadow: 
      0 0 20px #fffc00,
      0 0 30px #fffc00,
      0 0 40px #fffc00,
      0 0 50px #ff6b35,
      0 0 60px #ff6b35,
      0 0 70px #ff6b35,
      0 0 80px #00d4ff;
  }
}

@keyframes cosmic-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes cosmic-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes star-twinkle {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}

/*
.interactive-site-text {
  margin: 50px 50px 50px 50px;
}

.joystick-directions-text {
  padding: 0px 30px 0px 30px;
}

.junior-engineer {
  margin-bottom: 50px;
}*/

.yellow-text {
  color: #fffc00;
}

#static-site-link {
  text-decoration: underline;
  color: white;
}

.trinity-rings-spinner,
.trinity-rings-spinner * {
  box-sizing: border-box;
}

.trinity-rings-spinner {
  height: 350px;
  width: 350px;
  padding: 3px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 1005; /* Higher than spaceman overlay (1002) */
}
.trinity-rings-spinner .circle {
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 7px solid #FFA500;
}

.trinity-rings-spinner .circle:nth-child(1) {
  height: 245px;
  width: 245px;
  animation: trinity-rings-spinner-circle1-animation 1.5s infinite linear;
  border-width: 7px;
  opacity: 0.9;
}
.trinity-rings-spinner .circle:nth-child(2) {
  height: calc(245px * 0.65);
  width: calc(245px * 0.65);
  animation: trinity-rings-spinner-circle2-animation 1.5s infinite linear;
  border-width: 6px;
  opacity: 0.7;
}
.trinity-rings-spinner .circle:nth-child(3) {
  height: calc(245px * 0.45);
  width: calc(245px * 0.45);
  animation: trinity-rings-spinner-circle3-animation 1.5s infinite linear;
  border-width: 4px;
  opacity: 0.5;
}

@keyframes trinity-rings-spinner-circle1-animation {
  0% {
    transform: rotateZ(20deg) rotateY(0deg);
  }
  100% {
    transform: rotateZ(100deg) rotateY(360deg);
  }
}
@keyframes trinity-rings-spinner-circle2-animation {
  0% {
    transform: rotateZ(100deg) rotateX(0deg);
  }
  100% {
    transform: rotateZ(0deg) rotateX(360deg);
  }
}
@keyframes trinity-rings-spinner-circle3-animation {
  0% {
    transform: rotateZ(100deg) rotateX(-360deg);
  }
  100% {
    transform: rotateZ(-360deg) rotateX(360deg);
  }
}

.loading-text-div {
  box-sizing: border-box;
  position: absolute;
  font-size: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #FFA500;
  z-index: 1005; /* Higher than spaceman overlay (1002) */
}

#loading-instructions {
  box-sizing: border-box;
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  font-size: 18px;
  font-family: 'Orbitron', 'Audiowide', 'Roboto', sans-serif;
  color: #ffffff;
  text-align: center;
  z-index: 1006;
  min-height: 30px;
  max-width: 90%;
  padding: 0 20px;
  text-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.8),
    0 1px 3px rgba(0, 0, 0, 0.6),
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 255, 255, 0.5),
    0 0 18px rgba(255, 255, 255, 0.3);
  opacity: 0;
  visibility: visible; /* Keep visible even when other preload elements are hidden */
  display: block; /* Ensure it's displayed */
  pointer-events: none; /* Don't interfere with clicks */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  contain: layout style paint;
  transform-style: preserve-3d;
}

#loading-instructions.show {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

#loading-instructions.typing {
  transition: none;
  will-change: auto;
}

#loading-instructions.typing::after {
  content: '|';
  animation: blink-cursor 1s infinite;
  margin-left: 2px;
  color: #ffffff;
}

@keyframes blink-cursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Keyboard key icons styling */
.key-icon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 2px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Arial', sans-serif;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  min-width: 24px;
  text-align: center;
  vertical-align: middle;
}

.arrow-keys {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  vertical-align: middle;
  margin: 0 2px;
}

.arrow-key {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  min-width: 20px;
  text-align: center;
}

/* Info icon styling */
.info-icon {
  display: inline-block;
  background: rgba(100, 150, 255, 0.2);
  border: 1.5px solid rgba(100, 150, 255, 0.5);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: rgba(100, 150, 255, 0.9);
  margin: 0 4px;
  vertical-align: middle;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Cursor icon styling */
.cursor-icon {
  display: inline-block;
  font-size: 18px;
  margin: 0 4px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  line-height: 1;
}

@keyframes blink {
  50% {
    color: transparent;
  }
}
.loader__dot {
  animation: 1s blink infinite;
}
.loader__dot:nth-child(2) {
  animation-delay: 250ms;
}
.loader__dot:nth-child(3) {
  animation-delay: 500ms;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.25s, opacity 0.25s linear;
}

.fade-out {
  animation: fade-out-animation 0.75s 1;
  /* animation-duration: 0.25s; */
  animation-fill-mode: forwards;
}

@keyframes fade-out-animation {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 0;
    display: none;
    visibility: 'hidden';
    cursor: default;
  }
}

/* Info Icon Styles */
.info-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #888888, #666666);
  border-radius: 50%;
  color: white;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(136, 136, 136, 0.4),
    0 0 15px rgba(136, 136, 136, 0.2);
  border: 2px solid rgba(136, 136, 136, 0.3);
}

.info-icon:hover {
  transform: scale(1.1);
  box-shadow: 
    0 4px 16px rgba(136, 136, 136, 0.6),
    0 0 25px rgba(136, 136, 136, 0.3);
  background: linear-gradient(135deg, #AAAAAA, #888888);
}

.info-icon:active {
  transform: scale(0.95);
}

/* Space-themed Modal Styles */
.info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-modal.modal-show {
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: 
    url('./src/jsm/poster.png') center center / cover no-repeat;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid rgba(60, 60, 60, 0.4);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(40, 40, 40, 0.3),
    inset 0 1px 0 rgba(80, 80, 80, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  position: relative;
  z-index: 2;
}

@keyframes modalSlideIn {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #CCCCCC;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  border-radius: 12px;
  width: 44px; /* larger target */
  height: 44px; /* larger target */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(30, 30, 30, 0.4);
  border: 1px solid rgba(80, 80, 80, 0.3);
  text-shadow: 0 0 10px rgba(200, 200, 200, 0.5);
  z-index: 4; /* above header and overlay */
  pointer-events: auto;
}

.modal-close:hover {
  background: rgba(40, 40, 40, 0.6);
  border-color: rgba(100, 100, 100, 0.6);
  color: #FFFFFF;
  transform: scale(1.1);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Expand the effective hit area without changing visuals */
.modal-close::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  border-radius: 14px;
}

.modal-content-space {
  padding: 20px 25px 30px;
  position: relative;
  background: none;
  overflow: hidden;
  z-index: 2;
}

/* Ensure the modal content itself carries the full background */
.modal-content {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.modal-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 150px 80px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 200px 30px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 250px 150px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 300px 60px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 350px 100px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 400px 20px, rgba(255, 255, 255, 0.4), transparent);
  background-repeat: no-repeat;
  background-size: 450px 300px;
  animation: contentStars 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}


@keyframes contentStars {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0px) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-3px) scale(1.1);
  }
}

.modal-title {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  text-align: center;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 255, 255, 0.15);
  font-family: 'Audiowide', 'Orbitron', 'Roboto', sans-serif;
  position: relative;
  z-index: 4;
  padding-top: 40px;
}

@keyframes titleGlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.modal-body {
  color: #FFFFFF;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 4;
}

.modal-text {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.info-section {
  margin: 20px 0;
  padding: 15px;
  background: 
    linear-gradient(135deg, 
      rgba(20, 20, 20, 0.3) 0%, 
      rgba(10, 10, 10, 0.2) 50%, 
      rgba(20, 20, 20, 0.3) 100%
    ),
    radial-gradient(circle at 50% 50%, rgba(30, 30, 30, 0.1) 0%, transparent 70%);
  border-radius: 10px;
  border-left: 4px solid #888888;
  border-top: 1px solid rgba(120, 120, 120, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 
    inset 0 1px 0 rgba(120, 120, 120, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(120, 120, 120, 0.5) 50%, 
    transparent 100%
  );
}

.info-subtitle {
  color: #BBBBBB;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  text-shadow: 
    0 0 8px rgba(187, 187, 187, 0.4),
    0 0 16px rgba(187, 187, 187, 0.2);
  font-family: 'Audiowide', 'Orbitron', 'Roboto', sans-serif;
}

.info-list {
  margin: 10px 0;
  padding-left: 20px;
  color: rgba(221, 221, 221, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-list li {
  margin: 8px 0;
  position: relative;
  padding-left: 5px;
}

.info-list a,
.info-list #static-site-link {
  color: rgba(221, 221, 221, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-list li::before {
  content: "✦";
  color: #CCCCCC;
  font-weight: bold;
  position: absolute;
  left: -20px;
  text-shadow: 
    0 0 5px rgba(204, 204, 204, 0.6),
    0 0 10px rgba(204, 204, 204, 0.3);
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-title {
    font-size: 20px;
  }
  
  .modal-content-space {
    padding: 15px 20px 25px;
  }
  
  .info-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 11px;
  }

  #loading-instructions {
    bottom: 100px;
    font-size: 16px;
    max-width: 95%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  #loading-instructions {
    bottom: 110px;
    font-size: 14px;
    max-width: 98%;
    padding: 0 10px;
  }

  .modal-container {
    width: 98%;
    max-height: 90vh;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-content-space {
    padding: 10px 15px 20px;
  }
}
