:root {
  --ink: #0F0F10;
  --asphalt: #1B1B1D;
  --kerb: #2A2A2E;
  --mute: #8C8C93;
  --chalk: #F2F2F3;
  --paper: #FFFFFF;
  --red: #C8001E;
  --red-hi: #E3112F;
  --gold: #F6B92B;
  --gold-soft: #FFE7A3;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Urbanist", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --course-x: clamp(16px, 2.6vw, 36px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 10px; border: 0;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hi); }
.btn-red:disabled { background: #A7A7AB; cursor: not-allowed; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #ffffff40; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-ghost-dark { background: var(--chalk); color: var(--ink); }
.btn-ghost-dark:hover { background: #E4E4E6; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.chip-earn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #ffffff26; padding: 2px 7px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}

/* ---------- Coin ---------- */
.coin {
  display: inline-block; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 35% 30%, #FFF1B8 0 18%, transparent 19%),
    radial-gradient(circle, #F9C93E 0 55%, #E39E12 56% 64%, #F6B92B 65%);
  box-shadow: inset 0 -2px 0 #C9870A;
}
.coin-xs { width: 12px; height: 12px; }
.coin-sm { width: 18px; height: 18px; }
.coin-xl { width: 160px; height: 160px; box-shadow: inset 0 -10px 0 #C9870A, 0 30px 60px -20px #9A6400; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter);
  background: #0F0F10cc; backdrop-filter: blur(14px);
  border-bottom: 1px solid #ffffff12;
}
.wordmark {
  font-family: var(--f-display); font-weight: 900; font-size: 30px;
  letter-spacing: .01em; text-decoration: none; line-height: 1; white-space: nowrap;
}
.wordmark span { color: var(--red); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: #ffffffb0; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--red); }
.nav-sep { width: 1px; align-self: stretch; background: #ffffff26; }
.nav-legal { display: flex; align-items: center; gap: 26px; }
@media (min-width: 1001px) and (max-width: 1240px) {
  .nav-links, .nav-legal { gap: 16px; }
  .nav-links a { font-size: 14px; }
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.wallet {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: #F6B92B1f; color: var(--gold);
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
}
.wallet.bump { animation: bump .5s ease; }
.wallet-label { opacity: .7; }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- Course (signature) ---------- */
.course { position: fixed; left: var(--course-x); top: 0; bottom: 0; width: 4px; z-index: 40; pointer-events: none; }
.course-track, .course-fill { position: absolute; left: 0; top: 0; width: 4px; }
.course-track {
  bottom: 0;
  background: repeating-linear-gradient(to bottom, #ffffff22 0 10px, transparent 10px 20px);
}
.course-fill {
  height: var(--progress, 0%);
  background: repeating-linear-gradient(to bottom, var(--red) 0 10px, transparent 10px 20px);
}
.course-runner {
  position: absolute; left: 50%; top: var(--progress, 0%);
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: #2F7BFF; box-shadow: 0 0 0 4px #2F7BFF40, 0 0 0 3px #fff inset;
}
.course-km {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-family: var(--f-mono); font-size: 11px;
  background: var(--ink); color: var(--gold); padding: 3px 7px; border-radius: 6px;
  border: 1px solid #ffffff18;
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold);
}
.eyebrow-center { justify-content: center; width: 100%; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #E3112F99; } 100% { box-shadow: 0 0 0 12px #E3112F00; } }

.h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 6.4vw, 92px); line-height: .88; letter-spacing: -.005em;
  margin: 0 0 20px;
}
.sub { color: #ffffffa6; max-width: 46ch; margin: 0 0 28px; font-size: 18px; }
.sub-center { margin-inline: auto; text-align: center; }
.muted { color: var(--mute); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-map .streets path { stroke: #ffffff10; stroke-width: 14; fill: none; }
.hero-map .park { fill: #1E3A2A55; }
.hero-map .route {
  fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 10 10; opacity: .85;
}
.hero-map .route-start { fill: #fff; stroke: var(--red); stroke-width: 3; }
.hero-map .route-dot { fill: #2F7BFF; stroke: #fff; stroke-width: 3; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 15%, #0F0F10b0 55%, #0F0F1020), linear-gradient(0deg, var(--ink), transparent 30%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  padding: 0 var(--gutter) 64px calc(var(--gutter) + 24px);
  max-width: 1360px; margin: 0 auto;
}
.hero-title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 10.5vw, 168px); line-height: .82; letter-spacing: -.01em;
  margin: 0 0 28px;
}
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--red-hi); }
.hero-lede { font-size: 19px; max-width: 48ch; color: #ffffffb8; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 36px; margin: 0; }
.hero-facts dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.hero-facts dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; color: #fff; }

/* Phone */
.phone {
  width: 330px; max-width: 100%; justify-self: center;
  background: var(--ink); border-radius: 44px; padding: 10px;
  box-shadow: 0 0 0 2px #333, 0 50px 90px -30px #000, 0 0 120px -30px #C8001E66;
  transform: rotate(2.5deg);
}
.phone-notch { display: flex; justify-content: space-between; padding: 8px 22px 6px; font-size: 13px; font-weight: 700; }
.phone-notch .sig { width: 52px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #fff 0 30%, transparent 30% 40%, #fff 40% 70%, transparent 70% 78%, #fff 78%); opacity: .8; }
.phone-screen { background: var(--ink); border-radius: 32px 32px 0 0; padding: 6px 14px 14px; }
.ev-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.circ-btn { width: 30px; height: 30px; border-radius: 50%; background: #ffffff18; display: grid; place-items: center; font-size: 16px; }
.ev-name { font-weight: 700; font-size: 18px; text-align: center; margin: 0; }
.ev-joined { text-align: center; color: var(--mute); font-size: 12px; margin: 0 0 10px; }
.ev-cover {
  position: relative; height: 150px; border-radius: 14px; overflow: hidden; margin-bottom: 10px;
}
.cover-word {
  position: absolute; left: 10px; bottom: -14px;
  font-family: var(--f-display); font-weight: 900; font-size: 110px; line-height: 1; color: #ffffff2e;
}
.bib {
  position: absolute; top: 10px; right: 10px; background: #fff; color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 4px;
}
.countdown {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 4px; align-items: center;
  background: var(--asphalt); border-radius: 10px; padding: 5px; margin-bottom: 10px;
}
.countdown span { font-size: 11px; color: var(--mute); padding-left: 6px; }
.countdown b {
  background: #000; border-radius: 6px; text-align: center; padding: 7px 0;
  font-family: var(--f-mono); font-size: 12px; color: var(--gold);
}
.join-btn { padding: 12px; font-size: 15px; }
.join-btn.is-joined { background: #1F6F3A; }
.ev-about { background: var(--paper); color: var(--ink); margin: 12px -14px -14px; padding: 14px 16px 16px; font-size: 13px; line-height: 1.45; }
.ev-about p { margin: 0 0 8px; }
.ev-h { font-weight: 700; font-size: 15px; }
.ev-meta { display: flex; justify-content: space-between; color: #66666c; font-size: 12px; }
.phone-tabs {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; text-align: center;
  background: var(--paper); color: #77777d; font-size: 10px; padding: 8px 6px 14px; border-radius: 0 0 34px 34px;
}
.tab-fab { width: 36px; height: 36px; margin: -14px auto 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 22px; }

/* Covers: abstract "photo" stand-ins per activity */
.cover-run { background: radial-gradient(120% 90% at 20% 110%, #FF3B3B 0 30%, transparent 60%), linear-gradient(135deg, #7A0012, #2B0007); }
.cover-gym { background: radial-gradient(90% 80% at 80% 0%, #6C6C72 0 20%, transparent 60%), linear-gradient(160deg, #26262A, #0B0B0C); }
.cover-crossfit { background: radial-gradient(80% 80% at 10% 10%, #F6B92B 0 15%, transparent 55%), linear-gradient(150deg, #5A2A00, #1B0C00); }
.cover-cycling { background: radial-gradient(100% 100% at 100% 100%, #2F7BFF 0 25%, transparent 60%), linear-gradient(150deg, #0E254F, #060B18); }
.cover-hyrox { background: repeating-linear-gradient(115deg, #ffffff10 0 14px, transparent 14px 28px), linear-gradient(150deg, #C8001E, #3C0009); }
.cover-yoga { background: radial-gradient(90% 90% at 50% 120%, #C66BFF 0 25%, transparent 60%), linear-gradient(160deg, #351047, #12061A); }
.cover-pilates { background: radial-gradient(90% 90% at 0% 50%, #FF8FB0 0 20%, transparent 60%), linear-gradient(160deg, #4A1426, #160610); }
.cover-hiit { background: radial-gradient(80% 80% at 70% 30%, #FF6A00 0 20%, transparent 60%), linear-gradient(160deg, #4D1500, #150500); }

/* Mode marquee */
.modes { position: relative; z-index: 1; border-block: 1px solid #ffffff14; background: var(--asphalt); overflow: hidden; }
.modes-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.mode {
  display: flex; align-items: center; gap: 12px; padding: 18px 34px;
  font-family: var(--f-display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .02em;
  border-right: 1px solid #ffffff10; white-space: nowrap;
}
.mode svg { width: 26px; height: 26px; color: var(--red-hi); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(80px, 11vw, 150px) calc(var(--gutter) + 24px);
}
.section > * { max-width: 1260px; margin-inline: auto; }
.section-light { background: var(--chalk); color: var(--ink); }
.section-light .sub { color: #4A4A50; }
.section-gold { background: linear-gradient(180deg, #FFD978, #FFF6DA 70%); color: var(--ink); }
.section-gold .sub { color: #5A4A20; }

.cp-tag {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute);
}
.cp-pin {
  display: inline-grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 600; letter-spacing: .05em;
}
.section-light .cp-tag, .section-gold .cp-tag { color: #5D5D63; }

/* Events */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  background: var(--asphalt); color: #ffffffc0; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.filter svg { width: 16px; height: 16px; }
.filter[aria-selected="true"] { background: #fff; color: var(--ink); }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.event {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; border-radius: 18px; overflow: hidden; padding: 18px;
  box-shadow: inset 0 0 0 1px #ffffff14;
  transition: transform .2s ease;
}
.event:hover { transform: translateY(-4px); }
.event::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000000d0, transparent 65%); }
.event > * { position: relative; z-index: 1; }
.event .cover-word { z-index: 0; top: 4px; bottom: auto; font-size: 120px; }
.event-joined {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  font-family: var(--f-mono); font-size: 11px; background: #00000080; padding: 4px 9px; border-radius: 6px;
}
.event-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.event-type svg { width: 15px; height: 15px; }
.event-title { font-weight: 700; font-size: 21px; line-height: 1.2; margin: 0; }
.event-when { font-size: 13px; color: #ffffffa0; margin: 4px 0 14px; }
.event-when b { font-family: var(--f-mono); font-weight: 400; color: #fff; font-size: 12px; }
.event .btn { padding: 10px 14px; font-size: 14px; align-self: flex-start; }
.event .btn.is-joined { background: #ffffff; color: var(--ink); }
.empty { color: var(--mute); padding: 40px 0; }

/* Builder */
.create-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.create-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.create-notes li { display: flex; gap: 12px; color: #4A4A50; }
.create-notes b { color: var(--ink); min-width: 110px; }
.builder {
  background: var(--paper); border-radius: 28px; padding: 26px;
  box-shadow: 0 30px 60px -30px #0000004d, 0 0 0 1px #0000000d;
  min-height: 600px; display: flex; flex-direction: column;
}
.b-progress { margin-bottom: 18px; }
.b-step { font-size: 13px; color: #5D5D63; }
.b-bar { height: 5px; background: #E7E7EA; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.b-bar i { display: block; height: 100%; width: 33.3%; background: var(--red); border-radius: 4px; transition: width .35s ease; }
.b-pane { display: none; flex: 1; }
.b-pane.is-active { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.b-title { font-size: 26px; font-weight: 700; line-height: 1.15; margin: 0 0 20px; }
.b-title span { color: #808087; font-weight: 600; display: block; }
.b-center { text-align: center; }
.type-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 1.5px solid transparent; background: var(--chalk); color: var(--ink);
  border-radius: 10px; padding: 14px; cursor: pointer; position: relative;
}
.opt:hover { border-color: #D0D0D4; }
.opt.is-selected { border-color: var(--red); background: #fff; }
.opt.is-selected::after { content: "\2713"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--red); font-weight: 700; }
.opt small { color: #6A6A70; font-size: 13px; }
.type-list .opt { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.type-list svg { width: 22px; height: 22px; color: var(--red); }
.vis-list { display: grid; gap: 8px; margin-bottom: 18px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #3A3A40; }
.field input, .field textarea {
  width: 100%; border: 1px solid #D9D9DD; border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #0F0F1014; }
.b-nav { display: flex; gap: 10px; margin-top: 20px; }
.b-nav .btn { flex: 1; }
.b-row { display: flex; gap: 10px; margin-top: 18px; }
.b-row .btn { flex: 1; }
.done-check { width: 48px; height: 48px; margin: 10px auto 12px; border-radius: 50%; background: #1F8A4C; color: #fff; display: grid; place-items: center; font-size: 24px; }
.done-card { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px #0000000f; margin-top: 16px; }
.done-card .dc-cover { position: relative; height: 140px; overflow: hidden; }
.done-card .dc-body { padding: 12px 14px; }
.done-card b { display: block; }
.done-card small { color: #6A6A70; }

/* Feed */
.feed-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.record { background: #000; border-radius: 20px; padding: 26px; text-align: center; box-shadow: inset 0 0 0 1px #ffffff14; max-width: 420px; }
.record-label { margin: 0 0 6px; font-weight: 600; color: #9FE3B4; }
.record-label::before { content: "\2713"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1F8A4C; color: #fff; font-size: 12px; margin-right: 8px; }
.record-clock { font-family: var(--f-mono); font-weight: 600; font-size: clamp(38px, 5vw, 56px); color: var(--gold); letter-spacing: -.02em; }
.record-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.record-stats b { display: block; font-family: var(--f-mono); font-size: 18px; }
.record-stats span { font-size: 12px; color: var(--mute); }

.feed { display: grid; gap: 16px; }
.post { background: var(--asphalt); border-radius: 18px; padding: 16px; box-shadow: inset 0 0 0 1px #ffffff0d; }
.post.is-new { animation: rise .5s ease; box-shadow: inset 0 0 0 1.5px var(--red); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); flex: none; }
.post-head b { display: block; font-size: 15px; }
.post-head small { color: var(--mute); font-size: 12px; }
.post-text { margin: 0 0 12px; font-size: 15px; color: #ffffffd0; }
.post-media { position: relative; height: 170px; border-radius: 12px; overflow: hidden; }
.post-media .cover-word { font-size: 130px; }
.post-stats { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 14px; background: linear-gradient(0deg, #000000c0, transparent); }
.post-stats span { font-size: 11px; color: #ffffffa0; }
.post-stats b { display: block; font-family: var(--f-mono); font-size: 14px; color: #fff; }
.post-actions { display: flex; gap: 8px; margin-top: 12px; }
.kudos {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: #ffffff10; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.kudos svg { width: 16px; height: 16px; }
.kudos[aria-pressed="true"] { background: var(--red); }
.kudos.pop svg { animation: bump .4s ease; }


/* Crew sharing */
.crew-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: 48px; }
.crew-head .sub { margin-bottom: 20px; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.share-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.ach-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ach-tab {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px;
  box-shadow: inset 0 0 0 1px #0000001a;
}
.ach-tab[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }

.story {
  width: 340px; max-width: 100%; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, #FFC93C, #FFF1C9 46%, #fff 60%);
  box-shadow: 0 40px 70px -35px #00000066, 0 0 0 1px #0000000d;
  padding: 26px 18px 18px; text-align: center; color: var(--ink);
  transform: rotate(-2deg); transition: transform .3s ease;
}
.story:hover { transform: rotate(0); }
.story.swap { animation: rise .35s ease; }
.story .coin { width: 54px; height: 54px; box-shadow: inset 0 -4px 0 #C9870A; }
.story-kicker { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #8A6400; margin: 12px 0 4px; }
.story-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 44px; line-height: .9; margin: 0 0 6px; }
.story-line { font-size: 14px; color: #5A4A20; margin: 0 0 16px; }
.story-media { position: relative; height: 210px; border-radius: 16px; overflow: hidden; text-align: left; color: #fff; }
.story-media .cover-word { font-size: 140px; }
.story-brand { position: absolute; top: 12px; left: 12px; background: #000000b0; padding: 3px 9px; border-radius: 6px; font-family: var(--f-display); font-weight: 900; font-size: 20px; color: var(--red-hi); letter-spacing: .02em; }
.story-brand span { color: #fff; }
.story-stats { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 14px; background: linear-gradient(0deg, #000000d0, transparent); }
.story-stats span { display: block; font-size: 10px; color: #ffffffa0; }
.story-stats b { font-family: var(--f-mono); font-size: 14px; }
.story-by { display: flex; align-items: center; gap: 10px; margin-top: 14px; text-align: left; }
.story-by small { display: block; color: #6A6A70; font-size: 12px; }
.story-by b { font-size: 14px; }
.story-tags { margin-left: auto; display: flex; }
.story-tags .avatar { width: 28px; height: 28px; font-size: 10px; margin-left: -8px; box-shadow: 0 0 0 2px #fff; }

.composer {
  background: var(--ink); color: var(--chalk); border-radius: 28px; padding: 24px;
  box-shadow: 0 30px 60px -30px #00000080; min-height: 560px; display: flex; flex-direction: column;
}
.composer-pane { display: none; flex: 1; flex-direction: column; }
.composer-pane.is-active { display: flex; animation: rise .35s ease; }
.comp-title { font-weight: 700; font-size: 20px; margin: 0; }
.comp-sub { color: var(--mute); font-size: 14px; margin: 2px 0 14px; }

.buddies { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.buddy {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--asphalt); border: 1.5px solid transparent; border-radius: 12px; padding: 10px 12px;
}
.buddy:hover { border-color: #ffffff22; }
.buddy[aria-pressed="true"] { border-color: var(--red); }
.buddy b { display: block; font-size: 15px; }
.buddy small { color: var(--mute); font-size: 12px; }
.buddy .avatar { position: relative; }
.buddy .online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #2BD46B; box-shadow: 0 0 0 2px var(--asphalt); }
.tick {
  margin-left: auto; width: 24px; height: 24px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1.5px #ffffff40; display: grid; place-items: center; font-size: 13px; color: transparent;
}
.buddy[aria-pressed="true"] .tick { background: var(--red); box-shadow: none; color: #fff; }

.field-dark span { color: #ffffffb0; }
.field-dark input { background: var(--asphalt); border-color: #ffffff1a; color: #fff; }
.field-dark input:focus { border-color: #fff; box-shadow: none; }
.dests { display: grid; gap: 8px; margin: 2px 0 18px; }
.dest { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.dest input { width: 18px; height: 18px; accent-color: var(--red); }
.chip-gold { background: #F6B92B26; color: var(--gold); font-style: normal; margin-left: 6px; }
.composer .btn-block { margin-top: auto; }

.thread-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.link-btn { border: 0; background: none; color: var(--gold); font-weight: 600; cursor: pointer; padding: 4px; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; max-height: 440px; }
.msg { display: flex; gap: 8px; align-items: flex-end; animation: rise .3s ease; }
.msg .avatar { width: 30px; height: 30px; font-size: 11px; }
.bubble { background: var(--asphalt); padding: 9px 13px; border-radius: 16px 16px 16px 4px; font-size: 15px; max-width: 80%; }
.bubble small { display: block; font-size: 11px; color: var(--mute); margin-bottom: 1px; }
.msg.me { flex-direction: row-reverse; }
.msg.me .bubble { background: var(--red); border-radius: 16px 16px 4px 16px; }
.msg.me .bubble small { color: #ffffffb0; }
.mini-card { display: flex; align-items: center; gap: 10px; background: #00000040; border-radius: 10px; padding: 6px; margin-bottom: 6px; }
.mini-card i { width: 42px; height: 54px; border-radius: 6px; flex: none; }
.mini-card b { display: block; font-size: 13px; }
.mini-card span { font-size: 11px; opacity: .8; font-family: var(--f-mono); }
.msg-system { align-self: center; font-size: 12px; color: var(--gold); font-family: var(--f-mono); animation: rise .3s ease; text-align: center; }
.typing .bubble { display: flex; gap: 4px; padding: 13px; }
.typing .bubble i { width: 6px; height: 6px; border-radius: 50%; background: #ffffff80; animation: blink 1s infinite; }
.typing .bubble i:nth-child(2) { animation-delay: .15s; }
.typing .bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.reply { display: flex; gap: 8px; margin-top: 14px; }
.reply input { flex: 1; min-width: 0; border: 1px solid #ffffff1a; background: var(--asphalt); color: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; }
.reply input:focus { outline: none; border-color: #fff; }

/* Points */
.points-wrap { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.ledger { background: var(--paper); border-radius: 20px; padding: 8px 22px; box-shadow: 0 20px 50px -30px #8A5A0080; }
.ledger-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed #E0D6BC; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row b { font-family: var(--f-mono); font-size: 15px; color: #A86A00; }
.ledger-boost span { font-weight: 700; }
.ledger-boost b { background: var(--red); color: #fff; padding: 3px 9px; border-radius: 6px; }
.coin-stage { text-align: center; }
.coin-stage .coin-xl { animation: spin 6s ease-in-out infinite; }
@keyframes spin { 0%, 100% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-10px); } }
.coin-caption { margin-top: 26px; font-weight: 600; }
.coin-caption b { font-family: var(--f-mono); }

/* Market */
.market { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.item { background: var(--asphalt); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px #ffffff0d; }
.item-art { height: 150px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; position: relative; overflow: hidden; }
.item-art span { font-family: var(--f-display); font-weight: 900; font-size: 42px; text-transform: uppercase; color: #ffffffe0; text-align: center; line-height: .9; }
.item-brand { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; font-family: var(--f-mono); }
.item-name { font-weight: 700; margin: 2px 0 12px; }
.item-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-weight: 600; color: var(--gold); }
.item .btn { padding: 8px 14px; font-size: 13px; }
.item .btn:disabled { background: #ffffff14; color: #ffffff70; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); z-index: 60;
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 20px 40px -10px #000; transition: transform .3s ease; max-width: calc(100% - 32px); margin: 0;
}
.toast.show { transform: translate(-50%, 0); }

/* Clubs */
.clubs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.club-card { background: var(--ink); color: var(--chalk); border-radius: 28px; padding: 28px 22px 22px; text-align: center; max-width: 420px; justify-self: center; width: 100%; }
.club-badge { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: linear-gradient(140deg, #fff, #BDBDC2); color: var(--red); font-family: var(--f-display); font-weight: 900; font-size: 34px; }
.club-name { font-weight: 700; font-size: 20px; margin: 0; }
.club-sub { color: var(--mute); font-size: 13px; margin: 2px 0 16px; }
.club-tabs { display: grid; grid-template-columns: 1fr 1fr; font-size: 14px; color: var(--mute); border-bottom: 1px solid #ffffff18; margin-bottom: 12px; }
.club-tabs span { padding: 8px; }
.club-tabs .on { color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.club-list li { display: grid; grid-template-columns: 1fr auto; background: var(--asphalt); padding: 12px 14px; border-radius: 12px; }
.club-list b { font-size: 15px; }
.club-list small { grid-column: 1; color: var(--mute); font-size: 12px; }
.club-list i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--gold); }

/* Finish */
.finish { position: relative; padding: clamp(100px, 14vw, 180px) var(--gutter); text-align: center; overflow: hidden; }
.finish-tape {
  position: absolute; left: -5%; right: -5%; top: 50%; height: 64px; transform: translateY(-50%) rotate(-3deg); z-index: 0;
  background: repeating-linear-gradient(90deg, var(--red) 0 64px, var(--ink) 64px 128px);
  opacity: .22;
}
.finish > * { position: relative; z-index: 1; }
.finish-title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 11vw, 170px); line-height: .85; margin: 0 0 22px;
}
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.store { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; background: #fff; color: var(--ink); padding: 10px 22px; border-radius: 12px; min-width: 180px; }
.store small { font-size: 11px; }
.store b { font-size: 20px; line-height: 1.1; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 32px var(--gutter) 40px calc(var(--gutter) + 24px); border-top: 1px solid #ffffff12; color: var(--mute); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer p { margin: 0; }

/* ---------- Course checkpoints ---------- */
.course-cp {
  position: absolute; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 3px;
  background: var(--ink); box-shadow: inset 0 0 0 2px #ffffff40;
  transition: background .3s ease, box-shadow .3s ease;
}
.course-cp i {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font: 600 10px/1 var(--f-mono); font-style: normal; letter-spacing: .06em; color: var(--mute);
  opacity: 0; transition: opacity .3s ease;
}
.course-cp.is-passed { background: var(--red); box-shadow: inset 0 0 0 2px #fff; }
.course-cp.is-passed i { opacity: 0; }

/* ---------- Race day scroll story ---------- */
.sr { padding-bottom: clamp(40px, 6vw, 80px); }
.sr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.sr-visual { grid-column: 2; grid-row: 1; }
.sr-steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 18svh 0 30svh; }
.sr-pin {
  position: -webkit-sticky; position: sticky; top: 72px;
  height: calc(100vh - 72px); height: calc(100svh - 72px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}

.sr-step { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; max-width: 46ch; }
.sr-split { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.sr-step h3 {
  margin: 0 0 12px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 4.2vw, 60px); line-height: .9;
}
.sr-step p:last-child { margin: 0; font-size: 18px; color: #ffffffb0; }
/* Dim inactive steps only when the script is driving them */
.sr-on .sr-step { opacity: .28; transition: opacity .35s ease; }
.sr-on .sr-step.is-active { opacity: 1; }

.sr-phone {
  width: 300px; max-width: 100%;
  background: var(--ink); border-radius: 42px; padding: 10px;
  box-shadow: 0 0 0 2px #333, 0 50px 90px -30px #000, 0 0 120px -30px #C8001E66;
}
.sr-screens { position: relative; height: 470px; border-radius: 30px; overflow: hidden; background: var(--ink); }
.sr-screen {
  position: absolute; inset: 0; padding: 8px 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}
.sr-screen.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity .4s ease, transform .4s ease, visibility 0s; }

.sr-app-title { margin: 0; font-weight: 700; font-size: 18px; text-align: center; }
.sr-app-sub { margin: -6px 0 0; text-align: center; color: var(--mute); font-size: 12px; }
.sr-chips { display: flex; gap: 6px; overflow: hidden; }
.sr-chips span { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--asphalt); font-size: 11px; font-weight: 600; color: #ffffffb0; }
.sr-chips .on { background: #fff; color: var(--ink); }
.sr-ev { position: relative; flex: 1; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.sr-ev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000000b0, transparent 70%); }
.sr-ev > * { position: relative; z-index: 1; }
.sr-ev b { font-size: 15px; }
.sr-ev small { font-family: var(--f-mono); font-size: 10px; color: #ffffffb0; }

.sr-cover { position: relative; flex: 1; border-radius: 14px; overflow: hidden; }
.sr-pass { display: flex; align-items: center; gap: 12px; background: #1F6F3A; border-radius: 12px; padding: 12px 14px; }
.sr-pass b { display: block; font-size: 15px; }
.sr-pass small { font-size: 12px; color: #ffffffc0; }
.sr-pass .chip-earn { margin-left: auto; }
.sr-check { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #1F6F3A; display: grid; place-items: center; font-weight: 700; flex: none; }

.sr-live { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 12px; font-weight: 600; color: #ffffffc0; }
.sr-clock { text-align: center; font-family: var(--f-mono); font-weight: 600; font-size: 44px; color: var(--gold); letter-spacing: -.02em; }
.sr-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: var(--asphalt); border-radius: 12px; padding: 12px 4px; }
.sr-stats b { display: block; font-family: var(--f-mono); font-size: 16px; }
.sr-stats span { font-size: 10px; color: var(--mute); }
.sr-route { flex: 1; width: 100%; background: #16201A; border-radius: 12px; }
.sr-route path { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 8; }
.sr-route circle { fill: #2F7BFF; stroke: #fff; stroke-width: 3; }

.sr-screen .post-head { margin: 6px 0 0; }
.sr-screen .post-text { margin: 0; }
.sr-screen .post-media { flex: 1; height: auto; }
.sr-kudos { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--red); font-weight: 700; font-size: 14px; }

.sr-earn { align-items: center; justify-content: center; text-align: center; }
.sr-earn .coin { width: 96px; height: 96px; box-shadow: inset 0 -6px 0 #C9870A, 0 20px 40px -14px #9A6400; }
.sr-total { margin: 4px 0 0; font-family: var(--f-display); font-weight: 900; font-size: 72px; line-height: 1; color: var(--gold); }
.sr-ledger { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.sr-ledger li { display: flex; justify-content: space-between; background: var(--asphalt); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.sr-ledger b { font-family: var(--f-mono); color: var(--gold); }

.sr-meter { width: 300px; max-width: 100%; }
.sr-meter-label { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: center; }
.sr-meter-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.sr-meter-bar i { height: 4px; border-radius: 2px; background: #ffffff22; transition: background .3s ease; }
.sr-meter-bar i.on { background: var(--red); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(72px, 10vw, 140px); }
.legal .h2 { margin-bottom: 28px; }
.legal-lede { font-size: 19px; color: #ffffffc0; margin: 0 0 36px; }
.legal a { color: var(--gold); text-underline-offset: 3px; }
.legal-toc { background: var(--asphalt); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 48px; box-shadow: inset 0 0 0 1px #ffffff12; }
.legal-toc > p { margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; }
.legal-toc a { color: #ffffffd0; text-decoration: none; }
.legal-toc a:hover { color: #fff; text-decoration: underline; }
.legal section { padding-top: 8px; margin-bottom: 40px; }
.legal h2 {
  margin: 0 0 14px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1;
}
.legal h3 { margin: 22px 0 8px; font-size: 17px; }
.legal p, .legal li { color: #ffffffb8; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li b { color: #fff; }
.legal-contact { font-family: var(--f-mono); font-size: 18px; }
.legal-address { font-style: normal; color: #ffffffb8; margin: 0 0 14px; line-height: 1.6; }
.legal-page .footer { padding-left: var(--gutter); }
.footer nav a[aria-current="page"] { color: #fff; }

/* ---------- Reveals (only when JS is on and motion is allowed) ---------- */
.reveal-on .reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { flex-wrap: wrap; row-gap: 10px; padding-bottom: 0; }
  .nav-links {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 12px; gap: 22px; overflow-x: auto; white-space: nowrap;
    border-top: 1px solid #ffffff12; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 14px; flex: none; }
  .nav-legal {
    position: sticky; right: calc(-1 * var(--gutter)); gap: 18px; margin-left: auto;
    padding: 0 var(--gutter) 0 24px; margin-right: calc(-1 * var(--gutter));
    background: linear-gradient(90deg, transparent, #0F0F10 18px);
  }
  html { scroll-padding-top: 120px; }
  .hero-inner, .create-wrap, .feed-wrap, .clubs-wrap, .crew-head, .crew { grid-template-columns: 1fr; }
  .points-wrap { grid-template-columns: 1fr 1fr; }
  .points-wrap .cp-head { grid-column: 1 / -1; }
  .phone { transform: none; }

  /* Story: phone pins at the top, step cards scroll up over the lower half */
  .sr-grid { grid-template-columns: 1fr; }
  .sr-visual, .sr-steps { grid-column: 1; }
  .sr-pin { top: 112px; height: auto; justify-content: flex-start; gap: 10px; padding-top: 8px; }
  .sr-phone { width: 230px; border-radius: 34px; padding: 8px; }
  .sr-phone .phone-notch { padding: 4px 18px 4px; font-size: 11px; }
  .sr-screens { height: 330px; border-radius: 26px; }
  .sr-screen { padding: 6px 10px 12px; gap: 8px; }
  .sr-clock { font-size: 34px; }
  .sr-total { font-size: 56px; }
  .sr-earn .coin { width: 72px; height: 72px; }
  .sr-meter { width: 230px; }
  .sr-steps { position: relative; z-index: 2; padding: 64svh 0 20svh; }
  .sr-step {
    min-height: 0; margin: 0 auto 58svh; max-width: 520px;
    background: var(--asphalt); border-radius: 18px; padding: 20px 22px;
    box-shadow: 0 0 0 1px #ffffff14, 0 30px 60px -20px #000;
  }
  .sr-step:last-child { margin-bottom: 0; }
  .sr-on .sr-step { opacity: 1; }
  .sr-step h3 { font-size: 34px; }
  .sr-step p:last-child { font-size: 16px; }
}
@media (max-width: 640px) {
  :root { --course-x: 8px; }
  body { font-size: 16px; }
  .course-km { display: none; }
  .hero { padding-top: 44px; }
  .hero-inner, .section, .footer { padding-left: 32px; padding-right: 16px; }
  .points-wrap { grid-template-columns: 1fr; }
  .type-list { grid-template-columns: 1fr; }
  .event { min-height: 220px; }
  .composer { padding: 18px; border-radius: 22px; }
  .story { transform: none; }
  .event .cover-word { font-size: 90px; }
  .builder { padding: 20px; border-radius: 22px; }
  .wallet-label { display: none; }
  .wordmark { font-size: 26px; }
  .hero-facts { gap: 22px; }
  .mode { font-size: 22px; padding: 14px 22px; }
  .coin-xl { width: 120px; height: 120px; }
  .legal { padding-left: 16px; padding-right: 16px; }
  .legal-toc ol { columns: 1; }
  .legal-page .footer { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sr-screen { transform: none; }
}

@media (min-width: 1001px) {
  /* Room for checkpoint labels beside the course line on wide screens */
  .course-cp:not(.is-passed) i { opacity: 1; }
}
.legal-steps { margin: 0 0 14px; padding-left: 22px; }
.legal-steps li { margin-bottom: 8px; }
