/* My Magic Movie — create funnel */
body.funnel { min-height: 100dvh; background: var(--cream); transition: background .4s ease; }
body.funnel.dark { background: radial-gradient(900px 600px at 50% -10%, #3943c4 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #7a2f9e 0%, transparent 60%), linear-gradient(180deg, #151b63, #0c1042); background-attachment: fixed; }

.f-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 242, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dark .f-head { background: rgba(14, 18, 66, 0.75); color: #fff; }
.f-head-row { width: min(560px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.f-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-weight: 800; font-size: 15px; padding: 8px 6px; border-radius: 10px; }
.f-back svg { width: 18px; height: 18px; }
.f-back[hidden] { display: inline-flex; visibility: hidden; }
.f-count { justify-self: end; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.dark .f-count { color: rgba(255, 255, 255, .8); }
.f-progress { width: min(560px, 100% - 32px); margin: 0 auto; height: 6px; border-radius: 99px; background: rgba(53, 84, 245, 0.12); overflow: hidden; }
.dark .f-progress { background: rgba(255, 255, 255, 0.14); }
.f-progress div { height: 100%; width: 14%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #7a5cff); transition: width .5s cubic-bezier(.2, .8, .2, 1); }

.f-main { width: min(560px, 100% - 32px); margin: 0 auto; padding: 34px 0 190px; }
.f-step { animation: fIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes fIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.f-step h1 { font-size: clamp(30px, 6.4vw, 40px); text-align: center; font-weight: 700; letter-spacing: -0.015em; }
.f-sub { text-align: center; color: var(--ink-2); margin: 12px auto 30px; max-width: 440px; font-size: 16.5px; }
.f-sub.light { color: rgba(255, 255, 255, .8); margin-top: 22px; }
.f-icon { font-size: 46px; text-align: center; margin-bottom: 10px; }
.f-label { display: block; font: 700 16px var(--font-display); margin: 0 4px 10px; }
.f-label small { font: 700 13px var(--font-body); color: var(--ink-3); margin-left: 6px; }
.f-input { width: 100%; border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 18px 20px; font: 700 20px var(--font-body); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.f-input:focus { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(53, 84, 245, 0.12); }
.f-textarea { font-size: 16px; min-height: 84px; resize: vertical; font-weight: 600; }

.f-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-seg button, .f-ages button { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 18px; font: 700 18px var(--font-display); display: flex; align-items: center; justify-content: center; gap: 10px; transition: border-color .15s, background .15s, transform .15s; }
.f-seg button span { font-size: 24px; }
.f-seg button[aria-checked="true"], .f-ages button[aria-checked="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 4px 0 #c9d2ff; }
.f-seg button:active, .f-ages button:active { transform: scale(.98); }
.f-ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.f-ages button { padding: 22px 10px; font-size: 22px; flex-direction: column; gap: 2px; }
.f-ages button small { font: 700 12.5px var(--font-body); color: var(--ink-3); }

.f-adv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-adv button { position: relative; border: 0; padding: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; background: #222; text-align: left; box-shadow: var(--shadow-1); outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .15s, transform .15s; }
.f-adv button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.f-adv button:hover img { transform: scale(1.04); }
.f-adv button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 12, 40, .85)); }
.f-adv button .t { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; color: #fff; }
.f-adv button .t b { display: block; font: 700 19px var(--font-display); }
.f-adv button .t small { display: block; font-size: 13px; font-weight: 700; opacity: .85; line-height: 1.3; margin-top: 2px; }
.f-adv button .pop { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--sun); color: var(--sun-ink); font: 800 11px var(--font-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; }
.f-adv button .tick { position: absolute; top: 10px; right: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: none; place-items: center; }
.f-adv button .tick svg { width: 17px; height: 17px; }
.f-adv button[aria-checked="true"] { outline-color: var(--blue); }
.f-adv button[aria-checked="true"] .tick { display: grid; }

.f-drop { display: block; border: 2.5px dashed #c5cdf6; background: #fff; border-radius: 22px; padding: 32px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.f-drop.over { border-color: var(--blue); background: var(--blue-soft); }
.f-drop.has { border-style: solid; border-color: var(--mint); padding: 16px; text-align: left; }
.f-drop-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); display: inline-grid; place-items: center; margin-bottom: 12px; }
.f-drop-ico svg { width: 30px; height: 30px; }
.f-drop-empty b { display: block; font: 700 19px var(--font-display); }
.f-drop-empty small { color: var(--ink-3); font-weight: 700; }
.f-drop-full { display: flex; gap: 16px; align-items: center; }
.f-drop-full img { width: 84px; height: 104px; object-fit: cover; border-radius: 14px; }
.f-drop-full .ok { display: flex; align-items: center; gap: 6px; color: var(--mint); font: 700 17px var(--font-display); }
.f-drop-full .ok svg { width: 20px; height: 20px; }
.f-file { color: var(--ink-3); font-size: 13px; font-weight: 700; margin: 2px 0 6px; word-break: break-all; }
.f-link, .f-small-link { color: var(--blue); font-weight: 800; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.f-small-link { display: inline-block; margin: 10px 4px 0; text-decoration: none; }
.f-tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 20px; }
.f-tips div { background: #fff; border-radius: 16px; padding: 12px 6px; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--ink-2); line-height: 1.3; }
.f-tips span { width: 34px; height: 34px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 6px; }
.f-tips svg { width: 18px; height: 18px; }
.f-consent { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px 16px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.f-consent input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin: 1px 0 0; }
.f-note { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-soft); color: var(--ink-2); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; font-weight: 700; margin-top: 16px; }
.f-note svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 1px; }
.f-error { margin-top: 16px; background: #fff0f0; color: #c62828; border-radius: 14px; padding: 12px 16px; font-weight: 800; font-size: 14.5px; text-align: center; }

/* creating */
.f-creating { display: grid; justify-items: center; gap: 18px; }
.f-reel { position: relative; width: min(300px, 78vw); aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-2); background: #ddd; }
.f-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease, transform 4s ease; transform: scale(1.06); }
.f-reel img.on { opacity: 1; transform: scale(1); }
.f-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.f-stage { width: min(340px, 90vw); background: #fff; border-radius: 18px; box-shadow: var(--shadow-1); padding: 16px 18px; }
.f-stage-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.f-stage-top span { color: var(--blue); font-weight: 800; }
.f-stage-bar { height: 6px; background: var(--blue-soft); border-radius: 99px; margin: 10px 0; overflow: hidden; }
.f-stage-bar div { height: 100%; width: 5%; background: linear-gradient(90deg, var(--blue), #ff5da2); border-radius: 99px; transition: width .8s ease; }
.f-stage ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.f-stage li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.f-stage li svg { width: 14px; height: 14px; color: var(--mint); }

/* preview (dark) */
.f-dark { color: #fff; text-align: center; }
.f-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 201, 60, .45); color: var(--sun); border-radius: 99px; padding: 7px 14px; font: 800 12.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.f-pill svg { width: 15px; height: 15px; }
.f-title { color: #fff; }
.f-frame { width: min(330px, 82vw); margin: 26px auto 0; padding: 5px; border-radius: 28px; background: conic-gradient(from var(--a, 0deg), #ff5da2, #ffc93c, #3dd9b4, #4f7bff, #b05cff, #ff5da2); animation: spinA 6s linear infinite; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 60px rgba(120, 140, 255, .35); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinA { to { --a: 360deg; } }
.f-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; background: #222; }
.f-quote { background: #fff6e0; color: var(--ink); border-radius: 20px; padding: 16px 18px; margin: 22px 0 14px; }
.f-quote small { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 800; font-size: 13px; }
.f-quote small svg { width: 15px; height: 15px; }
.f-quote b { display: block; font: 700 21px var(--font-display); margin-top: 4px; }
.f-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 20px 20px 22px; text-align: left; margin-top: 14px; }
.f-card h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 10px; }
.f-card h3 svg { width: 20px; height: 20px; color: var(--blue); }
.f-card p { color: var(--ink-2); font-size: 15.5px; }
.f-card .muted { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.f-cast { display: grid; gap: 8px; }
.f-cast div { background: var(--blue-soft); border-radius: 14px; padding: 10px 14px; }
.f-cast b { display: block; font-size: 15.5px; }
.f-cast small { color: var(--ink-2); font-weight: 700; }
.f-beats { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.f-beats li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.f-beats li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--blue); flex: none; }
.f-locked { display: flex; gap: 12px; align-items: center; border: 2px dashed #c5cdf6; background: var(--blue-soft); border-radius: 16px; padding: 12px 14px; }
.f-locked svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.f-locked b { display: block; font-size: 15px; }
.f-locked small { color: var(--ink-3); font-weight: 700; }
.f-imagine { font: 700 17px var(--font-display); margin: 22px 0 12px; }
.f-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.f-chips span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 800; }
.f-chips svg { width: 15px; height: 15px; color: var(--sun); }
.f-retry { background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; margin-top: 20px; }

/* plans */
.f-avatar { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; padding: 4px; background: conic-gradient(#ff5da2, #ffc93c, #3dd9b4, #4f7bff, #b05cff, #ff5da2); }
.f-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; background: #eee; }
.f-free { display: block; width: fit-content; margin: -8px auto 22px; background: #fff3d1; border-radius: 14px; padding: 10px 16px; font-weight: 700; font-size: 14.5px; }
.f-plans { display: grid; gap: 14px; }
.f-plan { position: relative; border: 2.5px solid var(--line); background: #fff; border-radius: 22px; padding: 18px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.f-plan.on { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(53, 84, 245, .1); }
.f-plan .badge { position: absolute; top: -12px; left: 16px; background: var(--sun); color: var(--sun-ink); font: 800 11.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.f-plan .badge.blue { background: var(--blue); color: #fff; }
.f-plan .row { display: flex; gap: 14px; align-items: center; }
.f-plan .radio { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid #c9cde0; flex: none; display: grid; place-items: center; }
.f-plan.on .radio { border-color: var(--blue); }
.f-plan.on .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.f-plan .nm b { display: block; font: 700 19px var(--font-display); }
.f-plan .nm small { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.f-plan .deal { background: var(--mint); color: #fff; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.f-plan .pr { margin-left: auto; text-align: right; }
.f-plan .pr s { display: block; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.f-plan .pr b { display: block; font: 700 20px var(--font-display); white-space: nowrap; }
.f-plan .pr small { color: var(--mint); font-weight: 800; font-size: 12.5px; }
.f-gifts { margin-top: 14px; background: #fffaf0; border: 1.5px dashed #f2d48a; border-radius: 16px; padding: 12px 14px; }
.f-gifts p { font: 800 11.5px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #b07c00; margin-bottom: 6px; }
.f-gifts div { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 14.5px; padding: 3px 0; }
.f-gifts span { font-size: 20px; }
.f-addons { display: grid; gap: 12px; margin-top: 16px; }
.f-addon { display: block; border: 2.5px dashed var(--line); background: #fff; border-radius: 18px; padding: 14px 16px; cursor: pointer; }
.f-addon.on { border-style: solid; border-color: var(--blue); background: #f6f7ff; }
.f-addon .row { display: flex; gap: 12px; align-items: center; }
.f-addon input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin: 0; }
.f-addon b { display: block; font: 700 16.5px var(--font-display); }
.f-addon small { color: var(--ink-3); font-weight: 700; font-size: 13px; }
.f-addon .pr { margin-left: auto; font-weight: 800; white-space: nowrap; }
.f-addon textarea { margin-top: 12px; width: 100%; min-height: 70px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 600 15px var(--font-body); resize: vertical; }
.f-summary { background: #fff; border-radius: 22px; padding: 18px 20px; margin-top: 18px; box-shadow: var(--shadow-1); }
.f-summary .ln { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; color: var(--ink-2); font-weight: 700; }
.f-summary .ln b { color: var(--ink); text-align: right; }
.f-summary .ln .free { color: var(--mint); }
.f-summary .total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 14px; font: 700 21px var(--font-display); color: var(--ink); }
.f-summary .guar { text-align: center; font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin-top: 8px; }
.f-delivered { display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--mint-soft); color: #0e7a4a; border-radius: 14px; padding: 12px; font-weight: 800; font-size: 14.5px; margin-top: 16px; }
.f-delivered svg { width: 18px; height: 18px; }
.f-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0; }
.f-trust div { text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-2); line-height: 1.3; }
.f-trust svg { width: 22px; height: 22px; color: var(--blue); display: block; margin: 0 auto 6px; }
.f-trust div:nth-child(3) svg { color: var(--pink); }
.f-trust div:nth-child(4) svg { color: var(--sun-2); }
.f-reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.f-reviews::-webkit-scrollbar { display: none; }
.f-reviews .review { scroll-snap-align: start; margin: 0; }
.f-peace { background: linear-gradient(180deg, #eefaf3, #f6fdf9); border: 1.5px solid #cfeedd; border-radius: 22px; padding: 20px; margin: 18px 0 40px; }
.f-peace h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 14px; }
.f-peace h3 svg { width: 24px; height: 24px; color: var(--mint); }
.f-peace p { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); font-weight: 600; margin-top: 10px; }
.f-peace p svg { width: 20px; height: 20px; flex: none; color: var(--mint); margin-top: 1px; }
.f-peace .g { color: var(--mint); } .f-peace .o { color: #e08a00; } .f-peace .r { color: var(--red); }
.f-faq-title { text-align: center; font-size: 28px; margin-bottom: 20px; }

/* sticky CTA */
.f-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 250, 242, 0), var(--cream) 30%); }
.dark .f-cta { background: linear-gradient(180deg, rgba(12, 16, 66, 0), rgba(12, 16, 66, .96) 30%); }
.f-cta > * { width: min(528px, 100%); margin-left: auto; margin-right: auto; }
.f-cta .btn { min-height: 60px; font-size: 18.5px; }
.f-cta .btn.sun { background: var(--sun); color: var(--sun-ink); box-shadow: var(--shadow-cta); }
.f-cta-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.dark .f-cta-note { color: rgba(255, 255, 255, .7); }
.f-cta-note svg { width: 15px; height: 15px; color: var(--mint); }
.f-paylogos { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.f-paylogos span { height: 22px; padding: 0 7px; border-radius: 5px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font: 800 10.5px var(--font-body); color: var(--ink); letter-spacing: .02em; }
.btn .spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 420px) {
  .f-tips { grid-template-columns: repeat(2, 1fr); }
  .f-trust { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
}
.f-cta .btn { display: flex; }
.f-plan .nm { flex: 1; min-width: 0; }
.f-plan .nm small { flex-wrap: wrap; row-gap: 4px; }
.f-plan .deal, .f-plan .pr small { white-space: nowrap; }
.f-adv button .art { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; padding-bottom: 30px; }

/* ===== My Magic Movie theme: the funnel floats on the night sky ===== */
body.funnel, body.funnel.dark { background: linear-gradient(180deg, #1d1452 0%, #4a2a8f 34%, #b04fb0 62%, #ff9c8a 86%, #ffd2a8 100%); background-attachment: fixed; }
.f-head, .dark .f-head { background: rgba(29, 20, 82, .7); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.f-count, .dark .f-count { color: rgba(255, 255, 255, .85); }
.f-back { color: #fff; }
.f-progress, .dark .f-progress { background: rgba(255, 255, 255, .18); }
.f-progress div { background: linear-gradient(90deg, var(--sun), var(--orange), var(--pink), var(--sky), var(--mint-2)); }
.f-main { background: var(--cream); border: 4px solid #fff; border-radius: 34px; box-shadow: var(--card-shadow); padding: 34px 22px 38px; margin-top: 22px; margin-bottom: 190px; }
.dark .f-main { background: none; border: 0; box-shadow: none; padding-top: 18px; }
.f-step h1 { color: var(--ink); }
.f-dark h1, .f-title { color: #fff; text-shadow: 0 5px 0 rgba(29, 20, 82, .35); }
.f-seg button, .f-ages button, .f-plan, .f-addon, .f-drop, .f-tips div, .f-consent { border-width: 3px; border-color: var(--line); }
.f-seg button[aria-checked="true"], .f-ages button[aria-checked="true"] { border-color: var(--pink); background: #fff0f7; box-shadow: 0 5px 0 #ffc2dd; }
.f-plan.on { border-color: var(--pink); box-shadow: 0 6px 0 #ffc2dd; }
.f-plan.on .radio { border-color: var(--pink); }
.f-plan.on .radio::after { background: var(--pink); }
.f-plan .badge { box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.f-plan .badge.blue { background: var(--grape); }
.f-addon.on { border-color: var(--grape); background: #f6f2ff; }
.f-adv button { border: 4px solid #fff; box-shadow: 0 8px 0 rgba(43, 27, 90, .18); }
.f-adv button[aria-checked="true"] { outline-color: var(--pink); }
.f-adv button .tick { background: var(--pink); }
.f-drop { border-style: dashed; border-color: #d9ccff; }
.f-input { border-width: 3px; border-color: var(--line); }
.f-input:focus { border-color: var(--grape); box-shadow: 0 0 0 5px rgba(123, 92, 255, .14); }
.f-card { border-radius: 24px; border: 3px solid #fff; box-shadow: 0 8px 0 rgba(43, 27, 90, .25); }
.f-quote { border: 3px solid #fff; box-shadow: 0 8px 0 rgba(43, 27, 90, .25); }
.f-frame { border-radius: 32px; }
.f-cta, .dark .f-cta { background: linear-gradient(180deg, rgba(29, 20, 82, 0), rgba(29, 20, 82, .92) 34%); }
.f-cta-note, .dark .f-cta-note { color: rgba(255, 255, 255, .82); }
.f-summary, .f-stage { border: 3px solid var(--line); box-shadow: 0 6px 0 #e6dcff; }
@media (max-width: 600px) {
  .f-main { width: calc(100% - 20px); padding: 28px 16px 32px; border-radius: 28px; }
}

/* action bar: a sticky footer INSIDE the card (not a bar floating over it) */
.f-main { margin-bottom: 48px; padding-bottom: 0; }
.f-cta, .dark .f-cta {
  position: sticky; left: auto; right: auto; bottom: 0; z-index: 5;
  margin: 26px -22px 0; padding: 22px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--cream) 26%);
  border-radius: 0 0 30px 30px;
}
.dark .f-cta { background: linear-gradient(180deg, rgba(29, 20, 82, 0), rgba(29, 20, 82, .94) 30%); margin: 26px -6px 0; border-radius: 26px 26px 0 0; }
.f-cta-note { color: var(--ink-3); text-shadow: none; }
.dark .f-cta-note { color: rgba(255, 255, 255, .82); }
@media (max-width: 600px) {
  .f-main { margin-bottom: 24px; }
  .f-cta { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}
.f-main:has(> .f-cta[hidden]) { padding-bottom: 34px; }

/* photo: take or upload */
.f-drop { cursor: default; padding: 18px; }
.f-drop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-pick { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 3px solid var(--line); background: #fff; border-radius: 20px; padding: 20px 10px 16px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.f-pick:hover { transform: translateY(-2px); border-color: #d9ccff; }
.f-pick .f-drop-ico { margin-bottom: 8px; width: 58px; height: 58px; }
.f-pick b { font: 700 17px var(--font-display); }
.f-pick small { color: var(--ink-3); font-weight: 700; font-size: 13px; }
.f-pick.cam { border-color: #ffc2dd; background: #fff6fa; box-shadow: 0 5px 0 #ffd6e8; }
.f-pick.cam .f-drop-ico { background: var(--pink); color: #fff; box-shadow: 0 4px 0 #c42571; }
.f-drag { text-align: center; color: var(--ink-3); font-weight: 700; font-size: 13px; margin-top: 12px; }
.f-link { background: none; border: 0; padding: 0; cursor: pointer; }

/* camera dialog */
.f-camera { position: fixed; inset: 0; z-index: 100; background: rgba(12, 8, 40, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; }
.f-cam-box { position: relative; width: min(520px, 100%); aspect-ratio: 3 / 4; max-height: 72dvh; border-radius: 28px; overflow: hidden; background: #000; border: 4px solid #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.f-cam-box video, .f-cam-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-cam-box video.mirror { transform: scaleX(-1); }
.f-cam-guide { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.f-cam-guide span { width: 58%; aspect-ratio: 3 / 4; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .85); box-shadow: 0 0 0 9999px rgba(12, 8, 40, .35); }
.f-cam-hint { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.f-cam-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; }
.f-cam-close svg { width: 20px; height: 20px; }
.f-cam-bar { display: flex; align-items: center; justify-content: center; gap: 28px; width: min(520px, 100%); }
.f-cam-bar .btn { flex: 1; }
.f-cam-side { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.f-cam-side svg { width: 24px; height: 24px; }
.f-cam-side.ghost { visibility: hidden; }
.f-cam-shutter { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: transparent; display: grid; place-items: center; padding: 0; }
.f-cam-shutter span { width: 60px; height: 60px; border-radius: 50%; background: var(--pink); transition: transform .1s; }
.f-cam-shutter:active span { transform: scale(.88); }
.f-camera .f-error { width: min(520px, 100%); margin: 0; }
.f-count { white-space: nowrap; }
@media (max-width: 420px) {
  .f-head-row .logo.small { font-size: 18px; gap: 6px; }
  .f-head-row .logo.small .logo-star { width: 22px; height: 22px; }
  .xs-hide { display: none; }
}
