* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

body {
  background-color: #e3f2fd;
  background-image: radial-gradient(#bbdefb 15%, transparent 16%), radial-gradient(#bbdefb 15%, transparent 16%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#game-container {
  width: 100%;
  max-width: 400px;
  height: 650px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 4px solid #fff;
}

/* STARTSEITE DESIGN */
#start-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 20;
}

.start-instruction {
  margin: 30px 0;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.5;
}

#start-btn {
  background: #a30052;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: transform 0.1s, background 0.2s;
}

#start-btn:active {
  transform: scale(0.95);
}

/* HAUPTSPIEL DESIGN */
#game-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-title {
  color: #ff6b81;
  font-size: 2.2rem;
  margin-top: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#game-screen {
  width: 100%;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* In-Game Textmeldung Overlay */
#message-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 25px;
  border-radius: 15px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #ff6b81;
  text-align: center;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Items */
#top-item-container {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

#top-item, #bottom-item {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#bottom-item-container {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* UI Elements */
#ui-overlay {
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 5;
}

#level-display {
  font-weight: bold;
  color: #555;
  font-size: 1.1rem;
}

button#next-btn {
  background: #a30052;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.hidden {
  display: none !important;
}