:root {
  --bg: #0a0a0a;
  --ink: #f6f6ef;
  --muted: #a7a7a0;
  --dim: #6c6c66;
  --line: rgba(255, 255, 255, .12);
  --surface: rgba(255, 255, 255, .055);
  --surface-2: rgba(255, 255, 255, .09);
  --lime: #cdf564;
  --coral: #ff5e48;
  --violet: #9d6bff;
  --sky: #5ccaff;
  --pink: #ff8ad8;
  --danger: #ff7a6b;
  --radius: 22px;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 17px/1.5 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- abstract background ---------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 60vmax; height: 60vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, var(--lime), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; opacity: .32; }
.b2 { width: 55vmax; height: 55vmax; right: -25vmax; top: 15vh; background: radial-gradient(circle, var(--coral), transparent 65%); animation: drift2 26s ease-in-out infinite alternate; opacity: .38; }
.b3 { width: 50vmax; height: 50vmax; left: -10vmax; bottom: -30vmax; background: radial-gradient(circle, var(--violet), transparent 65%); animation: drift3 30s ease-in-out infinite alternate; }
.b4 { width: 30vmax; height: 30vmax; right: 5vw; bottom: -5vmax; background: radial-gradient(circle, var(--sky), transparent 65%); animation: drift1 18s ease-in-out infinite alternate-reverse; opacity: .3; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, 18vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(25vw, -12vh) scale(1.2); } }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- chrome ---------- */
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px max(16px, env(safe-area-inset-left)); max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 15px var(--display); letter-spacing: -.01em; }
.brand-mark { width: 40px; height: 24px; }
.brand-mark circle { fill: none; stroke-width: 3; }
.brand-mark circle:first-child { stroke: var(--lime); }
.brand-mark circle:last-child { stroke: var(--coral); mix-blend-mode: screen; }
main { max-width: 640px; margin: 0 auto; padding: 12px 16px 64px; }
.foot { max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.foot p { flex-basis: 100%; margin: 4px 0 0; }

/* ---------- type ---------- */
.eyebrow { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 28px 0 10px; }
.mega { font: 900 clamp(56px, 17vw, 128px)/.86 var(--display); letter-spacing: -.045em; margin: 0 0 24px; text-transform: lowercase; }
.mega .w { display: block; animation: rise .8s cubic-bezier(.2,.9,.2,1.15) both; }
.mega .w:nth-child(2) { animation-delay: .08s; margin-left: .4em; }
.mega .w:nth-child(3) { animation-delay: .16s; }
.mega .w:nth-child(4) { animation-delay: .24s; margin-left: .25em; }
@keyframes rise { from { transform: translateY(60%) rotate(4deg); opacity: 0; } }
.lime { color: var(--lime); } .coral { color: var(--coral); } .violet { color: var(--violet); } .sky { color: var(--sky); }
.lede { font-size: 19px; color: #dcdcd4; max-width: 34em; }
.title { font: 800 clamp(30px, 7vw, 44px)/1.02 var(--display); letter-spacing: -.035em; margin: 10px 0 10px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.sub b { color: var(--ink); }

/* ---------- buttons ---------- */
.pill {
  appearance: none; border: 0; border-radius: 999px; background: var(--ink); color: #0a0a0a;
  font: 700 16px var(--body); padding: 15px 28px; transition: transform .15s ease, background .2s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.pill:hover { transform: scale(1.04); background: #fff; }
.pill:active { transform: scale(.97); }
.pill.big { font-size: 18px; padding: 18px 34px; }
.pill:disabled { opacity: .35; transform: none; cursor: not-allowed; }
.pill.lime-bg { background: var(--lime); }
.ghost { appearance: none; background: transparent; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 13px 22px; font-weight: 600; transition: border-color .2s, background .2s; }
.ghost:hover { border-color: var(--ink); background: var(--surface); }
.ghost.small { padding: 8px 16px; font-size: 14px; }
.danger { color: var(--danger); border-color: rgba(255,122,107,.35); }
.back { background: none; border: 0; color: var(--muted); padding: 6px 0; font-weight: 600; }
.back:hover { color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 28px 0 44px; }
.row-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.row-end > :only-child { margin-left: auto; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---------- landing ---------- */
.how { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: #d8d8d0; backdrop-filter: blur(12px); }
.how b { color: var(--ink); }
.num { display: block; font: 900 13px var(--display); color: var(--lime); margin-bottom: 6px; letter-spacing: .05em; }
.how li:nth-child(2) .num { color: var(--coral); }
.how li:nth-child(3) .num { color: var(--violet); }
.promise { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.promise li { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); color: #e9e9e1; }
.promise li::before { content: '✓ '; color: var(--lime); }

/* ---------- wizard ---------- */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 4px 0 18px; }
.progress i { height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; position: relative; }
.progress i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.progress i.done::after { transform: scaleX(1); }
.step { animation: stepIn .45s cubic-bezier(.2,.9,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }

.drop {
  display: grid; place-items: center; gap: 4px; text-align: center; padding: 44px 20px; cursor: pointer;
  border-radius: 28px; border: 2px dashed rgba(255,255,255,.22); background: var(--surface);
  transition: border-color .2s, background .2s, transform .2s;
}
.drop:hover, .drop.over { border-color: var(--lime); background: rgba(205,245,100,.06); transform: scale(1.01); }
.drop-t { font: 700 20px var(--display); letter-spacing: -.02em; }
.drop-s { color: var(--muted); font-size: 14px; }
.drop-orbs { width: 92px; height: 56px; position: relative; margin-bottom: 10px; }
.drop-orbs i { position: absolute; top: 0; width: 56px; height: 56px; border-radius: 50%; }
.drop-orbs i:first-child { left: 0; background: radial-gradient(circle at 35% 35%, #efffb8, var(--lime) 55%, #6c8f12); animation: bob 2.4s ease-in-out infinite; }
.drop-orbs i:last-child { right: 0; background: radial-gradient(circle at 35% 35%, #ffc4b8, var(--coral) 55%, #9b1f10); mix-blend-mode: screen; animation: bob 2.4s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.thumb { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 9 / 16; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.thumb .tag { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: rgba(10,10,10,.8); text-align: center; }
.thumb .tag.ok { background: var(--lime); color: #0a0a0a; }
.thumb .tag.bad { background: var(--coral); color: #0a0a0a; }
.ocr-bar { margin-top: 16px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.ocr-bar i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--lime); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--dim); }
.field small { color: var(--dim); font-size: 13px; }
input, select, textarea {
  width: 100%; font: 500 17px var(--body); color: var(--ink); background: rgba(255,255,255,.07);
  border: 1.5px solid transparent; border-radius: 14px; padding: 13px 14px; outline: none;
  transition: border-color .2s, background .2s; min-height: 50px;
}
textarea { resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select option { background: #1a1a1a; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); background: rgba(255,255,255,.1); }
input::placeholder, textarea::placeholder { color: #5e5e58; }
input[type=month] { color-scheme: dark; }
.field.check-me input, .field.check-me select, .field.check-me textarea { border-color: var(--coral); background: rgba(255,94,72,.08); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.hint-chip { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1.5px solid var(--coral); color: var(--ink); font-size: 13px; }
.ig-wrap { display: flex; align-items: center; background: rgba(255,255,255,.07); border-radius: 14px; padding-left: 14px; border: 1.5px solid transparent; }
.ig-wrap:focus-within { border-color: var(--lime); }
.ig-wrap b { color: var(--muted); font-size: 18px; }
.ig-wrap input { background: transparent; border: 0; padding-left: 6px; }
.adult-only { display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #d9d9d1; cursor: pointer; padding: 14px; border-radius: 16px; background: var(--surface); }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; accent-color: var(--lime); margin-top: 1px; }
.notice { background: rgba(157,107,255,.14); border: 1px solid rgba(157,107,255,.35); border-radius: 16px; padding: 14px 16px; color: #e3dcff; font-size: 15px; margin: 0; }
.err { color: var(--danger); font-weight: 600; min-height: 1.2em; margin: 14px 0 0; }

/* ---------- status ---------- */
.status-hero { text-align: left; padding: 20px 0 8px; }
.waiting-orbs { position: relative; height: 180px; margin: 10px 0 24px; }
.waiting-orbs i { position: absolute; top: 40px; width: 100px; height: 100px; border-radius: 50%; filter: blur(.3px); }
.waiting-orbs i:nth-of-type(1) { left: calc(50% - 130px); background: radial-gradient(circle at 35% 35%, #efffb8, var(--lime) 55%, #4d6a07); animation: seek-l 3.2s ease-in-out infinite; }
.waiting-orbs i:nth-of-type(2) { right: calc(50% - 130px); background: radial-gradient(circle at 35% 35%, #ffd1c7, var(--coral) 55%, #8a1406); opacity: .35; animation: seek-r 3.2s ease-in-out infinite; }
.waiting-orbs b { position: absolute; left: 50%; top: 90px; width: 160px; height: 2px; transform: translateX(-50%); background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 14px); animation: dash 1s linear infinite; }
@keyframes seek-l { 50% { transform: translateX(18px) scale(1.04); } }
@keyframes seek-r { 50% { transform: translateX(-18px); opacity: .55; } }
@keyframes dash { to { background-position: 14px 0; } }
.code-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.code-card .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.code { font: 800 clamp(16px, 5vw, 28px) var(--display); white-space: nowrap; letter-spacing: .02em; color: var(--lime); margin: 8px 0 14px; word-break: break-all; user-select: all; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.meta-list b { color: var(--ink); }
details.mine { margin-top: 18px; background: var(--surface); border-radius: 16px; padding: 14px 16px; color: var(--muted); font-size: 15px; }
details.mine summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.found-card { margin-top: 18px; border-radius: 28px; padding: 26px 22px; background: linear-gradient(135deg, rgba(205,245,100,.16), rgba(255,94,72,.12) 50%, rgba(157,107,255,.16)); border: 1px solid var(--line); }
.found-card .handle { font: 900 clamp(24px, 7.5vw, 48px)/1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; color: var(--ink); text-decoration: none; display: inline-block; margin: 6px 0 16px; }
.found-card blockquote { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--lime); color: #dadad2; }

/* ---------- celebration ---------- */
.celebrate { position: fixed; inset: 0; z-index: 100; background: #050505; overflow: hidden; animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.celebrate.boom .flash { animation: flash .9s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }
.celebrate.boom { animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%,90% { transform: translate(-2px,1px); } 20%,80% { transform: translate(4px,-3px); } 30%,50%,70% { transform: translate(-8px,4px); } 40%,60% { transform: translate(8px,-4px); } }

.cel-band { position: absolute; left: -10%; right: -10%; top: 46%; height: 64px; transform: rotate(-8deg) scaleY(0); background: var(--lime); color: #0a0a0a; overflow: hidden; display: flex; align-items: center; opacity: .95; }
.celebrate.reveal .cel-band { animation: band .6s .05s cubic-bezier(.2,.9,.2,1.2) forwards; }
@keyframes band { to { transform: rotate(-4deg) scaleY(1); top: 14px; } }
.cel-band-in { white-space: nowrap; font: 900 30px var(--display); letter-spacing: -.02em; animation: marquee 9s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.cel-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 104px 16px 40px; text-align: center; overflow-y: auto; pointer-events: none; }
.celebrate.reveal .cel-content { pointer-events: auto; }
.cel-title { font: 900 clamp(40px, 12.5vw, 140px)/.9 var(--display); letter-spacing: -.05em; margin: 0 0 26px; text-transform: lowercase; }
.cel-title .ln { display: block; }
.cel-title .wd { display: inline-block; white-space: nowrap; }
.cel-title .ch { display: inline-block; opacity: 0; transform: translateY(80%) scale(2.4) rotate(-12deg); filter: blur(10px); }
.celebrate.reveal .cel-title .ch { animation: slam .55s cubic-bezier(.2,1.4,.3,1) forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes slam { to { opacity: 1; transform: none; filter: none; } }
.cel-title .ln:nth-child(1) { color: var(--ink); }
.cel-title .ln:nth-child(2) { color: var(--lime); text-shadow: 0 0 40px rgba(205,245,100,.45); }
.cel-title .ln:nth-child(2) .ch:nth-child(3n+2) { color: var(--coral); text-shadow: 0 0 40px rgba(255,94,72,.45); }
.cel-title .ln:nth-child(2) .ch:nth-child(3n) { color: var(--pink); text-shadow: 0 0 40px rgba(255,138,216,.45); }
@keyframes hue { to { background-position: 300% 0; } }

.cel-card { opacity: 0; transform: translateY(40px) scale(.9); width: min(560px, 100%); padding: 28px 22px; border-radius: 32px; background: rgba(15,15,15,.72); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 120px rgba(205,245,100,.18), 0 0 0 1px rgba(255,255,255,.04) inset; }
.celebrate.reveal .cel-card { animation: cardIn .8s .75s cubic-bezier(.2,1.2,.3,1) forwards; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.cel-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cel-handle {
  display: inline-block; white-space: nowrap; font: 900 84px/1.1 var(--display); letter-spacing: -.045em; text-decoration: none;
  background: linear-gradient(100deg, var(--lime) 0%, #fff 20%, var(--pink) 40%, var(--coral) 60%, var(--violet) 80%, var(--lime) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 3s linear infinite, pulse 2.2s ease-in-out infinite; margin: 4px auto 18px;
}
@keyframes pulse { 50% { transform: scale(1.04); } }
.cel-handle.none { font-size: clamp(20px, 5.5vw, 30px) !important; white-space: normal; background: none; color: var(--ink); animation: none; }
.cel-ig { background: linear-gradient(90deg, var(--lime), #e5ff9e); color: #0a0a0a; }
.cel-meta { color: var(--muted); margin: 18px 0 0; font-size: 15px; }
.cel-meta b { color: var(--ink); }
.cel-blurb { margin: 18px 0 0; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.06); color: #e2e2da; text-align: left; font-size: 15px; }
.cel-note { margin: 14px 0 0; font-size: 17px; color: var(--ink); }
.cel-note:empty, .cel-blurb:empty { display: none; }
.cel-actions { display: flex; gap: 12px; margin-top: 26px; opacity: 0; }
.celebrate.reveal .cel-actions { animation: fadeIn .5s 1.6s both; opacity: 1; }

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .row-end { flex-wrap: wrap; }
  .cel-band { height: 48px; }
  .cel-band-in { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* ---------- prose pages ---------- */
.prose { color: #d6d6ce; }
.prose h1 { font: 900 clamp(36px, 9vw, 56px)/.95 var(--display); letter-spacing: -.04em; color: var(--ink); margin: 24px 0 8px; }
.prose h2 { font: 700 19px var(--display); color: var(--ink); margin: 34px 0 8px; letter-spacing: -.01em; }
.prose .tldr { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; margin: 22px 0; }
.prose .tldr li { margin: 10px 0; }
.prose strong { color: var(--ink); }
