/* Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;500;600&family=JetBrains+Mono:wght@300;400&display=swap');

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a0c;
  font-family: 'JetBrains Mono', monospace;
}

#renderCanvas {
  width: 100vw;
  height: 100vh;
  display: block;
  outline: none;
}

/* Loading Screen */
.loading {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #05070a 0%, #0a0c10 50%, #05070a 100%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-text {
  font-family: 'JetBrains Mono', monospace;
  color: #6fd8cf;
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.bar {
  width: 300px;
  height: 2px;
  background: rgba(111, 216, 207, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

#fill {
  width: 0%;
  height: 100%;
  background: #6fd8cf;
  box-shadow: 0 0 20px #6fd8cf;
  transition: width 0.3s ease;
}

/* In-Game HUD */
.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hud.hidden {
  opacity: 0;
}

.hud-top {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
}

#world-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(232, 228, 223, 0.75);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.hud-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.controls {
  font-size: 0.65rem;
  color: rgba(180, 170, 160, 0.5);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Interaction Prompt */
.interact-prompt {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(111, 216, 207, 0.4);
  padding: 14px 28px;
  border-radius: 4px;
  z-index: 60;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.interact-prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

.interact-prompt span {
  color: #6fd8cf;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .loading-text {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
  }
  
  .bar {
    width: 200px;
  }
  
  #world-title {
    font-size: 1rem;
  }
}