:root {
  --bg: #07060a; --fg: #fbf5ec; --muted: #b8aba0; --dim: #7d7068; --card: #17121a; --line: #ffffff1f;
  --gold: linear-gradient(100deg, #f8e7a8 0%, #d8a65a 38%, #fff1c4 55%, #c48a3f 100%); --gold1: #e9c27a; --red: #d92743;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.45 Inter, system-ui, -apple-system, sans-serif; }
body { min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }
.gold { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cz { font-family: Cinzel, "Times New Roman", serif; letter-spacing: .02em; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 6; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; background: linear-gradient(var(--bg) 72%, #07060a00); }
.brandrow { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.brand { font-family: Cinzel, serif; font-weight: 800; font-size: 13px; letter-spacing: .28em; }
.back { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ffffff12; }
.back svg { width: 18px; height: 18px; }
.prog { display: flex; gap: 4px; margin-top: 10px; }
.prog i { flex: 1; height: 3px; border-radius: 3px; background: #2c2329; overflow: hidden; position: relative; }
.prog i.on::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: fill .5s ease-out both; }
@keyframes fill { from { transform: translateX(-100%); } }
.reel { display: flex; gap: 5px; min-height: 30px; }
.reel img { width: 23px; height: 30px; object-fit: cover; border-radius: 5px; border: 1px solid #ffffff30; animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* steps */
.step { padding: 2px 16px 36px; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.hook { margin: 4px 0 2px; font-size: 13px; color: var(--muted); }
h1 { font-family: Cinzel, serif; font-weight: 800; font-size: clamp(27px, 7.6vw, 36px); line-height: 1.08; margin: 4px 0 16px; letter-spacing: .01em; }
.lede { color: var(--muted); margin: -8px 0 16px; font-size: 15px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--card); transform: translateZ(0); text-align: left;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, opacity .25s; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.card:nth-child(2) { animation-delay: .04s; } .card:nth-child(3) { animation-delay: .08s; } .card:nth-child(4) { animation-delay: .12s; } .card:nth-child(5) { animation-delay: .16s; } .card:nth-child(6) { animation-delay: .2s; }
.card video, .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 45%, #000000e0); }
.card .t { position: absolute; left: 11px; right: 11px; bottom: 10px; z-index: 1; }
.card .t b { display: block; font-weight: 600; font-size: 15px; line-height: 1.15; }
.card.story .t b { font-family: Cinzel, serif; font-weight: 800; font-size: 15.5px; line-height: 1.12; }
.card .t small { display: block; color: #e6d8c9; font-size: 11.5px; line-height: 1.25; margin-top: 4px; opacity: .9; }
.card .badge { position: absolute; top: 9px; left: 9px; z-index: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px; background: var(--gold); color: #2b1a05; }
.card:active { transform: scale(.97); }
.card.picked { transform: scale(1.03); box-shadow: 0 0 0 2px var(--gold1), 0 14px 40px #e9c27a40; z-index: 2; }
.card.dim { opacity: .32; transform: scale(.96); }
.how { display: flex; justify-content: space-between; gap: 8px; margin: 18px 2px 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.how div { flex: 1; } .how b { display: block; color: var(--fg); font-size: 13px; }

/* cast + paywall */
.cast { position: relative; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); animation: rise .5s both; }
.bgv { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: 520px; margin: 0 auto; }
.shade { position: fixed; inset: 0; z-index: -1; background: linear-gradient(#07060a55, #07060ad9 52%, #07060a 78%); max-width: 520px; margin: 0 auto; }
.poster { margin-top: 26vh; text-align: center; }
.poster .eyebrow { color: var(--gold1); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 8px; }
.poster h1 { font-size: clamp(28px, 8.4vw, 40px); margin: 0 0 10px; }
.starring { font-family: Cinzel, serif; font-size: 14px; letter-spacing: .32em; color: var(--muted); margin: 0 0 22px; }
.starring b { color: var(--fg); letter-spacing: .2em; }
.face { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #ffffff0d; border: 1px solid var(--line); margin-bottom: 12px; text-align: left; }
.drop { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 2px dashed #e9c27a99; display: grid; place-items: center; overflow: hidden; position: relative; background: #ffffff0a; }
.drop.has { border: 2px solid var(--gold1); box-shadow: 0 0 0 4px #e9c27a22; }
.drop img { width: 100%; height: 100%; object-fit: cover; }
.drop svg { width: 30px; height: 30px; color: var(--gold1); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.face b { display: block; font-size: 16px; }
.face small { color: var(--muted); font-size: 13px; }
.name { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #00000080; color: var(--fg); font: inherit; margin-bottom: 14px; }
.name::placeholder { color: #ffffff6b; }
.pay { border-radius: 20px; padding: 16px; background: #120e14ee; border: 1px solid #e9c27a40; box-shadow: 0 20px 60px #000a; animation: rise .45s both; }
.offer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.offer b { font-size: 16px; display: block; } .offer small { color: var(--muted); font-size: 12.5px; }
.price { font-size: 28px; font-weight: 700; } .price small { font-size: 12px; color: var(--muted); font-weight: 500; display: block; text-align: right; }
.perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: #e9ddd0; }
.perks li { display: flex; gap: 8px; align-items: flex-start; } .perks li::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/13px no-repeat, linear-gradient(#000,#000); -webkit-mask-composite: source-out; }
#ece { min-height: 52px; margin-bottom: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; margin: 10px 0; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cardbtn { width: 100%; padding: 15px; border-radius: 14px; border: 1px solid var(--line); background: #ffffff0d; font-weight: 600; }
#pe { margin-top: 12px; }
.go { width: 100%; padding: 17px; border-radius: 16px; background: var(--gold); color: #2a1904; font-weight: 700; font-size: 17px; box-shadow: 0 10px 30px #e9c27a30; transition: transform .15s, opacity .2s; margin-top: 12px; }
.go:active { transform: scale(.98); } .go[disabled] { opacity: .45; box-shadow: none; }
.go.red { background: var(--red); color: #fff; box-shadow: 0 10px 30px #d9274350; }
.fine { color: var(--dim); font-size: 11.5px; text-align: center; margin: 12px 0 0; line-height: 1.5; }
.fine a { color: var(--muted); }
.err { color: #ff8f8f; font-size: 14px; text-align: center; min-height: 1em; margin: 10px 0 0; }
.guar { text-align: center; font-size: 13px; color: #e9ddd0; margin: 12px 0 0; }

/* production */
.shoot { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 22px; text-align: center; }
.shoot .bgv { filter: blur(16px) brightness(.32); transform: scale(1.1); }
.clap { font-family: Cinzel, serif; color: var(--gold1); letter-spacing: .26em; font-size: 12px; margin: 0 0 10px; text-transform: uppercase; }
.stages { list-style: none; padding: 0; margin: 24px auto 0; text-align: left; display: grid; gap: 12px; width: min(300px, 100%); }
.stages li { display: flex; gap: 12px; align-items: center; color: #ffffff55; transition: color .3s; }
.stages li.on { color: var(--fg); } .stages li.done { color: var(--muted); }
.stages li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.stages li.on i { border-color: var(--gold1); border-top-color: transparent; animation: spin .8s linear infinite; }
.stages li.done i { background: var(--gold1); border-color: var(--gold1); }
@keyframes spin { to { transform: rotate(360deg); } }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 24px auto 0; width: min(340px, 100%); }
.thumbs div { aspect-ratio: 9 / 16; border-radius: 8px; background: #ffffff10; overflow: hidden; position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; animation: pop .4s both; }
.thumbs div.vid::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold1); }
.bar2 { height: 4px; border-radius: 4px; background: #ffffff14; overflow: hidden; margin: 18px auto 0; width: min(300px, 100%); }
.bar2 b { display: block; height: 100%; background: var(--gold); transition: width .6s; }

/* player */
.player { position: fixed; inset: 0; background: #000; display: flex; justify-content: center; z-index: 10; }
.player .stage { position: relative; height: 100dvh; width: min(100vw, calc(100dvh * 9 / 16)); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.player .lines { position: absolute; left: 6%; right: 6%; bottom: 12%; text-align: center; pointer-events: none; }
.player .ln { display: inline-block; background: #000000b8; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 18px; line-height: 1.3; animation: rise .25s both; }
.player .ln em { display: block; font-style: normal; color: var(--gold1); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.player .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 26px; background: #000000b0; animation: rise .5s both; z-index: 4; }
.player .ov h2 { font-family: Cinzel, serif; font-weight: 800; font-size: 30px; margin: 6px 0; line-height: 1.08; }
.player .ov .st { font-family: Cinzel, serif; letter-spacing: .3em; font-size: 13px; color: var(--muted); }
.player .ov .st b { color: var(--fg); }
.player .ov .cliff { font-family: Cinzel, serif; font-size: 21px; line-height: 1.25; margin: 4px 0 18px; }
.player .ov .nexttxt { color: var(--muted); font-size: 14px; margin: 0 0 16px; max-width: 330px; }
.player .ov .go { max-width: 340px; }
.player .ov .ghost { margin-top: 12px; color: var(--muted); padding: 10px; font-size: 15px; }
.player .ov .row { display: flex; gap: 10px; width: 100%; max-width: 340px; margin-top: 10px; }
.player .ov .row button { flex: 1; padding: 13px; border-radius: 14px; background: #ffffff14; font-weight: 600; }
.player .playbtn { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 10px 40px #e9c27a55; margin: 18px 0 10px; }
.player .playbtn svg { width: 34px; height: 34px; color: #2a1904; margin-left: 5px; }
.player .tap { position: absolute; inset: 0; z-index: 2; }
.player .pb { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.player .pb i { flex: 1; height: 3px; background: #ffffff40; border-radius: 3px; overflow: hidden; }
.player .pb i b { display: block; height: 100%; width: 0; background: #fff; }
.player .x { position: absolute; top: calc(22px + env(safe-area-inset-top)); right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: #0008; display: grid; place-items: center; }
.player #pay2 { width: 100%; max-width: 340px; }
.legal { padding: 24px 20px 60px; max-width: 680px; margin: 0 auto; color: #e9ddd0; }
.legal h1 { font-size: 26px; } .legal h2 { font-size: 17px; margin-top: 26px; font-family: Inter, sans-serif; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; } }
