/* bonusradar design tokens: bright green, with pink, yellow and blue as playful accents. */
:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --ink: #13211b;
  --muted: #5b6b64;
  --line: #e3eae6;
  --line-2: #cfdad4;

  --green: #12b76a;
  --green-600: #0a8249;
  --green-700: #06663a;
  --green-800: #054d2c;
  --green-100: #dcf7e9;
  --green-50: #f1fbf6;

  --pink: #ff4f8b;
  --pink-100: #ffe3ee;
  --pink-700: #b8185a;

  --yellow: #ffc53d;
  --yellow-100: #fff3cc;
  --yellow-700: #7a5200;

  --blue: #3b82f6;
  --blue-100: #e3eeff;
  --blue-700: #1d4ed8;

  --orange-100: #ffe9da;
  --orange-700: #b04a0a;

  --gold: linear-gradient(145deg, #ffe68f 0%, #f5bd12 52%, #d99a00 100%);
  --gold-edge: #b88200;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(19 33 27 / 0.05), 0 8px 24px -14px rgb(19 33 27 / 0.2);
  --shadow-hover: 0 2px 4px rgb(19 33 27 / 0.06), 0 18px 34px -16px rgb(10 130 73 / 0.4);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.5 var(--sans);
}

a {
  color: var(--green-600);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(100% - 32px, 1260px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.topbar {
  position: relative;
  z-index: 3;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark {
  width: 40px;
  height: 40px;
  stroke: none;
}

.logo__disc {
  fill: var(--green);
}

.logo__ring {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  opacity: 0.55;
}

.logo__wedge {
  fill: #fff;
  opacity: 0.35;
  transform-box: view-box;
  transform-origin: 20px 20px;
}

.logo:hover .logo__wedge {
  animation: sweep 1.4s linear infinite;
}

@keyframes sweep {
  to {
    rotate: 360deg;
  }
}

.logo__blip {
  fill: var(--yellow);
  stroke: var(--green-800);
  stroke-width: 1.5;
}

.logo__name {
  font: 700 1.6875rem/1 var(--display);
  letter-spacing: -0.02em;
}

.search {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  height: 46px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s;
}

.search:focus-within {
  border-color: var(--green);
  background: var(--surface);
}

.search svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--ink);
  font-weight: 700;
}

.search input::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.topnav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-weight: 800;
}

.topnav a {
  color: var(--ink);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--green-600);
}

/* Hero: the money lies on the street */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f6fcf8 0%, #e2f4e9 100%);
}

.hero__text {
  position: relative;
  z-index: 2;
  padding: 52px 0 0;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line-2);
  color: var(--green-700);
  font-size: 0.875rem;
  font-weight: 800;
}

.hero__title {
  margin: 0;
  font: 700 clamp(2.625rem, 6.6vw, 5.25rem)/1.02 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__mark {
  position: relative;
  display: inline-block;
  color: var(--green-600);
}

.hero__squiggle {
  position: absolute;
  bottom: -0.2em;
  left: 0;
  width: 100%;
  height: 0.28em;
  overflow: visible;
}

/* Visible by default; it only draws itself in when motion is welcome. */
.hero__squiggle path {
  stroke: var(--pink);
  stroke-width: 5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__squiggle path {
    animation: draw 0.9s 0.3s ease-out both;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

.hero__lead {
  max-width: 34em;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 1.1875rem;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.hero__stat {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.hero__stat strong {
  color: var(--ink);
  font-weight: 800;
}

.street {
  --k: 1;
  position: relative;
  height: 210px;
  margin-top: -6px;
}

.street__tiles {
  position: absolute;
  right: -35%;
  bottom: -30px;
  left: -35%;
  height: 380px;
  background-color: #e3eae6;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.9) 3px, transparent 3px),
    linear-gradient(90deg, rgb(255 255 255 / 0.9) 3px, transparent 3px),
    linear-gradient(135deg, rgb(19 33 27 / 0.035), transparent 60%);
  background-position: center bottom;
  background-size: 76px 76px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 42%, transparent 92%);
  mask-image: linear-gradient(to top, #000 42%, transparent 92%);
}

.street__coins {
  position: absolute;
  inset: 0;
}

.coin {
  position: absolute;
  bottom: var(--y);
  left: var(--x);
  width: calc(92px * var(--s) * var(--k));
  translate: -50% 0;
}

.coin__body {
  position: relative;
  animation: bob 3.4s ease-in-out infinite;
  animation-delay: var(--d);
}

.coin__face {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: calc(6px * var(--s) * var(--k));
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.14), 0 3px 0 var(--gold-edge), 0 14px 22px -12px rgb(19 33 27 / 0.55);
  color: var(--gold-edge);
  font: 700 calc(2rem * var(--s) * var(--k)) / 1 var(--display);
}

.coin__face img,
.mini-coin__face img {
  position: absolute;
  inset: calc(6px * var(--s, 1) * var(--k, 1));
  width: calc(100% - 12px * var(--s, 1) * var(--k, 1));
  height: calc(100% - 12px * var(--s, 1) * var(--k, 1));
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.65);
}

.coin__tag {
  position: absolute;
  top: -12px;
  right: -26px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 0 var(--line-2), 0 8px 16px -10px rgb(19 33 27 / 0.45);
  color: var(--green-700);
  font: 700 calc(1rem * var(--k)) / 1 var(--display);
  white-space: nowrap;
  rotate: 8deg;
}

.coin:nth-child(even) .coin__tag {
  right: auto;
  left: -26px;
  rotate: -7deg;
}

.coin__shadow {
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 74%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(19 33 27 / 0.3), transparent);
  translate: -50% 0;
  animation: shadow 3.4s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shadow {
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

/* Layout: filters, feed and the personal tally */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 32px 0 56px;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .filters,
  .feed {
    grid-column: 1;
  }

  .side {
    position: sticky;
    top: 20px;
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (min-width: 1200px) {
  .layout {
    grid-template-columns: 236px minmax(0, 1fr) 320px;
  }

  .filters {
    position: sticky;
    top: 20px;
    grid-column: 1;
    grid-row: 1;
  }

  .feed {
    grid-column: 2;
    grid-row: 1;
  }

  .side {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Filters */
.filters {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filters__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.filters__title {
  font: 600 1.1875rem var(--display);
}

.filters__active {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.filters__active:empty {
  display: none;
}

.chev {
  width: 20px;
  height: 20px;
  margin-left: auto;
  stroke-width: 2.2;
  transition: rotate 0.15s;
}

.filters.is-open .chev {
  rotate: 180deg;
}

.filters__body {
  display: none;
  padding: 0 18px 18px;
}

.filters.is-open .filters__body {
  display: block;
}

@media (min-width: 1200px) {
  .filters__toggle {
    cursor: default;
    pointer-events: none;
  }

  .filters__toggle .chev {
    display: none;
  }

  .filters__body {
    display: block;
  }
}

.fgroup {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.fgroup__title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-weight: 700;
  cursor: pointer;
}

.switch input {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-2);
  appearance: none;
  cursor: pointer;
  transition: background 0.15s;
}

.switch input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: translate 0.15s;
}

.switch input:checked {
  background: var(--green-600);
}

.switch input:checked::before {
  translate: 16px 0;
}

.switch__label {
  flex: 1;
  line-height: 1.3;
}

.switch__count,
.level small {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.level {
  position: relative;
}

.level input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.level span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 800;
  transition: border-color 0.15s, background 0.15s;
}

.level input:checked + span {
  border-color: var(--green-600);
  background: var(--green-100);
  color: var(--green-700);
}

.level input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range input {
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(var(--green-600), var(--green-600)) 0 / var(--fill, 0%) 100% no-repeat,
    var(--line);
  appearance: none;
  cursor: pointer;
}

.range input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--green-600);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 0 var(--green-800);
  appearance: none;
}

.range input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--green-600);
  border-radius: 50%;
  background: #fff;
}

.range output {
  min-width: 72px;
  font-size: 0.875rem;
  font-weight: 800;
  text-align: right;
}

.reset {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-600);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Feed header and categories */
.feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.feed__title {
  margin: 0;
  font: 700 clamp(1.75rem, 3vw, 2.25rem)/1.05 var(--display);
  letter-spacing: -0.02em;
}

.feed__sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.feed__sub strong {
  color: var(--ink);
  font-weight: 800;
}

.feed__sub .money {
  color: var(--green-600);
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 700;
}

.sort select {
  padding: 9px 38px 9px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%2313211b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  color: var(--ink);
  font-weight: 800;
  appearance: none;
  cursor: pointer;
}

.cats {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cat {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 5px 5px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  transition: translate 0.12s, border-color 0.12s, background 0.12s;
}

.cat:hover {
  border-color: var(--line-2);
  translate: 0 -1px;
}

.cat[aria-pressed="true"] {
  border-color: var(--green-600);
  background: var(--green-600);
  box-shadow: 0 3px 0 var(--green-800);
  color: #fff;
}

.cat__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.cat__icon svg {
  width: 15px;
  height: 15px;
}

.cat__icon--yellow { background: var(--yellow-100); color: var(--yellow-700); }
.cat__icon--blue { background: var(--blue-100); color: var(--blue-700); }
.cat__icon--orange { background: var(--orange-100); color: var(--orange-700); }
.cat__icon--green { background: var(--green-100); color: var(--green-700); }
.cat__icon--pink { background: var(--pink-100); color: var(--pink-700); }

.cat[aria-pressed="true"] .cat__icon {
  background: rgb(255 255 255 / 0.2);
  color: #fff;
}

.cat__count {
  font-weight: 700;
  opacity: 0.6;
}

/* Bonus rows */
.rows {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: translate 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.row:hover {
  border-color: var(--green-100);
  box-shadow: var(--shadow-hover);
  translate: 0 -2px;
}

.row.is-claimed {
  border-color: var(--green-100);
  background: var(--green-50);
}

.row__main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 20px 20px 16px;
}

.row__logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--t-bg);
  color: var(--t-fg);
  font: 700 1.75rem/1 var(--display);
}

.row__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A hairline keeps light logos from blending into the white card. */
.row__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(19 33 27 / 0.08);
  pointer-events: none;
}

.t0 { --t-bg: var(--blue-100); --t-fg: var(--blue-700); }
.t1 { --t-bg: var(--pink-100); --t-fg: var(--pink-700); }
.t2 { --t-bg: var(--yellow-100); --t-fg: var(--yellow-700); }
.t3 { --t-bg: var(--green-100); --t-fg: var(--green-700); }
.t4 { --t-bg: var(--orange-100); --t-fg: var(--orange-700); }

.row__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.row__name {
  margin: 0;
  font: 600 1.375rem/1.15 var(--display);
}

.row__meta {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.row__unchecked {
  color: var(--orange-700);
  white-space: nowrap;
}

.row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.chip svg {
  width: 13px;
  height: 13px;
}

.chip--top { background: var(--green-100); color: var(--green-700); }
.chip--good { background: var(--blue-100); color: var(--blue-700); }
.chip--fair { background: var(--surface-2); color: var(--muted); }
.chip--new { background: var(--pink-100); color: var(--pink-700); }
.chip--fast { background: var(--yellow-100); color: var(--yellow-700); }
.chip--nodeposit { background: var(--blue-100); color: var(--blue-700); }
.chip--soon { background: var(--orange-100); color: var(--orange-700); }

.row__task {
  margin: 12px 0 0;
  font-weight: 600;
}

.facts {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -2px 0 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.row.is-claimed .facts {
  background: rgb(255 255 255 / 0.75);
}

.facts div {
  display: grid;
  align-content: start;
  gap: 2px;
}

.facts dt {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.3;
}

.dots {
  display: inline-flex;
  gap: 3px;
  margin-right: 5px;
  vertical-align: 1px;
}

.dots i {
  width: 9px;
  height: 9px;
  border: 2px solid var(--green-600);
  border-radius: 50%;
}

.dots i.on {
  background: var(--green-600);
}

.row__value {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 2px;
  min-width: 150px;
  text-align: right;
}

.row__amount {
  color: var(--green-600);
  font: 700 2.875rem/1 var(--display);
  letter-spacing: -0.02em;
}

.row__amount small {
  margin-right: 2px;
  font-size: 0.55em;
  vertical-align: 0.55em;
}

.row__upto {
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0;
}

.row.is-claimed .row__amount {
  color: var(--muted);
}

.row__note {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.row__value .btn {
  margin-top: 14px;
}

/* Chunky, pressable button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--green-600);
  box-shadow: 0 4px 0 var(--green-800);
  color: #fff;
  font: 600 1.0625rem/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: translate 0.08s, box-shadow 0.08s, background 0.15s;
}

.btn:hover {
  background: #0b9152;
}

.btn:active {
  box-shadow: 0 1px 0 var(--green-800);
  translate: 0 3px;
}

.btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.btn--big {
  padding: 16px 26px;
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--green-800);
  font-size: 1.1875rem;
}

.btn--big:active {
  box-shadow: 0 1px 0 var(--green-800);
  translate: 0 4px;
}

.row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 20px;
  border-top: 2px dashed var(--line);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pill:hover {
  border-color: var(--line-2);
}

.pill svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: rotate 0.15s;
}

.like[aria-pressed="true"] {
  border-color: var(--pink);
  background: var(--pink-100);
  color: var(--pink-700);
}

.like[aria-pressed="true"] svg {
  fill: currentColor;
}

.like.is-bumping svg {
  animation: bump 0.35s ease-out;
}

@keyframes bump {
  50% {
    scale: 1.4;
  }
}

.claim[aria-pressed="true"] {
  border-color: var(--green-600);
  background: var(--green-600);
  color: #fff;
}

.more {
  margin-left: auto;
}

.more[aria-expanded="true"] svg {
  rotate: 180deg;
}

.row__details {
  display: grid;
  gap: 14px;
  padding: 4px 20px 20px 102px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font: 700 0.9375rem/1 var(--display);
}

.extra {
  display: grid;
  gap: 6px;
  margin: 0;
}

.extra div {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 12px;
}

.extra dt {
  color: var(--muted);
  font-weight: 700;
}

.extra dd {
  margin: 0;
  font-weight: 600;
}

.note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--yellow-100);
  color: var(--yellow-700);
  font-weight: 700;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.empty {
  padding: 36px 20px;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.empty p {
  margin: 0 0 14px;
}

/* The personal tally: what is still up for grabs */
.side {
  display: grid;
  gap: 16px;
}

.tally {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: var(--green-700);
  box-shadow: 0 6px 0 var(--green-800), 0 18px 40px -18px rgb(6 102 58 / 0.6);
  color: #fff;
}

/* A faint pavement pattern, fading out towards the bottom. */
.tally::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.07) 2px, transparent 2px),
    linear-gradient(90deg, rgb(255 255 255 / 0.07) 2px, transparent 2px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%);
  mask-image: linear-gradient(#000, transparent 70%);
  pointer-events: none;
}

.tally > * {
  position: relative;
}

.tally__label {
  margin: 0;
  font: 600 0.875rem var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.tally__amount {
  margin: 4px 0 16px;
  font: 700 3.5rem/1 var(--display);
  letter-spacing: -0.02em;
  text-shadow: 0 3px 0 rgb(5 77 44 / 0.45);
}

.tally__coins {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mini-coin {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  text-decoration: none;
}

.mini-coin__face {
  --s: 0.5;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 3px 0 var(--gold-edge);
  color: var(--gold-edge);
  font: 700 1.125rem/1 var(--display);
  transition: filter 0.4s, opacity 0.4s;
}

.mini-coin:hover .mini-coin__face {
  translate: 0 -2px;
}

.mini-coin.is-claimed .mini-coin__face {
  filter: grayscale(1);
  opacity: 0.45;
}

.mini-coin.is-claimed::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.3 2.6 2.6L12 5.4' fill='none' stroke='%2313211b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 0 0 2px var(--green-700);
}

.mini-coin.is-popping {
  animation: coin-pop 0.55s ease-out;
}

@keyframes coin-pop {
  40% {
    transform: scale(1.3) rotate(-10deg);
  }
}

.tally__bar {
  display: flex;
  gap: 3px;
  height: 12px;
}

.tally__bar span {
  flex: var(--w) 1 0%;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  transition: background 0.4s;
}

.tally__bar span.is-claimed {
  background: var(--yellow);
}

.tally__meta {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.tally__tip {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.13);
  font-size: 0.9375rem;
  font-weight: 700;
}

.tally__tip a {
  color: #fff;
  font-weight: 800;
}

.tally__fine {
  margin: 12px 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.tally__float {
  position: absolute;
  top: 70px;
  right: 22px;
  color: var(--yellow);
  font: 700 1.375rem var(--display);
  white-space: nowrap;
  pointer-events: none;
  animation: float-up 1.1s ease-out forwards;
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

.confetti {
  position: fixed;
  z-index: 60;
  width: 8px;
  height: 12px;
  margin: -6px 0 0 -4px;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti 0.9s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}

@keyframes confetti {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
  }
}

.side-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.side-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.side-card__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.side-card__icon--pink { background: var(--pink-100); color: var(--pink-700); }
.side-card__icon--yellow { background: var(--yellow-100); color: var(--yellow-700); }

.side-card h2 {
  margin: 1px 0 4px;
  font: 600 1.0625rem/1.25 var(--display);
}

.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9063rem;
  font-weight: 600;
}

/* How it works and FAQ */
.band {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.band--soft {
  background: var(--bg);
}

.band__title {
  margin: 0 0 22px;
  font: 700 clamp(1.75rem, 3vw, 2.375rem)/1.1 var(--display);
  letter-spacing: -0.02em;
}

.how {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

@media (min-width: 760px) {
  .how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.how li {
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  counter-increment: how;
}

.how li::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--green-600);
  box-shadow: 0 4px 0 var(--green-800);
  color: #fff;
  font: 700 1.5rem/1 var(--display);
  rotate: -4deg;
}

.how li:nth-child(2)::before {
  background: var(--pink);
  box-shadow: 0 4px 0 var(--pink-700);
  rotate: 3deg;
}

.how li:nth-child(3)::before {
  background: var(--yellow);
  box-shadow: 0 4px 0 #c48f0c;
  color: var(--ink);
  rotate: -2deg;
}

.how h3 {
  margin: 0 0 6px;
  font: 600 1.25rem var(--display);
}

.how p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.faq-wrap {
  max-width: 860px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font: 600 1.125rem var(--display);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font: 700 1.25rem/1 var(--display);
  transition: rotate 0.15s;
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 36px 0 48px;
  background: var(--ink);
  color: rgb(255 255 255 / 0.78);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer__inner {
  display: grid;
  gap: 10px;
}

.footer p {
  max-width: 60em;
  margin: 0;
}

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  color: #fff;
  font: 700 1.625rem var(--display);
}

.footer__brand span {
  color: rgb(255 255 255 / 0.72);
  font: 600 0.875rem var(--sans);
}

.footer a {
  color: #fff;
}

/* Tally bar on small screens */
.tally-bar {
  display: none;
}

@media (max-width: 899px) {
  .tally-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 16px;
    border-radius: 18px;
    background: var(--green-700);
    box-shadow: 0 5px 0 var(--green-800), 0 14px 30px -10px rgb(0 0 0 / 0.4);
    color: #fff;
  }

  .tally-bar__label,
  .tally-bar__meta {
    white-space: nowrap;
  }

  .tally-bar__label {
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .tally-bar__amount {
    font: 700 1.375rem/1 var(--display);
  }

  .tally-bar__meta {
    font-size: 0.8125rem;
    font-weight: 700;
    opacity: 0.85;
  }

  .tally-bar__link {
    margin-left: auto;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--ink);
    font: 600 0.9375rem var(--display);
    text-decoration: none;
  }

  body {
    padding-bottom: 88px;
  }
}

@media (max-width: 859px) {
  .topbar__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 14px;
  }

  .topnav {
    display: none;
  }

  .search {
    flex-basis: 100%;
    order: 3;
    max-width: none;
  }
}

@media (max-width: 639px) {
  .hero__text {
    padding-top: 32px;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .street {
    --k: 0.68;
    height: 150px;
  }

  .row__main {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 16px 16px 12px;
  }

  .row__logo {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 1.5rem;
  }

  /* Only the name sits next to the logo; the rest of the card uses the full width. */
  .row__body {
    display: contents;
  }

  .row__top {
    grid-column: 2;
    align-self: center;
  }

  .row__chips,
  .row__task,
  .facts {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  /* On phones, read the facts before the button. */
  .facts {
    order: 1;
  }

  .row__value {
    order: 2;
  }

  .row__value {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    gap: 10px;
    min-width: 0;
    text-align: left;
  }

  .row__amount {
    font-size: 2.25rem;
  }

  .row__note {
    line-height: 1.2;
  }

  .row__value .btn {
    grid-column: 3;
    margin: 0;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .row__actions {
    padding: 12px 16px;
  }

  .more {
    margin-left: 0;
  }

  .more__long {
    display: none;
  }

  .row__details {
    padding: 4px 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
