@charset "utf-8";

.kicker { color: var(--color-text-muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.hero { margin-bottom: 28px; }

.hero h1, .vote-question { max-width: 18ch; margin-top: 12px; font-size: clamp(36px, 7vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }

.hero p, .lede { max-width: 52ch; margin-top: 16px; color: var(--color-text-tertiary); font-size: 16px; }

.lookup { display: flex; gap: 10px; margin-top: 28px; }

.lookup input { flex: 1 1 0%; min-width: 0px; height: 48px; padding: 0px 16px; border: 1px solid var(--color-border-secondary); border-radius: 12px; background: var(--color-bg-secondary); color: var(--color-text-primary); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }

.lookup input::placeholder { color: var(--color-text-muted); }

.lookup input:focus { border-color: var(--color-bg-accent); box-shadow: rgba(134, 239, 172, 0.16) 0px 0px 0px 3px; }

.lookup button, .primary, .ghost, .vote-btn { border: 0px; cursor: pointer; }

.primary, .lookup button { height: 48px; padding: 0px 20px; border-radius: 12px; color: var(--color-text-on-accent); background: var(--color-bg-accent); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background 0.15s; }

.primary:hover, .lookup button:hover { background: var(--color-bg-accent-hover); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 12px; margin-top: 32px; }

.card, .panel { border: 1px solid var(--color-border-secondary); border-radius: var(--radius-lg); background: var(--color-bg-secondary); }

.step { padding: 20px; }

.step strong { display: block; margin-bottom: 6px; font-size: 14px; }

.step p { color: var(--color-text-tertiary); 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); overflow: hidden; border: 1px solid var(--color-border-secondary); border-radius: 50%; background: rgba(134, 239, 172, 0.08); box-shadow: rgba(134, 239, 172, 0.08) 0px 0px 0px 12px, rgba(134, 239, 172, 0.18) 0px 0px 80px; }

.token-orb img, .token-orb-fallback { width: 100%; height: 100%; object-fit: cover; }

.token-orb-fallback { display: grid; place-items: center; color: var(--color-text-on-accent); background: var(--color-bg-accent); font-size: 120px; font-weight: 700; }

.token-meta { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--color-border-secondary); }

.token-meta h2 { font-size: 32px; letter-spacing: -0.03em; }

.token-meta .ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: var(--color-text-tertiary); font-size: 14px; }

.vote-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--color-border-secondary); border-radius: var(--radius-pill); background: var(--color-bg-tertiary); color: var(--color-text-tertiary); font-size: 12px; }

.vote-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-bg-accent); box-shadow: rgba(134, 239, 172, 0.15) 0px 0px 0px 3px; }

.ca-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }

.ca-chip, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 6px 10px; border: 1px solid var(--color-border-secondary); border-radius: var(--radius-pill); background: transparent; color: var(--color-text-tertiary); font-size: 12px; line-height: 1; text-decoration: none; transition: color 0.15s, border-color 0.15s; }

.ghost:hover, .ca-chip:hover { color: var(--color-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 { min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }

.vote-btn.yes { color: var(--color-text-on-accent); background: var(--color-bg-accent); }

.vote-btn.no { color: var(--color-text-primary); background: transparent; border: 1px solid var(--color-border-secondary); }

.vote-btn.yes:hover { background: var(--color-bg-accent-hover); }

.vote-btn.no:hover { border-color: var(--color-danger); color: var(--color-danger); }

.vote-btn.is-picked.yes { box-shadow: rgba(134, 239, 172, 0.28) 0px 8px 24px; }

.vote-btn.is-picked.no { border-color: var(--color-danger); background: rgba(248, 113, 113, 0.08); color: var(--color-danger); }

.vote-btn:disabled { opacity: 0.55; cursor: default; }

.track { height: 12px; margin-top: 22px; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-bg-tertiary); }

.track .fill { height: 100%; width: 0px; border-radius: inherit; background: var(--color-bg-accent); transition: width 0.4s var(--ease-out); }

.counts { display: flex; justify-content: space-between; margin-top: 10px; color: var(--color-text-tertiary); font-size: 13px; }

.activity { margin-top: 16px; }

.activity h3 { margin-bottom: 12px; font-size: 16px; }

.activity ul { list-style: none; }

.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0px; border-top: 1px solid var(--color-border-secondary); color: var(--color-text-tertiary); font-size: 14px; }

.activity ul { overflow: hidden; }

.activity li.vote-entry-new { animation: vote-row-enter 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes vote-row-enter {
  from { opacity: 0; transform: translateY(-18px); max-height: 0; padding-top: 0; padding-bottom: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 48px; padding-top: 12px; padding-bottom: 12px; }
}

.vote-toast-container { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }

.vote-toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--color-border-secondary); border-radius: 14px; color: var(--color-text-primary); background: rgba(24, 25, 27, 0.96); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42); backdrop-filter: blur(14px); animation: vote-toast-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.vote-toast.is-leaving { animation: vote-toast-out 0.35s ease forwards; }

.vote-toast-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #07150d; background: #7ff0a8; font-weight: 800; }

.vote-toast.is-no .vote-toast-icon { color: #fff; background: #7d2c31; }

.vote-toast-copy { min-width: 0; }

.vote-toast-title { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 700; }

.vote-toast-text { display: block; overflow: hidden; color: var(--color-text-tertiary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

@keyframes vote-toast-in {
  from { opacity: 0; transform: translate3d(22px, 12px, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes vote-toast-out {
  to { opacity: 0; transform: translate3d(24px, 0, 0) scale(0.97); }
}

@media (max-width: 640px) {
  .vote-toast-container { right: 16px; bottom: 82px; left: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .activity li.vote-entry-new, .vote-toast, .vote-toast.is-leaving { animation-duration: 0.01ms; }
}

.tag { padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }

.tag.yes { color: var(--color-text-on-accent); background: var(--color-bg-accent); }

.tag.no { color: var(--color-danger); background: rgba(248, 113, 113, 0.12); }

.status { margin-top: 12px; color: var(--color-text-tertiary); font-size: 14px; }

.status.error { color: var(--color-danger); }

@media (max-width: 800px) {
  .steps, .vote-stage { grid-template-columns: 1fr; }
  .vote-stage { gap: 28px; min-height: 0px; }
  .lookup { display: block; }
  .lookup button { width: 100%; margin-top: 10px; }
  .vote-actions { display: block; }
  .vote-actions .vote-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 14px 20px; font-size: 16px; white-space: nowrap; }
  .vote-actions .vote-btn + .vote-btn { margin-top: 12px; }
  .vote-box { padding: 22px; }
}

@media (max-width: 767px) {
  .vote-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .vote-actions .vote-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 16px 24px; font-size: 17px; letter-spacing: 0.01em; white-space: nowrap; }
  .vote-actions .vote-btn + .vote-btn { margin-top: 0px; }
}

.pf-embed-mode .pf-main { display: flex; flex-direction: column; width: 100%; max-width: none; margin: 0px; padding: 0px; min-height: calc(100dvh - var(--header-height)); }

.pf-embed-shell { display: flex; flex: 1 1 0%; flex-direction: column; min-height: inherit; }

.pf-embed-frame { flex: 1 1 0%; width: 100%; min-height: 520px; border: 0px; background: var(--color-bg-primary); }

@media (min-width: 768px) {
  .pf-embed-mode .pf-main { min-height: calc(100dvh - var(--header-height)); }
  .pf-embed-frame { min-height: calc(100dvh - var(--header-height)); }
}
