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

html, body {
  width: 100%;
  height: 100%;
  background: #0b0e13;
  color: #e8ecf2;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#wrap {
  position: fixed;
  inset: 0;
  display: block;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  background: #10141b;
  image-rendering: optimizeSpeed;
}

/* ---- Overlay (start / pause / game over) ---- */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(20,26,36,.72), rgba(6,8,12,.94));
  backdrop-filter: blur(2px);
  padding: 24px;
  z-index: 10;
}
.overlay.hidden { display: none; }

.panel {
  width: min(760px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: linear-gradient(180deg, #161c26, #10141b);
  border: 1px solid #2a3444;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  text-align: center;
}

.panel h1 {
  font-size: clamp(28px, 6vw, 52px);
  letter-spacing: 4px;
  font-weight: 800;
  color: #ffd447;
  text-shadow: 0 3px 0 #b9860b, 0 0 30px rgba(255,212,71,.25);
}
.panel .sub { margin: 10px 0 20px; color: #9fb0c4; font-size: 15px; }

.cols {
  display: flex;
  gap: 26px;
  text-align: left;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cols > div { min-width: 240px; flex: 1; }
.cols h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7fd7ff;
  margin-bottom: 8px;
  border-bottom: 1px solid #26303f;
  padding-bottom: 6px;
}
.cols ul { list-style: none; }
.cols li { padding: 3px 0; font-size: 13.5px; color: #cdd7e3; }
.cols b { color: #fff; }

#startBtn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd447, #f5a623);
  color: #1a1200;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 17px;
  padding: 14px 34px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(245,166,35,.35);
  transition: transform .08s ease, filter .12s ease;
}
#startBtn:hover { filter: brightness(1.06); }
#startBtn:active { transform: translateY(2px); }
#startBtn:focus-visible { outline: 3px solid #7fd7ff; outline-offset: 3px; }

.panel .hint { margin-top: 14px; font-size: 12px; color: #6c7c90; }

@media (max-width: 560px) {
  .panel { padding: 20px 16px; }
  .cols { gap: 14px; }
}
