*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0d0d0d;
  --fg: #ececec;
  --dim: #8a8a8a;
  --line: #2a2a2a;
  --accent: #ececec;
  --err: #ff7676;
  --ok: #9be39b;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 460px;
  padding: 28px 22px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- cursor-glow (achtergrond licht op) ---------- */
.glow {
  position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,236,236,0.08), rgba(236,236,236,0.03) 42%, transparent 64%);
  opacity: 0; transition: opacity 0.6s ease; will-change: transform;
}

/* ---------- ballonnen (klik) ---------- */
.balloon { position: fixed; z-index: 6; pointer-events: none; will-change: transform, opacity; }
.balloon .body {
  width: 30px; height: 36px;
  border-radius: 50% 50% 50% 50% / 46% 46% 56% 56%;
  background: radial-gradient(circle at 34% 28%, #3a3a3f, #0a0a0c 72%);
  border: 1px solid rgba(236,236,236,0.7);
  box-shadow: inset -4px -6px 11px rgba(0,0,0,0.55), 0 6px 16px rgba(0,0,0,0.5);
  position: relative; will-change: transform;
}
.balloon .body::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 7px solid #0a0a0c;
}
.balloon .string {
  position: absolute; top: 39px; left: 50%; width: 1px; height: 46px;
  background: linear-gradient(rgba(236,236,236,0.4), transparent); transform: translateX(-50%);
}

.hdr {
  text-align: center;
  margin: 0 0 26px;
}

.avatar {
  display: block;
  width: 180px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 4px;
  image-rendering: auto;
  will-change: transform;
}

h1 {
  font-size: 22px;
  letter-spacing: 0.18em;
  margin: 0;
  font-weight: 700;
}
.ch { display: inline-block; will-change: transform; }

.tag {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.block {
  border-top: 1px solid var(--line);
  padding: 16px 0 14px;
}

.block h2 {
  font-size: 13px;
  letter-spacing: 0.22em;
  margin: 0 0 6px;
  font-weight: 700;
}

.hint {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 13px;
}

.nb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nb input[type="email"] { text-align: center; }

.nb input[type="email"] {
  flex: 1 1 60%;
  min-width: 0;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

.nb input[type="email"]:focus {
  border-color: var(--fg);
}

.nb button {
  flex: 0 0 auto;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 2px;
  padding: 10px 14px;
  font: inherit;
  letter-spacing: 0.12em;
  font-weight: 700;
  cursor: pointer;
}

.nb button:disabled { opacity: 0.5; cursor: default; }

.msg {
  flex: 1 0 100%;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dim);
  min-height: 1.2em;
}
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

.lnk {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.lnk:hover { border-color: var(--fg); }

.ftr {
  margin-top: 28px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 360px) {
  .nb button { flex: 1 1 100%; }
}
