/* Enjin Engine - HTML5 Export Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}

/* Preloader */
#preloader {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000000;
  z-index: 100;
}

#splash {
  max-width: 300px;
  max-height: 200px;
  margin-bottom: 30px;
}

/* TEGE loader: teal wordmark with a breathing glow, pill bar with a
   shimmer sweep, and a little cube that rides the fill tip */
#tege-wordmark {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 14px;
  margin-left: 14px; /* balance the trailing letter-spacing */
  margin-bottom: 26px;
  color: #35d5cf;
  text-shadow: 0 0 18px rgba(53,213,207,0.55);
  animation: tegeBreathe 2.4s ease-in-out infinite;
}

@keyframes tegeBreathe {
  0%, 100% { text-shadow: 0 0 10px rgba(53,213,207,0.35); }
  50%      { text-shadow: 0 0 26px rgba(53,213,207,0.75); }
}

#progress-container {
  position: relative;
  width: 300px;
  height: 14px;
  background: rgba(53,213,207,0.12);
  border: 1px solid rgba(53,213,207,0.35);
  border-radius: 7px;
  margin: 10px 0;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #157a80, #35d5cf, #8ff5ef);
  background-size: 200% 100%;
  border-radius: 7px;
  transition: width 0.25s ease;
  animation: tegeShimmer 1.8s linear infinite;
}

@keyframes tegeShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

#tege-cube {
  position: absolute;
  top: -9px;
  left: 0%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #8ff5ef;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(143,245,239,0.8);
  transition: left 0.25s ease;
  animation: tegeHop 0.6s ease-in-out infinite;
}

@keyframes tegeHop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(12deg); }
}

#progress-text {
  color: rgba(143,245,239,0.75);
  font-size: 14px;
  margin-top: 12px;
  letter-spacing: 1px;
}

#click-to-play {
  color: #eafffe;
  font-size: 22px;
  cursor: pointer;
  padding: 14px 44px;
  border: 2px solid rgba(53,213,207,0.6);
  border-radius: 28px;
  background: rgba(53,213,207,0.12);
  box-shadow: 0 0 22px rgba(53,213,207,0.25);
  transition: all 0.2s ease;
  user-select: none;
  animation: tegeBreathe 2.4s ease-in-out infinite;
}

#click-to-play:hover {
  background: rgba(53,213,207,0.28);
  border-color: rgba(143,245,239,0.9);
  transform: scale(1.04);
}

/* Fullscreen button */
#fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  z-index: 50;
}

#fullscreen-btn:hover {
  opacity: 0.9;
}

/* Fullscreen mode */
#game-container:fullscreen #game-canvas,
#game-container:-webkit-full-screen #game-canvas {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}
