:root {
  --bg: #05060a;
  --fg: #e8ecf4;
  --dim: #8b93a7;
  --accent: #9ef0c8;
  --panel: rgba(14, 17, 24, 0.88);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", Tahoma, system-ui, sans-serif;
  cursor: none;
}

@media (pointer: coarse) {
  html, body { cursor: auto; }
}

#cv {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hud {
  position: fixed;
  left: 18px;
  top: 16px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.2px;
  pointer-events: none;
  user-select: none;
}

#hud .small { color: var(--dim); font-size: 12px; }
#hud b { color: var(--fg); font-weight: 600; }

.row { display: flex; align-items: center; gap: 8px; }

.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #5a6172; box-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.dot.on  { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.dot.off { background: #b3555f; }

#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(20,26,36,0.72), rgba(3,4,7,0.94));
  backdrop-filter: blur(3px);
  cursor: default;
  transition: opacity 0.35s ease;
  z-index: 10;
}

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

.card {
  width: min(520px, 88vw);
  padding: 34px 36px 30px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.card h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.lead { margin: 0 0 22px; color: #c9d0de; font-size: 15px; line-height: 1.6; }
.lead b { color: var(--accent); font-weight: 600; }

#start {
  appearance: none;
  border: 0;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #06231a;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 26px rgba(158, 240, 200, 0.28);
}
#start:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(158, 240, 200, 0.36); }
#start:active { transform: translateY(0); }

.hint {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.6;
}
.hint b { color: #c9d0de; }
