:root {
  color-scheme: light;
  --bg-page: #f4f4f4;
  --bg-white: #fff;
  --bg-elevated: #fff;
  --text-primary: #111;
  --text-muted: #1111118c;
  --text-subtle: #1116;
  --divider: #1111111a;
  --accent: #d4fc50;
  --accent-hover: #c4ef3c;
  --accent-soft: #f3ffd4;
  --accent-mid: #e5f99a;
  --accent-contrast: #111;
  --accent-green: #34c759;
  --accent-red: #ff3b30;
  --panel-blue: #ececec;
  --success: #34c759;
  --danger: #ff3b30;
  --btn-glow: 0 8px 24px #d4fc5059;
  --field-focus-border: #d4fc50f2;
  --field-focus-glow: 0 0 0 3px #d4fc5029;
  --float-shadow: 0 1px 2px #1111110a, 0 8px 24px #1111110f, 0 24px 48px #1111110a;
  --radius-float: 28px;
  --radius-card: 24px;
  --radius-panel: 20px;
  --radius-pill: 999px;
  --nav-height: 64px;
  --lg-tint: #ffffff61;
  --lg-rim-border: #ffffff73;
  --lg-specular: #ffffff80;
  --lg-specular-side: #ffffff2e;
  --lg-sheen: #ffffff1a;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --tracking: 0;
  --shadow-soft: 0 4px 24px #1111110d;
  --shadow-card: 0 2px 12px #1111110a;
  --max-width: 1080px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --duration-fast: .18s;
  --duration-normal: .28s;
  --logo-filter: none;
  --live-dot: #d4fc50;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0d0d0d;
  --bg-white: #161616;
  --bg-elevated: #1c1c1c;
  --text-primary: #f2f2f2;
  --text-muted: #f2f2f294;
  --text-subtle: #f2f2f266;
  --divider: #f2f2f21f;
  --accent: #d4fc50;
  --accent-hover: #e2ff66;
  --accent-soft: #1c2610;
  --accent-mid: #2a3a14;
  --accent-contrast: #111;
  --accent-green: #30d158;
  --accent-red: #ff453a;
  --panel-blue: #1f1f1f;
  --success: #30d158;
  --danger: #ff453a;
  --btn-glow: 0 8px 24px #d4fc5047;
  --float-shadow: 0 1px 2px #00000059, 0 8px 24px #00000059, 0 24px 48px #00000047;
  --lg-tint: #0a0a0a7a;
  --lg-rim-border: #ffffff24;
  --lg-specular: #ffffff24;
  --lg-specular-side: #ffffff14;
  --lg-sheen: #ffffff0d;
  --shadow-soft: 0 4px 24px #00000059;
  --shadow-card: 0 2px 12px #00000047;
  --logo-filter: invert(1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
}

body {
  line-height: 1.5;
}

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

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.theme-ready {
  min-height: 100dvh;
}

.bridge-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.top-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg-page);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  overflow: visible;
}

.liquid-glass {
  isolation: isolate;
  position: relative;
  background: #fffffff5;
  border: 1px solid var(--lg-rim-border);
  box-shadow:
    inset 0 1px 0 var(--lg-specular),
    inset 0 -1px 0 #fff3,
    inset 1px 0 2px -1px var(--lg-specular-side),
    inset -1px 0 2px -1px var(--lg-specular-side);
}

html[data-theme="dark"] .liquid-glass {
  background: #121212f5;
}

.liquid-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, var(--lg-sheen) 0%, transparent 40%),
    linear-gradient(to top, #ffffff1f 0%, transparent 28%);
}

.nav-glass.liquid-glass::after {
  display: none;
}

.liquid-glass-content {
  position: relative;
  z-index: 1;
  height: 100%;
}

.nav-glass {
  width: 100%;
  height: 100%;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  background: var(--bg-page) !important;
}

html[data-theme="dark"] .nav-glass {
  background: var(--bg-page) !important;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(1080px, calc(100% - 32px));
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  background: #1111110d;
  color: var(--text-muted);
  font-size: 12px;
}

html[data-theme="dark"] .vote-badge {
  background: #ffffff0f;
}

.vote-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-dot);
  box-shadow: 0 0 0 3px #d4fc5026;
}

.nav-product-links {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: #1111110d;
}

html[data-theme="dark"] .nav-product-links {
  background: #ffffff0f;
}

.nav-product-link {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-product-link:hover,
.nav-product-link.is-active {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
}

.nav-theme,
.nav-connect,
.nav-address {
  border: 0;
  cursor: pointer;
}

.nav-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--divider);
}

.nav-theme:hover {
  background: var(--accent-soft);
}

.nav-connect,
.nav-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
}

.nav-connect {
  color: var(--accent-contrast);
  background: var(--accent);
  transition: background var(--duration-fast) var(--ease-out);
}

.nav-connect:hover {
  background: var(--accent-hover);
}

.nav-address {
  gap: 6px;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--divider);
  font-variant-numeric: tabular-nums;
}

.nav-address:hover {
  color: var(--text-primary);
}

main {
  flex: 1;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 24px;
}

.hero {
  margin-bottom: 28px;
}

.kicker {
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1,
.vote-question {
  max-width: 16ch;
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero p,
.lede {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 16px;
}

.lookup {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.lookup input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--bg-white);
  outline: none;
}

.lookup input:focus {
  border-color: var(--field-focus-border);
  box-shadow: var(--field-focus-glow);
}

.lookup button,
.primary,
.ghost,
.vote-btn {
  border: 0;
  cursor: pointer;
}

.primary,
.lookup button {
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  color: var(--accent-contrast);
  background: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.primary:hover,
.lookup button:hover {
  background: var(--accent-hover);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.card,
.panel {
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.step {
  padding: 20px;
}

.step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.step p {
  color: var(--text-muted);
  font-size: 13px;
}

.vote-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 48px;
  min-height: 420px;
}

.vote-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.token-orb {
  position: relative;
  width: min(320px, 72vw);
  height: min(320px, 72vw);
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 1px solid var(--divider);
  box-shadow:
    0 0 0 12px #d4fc5014,
    0 0 80px #d4fc5047,
    var(--shadow-soft);
}

.token-orb img,
.token-orb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-orb-fallback {
  display: grid;
  place-items: center;
  color: var(--accent-contrast);
  background: var(--accent);
  font-family: var(--font-serif);
  font-size: 120px;
}

.token-meta {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}

.token-meta h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
}

.token-meta .ticker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ca-chip,
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.ghost:hover,
.ca-chip:hover {
  color: var(--text-primary);
}

.panel {
  padding: 22px;
}

.vote-box {
  padding: 32px;
}

.vote-question {
  max-width: none;
  font-size: clamp(22px, 2.8vw, 30px);
}

.vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.vote-btn {
  border-radius: 14px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.vote-btn.yes {
  color: var(--accent-contrast);
  background: var(--accent);
}

.vote-btn.no {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--divider);
}

.vote-btn.yes:hover {
  background: var(--accent-hover);
}

.vote-btn.no:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.vote-btn.is-picked.yes {
  box-shadow: var(--btn-glow);
}

.vote-btn.is-picked.no {
  background: #ff453a14;
  border-color: var(--danger);
  color: var(--danger);
}

.vote-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.track {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #1111110d;
}

html[data-theme="dark"] .track {
  background: #ffffff14;
}

.track .fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.counts {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.stat {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}

.stat:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.stat small {
  display: block;
  color: var(--text-subtle);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.activity {
  margin-top: 16px;
}

.activity h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.activity li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
  color: var(--text-muted);
  font-size: 14px;
}

.tag {
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.tag.yes {
  color: var(--accent-contrast);
  background: var(--accent);
}

.tag.no {
  color: var(--danger);
  background: #ff453a14;
}

.footer-reveal {
  margin-top: auto;
  padding-top: 48px;
}

.footer-stage {
  width: min(1080px, calc(100% - 32px));
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.footer-card {
  position: relative;
  overflow: hidden;
  padding: 32px 36px;
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: var(--radius-float);
  box-shadow: var(--float-shadow);
}

.footer-card-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(104px, 0.5fr) minmax(124px, 0.65fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
}

.footer-brand-col,
.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.footer-logo-link {
  width: fit-content;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
}

.footer-brand-copy,
.footer-disclaimer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-brand-copy {
  max-width: 34ch;
}

.footer-disclaimer-copy {
  max-width: 40ch;
}

.footer-link-heading {
  margin: 0;
  color: var(--text-subtle);
  font-size: 13px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-link {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-card-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.footer-copy,
.footer-credit {
  margin: 0;
  color: var(--text-subtle);
  font-size: 13px;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.footer-credit-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--bg-white);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  background: #0a0a0ab8;
}

.modal.is-open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--divider);
  border-radius: 24px;
  box-shadow: var(--float-shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-card h2 {
  padding-right: 72px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
}

.wallet-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.wallet-list button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 14px 16px;
  background: transparent;
  cursor: pointer;
}

.wallet-list button:hover {
  border-color: var(--accent);
}

.status {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.vote-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  width: min(380px, calc(100% - 32px));
  padding: 14px 16px 12px;
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--bg-white);
  box-shadow: var(--float-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.vote-toast.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.vote-toast p {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.vote-toast-bar {
  height: 3px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--divider);
}

.vote-toast-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
}

.vote-toast.is-show .vote-toast-bar span {
  animation: toast-drain 3.2s linear forwards;
}

@keyframes toast-drain {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

@media (max-width: 800px) {
  .vote-toast {
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: auto;
    transform: translateX(-50%) translateY(-12px);
  }

  .vote-toast.is-show {
    transform: translateX(-50%) translateY(0);
  }

  .nav-product-links {
    display: none;
  }

  .nav-inner {
    width: min(1080px, calc(100% - 24px));
  }

  .steps,
  .vote-stage,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .vote-stage {
    gap: 28px;
    min-height: 0;
  }

  .lookup {
    display: block;
  }

  .lookup button {
    margin-top: 10px;
    width: 100%;
  }

  .vote-box {
    padding: 24px 18px 22px;
  }

  .vote-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
  }

  .vote-btn {
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    font-size: 17px;
  }

  .footer-card {
    padding: 24px 18px;
  }
}
