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

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #ece8df;
  font-family: "Segoe UI", system-ui, sans-serif;
}

#dp-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
}

/* ── Overlays ── */
.dp-overlay[hidden] {
  display: none !important;
}

.dp-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: radial-gradient(ellipse at center, rgba(8, 4, 12, 0.92), rgba(0, 0, 0, 0.98));
  padding: 24px;
}

.dp-overlay--dark { background: rgba(0, 0, 0, 0.88); }
.dp-overlay--dead { background: radial-gradient(ellipse at center, rgba(40, 4, 4, 0.95), rgba(0, 0, 0, 0.98)); }
.dp-overlay--win { background: radial-gradient(ellipse at center, rgba(4, 30, 12, 0.95), rgba(0, 0, 0, 0.98)); }

/* ── Menu ── */
.dp-menu-inner {
  text-align: center;
  max-width: 520px;
}

.dp-credit {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

.dp-title {
  font-size: clamp(3rem, 10vw, 5rem);
  letter-spacing: 0.12em;
  color: #e8c547;
  text-shadow: 0 0 40px rgba(232, 197, 71, 0.3);
  margin-bottom: 8px;
}

.dp-tagline {
  color: rgba(236, 232, 223, 0.7);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.dp-features {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.dp-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
}

.dp-feature-icon { font-size: 1.2rem; }

.dp-controls-hint {
  margin-top: 18px;
  font-size: 0.78rem;
  opacity: 0.55;
  line-height: 1.6;
}

.dp-controls-hint kbd {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.74rem;
}

.dp-hub-link {
  margin-top: 14px;
  font-size: 0.85rem;
}

.dp-hub-link a { color: #e8c547; text-decoration: none; }

/* ── Pause / End ── */
.dp-pause-inner,
.dp-end-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dp-pause-inner h2,
.dp-end-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.06em;
}

.dp-end-title--dead { color: #ff5555; }
.dp-end-title--win { color: #55ff88; }

.dp-end-subtitle {
  opacity: 0.75;
  font-size: 1rem;
}

.dp-end-stat {
  font-size: 0.92rem;
  opacity: 0.7;
}

/* ── Buttons ── */
.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #ece8df;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.dp-btn:hover { border-color: rgba(201, 162, 39, 0.6); }

.dp-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #c9a227, #8b6914);
  color: #120f08;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 36px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dp-btn--primary:hover {
  background: linear-gradient(135deg, #e8c547, #a87d1a);
}

/* ── Exit link ── */
.dp-exit-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.dp-exit-link:hover { color: #e8c547; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .dp-features { gap: 8px; }
  .dp-feature { padding: 8px 12px; font-size: 0.84rem; }
  .dp-controls-hint { font-size: 0.7rem; }
}
