/* Shared by the small text pages: /rewards and the private referrals page (/me) */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #000;
  --ink: #fff;
  --muted: #9a9a9a;
  --line: #2a2a2a;
  --card: #111;
  --accent: #4a6cf7;
  --accent-grad: linear-gradient(180deg, #5878fb 0%, #3a56e4 100%);
  --accent-grad-hover: linear-gradient(180deg, #6a88ff 0%, #4666f0 100%);
  --error: #ff6b6b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 560px; margin: 0 auto; padding: 32px 16px 64px; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; font-size: 22px; font-weight: 600; letter-spacing: -0.04em; text-decoration: none; }
h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.lede { margin-top: 12px; font-size: 18px; color: var(--muted); }
.small { margin-top: 12px; font-size: 14px; color: var(--muted); }
.small a { color: var(--muted); }

button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(0, 0, 0, .6);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
button:hover { background: var(--accent-grad-hover); }
button:active { transform: translateY(1px); }

.stat { margin-top: 32px; font-size: 18px; color: var(--muted); }
.stat b { display: block; font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 14px; }

.share { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding: 6px 6px 6px 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.share code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 15px; }

/* Reward tiers, each with its 3D icon (192px cut-outs like the Traveller/Host ones). On the
   referrals page a reward not yet unlocked shows its icon greyed out; an unlocked one gets a tick. */
.tiers { margin-top: 24px; list-style: none; display: grid; gap: 8px; }
.tier { display: flex; gap: 16px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tier .icon { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; }
.tier .icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* sized to look the same: the key is a thin diagonal, the badge a near-full square */
.tier .icon.early img { width: 52px; height: 52px; }
.tier .icon.half img { width: 50px; height: 50px; }
.tier.locked .icon img { filter: grayscale(1); opacity: .6; }
.tier .tick { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); color: #fff; font-size: 12px; font-weight: 700; }
.tier h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tier h3 .need { font-weight: 400; color: var(--muted); }
.tier p { margin-top: 2px; font-size: 15px; color: var(--muted); }
.tier .status { margin-top: 8px; font-size: 13px; }
.tier.done .status { color: var(--accent); font-weight: 500; }

.claim { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.claim label { display: block; font-size: 15px; }
.claim .row { display: flex; gap: 8px; margin-top: 10px; }
.claim input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.claim input:focus { border-color: var(--accent); }
.note { margin-bottom: 12px; font-size: 15px; }
.note.ok { color: var(--accent); }
.note.err { color: var(--error); }

.rules { margin-top: 8px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.rules li + li { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  button:active { transform: none; }
}
