:root {
  --bg-deep: #071542;
  --bg-mid: #0e2c87;
  --bg-bright: #1e50d8;
  --panel: rgba(7, 21, 66, 0.76);
  --panel-strong: rgba(5, 16, 53, 0.92);
  --panel-soft: rgba(15, 35, 94, 0.7);
  --border: rgba(251, 175, 64, 0.26);
  --border-strong: rgba(251, 175, 64, 0.58);
  --text: #f7f4ee;
  --muted: #b1bfed;
  --accent: #fbaf40;
  --accent-strong: #ffca6e;
  --accent-deep: #d98511;
  --accent-glow: rgba(251, 175, 64, 0.42);
  --success: #79f4bc;
  --danger: #ff8f8f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --sans: "Manrope", sans-serif;
  --display: "Chakra Petch", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 18% 18%, rgba(44, 103, 255, 0.94), transparent 32%),
    radial-gradient(circle at 84% 14%, rgba(251, 175, 64, 0.16), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(251, 175, 64, 0.12), transparent 22%),
    linear-gradient(135deg, #041033 0%, #102a7d 44%, #06133d 100%);
  overflow-x: hidden;
}

body.claim-celebration-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(251, 175, 64, 0.55) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(251, 175, 64, 0.3) 0 1px, transparent 2px);
  background-size: 240px 240px, 180px 180px;
  background-position: 0 0, 70px 100px;
  opacity: 0.22;
}

body::after {
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-100%);
  animation: sweep 12s linear infinite;
  opacity: 0.2;
}

.page-header {
  position: relative;
  z-index: 12;
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid rgba(251, 175, 64, 0.12);
  background:
    linear-gradient(180deg, rgba(5, 16, 53, 0.86), rgba(5, 16, 53, 0.58));
  backdrop-filter: blur(14px);
}

.page-header-inner {
  width: min(1440px, calc(100vw - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toast-stack {
  position: fixed;
  top: var(--claim-toast-top, 110px);
  right: 22px;
  z-index: 20;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 28px));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(251, 175, 64, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(10, 24, 70, 0.96), rgba(5, 15, 47, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast[data-tone="success"] {
  border-color: rgba(121, 244, 188, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(9, 40, 34, 0.98), rgba(5, 26, 22, 0.98));
}

.toast[data-tone="error"] {
  border-color: rgba(255, 143, 143, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(60, 18, 24, 0.98), rgba(36, 10, 14, 0.98));
}

.toast-message {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toast-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
  box-shadow: none;
}

.claim-celebration {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.claim-celebration,
.claim-celebration *,
.claim-celebration *::before,
.claim-celebration *::after {
  animation: none !important;
  transition: none !important;
}

.claim-celebration.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.claim-celebration-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(251, 175, 64, 0.16), transparent 28%),
    rgba(4, 10, 32, 0.74);
  backdrop-filter: blur(12px);
}

.claim-celebration-dialog {
  position: relative;
  isolation: isolate;
  width: min(720px, 100%);
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(251, 175, 64, 0.22);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 50% 0, rgba(251, 175, 64, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(11, 28, 78, 0.98), rgba(5, 15, 47, 0.99));
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(26px) scale(0.96);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.claim-celebration.is-visible .claim-celebration-dialog {
  transform: translateY(0) scale(1);
}

.claim-celebration-dialog::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(251, 175, 64, 0.12);
  pointer-events: none;
}

.claim-celebration-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.claim-celebration-core {
  position: relative;
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.claim-celebration-core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(251, 175, 64, 0.22);
  pointer-events: none;
}

.claim-celebration-core-ring-primary {
  inset: 0;
}

.claim-celebration-core-ring-secondary {
  inset: 16px;
  border-color: rgba(121, 244, 188, 0.22);
}

.claim-celebration-core-token {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 20px rgba(251, 175, 64, 0.24))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

.claim-celebration-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.claim-celebration-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.claim-celebration-title {
  margin-top: 12px;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(251, 175, 64, 0.16);
}

.claim-celebration-amount {
  margin: 18px 0 0;
  color: #fff7de;
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 34px rgba(251, 175, 64, 0.18),
    0 0 10px rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}

.claim-celebration-message {
  max-width: 42ch;
  margin: 18px auto 0;
  color: #edf3ff;
  font-size: 1rem;
  line-height: 1.72;
}

.claim-celebration-hint {
  max-width: 40ch;
  margin: 14px auto 0;
  color: #c7d4ff;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

.claim-celebration-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.claim-celebration-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(251, 175, 64, 0.22);
  border-radius: 999px;
  color: #fff0d3;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    rgba(251, 175, 64, 0.1);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.claim-celebration-link:hover,
.claim-celebration-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(251, 175, 64, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%),
    rgba(251, 175, 64, 0.18);
}

.claim-celebration-continue {
  margin-top: 24px;
  min-width: min(280px, 100%);
}

.claim-celebration-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  min-width: 88px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 14px;
}

.claim-celebration-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.claim-celebration-token {
  position: absolute;
  top: var(--token-start-top, -56px);
  left: var(--token-left, 50%);
  width: var(--token-size, 60px);
  height: var(--token-size, 60px);
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 6px 12px rgba(251, 175, 64, 0.14));
  transform:
    translate3d(0, 0, 0)
    rotate(var(--token-rotate-start, 0deg))
    scale(calc(var(--token-scale, 1) * 0.45));
  will-change: top, transform, opacity;
}

.claim-celebration-token.is-falling {
  visibility: visible;
  animation: tokenFall var(--token-duration, 4s) linear both;
}

.claim-celebration-flight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  display: none;
}

.claim-celebration-flight-token {
  position: absolute;
  width: var(--flight-size, 28px);
  height: var(--flight-size, 28px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 6px 12px rgba(251, 175, 64, 0.22));
  transform: translate(-50%, -50%);
  animation: tokenSuck var(--flight-duration, 0.8s) cubic-bezier(0.18, 0.9, 0.26, 1) var(--flight-delay, 0s) forwards;
}

.claim-celebration[data-stage="wallet"] .claim-celebration-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 50% 0, rgba(111, 153, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(11, 28, 78, 0.98), rgba(5, 15, 47, 0.99));
}

.claim-celebration[data-stage="wallet"] .claim-celebration-core-ring-primary {
  animation: celebrationBeacon 1.8s ease-out infinite;
}

.claim-celebration[data-stage="wallet"] .claim-celebration-core-ring-secondary {
  animation: celebrationPulse 1.3s ease-in-out infinite;
}

.claim-celebration[data-stage="wallet"] .claim-celebration-core-token {
  animation: celebrationTokenHover 1.2s ease-in-out infinite;
}

.claim-celebration[data-stage="pending"] .claim-celebration-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 50% 0, rgba(121, 244, 188, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(9, 32, 64, 0.99), rgba(5, 18, 49, 0.99));
}

.claim-celebration[data-stage="pending"] .claim-celebration-core-ring-primary {
  border-style: dashed;
  animation: celebrationSpin 3.6s linear infinite;
}

.claim-celebration[data-stage="pending"] .claim-celebration-core-ring-secondary {
  animation: celebrationPulse 1s ease-in-out infinite;
}

.claim-celebration[data-stage="pending"] .claim-celebration-core-token {
  animation: celebrationTokenCharge 1s ease-in-out infinite;
}

.claim-celebration[data-stage="success"] .claim-celebration-backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(251, 175, 64, 0.22), transparent 28%),
    rgba(4, 10, 32, 0.62);
}

.claim-celebration[data-stage="success"] .claim-celebration-core-ring-primary {
  animation: celebrationHalo 1.1s ease-out both;
}

.claim-celebration[data-stage="success"] .claim-celebration-core-ring-secondary {
  animation: celebrationPulse 1.6s ease-in-out infinite;
}

.claim-celebration[data-stage="success"] .claim-celebration-core-token {
  animation: celebrationVictoryPop 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-glow,
.page-circuit {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.page-glow {
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(251, 175, 64, 0.2), transparent 16%),
    radial-gradient(circle at 50% 24%, rgba(251, 175, 64, 0.12), transparent 24%);
}

.page-circuit {
  top: 0;
  bottom: 0;
  width: min(27vw, 420px);
  opacity: 0.34;
}

.page-circuit::before,
.page-circuit::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.page-circuit-left {
  left: 0;
}

.page-circuit-right {
  right: 0;
  transform: scaleX(-1);
}

.page-circuit::before {
  background-image:
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    linear-gradient(var(--accent-glow), var(--accent-glow));
  background-size:
    44% 2px,
    62% 2px,
    38% 2px,
    58% 2px,
    48% 2px,
    66% 2px;
  background-position:
    0 18%,
    0 27%,
    0 52%,
    0 61%,
    0 78%,
    0 88%;
}

.page-circuit::after {
  background-image:
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    linear-gradient(var(--accent-glow), var(--accent-glow)),
    radial-gradient(circle, rgba(251, 175, 64, 0.85) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(251, 175, 64, 0.78) 0 4px, transparent 5px),
    radial-gradient(circle, rgba(251, 175, 64, 0.82) 0 4px, transparent 5px);
  background-size:
    2px 14%,
    2px 13%,
    2px 16%,
    10px 10px,
    10px 10px,
    10px 10px;
  background-position:
    44% 18%,
    62% 27%,
    38% 52%,
    44% 18%,
    62% 27%,
    38% 52%;
}

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

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 30px 0 68px;
  flex: 1 0 auto;
}

.shell-narrow {
  width: min(100vw - 20px, 560px);
  padding-top: 34px;
}

.center-stage {
  width: min(100vw - 20px, 560px);
  margin: 0 auto;
}

.page-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid rgba(251, 175, 64, 0.12);
  background:
    linear-gradient(180deg, rgba(5, 16, 53, 0.42), rgba(5, 16, 53, 0.76));
  backdrop-filter: blur(14px);
}

.page-footer-inner {
  width: min(1440px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-footer-copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.page-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.footer-link-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-decoration: underline;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  cursor: pointer;
}

.footer-link-anchor:hover {
  color: #ffe9c7;
  box-shadow: none;
}

.footer-link-action img {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 175, 64, 0.52), transparent 26%, transparent 72%, rgba(255, 255, 255, 0.08));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.slim-frame {
  padding: 16px 24px;
}

.inset {
  margin: 0;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    linear-gradient(180deg, rgba(15, 35, 94, 0.82) 0%, rgba(5, 15, 47, 0.92) 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.9fr);
  gap: 22px;
  padding: 30px;
}

.hero-simple {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.claim-card {
  padding: 22px;
}

.claim-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.claim-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.wallet-menu-shell {
  position: relative;
  flex: 0 0 auto;
}

.wallet-trigger {
  min-width: 164px;
}

.wallet-trigger.is-receiving-claim {
  animation: walletReceivePulse 1.15s ease-out 1;
  box-shadow:
    0 0 0 5px rgba(251, 175, 64, 0.14),
    0 12px 34px rgba(251, 175, 64, 0.32);
}

.wallet-popout {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(251, 175, 64, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(10, 24, 70, 0.98), rgba(5, 15, 47, 0.99));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  z-index: 3;
}

.wallet-popout-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallet-popout-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.wallet-popout-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.wallet-popout-meta p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.wallet-popout-meta span {
  color: var(--muted);
}

.wallet-popout-meta strong {
  font-weight: 600;
  color: #fff0d3;
  text-align: right;
}

.wallet-popout-address {
  margin: 0;
  flex: 1 1 auto;
  color: #fff0d3;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-copy-button {
  min-width: 84px;
  padding-inline: 14px;
  box-shadow: none;
}

.wallet-disconnect-button {
  width: 100%;
  justify-content: center;
}

.wallet-popout .wallet-disconnect-button + .wallet-disconnect-button {
  margin-top: 10px;
}

.wallet-picker-open {
  overflow: hidden;
}

.wallet-picker {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 10, 32, 0.74);
  backdrop-filter: blur(16px);
}

.wallet-picker-dialog {
  width: min(540px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(251, 175, 64, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(12, 28, 79, 0.98), rgba(5, 15, 47, 0.99));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.wallet-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wallet-picker-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  box-shadow: none;
}

.wallet-picker-list {
  display: grid;
  gap: 12px;
  overflow: auto;
}

.wallet-picker-option {
  width: 100%;
  max-height: none;
  height: auto;
  min-height: 88px;
  justify-content: flex-start;
  gap: 14px;
  padding: 18px;
  color: var(--text);
  text-align: left;
  white-space: normal;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(13, 30, 82, 0.92), rgba(6, 17, 52, 0.96));
  border: 1px solid rgba(251, 175, 64, 0.18);
  box-shadow: none;
}

.wallet-picker-option:hover,
.wallet-picker-option:focus-visible {
  border-color: rgba(251, 175, 64, 0.4);
  box-shadow: 0 0 0 4px rgba(251, 175, 64, 0.08);
}

.wallet-picker-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  border-color: rgba(174, 184, 214, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%),
    linear-gradient(180deg, rgba(15, 20, 37, 0.94), rgba(10, 14, 28, 0.98));
}

.wallet-picker-option:disabled:hover,
.wallet-picker-option:disabled:focus-visible {
  border-color: rgba(174, 184, 214, 0.16);
  box-shadow: none;
}

.wallet-picker-icon-shell {
  position: relative;
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(251, 175, 64, 0.18);
  background: rgba(251, 175, 64, 0.08);
}

.wallet-picker-icon,
.wallet-picker-icon-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.wallet-picker-icon {
  object-fit: cover;
}

.wallet-picker-icon-fallback {
  color: #fff0d3;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.wallet-picker-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.wallet-picker-name {
  color: #fff6df;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
}

.wallet-picker-reason {
  color: rgba(231, 217, 188, 0.76);
  font-size: 0.86rem;
  line-height: 1.45;
}

.wallet-picker-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0d2213;
  font-family: var(--mono);
  font-size: 0.78rem;
  background: rgba(121, 244, 188, 0.92);
}

.wallet-picker-empty {
  padding: 18px;
  border: 1px dashed rgba(251, 175, 64, 0.2);
  border-radius: 20px;
  background: rgba(251, 175, 64, 0.05);
}

.wallet-picker-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.wallet-picker-empty p + p {
  margin-top: 10px;
}

.wallet-picker-footer {
  display: flex;
  justify-content: flex-end;
}

.claim-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.claim-card-wallet {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.claim-card-intro {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.claim-card-block + .claim-card-block {
  margin-top: 18px;
}

.x-auth-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(251, 175, 64, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(13, 30, 82, 0.92), rgba(6, 17, 52, 0.96));
}

.x-auth-copy {
  display: grid;
  gap: 10px;
}

.x-auth-shell {
  display: grid;
  gap: 14px;
}

.x-auth-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-auth-avatar {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(251, 175, 64, 0.2);
  object-fit: cover;
  background: rgba(251, 175, 64, 0.08);
}

.x-auth-profile {
  min-width: 0;
  display: grid;
  gap: 0;
}

.x-auth-status {
  margin: 0;
}

.x-auth-link,
.x-auth-status {
  font-family: var(--mono);
}

.x-auth-link {
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.x-auth-status {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.x-auth-status[data-tone="success"] {
  color: var(--success);
}

.x-auth-status[data-tone="warn"] {
  color: var(--accent-strong);
}

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

.x-auth-actions button {
  min-width: 176px;
}

.claim-title {
  max-width: none;
  font-size: clamp(2.1rem, 8vw, 3.1rem);
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-copy::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 30px;
  width: 220px;
  height: 220px;
  border-radius: 38% 62% 48% 52%;
  background:
    radial-gradient(circle at 50% 50%, rgba(251, 175, 64, 0.28) 0%, rgba(251, 175, 64, 0.08) 44%, transparent 72%);
  filter: blur(8px);
  opacity: 0.85;
  animation: floatGlow 5.4s ease-in-out infinite;
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.nav-brand {
  margin-bottom: 0;
}

.brand-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(251, 175, 64, 0.26));
}

.brand-mark {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 214, 141, 0.95), rgba(251, 175, 64, 0.9) 40%, rgba(189, 110, 16, 0.98) 100%);
  box-shadow:
    0 0 0 5px rgba(251, 175, 64, 0.16),
    0 0 28px rgba(251, 175, 64, 0.38);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff7de;
}

.brand-mark::before {
  bottom: 13px;
  width: 10px;
  height: 24px;
  clip-path: polygon(50% 0, 100% 34%, 70% 34%, 100% 100%, 0 100%, 30% 34%, 0 34%);
}

.brand-mark::after {
  top: 12px;
  width: 14px;
  height: 15px;
  border-radius: 55% 45% 60% 40%;
  filter: drop-shadow(0 0 8px rgba(255, 247, 222, 0.7));
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-wordmark,
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.brand-wordmark {
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 0.94;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

h3 {
  font-size: 1rem;
}

.rewards-loading-title {
  color: #fff6df;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.1;
}

.loading-ellipsis {
  display: inline-grid;
  grid-template-columns: repeat(3, 0.42em);
  margin-left: 2px;
}

.loading-ellipsis span {
  opacity: 0.28;
  animation: loadingDot 1.15s ease-in-out infinite;
}

.loading-ellipsis span:nth-child(2) {
  animation-delay: 150ms;
}

.loading-ellipsis span:nth-child(3) {
  animation-delay: 300ms;
}

.lede,
.hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 63ch;
  margin-top: 16px;
  font-size: 1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(251, 175, 64, 0.18);
  border-radius: 999px;
  color: #ffe9c7;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.84rem;
  background: rgba(251, 175, 64, 0.08);
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(251, 175, 64, 0.42);
  background: rgba(251, 175, 64, 0.18);
  transform: translateY(-1px);
}

.compact-hint {
  margin-top: 16px;
}

.mono-inline {
  font-family: var(--mono);
  color: #ffe9c7;
}

.summary-headline {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.1;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.detail-item {
  padding: 16px;
  border: 1px solid rgba(251, 175, 64, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(13, 30, 82, 0.92), rgba(6, 17, 52, 0.96));
}

.detail-item h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item p {
  margin: 0;
  min-height: 1.6em;
  word-break: break-word;
}

.hero-tags span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 175, 64, 0.2);
  background: rgba(251, 175, 64, 0.11);
  color: #ffe9c7;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.command-card,
.runbook-card {
  padding: 22px;
}

.hero-actions {
  display: grid;
  gap: 16px;
}

.button-stack,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-stack {
  flex-direction: column;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  color: #111930;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffc86d 0%, var(--accent) 42%, #e48e17 100%);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(251, 175, 64, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.42) 48%, transparent 72%);
  transform: translateX(-140%);
  transition: transform 280ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(251, 175, 64, 0.35);
  filter: saturate(1.08);
}

button:hover::after {
  transform: translateX(140%);
}

button.secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(50, 82, 182, 0.92), rgba(15, 37, 103, 0.98));
  box-shadow: 0 10px 24px rgba(7, 21, 66, 0.42);
}

button.danger {
  color: #fff4f4;
  background: linear-gradient(135deg, #d64a4a 0%, #b31f2f 54%, #7b1020 100%);
  box-shadow: 0 10px 24px rgba(123, 16, 32, 0.36);
}

button.ghost {
  color: var(--accent-strong);
  background: rgba(251, 175, 64, 0.09);
  border: 1px solid rgba(251, 175, 64, 0.22);
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  filter: none;
  transform: none;
  box-shadow: none;
}

button:disabled::after {
  display: none;
}

.status-panel,
.frame {
  padding: 24px;
}

.status-grid,
.form-grid,
.card-grid,
.split-shell {
  display: grid;
  gap: 16px;
}

.status-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.status-grid article,
.card-form,
.result-block,
.log-panel,
table {
  border: 1px solid rgba(251, 175, 64, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(13, 30, 82, 0.92), rgba(6, 17, 52, 0.96));
}

.status-grid article {
  padding: 16px;
}

.status-grid h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-grid p,
.result-block,
.log-panel,
th,
td,
input,
textarea,
select,
code,
.runbook li,
.badge {
  font-family: var(--mono);
}

.status-grid p {
  margin: 0;
  min-height: 2.4em;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.5;
  word-break: break-word;
}

.badge[data-state="ready"] {
  color: #0d2213;
  background: rgba(121, 244, 188, 0.88);
  border-color: rgba(121, 244, 188, 0.6);
}

.badge[data-state="warn"] {
  color: #381500;
  background: rgba(255, 189, 118, 0.92);
  border-color: rgba(255, 189, 118, 0.6);
}

.badge[data-state="idle"] {
  color: #fff0d3;
  background: rgba(251, 175, 64, 0.12);
}

.runbook {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.runbook li {
  margin-bottom: 10px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid.thirds {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.split-shell {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.admin-tabs-shell {
  padding-bottom: 18px;
}

.admin-summary-list {
  margin: 18px 0 14px;
}

.admin-summary-list .detail-item p {
  font-family: var(--mono);
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid rgba(251, 175, 64, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(13, 30, 82, 0.92), rgba(6, 17, 52, 0.96));
}

.admin-tab-button {
  min-width: 0;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  padding: 13px 18px;
  border: 0;
  border-radius: 0;
  background: rgba(251, 175, 64, 0.06);
  color: var(--accent-strong);
  box-shadow: none;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease,
    filter 140ms ease;
}

.admin-tab-button:hover,
.admin-tab-button:focus-visible {
  color: #ffe9c7;
  background: rgba(251, 175, 64, 0.1);
  box-shadow: none;
}

.admin-tab-button.is-active {
  background: linear-gradient(135deg, #ffc86d 0%, var(--accent) 42%, #e48e17 100%);
  color: #111930;
  box-shadow: inset 0 0 0 1px rgba(251, 175, 64, 0.18);
}

.admin-tab-button.is-active:hover,
.admin-tab-button.is-active:focus-visible {
  background: linear-gradient(135deg, #ffd487 0%, #fbb040 42%, #ee9b26 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 175, 64, 0.18);
}

.management-actions-grid {
  margin: 22px 0;
}

.management-actions-grid > * {
  min-width: 0;
}

.management-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.management-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 14px;
  align-items: end;
}

.management-filter-field,
.management-page-size-field {
  display: grid;
  gap: 8px;
}

.management-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 175, 64, 0.14);
  border-radius: 16px;
  background: rgba(8, 21, 60, 0.7);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-field span {
  color: #f5f8ff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.management-meta-stack {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.management-meta-stack span {
  color: var(--muted);
  font-size: 0.8rem;
}

.table-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 10px;
  border: 1px solid rgba(251, 175, 64, 0.16);
  border-radius: 999px;
  background: rgba(251, 175, 64, 0.08);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-flag[data-tone="positive"] {
  border-color: rgba(110, 224, 140, 0.24);
  background: rgba(32, 119, 57, 0.24);
  color: #c7ffd4;
}

.table-flag[data-tone="muted"] {
  border-color: rgba(126, 147, 193, 0.16);
  background: rgba(65, 82, 122, 0.24);
  color: #d5def6;
}

.table-address-link {
  color: inherit;
  text-decoration: none;
}

.table-address-link:hover code,
.table-address-link:focus-visible code {
  color: #ffe8b9;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-warning {
  margin: -2px 0 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 189, 118, 0.32);
  border-radius: 16px;
  color: #ffe3b7;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.5;
  background: rgba(255, 189, 118, 0.08);
}

.form-warning[data-tone="info"] {
  border-color: rgba(121, 244, 188, 0.28);
  color: #ddffef;
  background: rgba(121, 244, 188, 0.08);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(251, 175, 64, 0.16);
  border-radius: 16px;
  background: rgba(4, 13, 41, 0.78);
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(177, 191, 237, 0.56);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(251, 175, 64, 0.48);
  box-shadow: 0 0 0 4px rgba(251, 175, 64, 0.09);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 168px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-strong) 50%),
    linear-gradient(135deg, var(--accent-strong) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.card-form {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.card-form h3 {
  color: var(--text);
}

.management-actions-grid .hint code {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

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

.subsection-header .hint {
  margin-top: 8px;
}

.builder-shell {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.builder-form {
  margin: 0;
}

.builder-summary-list .detail-item p {
  font-family: var(--mono);
}

.builder-table-wrap {
  margin-top: 0;
}

.builder-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff0d3;
  font-family: var(--mono);
  font-size: 0.82rem;
  background: rgba(251, 175, 64, 0.12);
  border: 1px solid rgba(251, 175, 64, 0.18);
}

.builder-input {
  min-width: 200px;
}

.builder-row-action {
  width: 132px;
}

.round-action-cell {
  min-width: 190px;
  display: grid;
  gap: 10px;
}

.table-action-button {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 14px;
  font-size: 0.84rem;
  box-shadow: none;
}

.builder-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 175, 64, 0.44), transparent);
}

.builder-table-actions {
  align-items: flex-start;
  margin-top: 14px;
}

.builder-inline-warning {
  margin: 0;
  flex: 1 1 360px;
}

.upload-preview-wrap {
  margin-top: 18px;
}

tfoot td {
  border-top: 1px solid rgba(251, 175, 64, 0.12);
}

.table-footer-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-footer-value {
  min-width: 220px;
}

.table-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.table-footer-actions span {
  color: #fff6df;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.deadline-stack {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.deadline-stack span {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(251, 175, 64, 0.12);
  line-height: 1.45;
}

thead th {
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: none;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.proof-preview {
  max-width: 420px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #d7e1ff;
}

.round-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.round-card {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(251, 175, 64, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(13, 30, 82, 0.92), rgba(6, 17, 52, 0.96));
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.rewards-loading-card {
  min-height: 88px;
  display: flex;
  align-items: center;
}

.round-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.round-card-top.solo {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.round-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.round-amount {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.95rem, 8vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: #fff6df;
  overflow-wrap: anywhere;
}

.round-claim-button {
  width: 100%;
  margin-top: 16px;
  min-height: 54px;
  font-size: 1.04rem;
}

.round-claim-button.is-processing {
  color: #fff6df;
  background:
    linear-gradient(135deg, rgba(46, 89, 197, 0.96), rgba(21, 47, 124, 0.98)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 42%);
  box-shadow:
    0 12px 28px rgba(7, 21, 66, 0.32),
    0 0 0 1px rgba(121, 244, 188, 0.18) inset;
  animation: claimButtonCharge 1.25s linear infinite;
}

button.round-claim-button.is-processing:disabled {
  opacity: 1;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 175, 64, 0.16);
  background: rgba(251, 175, 64, 0.08);
  color: #ffe9c7;
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.status-chip[data-tone="ready"] {
  color: #0d2213;
  background: rgba(121, 244, 188, 0.88);
  border-color: rgba(121, 244, 188, 0.6);
}

.status-chip[data-tone="warn"] {
  color: #381500;
  background: rgba(255, 189, 118, 0.92);
  border-color: rgba(255, 189, 118, 0.6);
}

.status-chip[data-tone="error"] {
  color: #3a0d0d;
  background: rgba(255, 143, 143, 0.9);
  border-color: rgba(255, 143, 143, 0.55);
}

.status-chip[data-tone="neutral"] {
  color: #fff0d3;
  background: rgba(251, 175, 64, 0.12);
}

.claim-lookup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 16px;
  align-items: end;
}

.claim-lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.compact-grid {
  margin-bottom: 12px;
}

.result-block,
.log-panel {
  margin: 0;
  padding: 14px;
  min-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d7e1ff;
}

.log-panel {
  min-height: 260px;
}

.compact-log {
  min-height: 140px;
}

.owner-gate {
  display: grid;
  gap: 16px;
}

[hidden] {
  display: none !important;
}

code {
  color: #ffe2b0;
}

@keyframes sweep {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(8px) scale(1.04);
  }
}

@keyframes loadingDot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes celebrationPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.96;
  }
}

@keyframes celebrationBeacon {
  0% {
    transform: scale(0.8);
    opacity: 0.74;
  }
  100% {
    transform: scale(1.34);
    opacity: 0;
  }
}

@keyframes celebrationSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes celebrationTokenHover {
  0%,
  100% {
    transform: translateY(0) scale(0.98);
  }
  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

@keyframes celebrationTokenCharge {
  0%,
  100% {
    transform: scale(0.96) rotate(0deg);
    filter:
      drop-shadow(0 0 18px rgba(121, 244, 188, 0.18))
      drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
  }
  50% {
    transform: scale(1.08) rotate(8deg);
    filter:
      drop-shadow(0 0 22px rgba(121, 244, 188, 0.26))
      drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
  }
}

@keyframes celebrationHalo {
  0% {
    transform: scale(0.8);
    opacity: 0.84;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes celebrationVictoryPop {
  0% {
    transform: scale(0.72) rotate(-18deg);
  }
  58% {
    transform: scale(1.16) rotate(8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes tokenFall {
  0% {
    top: var(--token-start-top, -56px);
    opacity: 0;
    transform:
      translate3d(0, 0, 0)
      rotate(var(--token-rotate-start, 0deg))
      scale(calc(var(--token-scale, 1) * 0.45));
  }
  8% {
    top: calc(var(--token-start-top, -56px) + 28px);
    opacity: var(--token-opacity, 0.7);
    transform:
      translate3d(calc(var(--token-drift, 0px) * 0.18), 0, 0)
      rotate(calc(var(--token-rotate-start, 0deg) + 32deg))
      scale(var(--token-scale, 1));
  }
  68% {
    top: var(--token-floor-top, 380px);
    transform:
      translate3d(var(--token-drift, 0px), 0, 0)
      rotate(var(--token-rotate-mid, 280deg))
      scale(var(--token-scale, 1));
  }
  80% {
    top: var(--token-bounce-top, 330px);
    transform:
      translate3d(var(--token-drift-bounce, var(--token-drift, 0px)), 0, 0)
      rotate(var(--token-rotate-bounce, 380deg))
      scale(calc(var(--token-scale, 1) * 0.94));
  }
  88% {
    top: var(--token-floor-top, 380px);
    transform:
      translate3d(var(--token-drift-bounce, var(--token-drift, 0px)), 0, 0)
      rotate(calc(var(--token-rotate-bounce, 380deg) + 48deg))
      scale(calc(var(--token-scale, 1) * 0.98));
  }
  100% {
    top: var(--token-exit-top, 520px);
    transform:
      translate3d(var(--token-drift-end, var(--token-drift, 0px)), 0, 0)
      rotate(var(--token-rotate-end, 540deg))
      scale(var(--token-scale, 1));
  }
}

@keyframes tokenSuck {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0;
  }
  18% {
    opacity: 0.95;
  }
  100% {
    transform:
      translate(-50%, -50%)
      translate3d(var(--flight-x, 0px), var(--flight-y, 0px), 0)
      scale(0.18)
      rotate(540deg);
    opacity: 0;
  }
}

@keyframes walletReceivePulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes claimButtonCharge {
  0% {
    filter: brightness(0.96);
    box-shadow:
      0 12px 28px rgba(7, 21, 66, 0.28),
      0 0 0 1px rgba(121, 244, 188, 0.12) inset;
  }
  50% {
    filter: brightness(1.05);
    box-shadow:
      0 14px 34px rgba(7, 21, 66, 0.38),
      0 0 0 1px rgba(121, 244, 188, 0.22) inset,
      0 0 18px rgba(121, 244, 188, 0.12);
  }
  100% {
    filter: brightness(0.96);
    box-shadow:
      0 12px 28px rgba(7, 21, 66, 0.28),
      0 0 0 1px rgba(121, 244, 188, 0.12) inset;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy::after {
    right: -10px;
    top: 24px;
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 780px) {
  .toast-stack {
    top: 90px;
    right: 10px;
    left: 10px;
  }

  .toast {
    width: 100%;
  }

  .page-header {
    padding: 14px 0;
  }

  .page-header-inner,
  .shell {
    width: min(100vw - 18px, 1440px);
  }

  .shell {
    padding-top: 22px;
  }

  .shell-narrow {
    width: min(100vw - 16px, 560px);
    padding-top: 18px;
  }

  .center-stage {
    width: min(100vw - 16px, 560px);
  }

  .hero,
  .status-panel,
  .frame {
    padding: 18px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 12vw, 3.5rem);
  }

  .panel-title-row {
    flex-direction: column;
  }

  .button-row {
    width: 100%;
  }

  .button-row button,
  .button-stack button {
    width: 100%;
  }

  .management-filter-form {
    grid-template-columns: 1fr;
  }

  .management-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .checkbox-row {
    flex-direction: column;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .claim-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .x-auth-identity,
  .claim-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
  }

  .claim-topbar-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-left: auto;
    gap: 5px;
  }

  .brand-lockup {
    gap: 5px;
  }

  .claim-card-wallet {
    justify-items: stretch;
  }

  .claim-topbar-actions > button,
  .claim-topbar-actions > .wallet-menu-shell > button,
  .claim-topbar-actions .badge,
  .claim-card-wallet button,
  .claim-card-wallet .badge {
    width: 100%;
    justify-content: center;
  }

  .page-header .wallet-trigger {
    width: auto;
  }

  .page-header .wallet-popout {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }

  .wallet-picker {
    padding: 12px;
  }

  .wallet-picker-dialog {
    padding: 18px;
    border-radius: 24px;
  }

  .claim-celebration {
    padding: 12px;
  }

  .claim-celebration-dialog {
    padding: 22px 18px 20px;
    border-radius: 28px;
  }

  .claim-celebration-core {
    width: 104px;
    height: 104px;
  }

  .claim-celebration-core-token {
    width: 64px;
    height: 64px;
  }

  .claim-celebration-close {
    top: 12px;
    right: 12px;
  }

  .claim-celebration-message {
    font-size: 0.94rem;
  }

  .claim-celebration-links {
    gap: 10px;
  }

  .claim-celebration-link,
  .claim-celebration-continue {
    width: 100%;
  }

  .claim-celebration-token {
    width: var(--token-size, 48px);
    height: var(--token-size, 48px);
  }

  .wallet-picker-option {
    min-height: 82px;
    padding: 16px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .nav-links {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .claim-lookup-grid {
    grid-template-columns: 1fr;
  }

  .claim-lookup-actions {
    justify-content: stretch;
  }

  .claim-lookup-actions button {
    width: 100%;
  }

  .x-auth-actions button {
    width: 100%;
  }

  .round-list {
    grid-template-columns: 1fr;
  }

  .page-footer-inner {
    width: min(100vw - 18px, 1440px);
    align-items: center;
    justify-content: space-between;
  }

  .page-footer-links {
    width: auto;
    justify-content: flex-end;
  }

  .page-circuit {
    display: none;
  }
}

@media (max-width: 374px) {
  .page-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .claim-topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .page-header .wallet-popout {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
  }
}
