:root {
  --bg: #fbfaf8;
  --panel: #fffdfb;
  --panel-soft: #fff4ef;
  --ink: #282625;
  --muted: #736c68;
  --line: #ece4df;
  --line-strong: #f06f58;
  --accent: #ee765f;
  --accent-soft: #f9b8ad;
  --green: #08b66c;
  --shadow: 0 22px 70px rgba(72, 48, 36, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent);
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 700;
}

.mark {
  width: 28px;
  height: 22px;
  position: relative;
  display: inline-block;
}

.mark::before,
.mark::after,
.mark span {
  content: "";
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

.mark::before {
  width: 16px;
  top: 0;
  left: 10px;
  background: var(--accent);
}

.mark span {
  width: 28px;
  top: 9px;
}

.mark::after {
  width: 21px;
  bottom: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #3f3b38;
  font-size: 14px;
  font-weight: 600;
}

.moon {
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  color: var(--ink);
}

.moon::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  position: absolute;
  left: 6px;
  top: -1px;
}

.hero {
  text-align: center;
  padding: 2px 0 8px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 16px;
  padding: 8px 16px;
  border: 1px solid #f1ede9;
  border-radius: 999px;
  background: #f4f2ef;
  color: var(--muted);
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(41, 34, 29, 0.03);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.stat-pill strong {
  color: var(--green);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.price-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.stepper {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  background: #fde9e5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.stepper:focus-visible,
.primary:focus-visible,
.claim-button:focus-visible,
.bid-input:focus-visible,
.target-input:focus-visible,
.payment-close:focus-visible,
.payment-link:focus-visible {
  outline: 3px solid rgba(238, 118, 95, 0.28);
  outline-offset: 3px;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 10px auto 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.hero-copy strong {
  color: var(--accent);
  font-weight: 700;
}

.claim-form {
  display: grid;
  grid-template-columns: 1fr 98px;
  gap: 12px;
  align-items: center;
  margin: 0 auto;
  width: min(880px, 100%);
}

.target-wrap {
  position: relative;
}

.globe {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  border: 1.8px solid #9c9692;
  border-radius: 50%;
}

.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-left: 1px solid #9c9692;
  border-right: 1px solid #9c9692;
  border-radius: 50%;
}

.globe::after {
  inset: 7px 2px auto;
  height: 1px;
  border: 0;
  border-top: 1px solid #9c9692;
}

.target-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e3d9d1;
  border-radius: 999px;
  background: #fffefc;
  color: var(--ink);
  padding: 0 20px 0 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.target-input::placeholder {
  color: #837d78;
}

.primary,
.claim-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  padding: 0 22px;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.primary {
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(238, 118, 95, 0.24);
}

.primary[data-loading="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary[data-loading="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.claim-button {
  background: var(--accent-soft);
}

.primary:hover {
  transform: translateY(-1px);
  background: #e8624b;
  box-shadow: 0 14px 32px rgba(238, 118, 95, 0.32);
}

.primary:disabled {
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(238, 118, 95, 0.2);
  cursor: wait;
  opacity: 1;
}

.claim-button:hover {
  transform: translateY(-1px);
  background: var(--accent);
}

.helper {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.helper[data-state="error"] {
  color: #b9402e;
}

.helper[data-state="success"] {
  color: #087e4e;
}

.geo-answer {
  margin: 18px auto 28px;
  padding: 24px 28px;
  border: 1px solid #f0e5de;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f4 100%);
  box-shadow: 0 18px 48px rgba(72, 48, 36, 0.06);
}

.geo-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.geo-answer h2,
.faq-block h2 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.15;
}

.geo-answer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.geo-card {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px 15px;
  border: 1px solid #f1e3db;
  border-radius: 18px;
  background: #fffefc;
}

.geo-card strong {
  font-size: 13px;
}

.geo-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 22px auto 28px;
}

.board-stat {
  margin-bottom: 12px;
}

.micro-card {
  min-height: 184px;
  background: var(--panel);
  border: 1px solid #f4eee9;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 25px 18px;
}

.micro-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.25;
}

.tiny-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.micro-list {
  display: grid;
  gap: 0;
}

.micro-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  border-top: 1px solid var(--line);
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.micro-row:first-child {
  border-top: 0;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #ebe5df;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
}

.avatar img,
.listing-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.avatar img + span,
.listing-avatar img + span {
  display: none;
}

.avatar.icon-failed span,
.listing-avatar.icon-failed span {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.micro-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #36312e;
  font-weight: 700;
}

.board {
  display: grid;
  gap: 10px;
  margin: 0 0 42px;
}

.faq-block {
  margin: 0 0 46px;
  padding: 2px 0 0;
}

.faq-block details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-block details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-block summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.faq-block p {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.listing {
  display: grid;
  grid-template-columns: 52px 56px minmax(0, 1fr) 156px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  border: 2px solid #ffd0b2;
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.92);
  padding: 13px 18px;
}

.listing:nth-of-type(1) {
  border-color: #ffbc12;
  background: linear-gradient(90deg, #fffdf8 0%, #fffefa 100%);
}

.listing:nth-of-type(2) {
  border-color: #dfc9ff;
  background: linear-gradient(90deg, #fffafd 0%, #fffefd 100%);
}

.listing:nth-of-type(3) {
  border-color: #ffd5a8;
  background: linear-gradient(90deg, #fffbf7 0%, #fffefa 100%);
}

.listing:nth-of-type(n + 4) {
  border-color: #ffd6c9;
  background: #fffaf8;
}

.rank-pill {
  position: relative;
  width: 45px;
  height: 45px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(92, 47, 23, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), inset 0 -8px 14px rgba(142, 61, 25, 0.12), 0 8px 14px rgba(238, 118, 95, 0.14);
  isolation: isolate;
  line-height: 1;
  contain: paint;
}

.rank-pill::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.rank-pill::after {
  inset: 1px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.listing:nth-of-type(1) .rank-pill {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48) 0 20%, transparent 21% 100%),
    linear-gradient(148deg, #ffd22e 0%, #ffad16 45%, #ff8025 100%);
  border: 1px solid #ffc300;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), inset 0 -8px 14px rgba(171, 69, 22, 0.16), 0 7px 13px rgba(255, 151, 21, 0.18);
}

.listing:nth-of-type(2) .rank-pill {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0 20%, transparent 21% 100%),
    linear-gradient(148deg, #aa70ff 0%, #905dff 48%, #7357ff 100%);
  border: 1px solid #c9a7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), inset 0 -8px 14px rgba(72, 39, 154, 0.16), 0 7px 13px rgba(138, 93, 255, 0.16);
}

.listing:nth-of-type(3) .rank-pill {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0 20%, transparent 21% 100%),
    linear-gradient(148deg, #ff9b1e 0%, #ff7a13 45%, #ff5d17 100%);
  border: 1px solid #ffb15a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), inset 0 -8px 14px rgba(169, 58, 15, 0.14), 0 7px 13px rgba(255, 105, 24, 0.16);
}

.listing-avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(40, 38, 37, 0.08);
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  overflow: hidden;
}

.listing-avatar img {
  object-fit: contain;
  padding: 5px;
  background: #fff;
}

.listing h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.12;
}

.listing-main {
  min-width: 0;
}

.listing p {
  margin: 0;
  color: #8a817c;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #6e6660;
  font-size: 12px;
}

.meta strong {
  color: #36312e;
  font-weight: 800;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.listing-side {
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.bid {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

.claim-button {
  min-height: 36px;
  min-width: 148px;
  font-size: 12px;
  line-height: 1.15;
  padding: 0 14px;
}

.rank-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 0 0 2px;
  color: #6e6660;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-divider::before,
.rank-divider::after {
  content: "";
  height: 1px;
  background: #eadfd7;
}

.rank-divider span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #eadfd7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 16px;
  box-shadow: 0 8px 22px rgba(72, 48, 36, 0.05);
}

.empty {
  border: 1px dashed #e2d7cf;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.64);
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  border-top: 1px solid #ece5df;
  color: var(--muted);
  font-size: 13px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.page {
  padding: 20px 0 56px;
}

.page article {
  width: min(720px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid #f2ece6;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.page h1 {
  font-size: clamp(34px, 5vw, 50px);
  margin-bottom: 20px;
}

.page h2 {
  margin-top: 32px;
  font-size: 22px;
}

.page p,
.page li {
  color: var(--muted);
  line-height: 1.7;
}

.page a {
  color: var(--accent);
  font-weight: 700;
}

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

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(40, 38, 37, 0.24);
  backdrop-filter: blur(8px);
}

.payment-dialog {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid #f1d5ce;
  border-radius: 24px;
  background: #fffdfb;
  box-shadow: 0 32px 90px rgba(72, 48, 36, 0.2);
  padding: 34px 30px 30px;
  text-align: center;
}

.payment-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff1ed;
  color: var(--accent);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.payment-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border: 4px solid #fde3dd;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 820ms linear infinite;
}

.payment-modal[data-state="ready"] .payment-spinner,
.payment-modal[data-state="error"] .payment-spinner {
  animation: none;
}

.payment-modal[data-state="ready"] .payment-spinner::after,
.payment-modal[data-state="error"] .payment-spinner::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 11px auto;
  border-radius: 50%;
  background: var(--accent);
}

.payment-modal[data-state="error"] .payment-spinner {
  border-color: #f6d2cc;
}

.payment-dialog h2 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.2;
}

.payment-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
  box-shadow: 0 12px 28px rgba(238, 118, 95, 0.24);
}

.payment-link:hover {
  color: #fff;
  background: #e8624b;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .shell {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .top {
    min-height: 50px;
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }

  .nav a {
    display: none;
  }

  .hero {
    padding-top: 2px;
    padding-bottom: 6px;
    overflow: hidden;
  }

  .stat-pill {
    width: min(300px, 100%);
    margin-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }

  h1 {
    display: grid;
    justify-items: center;
    gap: 8px;
    font-size: 30px;
  }

  .price-control {
    gap: 8px;
  }

  .hero-copy {
    width: min(280px, calc(100vw - 64px));
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
  }

  .claim-form,
  .micro-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100%;
  }

  .claim-form {
    width: min(340px, 100%);
  }

  .micro-grid {
    width: 100%;
  }

  .target-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .primary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .target-input {
    min-width: 0;
    max-width: 100%;
    padding-right: 14px;
  }

  .helper {
    width: min(320px, calc(100vw - 48px));
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .geo-answer {
    padding: 20px;
  }

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

  .micro-grid {
    gap: 14px;
  }

  .board-stat {
    margin-bottom: 12px;
  }

  .micro-card {
    min-width: 0;
  }

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

  .listing-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .listing-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
    align-content: center;
    min-height: 0;
    width: 100%;
  }

  .rank-divider {
    gap: 10px;
  }

  .rank-divider span {
    min-height: 26px;
    padding: 0 12px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
  }

  .page article {
    padding: 24px;
  }
}
