* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: #1a0a2e;
  font-family: system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#gameCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
}

#ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

#hud {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 16px;
}

#hud > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

#score, #level, #balls {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

#score { color: #ffd700; }
#balls { color: #ff69b4; }

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: rgba(10, 5, 30, 0.85);
  backdrop-filter: blur(4px);
}

.screen-content {
  text-align: center;
  padding: 40px 50px;
  background: linear-gradient(135deg, #2a1548, #1a0a38);
  border-radius: 20px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  width: 90%;
}

.title-egg {
  font-size: 64px;
  margin-bottom: 10px;
}

.screen-content h1 {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff69b4, #ffd700, #87ceeb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.screen-content .subtitle {
  font-size: 18px;
  color: #c4a0ff;
  margin-bottom: 20px;
}

.screen-content p {
  color: #bbaadd;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.controls-info {
  margin: 20px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.controls-info p {
  margin-bottom: 4px;
}

.controls-info kbd {
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 44px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 105, 180, 0.6);
}

button:active {
  transform: translateY(0);
}

@media (max-width: 500px) {
  .screen-content {
    padding: 30px 24px;
  }
  .screen-content h1 {
    font-size: 32px;
  }
  #hud {
    gap: 10px;
  }
  #hud > div {
    padding: 6px 14px;
  }
  #score, #level, #balls {
    font-size: 18px;
  }
}
