:root {
  color-scheme: dark;
  --ink: #f5f6ed;
  --muted: #9ca49d;
  --line: rgba(255, 255, 255, 0.11);
  --surface: rgba(18, 22, 19, 0.88);
  --surface-strong: #151a16;
  --surface-raised: rgba(27, 33, 28, 0.94);
  --lime: #b8ff53;
  --lime-dark: #74ac27;
  --amber: #ffbf47;
  --red: #ff6969;
  --black: #090b0a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--black); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(184, 255, 83, 0.1), transparent 28rem),
    linear-gradient(180deg, #090b0a 0%, #0d110e 62%, #080a09 100%);
}

button, input { font: inherit; }
button { color: inherit; }

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border: 1px solid rgba(184, 255, 83, 0.11); border-radius: 50%; }
.ambient i:nth-child(1) { width: 36rem; height: 36rem; top: -20rem; right: -10rem; }
.ambient i:nth-child(2) { width: 18rem; height: 18rem; top: 9rem; right: 3rem; }
.ambient i:nth-child(3) { width: 52rem; height: 52rem; bottom: -42rem; left: -18rem; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { display: grid; gap: 1px; font-size: 13px; letter-spacing: 0.08em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: 0.19em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.network-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.network-chip i, .state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 191, 71, 0.72);
}

.button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.06em;
  transition: transform 150ms ease, opacity 150ms ease, border-color 150ms ease;
}
.button:not(:disabled):hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: 0.46; }
.button:focus-visible, .text-button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.button-secondary { padding: 12px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 11px; }
.button-primary { background: var(--lime); color: #10140d; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 82px 0 96px; }
.hero { max-width: 870px; margin-bottom: 38px; }
.eyebrow, .panel-kicker { margin: 0 0 13px; color: var(--lime); font-size: 10px; font-weight: 850; letter-spacing: 0.17em; }
.hero h1 { margin: 0; font-size: clamp(43px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.055em; }
.hero h1 em { color: var(--lime); font-style: normal; }
.lede { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.state-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 191, 71, 0.3);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 191, 71, 0.08), rgba(255, 255, 255, 0.025));
}
.state-heading { display: flex; align-items: center; gap: 14px; }
.state-heading p { margin: 0 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }
.state-heading h2 { margin: 0; font-size: 21px; }
.state-panel > p { margin: 0; color: #c9cec9; font-size: 13px; line-height: 1.55; }
.state-panel .error-message { color: #ffd0d0; }

body[data-public-state="claim-live"] .state-panel { border-color: rgba(184, 255, 83, 0.38); background: rgba(184, 255, 83, 0.07); }
body[data-public-state="claim-live"] .state-dot { background: var(--lime); box-shadow: 0 0 18px rgba(184, 255, 83, 0.8); }
body[data-public-state="configuration-error"] .state-panel { border-color: rgba(255, 105, 105, 0.38); background: rgba(255, 105, 105, 0.07); }
body[data-public-state="configuration-error"] .state-dot { background: var(--red); box-shadow: 0 0 18px rgba(255, 105, 105, 0.72); }
.ownerless-warning { margin: 0 0 22px; padding: 12px 14px; border: 1px solid rgba(255, 191, 71, 0.28); border-radius: 9px; background: rgba(255, 191, 71, 0.06); color: #ffd58b; font-size: 10px; line-height: 1.55; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.72fr); gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16); backdrop-filter: blur(14px); }
.claim-panel, .evidence-panel { padding: 28px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.panel-heading h2 { margin: 0; font-size: 24px; letter-spacing: -0.025em; }
.panel-heading .panel-kicker { margin-bottom: 7px; }
.text-button { border: 0; background: transparent; color: var(--lime); cursor: pointer; font-size: 10px; font-weight: 850; letter-spacing: 0.1em; }
.text-button:disabled { color: var(--muted); cursor: not-allowed; }

.wallet-state { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wallet-state span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.14em; }
.wallet-state strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 10px; }
.metrics > div { min-width: 0; padding: 17px; border: 1px solid rgba(255, 255, 255, 0.045); border-radius: 11px; background: rgba(255, 255, 255, 0.035); }
.metrics span { display: block; min-height: 31px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.metrics strong { display: block; margin-top: 7px; font-size: 22px; }
.metrics .metric-wide { background: linear-gradient(145deg, rgba(184, 255, 83, 0.1), rgba(255, 255, 255, 0.03)); }
.metric-wide span { min-height: 0; }
.metric-wide strong { color: var(--lime); }
.claim-diagnostics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; color: var(--muted); font-size: 9px; }
.claim-diagnostics span { white-space: nowrap; }
.claim-diagnostics strong { color: #d7ddd7; }
.claim-diagnostics code { flex: 1 1 100%; overflow-wrap: anywhere; color: #89928a; font-size: 8px; }

.progress-block { margin: 20px 0; }
.progress-block div { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
progress { width: 100%; height: 7px; border: 0; border-radius: 20px; overflow: hidden; background: #262b27; }
progress::-webkit-progress-bar { background: #262b27; }
progress::-webkit-progress-value { background: var(--lime); }
progress::-moz-progress-bar { background: var(--lime); }
.unavailable-warning { margin: 16px 0; padding: 12px 14px; border: 1px solid rgba(255, 191, 71, 0.28); border-radius: 9px; background: rgba(255, 191, 71, 0.06); color: #ffd58b; font-size: 10px; line-height: 1.5; }

.vault-rounds { margin: 22px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.rounds-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.rounds-heading h3 { margin: 0; font-size: 16px; }
.rounds-heading .panel-kicker { margin-bottom: 6px; }
.round-aggregate { color: var(--muted); font-size: 10px; font-weight: 750; }
.round-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.round-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.025); }
.round-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.round-card header span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: 0.13em; }
.round-card header b { color: var(--muted); font-size: 10px; }
.round-card > p { margin: 10px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.round-card > strong { display: block; min-height: 31px; overflow-wrap: anywhere; color: #dce1dc; font-size: 12px; line-height: 1.4; }
.round-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.round-card dl div { padding: 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.035); }
.round-card dt { color: var(--muted); font-size: 8px; }
.round-card dd { margin: 4px 0 0; font-size: 13px; font-weight: 800; }
.round-card[data-round-state="claimable"] { border-color: rgba(184, 255, 83, 0.33); background: rgba(184, 255, 83, 0.055); }
.round-card[data-round-state="claimable"] header b, .round-card[data-round-state="claimable"] > strong { color: var(--lime); }
.round-card[data-round-state="locked"] { border-color: rgba(255, 191, 71, 0.29); background: rgba(255, 191, 71, 0.04); }
.round-card[data-round-state="locked"] header b { color: var(--amber); }
.round-card[data-round-state="claimed"] header b { color: #dce1dc; }
.round-card[data-round-state="verifying"] { opacity: 0.74; }
.round-explainer { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.legacy-detail { display: none !important; }

.entitlement-matrix { margin: 22px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.entitlement-matrix-scroll { max-height: 32rem; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.entitlement-matrix table { width: 100%; min-width: 660px; border-collapse: collapse; background: rgba(255, 255, 255, 0.018); }
.entitlement-matrix th, .entitlement-matrix td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); text-align: left; vertical-align: top; }
.entitlement-matrix th { position: sticky; top: 0; z-index: 1; background: var(--surface-strong); color: var(--muted); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.entitlement-matrix th:first-child, .entitlement-matrix td:first-child { width: 70px; }
.entitlement-matrix td:first-child { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.entitlement-state { display: block; font-size: 9px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.entitlement-amount, .entitlement-raw { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.35; }
.entitlement-raw { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
td[data-entitlement-state="claimable"] .entitlement-state { color: var(--lime); }
td[data-entitlement-state="locked"] .entitlement-state { color: var(--amber); }
td[data-entitlement-state="claimed"] .entitlement-state { color: #dce1dc; }
td[data-entitlement-state="unavailable"] .entitlement-state { color: var(--red); }
.entitlement-matrix-empty { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 10px; }

.batch-plan { margin: 18px 0; padding: 18px; border: 1px solid rgba(184, 255, 83, 0.18); border-radius: 11px; background: rgba(184, 255, 83, 0.035); }
.batch-plan h3 { margin: 0 0 12px; font-size: 13px; }
.batch-plan ol { display: grid; gap: 7px; margin: 0; padding-left: 24px; color: #d9ddd9; font-size: 11px; }
.batch-plan p { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.claim-button { width: 100%; min-height: 66px; display: grid; place-content: center; gap: 4px; margin-top: 20px; }
.claim-button small { font-size: 9px; font-weight: 650; letter-spacing: 0.03em; opacity: 0.68; }
.transaction-status { display: grid; gap: 8px; margin-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.transaction-status a { color: var(--lime); }
.transaction-status .failure { color: #ffb2b2; }
.approval-note { margin: 17px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.approval-note code { color: #d5dbd5; }

.release-badge { display: flex; align-items: center; gap: 10px; margin: 0; padding: 13px 14px; border: 1px solid rgba(184, 255, 83, 0.3); border-radius: 11px; background: rgba(184, 255, 83, 0.075); color: #eaffcf; font-size: 11px; font-weight: 780; line-height: 1.4; }
.release-badge[hidden] { display: none; }
.release-badge i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px rgba(184, 255, 83, 0.62); }
.release-details { margin-top: 14px; border-top: 1px solid var(--line); }
.release-details summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 2px 3px; cursor: pointer; color: #dfe5df; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; list-style: none; }
.release-details summary::-webkit-details-marker { display: none; }
.release-details summary::after { content: "+"; margin-left: auto; color: var(--lime); font-size: 17px; font-weight: 500; }
.release-details[open] summary::after { content: "−"; }
.gate-counter { order: 3; padding: 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 10px; font-weight: 800; }
.deep-verification { margin: 18px 0 15px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); }
.deep-verification .button { width: 100%; }
.deep-verification p { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.deep-verification p[data-status="passed"] { color: var(--lime); }
.deep-verification p[data-status="failed"] { color: #ffb2b2; }
.gate-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.gate-list li { display: grid; grid-template-columns: 11px 1fr; align-items: center; gap: 10px; padding: 9px 0; color: var(--muted); font-size: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); }
.gate-list i { width: 9px; height: 9px; border: 1px solid #505650; border-radius: 50%; }
.gate-list li.passed { color: #e5e9e5; }
.gate-list li.passed i { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 9px rgba(184, 255, 83, 0.42); }

.manifest-details { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.manifest-details div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 10px; }
.manifest-details dt { color: var(--muted); }
.manifest-details dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }

.how-it-works { padding-top: 68px; }
.how-it-works > h2 { margin: 0 0 25px; font-size: 30px; }
.how-it-works > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.how-it-works article { padding: 25px; background: var(--surface-strong); }
.how-it-works article b { color: var(--lime); font-size: 10px; letter-spacing: 0.12em; }
.how-it-works article h3 { margin: 19px 0 8px; font-size: 16px; }
.how-it-works article p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 38px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: 0.07em; }

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
  .state-panel { grid-template-columns: 1fr; gap: 12px; }
  .how-it-works > div { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .topbar { width: min(100% - 24px, 1180px); min-height: 72px; padding: 14px 0; flex-wrap: wrap; gap: 10px; }
  .brand, .topbar-actions { width: 100%; }
  .topbar-actions { justify-content: space-between; }
  .network-chip { display: none; }
  main { width: min(100% - 24px, 1180px); padding-top: 55px; }
  .hero h1 { font-size: 43px; }
  .claim-panel, .evidence-panel { padding: 21px; }
  .metrics { grid-template-columns: 1fr; }
  .metric-wide strong { font-size: 17px; }
  .rounds-heading { align-items: start; flex-direction: column; }
  .round-card-grid { grid-template-columns: 1fr; }
  footer { width: min(100% - 24px, 1180px); flex-direction: column; }
}

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