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

html, body {
  height: 100%;
  overflow: hidden;
  background: #0b0e1a;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#c {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* keep the canvas inside the visible viewport on mobile */
  touch-action: none;
  cursor: pointer;
}

#title {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  color: #eaf0ff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(8, 10, 20, 0.62);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

#title.hidden { opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; }

#title h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 0 24px rgba(120, 160, 255, 0.55);
}

#title .sub {
  font-size: 15px;
  line-height: 1.7;
  color: #9fb0d8;
}

#title .cta {
  margin-top: 14px;
  font-size: 16px;
  color: #7fe8d4;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

#share {
  position: fixed;
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid rgba(160, 175, 215, 0.5);
  border-radius: 8px;
  background: rgba(11, 14, 26, 0.8);
  color: #eaf0ff;
  font: 700 14px ui-monospace, Menlo, Consolas, monospace;
  cursor: pointer;
}

#share.hidden { display: none; }
