:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #13233a;
  --muted: #5a6b82;
  --line: #dbe3ee;
  --accent: #0f9d8a;
  --accent-text: #ffffff;
  --glow: #22d3b8;
  --danger: #c2413b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1424;
    --card: #13203a;
    --text: #e8eef7;
    --muted: #9aaac2;
    --line: #22324f;
    --accent: #22d3b8;
    --accent-text: #062a26;
    --glow: #34e6c9;
    --danger: #f0817b;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1424;
  --card: #13203a;
  --text: #e8eef7;
  --muted: #9aaac2;
  --line: #22324f;
  --accent: #22d3b8;
  --accent-text: #062a26;
  --glow: #34e6c9;
  --danger: #f0817b;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
main {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}
h1 { font-size: 1.4rem; margin: 16px 0 4px; }
p { margin: 8px 0; color: var(--muted); }
strong { color: var(--text); }
.hidden { display: none !important; }

/* Pip: a glowing "you are here" dot with eyes and a pulsing ring. */
.pip { position: relative; width: 72px; height: 72px; margin: 0 auto; }
.pip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--glow);
  opacity: 0.6;
  animation: ring 2.4s ease-out infinite;
}
.pip .dot {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8ff5e4, var(--glow) 55%, #0f9d8a);
  box-shadow: 0 0 24px var(--glow);
}
.pip .dot::before, .pip .dot::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #0b1424;
}
.pip .dot::before { left: 12px; }
.pip .dot::after { right: 12px; }
@keyframes ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pip::before { animation: none; } }

form { margin-top: 20px; display: grid; gap: 12px; text-align: left; }
label { font-size: 0.9rem; color: var(--muted); }
input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
input:focus-visible, button:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
button {
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button:disabled { opacity: 0.6; cursor: wait; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.details {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  font-size: 0.95rem;
}
.details div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.details span:first-child { color: var(--muted); }
.details span:last-child { font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.error { color: var(--danger); }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-weight: 400; }
