/* Challenge and group invitations (the night palette), privacy and support (the cream paper of
   `.public-page`); public-base.css loads first with both palettes. */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 500 14px "Chakra Petch", sans-serif;
}
.landing { max-width: 1200px; margin: auto; }
.mono { font: 11px/1.6 "Azeret Mono", monospace; letter-spacing: .7px; }
.nav > .mono { color: var(--muted); font-size: 10px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); padding: 44px 46px 26px; gap: 45px; align-items: center; }
.pitch { min-width: 0; }
.kicker { color: #3fd8e8; font-size: 10px; margin: 0 0 22px; text-transform: uppercase; overflow-wrap: anywhere; }
.pitch h1 { font-size: 64px; font-weight: 700; font-style: italic; line-height: .95; letter-spacing: -3px; margin: 0 0 24px; overflow-wrap: anywhere; text-transform: uppercase; }
.pitch h1 em { font-style: inherit; color: #ffb020; }
.lead { font-size: 20px; line-height: 1.4; max-width: 380px; margin: 0; overflow-wrap: anywhere; }
.challenge { min-width: 0; border: 1px solid #514126; background: #17130a; }
.course { padding: 12px; }
.map-label { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; padding: 7px 10px; background: #0b0804e8; font-size: 13px; font-weight: 700; letter-spacing: .3px; overflow-wrap: anywhere; }
.map-label small { font: 9px "Azeret Mono", monospace; color: var(--muted); }
.mapframe { position: relative; overflow: hidden; background: #171d15; border: 1px solid #514126; }
.mapframe > svg { display: block; width: 100%; height: auto; }
.stats { border-top: 1px solid #514126; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; padding: 20px 25px 25px; gap: 20px; }
.original { min-width: 0; max-width: 100%; }
.time-label { color: var(--muted); font: 10px/1.6 "Azeret Mono", monospace; letter-spacing: 1.2px; }
.time { font-size: clamp(48px, 5.2vw, 73px); line-height: .98; font-style: italic; font-weight: 700; letter-spacing: -3px; color: #ffb020; margin-top: 4px; overflow-wrap: anywhere; }
.distance { font-size: 32px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.distance span { font-size: 16px; font-weight: 500; }
.distance-label { display: block; margin-bottom: 14px; color: var(--muted); font: 10px/1.6 "Azeret Mono", monospace; }
.handoff { margin: 12px 46px 34px; border-top: 1px solid #514126; padding-top: 25px; display: flex; align-items: center; gap: 24px; }
.qr { flex: none; width: 132px; height: 132px; background: #fff; }
.qr svg { display: block; width: 100%; height: 100%; }
.handoff-copy { min-width: 0; }
.handoff h2 { font-size: 23px; font-weight: 700; margin: 0 0 6px; overflow-wrap: anywhere; }
.handoff p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.handoff .device-requirement { margin-left: auto; flex: 0 0 165px; font: 10px/1.6 "Azeret Mono", monospace; }
.actions { display: none; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #ffb020; color: #0b0804; width: 100%; border-radius: 32px; padding: 16px 20px; font-size: 15px; font-weight: 700; text-align: left; text-decoration: none; }
.cta:hover { background: #ffc256; }
.cta-arrow { flex: none; }
.secondary { display: inline-block; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; padding: 14px 0 0; }
.requirement { font: 9px/1.6 "Azeret Mono", monospace; color: var(--muted); margin: 20px 0 0; }
.invitation-state { margin: 0; color: var(--muted); font-size: 15px; }
/* A group link's crew, weekly races and winner, after the iPhone invite's GroupsHeroView.
   Artwork sizes scale with the panel through --s; the labels stay readable text. */
.crew-panel { container-type: inline-size; }
.crew-hero { --s: 1px; display: flex; align-items: flex-start; justify-content: space-between; gap: calc(var(--s) * 2); padding: 26px 12px 24px; }
.crew-stage { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * 10); }
.crew-art { height: calc(var(--s) * 48); display: flex; align-items: flex-end; justify-content: center; }
.crew-label { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.crew-connector { flex: none; width: calc(var(--s) * 6); height: calc(var(--s) * 10); margin-top: calc(var(--s) * 19); color: #6a5730; }
.crew-stack { height: calc(var(--s) * 30); display: flex; align-items: center; gap: calc(var(--s) * 4); }
.crew-discs { display: flex; }
.crew-disc { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: calc(var(--s) * 26); height: calc(var(--s) * 26); border-radius: 50%; box-shadow: 0 0 0 calc(var(--s) * 2) #17130a; color: #0b0804; font-size: calc(var(--s) * 13); font-weight: 700; line-height: 1; }
.crew-disc + .crew-disc { margin-left: calc(var(--s) * -7); }
.crew-disc svg { width: calc(var(--s) * 11); height: calc(var(--s) * 11); }
.crew-disc-1 { z-index: 3; background: #3fd8e8; }
.crew-disc-2 { z-index: 2; background: #38e08a; }
.crew-disc-3 { z-index: 1; background: #ff6b4d; }
.crew-more { color: #3fd8e8; font: 700 calc(var(--s) * 11)/1 "Azeret Mono", monospace; white-space: nowrap; }
.crew-more-full { color: #ff6b4d; }
.week-strip { gap: calc(var(--s) * 2); }
.week { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--s) * 3); width: calc(var(--s) * 21); height: calc(var(--s) * 40); border: 1px solid #2a2113; border-radius: calc(var(--s) * 4); background: #221a0e; font-family: "Azeret Mono", monospace; line-height: 1; white-space: nowrap; }
.week-latest { border-color: #ffb020; }
.week-name { color: #968664; font-size: calc(var(--s) * 8); font-weight: 500; }
.week-points { font-size: calc(var(--s) * 10); font-weight: 700; animation: crew-rise .3s ease-out both; }
.week-latest .week-points { color: #ffb020; }
.week:nth-child(1) .week-points { animation-delay: .15s; }
.week:nth-child(2) .week-points { animation-delay: .27s; }
.week:nth-child(3) .week-points { animation-delay: .39s; }
.week:nth-child(4) .week-points { animation-delay: .51s; }
.podium { gap: calc(var(--s) * 2); }
.podium-place { display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * 3); }
.trophy { width: calc(var(--s) * 11); height: calc(var(--s) * 11); color: #ffb020; animation: crew-fade .3s ease-out .75s both; }
.step { width: calc(var(--s) * 20); padding-top: calc(var(--s) * 2); border-radius: calc(var(--s) * 3) calc(var(--s) * 3) 0 0; color: #0b0804; font: 700 calc(var(--s) * 9)/1 "Azeret Mono", monospace; text-align: center; transform-origin: bottom; animation: crew-grow .5s cubic-bezier(.34, 1.45, .64, 1) both; }
.step-1 { height: calc(var(--s) * 30); background: #ffb020; animation-delay: .4s; }
.step-2 { height: calc(var(--s) * 20); background: #3fd8e8; animation-delay: .5s; }
.step-3 { height: calc(var(--s) * 13); background: #38e08a; animation-delay: .6s; }
@keyframes crew-rise { from { opacity: 0; transform: translateY(4px); } }
@keyframes crew-fade { from { opacity: 0; } }
@keyframes crew-grow { from { transform: scaleY(.15); } }
@media (prefers-reduced-motion: reduce) {
  .week-points, .trophy, .step { animation: none; }
}
/* One row needs about 290 × --s plus padding: each stage gets a third, and the week strip is 90 wide. */
@container (min-width: 345px) { .crew-hero { --s: 1.1px; } }
@container (min-width: 410px) { .crew-hero { --s: 1.25px; padding: 30px 22px 26px; } }
@container (min-width: 470px) { .crew-hero { --s: 1.45px; } .crew-label { font-size: 17px; } }
@container (min-width: 520px) { .crew-hero { --s: 1.6px; padding: 36px 26px 30px; } }
/* Too narrow for one row: the stages stack, artwork above its label, as at accessibility sizes. */
@container (max-width: 313px) {
  .crew-hero { --s: 1.25px; flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 17px; }
  .crew-connector { display: none; }
  .crew-stage { flex: none; align-items: flex-start; }
  .crew-label { text-align: left; }
}
@media (max-width: 700px) {
  .nav > .mono { display: none; }
  .hero { display: flex; flex-direction: column; gap: 23px; padding: 28px 24px 0; }
  .pitch { width: 100%; }
  .pitch h1 { font-size: 43px; letter-spacing: -1.8px; margin-bottom: 14px; line-height: .99; }
  .kicker { font-size: 9px; margin-bottom: 17px; }
  .lead { font-size: 17px; }
  .challenge { width: 100%; }
  .course { padding: 8px; }
  .map-label { top: 8px; left: 8px; max-width: calc(100% - 16px); }
  .stats { padding: 15px 17px 19px; gap: 12px; }
  .time { font-size: clamp(43px, 15.1vw, 59px); }
  .time-label { font-size: 9px; letter-spacing: .7px; }
  .distance { font-size: 26px; }
  .distance-label { font-size: 9px; margin-bottom: 11px; }
  .handoff, .foot { display: none; }
  .actions { display: block; padding: 24px; }
}
@media (max-width: 350px) {
  .stats { padding-right: 12px; padding-left: 12px; gap: 8px; }
  .time-label { font-size: 8px; letter-spacing: 0; }
  .distance { font-size: 23px; }
  .cta { padding-right: 17px; padding-left: 17px; font-size: 13px; }
}
/* Privacy, support and an unavailable invitation: ink type on the cream page, like the home page. */
.public-document { max-width: 820px; margin: auto; padding: 48px 46px 64px; overflow-wrap: anywhere; }
.public-document h1 { margin: 0 0 36px; color: var(--text); font-size: clamp(38px, 6vw, 64px); font-weight: 700; font-style: italic; line-height: 1; letter-spacing: -1.8px; text-transform: uppercase; }
.public-document h2 { margin: 40px 0 18px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 25px; line-height: 1.2; }
.public-document p, .public-document li { font-size: 17px; line-height: 1.75; }
.public-document p { margin: 0 0 20px; }
.public-document ul { margin: 0 0 24px; padding-left: 24px; }
.public-document li + li { margin-top: 18px; }
.public-document strong { font-weight: 700; }
.public-document a { text-underline-offset: 4px; }
.public-document a:hover { color: var(--ghost-text); }
.public-document .eyebrow { margin-bottom: 20px; color: var(--ghost-text); font: 10px/1.7 "Azeret Mono", monospace; letter-spacing: .7px; text-transform: uppercase; }
.public-document .notice { border-left: 3px solid var(--cta); padding: 16px 20px; background: var(--surface); }
@media (max-width: 700px) {
  .public-page .page-links { display: flex; font-size: 10px; }
  .public-document { padding: 32px 24px 40px; }
  .public-document h1 { margin-bottom: 28px; }
  .public-document h2 { margin-top: 32px; font-size: 23px; }
  .public-document .notice { padding: 14px 16px; }
  .public-page .foot { display: flex; }
}
