/* Spoof AI app: black, full-bleed video, one pink accent. Phone column on desktop. */
:root {
  --bg: #000; --s1: #121212; --s2: #1c1c1e; --s3: #2a2a2d; --line: #262628;
  --fg: #fff; --dim: #9a9a9f; --mute: #6b6b70;
  --accent: #ff3b6b; --accent-press: #e62a58; --on-accent: #fff;
  --ok: #34c759; --bad: #ff5a5f;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --px: 16px; --r: 18px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #000; }
body { color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow: hidden; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
input { font: inherit; color: inherit; }
img, video { display: block; }
svg { display: block; }
[hidden] { display: none !important; }

#app { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--bg); overflow: hidden; overflow: clip; display: flex; flex-direction: column; }
@media (min-width: 520px) { #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* ---------- shared bits ---------- */
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); position: relative; flex: none; transition: transform .1s; }
.round svg { width: 21px; height: 21px; }
.round:active, .pill:active { transform: scale(.94); }
.glass { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pill { height: 36px; padding: 0 14px 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: var(--s2); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; transition: transform .1s; }
.coin { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.coin::before { content: ''; width: 12px; height: 12px; background: #fff; clip-path: polygon(58% 0, 10% 58%, 46% 58%, 38% 100%, 90% 40%, 54% 40%); }
.dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--s2); }
.btn { width: 100%; height: 56px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); background: var(--accent-press); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: var(--s2); color: var(--fg); }
.btn .c { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px 3px 6px; margin-left: 4px; border-radius: 999px; background: rgba(0, 0, 0, .2); font-size: 15px; }
.btn .c svg { width: 14px; height: 14px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dur { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 8px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dur svg { width: 10px; height: 10px; }
.badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .02em; background: rgba(0, 0, 0, .55); }
.badge svg { width: 12px; height: 12px; }
.badge.hot { background: var(--accent); }

/* ---------- top bar + tabs ---------- */
.top { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(var(--safe-t) + 10px) var(--px) 6px; }
.logo { display: flex; align-items: center; line-height: 1; }
.logo img { height: 40px; width: auto; }
.logo b { font-family: var(--font); font-size: 11px; font-weight: 800; color: var(--accent); margin-left: 2px; letter-spacing: .04em; vertical-align: 2px; }
.top-r { display: flex; gap: 8px; justify-self: end; }
.top .pill { justify-self: start; }
.tabs { flex: none; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--px) 12px; scroll-padding: 0 var(--px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font-weight: 800; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); transition: color .15s; }
.tabs button.on { color: var(--fg); }
.tabs button.on::after { content: ''; display: block; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 5px; }

/* ---------- home ---------- */
.home { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-bottom: calc(var(--safe-b) + 28px); scrollbar-width: none; }
.home::-webkit-scrollbar { display: none; }
.media { position: relative; overflow: hidden; background: var(--s1); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; transition: opacity .25s; }
.media video.playing { opacity: 1; }

.hero { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--px); scroll-padding: 0 var(--px); }
.hero::-webkit-scrollbar { display: none; }
.hero-card { flex: none; width: 100%; aspect-ratio: 4 / 5; max-height: 62dvh; border-radius: 22px; scroll-snap-align: start; text-align: left; }
.hero-card .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.hero-card .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-card h3 { font-family: var(--display); font-size: 26px; line-height: 1.02; letter-spacing: -.03em; }
.hero-card .cap div span { display: block; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; margin-top: 4px; }
.hero-card .go { flex: none; white-space: nowrap; height: 44px; padding: 0 16px; border-radius: 14px; background: var(--accent); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.hero-card .go svg { width: 18px; height: 18px; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--s3); transition: width .2s, background .2s; }
.dots i.on { width: 18px; background: var(--fg); }

.sec { margin-top: 22px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--px); margin-bottom: 10px; }
.sec-h h2 { font-weight: 800; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }
.sec-h button { color: var(--dim); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; }
.sec-h button svg { width: 16px; height: 16px; }
.row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--px); scroll-padding: 0 var(--px); scroll-snap-type: x proximity; }
.row::-webkit-scrollbar { display: none; }
.card { flex: none; width: 38%; text-align: left; scroll-snap-align: start; }
.card .media { aspect-ratio: 9 / 15; border-radius: 16px; }
.card .nm { display: block; margin-top: 7px; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cr { display: flex; align-items: center; gap: 3px; color: var(--dim); font-size: 12.5px; font-weight: 700; margin-top: 1px; }
.card .cr svg { width: 12px; height: 12px; color: var(--accent); }
.card:active .media { transform: scale(.97); }
.card .media { transition: transform .12s; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 4px var(--px) 34px; }
.grid .card { width: auto; }
.grid .card:nth-child(even) { transform: translateY(30px); }
.sk { border-radius: 16px; background: var(--s1); aspect-ratio: 9 / 15; animation: pulse 1.2s ease-in-out infinite alternate; }
.sk.wide { aspect-ratio: 4 / 5; margin: 0 var(--px); border-radius: 22px; }
@keyframes pulse { to { opacity: .5; } }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; z-index: 20; background: #000; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; }
.screen.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.screen.up { transform: translateY(100%); }
.screen.up.open { transform: none; }
.bar { flex: none; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 10px) var(--px) 10px; }
.bar h2 { text-align: center; font-size: 17px; font-weight: 800; }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* template feed */
.feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide video { opacity: 0; transition: opacity .2s; }
.slide video.playing { opacity: 1; }
.slide .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); pointer-events: none; }
.slide .info { position: absolute; left: var(--px); right: var(--px); bottom: calc(var(--safe-b) + 18px); }
.slide h2 { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.slide .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.slide .meta span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 700; }
.slide .meta svg { width: 13px; height: 13px; }
.slide .hint { display: flex; justify-content: center; margin-top: 10px; color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 600; gap: 4px; align-items: center; }
.slide .hint svg { width: 14px; height: 14px; }
.detail-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(var(--safe-t) + 10px) var(--px) 0; pointer-events: none; }
.detail-top > * { pointer-events: auto; }
.sound { position: absolute; z-index: 2; right: var(--px); top: calc(var(--safe-t) + 60px); }

/* sheets */
.scrim { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92%; overflow-y: auto; overscroll-behavior: contain; background: var(--s1); border-radius: 24px 24px 0 0; padding: 8px var(--px) calc(var(--safe-b) + 18px); transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; }
.sheet.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--s3); margin: 0 auto 14px; }
.sheet h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.sheet .sub { color: var(--dim); font-size: 13.5px; margin-top: 4px; }

.faces { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 16px calc(-1 * var(--px)) 4px; padding: 4px var(--px); }
.faces::-webkit-scrollbar { display: none; }
.face { flex: none; width: 76px; height: 96px; border-radius: 16px; position: relative; overflow: hidden; background: var(--s2); display: grid; place-items: center; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face.add { border: 1.5px dashed var(--s3); color: var(--dim); font-size: 11.5px; font-weight: 700; gap: 2px; align-content: center; justify-items: center; }
.face.add svg { width: 24px; height: 24px; }
.face.sel { box-shadow: 0 0 0 3px var(--accent); }
.face .n { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.face .spin { position: relative; z-index: 1; }
.face.busy::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.slot { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 16px; background: var(--s2); text-align: left; box-shadow: inset 0 0 0 1.5px transparent; }
.slot.on { box-shadow: inset 0 0 0 2px var(--accent); }
.slot .who, .slot .me { width: 46px; height: 60px; border-radius: 10px; overflow: hidden; background: var(--s3); flex: none; display: grid; place-items: center; }
.slot .who img, .slot .me img { width: 100%; height: 100%; object-fit: cover; }
.slot .me svg { width: 18px; height: 18px; color: var(--dim); }
.slot > svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.slot .k { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: #000; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 14px; }
.opt + .opt { margin-top: 0; }
.opt b { display: block; font-size: 15px; }
.opt span { color: var(--dim); font-size: 13px; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--s3); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--dim); padding: 4px 0 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.foot { color: var(--mute); font-size: 12px; text-align: center; margin-top: 10px; }

/* settings */
.list { margin-top: 14px; border-radius: 16px; background: var(--s2); overflow: hidden; }
.li { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 14px; text-align: left; font-weight: 700; text-decoration: none; color: inherit; }
.li + .li { border-top: 1px solid var(--line); }
.li > span { flex: 1; }
.li em { font-style: normal; color: var(--dim); font-weight: 600; font-size: 14px; }
.li svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.redeem { display: flex; gap: 8px; margin-top: 14px; }
.redeem input { flex: 1; min-width: 0; height: 48px; border-radius: 14px; border: 0; background: var(--s2); padding: 0 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; outline: none; }
.redeem input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.redeem input::placeholder { text-transform: none; letter-spacing: 0; color: var(--mute); font-weight: 600; }
.redeem button { height: 48px; padding: 0 18px; border-radius: 14px; background: var(--fg); color: #000; font-weight: 800; }
.mini-faces { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.mini-faces .face { width: 58px; height: 72px; border-radius: 12px; }
.mini-faces .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .7); display: grid; place-items: center; }
.mini-faces .x svg { width: 12px; height: 12px; }
.sec-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 20px 2px 0; }

/* gallery */
.ggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px var(--px) calc(var(--safe-b) + 24px); }
.gcard { position: relative; aspect-ratio: 9 / 15; border-radius: 16px; overflow: hidden; background: var(--s1); text-align: left; }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard.cooking img, .gcard.failed img { filter: brightness(.35); }
.gcard .state { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 12px; font-weight: 800; font-size: 14px; }
.gcard .state .pct { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gcard .state small { color: rgba(255, 255, 255, .7); font-weight: 600; font-size: 12px; }
.gcard .gbar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.gcard .gbar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .5s linear; }
.gcard .gname { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .play { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; }
.gcard .play svg { width: 12px; height: 12px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 70px 32px; color: var(--dim); }
.empty svg { width: 54px; height: 54px; color: var(--s3); margin-bottom: 6px; }
.empty b { color: var(--fg); font-size: 18px; }
.empty .btn { width: auto; padding: 0 26px; margin-top: 12px; height: 50px; }

/* generating */
.gen-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 28px calc(var(--safe-b) + 40px); }
.swap { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.swap .a, .swap .b { border-radius: 20px; overflow: hidden; background: var(--s1); position: relative; }
.swap .a { width: 96px; height: 120px; }
.swap .b { width: 140px; height: 220px; }
.swap img { width: 100%; height: 100%; object-fit: cover; }
.swap .b::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); background-size: 250% 100%; animation: sweep 1.8s linear infinite; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.swap > svg { width: 26px; height: 26px; color: var(--accent); }
.gen-body .pct { font-family: var(--display); font-size: 56px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gen-body h2 { font-size: 20px; font-weight: 800; margin-top: 10px; }
.gen-body p { color: var(--dim); font-size: 14.5px; margin-top: 8px; max-width: 30ch; }
.gen-bar { width: 100%; max-width: 280px; height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; margin: 22px 0 6px; }
.gen-bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .5s linear; }
.gen-body .btn { margin-top: 26px; max-width: 320px; }
.gen-body .fail-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; margin-bottom: 18px; color: var(--bad); }
.gen-body .fail-ic svg { width: 30px; height: 30px; }

/* result */
#resVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.res-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px var(--px) calc(var(--safe-b) + 16px); background: linear-gradient(transparent, rgba(0, 0, 0, .85) 45%); }
.res-foot h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; line-height: 1.05; }
.res-foot .when { color: rgba(255, 255, 255, .65); font-size: 13px; font-weight: 600; margin: 4px 0 14px; }
.res-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-btns .btn { height: 54px; }
.res-foot .again { width: 100%; margin-top: 12px; color: rgba(255, 255, 255, .75); font-weight: 700; font-size: 14px; padding: 6px; }
.tip { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 11px 12px; font-size: 13px; margin-bottom: 12px; }
.tip svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* paywall */
.pw-wall, .ob-wall { position: absolute; inset: 0 0 auto; height: 58%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 8px; overflow: hidden; }
.pw-wall .col, .ob-wall .col { display: flex; flex-direction: column; gap: 8px; animation: drift 38s linear infinite; }
.pw-wall .col:nth-child(2), .ob-wall .col:nth-child(2) { animation-direction: reverse; animation-duration: 44s; }
.pw-wall .col:nth-child(3), .ob-wall .col:nth-child(3) { animation-duration: 50s; }
.pw-wall img, .ob-wall img, .ob-wall video { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; border-radius: 14px; background: var(--s1); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.pw-wall::after, .ob-wall::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .3) 45%, #000 98%); }
@media (prefers-reduced-motion: reduce) { .pw-wall .col, .ob-wall .col { animation: none; } }
.pw-x { position: absolute; z-index: 3; top: calc(var(--safe-t) + 10px); left: var(--px); }
.pw-body { position: relative; z-index: 2; margin-top: auto; padding: 0 var(--px) calc(var(--safe-b) + 14px); }
.pw-body h1 { font-family: var(--display); font-size: 38px; letter-spacing: -.04em; line-height: 1; }
.pw-body h1 b { color: var(--accent); }
.perks { list-style: none; display: grid; gap: 7px; margin: 14px 0 16px; }
.perks li { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; }
.perks svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.plan { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--s1); box-shadow: inset 0 0 0 1.5px var(--s3); text-align: left; margin-bottom: 9px; }
.plan.sel { box-shadow: inset 0 0 0 2px var(--accent); background: #1a0e12; }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--s3); flex: none; display: grid; place-items: center; }
.plan.sel .radio { box-shadow: inset 0 0 0 7px var(--accent); }
.plan .info { flex: 1; }
.plan .info b { display: block; font-size: 15.5px; }
.plan .info span { color: var(--dim); font-size: 13px; font-weight: 600; }
.plan .price { text-align: right; font-weight: 800; font-size: 16px; }
.plan .price span { display: block; color: var(--dim); font-size: 12px; font-weight: 600; }
.plan .tag { position: absolute; top: -9px; right: 14px; background: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.pw-legal { color: var(--mute); font-size: 11.5px; line-height: 1.45; text-align: center; margin-top: 10px; }
.pw-links { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.pw-links a, .pw-links button { color: inherit; text-decoration: none; }
.pw-body .redeem { margin-top: 10px; }

/* onboarding */
.ob-wall { height: 64%; }
.ob-body { position: relative; z-index: 2; margin-top: auto; padding: 0 22px calc(var(--safe-b) + 22px); }
.ob-body h1 { font-family: var(--display); font-size: 38px; line-height: 1; letter-spacing: -.04em; }
.ob-body p { color: var(--dim); font-size: 16px; margin: 12px 0 24px; }
.gift { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--s2); font-weight: 800; font-size: 13.5px; margin-bottom: 14px; }
.gift .coin { width: 22px; height: 22px; }

/* toast */
.toast { position: absolute; z-index: 90; left: 50%; top: calc(var(--safe-t) + 62px); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); width: max-content; background: #fff; color: #000; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; transition: opacity .2s, transform .2s; display: flex; gap: 10px; align-items: center; text-align: left; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast em { font-style: normal; color: var(--accent); font-weight: 800; white-space: nowrap; }

/* model choice in the photo sheet: Spoof / Spoof Max */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 9px; border-top: 1px solid var(--line); margin-top: 14px; padding: 14px 0 12px; }
.tier { position: relative; text-align: left; padding: 12px 12px 11px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1.5px var(--s3); }
.tier.on { box-shadow: inset 0 0 0 2px var(--accent); background: #1a0e12; }
.tier b { display: block; font-size: 15px; }
.tier span { display: block; color: var(--dim); font-size: 12px; font-weight: 600; margin-top: 2px; }
.tier em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 800; font-size: 13px; margin-top: 8px; }
.tier em svg { width: 13px; height: 13px; color: var(--accent); }
.tier-note { margin-top: -6px; margin-bottom: 10px; }
.pw-need { color: var(--fg); font-weight: 700; font-size: 14px; margin: -2px 0 12px; text-shadow: 0 1px 10px #000, 0 0 3px #000; }
.tier .wm { display: block; height: 34px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin: -2px 0 4px; }
.tier:not(.on) .wm { opacity: .55; filter: saturate(.6); }

/* front page + account */
.g-wrap { display: flex; justify-content: center; min-height: 44px; margin-bottom: 10px; }
.ob-inapp { font-size: 13px; color: var(--dim); background: var(--s2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.ob-legal { text-align: center; color: var(--mute); font-size: 12px; margin-top: 12px; }
.ob-legal a { color: var(--dim); }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.auth-form input { height: 52px; border-radius: 14px; border: 0; background: var(--s2); padding: 0 16px; font-weight: 600; font-size: 16px; outline: none; }
.auth-form input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.auth-form input::placeholder { color: var(--mute); }
.auth-form .btn { margin-top: 4px; }
.auth-switch { text-align: center; color: var(--dim); font-size: 14px; margin-top: 14px; }
.auth-switch button { color: var(--accent); font-weight: 800; }
.pw-acct { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; border-radius: 14px; background: rgba(28, 28, 30, .92); margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.pw-acct svg { width: 18px; height: 18px; flex: none; }
.pw-acct svg:first-child { color: var(--accent); }
.pw-acct span { flex: 1; }

/* library: download straight from the grid */
.gwrap { position: relative; }
.gwrap .gcard { width: 100%; }
.gdl { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .62); display: grid; place-items: center; }
.gdl svg { width: 19px; height: 19px; }
.gwrap .gname { padding-right: 52px; }

/* photo guide next to the picker title: 5 slides x 2 s, crossfading */
.pick-head { display: flex; align-items: flex-start; gap: 12px; }
.pick-head > div:first-child { flex: 1; min-width: 0; }
.guide { position: relative; flex: none; width: 92px; height: 116px; border-radius: 14px; overflow: hidden; background: var(--s2); }
.g-slide { position: absolute; inset: 0; opacity: 0; animation: gcycle 10s infinite; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-mark { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.g-mark svg { width: 13px; height: 13px; color: #fff; }
.g-mark.ok { background: var(--ok); }
.g-mark.no { background: var(--bad); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 5px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 10.5px; font-weight: 800; text-align: center; line-height: 1.15; }
@keyframes gcycle { 0% { opacity: 0; } 3%, 20% { opacity: 1; } 23%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .g-slide { animation: none; } .g-slide:first-child { opacity: 1; } }
