/* Earn hero: centred like the home and Rewards heroes; the loop below is the visual */
#er-hero { padding-block: clamp(56px, 5vw, 88px) clamp(64px, 6vw, 104px); }
#er-hero .er-hero-tag { display: flex; width: max-content; margin-inline: auto; }
#er-hero .er-hero-h { text-align: center; font-size: clamp(48px, 6.6vw, 116px); }
#er-hero .er-hero-row { margin: clamp(20px, 2vw, 28px) auto 0; display: grid; justify-items: center; gap: clamp(26px, 2.6vw, 36px); max-width: 560px; text-align: center; }
#er-hero .er-hero-row .cp-lead { margin: 0; max-width: 44ch; text-wrap: balance; }
#er-hero .er-hero-join { width: min(100%, 480px); display: grid; gap: 12px; }
#er-hero .waitlist { background: var(--paper-3); border-color: var(--ink); }
#er-hero .cp-note { font-size: var(--t-small); color: var(--fg2); }
@media (max-width: 560px) { #er-hero .er-hero-h { font-size: 10.4vw; } }

/* ---------- The loop (gen/loop.py draws it and writes its script; js/er-hero.js plays it) ---------- */
#er-hero .erl { margin: clamp(40px, 4.4vw, 64px) 0 0; position: relative; }
#er-hero .erl-stage { position: relative; width: 100%; aspect-ratio: var(--ar); }
#er-hero .erl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#er-hero .erl-tall { display: none; }
@media (max-width: 759px) {
  #er-hero .erl-wide { display: none; }
  #er-hero .erl-tall { display: block; max-width: 420px; margin-inline: auto; }
}
#er-hero .erl-t { font-weight: 400; }
#er-hero .erl-t-mono { font-family: var(--f-mono); letter-spacing: .12em; }
#er-hero .erl-t-disp { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; }

/* the parts that react: each turns or folds about its own hinge */
#er-hero .erl-r { transform-box: fill-box; }
#er-hero .erl-dial, #er-hero .erl-stamp { transform-origin: 50% 50%; }
#er-hero .erl-flap { transform-origin: 50% 100%; }
#er-hero .erl-door { transform-origin: 0 50%; }
#er-hero .erl-bay, #er-hero .erl-sheet, #er-hero .erl-eflap { transform-origin: 50% 0; }
#er-hero .erl-plus, #er-hero .erl-stamp, #er-hero .erl-carrytag { opacity: 0; }

/* the coin: carry rides on it on the way home (a green rim and a small green coin on its back) */
#er-hero .erl-cy, #er-hero .erl-hang { display: none; }
#er-hero .erl-tw.is-carry .erl-cy { display: inline; }
#er-hero .erl-tw.is-carry .erl-rim { stroke-width: 3.2px; }

/* station labels: number + name in mono, one short line under it */
#er-hero .erl-mbr { display: none; }
#er-hero .erl-labs { position: absolute; inset: 0; pointer-events: none; margin: 0; padding: 0; list-style: none; }
#er-hero .erl-lab { position: absolute; left: var(--x); top: var(--y); transform: translateX(-50%); width: max-content; max-width: 260px;
  display: grid; justify-items: center; gap: 4px; text-align: center; }
#er-hero .erl-lab-t { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; color: var(--ink); }
#er-hero .erl-lab-t b { font-weight: 400; color: var(--fg2); margin-right: .4em; }
#er-hero .erl-lab-s { font-size: 14px; line-height: 1.3; color: var(--fg2); white-space: nowrap; }
@media (min-width: 760px) and (max-width: 1199px) {
  #er-hero .erl-lab { max-width: 22%; }
  #er-hero .erl-lab-t { font-size: 12.5px; letter-spacing: .06em; }
  #er-hero .erl-lab-s { font-size: 13px; white-space: normal; text-wrap: balance; }
}
/* narrower: the number takes its own line, so each name stays on one line instead of breaking mid-name */
@media (max-width: 1199px) {
  #er-hero .erl-lab { max-width: none; }
  #er-hero .erl-lab-t { white-space: nowrap; }
  #er-hero .erl-lab-t b { display: block; margin: 0 0 3px; }
}
@media (min-width: 760px) and (max-width: 1199px) { #er-hero .erl-wide { margin-bottom: 36px; } }
@media (max-width: 759px) {
  #er-hero .erl-lab { width: 170px; gap: 3px; }
  #er-hero .erl-lab-t { font-size: 12px; letter-spacing: .04em; }
  #er-hero .erl-lab-s { font-size: 13px; white-space: normal; text-wrap: balance; }
}
