*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden; touch-action: none;
  font-family: 'Fredoka One', 'Nunito', sans-serif;
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}
#game-container { position: relative; width: 100%; height: 100%; overflow: hidden; }
#gameCanvas { position: absolute; top: 0; left: 0; display: block; }

.screen {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.85); z-index: 100; padding: 20px;
}
.screen.active { display: flex; }

.game-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: #ff6b6b;
  text-shadow: 2px 4px 0 rgba(0,0,0,0.1);
  margin: 10px 0;
  text-align: center;
}
.game-thumbnail {
  width: 300px; max-width: 90%; border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border: 4px solid #fff;
}
.btn-3d {
  padding: 15px 40px; margin: 10px;
  background: linear-gradient(to bottom, #ff9a44, #fc6076);
  border: none; border-radius: 25px;
  font-size: 1.5rem; color: white;
  cursor: pointer; font-weight: bold; font-family: 'Fredoka One', sans-serif;
  box-shadow: 0 6px 0 #e63946, 0 10px 15px rgba(0,0,0,0.2);
  transition: all 0.1s; text-transform: uppercase;
}
.btn-3d:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #e63946, 0 4px 6px rgba(0,0,0,0.2);
}
#hud {
  position: absolute; top: 0; left: 0; width: 100%; pointer-events: none;
  display: flex; justify-content: space-between; padding: 15px; z-index: 50;
}
.hud-text {
  font-size: 1.5rem; color: #333; font-weight: bold;
  background: rgba(255,255,255,0.7); padding: 5px 15px; border-radius: 20px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}
