:root {
  color-scheme: dark;
  --bg: #101310;
  --surface: #1a1e1a;
  --surface-raised: #242923;
  --line: #343a33;
  --line-soft: #252a25;
  --text: #f4f0e7;
  --muted: #a7aaa0;
  --faint: #747970;
  --wood: #b9652b;
  --wood-light: #e7a75f;
  --brass: #d7b46a;
  --sage: #99b18d;
  --danger: #dc8e7b;
  --focus: #f2c77f;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 80px minmax(calc(100svh - 180px), auto) auto 50px;
  overflow: visible;
}

.city-section {
  width: 100%;
  padding: 88px 0 96px;
  border-top: 1px solid var(--line);
  background: #141814;
}

.city-inner {
  width: min(100% - 64px, 1120px);
  margin-inline: auto;
}

.city-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.city-header h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 36px;
  line-height: 1.25;
}

.city-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.city-brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.city-dot:focus-visible,
.modal-close:focus-visible,
.copy-button:focus-visible,
.reward-link:focus-visible,
.reward-done:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.city-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: start;
}

.city-map-wrap {
  min-width: 0;
}

.city-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1.58 / 1;
  overflow: hidden;
  border-top: 1px solid #384039;
  border-bottom: 1px solid #384039;
  background: #0c120f;
  isolation: isolate;
}

.china-map-base,
.map-grid,
.city-points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.china-map-base {
  z-index: 0;
  object-fit: contain;
  opacity: .52;
}

.map-grid {
  z-index: 0;
  border-right: 1px solid rgba(153, 177, 141, .1);
  border-left: 1px solid rgba(153, 177, 141, .1);
}

.map-grid::before,
.map-grid::after {
  content: "";
  position: absolute;
  background: rgba(153, 177, 141, .09);
}

.map-grid::before {
  left: 33.333%;
  right: 33.333%;
  top: 0;
  bottom: 0;
  border-right: 1px solid rgba(153, 177, 141, .09);
  border-left: 1px solid rgba(153, 177, 141, .09);
  background: transparent;
}

.map-grid::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.city-points {
  z-index: 2;
}

.city-dot {
  position: absolute;
  left: var(--city-x);
  top: var(--city-y);
  width: var(--city-size);
  height: var(--city-size);
  padding: 0;
  border: 1px solid rgba(255, 226, 170, .78);
  border-radius: 50%;
  background: var(--city-color, #efad5d);
  opacity: var(--city-opacity);
  box-shadow: 0 0 var(--city-glow) var(--city-glow-color, rgba(239, 173, 93, .9));
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.city-dot::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
}

.city-dot.is-current {
  border-color: #d9f4f0;
  background: #78c7bd;
  box-shadow: 0 0 var(--city-glow) rgba(120, 199, 189, .95);
}

.city-dot:hover,
.city-dot:focus-visible,
.city-dot.is-selected {
  z-index: 3;
  opacity: 1;
}

.map-empty {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

.map-empty[hidden],
.map-tooltip[hidden] {
  display: none;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  left: var(--tooltip-x);
  top: var(--tooltip-y);
  width: max-content;
  max-width: 190px;
  padding: 9px 11px;
  border: 1px solid #4d574e;
  border-radius: 4px;
  color: var(--text);
  background: #1d231e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  font-size: 12px;
  line-height: 1.65;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.map-tooltip strong,
.map-tooltip span {
  display: block;
}

.map-tooltip span {
  color: var(--muted);
}

.city-note {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.city-ranking {
  min-width: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.ranking-heading {
  min-height: 42px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ranking-heading h3 {
  margin: 0;
  font-size: 15px;
}

.ranking-heading span {
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-index {
  display: grid;
  align-content: center;
  gap: 2px;
  color: var(--faint);
  line-height: 1;
}

.ranking-index small {
  color: #62685f;
  font-size: 7px;
  font-weight: 700;
}

.ranking-index strong {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.ranking-city {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ranking-city strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-city small {
  color: var(--faint);
  font-size: 9px;
}

.ranking-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  color: var(--wood-light);
  white-space: nowrap;
}

.ranking-count strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ranking-count small {
  color: var(--faint);
  font-size: 8px;
  font-weight: 400;
}

.ranking-placeholder {
  display: block !important;
  padding: 20px 0;
  color: var(--faint);
  font-size: 12px;
}

.current-city-label {
  color: #78c7bd;
}

.ranking-heading-actions {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.ranking-more {
  padding: 0;
  border: 0;
  color: var(--wood-light);
  background: transparent;
  font: inherit;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  text-underline-offset: 4px;
}

.ranking-more:hover {
  color: var(--text);
  text-decoration: underline;
}

.ranking-more:focus-visible,
.city-ranking-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.city-ranking-modal .city-ranking-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 680px);
  height: min(760px, calc(100svh - 48px));
  max-height: none;
  overflow: hidden;
  padding: 0;
  border-color: #555744;
  background: var(--surface);
}

.city-ranking-header {
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--line);
}

.city-ranking-dialog .city-ranking-header h2 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 500;
}

.city-ranking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.city-ranking-date,
.city-ranking-summary {
  margin: 0;
  white-space: nowrap;
}

.city-ranking-summary {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.city-ranking-summary strong {
  color: var(--wood-light);
  font-size: inherit;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.city-ranking-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555d50 var(--surface);
  scrollbar-gutter: stable;
  padding: 0 20px;
  outline-offset: -3px;
}

.city-ranking-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.city-rank-col { width: 64px; }
.city-people-col { width: 110px; }
.city-knocks-col { width: 150px; }

.city-ranking-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  background: var(--surface);
  text-align: left;
  font-size: 11px;
  font-weight: 400;
}

.city-ranking-table tr > :nth-child(n + 3) {
  text-align: right;
}

.city-ranking-table tbody td,
.city-ranking-table tbody th {
  height: 58px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}

.city-ranking-table tbody tr:hover {
  background: rgba(153, 177, 141, .045);
}

.full-ranking-position {
  color: var(--faint);
  font-family: Georgia, serif;
  font-size: 20px;
}

.full-ranking-city {
  text-align: left;
  font-weight: 400;
}

.full-ranking-city strong { font-weight: 500; }
.full-ranking-people { color: var(--muted); }
.full-ranking-knocks { color: var(--text); font-weight: 600; }
.city-ranking-table .is-leading .full-ranking-position { color: var(--brass); }
.city-ranking-table .is-leading .full-ranking-knocks { color: var(--wood-light); }
.city-ranking-table tbody tr.is-current {
  background: #2b3b2e;
}

.city-ranking-table tbody tr.is-current:hover {
  background: #344835;
}

.city-ranking-table .is-current > td,
.city-ranking-table .is-current > th {
  box-shadow: inset 0 1px #53674a, inset 0 -1px #53674a;
  border-bottom-color: transparent;
}

.city-ranking-table .is-current > :first-child {
  box-shadow: inset 4px 0 #bddc9f, inset 0 1px #53674a, inset 0 -1px #53674a;
}

.city-ranking-table .is-current .full-ranking-position,
.city-ranking-table .is-current .full-ranking-knocks {
  color: #d8edc7;
  font-weight: 700;
}

.city-ranking-table .is-current .full-ranking-city strong {
  color: #f4f6ec;
  font-weight: 700;
}

.city-ranking-table .is-current .full-ranking-people {
  color: #c6d5be;
}

.full-ranking-current {
  display: block;
  margin-top: 4px;
  color: #bddc9f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.city-ranking-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 16px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.city-ranking-empty {
  margin: 40px 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.city-ranking-location-note {
  flex-basis: 100%;
  color: var(--faint);
}

.mobile-ranking-toggle {
  display: none;
}

@media (max-width: 700px) {
  .city-ranking-modal.reward-modal {
    padding: 24px clamp(20px, 6vw, 28px);
    padding-left: max(clamp(20px, 6vw, 28px), env(safe-area-inset-left));
    padding-right: max(clamp(20px, 6vw, 28px), env(safe-area-inset-right));
  }

  .mobile-ranking-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin: 6px auto 4px;
    padding: 0 16px;
    border: 1px solid rgba(215, 180, 106, .24);
    border-radius: 24px;
    color: var(--brass);
    background: rgba(215, 180, 106, .045);
    font: inherit;
    font-size: 12px;
    letter-spacing: .04em;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-ranking-toggle:hover,
  .mobile-ranking-toggle:active {
    border-color: rgba(215, 180, 106, .48);
    background: rgba(215, 180, 106, .09);
  }

  .mobile-ranking-toggle:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }

  .mobile-ranking-glyph {
    display: flex;
    align-items: end;
    gap: 3px;
    width: 16px;
    height: 15px;
  }

  .mobile-ranking-glyph i {
    width: 3px;
    height: 9px;
    border-radius: 1px;
    background: currentColor;
    opacity: .8;
  }

  .mobile-ranking-glyph i:nth-child(2) { height: 15px; }
  .mobile-ranking-glyph i:nth-child(3) { height: 6px; }

  .mobile-ranking-chevron {
    width: 6px;
    height: 6px;
    margin-left: 2px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
  }
}

@media (max-width: 700px) {
  .city-ranking-modal.reward-modal {
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .city-ranking-modal .city-ranking-dialog {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 78vh;
    max-height: min(600px, 78svh, calc(100svh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  }
  .city-ranking-header { flex: 0 0 auto; padding: 18px 16px 12px; }
  .city-ranking-dialog .city-ranking-header h2 { margin: 0 40px 8px 0; font-size: 20px; line-height: 1.35; }
  .city-ranking-dialog .modal-close { top: 8px; right: 8px; width: 44px; height: 44px; }
  .city-ranking-meta { column-gap: 8px; }
  .city-ranking-summary { padding-left: 8px; }
  .city-ranking-scroll { flex: 0 1 auto; padding: 0 8px; -webkit-overflow-scrolling: touch; }
  .city-rank-col { width: 38px; }
  .city-people-col { width: 62px; }
  .city-knocks-col { width: 90px; }
  .city-ranking-table { font-size: 12px; }
  .city-ranking-table thead th { padding: 10px 5px; font-size: 10px; }
  .city-ranking-table tbody td,
  .city-ranking-table tbody th { height: 48px; padding: 9px 5px; }
  .full-ranking-position { font-size: 17px; }
  .city-ranking-footer { flex: 0 0 auto; gap: 4px 12px; padding: 10px 16px; }
  .city-ranking-empty { margin: 24px 0; }
}

/* Short touch screens keep a useful list area when the phone is rotated. */
@media (max-height: 480px) and (orientation: landscape) and (pointer: coarse) {
  .city-ranking-modal .city-ranking-dialog {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100svh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .city-ranking-header { flex: 0 0 auto; padding: 12px 18px 10px; }
  .city-ranking-dialog .city-ranking-header h2 { margin: 0 36px 5px 0; font-size: 20px; line-height: 1.35; }
  .city-ranking-dialog .modal-close { top: 6px; right: 8px; width: 44px; height: 44px; }
  .city-ranking-scroll { flex: 0 1 auto; -webkit-overflow-scrolling: touch; }
  .city-ranking-footer { flex: 0 0 auto; padding: 8px 18px; }
}

@media (max-width: 360px) {
  .city-rank-col { width: 36px; }
  .city-people-col { width: 56px; }
  .city-knocks-col { width: 80px; }
}

.reward-modal[hidden] {
  display: none;
}

.reward-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.reward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 5, .82);
}

.reward-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: 32px;
  border: 1px solid #5f5541;
  border-radius: 8px;
  background: #1c211c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.modal-close span,
.copy-button span,
.reward-link span {
  display: inline-block;
  width: 19px;
  height: 19px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.modal-close span {
  mask-image: url("../icons/x.svg");
  -webkit-mask-image: url("../icons/x.svg");
}

.reward-kicker {
  margin: 0 48px 8px 0;
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
}

.reward-dialog h2 {
  margin: 0 48px 24px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
}

.reward-items {
  display: block;
}

.reward-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 17px 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #141814;
}

.reward-media {
  width: calc(100% + 34px);
  margin: 0 -17px 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #101310;
}

.reward-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.reward-item[data-reward-type="unique_code"] .reward-media img {
  object-fit: contain;
  padding: 18px;
}

.reward-item-header {
  margin-bottom: 13px;
}

.reward-type {
  margin: 0 0 4px;
  color: var(--sage);
  font-size: 9px;
  font-weight: 700;
}

.reward-item h3 {
  margin: 0;
  padding-right: 10px;
  font-size: 15px;
}

.reward-loading,
.reward-error,
.reward-instructions {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.reward-error {
  color: var(--danger);
}

.credential-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 38px;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--line-soft);
}

.credential-row > span:first-child {
  color: var(--faint);
  font-size: 10px;
}

.credential-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  user-select: all;
}

.copy-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.copy-button span {
  mask-image: url("../icons/copy.svg");
  -webkit-mask-image: url("../icons/copy.svg");
}

.copy-button.is-copied {
  color: var(--sage);
}

.copy-button.is-copied span {
  mask-image: url("../icons/check.svg");
  -webkit-mask-image: url("../icons/check.svg");
}

.copy-button.has-copy-error {
  color: var(--danger);
}

.copy-feedback {
  position: absolute;
  z-index: 2;
  right: 38px;
  top: 50%;
  max-width: calc(100% - 92px);
  overflow: hidden;
  color: var(--sage);
  background: #141814;
  font-size: 10px;
  line-height: 1.4;
  opacity: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
  pointer-events: none;
}

.copy-feedback.is-visible {
  opacity: 1;
}

.reward-link,
.reward-done {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #9c713c;
  border-radius: 5px;
  color: #171816;
  background: var(--wood-light);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.reward-link-form {
  margin: auto 0 0;
  padding-top: 12px;
}

.reward-link {
  width: 100%;
}

.reward-link span {
  mask-image: url("../icons/external-link.svg");
  -webkit-mask-image: url("../icons/external-link.svg");
}

.reward-warning {
  margin: 18px 0 14px;
  color: #d8b97f;
  font-size: 11px;
  line-height: 1.7;
}

.reward-done {
  width: 100%;
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-raised);
}

/* Reward-only layout: other dialogs share the base classes above. */
#reward-modal {
  overflow: hidden;
  padding: 24px 18px;
  padding: calc(24px + env(safe-area-inset-top, 0px))
    calc(18px + env(safe-area-inset-right, 0px))
    calc(24px + env(safe-area-inset-bottom, 0px))
    calc(18px + env(safe-area-inset-left, 0px));
}

#reward-modal .reward-dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 64px);
  max-height: min(620px, calc(100svh - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  overflow: hidden;
  padding: 24px;
  border-color: #746344;
  border-radius: 16px;
  background: linear-gradient(145deg, #272b22, #1c211c 55%);
  transform-origin: center;
}

#reward-modal .reward-heading,
#reward-modal .reward-footer {
  flex: 0 0 auto;
}

#reward-modal .reward-kicker {
  margin-bottom: 5px;
  color: var(--brass);
}

#reward-modal h2 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.35;
}

#reward-modal .modal-close {
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
}

#reward-modal .reward-items {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#reward-modal .reward-items:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

#reward-modal .reward-item {
  padding: 12px;
  border-radius: 10px;
}

#reward-modal .reward-summary {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#reward-modal .reward-media {
  flex: 0 0 128px;
  width: 128px;
  height: 72px;
  margin: 0 12px 0 0;
  border: 0;
  border-radius: 6px;
}

#reward-modal .reward-media img {
  padding: 0;
  object-fit: contain;
}

#reward-modal .reward-item-header {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

#reward-modal .reward-type {
  font-size: 10px;
}

#reward-modal .reward-item h3 {
  padding: 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#reward-modal .credential-row {
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  min-height: 44px;
}

#reward-modal .credential-value {
  word-break: break-all;
}

#reward-modal .copy-button {
  width: 44px;
  height: 44px;
}

#reward-modal .reward-instructions,
#reward-modal .reward-error {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#reward-modal .reward-warning {
  margin: 12px 0 10px;
  line-height: 1.6;
}

#reward-modal .reward-done,
#reward-modal .reward-link {
  min-height: 44px;
}

#reward-modal .reward-done {
  color: #232319;
  border-color: #c3a468;
  background: #d7b879;
}

#reward-modal.is-entering .reward-dialog {
  animation: reward-spin-in 620ms ease-out backwards;
}

#reward-modal.is-entering .reward-backdrop {
  animation: reward-backdrop-in 180ms ease-out backwards;
}

/* Complete most rotation while small, then settle at reading size. */
@keyframes reward-spin-in {
  0% { opacity: 0; transform: rotate(-360deg) scale(.16); }
  58% { opacity: 1; transform: rotate(-28deg) scale(.48); }
  82% { opacity: 1; transform: rotate(0deg) scale(1.025); }
  100% { opacity: 1; transform: none; }
}

@keyframes reward-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 560px) {
  #reward-modal .reward-dialog { max-width: 400px; padding: 20px 16px 16px; }
  #reward-modal h2 { margin-bottom: 14px; font-size: 21px; }
  #reward-modal .reward-media { flex-basis: 112px; width: 112px; height: 63px; margin-right: 10px; }
  #reward-modal .reward-item h3 { font-size: 14px; }
}

@media (max-width: 350px) {
  #reward-modal .reward-media { flex-basis: 88px; width: 88px; height: 50px; }
}

@media (max-height: 480px) {
  #reward-modal .reward-dialog { padding: 14px 16px; }
  #reward-modal .reward-kicker { display: none; }
  #reward-modal h2 { margin-bottom: 10px; font-size: 20px; }
  #reward-modal .reward-warning { margin: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  #reward-modal.is-entering .reward-dialog,
  #reward-modal.is-entering .reward-backdrop { animation: none; }
}

.share-dialog {
  width: min(100%, 460px);
}

.share-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 24px;
  border: 1px solid #705838;
  border-radius: 6px;
  background: #151a15;
  text-align: center;
}

.share-card::after {
  content: "功德自有回响";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(231, 167, 95, .36);
  font-family: Georgia, "Songti SC", serif;
  font-size: 10px;
}

.share-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
  font-weight: 700;
}

.share-card-mark {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.share-card-date {
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.share-card-count {
  color: var(--wood-light);
  font-family: Georgia, "Songti SC", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.share-card-unit {
  margin-top: 6px;
  color: var(--faint);
  font-size: 11px;
}

.share-card-detail,
.share-card-banter {
  max-width: 100%;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.share-card-banter {
  margin-top: 5px;
  color: var(--wood-light);
  font-family: Georgia, "Songti SC", serif;
}

.share-copy {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--sage);
  font-size: 11px;
  text-align: center;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.share-actions .reward-done {
  min-width: 0;
  gap: 7px;
  padding: 0 10px;
  white-space: nowrap;
}

.share-actions .share-native[style*="display: none"] + .share-copy-button {
  grid-column: 1 / -1;
}

body.has-modal {
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  z-index: 0;
  top: 80px;
  bottom: 50px;
  width: 1px;
  background: var(--line-soft);
  pointer-events: none;
}

.site-shell::before {
  left: max(24px, calc(50% - 590px));
}

.site-shell::after {
  right: max(24px, calc(50% - 590px));
}

.site-header,
.site-footer,
.main-stage {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #73502f;
  border-radius: 4px;
  color: var(--wood-light);
  background: #211c17;
  font-family: Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 700;
}

.brand-copy small {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: #60675d;
  background: var(--surface-raised);
}

.icon-button:active {
  transform: scale(.94);
}

.icon-button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.woodfish-button:focus-visible {
  outline: none;
  filter:
    drop-shadow(0 0 4px rgba(242, 199, 127, .72))
    drop-shadow(0 0 14px rgba(242, 199, 127, .32));
}

.sound-glyph {
  width: 21px;
  height: 21px;
  display: block;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.sound-glyph-on {
  mask-image: url("../icons/volume-2.svg");
  -webkit-mask-image: url("../icons/volume-2.svg");
}

.sound-glyph-off {
  display: none;
  mask-image: url("../icons/volume-x.svg");
  -webkit-mask-image: url("../icons/volume-x.svg");
}

.share-glyph,
.share-action-glyph,
.favorite-glyph,
.copy-action-glyph {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.share-glyph,
.share-action-glyph {
  mask-image: url("../icons/share-2.svg");
  -webkit-mask-image: url("../icons/share-2.svg");
}

.favorite-glyph {
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  mask: url("../icons/bookmark.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/bookmark.svg") center / contain no-repeat;
}

.copy-action-glyph {
  mask-image: url("../icons/copy.svg");
  -webkit-mask-image: url("../icons/copy.svg");
}

.icon-button[aria-pressed="true"] .sound-glyph-on {
  display: none;
}

.icon-button[aria-pressed="true"] .sound-glyph-off {
  display: block;
}

.main-stage {
  width: min(100% - 64px, 1120px);
  min-height: 0;
  margin-inline: auto;
  padding: 34px 0 30px;
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr);
  grid-template-rows: auto auto auto;
  gap: 28px 56px;
  align-content: center;
  align-items: center;
}

.intro-section {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(153, 177, 141, .11);
}

.intro-section h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 58px;
  line-height: 1.12;
  font-weight: 700;
}

.interaction-prompt {
  min-height: 24px;
  margin: 16px 0 0;
  color: #b7baaf;
  font-size: 17px;
  line-height: 1.55;
}

.counter-section {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  min-height: 174px;
  padding: 24px 12px 20px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.counter-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: var(--wood-light);
}

.counter-label {
  margin: 0 0 2px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
}

.counter-value {
  min-height: 104px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
}

.counter-value > span {
  color: var(--wood-light);
  font-size: 15px;
  font-weight: 700;
}

.total-count {
  min-width: 0;
  min-height: 104px;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 1.05;
  font-weight: 400;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--wood-light);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .32);
  white-space: nowrap;
  transition: font-size 160ms ease;
}

.total-count.is-long {
  font-size: 72px;
}

.total-count.is-very-long {
  font-size: 54px;
}

.woodfish-section {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
  min-height: 500px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.woodfish-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 3%;
  top: 79%;
  height: 1px;
  background: var(--line);
}

.woodfish-button {
  position: relative;
  width: min(49vw, 610px);
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

#woodfish-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 78%;
  pointer-events: none;
}

.woodfish-shadow {
  position: absolute;
  z-index: 0;
  left: 16%;
  right: 13%;
  bottom: 9%;
  height: 10%;
  border-radius: 50%;
  background: #050605;
  opacity: .72;
  filter: blur(10px);
}

.mallet {
  position: absolute;
  z-index: 4;
  top: 43%;
  right: 0;
  width: 46%;
  height: 16px;
  border-radius: 2px 9px 9px 2px;
  background: #79573a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 8px 18px rgba(0, 0, 0, .24);
  transform: rotate(34deg);
  transform-origin: 96% 50%;
}

.mallet i {
  position: absolute;
  left: -22px;
  top: -13px;
  width: 45px;
  height: 42px;
  border: 2px solid #70401f;
  border-radius: 50%;
  background: #ad6d35;
  box-shadow: inset 7px 5px 0 rgba(255, 255, 255, .09), inset -7px -5px 0 rgba(0, 0, 0, .18);
}

.impact-ring {
  position: absolute;
  z-index: 5;
  left: 47%;
  top: 38%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.woodfish-button.is-struck #woodfish-canvas {
  animation: woodfish-strike 220ms ease-out;
}

.woodfish-button.is-struck .woodfish-shadow {
  animation: shadow-strike 220ms ease-out;
}

.woodfish-button.is-struck .mallet {
  animation: mallet-strike 280ms cubic-bezier(.2, .75, .35, 1);
}

.woodfish-button.is-struck .impact-ring {
  animation: impact-pulse 300ms ease-out;
}

.woodfish-button:active #woodfish-canvas {
  transform: translateY(7px) scale(.98, .97);
}

.woodfish-button:active .mallet {
  transform: rotate(5deg);
}

.merit-layer {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.merit-pop {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 120px;
  margin-left: -60px;
  color: #f2cb84;
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 2px 12px #101310;
  animation: merit-rise 720ms ease-out forwards;
}

.merit-pop.merit-pop-hint {
  width: 220px;
  max-width: calc(100vw - 32px);
  margin-left: -110px;
  text-align: center;
  font-size: 15px;
  white-space: nowrap;
}

.personal-section {
  grid-column: 1;
  grid-row: 3;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.personal-count {
  min-width: 150px;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.personal-count strong {
  min-width: 3ch;
  color: var(--wood-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.personal-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.connection-status {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 160ms ease;
}

.connection-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(153, 177, 141, .1);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.connection-status[data-state="connecting"] .connection-dot,
.connection-status[data-state="syncing"] .connection-dot {
  background: var(--wood-light);
  box-shadow: 0 0 0 4px rgba(231, 167, 95, .11);
  animation: connection-pulse 1.2s ease-in-out infinite;
}

.connection-status[data-state="success"] {
  color: #9ed6ce;
}

.connection-status[data-state="success"] .connection-dot {
  background: #78c7bd;
  box-shadow: 0 0 0 4px rgba(120, 199, 189, .11);
}

.connection-status[data-state="error"] {
  color: var(--danger);
}

.connection-status[data-state="error"] .connection-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 142, 123, .1);
}

.site-footer {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 11px;
}

noscript {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg);
}

.privacy-page {
  overflow: auto;
}

.privacy-content {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.back-link {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--muted);
  text-decoration: none;
}

.privacy-content h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 44px;
}

.privacy-updated {
  margin: 12px 0 52px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-content section {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.privacy-content h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.privacy-content p {
  margin: 8px 0;
  color: #c2c5bb;
  font-size: 14px;
  line-height: 1.9;
}

.privacy-content section a {
  color: var(--wood-light);
  text-underline-offset: 4px;
}

@keyframes woodfish-strike {
  0% { transform: translateY(0) scale(1); filter: brightness(1); }
  34% { transform: translateY(9px) scale(.98, .96); filter: brightness(1.16); }
  100% { transform: translateY(0) scale(1); filter: brightness(1); }
}

@keyframes shadow-strike {
  0%, 100% { transform: scale(1); opacity: .72; }
  34% { transform: scale(.88, .8); opacity: .92; }
}

@keyframes mallet-strike {
  0% { transform: rotate(34deg); }
  26% { transform: rotate(5deg); }
  47% { transform: rotate(5deg); }
  100% { transform: rotate(34deg); }
}

@keyframes impact-pulse {
  0% { opacity: .95; transform: scale(.25); }
  100% { opacity: 0; transform: scale(2.2); }
}

@keyframes merit-rise {
  0% { opacity: 0; transform: translateY(8px) scale(.92); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-56px) scale(1.04); }
}

@keyframes connection-pulse {
  0%, 100% { opacity: .55; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-rows: 72px minmax(calc(100svh - 180px), auto) auto 62px;
  }

  .site-shell::before,
  .site-shell::after {
    display: none;
  }

  .site-header,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 72px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .main-stage {
    width: calc(100% - 28px);
    padding: 20px 0 12px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(280px, 1fr) auto;
    gap: 0;
    text-align: center;
  }

  .intro-section,
  .counter-section,
  .woodfish-section,
  .personal-section {
    grid-column: 1;
  }

  .intro-section {
    grid-row: 1;
    padding: 0;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  .intro-section h1 {
    font-size: 40px;
  }

  .interaction-prompt {
    min-height: 22px;
    margin-top: 8px;
    font-size: 12px;
  }

  .counter-section {
    grid-row: 2;
    min-height: 104px;
    margin-top: 16px;
    padding: 11px 16px 9px;
    border-top-color: var(--line-soft);
  }

  .counter-section::before {
    top: 14px;
    bottom: 14px;
    width: 2px;
  }

  .counter-label {
    margin-bottom: 3px;
  }

  .counter-value {
    min-height: 62px;
    justify-content: center;
  }

  .total-count {
    min-width: 0;
    min-height: 62px;
    font-size: 58px;
  }

  .total-count.is-long {
    font-size: 48px;
  }

  .total-count.is-very-long {
    font-size: 38px;
  }

  .woodfish-section {
    grid-row: 3;
    min-height: 280px;
  }

  .woodfish-section::after {
    left: 8%;
    right: 8%;
    top: 80%;
  }

  .woodfish-button {
    width: min(100%, 390px);
  }

  .mallet {
    top: 42%;
  }

  .personal-section {
    grid-row: 4;
    min-height: 52px;
    justify-content: center;
    gap: 16px;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .personal-count {
    min-width: auto;
  }

  .site-footer {
    min-height: 62px;
    padding: 9px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 18px;
  }

  .privacy-content h1 {
    font-size: 36px;
  }

  .city-section {
    padding: 64px 0 70px;
  }

  .city-inner {
    width: calc(100% - 28px);
  }

  .city-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .city-ranking {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .main-stage {
    width: min(calc(100% - 48px), 760px);
  }

  .intro-section h1 {
    font-size: 44px;
  }

  .counter-section,
  .personal-section {
    width: min(100%, 560px);
    justify-self: center;
  }

  .woodfish-section {
    min-height: 400px;
  }

  .woodfish-button {
    width: min(68vw, 520px);
  }
}

@media (max-width: 900px) and (max-height: 650px) {
  .site-shell {
    grid-template-rows: 64px minmax(calc(100svh - 160px), auto) auto 58px;
  }

  .site-header {
    height: 64px;
  }

  .main-stage {
    padding: 10px 0 8px;
    grid-template-rows: auto auto minmax(210px, 1fr) auto;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .intro-section h1 {
    font-size: 30px;
  }

  .interaction-prompt {
    display: none;
  }

  .counter-section {
    min-height: 78px;
    margin-top: 8px;
    padding-top: 7px;
  }

  .counter-value,
  .total-count {
    min-height: 48px;
  }

  .total-count {
    font-size: 46px;
  }

  .woodfish-section {
    min-height: 210px;
  }

  .woodfish-button {
    width: min(100%, 300px);
  }

  .personal-section {
    min-height: 48px;
  }

  .site-footer {
    min-height: 58px;
    padding: 8px 0;
  }

}

@media (max-width: 560px) {
  .city-header {
    align-items: start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .city-header h2 {
    font-size: 29px;
  }

  .city-map {
    aspect-ratio: 1.12 / 1;
  }

  .city-dot::after {
    inset: -13px;
  }

  .reward-dialog {
    padding: 27px 18px 20px;
  }

  .reward-dialog h2 {
    font-size: 23px;
  }

  .credential-row {
    grid-template-columns: 52px minmax(0, 1fr) 38px;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .site-shell {
    grid-template-rows: 66px minmax(calc(100svh - 166px), auto) auto 50px;
  }

  .site-header {
    height: 66px;
  }

  .main-stage {
    padding: 20px 0 16px;
    gap: 20px 48px;
  }

  .intro-section h1 {
    font-size: 44px;
  }

  .counter-section {
    min-height: 138px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .counter-value,
  .total-count {
    min-height: 80px;
  }

  .total-count {
    font-size: 76px;
  }

  .total-count.is-long {
    font-size: 62px;
  }

  .total-count.is-very-long {
    font-size: 48px;
  }

  .woodfish-section {
    min-height: 440px;
  }

  .woodfish-button {
    width: min(48vw, 550px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Single-viewport map and woodfish stage. */
.site-shell {
  --page-gutter: clamp(24px, 2.5vw, 56px);
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  grid-template-rows: minmax(0, 1fr) 28px;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  display: none;
}

.icon-button {
  border: 0;
  background: #1b201b;
}

.brand-mark {
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.brand-copy strong {
  font-size: 19px;
}

.site-footer {
  width: calc(100% - (var(--page-gutter) * 2));
  min-height: 28px;
  border-top: 0;
  font-size: 9px;
}

.main-stage {
  width: calc(100% - var(--page-gutter));
  max-width: none;
  height: 100%;
  min-height: 0;
  margin-left: 0;
  margin-right: var(--page-gutter);
  padding: 18px 0 4px;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px clamp(28px, 3.2vw, 64px);
  align-content: stretch;
  align-items: stretch;
  overflow: visible;
}

.city-section {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.city-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.city-header {
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 10px;
  padding-left: 24px;
}

.city-header .eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

.city-header h2 {
  font-size: 25px;
}

.city-heading {
  gap: 10px;
}

.city-brand-mark {
  width: 34px;
  height: 34px;
  font-size: 23px;
}

.city-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  /* Keep the map height independent from the ranking growing to a second row. */
  grid-template-rows: minmax(0, 1fr) 116px;
  gap: 8px;
  align-items: stretch;
}

.city-map-wrap {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
}

.city-map-viewport {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.city-map {
  width: 100%;
  height: auto;
  min-width: 0;
  max-height: none;
  margin: 0;
  aspect-ratio: 3600 / 2555;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
}

.china-map-base {
  display: block;
  opacity: .68;
  filter: grayscale(1) invert(1) brightness(2.8) contrast(1.45);
  mix-blend-mode: screen;
}

.map-grid {
  display: none;
}

.map-empty {
  color: var(--faint);
  text-shadow: 0 1px 8px #090d0a;
}

.city-dot {
  width: max(9px, var(--city-size));
  height: max(9px, var(--city-size));
  border-width: 2px;
}

.city-dot-label {
  position: absolute;
  z-index: 4;
  left: calc(100% + 7px);
  top: calc(50% + var(--city-label-offset-y, 0px));
  min-width: max-content;
  display: none;
  padding: 4px 6px;
  border: 0;
  border-radius: 3px;
  color: var(--text);
  background: rgba(9, 13, 10, .88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  line-height: 1.25;
  text-align: left;
  transform: translateY(-50%);
  pointer-events: none;
}

.city-dot.is-labeled .city-dot-label,
.city-dot:hover .city-dot-label,
.city-dot:focus-visible .city-dot-label,
.city-dot.is-selected .city-dot-label {
  display: grid;
}

.city-dot-label strong {
  font-size: 12px;
}

.city-dot-label small {
  color: var(--wood-light);
  font-size: 11px;
}

.city-dot.is-label-left .city-dot-label {
  right: calc(100% + 7px);
  left: auto;
  text-align: right;
}

.city-note {
  margin-top: 6px;
  padding-left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  line-height: 1.5;
}

.map-approval {
  flex: none;
  color: var(--muted);
}

.city-ranking {
  padding: 9px 0 0 24px;
  border-top: 0;
  border-left: 0;
}

.ranking-heading {
  min-height: 22px;
  padding: 0 0 5px;
  border-bottom: 0;
}

.ranking-heading h3 {
  font-size: 10px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(10px, 1.4vw, 22px);
  border-top: 1px solid var(--line-soft);
}

.ranking-list li {
  min-width: 0;
  min-height: 42px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 0 6px;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-list li:not(:nth-child(4n + 1)) {
  padding-left: clamp(8px, 1vw, 14px);
  border-left: 1px solid rgba(255, 255, 255, .045);
}

.ranking-list[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.ranking-list[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-list[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ranking-list[data-count="0"] {
  grid-template-columns: minmax(0, 1fr);
}

.ranking-list[data-count="0"] .ranking-placeholder {
  grid-column: 1 / -1;
  min-height: 50px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  text-align: center;
}

.ranking-list[data-count="0"] .ranking-placeholder::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border: 1px solid var(--faint);
  border-radius: 50%;
  opacity: .7;
}

.ranking-list[data-count="1"] li,
.ranking-list[data-count="2"] li,
.ranking-list[data-count="3"] li {
  min-height: 50px;
  padding-inline: clamp(10px, 1.5vw, 20px);
}

.ranking-list[data-count="1"] li:first-child {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding-inline: clamp(14px, 2.5vw, 34px);
}

.ranking-list[data-count="1"] .ranking-index strong,
.ranking-list[data-count="1"] .ranking-count strong {
  font-size: 16px;
}

.ranking-list[data-count="1"] .ranking-city strong {
  font-size: 13px;
}

.ranking-list[data-count="2"] li:nth-child(odd),
.ranking-list[data-count="3"] li:first-child {
  padding-left: clamp(10px, 1.5vw, 20px);
  border-left: 0;
}

.ranking-list[data-count="2"] .ranking-count strong,
.ranking-list[data-count="3"] .ranking-count strong {
  font-size: 13px;
}

.ranking-list li:nth-child(n + 9) {
  display: none;
}

.ranking-index {
  gap: 1px;
}

.ranking-index small {
  font-size: 6px;
}

.ranking-index strong {
  font-size: 12px;
}

.ranking-city strong {
  font-size: 11px;
}

.ranking-city small {
  display: block;
  font-size: 9px;
}

.ranking-count {
  grid-column: auto;
}

.ranking-count strong {
  font-size: 13px;
}

.ranking-list li:nth-child(-n + 3) .ranking-index strong {
  color: var(--sage);
}

.ranking-list li:nth-child(1) .ranking-count strong {
  color: var(--brass);
}

.interaction-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-items: center;
  text-align: center;
  justify-self: center;
  width: min(100%, 520px);
}

.interaction-panel .intro-section,
.interaction-panel .woodfish-section,
.interaction-panel .banter-line,
.interaction-panel .personal-section {
  grid-column: auto;
  grid-row: auto;
}

.intro-section {
  align-self: start;
}

.intro-section .eyebrow {
  margin-bottom: 5px;
  font-size: 10px;
}

.intro-section h1 {
  font-size: 42px;
}

.interaction-prompt {
  min-height: 26px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.banter-line {
  width: min(100%, 500px);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px auto 6px;
  padding-inline: 10px;
  color: var(--wood-light);
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-shadow: 0 1px 16px rgba(231, 167, 95, .18);
  transition: opacity 180ms ease, transform 180ms ease;
}

.banter-line::before,
.banter-line::after {
  content: "";
  width: 38px;
  height: 2px;
  flex: 0 0 auto;
  background: #7b4b2b;
  opacity: .9;
}

.banter-line::before {
  background: linear-gradient(to right, transparent, var(--wood));
}

.banter-line::after {
  background: linear-gradient(to left, transparent, var(--wood));
}

.banter-line.is-changing {
  opacity: 0;
  transform: translateY(3px);
}

.woodfish-section {
  width: 100%;
  min-height: 0;
}

.woodfish-button {
  width: min(100%, 580px);
}

.woodfish-section::after {
  display: none;
}

.personal-section {
  min-height: 40px;
  justify-content: center;
  gap: 14px;
  border-top: 0;
}

.connection-section {
  position: relative;
  width: min(100%, 520px);
  min-height: 36px;
  margin-inline: auto;
  padding: 0 124px 0 46px;
}

.connection-section .icon-button {
  position: absolute;
  right: 0;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
}

.connection-section .share-toggle {
  right: 44px;
}

.connection-section .favorite-toggle {
  right: 88px;
}

.connection-section .icon-button:active {
  transform: translateY(-50%) scale(.94);
}

.personal-count {
  min-width: auto;
}

.personal-count strong {
  font-size: 22px;
}

.counter-section {
  grid-column: 1 / -1;
  grid-row: 2;
  width: calc(100% + var(--page-gutter));
  min-height: 118px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  place-items: center;
  gap: 0;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  text-align: center;
  overflow: hidden;
}

.counter-section::before {
  display: none;
}

.counter-label {
  margin: 0;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.counter-value {
  width: auto;
  min-height: 88px;
  justify-content: center;
  gap: 14px;
}

.counter-value > span {
  font-size: 15px;
}

.total-count {
  min-height: 88px;
  font-size: 104px;
  line-height: 1;
  transition: font-size 160ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.total-count.is-long {
  font-size: 96px;
}

.total-count.is-very-long {
  font-size: 72px;
}

.total-count.is-animating {
  transform: translateY(-2px);
  text-shadow: 0 0 24px rgba(231, 167, 95, .4), 0 3px 18px rgba(0, 0, 0, .32);
}

@media (max-height: 760px) and (min-width: 701px) {
  .site-shell {
    grid-template-rows: minmax(0, 1fr) 24px;
  }

  .main-stage {
    padding-top: 10px;
    gap: 8px 38px;
  }

  .city-header h2 {
    font-size: 21px;
  }

  .city-heading {
    gap: 8px;
  }

  .city-brand-mark {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }

  .city-layout {
    grid-template-rows: minmax(0, 1fr);
  }

  .city-ranking {
    display: none;
  }

  .intro-section h1 {
    font-size: 34px;
  }

  .interaction-prompt {
    margin-top: 6px;
    font-size: 14px;
  }

  .woodfish-button {
    width: min(100%, 370px);
  }

  .counter-section {
    min-height: 96px;
    padding-top: 4px;
  }

  .counter-value,
  .total-count {
    min-height: 68px;
  }

  .total-count {
    font-size: 78px;
  }

  .total-count.is-long {
    font-size: 74px;
  }

  .total-count.is-very-long {
    font-size: 56px;
  }
}

@media (max-width: 700px) {
  .site-shell {
    min-height: 560px;
    grid-template-rows: minmax(0, 1fr) 22px;
  }

  .site-shell::before,
  .site-shell::after {
    display: none;
  }

  .site-footer {
    width: calc(100% - 24px);
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .favorite-toggle {
    display: none !important;
  }

  .banter-line {
    width: min(100%, 360px);
    min-height: 38px;
    gap: 9px;
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 14px;
  }

  .banter-line::before,
  .banter-line::after {
    width: 22px;
    height: 1px;
  }

  .main-stage {
    width: calc(100% - 24px);
    margin-inline: auto;
    padding: 10px 0 4px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 4px;
    text-align: center;
    overflow: hidden;
  }

  .interaction-panel,
  .counter-section {
    grid-column: 1;
  }

  .city-section {
    display: none;
  }

  .interaction-panel {
    grid-row: 1;
  }

  .counter-section {
    grid-row: 2;
  }

  .city-layout {
    display: block;
  }

  .city-map-wrap {
    display: block;
  }

  .city-map {
    width: min(100%, 320px);
    max-height: none;
  }

  .city-note {
    width: min(100%, 320px);
    margin: 3px auto 0;
    display: block;
    font-size: 8px;
    line-height: 1.3;
  }

  .city-note > :not(.map-approval) {
    display: none;
  }

  .city-ranking {
    display: none;
  }

  .interaction-panel {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }

  .intro-section .eyebrow {
    display: none;
  }

  .intro-section h1 {
    font-size: 25px;
  }

  .interaction-prompt {
    min-height: 15px;
    margin-top: 1px;
    font-size: 13px;
    line-height: 1.4;
  }

  .woodfish-section {
    min-height: 0;
  }

  .woodfish-button {
    width: min(100%, 360px);
  }

  .personal-section {
    min-height: 31px;
    gap: 10px;
  }

  .personal-count {
    font-size: 10px;
  }

  .personal-count strong {
    font-size: 18px;
  }

  .connection-status {
    gap: 6px;
    font-size: 11px;
  }

  .connection-section {
    padding: 0 84px 0 46px;
  }

  .connection-dot {
    width: 6px;
    height: 6px;
  }

  .counter-section {
    width: 100%;
    min-height: 120px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 0;
    margin: 0;
    padding: 6px 8px 3px;
  }

  .counter-label {
    font-size: 10px;
  }

  .counter-value,
  .total-count {
    min-height: 86px;
  }

  .total-count {
    font-size: 78px;
  }

  .total-count.is-long {
    font-size: 60px;
  }

  .total-count.is-very-long {
    font-size: 46px;
  }

  .site-footer {
    min-height: 22px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .site-shell {
    min-height: 480px;
    grid-template-rows: minmax(0, 1fr) 18px;
  }

  .site-footer {
    min-height: 18px;
  }

  .main-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 4px;
  }

  .interaction-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .counter-section {
    grid-column: 1;
    grid-row: 2;
  }

  .interaction-prompt {
    min-height: 16px;
    margin-top: 2px;
    font-size: 11px;
  }

  .banter-line {
    min-height: 34px;
    width: min(100%, 360px);
    margin-bottom: 0;
    gap: 9px;
    font-size: 13px;
  }

  .banter-line::before,
  .banter-line::after {
    width: 22px;
    height: 1px;
  }

  .intro-section h1 {
    font-size: 20px;
  }

  .woodfish-button {
    width: min(100%, 290px);
  }

  .personal-section {
    min-height: 26px;
  }

  .connection-section .icon-button {
    width: 32px;
    height: 32px;
  }

  .counter-section {
    min-height: 96px;
  }

  .counter-value,
  .total-count {
    min-height: 66px;
  }

  .total-count {
    font-size: 60px;
  }
}

/* Keep the global total dominant while giving today's confirmed activity a quieter second axis. */
.counter-grid {
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, .7fr);
  align-items: end;
  gap: clamp(28px, 6vw, 96px);
  margin: 0 auto;
}

.counter-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 20px 82px;
  align-content: end;
  text-align: left;
}

.counter-item-daily {
  padding-left: clamp(24px, 4vw, 64px);
  border-left: 1px solid var(--line-soft);
}

.counter-item .counter-label {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .03em;
}

.counter-item .counter-value {
  height: 82px;
  min-height: 82px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.counter-item .counter-value > span {
  color: var(--wood-light);
  font-size: 12px;
}

.counter-item .total-count,
.counter-item .daily-count {
  min-height: 0;
  line-height: 1;
}

.counter-item .total-count {
  font-size: 74px;
}

.counter-item .total-count.is-long {
  font-size: 58px;
}

.counter-item .total-count.is-very-long {
  font-size: 44px;
}

.counter-item .daily-count {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.counter-item .daily-count.is-long {
  font-size: 38px;
}

.counter-item .daily-count.is-very-long {
  font-size: 30px;
}

/* Community milestone feedback stays above the page without intercepting knocks. */
.milestone-celebration {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: start center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

.milestone-celebration[hidden] {
  display: none;
}

.milestone-celebration.is-visible {
  opacity: 1;
}

.milestone-celebration canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.milestone-message {
  position: relative;
  margin: clamp(88px, 18vh, 170px) 24px 0;
  color: #f2cb84;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(17px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 16px rgba(5, 6, 5, .88);
}

.site-footer {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.footer-filings {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
  white-space: nowrap;
}

.footer-filing-security {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-filing-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.footer-contact {
  justify-self: end;
  text-align: right;
}

.footer-filing,
.footer-contact {
  color: inherit;
  text-decoration: none;
}

.footer-filing:hover,
.footer-filing:focus-visible,
.footer-contact:hover,
.footer-contact:focus-visible {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .site-footer {
    grid-template-columns: auto auto;
    gap: 12px;
    padding: 0;
    white-space: nowrap;
  }

  .footer-filing-security,
  .footer-contact {
    display: none;
  }
}

#daily-count.is-milestone-pulse,
#daily-count.is-milestone-reached {
  color: #f2cb84;
  text-shadow: 0 0 20px rgba(242, 203, 132, .72);
}

#daily-count.is-milestone-pulse {
  animation: daily-milestone-pulse 820ms ease-out;
}

#daily-count.is-milestone-reached {
  transition: color 160ms ease-out, text-shadow 160ms ease-out;
}

@keyframes daily-milestone-pulse {
  0% { transform: scale(1); }
  42% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .milestone-celebration {
    transition: none;
  }

  #daily-count.is-milestone-pulse {
    animation: none;
  }
}

@media (min-width: 701px) {
  .counter-grid {
    width: calc(100% - var(--page-gutter));
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    gap: clamp(28px, 3.2vw, 64px);
    margin: 0;
    justify-self: start;
  }

  .counter-item {
    text-align: center;
  }

  .counter-item-daily {
    padding-left: 0;
  }

  .counter-item .counter-value {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .counter-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    gap: 16px;
  }

  .counter-grid.has-long-daily {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 12px;
  }

  .counter-grid.has-long-daily .counter-item-daily {
    padding-left: 12px;
  }

  .counter-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 18px 74px;
    text-align: center;
  }

  .counter-item-daily {
    padding-left: 16px;
  }

  .counter-item .counter-label {
    font-size: 11px;
  }

  .counter-item .counter-value {
    min-width: 0;
    height: 74px;
    min-height: 74px;
    justify-content: center;
    gap: 5px;
  }

  .counter-item .counter-value > span {
    font-size: 10px;
  }

  .counter-item .total-count,
  .counter-item .daily-count {
    flex: 0 0 auto;
    min-height: 0;
    /* Fit immediately when digits grow; interpolating from the old size can overflow. */
    transition: none;
  }

  .counter-item .counter-value > span {
    flex: 0 0 auto;
  }

  .counter-item .total-count {
    font-size: 58px;
  }

  .counter-item .total-count.is-long {
    font-size: 45px;
  }

  .counter-item .total-count.is-very-long {
    font-size: 35px;
  }

  .counter-item .daily-count {
    font-size: 38px;
  }

  .counter-item .daily-count.is-long {
    font-size: 31px;
  }

  .counter-item .daily-count.is-very-long {
    font-size: 25px;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .counter-grid {
    gap: 12px;
  }

  .counter-item-daily {
    padding-left: 12px;
  }

  .counter-item {
    grid-template-rows: 17px 60px;
  }

  .counter-item .counter-value {
    height: 60px;
    min-height: 60px;
  }

  .counter-item .total-count,
  .counter-item .daily-count {
    min-height: 0;
  }

  .counter-item .total-count {
    font-size: 46px;
  }

  .counter-item .total-count.is-long {
    font-size: 37px;
  }

  .counter-item .total-count.is-very-long {
    font-size: 29px;
  }

  .counter-item .daily-count {
    font-size: 31px;
  }

  .counter-item .daily-count.is-long {
    font-size: 25px;
  }

  .counter-item .daily-count.is-very-long {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .merit-pop.merit-pop-hint { animation: none !important; }
}
