.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;
  min-width: 0;
  height: 48px;
  padding: 0 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: 0 0 0 3px rgb(134 239 172 / 16%);
}

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

.primary,
.lookup button {
  height: 48px;
  padding: 0 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(0, 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: #fff;
  box-shadow:
    0 0 0 12px rgb(134 239 172 / 8%),
    0 0 80px rgb(134 239 172 / 18%);
}

.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: 0 0 0 3px rgb(134 239 172 / 15%);
}

.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: 0 8px 24px rgb(134 239 172 / 28%);
}

.vote-btn.is-picked.no {
  border-color: var(--color-danger);
  background: rgb(248 113 113 / 8%);
  color: var(--color-danger);
}

.vote-btn:disabled {
  opacity: 1;
  cursor: pointer;
}

.track {
  height: 12px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-bg-tertiary);
}

.track .fill {
  height: 100%;
  width: 0;
  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 0;
  border-top: 1px solid var(--color-border-secondary);
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.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: rgb(248 113 113 / 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: 0;
  }

  .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: 0;
  }
}

.pf-embed-mode .pf-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: calc(100dvh - var(--header-height));
}

.pf-embed-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: inherit;
}

.pf-embed-frame {
  flex: 1;
  width: 100%;
  min-height: 520px;
  border: 0;
  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));
  }
}
