:root {
  --ink: #0b1017;
  --paper: #f4f1ea;
  --muted: #9aa7b8;
  --accent: #ff5d5d;
  --accent2: #5ddcff;
  --panel: rgba(10, 14, 20, 0.78);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tooltip {
  position: fixed;
  z-index: 60;
  max-width: 320px;
  padding: 10px 14px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--paper);
  pointer-events: none;
  transform: translate(14px, 14px);
}

.tooltip .who {
  display: block;
  font-size: 0.72rem;
  color: var(--accent2);
  margin-bottom: 4px;
}

.hud {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  max-width: 380px;
  margin: 18px;
  padding: 18px 20px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

header { margin-bottom: 14px; }

h1 {
  font-size: 1.6rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 0.85rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.stats {
  font-size: 0.82rem;
  color: var(--paper);
  margin-bottom: 14px;
}

.stats p { margin: 4px 0; }
.stats span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent2); }

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0b1017;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hint {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 12px;
}

footer {
  font-size: 0.72rem;
  color: var(--muted);
}

footer p { margin: 4px 0; }

footer a {
  color: var(--accent2);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

.fineprint { opacity: 0.85; }

@media (max-width: 480px) {
  .hud {
    max-width: none;
    left: 0;
    right: 0;
    margin: 10px;
    border-radius: 14px;
  }
  h1 { font-size: 1.35rem; }
}
