:root {
  --page: #ffd000;
  
  --ink: #111111;
  --headline: #111111;
  --sub: #1a1a1a;
  --card: #ffffff;
  --card-ink: #142033;
  --card-muted: #3b4a5e;
  --line: #c9d0d8;
  --btn: #111111;
  --btn-ink: #ffe14a;
  --btn-disabled: #8a8a8a;
  --check: #c4151c;
  --hint: #9b1c1c;
  --ribbon: #111111;
  --ribbon-ink: #ffe14a;
  --bar: #ffd000;
  --bar-ink: #111111;
  --progress: #111111;
  --progress-track: #d8dde3;
  --issue-bg: #111111;
  --issue-ink: #fffdf4;
  color-scheme: light;
}

[data-theme="warp"] {
  --page: #16120a;
  
  --ink: #fff8e7;
  --headline: #ffd400;
  --sub: #ffffff;
  --card: #ffffff;
  --card-ink: #16120a;
  --card-muted: #3a3428;
  --line: #cfc6b0;
  --btn: #ffd400;
  --btn-ink: #16120a;
  --btn-disabled: #9a8a4a;
  --check: #ffd400;
  --hint: #9b1c1c;
  --ribbon: #ffd400;
  --ribbon-ink: #16120a;
  --bar: #16120a;
  --bar-ink: #ffd400;
  --progress: #16120a;
  --progress-track: #ddd6c6;
  --issue-bg: rgba(8, 8, 8, 0.72);
  --issue-ink: #ffd400;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", "Avenir Next", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}


.top,
.hero,
.bar,
.beat {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 8px;
}

.wordmark {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ribbon {
  margin: 0;
  padding: 6px 9px;
  background: var(--ribbon);
  color: var(--ribbon-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  flex: 1;
  width: min(100%, 560px);
  padding: 12px 16px 24px;
}

h1 {
  margin: 8px 0 10px;
  color: var(--headline);
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: Impact, "Arial Narrow", "Franklin Gothic Condensed", sans-serif;
  font-weight: 400;
}

.subhead {
  margin: 0 0 18px;
  max-width: 36ch;
  color: var(--sub);
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 650;
}

.card {
  background: var(--card);
  color: var(--card-ink);
  padding: 18px 16px 14px;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-prompt {
  margin: 0 0 12px;
  color: var(--card-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#zip {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--card-ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#zip:focus {
  outline: 3px solid var(--headline);
  outline-offset: 1px;
}

#zip[aria-invalid="true"] {
  border-color: var(--hint);
}

#submit {
  min-height: 54px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

[data-theme="scam"] #submit {
  border: 2px solid #111;
}

#submit:disabled {
  background: var(--btn-disabled);
  color: #fff;
  border-color: transparent;
}

#submit:not(:disabled) {
  cursor: pointer;
}

.hint {
  min-height: 1.1em;
  margin: 8px 0 0;
  color: var(--hint);
  font-size: 0.82rem;
  font-weight: 700;
}

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.progress span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-muted);
}

.progress i {
  display: block;
  flex: 1;
  height: 4px;
  overflow: hidden;
  background: var(--progress-track);
}

.progress i::after {
  content: "";
  display: block;
  width: 22%;
  height: 100%;
  background: var(--progress);
}

.trust {
  margin: 10px 0 0;
  color: var(--card-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.issues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin: 14px 0 0;
  padding: 12px;
  list-style: none;
  background: var(--issue-bg);
  color: var(--issue-ink);
  border-radius: 6px;
}

[data-theme="warp"] .issues {
  border: 1px solid #ffd400;
}

.issues li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 750;
  text-transform: uppercase;
}

.issues li::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--check)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23fff' d='M6.2 11.4 3.1 8.3l1.2-1.2 1.9 1.9 5.5-5.5 1.2 1.2z'/></svg>")
    center / 11px no-repeat;
}

[data-theme="warp"] .issues li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2316120a' d='M6.2 11.4 3.1 8.3l1.2-1.2 1.9 1.9 5.5-5.5 1.2 1.2z'/></svg>");
}

.bar {
  margin-top: auto;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: var(--bar);
  color: var(--bar-ink);
}

.bar p {
  margin: 0 auto;
  max-width: 52rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.beat {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.beat[hidden] {
  display: none;
}

@media (max-width: 360px) {
  .issues {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .top {
    padding: 22px 36px 0;
  }

  .hero {
    width: min(100%, 620px);
    padding: 28px 36px 40px;
  }

  h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
  }

  .card {
    padding: 22px 22px 16px;
  }

  .row {
    flex-direction: row;
    align-items: stretch;
  }

  #zip {
    flex: 1 1 auto;
  }

  #submit {
    width: auto;
    min-width: 180px;
    padding: 0 22px;
  }

  .bar {
    padding: 14px 36px;
  }
}
