:root {
  color-scheme: dark;
  --black: #000204;
  --ink: #020403;
  --white: #fdfdff;
  --neon: #c0ff38;
  --neon-deep: #8bc400;
  --neon-soft: rgba(192, 255, 56, 0.13);
  --panel: #070907;
  --panel-2: #0d100d;
  --line: #20291b;
  --line-strong: #3a4a2f;
  --muted: #a6ad9d;
  --soft: #6f7768;
  --shadow: rgba(0, 0, 0, 0.58);
  --sans: "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 50% -10%, rgba(192, 255, 56, 0.11), transparent 34%),
    var(--black);
}

body::before {
  content: "";
  position: fixed;
  inset: -44px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(192, 255, 56, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 255, 56, 0.065) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.7;
  animation: grid-scroll 6s linear infinite;
  will-change: transform;
}

.setup-shell {
  width: min(1180px, 100%);
}

.setup-panel {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(192, 255, 56, 0.04), transparent 35%), rgba(4, 6, 4, 0.96);
  box-shadow: 0 24px 90px var(--shadow);
}

.setup-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 32px;
}

.setup-intro .eyebrow {
  grid-column: 1 / -1;
}

.setup-intro h1 {
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 880;
}

.setup-intro h1 span {
  color: var(--neon);
}

.setup-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.setup-security {
  padding: 20px 22px;
  border-left: 4px solid var(--neon);
  background: var(--neon-soft);
}

.setup-security strong {
  color: var(--neon);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.setup-security ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.setup-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.setup-status-grid > div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.setup-status-grid span {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.setup-status-grid strong {
  overflow: hidden;
  color: var(--white);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setup-actions .button {
  min-height: 56px;
}

.setup-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}

.setup-explorer {
  width: fit-content;
  color: var(--neon);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .setup-intro,
  .setup-actions {
    grid-template-columns: 1fr;
  }

  .setup-status-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes grid-scroll {
  from { transform: translate3d(-44px, -44px, 0); }
  to { transform: translate3d(0, 0, 0); }
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-width: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 36px) 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.topbar-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 14px var(--neon);
}

.flow-shell {
  display: grid;
  place-items: center;
}

.flow-panel {
  width: min(1120px, 100%);
  min-width: 0;
  min-height: min(750px, calc(100vh - 118px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  padding: clamp(20px, 3.5vw, 40px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(192, 255, 56, 0.025), transparent 34%),
    linear-gradient(180deg, rgba(13, 16, 13, 0.97), rgba(3, 4, 3, 0.97));
  box-shadow: 0 24px 90px var(--shadow);
}

.flow-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: rgba(253, 253, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 16px rgba(192, 255, 56, 0.65);
  transition: width 260ms ease;
}

.flow-step {
  min-width: 0;
  min-height: 0;
}

.flow-step[hidden] {
  display: none;
}

.identity-step {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(14px, 3vw, 32px) clamp(0px, 2vw, 18px);
}

.landing-copy {
  min-width: 0;
}

.eyebrow,
.question-kicker,
.unlock-progress,
.result-topline p,
.post-result-cta p,
.teaser-label,
.before-after-row {
  margin: 0;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.landing-copy h1 {
  max-width: 650px;
  margin-top: 14px;
  font-size: clamp(52px, 7.2vw, 96px);
  font-weight: 880;
}

.landing-copy h1 span {
  color: var(--neon);
}

.landing-summary {
  max-width: 540px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

.field-group {
  width: min(520px, 100%);
  display: grid;
  gap: 8px;
}

.field-group > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.field-group input {
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0 16px;
  outline: none;
  background: #020302;
  color: var(--white);
  font-size: 19px;
  font-weight: 760;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-group input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(192, 255, 56, 0.13);
}

.x-auth-card {
  width: min(520px, 100%);
  min-height: 72px;
  border: 1px solid var(--line-strong);
  background: rgba(2, 3, 2, 0.88);
}

.x-auth-disconnected,
.x-auth-connected {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
}

.x-auth-disconnected[hidden],
.x-auth-connected[hidden] {
  display: none;
}

.x-auth-disconnected > div,
.x-auth-connected > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.x-auth-disconnected strong,
.x-auth-connected strong {
  overflow: hidden;
  color: var(--white);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.x-auth-label {
  color: var(--neon);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.x-auth-mint-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.x-auth-mint-status.is-used {
  color: #ffcc67;
}

.x-connect-button {
  min-width: 116px;
  margin-left: auto;
  white-space: nowrap;
}

.x-auth-connected img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--neon);
  border-radius: 50%;
  object-fit: cover;
}

.x-switch-account {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.x-switch-account:hover,
.x-switch-account:focus-visible {
  color: var(--neon);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 16px;
  cursor: pointer;
  color: var(--white);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: saturate(0.3);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: saturate(0.3);
}

.button.primary {
  border-color: var(--neon);
  background: var(--neon);
  color: #10140b;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(253, 253, 255, 0.08);
}

.button.ghost {
  border-color: var(--line);
  color: var(--muted);
}

.button:not(:disabled):hover,
.button:not(:disabled):focus-visible {
  transform: translateY(-2px);
  border-color: var(--neon);
}

.hero-button {
  width: min(520px, 100%);
  min-height: 58px;
  margin-top: 14px;
  justify-content: space-between;
  padding: 0 19px;
  font-size: 17px;
}

.privacy-note,
.share-note {
  margin: 11px 0 0;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.reward-teaser {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 2, 4, 0.68);
  box-shadow: 18px 18px 0 rgba(192, 255, 56, 0.045);
  transform: rotate(1.2deg);
}

.teaser-label,
.before-after-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.unlock-pill {
  color: var(--muted);
}

.unlock-pill span {
  color: var(--neon);
}

.teaser-stage {
  position: relative;
  aspect-ratio: 1;
  margin: 14px 0 12px;
  overflow: hidden;
  background: var(--neon);
}

#teaser-canvas,
#pfp-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.before-after-row {
  color: var(--soft);
  font-size: 9px;
}

.question-step {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 4vw, 48px) 0 4px;
}

.question-center {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  text-align: center;
}

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

.question-score {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.question-score strong {
  color: var(--neon);
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1;
}

.timer-block {
  display: grid;
  gap: 8px;
}

.timer-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.timer-copy strong {
  min-width: 54px;
  color: var(--white);
  font-size: 15px;
  text-align: right;
}

.timer-track {
  height: 7px;
  overflow: hidden;
  background: rgba(253, 253, 255, 0.08);
}

.timer-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 14px rgba(192, 255, 56, 0.48);
  transform-origin: left;
}

.timer-track span.warning {
  background: #ff5f56;
  box-shadow: 0 0 14px rgba(255, 95, 86, 0.5);
}

.unlock-progress {
  color: var(--muted);
}

.question-center h1 {
  max-width: 800px;
  margin: 0 auto 4px;
  outline: none;
  font-size: clamp(38px, 5.4vw, 70px);
}

.answer-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.answer-option {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 12px 15px;
  overflow: hidden;
  cursor: pointer;
  background: #040604;
  color: var(--muted);
  text-align: left;
  font-weight: 710;
  line-height: 1.2;
}

.answer-index {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
}

.answer-arrow {
  color: var(--line-strong);
  font-size: 18px;
}

.answer-option::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: var(--line-strong);
  color: var(--white);
  outline: none;
}

.answer-option.selected {
  border-color: var(--neon);
  background: var(--neon-soft);
  color: var(--white);
}

.answer-option.selected::after {
  transform: scaleX(1);
}

.answer-option.correct,
.answer-option.correct:disabled {
  border-color: var(--neon);
  background: rgba(192, 255, 56, 0.14);
  color: var(--white);
  opacity: 1;
}

.answer-option.incorrect,
.answer-option.incorrect:disabled {
  border-color: #ff5f56;
  background: rgba(255, 95, 86, 0.11);
  color: var(--white);
  opacity: 1;
}

.answer-option:disabled:not(.correct):not(.incorrect) {
  opacity: 0.43;
}

.answer-feedback {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--line-strong);
  background: rgba(253, 253, 255, 0.035);
  text-align: left;
}

.answer-feedback[hidden] {
  display: none;
}

.answer-feedback-copy {
  min-width: 0;
}

.answer-feedback strong {
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.answer-feedback p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.answer-feedback.correct {
  border-color: var(--neon);
}

.answer-feedback.correct strong {
  color: var(--neon);
}

.answer-feedback.incorrect {
  border-color: #ff5f56;
}

.answer-feedback.incorrect strong {
  color: #ff817a;
}

.feedback-continue {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.answer-reaction {
  min-height: 20px;
  margin: -5px 0 0;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.question-actions {
  display: flex;
  justify-content: center;
}

.result-step {
  position: relative;
  display: grid;
  min-height: 620px;
}

.reveal-curtain {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(192, 255, 56, 0.1), transparent 42%),
    #050705;
  text-align: center;
  transition: opacity 480ms ease, visibility 480ms ease;
}

.result-step.is-revealed .reveal-curtain {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scanner-orb {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #000;
}

.scanner-orb img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.scanner-orb span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 18px var(--neon);
  animation: scanner 1.1s ease-in-out infinite alternate;
}

@keyframes scanner {
  from { top: 8px; }
  to { top: 102px; }
}

.reveal-curtain p {
  margin: 8px 0 0;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.reveal-curtain h2 {
  max-width: 540px;
  font-size: clamp(30px, 5vw, 56px);
}

.reveal-error {
  max-width: 520px;
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  line-height: 1.5;
  text-transform: none !important;
}

.reveal-retry {
  margin-top: 4px;
}

.loading-dots {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--neon);
  animation: dot-pulse 900ms ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 140ms; }
.loading-dots span:nth-child(3) { animation-delay: 280ms; }

@keyframes dot-pulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}

.result-content {
  min-width: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease 180ms, transform 480ms ease 180ms;
}

.result-step.is-revealed .result-content {
  opacity: 1;
  transform: translateY(0);
}

.result-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.result-topline h2 {
  margin-top: 7px;
  font-size: clamp(28px, 3vw, 42px);
}

.certainty-result-topline h2 {
  color: var(--neon);
  font-size: clamp(52px, 6vw, 78px);
  line-height: 0.8;
}

.certainty-result-topline h2 small {
  color: var(--muted);
  font-size: 0.34em;
  letter-spacing: 0;
}

.certainty-result-topline h2 em {
  margin-left: 10px;
  color: var(--white);
  font-size: 0.38em;
  font-style: normal;
  letter-spacing: -0.025em;
}

.certainty-result-topline .result-headline {
  margin: 14px 0 0;
  font-size: 14px;
}

.certainty-result-topline h2:focus {
  outline: none;
}

.compact-button {
  min-height: 38px;
  font-size: 13px;
}

.result-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.pfp-reward-panel,
.aura-panel {
  min-width: 0;
}

.pfp-frame {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--neon);
  box-shadow: 16px 16px 0 rgba(192, 255, 56, 0.045);
}

.glasses-editor {
  width: min(500px, 100%);
  display: grid;
  gap: 16px;
  margin: 16px auto 0;
  border: 1px solid var(--neon);
  padding: 17px;
  background: rgba(192, 255, 56, 0.07);
}

.glasses-editor[hidden] {
  display: none;
}

.glasses-editor:disabled {
  opacity: 0.5;
}

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

.editor-heading > div {
  display: grid;
  gap: 4px;
}

.editor-heading span {
  color: var(--neon);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.editor-heading strong {
  font-size: 17px;
}

.text-button {
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--neon);
}

.editor-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.editor-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.editor-controls input[type="range"] {
  width: 100%;
  accent-color: var(--neon);
}

.aura-panel {
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(192, 255, 56, 0.08), transparent 38%),
    rgba(0, 2, 4, 0.68);
}

.aura-panel h2 {
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(40px, 5vw, 64px);
}

.result-headline {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.aura-match {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.aura-match strong {
  color: var(--neon);
  font-family: var(--sans);
  font-size: 58px;
  line-height: 0.85;
}

.result-facts {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.result-facts div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(32, 41, 27, 0.7);
}

.result-facts dt,
.result-facts dd {
  margin: 0;
}

.knowledge-note {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.knowledge-note span {
  color: var(--neon);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.knowledge-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.claim-panel,
.mint-panel {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  border: 1px solid var(--line-strong);
  padding: clamp(18px, 3vw, 28px);
  background: rgba(0, 2, 4, 0.68);
}

.mint-panel.locked {
  border-color: var(--line);
  opacity: 0.58;
}

.claim-heading > span {
  color: var(--neon);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.claim-heading h3 {
  margin: 7px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
}

.claim-heading p,
.mint-note {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.claim-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(260px, 1fr) minmax(190px, 0.82fr);
  align-items: end;
  gap: 10px;
}

.tweet-field {
  width: 100%;
}

.tweet-field input {
  min-height: 46px;
  font-size: 13px;
}

.claim-success,
.mint-success {
  border-left: 3px solid var(--neon);
  padding: 11px 13px;
  background: var(--neon-soft);
  color: var(--muted);
  font-size: 12px;
}

.claim-success strong,
.mint-success strong {
  color: var(--white);
}

.mint-actions {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(170px, 1fr) minmax(180px, auto);
  align-items: center;
  gap: 10px;
}

.wallet-address {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.mint-success a {
  margin-left: 8px;
  color: var(--neon);
}

.result-facts dt {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.result-facts dd {
  color: var(--white);
  font-size: 13px;
  font-weight: 720;
}

.share-tools {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.share-tools .button {
  min-height: 40px;
  padding: 0 8px;
  font-size: 10px;
}

.share-card-details {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.share-card-details summary {
  padding: 16px 0;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.card-frame {
  width: 100%;
  aspect-ratio: 1200 / 630;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #000;
}

.final-card-frame {
  max-width: 880px;
  margin: 0 auto 24px;
}

.post-result-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: var(--neon-soft);
}

.post-result-cta p {
  margin-bottom: 7px;
}

.post-result-cta span {
  color: var(--muted);
  font-size: 13px;
}

.result-next-steps {
  min-width: 0;
  border: 1px solid var(--line-strong);
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(150deg, rgba(192, 255, 56, 0.075), transparent 32%),
    rgba(0, 2, 4, 0.72);
}

.next-steps-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.next-steps-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mint-limit-notice {
  margin: 20px 0 2px;
  border: 1px solid var(--neon);
  border-left-width: 4px;
  padding: 15px 16px;
  background: rgba(192, 255, 56, 0.11);
}

.mint-limit-notice strong {
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.mint-limit-notice p {
  margin: 7px 0 0;
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
}

.mint-used-summary,
.mint-progress-summary {
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  padding: 15px 16px;
  background: rgba(255, 204, 103, 0.07);
}

.mint-progress-summary strong {
  color: #ffcc67;
  font-size: 15px;
}

.mint-progress-summary p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mint-used-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mint-used-summary a {
  color: var(--neon);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.result-action-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 13px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  background: transparent;
}

.result-action-step:first-of-type {
  margin-top: 16px;
}

.result-action-step:last-child {
  padding-bottom: 0;
}

.step-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 11px;
}

.step-body {
  min-width: 0;
}

.step-body h4 {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.step-body > p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.step-body .action-button,
.step-body .field-group {
  width: 100%;
  max-width: none;
}

.step-body .tweet-field {
  margin-bottom: 10px;
}

.field-error {
  margin: -2px 0 10px !important;
  color: #ff8f8f !important;
  font-family: var(--mono);
  font-size: 10px !important;
}

.tweet-field input[aria-invalid="true"] {
  border-color: #ff6868;
}

.claim-success,
.mint-success {
  margin-top: 10px;
}

.result-action-step.mint-panel {
  margin-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

.result-action-step.mint-panel.locked {
  border-color: var(--line);
  opacity: 1;
}

.mint-step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-state {
  flex: 0 0 auto;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.mint-panel:not(.locked) .step-state {
  color: var(--neon);
}

.result-next-steps .mint-actions {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.result-next-steps .wallet-address {
  padding: 2px 0;
}

.stake-button {
  flex: 0 0 auto;
  border-color: var(--neon);
  color: var(--neon);
}

body.mint-modal-open {
  overflow: hidden;
}

.mint-confirmation-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.mint-confirmation-modal[hidden] {
  display: none;
}

.mint-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 3, 2, 0.86);
  backdrop-filter: blur(10px);
}

.mint-confirmation-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--neon);
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(192, 255, 56, 0.08), transparent 34%),
    #070a07;
  box-shadow: 20px 20px 0 rgba(192, 255, 56, 0.08), 0 0 80px rgba(192, 255, 56, 0.08);
  outline: none;
}

.mint-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.mint-modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mint-modal-header h2 {
  max-width: 620px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 0.98;
}

.mint-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  background: #090c09;
  color: var(--white);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.mint-modal-close:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.mint-modal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(280px, 1.28fr);
  gap: clamp(22px, 4vw, 38px);
  align-items: center;
  padding: 26px 0;
}

.mint-modal-pfp-frame {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--neon);
  box-shadow: 10px 10px 0 rgba(192, 255, 56, 0.08);
}

.mint-modal-pfp-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mint-modal-pfp-frame figcaption {
  padding: 10px 12px;
  background: #050705;
  color: var(--neon);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.mint-modal-status {
  min-width: 0;
}

.mint-status-orb {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  place-items: center;
  border: 1px solid var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(192, 255, 56, 0.22);
}

.mint-status-orb span {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(192, 255, 56, 0.25);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: mint-spin 760ms linear infinite;
}

@keyframes mint-spin {
  to { transform: rotate(360deg); }
}

.mint-confirmation-modal[data-stage="complete"] .mint-status-orb span {
  width: 16px;
  height: 9px;
  border: 0;
  border-bottom: 2px solid var(--neon);
  border-left: 2px solid var(--neon);
  border-radius: 0;
  animation: none;
  transform: rotate(-45deg) translate(1px, -1px);
}

.mint-confirmation-modal[data-stage="error"] .mint-status-orb {
  border-color: #ff6c6c;
  box-shadow: 0 0 24px rgba(255, 108, 108, 0.18);
}

.mint-confirmation-modal[data-stage="error"] .mint-status-orb span {
  width: 16px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: #ff6c6c;
  animation: none;
  transform: rotate(45deg);
}

.mint-modal-status > p {
  min-height: 44px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.mint-modal-progress {
  width: 100%;
  height: 5px;
  margin: 18px 0;
  overflow: hidden;
  background: var(--line);
}

.mint-modal-progress span {
  display: block;
  width: 12%;
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(192, 255, 56, 0.55);
  transition: width 300ms ease;
}

.mint-modal-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mint-modal-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
}

.mint-modal-steps li span {
  color: var(--soft);
}

.mint-modal-steps li.is-active,
.mint-modal-steps li.is-complete {
  color: var(--white);
}

.mint-modal-steps li.is-active span,
.mint-modal-steps li.is-complete span {
  color: var(--neon);
}

.mint-modal-steps li.is-active strong::after {
  content: " …";
  color: var(--neon);
}

.mint-modal-steps li.is-complete strong::after {
  content: " ✓";
  color: var(--neon);
}

.mint-modal-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mint-modal-links .button {
  min-height: 50px;
  padding: 0 14px;
  text-align: center;
}

.mint-modal-links [hidden] {
  display: none;
}

.mint-modal-note {
  margin: 14px 0 0;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: #070907;
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .identity-step {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.76fr);
    gap: 32px;
  }

  .landing-copy h1 {
    font-size: clamp(50px, 7.5vw, 72px);
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .pfp-frame,
  .glasses-editor {
    width: min(500px, 100%);
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 14px 12px 24px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .flow-panel {
    min-height: calc(100vh - 92px);
    gap: 14px;
    padding: 18px;
  }

  .identity-step {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 0 8px;
  }

  .landing-copy h1 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .landing-summary {
    margin: 18px 0 24px;
  }

  .x-auth-disconnected,
  .x-auth-connected {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .x-connect-button {
    width: 100%;
    margin-left: 0;
  }

  .x-switch-account {
    align-self: center;
  }

  .reward-teaser {
    width: min(380px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .question-step {
    padding-top: 30px;
  }

  .question-center h1 {
    font-size: clamp(36px, 10.5vw, 52px);
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .pfp-frame {
    width: min(440px, 100%);
  }

  .glasses-editor {
    width: min(440px, 100%);
  }

  .claim-grid,
  .mint-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .wallet-address {
    padding: 4px 0;
  }

  .post-result-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .stake-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .topbar-status {
    font-size: 9px;
  }

  .flow-panel {
    min-height: calc(100vh - 88px);
    padding: 15px;
  }

  .landing-copy h1 {
    font-size: clamp(43px, 13.4vw, 58px);
  }

  .question-topline,
  .result-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .unlock-progress {
    text-align: left;
  }

  .question-center {
    gap: 18px;
  }

  .answer-option {
    min-height: 58px;
  }

  .answer-feedback {
    grid-template-columns: 1fr;
  }

  .feedback-continue {
    width: 100%;
  }

  .result-topline .button,
  .result-top-actions {
    width: 100%;
  }

  .certainty-result-topline h2 {
    line-height: 0.95;
  }

  .certainty-result-topline h2 em {
    display: block;
    margin: 10px 0 0;
    font-size: 0.42em;
  }

  .share-tools {
    grid-template-columns: 1fr;
  }

  .editor-controls {
    grid-template-columns: 1fr;
  }

  .claim-panel,
  .mint-panel {
    padding: 16px;
  }

  .result-action-step.mint-panel {
    padding-right: 0;
    padding-left: 0;
  }

  .aura-panel {
    padding: 20px;
  }

  .aura-panel h2 {
    font-size: 42px;
  }

  .result-facts div {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .mint-confirmation-modal {
    padding: 10px;
  }

  .mint-confirmation-dialog {
    max-height: calc(100vh - 20px);
    padding: 18px;
    box-shadow: 8px 8px 0 rgba(192, 255, 56, 0.08);
  }

  .mint-modal-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px 0;
  }

  .mint-modal-pfp-frame {
    width: min(210px, 62vw);
    margin: 0 auto;
  }

  .mint-modal-links {
    grid-template-columns: 1fr;
  }
}

/* The quiz is a viewport-contained flow: each state replaces the last one. */
html.quiz-document,
body.quiz-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.quiz-page .app-shell {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(8px, 1.8vh, 16px) clamp(12px, 2.5vw, 32px);
  overflow: hidden;
}

.quiz-page .topbar {
  min-height: 38px;
  margin-bottom: clamp(6px, 1.25vh, 11px);
}

.quiz-page .brand img {
  width: 30px;
  height: 30px;
}

.flow-shell {
  min-height: 0;
  place-items: stretch center;
}

.flow-panel {
  height: 100%;
  min-height: 0;
  gap: clamp(7px, 1.2vh, 12px);
  padding: clamp(11px, 2.2vh, 22px) clamp(12px, 2.8vw, 30px);
  overflow: hidden;
}

.flow-step {
  height: 100%;
  overflow: hidden;
}

.identity-step {
  gap: clamp(20px, 4vw, 56px);
  padding: 0 clamp(0px, 1vw, 12px);
}

.landing-copy h1 {
  margin-top: clamp(7px, 1.4vh, 12px);
  font-size: clamp(46px, min(7vw, 10vh), 82px);
}

.landing-summary {
  margin: clamp(10px, 2vh, 18px) 0 clamp(12px, 2.2vh, 20px);
  font-size: clamp(15px, 1.55vw, 19px);
  line-height: 1.35;
}

.x-auth-card,
.x-auth-disconnected,
.x-auth-connected {
  min-height: 60px;
}

.x-auth-disconnected,
.x-auth-connected {
  padding: 7px 10px 7px 13px;
}

.x-auth-connected img {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.hero-button {
  min-height: 50px;
  margin-top: 9px;
}

.privacy-note {
  margin-top: 7px;
  line-height: 1.35;
}

.reward-teaser {
  width: min(38dvh, 370px, 100%);
  justify-self: center;
  padding: 12px;
}

.teaser-stage {
  margin: 9px 0 8px;
}

.question-step {
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  gap: 0;
  padding: 0;
}

.question-center {
  gap: clamp(8px, 1.6vh, 15px);
}

.question-center h1 {
  margin-bottom: 0;
  font-size: clamp(30px, min(5vw, 7.4vh), 58px);
}

.timer-block {
  gap: 5px;
}

.answer-grid {
  gap: clamp(6px, 1vh, 9px);
}

.answer-option {
  min-height: clamp(46px, 7.2vh, 58px);
  padding: 9px 13px;
}

.answer-feedback {
  min-height: 84px;
  padding: 11px 13px;
}

.answer-feedback p {
  margin-top: 3px;
  line-height: 1.35;
}

.result-step {
  min-height: 0;
}

.result-content {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.result-topline {
  margin-bottom: clamp(7px, 1.25vh, 12px);
}

.certainty-result-topline h2 {
  font-size: clamp(43px, min(5vw, 8vh), 66px);
}

.certainty-result-topline .result-headline {
  margin-top: 7px;
  font-size: 12px;
}

.result-layout {
  min-height: 0;
  grid-template-columns: minmax(0, 0.94fr) minmax(350px, 1.06fr);
  gap: clamp(14px, 2.4vw, 28px);
  align-items: stretch;
}

.pfp-reward-panel {
  min-height: 0;
  display: grid;
  align-content: start;
}

.pfp-frame {
  width: min(100%, 43dvh, 410px);
  box-shadow: 10px 10px 0 rgba(192, 255, 56, 0.045);
}

body.result-perfect .pfp-frame {
  width: min(100%, 33dvh, 310px);
}

.glasses-editor {
  width: min(410px, 100%);
  gap: 9px;
  margin-top: 9px;
  padding: 11px;
}

.editor-heading strong {
  font-size: 14px;
}

.editor-controls {
  gap: 7px 12px;
}

.editor-controls label {
  gap: 4px;
}

.result-next-steps {
  min-height: 0;
  align-self: stretch;
  padding: clamp(12px, 2.2vh, 20px) clamp(13px, 2vw, 20px);
  overflow: hidden;
}

.next-steps-heading h3 {
  margin-top: 4px;
  font-size: clamp(27px, min(3.3vw, 5vh), 38px);
}

.next-steps-heading > p:last-child {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.result-action-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: clamp(8px, 1.5vh, 13px);
}

.result-action-progress span,
.result-action-progress button {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 6px 4px;
  overflow: hidden;
  background: rgba(253, 253, 255, 0.025);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-action-progress [aria-current="step"] {
  border-color: var(--neon);
  background: var(--neon-soft);
  color: var(--neon);
}

.result-action-progress button:not(:disabled) {
  cursor: pointer;
}

.result-action-progress button:disabled:not([aria-current="step"]) {
  opacity: 0.58;
}

.result-action-progress .is-complete {
  color: var(--white);
}

.result-next-steps[data-stage="share"] .result-action-progress {
  display: none;
}

.mint-limit-notice {
  margin: clamp(7px, 1.25vh, 11px) 0 0;
  padding: 8px 10px;
}

.mint-limit-notice strong {
  font-size: 9px;
}

.mint-limit-notice p {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.3;
}

.mint-used-summary,
.mint-progress-summary {
  margin-top: 7px;
  padding: 8px 10px;
}

.mint-progress-summary p {
  margin: 4px 0 7px;
  font-size: 10px;
  line-height: 1.3;
}

.result-action-step,
.result-action-step:first-of-type {
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  margin-top: 7px;
  padding: clamp(8px, 1.4vh, 12px) 0 0;
}

.step-number {
  width: 24px;
  height: 24px;
}

.step-body h4 {
  margin-top: 0;
  font-size: 16px;
}

.step-body > p {
  margin: 4px 0 7px;
  font-size: 10px;
  line-height: 1.3;
}

.step-body .tweet-field {
  gap: 4px;
  margin-bottom: 6px;
}

.tweet-field input {
  min-height: 42px;
}

.step-body .action-button {
  min-height: 42px;
}

.field-error {
  margin: 0 0 5px !important;
  line-height: 1.2 !important;
}

.claim-success,
.mint-success {
  margin-top: 6px;
  padding: 7px 9px;
  font-size: 10px;
}

.result-next-steps .mint-actions {
  gap: 6px;
}

.result-next-steps .wallet-address {
  padding: 0;
  font-size: 9px;
}

.mint-confirmation-dialog {
  max-height: calc(100dvh - 20px);
  overflow: hidden;
}

@media (min-width: 681px) {
  .result-layout {
    grid-template-rows: auto auto;
    align-content: start;
  }

  .pfp-reward-panel {
    display: contents;
  }

  .pfp-frame {
    width: min(100%, 410px);
    grid-column: 1;
    grid-row: 1;
  }

  body.result-perfect .pfp-frame {
    width: min(100%, 390px);
  }

  .glasses-editor {
    grid-column: 1;
    grid-row: 2;
  }

  .result-next-steps {
    height: 100%;
    grid-column: 2;
    grid-row: 1;
  }

  body.result-perfect .result-next-steps {
    padding-block: 10px;
  }

  body.result-perfect .next-steps-heading > p:last-child,
  body.result-perfect .mint-limit-notice p,
  body.result-perfect #verify-step .step-body > p,
  body.result-perfect #verify-step .tweet-field > span {
    display: none;
  }

  body.result-perfect .mint-limit-notice {
    padding-block: 6px;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .x-auth-disconnected strong,
  .x-auth-connected strong {
    font-size: 14px;
  }

  .x-connect-button {
    min-width: 108px;
  }
}

@media (max-width: 680px) {
  .quiz-page .app-shell {
    padding: 7px 9px 8px;
  }

  .quiz-page .topbar {
    min-height: 32px;
    margin-bottom: 5px;
  }

  .quiz-page .brand img {
    width: 26px;
    height: 26px;
  }

  .flow-panel {
    gap: 6px;
    padding: 9px 11px 10px;
  }

  .progress-track {
    height: 4px;
  }

  .identity-step {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(8px, 1.6vh, 13px);
    padding: 0;
  }

  .landing-copy h1 {
    margin-top: 5px;
    font-size: clamp(39px, min(12.8vw, 8.8vh), 54px);
    line-height: 0.92;
  }

  .landing-summary {
    margin: 7px 0 9px;
    font-size: 13px;
    line-height: 1.28;
  }

  .x-auth-card,
  .x-auth-disconnected,
  .x-auth-connected {
    min-height: 54px;
  }

  .x-auth-disconnected,
  .x-auth-connected {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 5px 7px 5px 10px;
  }

  .x-auth-disconnected strong,
  .x-auth-connected strong {
    font-size: 13px;
  }

  .x-auth-connected img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .x-connect-button {
    width: auto;
    min-width: 90px;
    min-height: 40px;
    margin-left: auto;
    padding: 0 10px;
  }

  .x-switch-account {
    flex: 0 0 52px;
    margin-left: auto;
    font-size: 8px;
  }

  .hero-button {
    min-height: 44px;
    margin-top: 7px;
    font-size: 14px;
  }

  .privacy-note {
    margin-top: 5px;
    font-size: 8px;
    line-height: 1.25;
  }

  .reward-teaser {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: clamp(82px, 25vw, 110px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 7px 10px;
    padding: 7px;
    transform: none;
  }

  .reward-teaser .teaser-label {
    grid-column: 2;
    align-items: start;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
  }

  .teaser-stage {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
  }

  .before-after-row {
    grid-column: 2;
    display: grid;
    justify-content: start;
    gap: 3px;
    font-size: 8px;
  }

  .question-center {
    gap: clamp(6px, 1.25vh, 10px);
  }

  .question-center h1 {
    font-size: clamp(27px, min(8.5vw, 6.3vh), 42px);
    line-height: 0.98;
  }

  .answer-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .answer-option {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .answer-feedback {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 74px;
    gap: 8px;
    padding: 8px 9px;
  }

  .answer-feedback p {
    font-size: 11px;
  }

  .feedback-continue {
    width: auto;
    min-height: 42px;
    padding: 0 10px;
    font-size: 11px;
  }

  .result-topline,
  .question-topline {
    align-items: flex-start;
    flex-direction: row;
  }

  .result-topline .button,
  .result-top-actions {
    width: auto;
  }

  .certainty-result-topline h2 {
    font-size: clamp(38px, 12vw, 50px);
    line-height: 0.88;
  }

  .certainty-result-topline h2 em {
    display: inline;
    margin: 0 0 0 5px;
    font-size: 0.32em;
  }

  .certainty-result-topline .result-headline {
    margin-top: 4px;
    font-size: 10px;
  }

  .compact-button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }

  .result-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 7px;
  }

  .pfp-frame {
    width: min(27dvh, 205px, 100%);
  }

  body.result-perfect .pfp-reward-panel {
    grid-template-columns: minmax(112px, 0.78fr) minmax(165px, 1.22fr);
    align-items: center;
    gap: 8px;
  }

  body.result-perfect .pfp-frame {
    width: min(21dvh, 165px, 100%);
  }

  .glasses-editor {
    width: 100%;
    gap: 6px;
    margin: 0;
    padding: 8px;
  }

  .editor-heading {
    gap: 7px;
  }

  .editor-heading strong {
    font-size: 12px;
  }

  .editor-heading span,
  .text-button,
  .editor-controls label {
    font-size: 8px;
  }

  .editor-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  .editor-controls input[type="range"] {
    height: 16px;
  }

  .result-next-steps {
    padding: 9px 10px;
  }

  .next-steps-heading h3 {
    margin-top: 2px;
    font-size: 25px;
  }

  .next-steps-heading > p:last-child {
    margin-top: 3px;
    font-size: 9px;
  }

  .result-action-progress {
    margin-top: 6px;
  }

  .result-action-progress span,
  .result-action-progress button {
    padding: 5px 3px;
    font-size: 8px;
  }

  .mint-limit-notice {
    margin-top: 5px;
    padding: 6px 8px;
  }

  .mint-limit-notice p {
    font-size: 9px;
  }

  .result-action-step,
  .result-action-step:first-of-type {
    margin-top: 5px;
    padding-top: 7px;
  }

  .step-body h4 {
    font-size: 14px;
  }

  .step-body > p {
    margin: 3px 0 6px;
    font-size: 9px;
  }

  .mint-confirmation-modal {
    padding: 7px;
  }

  .mint-confirmation-dialog {
    max-height: calc(100dvh - 14px);
    padding: 12px;
    box-shadow: 6px 6px 0 rgba(192, 255, 56, 0.08);
  }

  .mint-modal-header {
    gap: 10px;
    padding-bottom: 9px;
  }

  .mint-modal-kicker {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .mint-modal-header h2 {
    font-size: clamp(21px, 6.5vw, 28px);
  }

  .mint-modal-close {
    width: 32px;
    height: 32px;
  }

  .mint-modal-layout {
    grid-template-columns: clamp(88px, 28vw, 118px) minmax(0, 1fr);
    gap: 11px;
    padding: 11px 0;
  }

  .mint-modal-pfp-frame {
    width: 100%;
    margin: 0;
  }

  .mint-modal-pfp-frame figcaption {
    padding: 5px 4px;
    font-size: 7px;
  }

  .mint-status-orb {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }

  .mint-modal-status > p {
    min-height: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
  }

  .mint-modal-progress {
    margin: 7px 0;
  }

  .mint-modal-steps {
    gap: 3px;
  }

  .mint-modal-steps li {
    grid-template-columns: 22px 1fr;
    gap: 5px;
    font-size: 8px;
  }

  .mint-modal-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .mint-modal-links .button {
    min-height: 42px;
    padding: 0 7px;
    font-size: 9px;
  }

  .mint-modal-note {
    margin-top: 6px;
    font-size: 7px;
  }
}

@media (max-height: 700px) {
  .quiz-page .app-shell {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .quiz-page .topbar {
    min-height: 30px;
    margin-bottom: 3px;
  }

  .flow-panel {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .certainty-result-topline .result-headline,
  .next-steps-heading > p:last-child {
    display: none;
  }

  .pfp-frame {
    width: min(23dvh, 160px, 100%);
  }

  body.result-perfect .pfp-frame {
    width: min(19dvh, 135px, 100%);
  }

  .result-topline {
    margin-bottom: 5px;
  }

  .reward-teaser {
    grid-template-columns: clamp(76px, 22vw, 96px) minmax(0, 1fr);
  }

  .mint-confirmation-dialog {
    overflow-y: auto;
  }
}

@media (max-height: 520px) {
  .flow-panel,
  .mint-confirmation-dialog {
    overflow-y: auto;
  }
}

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