/* Same design tokens as klap-checkout's/klap-one's own styles.css —
   dark-only, this is the Klappay brand for anything that carries the
   Klappay name. Copied, not reinvented, same convention those two
   siblings already use to stay in visual lockstep (no shared package
   exists for this — see docs/roadmap.md). */
:root {
  color-scheme: dark;
  --canvas: #000000;
  --surface: #0a0a0a;
  --surface-soft: #111111;
  --surface-raised: #161616;
  --border-subtle: #1a1a1a;
  --highlight-100: #cccccc;
  --highlight-200: #e6e6e6;
  --highlight-300: #ffffff;
  --gold-400: #f2b90c;
  --gold-500: #eab308;
  --danger-400: #ff6b6b;
  --danger-500: #ff4d4d;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --text-strong: rgba(255, 255, 255, 0.8);
  --text-subtle: rgba(255, 255, 255, 0.5);
  --overlay-hover: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

[hidden] {
  display: none !important;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  color: var(--highlight-300);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  padding: 24px;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(45% 40% at 50% 0%, rgba(242, 185, 12, 0.2), transparent 70%),
    radial-gradient(50% 45% at 50% 100%, rgba(255, 255, 255, 0.1), transparent 70%);
  filter: blur(60px);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -2%, 0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

.page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand__icon {
  height: 22px;
  width: 22px;
}

.brand__name {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--highlight-300);
}

.card__subtitle {
  color: var(--text-subtle);
  font-size: 13px;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--gold-400);
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn:disabled {
  background: var(--highlight-300);
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--secondary {
  background: var(--surface-raised);
  color: var(--highlight-300);
  border: 1px solid var(--border-subtle);
}

.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--highlight-200);
  text-decoration: none;
  width: 100%;
}

.wallet-row:hover {
  background: var(--overlay-hover);
}

.error-text {
  color: var(--danger-400);
  font-size: 13px;
  text-align: center;
  margin: 0;
}

.score-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
}

.score-row__label {
  color: var(--text-subtle);
  font-size: 12px;
}

.score-row__value {
  color: var(--highlight-300);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.gauge {
  width: 100%;
  max-width: 220px;
}

.gauge__svg {
  width: 100%;
  height: auto;
  display: block;
}

.gauge__label {
  margin: -8px 0 0 0;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}
