:root {
  --ink: #14121f;
  --bg-a: #2b1e4f;
  --bg-b: #0d1830;
}

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

html,
body,
#stage {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  color: #fff;
  background: radial-gradient(120% 120% at 50% 10%, #3a2b6e 0%, #221642 45%, #0b1426 100%);
}

#stage {
  position: relative;
  cursor: default;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
}

canvas:active {
  cursor: crosshair;
}

#hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(28px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: opacity 400ms ease;
}

#hint small {
  display: block;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.4em;
  text-align: center;
  white-space: nowrap;
}

#hint.away {
  opacity: 0;
}

#era {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(176, 242, 255, 0.62);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(92, 224, 255, 0.6);
  pointer-events: none;
}

.contact-link {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}
