[hidden]{display:none!important}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:#fff;color:#111;font:16px/1.4 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit;cursor:pointer}

/* one theme: black ink on white, neon green (the logo) as the only accent, gold for the SALE sticker */
:root{--ink:#0b0b0b;--neon:#22ff5a;--muted:#6b6b6b;--frame:#f2f2f2;--display:"Inter Tight",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif}

/* one screen: header / stage / actions / dock */
.app{height:100vh;height:100dvh;display:flex;flex-direction:column;align-items:center;padding:calc(14px + env(safe-area-inset-top)) 14px 0;max-width:980px;margin:0 auto}
/* phones: logo on the left, what this is on the right */
.top{display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,22px);flex:none;margin-bottom:14px;width:100%;max-width:560px}
.logo{flex:none}
.logo svg{width:clamp(140px,44vw,270px);height:auto;display:block;transform:rotate(-3deg)}
.pitch{min-width:0}
h1{margin:0;font:800 clamp(18px,5.6vw,32px)/1.02 var(--display);letter-spacing:-.03em;text-wrap:balance}

/* the screenshot moment: purchase history left, the photo right, framed as one card */
/* height capped so both halves stay portrait-shaped like the original screenshot */
.stage{flex:1;min-height:0;max-height:calc(min(100vw - 28px,560px) * 1.5);width:100%;max-width:560px;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:auto 0;padding:8px;border-radius:22px;background:#f2f2f2;position:relative}
.panel{position:relative;min-height:0;border-radius:14px;overflow:hidden;background:#fff}

/* the photo: who it's meant to be */
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
/* costume name: plain white text on a soft bottom fade so it reads on any photo */
.photo::after{content:"";position:absolute;inset:auto 0 0;height:32%;background:linear-gradient(transparent,rgba(0,0,0,.55));pointer-events:none}
.photo .name{position:absolute;z-index:1;left:12px;right:12px;bottom:11px;color:#fff;font:700 clamp(14px,4vw,20px)/1.15 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.01em;text-shadow:0 1px 3px rgba(0,0,0,.35);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-wrap:balance}
.play .photo .name{animation:tag .35s ease .15s both}
@keyframes tag{from{opacity:0;transform:translateY(6px)}}

/* the purchase history, sized to its panel like the real thing */
.list{container-type:size}
.ph{height:100%;display:flex;flex-direction:column;padding:min(6cqw,4cqh) 5cqw 5cqw}
.ph header{display:flex;align-items:flex-start;justify-content:space-between;gap:2cqw;margin-bottom:min(4cqw,2.4cqh)}
.ph h2{margin:0;font-size:clamp(14px,min(8.6cqw,5.4cqh),30px);font-weight:700;letter-spacing:-.02em;line-height:1.1}
.ph .sub{font-size:clamp(9.5px,min(4.8cqw,3cqh),15px);color:#6b6b6b;margin-top:.3em}
/* gold sticker slapped over the panel's corner */
.list{overflow:visible}
.sale{position:absolute;z-index:3;top:-12px;right:-16px;width:clamp(58px,min(32cqw,19cqh),118px);height:auto;transform:rotate(12deg);font-family:"Inter Tight",sans-serif;filter:drop-shadow(0 6px 10px rgba(150,100,0,.4));animation:pulse 2.4s cubic-bezier(.3,1.6,.5,1) infinite}
.play .sale{animation:stamp .5s cubic-bezier(.2,1.6,.4,1) .15s both,pulse 2.4s cubic-bezier(.3,1.6,.5,1) .65s infinite}
@keyframes stamp{from{opacity:0;transform:rotate(-30deg) scale(2.2)}}
@keyframes pulse{0%,100%{transform:rotate(12deg) scale(1)}12%{transform:rotate(6deg) scale(1.18)}24%{transform:rotate(15deg) scale(.96)}34%{transform:rotate(11deg) scale(1.03)}60%{transform:rotate(14deg) scale(1)}80%{transform:rotate(10deg) scale(1.01)}}
.sale .glint{animation:glint 2.4s ease-in-out .65s infinite}
@keyframes glint{0%,6%{transform:translateX(0)}40%,100%{transform:translateX(200px)}}
.ph h2,.ph .sub{padding-right:22cqw}
.ph .rows{flex:1;display:flex;flex-direction:column;gap:min(2.6cqw,1.6cqh);min-height:0}
.ph .row{flex:1;min-height:0;display:flex;align-items:center;gap:3.5cqw;border:1.5px solid #d6d6d6;border-radius:8px;padding:0 3cqw 0 2cqw;text-decoration:none;color:inherit;background:#fff}
.ph .pic{width:29%;align-self:stretch;flex:none;padding:min(1.4cqh,10px) 0;display:flex}
.ph .pic img{width:100%;height:100%;object-fit:contain}
.ph .txt{min-width:0}
.ph b{display:block;font-size:clamp(9px,min(5.2cqw,3.3cqh),18px);font-weight:700;white-space:nowrap;letter-spacing:-.01em}
.ph b i{font-style:normal}
.ph b .s{display:none}
.ph .txt span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:clamp(7.5px,min(4cqw,2.6cqh),15px);color:#5f5f5f;line-height:1.25;margin-top:.25em}
/* narrow column (phones): short month so "Delivered" fits on one line */
@container (max-width:300px){.ph b .l{display:none}.ph b .s{display:inline}}
.ph .fine{margin:min(2.4cqw,1.4cqh) 0 0;font-size:clamp(9px,min(3.4cqw,2.2cqh),11px);line-height:1.2;color:#8f8f8f;text-align:center}
.ph .skel{background:#f2f2f2;border-radius:6px;width:100%;height:100%}

/* ===== quick entrance: photo instantly, rows slide in fast ===== */
.play .row{animation:slide .35s cubic-bezier(.2,.9,.3,1) both;animation-delay:calc(var(--i) * .06s)}
@keyframes slide{from{opacity:0;transform:translateY(10px)}}
.play .photo img{animation:pop .35s ease both}
@keyframes pop{from{opacity:0;transform:scale(1.04)}}
.play.fwd .panel{animation:inR .3s cubic-bezier(.2,.9,.3,1) both}
.play.back .panel{animation:inL .3s cubic-bezier(.2,.9,.3,1) both}
@keyframes inR{from{opacity:0;transform:translateX(24px)}}
@keyframes inL{from{opacity:0;transform:translateX(-24px)}}
.out .panel{animation:out .25s ease both}
@keyframes out{to{opacity:0}}

/* dock: upload always visible */
.dock{flex:none;width:100%;display:flex;flex-direction:column;align-items:center;padding:10px 0 calc(8px + env(safe-area-inset-bottom))}
.cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:420px;background:var(--neon);color:var(--ink);border:2px solid var(--ink);border-radius:999px;padding:17px 28px;font:800 19px/1 var(--display);letter-spacing:-.01em;box-shadow:4px 5px 0 var(--ink);transition:transform .12s,box-shadow .12s}
.cta:hover{transform:translate(-1px,-1px);box-shadow:5px 7px 0 var(--ink)}
.cta:active{transform:translate(3px,4px);box-shadow:1px 1px 0 var(--ink)}
.cta:disabled{opacity:.4}
.note{margin:0 0 8px;color:#6b6b6b;font-size:14px;text-align:center}
.legal{font-size:11px;color:#a5a5a5;margin-top:8px}

.acts{flex:none;display:flex;gap:8px;justify-content:center;margin-top:10px}
.acts:empty{display:none}
.dots{display:flex;gap:2px}
.acts .dots button{border:0;background:none;padding:8px 5px;border-radius:0}
.dots button::after{content:"";display:block;width:7px;height:7px;border-radius:99px;background:#d4d4d4;transition:width .25s,background .25s}
.dots button[aria-current]::after{width:20px;background:var(--ink)}
.acts button,.acts a{border:1px solid #dcdcdc;background:#fff;border-radius:999px;padding:9px 16px;font-weight:600;font-size:14px;text-decoration:none}
/* ===== while it works ===== */
/* the photo gets scanned: dimmed, a neon line sweeps it, detection brackets pop up around pieces */
.working .photo img{filter:brightness(.82) saturate(.9);transition:filter .4s}
.working .photo::after{height:38%}
.scan{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
.scan::before{content:"";position:absolute;left:0;right:0;height:22%;top:-22%;background:linear-gradient(to bottom,rgba(34,255,90,0),rgba(34,255,90,.28) 85%,rgba(34,255,90,.95) 98%,rgba(34,255,90,0));animation:sweep 2.1s cubic-bezier(.45,0,.55,1) infinite}
.scan::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.22) 1px,transparent 1.2px);background-size:14px 14px;opacity:.55}
.phase-pack .scan::before{animation-duration:3.2s;opacity:.55}
@keyframes sweep{to{top:100%}}
.spot{position:absolute;z-index:1;opacity:0;border-radius:6px;animation:spot 4.5s ease-in-out var(--d) infinite;
  background:linear-gradient(var(--neon),var(--neon)) top left/14px 3px,linear-gradient(var(--neon),var(--neon)) top left/3px 14px,
  linear-gradient(var(--neon),var(--neon)) top right/14px 3px,linear-gradient(var(--neon),var(--neon)) top right/3px 14px,
  linear-gradient(var(--neon),var(--neon)) bottom left/14px 3px,linear-gradient(var(--neon),var(--neon)) bottom left/3px 14px,
  linear-gradient(var(--neon),var(--neon)) bottom right/14px 3px,linear-gradient(var(--neon),var(--neon)) bottom right/3px 14px;background-repeat:no-repeat;filter:drop-shadow(0 0 4px rgba(34,255,90,.8))}
@keyframes spot{0%,100%{opacity:0;transform:scale(1.15)}12%,45%{opacity:1;transform:scale(1)}60%{opacity:0;transform:scale(.96)}}
/* rows: shimmering skeletons, then "Out for delivery" boxes, then they land as "Delivered" */
.skel,.skel-line{background:linear-gradient(90deg,#efefef 25%,#f8f8f8 50%,#efefef 75%);background-size:300% 100%;animation:shimmer 1.3s linear infinite}
.ph .skel-line{display:block;height:.85em;width:80%;border-radius:4px}
.ph .skel-line.short{width:55%;margin-top:.5em;height:.7em}
@keyframes shimmer{from{background-position:100% 0}to{background-position:-50% 0}}
.row.transit{border-style:dashed;border-color:#cfcfcf;animation:slide .35s cubic-bezier(.2,.9,.3,1) both;animation-delay:calc(var(--i) * .08s)}
.row.transit .pic{align-items:center;justify-content:center}
.box{width:62%;max-width:44px;height:auto;animation:bob 1s ease-in-out infinite;animation-delay:calc(var(--i) * .15s)}
@keyframes bob{50%{transform:translateY(-12%) rotate(-4deg)}}
.row.transit b{color:#2d8a3e}
.row.transit .txt span{-webkit-line-clamp:2}
.row.landed{animation:land .45s cubic-bezier(.2,1.5,.4,1) both;border-color:#d6d6d6}
.row.landed img{animation:pop .35s ease both}
@keyframes land{0%{transform:scale(.96)}55%{transform:scale(1.03);border-color:var(--neon);box-shadow:0 0 0 3px rgba(34,255,90,.35)}100%{transform:none}}
/* the upload button becomes the progress bar */
.cta.busy,.cta.busy:disabled{opacity:1;cursor:progress;background:linear-gradient(90deg,var(--neon) var(--p,0%),#e9ffee var(--p,0%));transition:none;box-shadow:4px 5px 0 var(--ink)}
.cta.busy svg{animation:bob 1s ease-in-out infinite}
.cta .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== the reveal: plain white, the image is the hero ===== */
.reveal{position:fixed;inset:0;z-index:50;display:flex;justify-content:center;padding:calc(18px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));background:#fff;opacity:0;transition:opacity .25s;overflow-y:auto}
.reveal.in{opacity:1}
/* the preview is sized so heading + image + buttons always fit the window */
.rv-inner{position:relative;width:100%;max-width:min(880px,calc((100dvh - 270px) * 1.594));min-width:min(100%,340px);display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--ink);margin:auto}
.rv-close{position:fixed;top:calc(12px + env(safe-area-inset-top));right:12px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:var(--frame);color:var(--ink);font-size:26px;line-height:1}
.rv-close:hover{background:#e6e6e6}
.rv-eyebrow{margin:0;display:inline-flex;align-items:center;gap:8px;font:800 13px/1 var(--display);letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.rv-eyebrow::before{content:"";width:20px;height:20px;border-radius:50%;background:var(--neon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;box-shadow:0 0 0 1.5px var(--ink)}
.reveal h2{margin:10px 0 18px;font:800 clamp(24px,5.4vw,44px)/1.08 var(--display);letter-spacing:-.03em;text-wrap:balance}
.reveal h2 em{font-style:normal;background:linear-gradient(transparent 58%,var(--neon) 58%,var(--neon) 92%,transparent 92%);padding:0 .08em}
.rv-shot{position:relative;width:100%;aspect-ratio:2200/1380;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 24px 60px -24px rgba(0,0,0,.35),0 0 0 1px #ececec}
.reveal.in .rv-shot{animation:drop .7s cubic-bezier(.2,1.3,.4,1) .1s both}
@keyframes drop{from{opacity:0;transform:translateY(24px) rotate(-2.5deg) scale(.94)}}
.rv-shot img{display:block;width:100%;height:100%}
.rv-shot::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.7) 45%,transparent 60%);transform:translateX(-120%);pointer-events:none}
.reveal.in .rv-shot:has(img)::after{animation:flash 1.1s ease .35s}
@keyframes flash{to{transform:translateX(120%)}}
.rv-skel{position:absolute;inset:0;background:linear-gradient(90deg,#f1f1f1 25%,#fafafa 50%,#f1f1f1 75%);background-size:300% 100%;animation:shimmer 1.2s linear infinite}
.rv-err{padding:40px 20px}
.rv-actions{display:flex;gap:14px;margin-top:24px;width:100%;justify-content:center}
.rv-actions button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:999px;font:800 18px/1 var(--display);padding:16px 26px;border:2px solid var(--ink);box-shadow:4px 5px 0 var(--ink);transition:transform .12s,box-shadow .12s,opacity .2s}
.rv-actions button:not(:disabled):hover{transform:translate(-1px,-1px);box-shadow:5px 7px 0 var(--ink)}
.rv-actions button:not(:disabled):active{transform:translate(3px,4px);box-shadow:1px 1px 0 var(--ink)}
.rv-actions button:disabled{opacity:.45;cursor:progress}
.rv-dl{background:var(--neon);color:var(--ink)}
.rv-buy{background:var(--ink);color:#fff}
.rv-buy[aria-expanded="true"]{background:#fff;color:var(--ink)}
/* Buy opens the pieces right here, each with its own store link */
.rv-pieces{width:100%;max-width:560px;margin-top:20px;display:flex;flex-direction:column;gap:8px;text-align:left;animation:slide .3s cubic-bezier(.2,.9,.3,1) both}
.rv-pieces[hidden]{display:none}
.rv-cart{display:block;text-align:center;background:var(--neon);border:2px solid var(--ink);border-radius:12px;padding:13px;font:800 16px/1 var(--display);text-decoration:none}
.rv-piece{display:flex;align-items:center;gap:12px;border:1.5px solid #e2e2e2;border-radius:12px;padding:8px 12px 8px 8px;text-decoration:none;transition:border-color .15s}
.rv-piece:hover{border-color:var(--ink)}
.rv-pic{width:48px;height:48px;flex:none;display:flex;align-items:center;justify-content:center}
.rv-pic img{max-width:100%;max-height:100%;object-fit:contain}
.rv-title{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.rv-price{font-size:14px;color:var(--muted);flex:none}
.rv-go{flex:none;font:800 14px/1 var(--display);background:var(--ink);color:#fff;border-radius:999px;padding:9px 14px}
.rv-fine{margin:4px 0 0;font-size:12px;color:#9a9a9a;text-align:center}
.rv-more{margin:18px 0 0;font-size:14px;color:#9a9a9a}
.rv-more a,.rv-more button{color:var(--ink);background:none;border:0;padding:0;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.rv-more button:disabled{opacity:.4}
@media (max-width:600px){
  .rv-actions{flex-direction:column;gap:12px}
  .rv-actions button{width:100%}
  .reveal h2{margin-bottom:14px}
}

@media (prefers-reduced-motion:reduce){*{animation:none!important}}

/* desktop: same pieces as the phone, but the card opens up into the wide screenshot shape */
@media (min-width:860px) and (min-aspect-ratio:1/1){
  :root{--w:min(1120px,calc((100dvh - 250px) * 1.62),calc(100vw - 80px))}
  .app{max-width:none;padding-top:calc(24px + env(safe-area-inset-top))}
  .top{max-width:var(--w);justify-content:space-between;gap:24px;margin-bottom:20px}
  .logo svg{width:clamp(220px,20vh,260px)}
  h1{font-size:clamp(30px,4.6vh,44px)}
  .stage{max-width:var(--w);max-height:none;margin:0 0 auto;gap:14px;padding:14px;border-radius:28px}
  .acts{margin-top:16px}
  .dock{padding:16px 0 calc(14px + env(safe-area-inset-bottom))}
  .legal{margin-top:14px}
}
