:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f8f7ff; color: #191625; }
* { box-sizing: border-box; }
.birthday-video-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 15px; margin-top: 20px; padding: 20px; background: white; border: 1px solid #ded4ef; border-radius: 22px; }
.birthday-video-form h3, .birthday-video-form p { margin: 0; }
.birthday-video-form p, .birthday-video-form small { font-size: 13px; line-height: 1.45; color: #6c617c; }
.birthday-video-form label { display: grid; min-width: 0; gap: 8px; font-size: 14px; font-weight: 600; }
.birthday-file-slot { min-width: 0; }
.birthday-file-picker { position: relative; cursor: pointer; }
.birthday-video-form .birthday-file-input { position: absolute; width: 1px !important; height: 1px; padding: 0 !important; opacity: 0; overflow: hidden; }
.birthday-file-picker:focus-within .birthday-file-button { outline: 2px solid #7054bb; outline-offset: 3px; }
.birthday-file-button { display: block; padding: 12px; text-align: center; background: #f5f0ff; color: #7054bb; border: 1px dashed #b9a4e4; border-radius: 12px; }
.birthday-file-picker small { overflow-wrap: anywhere; font-weight: normal; }
.birthday-file-preview { width: 100%; height: 180px; object-fit: contain; background: #f8f7ff; border-radius: 12px; }
.birthday-file-remove { margin-top: 6px; padding: 6px 0; color: #7054bb; border: 0; background: transparent; cursor: pointer; }
.birthday-video-form input:not([type="checkbox"]), .birthday-video-form select, .birthday-video-form textarea { width: 100%; max-width: 100%; padding: 12px; border: 1px solid #ded4ef; border-radius: 12px; font: inherit; font-size: 16px; }
.birthday-video-form input[type="file"] { font-size: 12px; }
.birthday-video-form textarea { min-height: 80px; resize: vertical; }
.birthday-video-form .birthday-consent { display: flex; align-items: start; font-size: 12px; line-height: 1.4; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 92% 0%, #eadfff 0, transparent 28rem), #f8f7ff; }
html:has(dialog[open]), body:has(dialog[open]) { overflow: hidden; overscroll-behavior: none; }
dialog[open] { overscroll-behavior: contain; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
.app { width: min(100%, 760px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 16px calc(94px + env(safe-area-inset-bottom)); }
.app-header, .section-heading, .card-copy, .work-row, .profile-links button { display: flex; align-items: center; }
.app-header { justify-content: space-between; gap: 16px; padding: 4px 4px 20px; }
.eyebrow, .sheet-category { color: #7054bb; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin: 6px 0 0; font-size: clamp(28px, 8vw, 42px); line-height: 1; letter-spacing: -.045em; }
h2 { margin: 6px 0 0; font-size: 23px; line-height: 1.06; letter-spacing: -.035em; }
.balance-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border: 1px solid #d9cff1; border-radius: 999px; padding: 9px 12px; background: rgba(255,255,255,.88); color: #553a99; font-size: 12px; cursor: pointer; }
.balance-chip strong { color: #282132; }
.tab-panel[hidden] { display: none; }
.hero-card { margin-bottom: 18px; padding: 21px; border-radius: 24px; background: linear-gradient(135deg, #33205c, #7654bd); color: #fff; box-shadow: 0 14px 32px rgba(66, 43, 116, .2); }
.hero-card .hero-kicker { margin: 0 0 7px; color: #ded0ff; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.hero-card h2 { max-width: 400px; margin: 0; font-size: clamp(25px, 7vw, 34px); }
.hero-card p { max-width: 430px; margin: 12px 0 18px; color: #e4dcf5; font-size: 14px; line-height: 1.4; }
.hero-link, .text-button { border: 0; background: transparent; font-weight: 800; cursor: pointer; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 17px; border-radius: 14px; background: #fff; color: #3e2870; box-shadow: 0 6px 14px rgba(26, 13, 57, .18); font-size: 15px; transition: transform .18s ease, box-shadow .18s ease; }
.hero-link:active { transform: scale(.97); box-shadow: 0 3px 8px rgba(26, 13, 57, .15); }
.hero-link span { margin: 0; font-size: 20px; line-height: .8; }
.animation-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; margin: 0 0 19px; padding: 13px 14px; overflow: hidden; border: 1px solid #ffd1c4; border-radius: 20px; background: linear-gradient(130deg, #fff9f5, #ffe8dc 60%, #f3dfff); color: #302038; text-align: left; box-shadow: 0 8px 19px rgba(117, 65, 111, .09); cursor: pointer; }
.animation-hero::after { content: "✦"; position: absolute; right: 12px; top: -13px; color: rgba(125, 73, 191, .13); font-size: 72px; line-height: 1; }
.animation-hero:active { transform: scale(.985); }
.animation-hero-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #a24384, #6640a7); box-shadow: 0 6px 12px rgba(97, 51, 124, .22); font-size: 21px; }
.animation-hero-copy { position: relative; z-index: 1; display: grid; gap: 2px; min-width: 0; }
.animation-hero-copy small { color: #8c4a77; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.animation-hero-copy strong { font-size: 17px; line-height: 1.1; letter-spacing: -.025em; }
.animation-hero-copy em { color: #6e5d6d; font-size: 11px; font-style: normal; line-height: 1.25; }
.animation-hero-action { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 9px 11px; border-radius: 12px; background: #38225f; color: #fff; font-size: 12px; font-weight: 850; white-space: nowrap; }
.animation-hero-action b { font-size: 19px; line-height: .8; }
.animation-showcase { display: grid; grid-template-columns: minmax(0, 1.23fr) minmax(0, .77fr); gap: 14px; width: 100%; margin: 14px 0 0; padding: 14px; overflow: hidden; border: 1px solid #f3c9c1; border-radius: 23px; background: linear-gradient(125deg, #fffaf8, #ffe9df 54%, #f2e8ff); color: #302038; text-align: left; box-shadow: 0 9px 22px rgba(101, 61, 102, .11); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.animation-showcase:active { transform: scale(.985); box-shadow: 0 4px 12px rgba(101, 61, 102, .09); }
.animation-showcase-media { display: grid; grid-template-columns: minmax(0, 1fr) 27px minmax(0, 1fr); align-items: center; gap: 4px; min-width: 0; }
.animation-frame { position: relative; display: block; aspect-ratio: .7; overflow: hidden; border: 2px solid rgba(255,255,255,.88); border-radius: 17px; background: #e6ddee; box-shadow: 0 5px 11px rgba(60, 38, 73, .14); }
.animation-frame img, .animation-frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }
.animation-frame-video { border-color: #8c66d0; }
.animation-frame-video::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 28%, rgba(255,255,255,.22) 49%, transparent 68%); transform: translateX(-140%); animation: video-preview-sheen 2.8s ease-in-out infinite; }
.animation-frame-video video { transform: scale(1.015); }
@keyframes video-preview-sheen { 0%, 52% { transform: translateX(-140%); } 76%, 100% { transform: translateX(140%); } }
@media (prefers-reduced-motion: reduce) { .animation-frame-video::after { animation: none; } }
.animation-frame i { position: absolute; left: 5px; bottom: 5px; padding: 3px 5px; border-radius: 999px; background: rgba(33, 20, 65, .82); color: #fff; font-size: 8px; font-style: normal; font-weight: 800; }
.animation-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #fff; color: #643ca4; font-size: 20px; font-weight: 900; box-shadow: 0 3px 8px rgba(65, 32, 82, .14); }
.animation-showcase-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.animation-showcase-copy .eyebrow { color: #985074; font-size: 8px; }
.animation-showcase-action { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: #fff; min-height: 39px; padding: 9px 11px; border-radius: 12px; background: #39215f; font-size: 12px; font-weight: 850; }
.animation-showcase-action b { font-size: 16px; line-height: 1; }
.section-heading { justify-content: space-between; gap: 14px; margin: 0 4px 13px; }
.home-primary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 22px; }
.home-primary-action { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-content: center; align-items: center; gap: 8px; width: 100%; min-height: 90px; margin: 0; padding: 10px; border: 1px solid #ded4ef; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #f5f0ff 100%); color: #282132; text-align: left; box-shadow: 0 6px 16px rgba(62, 42, 101, .07); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-primary-action:active { transform: scale(.985); border-color: #bba9df; box-shadow: 0 4px 12px rgba(62, 42, 101, .12); }
.home-primary-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #e9defb, #d7c6f7); box-shadow: inset 0 1px rgba(255,255,255,.8); font-size: 18px; }
.home-primary-copy { display: grid; gap: 5px; min-width: 0; }
.home-primary-copy strong { font-size: 14px; line-height: 1.14; letter-spacing: -.02em; }
.home-primary-copy small { color: #7358a7; font-size: 10px; line-height: 1.2; }
.home-primary-arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #39215f; color: #fff; font-size: 16px; font-weight: 400; }
.section-heading .text-button { color: #7054bb; }
.home-tools-heading { margin-top: 18px; }
.home-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.home-collections { margin-top: 20px; }
.home-collections-heading { margin-bottom: 11px; }
.home-collections-list { gap: 9px; }
.home-collections-list .collection-card { min-height: 104px; border-radius: 17px; padding: 11px; }
.home-collections-list .collection-card strong { font-size: 15px; }
.home-collections-list .collection-card small { display: none; }
.home-collections-list .collection-card b { width: 26px; height: 26px; font-size: 16px; }
.home-tool { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; min-height: 64px; padding: 11px; border: 1px solid #e2dced; border-radius: 17px; background: #fff; color: #282132; text-align: left; cursor: pointer; }
.home-tool span { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; background: #f0e9fc; font-size: 17px; }
.home-tool strong { font-size: 13px; line-height: 1.12; }
.home-tool small { position: absolute; right: 9px; bottom: 7px; color: #7657b8; font-size: 9px; font-weight: 800; }
.create-heading { display: block; margin-top: 5px; }
.create-heading p { max-width: 480px; margin: 10px 0 0; color: #625d6d; font-size: 14px; line-height: 1.4; }
.templates-heading { margin-top: 30px; }
.collections { margin-top: 27px; }
.collections-heading { margin-bottom: 11px; }
.collections-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.collection-card { position: relative; display: flex; align-items: end; justify-content: space-between; min-height: 120px; overflow: hidden; border: 0; border-radius: 19px; padding: 13px; background: #45306f; color: #fff; text-align: left; cursor: pointer; isolation: isolate; }
.collection-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, rgba(24, 15, 41, .85), rgba(24, 15, 41, .05)); pointer-events: none; }
.collection-card .template-thumb { z-index: 0; }
.collection-card span { display: grid; gap: 3px; position: relative; z-index: 2; }
.collection-card strong { font-size: 16px; line-height: 1.05; letter-spacing: -.025em; }
.collection-card small { max-width: 135px; color: rgba(255,255,255,.84); font-size: 10px; line-height: 1.25; }
.collection-card b { position: relative; z-index: 2; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: rgba(255,255,255,.92); color: #4f3382; font-size: 18px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-next-heading { position: relative; display: grid; grid-column: 1 / -1; gap: 2px; overflow: hidden; min-height: 84px; border: 1px solid #ded4ee; border-radius: 18px; padding: 15px 47px 15px 16px; background: linear-gradient(135deg, #faf8ff, #eee7fb); color: #292232; text-align: left; cursor: pointer; }
.gallery-next-heading span { color: #7254b5; font-size: 10px; font-weight: 850; letter-spacing: .07em; }
.gallery-next-heading strong { font-size: 18px; line-height: 1.05; letter-spacing: -.025em; }
.gallery-next-heading small { color: #706779; font-size: 11px; line-height: 1.25; }
.gallery-next-heading b { position: absolute; right: 15px; top: 50%; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #fff; color: #6042a5; font-size: 19px; transform: translateY(-50%); }
.featured-gallery { grid-auto-flow: column; grid-auto-columns: minmax(146px, 44%); grid-template-columns: none; overflow-x: auto; margin: 0 -16px; padding: 0 16px 3px; scrollbar-width: none; }
.card { overflow: hidden; padding: 0; text-align: left; border: 1px solid #e7e3ee; border-radius: 19px; background: #fff; box-shadow: 0 5px 16px rgba(45, 30, 80, .045); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.card:active, .mode-card:active { transform: scale(.98); }
.image, .sheet-preview { background-image: var(--template-image); background-size: cover; background-position: center 25%; background-repeat: no-repeat; }
.image { aspect-ratio: 1 / 1.1; position: relative; }
.template-thumb { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; background: linear-gradient(135deg, #eeeaf5, #dcd5e9); }
.image span { position: absolute; left: 9px; bottom: 9px; padding: 5px 7px; border-radius: 999px; background: rgba(255,255,255,.86); color: #282132; font-size: 10px; font-weight: 750; }
.featured-card .image { aspect-ratio: .76; }
.featured-card .image::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(23, 17, 39, .76)); pointer-events: none; }
.featured-card .image span { top: 9px; bottom: auto; z-index: 1; }
.featured-title { position: absolute; z-index: 1; right: 11px; bottom: 11px; left: 11px; color: #fff; font-size: 17px; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; text-shadow: 0 1px 10px rgba(0,0,0,.28); }
.card-copy { justify-content: space-between; gap: 8px; padding: 11px 11px 12px; }
.card strong { font-size: 14px; line-height: 1.15; }
.card small { flex: 0 0 auto; color: #7358b8; font-size: 11px; font-weight: 700; }
.continue-card, .balance-card, .work-row, .empty-state, .profile-links, .mini-packs { border: 1px solid #e5dfed; border-radius: 21px; background: #fff; }
.continue-card { margin: 28px 0 0; padding: 17px; }
.continue-card strong { display: block; margin-top: 7px; font-size: 17px; }
.continue-card p { margin: 6px 0 12px; color: #716a78; font-size: 13px; }
.home-studio-gallery { margin-top: 28px; }
.home-studio-gallery-heading { margin-bottom: 11px; }
.home-gallery { margin-top: 0; }
.compact { width: auto !important; padding: 9px 12px !important; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.mode-card { min-height: 116px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 12px; border: 1px solid #e2dced; border-radius: 19px; background: #fff; color: #211b2c; text-align: left; cursor: pointer; transition: transform .18s ease; }
.mode-card.accent { border-color: #39215f; background: linear-gradient(145deg, #493078, #2a194c); color: #fff; }
.mode-card.is-soon { opacity: .7; }
.mode-icon { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 9px; border-radius: 10px; background: #f2edfb; font-size: 16px; }
.accent .mode-icon { background: rgba(255,255,255,.16); }
.mode-card strong { font-size: 15px; line-height: 1.08; }
.mode-card small { margin-top: 4px; color: #746d7d; font-size: 11px; line-height: 1.2; }
.accent small { color: #dcd1f1; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 17px; scrollbar-width: none; }
.filter { white-space: nowrap; border: 1px solid #e1ddec; border-radius: 999px; padding: 9px 13px; background: #fff; color: #615b70; font-size: 13px; font-weight: 650; cursor: pointer; }
.filter.active { background: #211641; border-color: #211641; color: #fff; }
.tools-note { margin: -6px 2px 17px; padding: 11px 12px; border: 1px solid #e1d8f6; border-radius: 14px; background: #f1ecff; color: #5d4b89; font-size: 13px; line-height: 1.35; }
.works-list { display: grid; gap: 10px; margin: 18px 0; }
.work-row { width: 100%; gap: 12px; padding: 14px; color: inherit; text-align: left; }
.work-preview { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 13px; object-fit: cover; background: #f0eaff; }
.work-copy { min-width: 0; }
.work-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-state { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 6px; font-size: 10px; font-weight: 800; }
.work-state.ready { background: #e4f4e8; color: #23723b; }
.work-state.working { background: #eee7ff; color: #6844ad; }
.work-state.failed { background: #fde8e8; color: #a33b48; }
.work-icon { display: grid; flex: 0 0 auto; place-items: center; width: 33px; height: 33px; border-radius: 11px; background: #f0eaff; color: #6743b0; }
.work-row div { min-width: 0; display: grid; gap: 3px; }
.work-row strong { font-size: 14px; }
.work-row small { color: #777080; font-size: 12px; }
.work-arrow { margin-left: auto; color: #8f849e; font-size: 24px; }
.work-open { margin-left: auto; border: 0; border-radius: 10px; padding: 8px 10px; background: #f0eaff; color: #5b3ca4; font-size: 11px; font-weight: 800; cursor: pointer; }
.work-actions { display: grid !important; gap: 5px; margin-left: auto; flex: 0 0 auto; }
.work-actions .work-open { margin-left: 0; }
.work-repeat { border: 0; border-radius: 10px; padding: 6px 8px; background: transparent; color: #6e5b8e; font-size: 10px; font-weight: 750; cursor: pointer; }
.work-filters { margin: 15px 0 0; padding-bottom: 4px; }
.empty-state { padding: 30px 22px; color: #6e6875; text-align: center; }
.empty-state > span { display: block; margin-bottom: 9px; color: #7252b8; font-size: 24px; }
.empty-state strong { display: block; color: #26202e; }
.empty-state p { margin: 7px 0 16px; font-size: 13px; line-height: 1.4; }
.balance-card { padding: 22px; background: linear-gradient(145deg, #fff, #f0eaff); }
.balance-card > span { color: #6b5c81; font-size: 13px; font-weight: 700; }
.balance-card > strong { display: block; margin: 3px 0; font-size: 52px; line-height: 1; letter-spacing: -.06em; }
.balance-card p { margin: 9px 0 18px; color: #696271; font-size: 13px; line-height: 1.4; }
.balance-card #balance-empty-note { margin: 10px 0 15px; border-radius: 13px; padding: 11px 13px; background: #f3edff; color: #59408e; font-weight: 650; }
.balance-card #balance-empty-note.balance-empty-note--alert { border: 1px solid #fecaca; border-left: 5px solid #dc2626; background: #fff1f2; color: #b42318; font-weight: 800; }
.balance-card #balance-empty-note[hidden] { display: none; }
.invite-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 15px; border: 1px solid #d9cff1; border-radius: 18px; background: linear-gradient(110deg, #f2edff, #fff); color: #292232; text-align: left; cursor: pointer; }
.invite-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; background: #e6dcff; font-size: 21px; }
.invite-card-copy { display: grid; gap: 3px; flex: 1; }
.invite-card-copy strong { font-size: 14px; }
.invite-card-copy small { color: #6d627c; font-size: 11px; }
.invite-card-arrow { color: #7252b8; font-size: 21px; }
.profile-links { overflow: hidden; margin-top: 14px; }
.profile-links button { width: 100%; justify-content: space-between; padding: 15px 17px; border: 0; border-bottom: 1px solid #ebe6f0; background: #fff; color: #292232; font-weight: 700; text-align: left; cursor: pointer; }
.profile-links button:last-child { border-bottom: 0; }
.profile-links span { color: #7252b8; font-size: 20px; }
.profile-links .profile-link-copy { display: grid; gap: 2px; color: #292232; font-size: inherit; }
.profile-links .profile-link-copy small { color: #797181; font-size: 10px; font-weight: 650; }
.mini-packs { margin-top: 14px; padding: 16px; }
.mini-packs-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.mini-packs h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.mini-packs-heading .text-button { padding: 0; color: #7054bb; font-size: 12px; }
.mini-packs-list { display: grid; gap: 8px; margin-top: 13px; }
.mini-pack { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 12px; border: 1px solid #e5deef; border-radius: 14px; background: #fbfaff; color: #282132; text-align: left; cursor: pointer; }
.mini-pack strong, .mini-pack small { display: block; }
.mini-pack strong { font-size: 13px; }
.mini-pack small, .mini-packs > p { color: #777080; font-size: 11px; }
.mini-pack b { color: #6845b1; font-size: 13px; }
.mini-packs > p { margin: 12px 1px 0; line-height: 1.35; }
.privacy-note { margin: 22px 5px 0; color: #817b8a; font-size: 12px; line-height: 1.4; }
.bottom-nav { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(221, 215, 232, .9); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.nav-item { display: grid; place-items: center; gap: 2px; min-height: 53px; border: 0; border-radius: 13px; background: transparent; color: #82798e; font-size: 10px; font-weight: 700; cursor: pointer; }
.nav-item span { font-size: 20px; line-height: 1; }
.nav-item.active { background: #efe9fb; color: #5534a0; }
.sheet { width: min(100% - 24px, 560px); padding: 0; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 24px 90px rgba(16, 8, 31, .3); }
.sheet::backdrop { background: rgba(20, 13, 32, .45); backdrop-filter: blur(4px); }
.composer { width: min(100% - 24px, 520px); max-height: min(760px, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); padding: 0; border: 0; border-radius: 26px; background: #fff; box-shadow: 0 24px 90px rgba(16, 8, 31, .3); }
.composer.text-video-dialog[open] { display:flex; flex-direction:column; height:min(760px, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); overflow:hidden; }
.composer::backdrop { background: rgba(20, 13, 32, .45); backdrop-filter: blur(4px); }
.composer-inner { position: relative; display: flex; flex-direction: column; gap: 11px; min-height: 0; padding: 24px 20px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.composer h2 { margin: 0; font-size: 26px; }
.composer-scroll { display:contents; }
.composer-inner > p:not(.sheet-status):not(.composer-hint), .composer-scroll > p:not(.sheet-status):not(.composer-hint) { margin: 0; color: #696271; font-size: 14px; line-height: 1.4; }
.upload-zone { position: relative; display: grid; place-items: center; min-height: 160px; overflow: hidden; border: 1.5px dashed #b9a8df; border-radius: 18px; background: #f8f5ff; cursor: pointer; }
.upload-zone[hidden] { display: none; }
.upload-zone img { width: 100%; height: 208px; object-fit: cover; }
.upload-placeholder { display: grid; place-items: center; gap: 5px; color: #4d347f; text-align: center; }
.upload-placeholder b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #e9e0fc; font-size: 26px; font-weight: 400; }
.upload-placeholder strong { font-size: 14px; }
.upload-zone.has-photo { border-style: solid; border-color: #7652c9; background: #ede7fb; }
.upload-zone.has-photo .upload-placeholder { position: absolute; right: 10px; bottom: 10px; z-index: 1; gap: 1px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(48, 29, 89, .16); }
.upload-zone.has-photo .upload-placeholder b { display: none; }
.upload-zone.has-photo .upload-placeholder strong { font-size: 13px; }
.upload-zone.has-photo .upload-placeholder small { font-size: 10px; }
.upload-ready { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 6px 9px; border-radius: 999px; background: #2f8b57; color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 3px 10px rgba(22, 92, 54, .24); }
.upload-guidance { display: flex; gap: 7px; margin: 9px 2px 14px; color: #6e6678; font-size: 12px; line-height: 1.38; }
.upload-guidance[hidden] { display: none; }
.upload-guidance span { flex: 0 0 auto; color: #6c4fb1; font-size: 15px; line-height: 1; }
.text-video-suggestion { display:grid; gap:9px; margin:10px 0 14px; padding:12px; border:1px solid #ded3f4; border-radius:14px; background:#f7f3ff; color:#55447a; font-size:13px; line-height:1.4; }
.text-video-suggestion[hidden] { display:none; }
.text-video-suggestion button { justify-self:start; border:0; border-radius:10px; padding:9px 12px; background:#6e4ac2; color:#fff; font:inherit; font-weight:700; }
.refine-preview { position: relative; overflow: hidden; border: 1px solid #ded4ee; border-radius: 18px; background: #f7f3ff; }
.refine-preview[hidden] { display: none; }
.refine-preview img { display: block; width: 100%; max-height: 190px; object-fit: cover; }
.refine-preview span { position: absolute; right: 10px; bottom: 10px; padding: 7px 10px; border-radius: 999px; background: rgba(44, 30, 73, .88); color: #fff; font-size: 12px; font-weight: 800; }
.reference-zone { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border: 1px dashed #cfc2e7; border-radius: 15px; color: #523c86; cursor: pointer; }
.reference-zone strong { font-size: 13px; }
.reference-zone small { color: #797181; font-size: 11px; line-height: 1.35; }
.reference-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.reference-thumb { position: relative; width: 66px; height: 82px; flex: 0 0 auto; overflow: hidden; border: 1px solid #dfd6ed; border-radius: 11px; }
.reference-thumb img { width: 100%; height: 55px; object-fit: cover; }
.reference-thumb select { width: 100%; height: 25px; border: 0; border-top: 1px solid #e7e0ef; background: #fff; color: #564a67; font-size: 9px; }
.reference-thumb em { display: block; padding: 5px 4px; overflow: hidden; color: #564a67; font-size: 9px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.reference-remove { position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border: 0; border-radius: 50%; background: #2d213e; color: #fff; line-height: 1; cursor: pointer; }
.advanced-settings { border: 1px solid #e4deed; border-radius: 15px; padding: 11px 12px; color: #51466a; }
.advanced-settings summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.settings-grid { display: grid; gap: 9px; margin-top: 12px; }
.birthday-poster-fields { display: grid; gap: 9px; border: 1px solid #e4dbee; border-radius: 15px; padding: 12px; background: #faf8fd; }
.birthday-poster-fields[hidden] { display: none; }
.birthday-poster-fields label { display: grid; gap: 5px; color: #5e5669; font-size: 13px; font-weight: 700; }
.birthday-poster-fields input { width: 100%; min-height: 43px; border: 1px solid #ddd5e9; border-radius: 11px; padding: 9px 11px; background: #fff; color: #282132; font: inherit; font-size: 15px; }
.birthday-poster-fields input:focus { outline: 0; border-color: #7558bd; box-shadow: 0 0 0 3px #eee8fb; }
.birthday-poster-fields small { color: #797181; font-size: 11px; line-height: 1.35; }
.birthday-poster-clothing-default { margin: -5px 0 0 !important; color: #797181; font-size: 12px !important; line-height: 1.35 !important; }
.birthday-poster-clothing-default[hidden] { display: none; }
.settings-grid label { display: grid; gap: 5px; color: #6d6676; font-size: 12px; font-weight: 700; }
.settings-grid select { width: 100%; border: 1px solid #ddd5e9; border-radius: 11px; padding: 10px; background: #fff; color: #282132; font: inherit; font-size: 13px; }
.result-stage { position: relative; }
.result-image { width: 100%; max-height: 52vh; border: 1px solid #e3ddeb; border-radius: 17px; object-fit: contain; background: #f5f1fb; }
.result-badge { position: absolute; top: 10px; left: 10px; border-radius: 999px; padding: 6px 9px; background: rgba(28, 19, 49, .78); color: #fff; font-size: 11px; font-weight: 800; }
.result-file-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.result-small-action { display: grid; place-items: center; min-height: 38px; border: 1px solid #e0d8ee; border-radius: 11px; padding: 8px; background: #fff; color: #5a477b; font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.result-file-actions .result-small-action:only-child { grid-column: 1 / -1; }
.result-compare-note { margin: -4px 0 0 !important; font-size: 10px; }
.result-edit-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.result-action-main, .quick-result-action, .result-refine { min-height: 40px; border-radius: 12px; padding: 9px 8px; font-size: 12px; font-weight: 800; cursor: pointer; }
.result-action-main { grid-column: 1 / -1; border: 0; background: #7053bd; color: #fff; }
.quick-result-action, .result-refine { border: 1px solid #e0d8ee; background: #fbfaff; color: #55406f; }
.result-refine { grid-column: 1 / -1; background: #fff; }
.processing-inner { align-items: center; padding: 46px 26px 28px; text-align: center; }
.processing-inner > p { max-width: 360px; margin: 0; color: #696271; font-size: 14px; line-height: 1.45; }
.processing-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 20px; background: #eee7ff; color: #6a49b3; font-size: 28px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .7; } }
.upload-placeholder small, .composer-hint { color: #797181; font-size: 12px; }
.prompt-label { margin-top: 2px; font-size: 13px; font-weight: 800; }
.composer textarea { width: 100%; min-height: 108px; resize: vertical; border: 1px solid #ddd5e9; border-radius: 15px; padding: 12px; outline: none; color: #27202e; font: inherit; font-size: 14px; line-height: 1.4; }
.composer textarea:focus { border-color: #7558bd; box-shadow: 0 0 0 3px #eee8fb; }
.composer-hint { margin: -3px 0 2px !important; line-height: 1.35; }
.composer-hint.family-photo-guidance { position: relative; margin: 0 0 2px !important; border: 1px solid #ded6e7; border-radius: 15px; padding: 12px 12px 12px 42px; background: #faf8fc; color: #514a5a; font-size: 13px; line-height: 1.45; }
.composer-hint.family-photo-guidance::before { content: "⚠"; position: absolute; top: 11px; left: 13px; color: #5b5365; font-size: 18px; }
.scenario-picker, .preserve-settings, .enhance-settings, .animation-settings, .document-settings { display: grid; gap: 8px; }
.scenario-picker[hidden], .preserve-settings[hidden], .enhance-settings[hidden], .animation-settings[hidden], .document-settings[hidden] { display: none; }
.scenario-picker > span, .preserve-settings > span, .enhance-settings > span, .animation-settings > span, .document-settings > span { color: #6e6678; font-size: 12px; font-weight: 800; }
.animation-settings { padding: 11px; border: 1px solid #ead9ed; border-radius: 14px; background: linear-gradient(135deg, #fff8f4, #f8f0ff); }
.animation-settings small { color: #766d7d; font-size: 11px; }
.animation-request-label { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; color: #625b6d; font-size: 12px; font-weight: 800; }
.animation-request-label small { font-weight: 600; }
.animation-settings textarea { min-height: 66px; padding: 10px; font-size: 13px; }
.scenario-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.scenario-chips button { border: 1px solid #ded4ee; border-radius: 999px; padding: 8px 10px; background: #faf8ff; color: #564078; font-size: 12px; font-weight: 750; cursor: pointer; }
.scenario-chips button.active { border-color: #7053bd; background: #7053bd; color: #fff; }
.preserve-settings { grid-template-columns: 1fr; align-items: center; padding: 10px 11px; border: 1px solid #e6dfef; border-radius: 13px; background: #fcfbff; }
.preserve-options { display: flex; flex-wrap: wrap; gap: 9px 14px; }
.preserve-settings label { display: inline-flex; align-items: center; gap: 5px; color: #524a5b; font-size: 12px; font-weight: 700; white-space: nowrap; }
.preserve-settings input { accent-color: #7053bd; }
.document-settings { padding: 11px; border: 1px solid #e3d9f1; border-radius: 14px; background: #fbf9ff; }
.document-settings small { color: #706879; font-size: 11px; line-height: 1.35; }
.sheet-inner { position: relative; display: grid; grid-template-columns: 42% 1fr; min-height: 260px; }
.sheet-preview { border-radius: 26px 0 0 26px; min-height: 260px; }
.sheet-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 22px 21px; }
.sheet h2 { margin: 8px 0; font-size: 25px; }
.sheet p { margin: 0; color: #65606f; line-height: 1.4; font-size: 14px; }
.sheet-price { margin-top: auto; padding: 14px 0; font-weight: 750; }
.primary, .secondary { width: 100%; border-radius: 13px; padding: 13px 10px; font-weight: 750; cursor: pointer; }
.primary { border: 0; color: #fff; background: #7053bd; }
.secondary { margin-top: 8px; border: 1px solid #ded7eb; color: #51466a; background: #fff; }
.sheet-status { width: 100%; margin: 10px 0 0; color: #5a467e; font-size: 13px; line-height: 1.35; text-align: center; }
.sheet-status.error { color: #a43c57; }
.primary:disabled, .secondary:disabled { cursor: wait; opacity: .72; }
.close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); font-size: 24px; line-height: 1; cursor: pointer; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 84px; width: max-content; max-width: calc(100% - 32px); transform: translate(-50%, 20px); padding: 11px 14px; border-radius: 13px; background: #211641; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 620px) { .gallery:not(.featured-gallery) { grid-template-columns: repeat(3, minmax(0, 1fr)); } .featured-gallery { grid-auto-columns: minmax(160px, 26%); } }
@media (max-width: 680px), (pointer: coarse) { .sheet-inner { grid-template-columns: 1fr; } .sheet-preview { min-height: 170px; border-radius: 26px 26px 0 0; } .sheet-copy { min-height: 250px; } }

.animation-paywall { width: min(440px, calc(100vw - 24px)); max-height: 90dvh; padding: 0; border: 0; border-radius: 24px; color: #212125; background: #fff; box-shadow: 0 20px 70px #0003; }
.animation-paywall::backdrop { background: #17172499; }
.animation-paywall-inner { position: relative; padding: 28px 22px 18px; }
.animation-paywall h2 { margin: 0 32px 14px 0; font-size: 26px; }
.animation-paywall p { font-size: 14px; line-height: 1.5; }
.animation-paywall button { cursor: pointer; }
.animation-paywall-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f1f6; color: #333; font-size: 28px; }
.animation-paywall-referral { margin: 20px 0; padding: 16px; background: #f3efff; border-radius: 16px; }
.animation-paywall-referral small { display: block; line-height: 1.4; }
.animation-paywall-referral input { display: block; box-sizing: border-box; width: 100%; margin: 12px 0 8px; padding: 10px; border: 1px solid #ddd5ef; border-radius: 8px; font-size: 12px; background: white; }
.animation-paywall-referral button, .animation-paywall [data-check] { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #eeeaf6; color: #372566; font-weight: 600; }
.animation-paywall [data-packs] { display: grid; gap: 8px; }
.animation-paywall-pack { padding: 16px; border: 1px solid #dedbe8; border-radius: 12px; text-align: left; color: #252132; background: #fff; font-size: 16px; font-weight: 600; }
.animation-paywall button:disabled { opacity: .5; }
.animation-paywall [data-pay] { width: 100%; margin-top: 12px; padding: 15px; border: 0; border-radius: 12px; color: white; background: #7751e8; font-weight: 700; font-size: 16px; }
.animation-paywall [data-check] { margin-top: 12px; }
.animation-paywall [data-status] { margin-bottom: 0; color: #645b78; }

.animation-paywall-referral input[hidden] { display: none; }

.tool-comparison { display:block; width:100%; height:auto; border-radius:16px; margin:18px 0 8px; }
.tool-example-note { color:#817b8a; font-size:12px; line-height:1.4; }
.tool-details .scenario-chips { flex-wrap:wrap; margin-bottom:18px; }
.tool-details .scenario-chips button { white-space:normal; text-align:left; }
#tool-background-presets[hidden] { display:none; }

.text-video-settings { display:grid; gap:18px; }
.text-video-settings[hidden] { display:none; }
.video-choice { min-width:0; margin:0; padding:0; border:0; }
.video-choice legend { margin-bottom:8px; padding:0; color:#282333; font-size:14px; font-weight:650; }
.video-segments { display:flex; gap:7px; }
.video-segments button { flex:1; min-width:0; min-height:52px; padding:9px 5px; border:1px solid #ddd5e8; border-radius:12px; background:#fff; color:#62576e; font:inherit; font-size:13px; line-height:1.3; cursor:pointer; }
.video-segments button b, .video-segments button small { display:block; }
.video-segments button small { margin-top:3px; font-size:11px; white-space:nowrap; }
.video-segments button.active { border-color:#7752c1; background:#f2ecfc; color:#5932a0; box-shadow:inset 0 0 0 1px #7752c1; }
.video-style-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.video-style-options button { min-width:0; min-height:64px; padding:10px; border:1px solid #ded5ec; border-radius:12px; background:#fff; color:#4e405f; text-align:left; font:inherit; cursor:pointer; }
.video-style-options button strong { display:block; font-size:13px; line-height:1.3; }
.video-style-options button small { display:block; margin-top:4px; color:#80748e; font-size:11px; line-height:1.35; }
.video-style-options button.active { border-color:#7752c1; background:#f2ecfc; box-shadow:inset 0 0 0 1px #7752c1; color:#5932a0; }
.video-style-options button:last-child { grid-column:1 / -1; }
#video-custom-style-hint { color:#776987; font-size:12px; line-height:1.4; }
.video-setting { border:1px solid #e5deef; border-radius:14px; background:#fff; overflow:hidden; }
.video-setting[open] { border-color:#d8cbed; background:#fcfaff; }
.video-setting summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:46px; padding:10px 12px; color:#282333; font-size:14px; font-weight:800; list-style:none; cursor:pointer; }
.video-setting summary::-webkit-details-marker { display:none; }
.video-setting summary::after { content:"⌄"; color:#7053bd; font-size:18px; line-height:1; }
.video-setting[open] summary::after { content:"⌃"; }
.video-setting summary small { margin-left:auto; color:#756b82; font-size:12px; font-weight:600; text-align:right; }
.video-setting > .scenario-chips, .video-setting > small, .video-setting > div:not(.scenario-chips), .video-setting > label { margin:0 12px 10px; }
.video-setting > small, .video-setting #video-voice-settings > small { display:block; color:#766e7f; font-size:12px; line-height:1.4; }
.video-setting #video-music-settings { display:grid; gap:8px; }
.video-setting #video-music-settings > span { color:#6e6678; font-size:12px; font-weight:750; }
.video-setting #video-music-settings[hidden], .video-setting #video-voice-settings[hidden] { display:none; }
.video-setting #video-voice-settings { display:grid; gap:7px; color:#5d5668; font-size:13px; font-weight:750; }
.video-setting #video-voice-text { min-height:76px; }
.video-audio-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:68px; padding:12px; border:1px solid #e3daee; border-radius:12px; background:#fff; color:#554a64; font-size:14px; cursor:pointer; }
.video-audio-toggle strong { display:block; font-weight:650; }
.video-audio-toggle small { display:block; margin-top:4px; color:#80748e; font-size:12px; }
.video-audio-toggle:has(input:checked) { border-color:#bca5e4; background:#f6f1ff; }
.video-audio-toggle input { position:relative; appearance:none; -webkit-appearance:none; width:42px; height:26px; margin:0; border:0; border-radius:20px; background:#dcd6e5; flex-shrink:0; cursor:pointer; }
.video-audio-toggle input::before { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #30203926; }
.video-audio-toggle input:checked { background:#7451bc; }
.video-audio-toggle input:checked::before { transform:translateX(16px); }
#video-music-settings .scenario-chips { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
#video-music-settings .scenario-chips button { min-height:44px; border-radius:10px; font-size:12px; padding:8px 4px; }
.video-setting .scenario-chips button { min-height:38px; }
.composer-sticky-footer { display:grid; gap:0; }
.composer-inner.text-video-composer { flex:1 1 auto; min-height:0; gap:0; padding:0; overflow:hidden; scrollbar-gutter:auto; }
.text-video-composer .composer-scroll { position:relative; display:flex; flex-direction:column; flex:1 1 auto; min-height:0; gap:12px; padding:22px 18px 18px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
.text-video-composer .composer-scroll > * { flex-shrink:0; }
.text-video-composer .eyebrow { display:none; }
.text-video-composer h2 { padding-right:44px; font-size:24px; line-height:1.2; }
.text-video-composer #close-composer { top:12px; right:10px; width:44px; height:44px; background:#f6f3f9; color:#696271; }
.text-video-composer .composer-scroll > p:not(.sheet-status):not(.composer-hint) { font-size:14px; line-height:1.4; }
.text-video-composer .prompt-label { margin:4px 0 -4px; font-size:14px; font-weight:650; }
.text-video-composer #custom-prompt { min-height:104px; padding:12px; font-size:16px; line-height:1.45; }
.text-video-composer .video-setting summary { min-height:52px; padding:12px; }
.text-video-composer .text-video-sticky-footer { flex:0 0 auto; z-index:3; padding:12px 18px calc(14px + env(safe-area-inset-bottom)); border-top:1px solid #eee8f4; background:#fff; }
.text-video-composer .text-video-sticky-footer #submit-custom { min-height:50px; padding:12px 8px; font-size:15px; line-height:1.25; }
.text-video-composer :is(button, select, textarea, input):focus-visible { outline:3px solid #c5b2ec; outline-offset:2px; }
.text-video-sticky-footer .sheet-status { margin-top:8px; }

.text-video-composer #video-voice-text { font-size:16px; }
@media (max-width:360px) { .video-segments button small { font-size:10px; } }

/* A continuous visual discovery feed, interleaving templates and real tools. */
.app-header h1 { font-size: clamp(30px, 7.8vw, 40px); }
.home-welcome { margin: 0 2px 12px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.discovery-media { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; border: 0; border-radius: 18px; background: #ded7ea; color: #fff; text-align: left; cursor: pointer; isolation: isolate; }
.discovery-media::after { position: absolute; z-index: 1; inset: 28% 0 0; content: ""; background: linear-gradient(transparent, rgba(16, 12, 26, .88)); pointer-events: none; }
.discovery-cover, .discovery-media > video, .discovery-media > .template-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discovery-media:active { transform: scale(.99); }
.discovery-media:focus-visible, .discovery-effect:focus-visible, .home-tool:focus-visible { outline: 3px solid #8d6bd2; outline-offset: 3px; }
.discovery-hero { height: clamp(290px, 76vw, 420px); border-radius: 21px; }
.discovery-hero .discovery-cover { object-position: 50% 31%; }
.discovery-hero-copy { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; display: grid; gap: 7px; }
.discovery-hero-copy > strong { font-size: clamp(25px, 6.6vw, 34px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.discovery-hero-copy > span:not(.discovery-primary-cta) { color: #f4effa; font-size: 13px; line-height: 1.3; }
.discovery-primary-cta { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; margin-top: 5px; padding: 10px 12px; border: 1px solid #b695ef; border-radius: 13px; background: linear-gradient(110deg, #8254d2, #6d42c1); font-size: 16px; font-weight: 750; box-shadow: 0 4px 12px #24133840; }
.discovery-primary-cta small { font-size: 11px; font-weight: 500; white-space: nowrap; }
.discovery-primary-cta b { margin-left: auto; font-size: 20px; }
.discovery-motion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.discovery-motion { height: clamp(183px, 51vw, 270px); border-radius: 16px; }
.discovery-motion > video { object-position: center 35%; }
.discovery-motion-copy, .discovery-template-copy { position: absolute; z-index: 2; right: 11px; bottom: 12px; left: 11px; display: grid; gap: 5px; }
.discovery-motion-copy strong { font-size: clamp(16px, 4.3vw, 21px); line-height: 1.08; letter-spacing: -.025em; }
.discovery-motion-copy small { color: #f1eaf9; font-size: 10px; line-height: 1.35; }
.discovery-play { position: absolute; z-index: 2; bottom: 75px; left: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid #fff; border-radius: 50%; background: #2219314d; font-size: 23px; line-height: 1; }
.discovery-badge { position: absolute; z-index: 2; top: 9px; right: 9px; padding: 5px 8px; border-radius: 8px; background: #f5edff; color: #6846a9; font-size: 10px; font-weight: 750; }
.discovery-section { margin-top: 27px; }
.discovery-section > .section-heading { align-items: baseline; gap: 10px; margin: 0 2px 12px; }
.discovery-section h2 { margin: 0; font-size: clamp(20px, 5.2vw, 26px); line-height: 1.12; }
.discovery-section .text-button { flex: 0 0 auto; min-height: 32px; padding: 4px 0 4px 6px; color: #7054bb; font-size: 11px; }
.discovery-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(137px, 40%); gap: 9px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 5px; scroll-padding-inline: 16px; }
.discovery-rail::-webkit-scrollbar, .discovery-collections::-webkit-scrollbar { display: none; }
.discovery-template { aspect-ratio: .7; min-width: 0; border-radius: 14px; scroll-snap-align: start; }
.discovery-template-copy { right: 9px; bottom: 11px; left: 9px; }
.discovery-template-copy strong { font-size: 14px; line-height: 1.12; letter-spacing: -.025em; }
.discovery-template-copy small { font-size: 10px; color: #eee6f6; line-height: 1.2; }
.discovery-stack { display: grid; gap: 11px; }
.discovery-effect { display: block; width: 100%; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #e5dfef; border-radius: 16px; background: #fdfbff; color: #24202f; text-align: left; cursor: pointer; }
.discovery-effect > img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.discovery-effect-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; }
.discovery-effect-copy > span:first-child { display: grid; gap: 4px; min-width: 0; }
.discovery-effect-copy strong { font-size: 15px; line-height: 1.15; letter-spacing: -.02em; }
.discovery-effect-copy small { font-size: 11px; line-height: 1.35; color: #777083; }
.discovery-small-cta { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 35px; padding: 9px 10px; border-radius: 10px; background: #e9ddff; color: #6139a9; font-size: 11px; font-weight: 750; line-height: 1.25; }
.discovery-cinema { height: clamp(220px, 62vw, 340px); margin-top: 23px; }
.discovery-cinema > video { object-position: center 40%; }
.discovery-cinema .discovery-play { top: 24px; bottom: auto; left: 18px; width: 38px; height: 38px; }
.discovery-cinema-copy { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; display: grid; justify-items: start; gap: 6px; }
.discovery-cinema-copy strong { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.07; letter-spacing: -.03em; }
.discovery-cinema-copy > small { color: #f3edf8; font-size: 12px; }
.discovery-cinema .discovery-small-cta { margin-top: 5px; background: #784bc8; color: #fff; }
.discovery-effect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; align-items: stretch; }
.discovery-effect-portrait { display: flex; flex-direction: column; }
.discovery-effect-portrait > img, .discovery-comparison { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.discovery-effect-portrait .discovery-effect-copy { padding: 10px; }
.discovery-effect-portrait .discovery-effect-copy strong { font-size: 14px; }
.discovery-comparison { position: relative; overflow: hidden; }
.discovery-comparison img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 23%; }
.discovery-comparison i { position: absolute; top: 7px; left: 7px; border-radius: 5px; background: #241d29b0; padding: 4px 6px; color: #fff; font-size: 9px; font-style: normal; }
.discovery-comparison i:last-child { right: 7px; left: auto; }
.discovery-background { margin-top: 10px; }
.discovery-effect-note { margin: 7px 2px 0; color: #82768f; font-size: 10px; line-height: 1.4; }
.discovery-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.discovery-mosaic .discovery-template { aspect-ratio: .94; }
.home-collections-list.discovery-collections { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, 108px); grid-auto-columns: 64%; gap: 9px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 5px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.discovery-collections .collection-card { min-height: 0; scroll-snap-align: start; }
.discovery-feed { display: grid; gap: 24px; }
.discovery-feed-group { min-width: 0; }
.discovery-feed-group .section-heading { margin: 0 2px 8px; gap: 9px; }
.discovery-feed-group h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; line-height: 1.15; }
@media (min-width: 620px) { .discovery-rail { grid-auto-columns: 27%; } .home-collections-list.discovery-collections { grid-auto-columns: 40%; } }
@media (max-width: 360px) { .discovery-section .section-heading { flex-wrap: wrap; row-gap: 2px; } .discovery-section .section-heading .text-button { margin-left: auto; } .discovery-effect-copy { flex-wrap: wrap; gap: 7px; } .discovery-effect-copy > .discovery-small-cta { min-height: 30px; padding: 7px 9px; } .discovery-primary-cta { gap: 6px; font-size: 14px; } .discovery-motion-copy { right: 9px; left: 9px; } .discovery-motion-copy small { font-size: 9px; } }
