/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fdf6e3; /* sanfter Papierfarbton */
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  background: #fdf6e3; /* sanfter Papierfarbton */
}

#game-container {
  position: relative;
  border: 2px solid #333;
  width: 1024px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#game-canvas {
  width: 100vw;
  max-width: 1024px;
  height: auto;
  display: block;
  background: #111;
  box-shadow: 0 0 16px #000a;
  touch-action: none;
}

canvas {
  /* Hintergrundbild für das Spielfeld */
  background: url("../assets/Spielfeld.png") no-repeat center center;
  background-size: cover;
}

#controls-bg {
  width: 1024px;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

#controls-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

#controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Buttons werden später aktiviert */
}

#start-music-btn {
  display: block;
  margin: 24px auto 0 auto;
  padding: 16px 32px;
  font-size: 1.5rem;
  background: #ffe9b3;
  color: #7a5a1e;
  border: 2px solid #e0c48c;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

#start-music-btn:hover {
  background: #fff3d1;
  color: #a67c2d;
}

#blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 246, 227, 0.7); /* leicht getönt, passend zum Papier-Look */
  backdrop-filter: blur(12px);
  z-index: 20;
  pointer-events: auto;
  transition: opacity 0.7s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#blur-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#blur-overlay-text {
  font-size: 2.2rem;
  color: #e0b96a; /* wärmer, gesättigter Papier-Ton */
  background: rgba(253, 246, 227, 0.85);
  padding: 24px 48px;
  border-radius: 18px;
  box-shadow: 0 2px 12px #0002;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  letter-spacing: 0.05em;
  user-select: none;
  text-align: center;
}

@media (max-width: 1024px) {
  #game-container, #game-canvas {
    width: 100vw;
    max-width: 100vw;
  }
}

@media (max-width: 600px) {
  #game-container, #game-canvas {
    width: 100vw;
    max-width: 100vw;
  }
}