/* Styles moved from index.html - title / responsive / canvas / death / game title glow */

/* Responsive title and small-screen tweaks */
@media (max-width: 768px) {
  #title-screen { padding: 15px; }
  #title-content { padding: 0 10px; }
  #title-image { width: 90vw; max-width: 400px; height: auto; aspect-ratio: 4/1; }
  #title-content h2 { font-size: 20px; margin-bottom: 15px; }
  #title-content > div > div { grid-template-columns: 1fr; gap: 15px; }
  #title-content > div > div > div { margin-bottom: 10px; }
  #title-content > div > div > div > div { width: 48px; height: 48px; }
  #start-button { width: 80vw; max-width: 300px; height: auto; aspect-ratio: 2/1; }
  #title-content > div:last-child { margin-bottom: 20px; }
  .interaction-prompt { font-size: 14px; padding: 8px 12px; }
  .interaction-prompt kbd { padding: 1px 4px; font-size: 12px; }
}

@media (max-width: 480px) {
  #title-screen { padding: 10px; }
  #title-image { width: 95vw; max-width: 350px; }
  #title-content h2 { font-size: 18px; }
  #title-content > div > div { gap: 10px; }
  #title-content > div > div > div > div { width: 42px; height: 42px; }
  #start-button { width: 85vw; max-width: 250px; }
}

/* Prevent horizontal overflow */
body { overflow-x: hidden; }

/* Ensure canvas is responsive */
.canvas-wrap {
  position: relative;
  width: 100%;
  display: block;
  max-width: 1280px;
  margin: 0 auto;
}
.canvas-wrap #game {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Game title glow (moved from inline <style>) */
.game-title {
  font-size: 32px;
  font-weight: 800;
  color: #00e5ff;
  text-shadow: 
    0 0 10px rgba(0, 229, 255, 0.8),
    0 0 20px rgba(0, 229, 255, 0.6),
    0 0 30px rgba(0, 229, 255, 0.4),
    0 0 40px rgba(0, 229, 255, 0.2);
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(45deg, #00e5ff, #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: squishdrift-glow 2s ease-in-out infinite alternate;
}

@keyframes squishdrift-glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.6)) brightness(1);
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 1)) brightness(1.2);
  }
}