:root {
  --ink: #1d1a24;
  --muted: #6b6475;
  --bg: #fff4e6;
  --c1: #ff5fa2;
  --c2: #ffb347;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 17px/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--c1) 35%, transparent), transparent 55%),
    radial-gradient(circle at 110% 30%, color-mix(in srgb, var(--c2) 35%, transparent), transparent 50%);
  transition: background-color .4s;
}
a { color: inherit; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 18px 40px; }
h1 {
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 24px 0 14px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: 1.15rem; margin: 0 0 22px; max-width: 30em; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 1.05rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--c1);
  transition: transform .1s, box-shadow .1s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c1); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost:active { box-shadow: 1px 1px 0 var(--ink); }
.btn.big { min-height: 60px; font-size: 1.2rem; padding: 14px 32px; }
.btn:focus-visible, .answer:focus-visible, .linkish:focus-visible, input:focus-visible, .seg button:focus-visible {
  outline: 3px solid var(--c1);
  outline-offset: 3px;
}
.note { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
.teaser { margin: 34px auto 0; max-width: 340px; transform: rotate(-2deg); }
.teaser .receipt { animation: none; font-size: 13px; }

.progress { height: 8px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); overflow: hidden; margin: 20px 0 10px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .3s; }
.qmeta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 600 .9rem var(--mono); min-height: 32px; }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.question { font-size: clamp(1.5rem, 6.5vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 22px; outline: none; }
.answers { display: grid; gap: 12px; }
.answer {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  text-align: left;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: 600 1.05rem/1.3 var(--sans);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s, background .15s;
}
@media (hover: hover) { .answer:hover { background: color-mix(in srgb, var(--c2) 22%, #fff); } }
.answer:active, .answer.picked { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: color-mix(in srgb, var(--c1) 25%, #fff); }
.slide { animation: slide .28s ease-out; }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } }

.receipt {
  --edge: 10px;
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 26px 22px;
  background: #fffdf8;
  color: #222;
  font: 14px/1.45 var(--mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--edge) 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--edge) 51% repeat-x;
  animation: print 1.1s steps(18) both;
}
.paper { filter: drop-shadow(0 10px 18px rgba(40, 20, 60, .22)); }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.receipt p { margin: 0; }
.receipt .c { text-align: center; }
.receipt .store { font-size: 22px; font-weight: 800; letter-spacing: .12em; }
.receipt .rule { border-top: 2px dashed #999; margin: 10px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .row b { white-space: nowrap; }
.receipt .item { margin: 4px 0; }
.receipt .total { font-size: 19px; font-weight: 800; margin-top: 4px; }
.receipt .tier { margin: 14px 0 4px; padding: 8px; border: 2px solid #222; text-align: center; font-weight: 800; font-size: 16px; letter-spacing: .04em; }
.receipt .blurb { text-align: center; font-style: italic; }
.receipt svg { display: block; width: 80%; height: 48px; margin: 14px auto 4px; }
.receipt .muted { color: #777; }

.actions { max-width: 380px; margin: 26px auto 0; display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  font: 600 1.05rem var(--sans);
  background: #fff;
  color: var(--ink);
}
.seg { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { flex: 1; min-height: 44px; border: 0; background: none; font: 700 .95rem var(--sans); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .btn { padding: 12px 10px; font-size: 1rem; }
.toast { min-height: 1.5em; text-align: center; font-weight: 700; margin: 0; }

.about { margin-top: 64px; }
.about h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 32px 0 8px; }
.about p { margin: 0 0 12px; }
.prose h1 { font-size: 2.4rem; }
.prose h2 { font-size: 1.25rem; margin-top: 28px; }
.center { text-align: center; }
footer { text-align: center; padding: 22px; color: var(--muted); font-size: .9rem; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.dare { display: grid; justify-items: center; gap: 12px; margin: 0 auto 24px; max-width: 380px; }
.dare p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.dare .btn { width: 100%; }
