/* The friend invite page: one card, in PlaneSpotted's colors, light and dark. */

:root {
  --navy: #06456e;
  --sky: #1c76aa;
  --background: #f8f6ea;
  --text: #0f2233;
  --muted: #5b6b78;
  --button-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #8cc6ea;
    --sky: #2f8fca;
    --background: #0b1620;
    --text: #eef3f7;
    --muted: #9aabb8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--background);
  color: var(--text);
  font: 400 1.05rem/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
}

main { width: 100%; max-width: 420px; }

.icon {
  width: 104px;
  height: 104px;
  border-radius: 23px;
  box-shadow: 0 12px 32px rgba(6, 69, 110, 0.25);
}

h1 {
  margin: 28px 0 8px;
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead { margin: 0; color: var(--muted); }

.code {
  margin: 28px 0 0;
  font: 800 2.6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 30px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--button-text);
  font-weight: 600;
  text-decoration: none;
}

.button:active { opacity: 0.85; }

.missing { margin-top: 28px; }

.fine { margin: 32px 0 0; font-size: 0.92rem; color: var(--muted); }

[hidden] { display: none !important; }
