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

html, body {
  height: 100%;
  background: #0b0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

#game-wrap {
  position: relative;
  width: min(96vw, calc(96vh * 16 / 9));
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
  background: #87ceeb;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: radial-gradient(ellipse at 50% 30%, rgba(30, 60, 140, 0.88), rgba(8, 10, 30, 0.96));
  color: #fff;
  text-align: center;
  z-index: 10;
  transition: opacity 0.5s ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffe259 0%, #ffa751 55%, #e8483a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(120, 30, 10, 0.9)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}

.subtitle {
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #9fc3ff;
}

#start-btn {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 44px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #4cd964, #2aa84a);
  box-shadow: 0 6px 0 #1d7a35, 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s, box-shadow 0.1s;
}

#start-btn:hover { transform: translateY(-2px); }
#start-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #1d7a35; }

.controls {
  font-size: clamp(11px, 1.3vw, 14px);
  color: #8d9cc4;
  line-height: 2;
}
