:root {
  --ink: #0a1f63;
  --cobalt: #2052d0;
  --sky: #65a9ee;
  --paper: #f3f6ff;
  --chalk: #c9d7ff;
  --line: rgba(243, 246, 255, 0.18);
}

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

html, body { min-height: 100%; }

body {
  background: radial-gradient(120% 90% at 20% 10%, #17399f 0%, var(--ink) 60%, #050f36 100%);
  color: var(--paper);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 28px 18px;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* A dark rim over the streaks so the card keeps its contrast. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(110% 85% at 50% 45%, transparent 45%, rgba(5, 15, 54, 0.55) 100%);
  z-index: 1;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: pan-y; /* finger drags leave a wake, vertical swipes still scroll */
}

.card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  padding: clamp(22px, 6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 15, 54, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 28px 60px -32px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(243, 246, 255, 0.08);
  animation: rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  font: 12px/1 ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 8vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.card p {
  color: var(--chalk);
  max-width: 40ch;
  text-wrap: pretty;
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 11px/1.5 ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}

.hint::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
}

noscript .hint { margin-top: 14px; }

::selection {
  background: rgba(101, 169, 238, 0.35);
  color: var(--paper);
}

@media (max-width: 420px) {
  body { padding: 20px 14px; }
  .card { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  * { animation-duration: 1ms !important; }
}
