:root {
  /* Layout: the gym wall fills the whole frame; the HUD rides the top edge like signage, cards sit low like a route card at the base of the wall. */
  --wall: #1d4f5c;
  --ink: #0f2028;
  --chalk: #f6f1e7;
  --tape: #ffc93c;
  --blush: #ff6f91;
  --mat: #2f7fe0;
  --display: "Bagel Fat One", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --marker: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --body: "Outfit", ui-rounded, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--wall);
  color: var(--chalk);
  font-family: var(--body);
  touch-action: manipulation;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body {
  position: fixed;
  inset: 0;
}
/* The status bar of the installed (Home Screen) app on iOS 26 and later. iOS no longer lets a page draw under the
   status bar: with the old "black-translucent" style it laid a frosted blur over the top of the page (the HUD looked
   fuzzy) and stopped the page one status bar short of the bottom of the screen. So the app uses the default style:
   iOS keeps the strip behind the clock for itself and the page fills everything below it, down to the bottom edge.
   iOS colours that strip from the fixed element at the top centre of the page, which is this one: it declares the
   colour and paints nothing (the background is clipped to text it does not have). It must stay taller than 10px,
   at least 90% of the width, opaque in colour and free of backdrop-filter, or iOS ignores it. iOS reads the status
   bar style when the icon is added, so an app installed before this change has to be removed and added again. */
#sbar {
  display: none;
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  #sbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 11px;
    z-index: 2147483647;
    pointer-events: none;
    background-color: var(--ink);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
canvas#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
canvas#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: 3px;
}
ul,
ol {
  list-style: none;
}

/* ---------- HUD ---------- */
#hud {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.35s;
}
body.playing #hud {
  opacity: 1;
}
/* a results card is the screen's word: the HUD behind it (a red clock bar, empty hearts) goes while it is open */
body:has(#over.on) #hud {
  opacity: 0;
  visibility: hidden;
}
/* the climb: a soft dark shade from the top of the screen to just below the HUD row, so the score, grade and hearts
   read over a bright hold passing behind (a boulder is framed so nothing sits under its HUD) */
#hud {
  isolation: isolate;
}
#hud::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  height: calc(max(14px, env(safe-area-inset-top)) + 150px);
  background: linear-gradient(
    rgba(6, 14, 20, 0.5),
    rgba(6, 14, 20, 0.4) 45%,
    rgba(6, 14, 20, 0.16) 75%,
    rgba(6, 14, 20, 0)
  );
  pointer-events: none;
}
#hud.boulder::before {
  display: none;
}
.tag {
  font-family: var(--marker);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  background: var(--tape);
  padding: 7px 12px 6px;
  transform: rotate(-4deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
  min-width: 58px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%);
}
.tagwrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  width: 104px;
}
.style {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 13px;
  margin-left: 3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.prog {
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin-left: 3px;
}
.prog b {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--chalk);
  border-radius: 3px;
}
.prog.late b {
  background: rgba(255, 255, 255, 0.25);
}
.scorewrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}
#score {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}
#score.bump {
  animation: bump 0.25s;
}
@keyframes bump {
  40% {
    transform: scale(1.18);
  }
}
#mult {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  background: var(--chalk);
  padding: 2px 10px 3px;
  border-radius: 99px;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.2s,
    transform 0.2s,
    background 0.2s;
}
#mult.on {
  opacity: 1;
  transform: scale(1);
}
#mult.hot {
  background: var(--tape);
}
/* at the place's cap: filled gold, ringed, it can go no higher here */
#mult.max {
  background: #ffc93c;
  box-shadow:
    inset 0 0 0 2px var(--ink),
    0 0 12px rgba(255, 201, 60, 0.65);
}
/* a new place raised the cap: one pulse */
#mult.on.rise {
  animation: capRise 0.7s ease-out 1;
}
@keyframes capRise {
  30% {
    transform: scale(1.32);
    box-shadow: 0 0 0 7px rgba(255, 201, 60, 0.55);
  }
  100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  #mult.on.rise {
    animation: none;
  }
}
/* the chain's heat (feel.js chainStep): warmer by step, a swell on each new step, a shimmer at the cap, and a drop
   with a grey blink when it is lost */
#mult.h1 {
  box-shadow: 0 0 8px rgba(255, 236, 190, 0.55);
}
#mult.h2 {
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.8);
}
#mult.h3 {
  background: linear-gradient(100deg, #ffc93c 0%, #ffc93c 38%, #fff3c4 50%, #ffc93c 62%, #ff9d4a 100%);
  background-size: 260% 100%;
  box-shadow:
    inset 0 0 0 2px var(--ink),
    0 0 16px rgba(255, 140, 60, 0.85);
  animation: chainShimmer 1.6s linear infinite;
}
@keyframes chainShimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -60% 0;
  }
}
#mult.on.step {
  animation: chainStep 0.38s ease-out 1;
}
#mult.h3.on.step {
  animation:
    chainStep 0.38s ease-out 1,
    chainShimmer 1.6s linear infinite;
}
@keyframes chainStep {
  35% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}
#mult.drop {
  opacity: 1;
  animation: chainDrop 0.42s ease-in 1 forwards;
}
@keyframes chainDrop {
  0% {
    transform: translateY(0) scale(1);
    filter: none;
  }
  25% {
    filter: grayscale(1) brightness(0.7);
  }
  45% {
    filter: none;
  }
  60% {
    filter: grayscale(1) brightness(0.7);
  }
  100% {
    transform: translateY(9px) scale(0.7);
    opacity: 0;
    filter: grayscale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  #mult.h3,
  #mult.h3.on.step,
  #mult.on.step {
    animation: none;
  }
  #mult.drop {
    animation: chainDrop 0.42s steps(1, end) 1 forwards;
  }
}
.right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  width: 104px;
  padding-right: 44px;
}
.hearts {
  display: flex;
  gap: 3px;
}
.hearts svg {
  width: 18px;
  height: 18px;
  fill: var(--blush);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25));
  transition:
    transform 0.3s,
    fill 0.3s;
}
.hearts svg.off {
  fill: rgba(255, 255, 255, 0.22);
  transform: scale(0.8);
}
.coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.coins svg {
  width: 11px;
  height: 16px;
  fill: none;
  stroke: #ffd166;
  stroke-width: 3;
}
/* the carabiner (BINER in config.js): its strokes carry their own widths */
svg.bnr {
  width: 14px;
  height: 16px;
  stroke-linecap: round;
}
#mute {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 20, 26, 0.35);
  display: grid;
  place-items: center;
}
/* an open sheet or results card has the screen: the button steps aside rather than sit on the card's corner */
body:has(.sheet.on) #mute {
  visibility: hidden;
}
.share[hidden],
.link[hidden] {
  display: none;
}
#mute svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--chalk);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#mute .x {
  display: none;
}
#mute.off .x {
  display: block;
}
#mute.off .w {
  display: none;
}
/* the little note shows while the music is on */
#mute circle.n {
  fill: var(--chalk);
  stroke: none;
}
#mute.off .n,
#mute.nomusic .n {
  display: none;
}
#toast {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* the climb's lane: just under the HUD row, below the back button, so it covers none of the HUD */
  padding-top: calc(max(14px, env(safe-area-inset-top)) + 124px);
}
/* on the title the logo fills the top: messages sit just above the mode buttons instead */
body:not(.playing) #toast {
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: calc(max(16px, env(safe-area-inset-bottom)) + 228px);
}
/* (effects.js lane: just under the logo, clear of her and of the ghost hand) */
body:not(.playing) #toast.ttl {
  align-items: flex-start;
  padding-bottom: 0;
}
/* in a boulder the top of the screen is the top hold, the thing she is reading: messages sit at the foot, over the
   crash pad */
body.bouldering #toast {
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: calc(max(16px, env(safe-area-inset-bottom)) + 14px);
}
/* unless she is down there (she starts there): then just under the HUD (effects.js lane sets the top) */
body.bouldering #toast.hi {
  align-items: flex-start;
  padding-bottom: 0;
}
#toast span {
  font-family: var(--marker);
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
  background: var(--chalk);
  padding: 6px 14px 5px;
  max-width: 320px;
  text-align: center;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(-1.5deg) translateY(-12px);
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#toast.on span {
  opacity: 1;
  transform: rotate(-1.5deg);
}

/* ---------- title ---------- */
#title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    opacity 0.4s,
    transform 0.4s;
}
body.playing #title {
  opacity: 0;
  transform: translateY(-14px);
}
body.playing #title button {
  pointer-events: none;
}
.logo {
  margin-top: 5vh;
  transform: rotate(-5deg);
  transform-origin: left top;
  padding-left: 4px;
}
.logo h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 22vw, 104px);
  line-height: 0.82;
  letter-spacing: 1px;
  color: var(--chalk);
  text-shadow: 4px 5px 0 var(--ink);
}
.logo h1 em {
  font-style: normal;
  color: var(--tape);
}
.logo p {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--marker);
  font-size: 15px;
  color: var(--ink);
  background: var(--chalk);
  padding: 5px 12px 4px;
  transform: rotate(2deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.25);
}
.foot {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.how {
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
/* three across: the label on top, its small line under it */
.chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  text-align: left;
  padding: 10px 11px 11px;
  border-radius: 16px;
  background: rgba(8, 20, 26, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.chip b {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(16px, 4.9vw, 20px);
  line-height: 1.1;
  white-space: nowrap;
}
.chip small {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.chip small:empty {
  display: none;
}
/* what the mode is, then (when there is one) where she stands in it, which takes its place: a returning player
   knows what the mode is, and the longer line ("from the rooftops · V3", "7 of 18 · next: Tarzan") needs the room */
.chip.long small.what {
  display: none;
}
.chip small.what {
  font-size: clamp(10.5px, 3.1vw, 12px);
  font-weight: 700;
  opacity: 0.72;
  white-space: nowrap;
}
.chip.on {
  background: var(--chalk);
  color: var(--ink);
  border-color: var(--chalk);
}
/* Boulder, for a player who has finished a Speed run and never sent a problem: a tape note on the chip's corner,
   one gentle pulse as it appears */
.chip {
  position: relative;
}
.chip .ctag {
  display: none;
  position: absolute;
  top: -11px;
  right: -4px;
  font-family: var(--marker);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  background: var(--tape);
  padding: 4px 7px 3px;
  transform: rotate(3deg);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.chip.learn .ctag {
  display: block;
  animation: ctagIn 1.2s ease-out 1;
}
@keyframes ctagIn {
  0% {
    transform: rotate(3deg) scale(0.6);
    opacity: 0;
  }
  35% {
    transform: rotate(3deg) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: rotate(3deg) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chip.learn .ctag {
    animation: none;
  }
}
.row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pill {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  background: var(--chalk);
  padding: 10px 15px;
  border-radius: 99px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  position: relative;
}
.pill:active,
.chip:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.pill .dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blush);
  border: 2px solid var(--chalk);
  display: none;
}
.pill.new .dot {
  display: block;
}
/* a newer version is live (src/update.js) */
.pill.upd {
  background: var(--tape);
}
.pill[hidden] {
  display: none;
}
.row .coins {
  margin-left: auto;
  font-size: 16px;
}

/* ---------- banner ---------- */
#banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 19vh;
  text-align: center;
  opacity: 0;
}
#banner.go {
  animation: banner 1.7s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}
#banner b {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 17vw, 84px);
  line-height: 0.9;
  color: var(--tape);
  text-shadow: 4px 5px 0 var(--ink);
  transform: rotate(-5deg);
}
#banner span {
  margin-top: 14px;
  font-family: var(--marker);
  font-size: 19px;
  color: var(--ink);
  background: var(--chalk);
  padding: 5px 14px 4px;
  transform: rotate(2deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.25);
}
/* a new place, named as she catches its first hold; a boulder field sent in full, and the finale: larger and calmer
   than a send, the name alone in chalk white with a thin rule under it and a small line beneath (none for a place
   seen before), easing in and out without a bounce, high on the screen, clear of her */
#banner.place {
  padding-top: 15vh;
}
#banner.place.go,
#banner.field.go,
#banner.finale.go {
  animation: title 2.6s cubic-bezier(0.25, 0.6, 0.3, 1) both;
}
#banner.place.go:has(> span:empty) {
  animation-duration: 1.8s;
}
/* a field's banner sits under where she stands (mode.js sendBanner) and has played before the result card comes */
#banner.field.go {
  animation-duration: 1.7s;
}
#banner.finale.go {
  animation-duration: 2s;
}
#banner.place b,
#banner.field b,
#banner.finale b {
  font-size: clamp(40px, 12.5vw, 60px);
  line-height: 0.98;
  max-width: 92vw;
  text-wrap: balance;
  color: var(--chalk);
  text-shadow:
    0 2px 0 rgba(15, 32, 40, 0.55),
    0 4px 22px rgba(0, 0, 0, 0.45);
  transform: none;
}
#banner.place span,
#banner.field span,
#banner.finale span {
  display: block;
  min-width: min(52vw, 230px);
  margin-top: 12px;
  padding: 9px 0 0;
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  background: none;
  box-shadow: none;
  transform: none;
  font-family: var(--body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--chalk);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
#banner.place span:empty {
  min-height: 0;
  padding: 0;
}
@keyframes title {
  0% {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.08em;
  }
  22% {
    opacity: 1;
    transform: none;
    letter-spacing: 0;
  }
  80% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
/* the send banner making way for the leap to a new place (moments.js) */
#banner.go.out {
  animation: bannerOut 0.25s ease-out both;
}
@keyframes bannerOut {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 0;
  }
}
@keyframes banner {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  14% {
    opacity: 1;
    transform: scale(1.06);
  }
  22% {
    transform: scale(1);
  }
  78% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04) translateY(-18px);
  }
}

/* ---------- cards and sheets ---------- */
.sheet {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.sheet.scrim {
  background: rgba(6, 14, 18, 0.6);
}
.sheet.on {
  opacity: 1;
}
.sheet:not(.on) * {
  pointer-events: none !important;
}
.sheet.scrim.on {
  pointer-events: auto;
}
.card {
  width: min(100%, 390px);
  max-height: 100%;
  overflow-y: auto;
  touch-action: pan-y;
  background: var(--chalk);
  color: var(--ink);
  border-radius: 26px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.sheet.on .card {
  transform: none;
  pointer-events: auto;
}
.kick {
  font-family: var(--marker);
  font-size: 17px;
  display: inline-block;
  background: var(--tape);
  padding: 4px 12px 3px;
  transform: rotate(-3deg);
  margin-bottom: 8px;
}
.total {
  font-family: var(--display);
  font-size: 58px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.total small {
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 8px;
  opacity: 0.6;
}
.delta {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.75;
  margin-top: 2px;
  min-height: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.stats div {
  background: rgba(15, 32, 40, 0.07);
  border-radius: 14px;
  padding: 8px 6px;
  text-align: center;
}
.stats dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.stats dd {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 14px 0 7px;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.head .coins {
  color: var(--ink);
  text-shadow: none;
  font-size: 17px;
  background: rgba(15, 32, 40, 0.07);
  padding: 5px 11px;
  border-radius: 99px;
}
.head .coins svg {
  stroke: #e0a100;
}
.projects {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.projects li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  background: rgba(15, 32, 40, 0.07);
  border-radius: 13px;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.projects .tick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(15, 32, 40, 0.3);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.projects .n {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.projects li.done {
  background: var(--tape);
}
.projects li.done .tick {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--tape);
}
.projects li.done .n {
  opacity: 1;
}
.earn {
  font-weight: 800;
  font-size: 14px;
  margin-top: 10px;
  min-height: 18px;
}
.rank {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}
.rank b {
  font-family: var(--marker);
  font-size: 19px;
  background: var(--tape);
  padding: 3px 11px 2px;
  transform: rotate(-2deg);
}
.rank span {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
}
/* postcards from the places she has climbed to */
.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.places li {
  position: relative;
  aspect-ratio: 2 / 1;
  border-radius: 13px;
  background: rgba(15, 32, 40, 0.07) center / cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.places li:nth-child(odd) {
  transform: rotate(-1.2deg);
}
.places li:nth-child(even) {
  transform: rotate(1deg);
}
.places li b {
  position: absolute;
  left: 7px;
  bottom: 7px;
  font-family: var(--marker);
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  background: var(--chalk);
  padding: 4px 8px 3px;
  transform: rotate(-2deg);
}
.places li small {
  position: absolute;
  right: 7px;
  top: 6px;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.places li.locked {
  border: 3px dashed rgba(15, 32, 40, 0.22);
  box-shadow: none;
  display: grid;
  place-items: center;
  opacity: 0.6;
}
.places li.locked b {
  position: static;
  background: none;
  font-family: var(--display);
  font-size: 30px;
  transform: none;
}
.places li.locked small {
  position: absolute;
  inset: auto 0 9px 0;
  text-align: center;
  color: var(--ink);
  text-shadow: none;
}
.ticks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.ticks li {
  border-radius: 11px;
  padding: 6px 2px 5px;
  text-align: center;
  border: 2px dashed rgba(15, 32, 40, 0.22);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  opacity: 0.5;
}
.ticks li small {
  display: block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 10px;
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.ticks li.sent {
  border: 2px solid var(--ink);
  opacity: 1;
}
.ticks li.flash {
  background: var(--ink);
  color: var(--tape);
  border: 2px solid var(--ink);
  opacity: 1;
}
.facts {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 10px;
  line-height: 1.4;
}
.about {
  /* the Logbook's About line, at the very bottom: the version, Check for update, Sound check, small and quiet */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 10px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.55;
  margin-top: 12px;
  text-align: center;
}
.about #ver:not([hidden]) {
  display: contents;
}
.about .link {
  font-size: 11px;
  padding: 4px 0;
  margin: 0;
  border-radius: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* the locker: her on a stage at the top (always in view), the kit tried on, then the swatches, which scroll */
.card.locker {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stage {
  position: relative;
  flex: none;
  height: clamp(150px, 26vh, 236px);
  margin: 12px -6px 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(#5d8fa6, #1d4f5c);
}
.stage .bg {
  position: absolute;
  inset: -12px;
  background: center / cover no-repeat;
  filter: blur(4px) saturate(0.9) brightness(0.8);
}
.stage::after {
  /* a soft floor of light under her, the painting dimmed to the edges */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 58% 70% at 50% 48%, rgba(246, 241, 231, 0.2), rgba(15, 32, 40, 0.38));
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.kworn {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  font-family: var(--marker);
  font-size: 13px;
  background: var(--tape);
  padding: 2px 9px 1px;
  transform: rotate(-3deg);
}
.kworn[hidden] {
  display: none;
}
.kinfo {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  min-height: 48px;
}
.kwords {
  flex: 1;
  min-width: 0;
}
.kwords b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.05;
}
.kwords small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.78;
  line-height: 1.2;
  margin-top: 2px;
}
.kbtn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--chalk);
  background: var(--ink);
  padding: 9px 16px 10px;
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.kbtn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.kbtn svg.bnr {
  fill: none;
  stroke: var(--tape);
}
.kbtn.worn {
  font-family: var(--marker);
  font-size: 15px;
  color: var(--ink);
  background: none;
  box-shadow: none;
  padding: 9px 4px;
}
.kbtn.short {
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  color: rgba(15, 32, 40, 0.55);
  background: rgba(15, 32, 40, 0.08);
  box-shadow: none;
  max-width: 128px;
  text-align: center;
  line-height: 1.15;
  padding: 7px 10px;
}
.kits {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  touch-action: pan-y;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding: 3px 2px 4px;
}
.kit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(15, 32, 40, 0.07);
  border-radius: 14px;
  padding: 6px 2px 5px;
  border: 2.5px solid transparent;
}
.kit svg {
  /* the swatches are the list: large enough to tell the outfits apart */
  width: 48px;
  height: 60px;
}
.kit em {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  min-height: 14px;
}
.kit em svg.bnr {
  width: 10.5px;
  height: 12px;
  fill: none;
  stroke: #e0a100;
}
.kit.own em {
  color: #2f8f5b;
  font-size: 13px;
}
.kit.on em {
  color: var(--ink);
  font-family: var(--marker);
  font-weight: 400;
}
/* the kit she wears is ringed; the one on the stage sits on tape */
.kit.on {
  border-color: var(--ink);
}
.kit.try {
  background: var(--tape);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.kit.locked:not(.try) svg {
  opacity: 0.78;
}
.knote {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.6;
  margin-top: 8px;
  line-height: 1.25;
}
/* the locker's Done sits under the list, which scrolls by itself */
.card.locker > .big[data-close] {
  position: static;
  flex: none;
  margin-top: 12px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}
.big {
  width: 100%;
  font-family: var(--display);
  font-size: 24px;
  color: var(--chalk);
  background: var(--ink);
  padding: 13px 10px 14px;
  border-radius: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  margin-top: 14px;
}
/* a sheet taller than the screen scrolls, but its Done button stays in view at the bottom, on a pad of card colour */
.card > .big[data-close] {
  position: sticky;
  bottom: 8px;
  z-index: 1;
  /* room above it, so the last line of the sheet scrolls clear of the pad's soft upper edge */
  margin-top: 30px;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 8px 0 14px var(--chalk),
    0 -6px 10px 6px var(--chalk);
}
.big:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.share {
  width: 100%;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  background: var(--chalk);
  border: 3px solid var(--ink);
  padding: 13px 10px 14px;
  border-radius: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  margin-top: 10px;
}
.share:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
/* the results card's Share and, after a race, Challenge a friend side by side */
.duo {
  display: flex;
  gap: 8px;
}
.duo .share {
  flex: 1 1 auto;
}
.duo #challenge:not([hidden]) {
  flex: 2 1 auto;
  font-size: 17px;
  white-space: nowrap;
}
.duo #share:has(+ #challenge:not([hidden])) {
  font-size: 17px;
}
.link {
  display: block;
  margin: 10px auto 0;
  font-weight: 800;
  font-size: 16px;
  padding: 7px 18px 8px;
  border-radius: 999px;
  background: rgba(15, 32, 40, 0.09);
}
.link:active {
  background: rgba(15, 32, 40, 0.18);
}
/* the ways back (to the title, to the list of problems) carry the same arrow as the back buttons on the wall */
#home::before,
#boList::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.45em 0.08em 0.1em;
  border-left: 0.17em solid currentColor;
  border-bottom: 0.17em solid currentColor;
  border-radius: 0.05em;
  transform: rotate(45deg);
}
/* ---------- boulders ---------- */
/* in a boulder the HUD trades the score, hearts and timer for the problem's name, moves and tries */
.bbtns,
.bname,
.bline,
.btry {
  display: none;
}
#hud.boulder #score,
#hud.boulder #mult,
#hud.boulder .hearts,
#hud.boulder .progrow {
  display: none;
}
/* the climb's way out: a back button under the grade and its timer bar */
.cbtns {
  display: flex;
  margin-top: 4px;
}
#hud.boulder .cbtns {
  display: none;
}
#cExit.armed {
  background: #d1492e;
}
/* the buttons hang under the grade tag without widening its column, so the name keeps the middle of the row */
#hud.boulder .tagwrap {
  position: relative;
  width: auto;
}
#hud.boulder .right {
  width: auto;
  min-width: 0;
}
#hud.boulder .bbtns {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 18px;
}
#hud.boulder .bname,
#hud.boulder .bline,
#hud.boulder .btry {
  display: block;
}
/* a dark disc with a chalk ring, so it reads on the light grey wall, the charcoal and a bright backdrop alike */
.round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 20, 26, 0.62);
  box-shadow:
    inset 0 0 0 1.5px rgba(246, 241, 231, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}
.round svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--chalk);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.round:active {
  transform: scale(0.92);
}
/* the hint button: its price sits on its shoulder, and it glows once she has fallen a few times */
#bHint {
  position: relative;
}
#bHint i {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: #ffd166;
  color: var(--ink);
  font: 700 11px/17px var(--body, system-ui);
  font-style: normal;
  text-align: center;
}
#bInfo {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  color: var(--chalk);
}
#bHint.nudge,
#bInfo.nudge {
  animation: hintNudge 1.6s ease-in-out infinite;
}
#bInfo.nudge {
  color: #ffd166;
}
#bHint.nudge svg {
  stroke: #ffd166;
}
@keyframes hintNudge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.55);
  }
  60% {
    box-shadow: 0 0 0 9px rgba(255, 209, 102, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #bHint.nudge,
  #bInfo.nudge {
    animation: none;
    box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.7);
  }
}
.bname {
  font-family: var(--marker);
  font-size: clamp(14px, 4.5vw, 18px);
  line-height: 1.1;
  color: var(--ink);
  background: var(--chalk);
  padding: 5px 10px 4px;
  transform: rotate(-1.5deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bline,
.btry {
  font-weight: 800;
  font-size: 13px;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7),
    0 0 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bline {
  margin-top: 2px;
}
.btry {
  font-size: 15px;
  margin-top: 2px;
}
.scorewrap {
  min-width: 0;
}
/* the sheet's ? button: a 44 px target round a small ink disc; on a first visit it pulses and wears a tape tag */
.qbtn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: auto;
}
.qbtn i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--display);
  font-style: normal;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.qbtn:active i {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.qbtn[aria-expanded="true"] i {
  background: var(--tape);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 2.5px var(--ink),
    0 3px 0 rgba(0, 0, 0, 0.25);
}
/* hangs under the ? on a first visit, a tape note pointing up at it */
.qtag {
  display: none;
  position: absolute;
  z-index: 2;
  top: calc(100% + 2px);
  left: 6px;
  font-family: var(--marker);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  background: var(--tape);
  padding: 5px 9px 4px;
  transform: rotate(-3deg);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25);
}
.qtag::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -7px;
  border: 4px solid transparent;
  border-bottom: 4px solid var(--tape);
  border-width: 0 7px 8px;
}
.qbtn.nudge .qtag {
  display: block;
}
.qbtn.nudge i {
  animation: qPulse 1.8s ease-in-out infinite;
}
@keyframes qPulse {
  0%,
  100% {
    box-shadow:
      0 3px 0 rgba(0, 0, 0, 0.25),
      0 0 0 0 rgba(224, 161, 0, 0.6);
  }
  60% {
    box-shadow:
      0 3px 0 rgba(0, 0, 0, 0.25),
      0 0 0 10px rgba(224, 161, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .qbtn.nudge i {
    animation: none;
    box-shadow:
      0 3px 0 rgba(0, 0, 0, 0.25),
      0 0 0 3px var(--tape);
  }
}
/* the sound button sits over the card's top right corner on a phone */
#boulderSheet .head {
  padding-right: 26px;
}
.head .stampct svg {
  stroke: var(--ink);
  stroke-width: 2.5;
  width: 15px;
  height: 15px;
}
#bInfoSheet .head {
  justify-content: flex-start;
}
#bInfoSheet .head .gtag {
  flex: none;
}
/* the help card and "On this problem": a tape label, the moves as one line each, the holds in a two-column grid */
.bhow {
  position: relative;
  margin-top: 10px;
  background: rgba(15, 32, 40, 0.07);
  border-radius: 16px;
  padding: 10px 12px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.bhow > b {
  display: inline-block;
  font-family: var(--marker);
  font-weight: 400;
  font-size: 17px;
  background: var(--tape);
  padding: 3px 10px 2px;
  transform: rotate(-2deg);
}
.bhow h3 {
  font-size: 12px;
  margin: 8px 0 4px;
}
.bhow .x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  border-radius: 50%;
}
.moves {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.moves li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.2;
}
.moves svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.moves svg .f {
  fill: var(--ink);
  stroke: none;
}
.moves svg .v {
  fill: rgba(15, 32, 40, 0.12);
}
.moves b {
  font-weight: 800;
}
.hgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hgrid li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 7px 4px 5px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 11px;
}
.hgrid .hp {
  display: block;
  width: 40px;
  height: 34px;
  background: no-repeat center / contain;
  filter: drop-shadow(0 1.5px 0 rgba(15, 32, 40, 0.4));
}
/* the stand-in swatch for a clay hold whose picture has not come: a blob of its colour */
.hgrid .hp:not(.pic):not(.foot):not(.paddle) {
  width: 30px;
  height: 22px;
  margin: auto;
  border-radius: 48% 52% 40% 44%;
}
.hgrid span {
  font-size: 12px;
  line-height: 1.15;
  min-width: 0;
  text-wrap: balance;
}
.hgrid b {
  display: block;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.1;
  margin-bottom: 1px;
}
.bfoot {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.3;
}
.bfoot.grip {
  margin-top: 4px;
  opacity: 0.75;
}
.bfield {
  margin-top: 16px;
}
.bcard {
  position: relative;
  height: 92px;
  border-radius: 13px;
  border: 3px solid #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: rotate(-0.8deg);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  color: #fff;
}
.bfield:nth-child(even) .bcard {
  transform: rotate(0.8deg);
}
.bcard i {
  position: absolute;
  inset: 0;
  background: #6d7a7f center / cover;
  z-index: -1;
}
.bcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(15, 32, 40, 0) 20%, rgba(15, 32, 40, 0.62));
}
.bcard {
  isolation: isolate;
}
.bcard b {
  position: absolute;
  top: 8px;
  left: 9px;
  font-family: var(--marker);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  background: var(--chalk);
  padding: 4px 9px 3px;
  transform: rotate(-2deg);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25);
}
.bcard small {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.bcard small.n {
  font-weight: 800;
}
.bfield.locked .bcard i {
  filter: grayscale(1) brightness(0.85);
}
/* the problem tiles, two to a row: grade tag and number, the name, and the three stamps inked in their colours (the
   result card's), or a dashed outline still to earn; a locked tile shows a padlock and what opens it */
.btiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}
.btiles > li {
  display: flex;
}
.bt {
  position: relative;
  width: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
  padding: 9px 10px 10px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  border: 2.5px solid rgba(15, 32, 40, 0.16);
  box-shadow: 0 4px 0 rgba(15, 32, 40, 0.16);
}
.bt:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(15, 32, 40, 0.16);
}
.bt.sent {
  border-color: var(--ink);
}
.bt .tt {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.bt .gtag {
  font-size: 14px;
  padding: 3px 7px 2px;
  transform: rotate(-3deg);
}
.bt .tt small {
  margin-left: auto;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  opacity: 0.3;
}
.bt .nm {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.bt .st {
  display: flex;
  gap: 3px;
  margin-top: auto;
  padding-top: 2px;
}
.bt .st i {
  font-family: var(--marker);
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  padding: 4px 4px 3px;
  border-radius: 5px;
  border: 2px dashed rgba(15, 32, 40, 0.25);
  color: rgba(15, 32, 40, 0.4);
}
.bt .st i.on {
  border: 2px solid var(--c);
  color: var(--c);
  box-shadow: inset 0 0 0 1px var(--c);
  transform: rotate(-4deg);
}
.bt .st i.on:nth-child(2) {
  transform: rotate(3deg);
}
.bt .st i.on:nth-child(3) {
  transform: rotate(-2deg);
}
/* a flash: the send stamp says so, on tape */
.bt .st i.on.flash {
  background: var(--tape);
}
.bt.locked {
  background: rgba(15, 32, 40, 0.05);
  border: 2.5px dashed rgba(15, 32, 40, 0.22);
  box-shadow: none;
}
.bt.locked .gtag {
  background: rgba(15, 32, 40, 0.12);
  box-shadow: none;
}
.bt.locked .nm {
  opacity: 0.6;
}
.bt .lk {
  width: 15px;
  height: 17px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.bt.locked .tt small {
  margin-left: auto;
}
.bt.locked .tt small + .lk {
  margin-left: 0;
}
.bt .why {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.75;
}
/* the result card */
.botitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.botitle > b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.botitle > span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
}
.gtag {
  font-family: var(--marker);
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  background: var(--tape);
  padding: 4px 9px 3px;
  transform: rotate(3deg);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.botitle small {
  font-weight: 800;
  font-size: 12px;
  opacity: 0.65;
  white-space: nowrap;
}
.stamps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 16px 0 4px;
}
.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stamp .ring {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px dashed rgba(15, 32, 40, 0.22);
  color: rgba(15, 32, 40, 0.3);
  transform: rotate(var(--r));
}
.stamp .ring b {
  font-family: var(--marker);
  font-weight: 400;
  font-size: 21px;
  line-height: 1;
}
.stamp.on .ring {
  border: 4px solid var(--c);
  color: var(--c);
  box-shadow:
    inset 0 0 0 3px var(--chalk),
    inset 0 0 0 5px var(--c);
  animation: thump 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(0.25s + var(--i) * 0.15s);
}
.stamp .ring em {
  position: absolute;
  top: -4px;
  right: -8px;
  font-family: var(--marker);
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: var(--ink);
  background: var(--tape);
  padding: 3px 6px 2px;
  transform: rotate(calc(12deg - var(--r)));
}
.stamp small {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.65;
  margin-top: 6px;
}
@keyframes thump {
  0% {
    opacity: 0;
    transform: rotate(var(--r)) scale(1.9);
  }
  60% {
    opacity: 1;
    transform: rotate(var(--r)) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(var(--r)) scale(1);
  }
}
/* a field sent in full (and the finale): its stamp in the style of the three, beside what it means; a field just
   opened, named on a tape */
.bomark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 2px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(15, 32, 40, 0.06);
}
.bomark[hidden] {
  display: none;
}
.bomark .stamp .ring {
  width: 62px;
  height: 62px;
}
.bomark .stamp .ring b {
  font-size: 13px;
}
.bomark p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  line-height: 1.25;
}
.bomark p b {
  font-weight: 800;
  font-size: 15px;
}
.bomark p span {
  font-weight: 600;
  font-size: 13px;
  opacity: 0.75;
}
.bomark p em {
  font-family: var(--marker);
  font-style: normal;
  font-size: 14px;
  background: var(--tape);
  padding: 3px 8px 2px;
  margin-top: 2px;
  transform: rotate(-2deg);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.boline {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.75;
  text-align: center;
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .stamp.on .ring {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #banner.go {
    animation-timing-function: linear;
  }
  .card {
    transition: none;
  }
}

/* ---------- the clock ---------- */
/* the endless climb: a stopwatch beside the par bar, white, amber as par comes up, red once it has gone */
.progrow {
  display: flex;
  align-items: center;
  gap: 5px;
}
.progrow .prog {
  width: 58px;
}
#watch {
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  min-width: 30px;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  transition: color 0.3s;
}
#watch.near {
  color: #ffb52e;
}
#watch.late {
  color: #ff5d5d;
}
/* the daily race: a clock where the score is, a split under it at each top, no hearts, no multiplier, no par bar */
#split {
  display: none;
}
#hud.race #split {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
  background: rgba(15, 32, 40, 0.6);
  padding: 2px 11px 3px;
  border-radius: 99px;
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#hud.race #split.on {
  opacity: 1;
  transform: none;
}
#hud.race #split.ahead {
  color: #7df0a0;
}
#hud.race #split.behind {
  color: #ff7b6b;
}
/* the live gap to the ghost, beside the clock (race.js gapHud) */
.scorewrap {
  position: relative;
}
#gap {
  display: none;
}
#hud.race #gap.on {
  display: block;
  position: absolute;
  top: 9px;
  left: calc(50% + 76px);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--chalk);
  background: rgba(15, 32, 40, 0.55);
  padding: 3px 7px 4px;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
}
#hud.race #gap.ahead {
  color: #7df0a0;
}
#hud.race #gap.behind {
  color: #ff7b6b;
}
#hud.race #mult,
#hud.race .hearts,
#hud.race .progrow {
  display: none;
}
#over.race .stats dd {
  font-size: 19px;
  white-space: nowrap;
}
.medal {
  display: inline-block;
  width: 17px;
  height: 21px;
  margin-right: 5px;
  vertical-align: -4px;
  filter: drop-shadow(0 1.5px 0 rgba(15, 32, 40, 0.25));
}
#hud.boulder #split {
  display: none;
}

/* ---------- coach: the ghost hand on the forest's lesson problems (src/boulder/coach.js) ---------- */
#coach {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
  overflow: visible;
}
#coach.on {
  display: block;
}
#coach * {
  pointer-events: none;
}
#cHand {
  fill: #fff;
  stroke: rgba(15, 32, 40, 0.45);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
#cArc {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0 10;
}
#cLand,
#cRip,
#cKick {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}
#cDot {
  fill: #fff;
}
#cWord,
#cKickWord {
  font-family: var(--marker);
  font-size: 15px;
  fill: #fff;
  text-anchor: middle;
  stroke: rgba(15, 32, 40, 0.7);
  stroke-width: 3px;
  paint-order: stroke;
}
#cArc,
#cLand,
#cRip,
#cKick,
#cDot,
#cKickWord {
  opacity: 0;
}

/* ---------- the end of a run on a short screen ---------- */
/* She is framed in the clear strip between the HUD and the results card (moments.js frameOver), so on a short phone
   the card packs a little tighter to leave her room: smaller spacing and type, the same rows and buttons. */
@media (max-height: 760px) {
  #over .card {
    padding: 14px 18px 10px;
  }
  #over .kick {
    font-size: 15px;
    margin-bottom: 4px;
  }
  #over .total {
    font-size: 44px;
  }
  #over .stats {
    margin: 8px 0;
  }
  #over .stats div {
    padding: 5px 6px;
  }
  #over .stats dd {
    font-size: 19px;
  }
  #over .projects li {
    padding: 5px 10px;
    font-size: 13px;
  }
  #over .earn {
    margin-top: 6px;
  }
  #over .big {
    font-size: 21px;
    padding: 9px 10px 10px;
    margin-top: 10px;
  }
  #over .share {
    font-size: 18px;
    padding: 7px 10px 8px;
    margin-top: 8px;
  }
  #over .link,
  #boulderOver .link {
    margin-top: 6px;
    font-size: 15px;
    padding: 4px 16px 5px;
  }
  /* a boulder's card, likewise, so she still stands clear above it when it carries a field's stamp */
  #boulderOver .card {
    padding: 14px 18px 10px;
  }
  #boulderOver .kick {
    font-size: 15px;
    margin-bottom: 4px;
  }
  #boulderOver .stamps {
    margin: 10px 0 2px;
  }
  #boulderOver .stamp .ring {
    width: 64px;
    height: 64px;
  }
  #boulderOver .stamp .ring b {
    font-size: 17px;
  }
  #boulderOver .stamp small {
    margin-top: 3px;
    font-size: 10.5px;
  }
  #boulderOver .bomark {
    padding: 5px 10px;
    margin-top: 6px;
  }
  #boulderOver .bomark .stamp .ring {
    width: 46px;
    height: 46px;
  }
  #boulderOver .bomark .stamp .ring b {
    font-size: 10px;
  }
  #boulderOver .boline {
    margin-top: 4px;
  }
  #boulderOver .big {
    font-size: 21px;
    padding: 9px 10px 10px;
    margin-top: 10px;
  }
  #boulderOver .share {
    font-size: 18px;
    padding: 7px 10px 8px;
    margin-top: 8px;
  }
}

/* ---------- the sound check (#sounds; src/audio/check.js builds it) ---------- */
.sndchk .sndnote {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.7;
  margin: 6px 0 2px;
}
.sndchk .sndvoice {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--tape);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.sndchk .sndlist {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sndchk .sndlist li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  background: rgba(15, 32, 40, 0.07);
  border-radius: 13px;
  padding: 6px 10px 6px 6px;
}
.sndchk .sndlist b {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}
.sndchk .sndlist small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.65;
}
.sndchk .sndlist em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  text-align: right;
  max-width: 88px;
  line-height: 1.15;
  opacity: 0.55;
}
.sndchk .sndlist em.rec {
  opacity: 0.9;
  color: #1d6f4c;
}
.sndchk .sndplay {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--chalk);
  font-size: 13px;
}
.sndchk .sndplay:active,
.sndchk .sndplaces button:active {
  transform: scale(0.94);
}
.sndchk .sndplaces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sndchk .sndplaces button {
  padding: 8px 12px;
  border-radius: 99px;
  background: rgba(15, 32, 40, 0.09);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.sndchk .sndplaces button.on {
  background: var(--ink);
  color: var(--tape);
}

/* the share card shown before it is shared: the picture itself, a little askew like a print on a wall */
.card.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}
#shareImg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58vh, 520px);
  border-radius: 14px;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(16, 32, 40, 0.12);
  transform: rotate(-1.2deg);
  margin: 2px 0 16px;
  /* pressing on it brings up the phone's own menu for a picture (save, copy, share) */
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}
.card.poster .big {
  align-self: stretch;
}
.posthint {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.6;
  margin: -6px 0 12px;
  text-align: center;
}
/* only where a finger can press and hold */
@media (hover: hover) and (pointer: fine) {
  .posthint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #shareImg {
    transform: none;
  }
}
