:root {
  color-scheme: light;
  --bg: #fffdfa;
  --surface: #ffffff;
  --surface-soft: #faf7f3;
  --ink: #1d1b1a;
  --muted: #827a74;
  --line: #e9e3dd;
  --accent: #df785d;
  --accent-strong: #c95f44;
  --accent-soft: #fbece6;
  --accent-softer: #fff5f1;
  --success: #4dbb5d;
  --shadow: 0 16px 40px rgba(55, 39, 31, 0.06);
  --radius: 24px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  padding: 26px 0 0;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 27px;
  height: 22px;
}

.brand-mark span {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

.brand-mark span:nth-child(1) {
  bottom: 0;
  width: 27px;
}

.brand-mark span:nth-child(2) {
  bottom: 9px;
  left: 8px;
  width: 19px;
}

.brand-mark span:nth-child(3) {
  bottom: 18px;
  left: 17px;
  width: 10px;
  background: var(--accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(55, 39, 31, 0.03);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(77, 187, 93, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #514c48;
  font-size: 15px;
  font-weight: 650;
}

.nav-link {
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-strong);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.category-rail {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #faf7f4;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5e5752;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.category-chip:hover,
.category-chip.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(201, 95, 68, 0.18);
}

main {
  min-height: 68vh;
}

.home-intro {
  padding: 38px 0 30px;
  text-align: center;
}

.board-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.tab-button {
  min-width: 88px;
  padding: 8px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  background: var(--accent);
  color: #fff;
}

.claim-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  margin: 28px 0 18px;
  font-size: clamp(31px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.claim-prefix,
.claim-suffix {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.claim-comma {
  display: inline-block;
  transform: translateY(-0.08em);
}

.claim-amount-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--accent);
  transform: translateY(-0.14em);
}

.claim-amount-wrap > span {
  display: inline-flex;
  align-items: center;
  height: 1em;
  line-height: 1;
}

.amount-nudge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.amount-input {
  width: 170px;
  height: 1em;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--accent);
  font-size: inherit;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
  vertical-align: middle;
}

.claim-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.65fr) minmax(190px, 0.9fr) auto;
  gap: 12px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.field,
.select-field,
.modal-field,
.modal-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus,
.select-field:focus,
.modal-field:focus,
.modal-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(223, 120, 93, 0.12);
}

.select-field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #807770 50%), linear-gradient(135deg, #807770 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
}

.secondary-button:hover {
  border-color: #d3c9c1;
  transform: translateY(-1px);
}

.form-error {
  min-height: 22px;
  margin: 9px 0 -8px;
  color: #b34d37;
  font-size: 14px;
  font-weight: 650;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.ranking-list,
.compact-ranking,
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 106px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-card.top-rank {
  margin-bottom: 12px;
  border: 0;
  border-radius: 24px;
  background: var(--accent-softer);
}

.ranking-card.rank-1 {
  background: #fae9e2;
}

.rank-number {
  color: #5e5752;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-align: center;
}

.top-rank .rank-number {
  color: var(--accent-strong);
}

.logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  background: var(--logo-bg);
  color: var(--logo-fg);
  font-size: 27px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.logo.small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 17px;
}

.merchant-copy {
  min-width: 0;
}

.merchant-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.merchant-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-amount {
  margin-left: auto;
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.merchant-description {
  overflow: hidden;
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: #8e857f;
  font-size: 12px;
}

.merchant-meta .category {
  color: #403b37;
  font-weight: 750;
}

.merchant-meta a,
.inline-link {
  color: var(--accent-strong);
}

.claim-rank-button {
  display: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ranking-card:hover .claim-rank-button,
.ranking-card:focus-within .claim-rank-button {
  display: inline-flex;
  align-items: center;
}

.ranking-card:hover .merchant-amount,
.ranking-card:focus-within .merchant-amount {
  display: none;
}

.side-panel {
  position: sticky;
  top: 18px;
  padding-top: 5px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.section-heading::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}

.see-all {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.compact-ranking {
  display: grid;
  gap: 10px;
}

.compact-item {
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.compact-rank {
  color: #5e5752;
  font-size: 12px;
  font-weight: 850;
}

.compact-name {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-amount {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.activity-block {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  color: #625b55;
  font-size: 13px;
  line-height: 1.45;
}

.activity-item strong {
  color: var(--ink);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 0;
}

.page-buttons {
  display: flex;
  gap: 7px;
}

.page-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}

.page-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.page-summary {
  color: var(--muted);
  font-size: 13px;
}

.stats-strip {
  margin-top: 50px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-note {
  margin: 0 0 20px;
  color: #5d5651;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.page-wrap {
  padding: 68px 0 30px;
}

.page-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.page-lede {
  max-width: 800px;
  margin: 18px 0 34px;
  color: #6b635d;
  font-size: 18px;
}

.daily-list {
  display: grid;
  gap: 16px;
}

.daily-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
}

.daily-card.live {
  border: 2px solid var(--accent);
  background: #fffaf7;
}

.daily-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.daily-date {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  vertical-align: 2px;
}

.daily-meta {
  color: var(--muted);
  font-size: 13px;
}

.daily-message {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 14px;
}

.daily-ranking {
  display: grid;
  gap: 10px;
}

.daily-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.merchant-hero {
  padding: 40px;
  border: 2px solid var(--accent);
  border-radius: 30px;
  background: #fffaf7;
}

.merchant-hero-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.merchant-hero .logo {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  font-size: 34px;
}

.merchant-hero h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #655d57;
  font-size: 14px;
}

.hero-description {
  max-width: 900px;
  margin: 24px 0 20px;
  color: #4d4742;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.rank-stat-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.eyebrow {
  color: #706861;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-stat-card strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 34px;
  line-height: 1;
}

.rank-story {
  padding: 38px 0 16px;
}

.rank-story h2,
.rank-story h3,
.about-content h2 {
  letter-spacing: -0.03em;
}

.rank-story p,
.about-content p {
  color: #625a55;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.related-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.related-card:hover {
  border-color: #d9c9bf;
}

.related-card strong,
.related-card span {
  display: block;
}

.related-card span {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.about-content {
  width: min(860px, 100%);
  margin: 0 auto;
}

.about-content .page-title {
  text-align: left;
}

.about-content h2 {
  margin-top: 38px;
  font-size: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.proof-card .demo-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
}

.proof-card p {
  margin: 6px 0 0;
  font-size: 14px;
}

.demo-notice {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px dashed #d7c8be;
  border-radius: 18px;
  background: #fffaf7;
  color: #6b615b;
  font-size: 14px;
}

.site-footer {
  padding: 34px 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 25, 22, 0.46);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(35, 24, 18, 0.24);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.modal-subtitle {
  margin: 5px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.close-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-label {
  display: grid;
  gap: 6px;
  color: #5d5651;
  font-size: 13px;
  font-weight: 750;
}

.modal-label.full {
  grid-column: 1 / -1;
}

.modal-field,
.modal-textarea {
  min-height: 48px;
  border-radius: 14px;
}

.modal-textarea {
  min-height: 88px;
  padding-top: 13px;
  resize: vertical;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--accent-softer);
}

.payment-summary strong {
  color: var(--accent-strong);
  font-size: 24px;
}

.payment-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

.success-state {
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e7f7e9;
  color: #29963b;
  font-size: 32px;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 48px);
  padding: 13px 18px;
  border-radius: 14px;
  background: #1f1c1a;
  color: #fff;
  box-shadow: 0 12px 35px rgba(31, 28, 26, 0.2);
  font-size: 14px;
}

.empty-state {
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

body.dark {
  color-scheme: dark;
  --bg: #191715;
  --surface: #211f1c;
  --surface-soft: #292622;
  --ink: #f7f2ed;
  --muted: #aaa19a;
  --line: #3a3530;
  --accent: #e6856b;
  --accent-strong: #f39a80;
  --accent-soft: #3b2821;
  --accent-softer: #2b211d;
  --shadow: none;
}

body.dark .field,
body.dark .select-field,
body.dark .modal-field,
body.dark .modal-textarea,
body.dark .secondary-button,
body.dark .daily-card,
body.dark .stat-card,
body.dark .rank-stat-card,
body.dark .related-card,
body.dark .proof-card,
body.dark .modal,
body.dark .page-button,
body.dark .board-tabs {
  background-color: var(--surface);
}

body.dark .category-rail,
body.dark .icon-button:hover {
  background: var(--surface-soft);
}

body.dark .merchant-hero,
body.dark .daily-card.live,
body.dark .demo-notice {
  background: var(--accent-softer);
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 32px, 760px);
  }

  .header-main {
    flex-wrap: wrap;
  }

  .main-nav {
    gap: 18px;
  }

  .category-rail {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    border-radius: 0;
  }

  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    padding-top: 12px;
  }

  .related-grid,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 24px);
  }

  .site-header {
    padding-top: 12px;
  }

  .header-main {
    gap: 6px 10px;
  }

  .brand {
    font-size: 19px;
  }

  .status-pill {
    order: 3;
    width: 100%;
    min-height: 26px;
    padding: 2px 8px;
    justify-content: center;
    font-size: 11px;
  }

  .main-nav {
    gap: 15px;
    font-size: 14px;
  }

  .nav-link.rules-link {
    display: none;
  }

  .category-rail {
    display: none;
  }

  .home-intro {
    padding: 18px 0 16px;
  }

  .board-tabs {
    padding: 3px;
  }

  .tab-button {
    min-width: 82px;
    padding: 6px 14px;
  }

  .claim-title {
    display: grid;
    grid-template-columns: auto auto;
    justify-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin: 16px 0 14px;
    font-size: 34px;
  }

  .claim-prefix {
    justify-self: end;
  }

  .claim-suffix {
    grid-column: 1 / -1;
  }

  .claim-comma {
    display: none;
  }

  .claim-amount-wrap {
    display: flex;
    justify-content: center;
    margin: 0;
    transform: none;
  }

  .amount-input {
    width: 108px;
  }

  .amount-nudge {
    width: 26px;
    height: 26px;
    margin: 0 5px;
  }

  .claim-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field,
  .select-field {
    min-height: 48px;
  }

  .claim-form .primary-button {
    min-height: 48px;
  }

  .leaderboard-grid {
    gap: 24px;
  }

  .ranking-card {
    grid-template-columns: 32px 48px minmax(0, 1fr);
    gap: 10px;
    min-height: 92px;
    padding: 13px 10px;
  }

  .ranking-card.top-rank {
    border-radius: 20px;
  }

  .logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 21px;
  }

  .merchant-name,
  .merchant-amount {
    font-size: 15px;
  }

  .merchant-description {
    font-size: 13px;
  }

  .claim-rank-button,
  .ranking-card:hover .claim-rank-button,
  .ranking-card:focus-within .claim-rank-button {
    display: none;
  }

  .ranking-card:hover .merchant-amount,
  .ranking-card:focus-within .merchant-amount {
    display: block;
  }

  .stats-grid,
  .about-stats,
  .rank-stat-grid,
  .related-grid,
  .proof-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-wrap {
    padding-top: 42px;
  }

  .page-lede {
    font-size: 16px;
  }

  .daily-card {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .daily-head {
    align-items: flex-start;
  }

  .daily-meta {
    text-align: right;
  }

  .merchant-hero {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .merchant-hero-main {
    align-items: flex-start;
  }

  .merchant-hero .logo {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 17px;
    font-size: 26px;
  }

  .hero-description {
    font-size: 16px;
  }

  .modal {
    max-height: calc(100dvh - 24px);
    padding: 22px 18px;
    border-radius: 24px;
  }

  .modal-backdrop {
    place-items: start center;
    overflow-y: auto;
    padding: 12px;
  }

  .modal-label.full {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@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;
  }
}
