/* ArrowFly public share landing — score-focused, branded.
   Shared by /u (profile), /s (scorecard), /t (target) and the generic index.
   app.js injects the card content (name / role / score / event); the pages
   differ only in body[data-share-type] and their OG tags. The shared SCORE (or
   profile identity) is the hero — ArrowFly logo on top, a big score card in the
   middle, a slim "get the app" call-to-action below. Mobile-first, centred, and
   readable on desktop. No stock photo — brand only. */

:root {
  --green: #4e8f34;            /* canonical app green */
  --green-tint: #eaf4e4;       /* avatar chip background */
  --surface: #ffffff;
  --title: #1e1e1e;
  --text: #4b5563;
  --muted: #6b7280;            /* score denominator / sub-text */
  --border: #e5e7eb;
  --radius: 20px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--title);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--surface);
}

/* Brand logo (the ArrowFly lockup) at the top. */
.logo { width: 220px; max-width: 62%; height: auto; display: block; }

/* ── Score / identity card (the hero) ─────────────────────────────────── */
.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.card__row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
  overflow: hidden;
  flex: 0 0 auto;
}
.card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.card__idtext { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.card__name { font-size: 20px; font-weight: 700; line-height: 26px; color: var(--title); }
.card__sub { font-size: 15px; line-height: 20px; color: var(--muted); }
.card__role { color: var(--green); font-weight: 600; }

/* The big number — the focus of a score share. app.js fills it as
   "<b>41</b><span> / 55</span>". */
.card__score {
  margin-top: 10px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.card__score b { font-size: 76px; color: var(--green); }
.card__score span { font-size: 28px; font-weight: 500; letter-spacing: -1px; color: var(--muted); }

/* Event context — "at Summer Practice · 50 yards" / "Target #7 · …". */
.card__meta { margin-top: 6px; font-size: 15px; line-height: 21px; color: var(--muted); }
.is-hidden { display: none !important; }

/* ── Get-the-app call-to-action (secondary) ───────────────────────────── */
.pitch {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pitch__tag {
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text);
}
.cta {
  display: block;
  width: 100%;
  height: 54px;
  line-height: 54px;
  border: none;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(78, 143, 52, 0.28);
}

/* ── Event results (the /e/<token> page — every archer, ranked) ────────── */
.results {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.results__head { text-align: center; margin-bottom: 16px; }
.results__title { font-size: 20px; font-weight: 700; line-height: 26px; color: var(--title); }
.results__sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.results__list { display: flex; flex-direction: column; gap: 8px; }
.rrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rrow__rank {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rrow__name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rrow__score { flex: 0 0 auto; font-size: 16px; color: var(--muted); }
.rrow__score b { font-size: 18px; color: var(--green); font-weight: 700; }
.rrow__score em { font-style: normal; margin-left: 6px; font-size: 13px; color: var(--muted); }
