@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/Geist-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/GeistMono-Variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #181117;
  --ink-soft: #766b73;
  --line: #e8e0e4;
  --paper: #fffdfa;
  --canvas: #f5f0ec;
  --pink: #eb7fb3;
  --pink-dark: #884464;
  --pink-soft: #f9e9f1;
  --success: #277554;
  --warning: #80531d;
  --danger: #a33945;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  align-items: center;
  background: var(--canvas);
  color: var(--ink);
  display: flex;
  font-family: "Geist", Arial, sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100svh;
  padding: 24px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink-dark);
  outline-offset: 3px;
}

.shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(46, 29, 39, 0.08);
  max-width: 680px;
  overflow: hidden;
  width: 100%;
}

.header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 650;
  gap: 10px;
  letter-spacing: -0.01em;
}

.brand img {
  height: 32px;
  object-fit: contain;
  width: 32px;
}

.network {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font:
    500 12px/1 "Geist Mono",
    monospace;
  gap: 8px;
}

.network::before {
  background: var(--success);
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}
.network[data-state="idle"]::before {
  background: var(--ink-soft);
}
.network[data-state="wrong"]::before {
  background: var(--danger);
}

.content {
  padding: 54px 52px 36px;
}

.hero {
  margin: 0 auto 44px;
  max-width: 520px;
  text-align: center;
}

.eyebrow {
  color: var(--pink-dark);
  font:
    650 11px/1 "Geist Mono",
    monospace;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(46px, 8vw, 66px);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.95;
  margin: 0;
}

.intro {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 18px auto 0;
  max-width: 390px;
}

.total-line {
  align-items: center;
  background: linear-gradient(180deg, #fff8fb 0%, var(--pink-soft) 100%);
  border: 1px solid #efd8e3;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 160px;
  padding: 26px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.total-line[data-state="cached"] {
  background: var(--paper);
  border-color: var(--line);
}

.total-line[data-state="loading"] strong {
  color: var(--ink-soft);
}

.total-line span {
  color: var(--ink-soft);
  font:
    500 12px/1 "Geist Mono",
    monospace;
  text-transform: uppercase;
}
.total-line strong {
  font-size: clamp(38px, 8vw, 54px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 1;
  margin: 12px 0 9px;
}
.total-line small {
  color: var(--ink-soft);
  font:
    500 11px/1.3 "Geist Mono",
    monospace;
}

.claim-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.claim-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 0;
}

.claim-row + .claim-row,
.asset-group {
  border-top: 1px solid var(--line);
}

.claim-identity,
.claim-value,
.asset-group-identity,
.asset-group-value {
  display: flex;
  flex-direction: column;
}

.asset-group-identity {
  min-width: 0;
}

.claim-identity {
  min-width: 0;
}
.claim-value {
  flex: 0 0 auto;
  text-align: right;
}

.claim-identity strong,
.claim-value strong,
.asset-group-identity strong,
.asset-group-value strong {
  font-size: 13px;
  font-weight: 640;
}

.claim-identity span,
.claim-value span,
.asset-group-identity span,
.asset-group-value span {
  color: var(--ink-soft);
  font:
    500 10px/1.35 "Geist Mono",
    monospace;
  margin-top: 4px;
}

.claim-row[data-state="claimed"] .claim-value span {
  color: var(--success);
}
.claim-row[data-state="failed"] .claim-value span {
  color: var(--danger);
}
.custom-row[data-state="no-market"] .claim-value span {
  color: var(--success);
}
.custom-row[data-state="ready"] .claim-value span,
.custom-row[data-state="empty"] .claim-value span {
  color: var(--success);
}
.classic-launch-row[data-state="covered"] .claim-value span {
  color: var(--success);
}
.custom-row[data-state="adapter-required"] .claim-value span,
.custom-row[data-state="pending"] .claim-value span,
.custom-row[data-state="quarantined"] .claim-value span {
  color: var(--warning);
}
.custom-row[data-state="blocked"] .claim-value span,
.custom-row[data-state="revoked"] .claim-value span {
  color: var(--danger);
}

.asset-group summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 66px;
  padding: 12px 0;
}

.asset-group summary::-webkit-details-marker {
  display: none;
}
.disclosure-indicator {
  color: var(--pink-dark);
  font-size: 20px;
  margin-left: 14px;
}
.disclosure-indicator::before {
  content: "+";
}
.asset-group details[open] .disclosure-indicator::before {
  content: "−";
}
.asset-group-value {
  margin-left: auto;
  text-align: right;
}

.asset-list {
  background: var(--pink-soft);
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0 -16px;
  max-height: 420px;
  overflow-y: auto;
  padding: 0 16px;
  overscroll-behavior: contain;
}

.asset-list .claim-row {
  min-height: 58px;
}

.meta-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 18px;
}

.meta-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.meta-grid span {
  color: var(--ink-soft);
  font:
    500 10px/1 "Geist Mono",
    monospace;
  text-transform: uppercase;
}
.meta-grid strong {
  font:
    600 12px/1.3 "Geist Mono",
    monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary {
  align-items: center;
  background: var(--pink);
  border: 1px solid transparent;
  border-radius: 12px;
  color: #2d1723;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-height: 78px;
  padding: 12px 20px;
  transition:
    background-color 140ms ease,
    transform 140ms ease;
  width: 100%;
}

.primary:not(:disabled):hover {
  background: #ef91c0;
  transform: translateY(-1px);
}
.primary:not(:disabled):active {
  transform: translateY(0);
}
.primary:disabled {
  opacity: 0.55;
}
.primary strong {
  font-size: 19px;
  font-weight: 720;
}
.primary span {
  font:
    500 12px/1.2 "Geist Mono",
    monospace;
  opacity: 0.72;
}

.status {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
  margin: 16px 0 0;
  min-height: 18px;
  text-align: center;
}

.error {
  background: #fff1f2;
  border: 1px solid #f1d4d8;
  border-radius: 8px;
  color: var(--danger);
  font-size: 12px;
  margin: 13px 0 0;
  padding: 10px 12px;
  line-height: 1.45;
  text-align: center;
}

.wallet-state {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 12px;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 28px;
  min-height: 44px;
}

.wallet-state::before {
  background: var(--ink-soft);
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.wallet-state[data-state="ready"]::before {
  background: var(--success);
}

.wallet-state[data-state="wrong"]::before {
  background: var(--danger);
}

.wallet-link {
  display: flex;
  justify-content: center;
  margin: -18px 0 28px;
}

.wallet-link:empty,
.wallet-link:has(> [hidden]) {
  display: none;
}

.wallet-link a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--pink-dark);
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.details {
  border-top: 1px solid var(--line);
}
.details > summary {
  align-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
}
.details > summary::-webkit-details-marker {
  display: none;
}
.details > summary::after {
  color: var(--pink-dark);
  content: "+";
  font-size: 18px;
}
.details[open] > summary::after {
  content: "−";
}
.details-body {
  padding: 8px 0 0;
}

.detail-error {
  background: #fff7f2;
  border: 1px solid #eadbd2;
  border-radius: 8px;
  color: var(--warning);
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.trust {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 0 2px;
}

.trust-mark {
  background: var(--success);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 7px;
  margin-top: 5px;
  width: 7px;
}
.trust p {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 620px) {
  body {
    align-items: stretch;
    padding: 0;
  }
  .shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100svh;
  }
  .header {
    padding: 0 18px;
  }
  .content {
    padding: 42px 18px 24px;
  }
  .hero {
    margin-bottom: 32px;
  }
  h1 {
    font-size: 48px;
  }
  .intro {
    font-size: 14px;
    max-width: 330px;
  }
  .total-line {
    min-height: 148px;
  }
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .meta-grid strong {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }
  .asset-group summary {
    align-items: start;
    column-gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 42%) auto;
  }
  .asset-group-value,
  .disclosure-indicator {
    margin-left: 0;
  }
  .wallet-state {
    margin-bottom: 22px;
  }
  .wallet-link {
    margin-bottom: 22px;
  }
  .wallet-link a {
    width: 100%;
  }
  .trust {
    margin-top: 16px;
  }
  .trust p {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
