/* mysort.com landing with the animated story (P050). Board 1000×580 (landscape) or 540×960 (portrait story). */
body.home { background: #0B0B0B; color: #fff; overflow-x: hidden; }
.home .page { max-width: 1180px; margin: 0 auto; padding: 0 20px; min-height: 100svh; display: flex; flex-direction: column; }
.home .nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 6px; }
.home .logo { color: #fff; }
.home .logo-mark { box-shadow: 0 0 0 1px #333; }
.home .langs button { color: #fff; border-color: #333; }
.home .langs button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }

.headline { margin: 6px 0 14px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.04; font-size: clamp(30px, 4.4vw, 52px); text-align: center; }
.headline [data-t] { box-shadow: inset 0 -0.08em 0 rgba(200, 255, 61, .55); }
.hl-swap { color: #C8FF3D; display: inline-block; transition: opacity .35s ease, transform .35s ease; }
.hl-swap.out { opacity: 0; transform: translateY(8px); }

/* ---------- film box ---------- */
.film { --fw: min(100%, calc((100svh - 300px) * 1000 / 580), 1100px); position: relative; width: var(--fw); margin: 0 auto; aspect-ratio: 1000 / 580; border-radius: 22px; overflow: hidden; background: #14121F; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px #222; }
.f-fit { position: absolute; inset: 0; overflow: hidden; }
.board { position: absolute; left: 0; top: 0; width: 1000px; height: 580px; transform-origin: 0 0; transform: translate(var(--bx, 0px), var(--by, 0px)) scale(var(--bs, 1)); overflow: hidden; background: #1A1726; font-family: 'Inter', system-ui, sans-serif; color: #111; }
.film.portrait .board { width: 540px; height: 960px; background: linear-gradient(#1A1726, #121019); }

.stage { position: absolute; left: 0; top: 0; width: 1000px; height: 580px; overflow: hidden; }
.film.portrait .stage { width: 540px; height: 560px; border-radius: 0 0 28px 28px; }
.pan { position: absolute; left: 0; top: 0; width: 1000px; height: 580px; transform-origin: 0 0; transition: transform .9s cubic-bezier(.6, 0, .25, 1); }
.cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.2s cubic-bezier(.4, 0, .2, 1); }
.cam.fast { transition-duration: .35s; }
.cam.slow { transition-duration: 3.2s; }
.scene { position: absolute; inset: 0; transition: transform .75s cubic-bezier(.75, 0, .2, 1); }
.scene.off { transform: translateX(102%); }
.scene.gone { transform: translateX(-102%); }
.scene .art, .scene .layer, .scene .bubbles { position: absolute; inset: 0; width: 1000px; height: 580px; }
.scene .layer svg { position: absolute; inset: 0; width: 1000px; height: 580px; overflow: visible; }
.shake { animation: shake .5s linear; }
@keyframes shake { 0%, 100% { translate: 0 0; } 15% { translate: -9px 4px; } 30% { translate: 8px -5px; } 45% { translate: -6px -4px; } 60% { translate: 6px 5px; } 75% { translate: -3px 2px; } }

/* ---------- characters ---------- */
.chr .ua, .chr .fa { transition: transform .55s cubic-bezier(.4, 0, .2, 1); transform-box: view-box; }
.chr.quick .ua, .chr.quick .fa { transition-duration: .12s; }
.chr .eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.chr .m-open, .chr .m-sad, .chr .m-big, .chr .sweat, .chr .brow-w { opacity: 0; }
.chr.talk .m-smile { animation: talkA .36s steps(1) infinite; }
.chr.talk .m-open { animation: talkB .36s steps(1) infinite; }
@keyframes talkA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes talkB { 0% { opacity: 0; } 50% { opacity: 1; } }
.chr.sad .m-smile, .chr.shock .m-smile { opacity: 0; animation: none; }
.chr.sad .m-open, .chr.shock .m-open { opacity: 0; animation: none; }
.chr.sad .m-sad { opacity: 1; }
.chr.shock .m-big { opacity: 1; }
.chr.sad .brow-n, .chr.shock .brow-n { opacity: 0; }
.chr.sad .brow-w, .chr.shock .brow-w { opacity: 1; }
.chr.sweat .sweat { opacity: 1; animation: drip 1s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
.chr .head { transition: transform .5s ease; }
.chr.work .hb { animation: nod 1.6s ease-in-out infinite; transform-box: view-box; }
@keyframes nod { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg) translateY(1px); } }
.chr .pglow { opacity: 0; transition: opacity .3s; }
.chr.lit .pglow { opacity: 1; }

.steam path { animation: steam 2.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14px); } }
.steam.soft path { animation-duration: 3s; }
.pot .pot-steam { opacity: .35; transition: opacity .6s; }
.pot.boil .pot-steam { opacity: 1; }
.pot .lid { transform-box: fill-box; transform-origin: center bottom; }
.pot.boil .lid { animation: lid .22s linear infinite; }
@keyframes lid { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
.pot .foam { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.pot.over .foam { opacity: 1; transform: none; }

/* ---------- bubbles (scene coordinates) ---------- */
.bub { position: absolute; transform: translate(-18%, -100%) scale(0); transform-origin: 18% 100%; background: #fff; color: #111; font: 700 19px/1.25 'Inter', system-ui, sans-serif; padding: 11px 16px; border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.22); white-space: nowrap; transition: transform .38s cubic-bezier(.34, 1.56, .64, 1), opacity .25s; opacity: 0; z-index: 5; }
.bub::after { content: ''; position: absolute; left: 18px; bottom: -9px; width: 18px; height: 18px; background: inherit; border-radius: 0 0 0 4px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bub.show { transform: translate(-18%, -100%) scale(1); opacity: 1; }
.bub.think { background: #F4F1FF; color: #3A3460; font-style: italic; font-weight: 600; }
.bub.think::after { width: 12px; height: 12px; border-radius: 50%; bottom: -16px; left: 14px; clip-path: none; box-shadow: -8px 10px 0 -2px #F4F1FF; }
.bub.shout { background: #EF3B33; color: #fff; }
.bub.happy { background: #2FA552; color: #fff; border: 3px solid #fff; }
.film.portrait .bub { font-size: 22px; white-space: normal; max-width: 300px; }

/* ---------- clock, intro, flash, stamp, brand ---------- */
.clock { position: absolute; left: 22px; top: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: rgba(255,255,255,.94); color: #111; border-radius: 999px; font: 600 15px 'Inter', sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s; z-index: 6; }
.clock.show { opacity: 1; transform: none; }
.clock b { font-variant-numeric: tabular-nums; font-weight: 800; }
.clock.red { background: #EF3B33; color: #fff; }
.clock.rew .ck-ic { animation: spin .6s linear infinite reverse; }
.ck-ic { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.film.portrait .clock { left: 50%; transform: translateX(-50%) scale(.6); top: 22px; font-size: 18px; }
.film.portrait .clock.show { transform: translateX(-50%); }

.intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #14121F; color: #fff; z-index: 8; opacity: 0; pointer-events: none; transition: opacity .5s; }
.intro.show { opacity: 1; }
.in-day { font: 900 92px/1 'Inter', sans-serif; letter-spacing: -.04em; }
.in-day i { font-style: normal; display: inline-block; opacity: 0; transform: translateY(18px); transition: opacity .35s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.in-day i.on { opacity: 1; transform: none; }
.in-time { margin-top: 12px; font: 700 34px 'Inter', sans-serif; color: #C8FF3D; opacity: 0; transition: opacity .4s; font-variant-numeric: tabular-nums; }
.in-time.on { opacity: 1; }
.intro.fly .in-day, .intro.fly .in-time { transition: transform .7s cubic-bezier(.6, 0, .3, 1), opacity .7s; transform: translate(-330px, -230px) scale(.18); opacity: 0; }
.film.portrait .intro.fly .in-day, .film.portrait .intro.fly .in-time { transform: translate(0, -420px) scale(.2); }

.flash { position: absolute; inset: 0; background: #EF3B33; opacity: 0; pointer-events: none; z-index: 7; }
.flash.on { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .45; } 100% { opacity: 0; } }
.stamp { position: absolute; left: 50%; top: 46%; z-index: 9; font: 900 110px/1 'Inter', sans-serif; color: #EF3B33; border: 10px solid #EF3B33; border-radius: 18px; padding: 8px 26px; letter-spacing: -.02em; background: rgba(255,255,255,.88); transform: translate(-50%, -50%) rotate(-12deg) scale(2.4); opacity: 0; pointer-events: none; }
.stamp.on { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes stamp { to { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: 1; } }
.film.portrait .stamp { font-size: 84px; top: 40%; }

.brand { position: absolute; inset: 0; background: #FFFFFF; z-index: 10; transform: translateX(102%); transition: transform .7s cubic-bezier(.75, 0, .2, 1); display: flex; align-items: center; justify-content: center; }
.brand.in { transform: none; }
.brand.out { transform: translateX(-102%); }
.br-in { text-align: center; color: #000; }
.br-ic { width: 120px; height: 120px; border-radius: 28px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .6s cubic-bezier(.34, 1.56, .64, 1); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.br-name { margin-top: 18px; font: 500 64px/1 'Inter', sans-serif; letter-spacing: -.03em; opacity: 0; transform: translateY(14px); transition: opacity .45s .1s, transform .6s .1s cubic-bezier(.16, 1, .3, 1); }
.br-name b { font-weight: 900; }
.br-sub { margin-top: 14px; font: 600 24px 'Inter', sans-serif; color: #555; opacity: 0; transition: opacity .5s; }
.brand.s1 .br-ic { opacity: 1; transform: none; }
.brand.s2 .br-name { opacity: 1; transform: none; }
.brand.s3 .br-sub { opacity: 1; }
.brand ~ .stage, .brand.cover ~ * { }
.board.covered .stage, .board.covered .phonewrap, .board.covered .mama, .board.covered .clock { visibility: hidden; }

/* ---------- phone ---------- */
.phonewrap { position: absolute; left: 660px; top: 70px; width: 220px; height: 444px; z-index: 4; transition: left .8s cubic-bezier(.6, 0, .25, 1), top .8s cubic-bezier(.6, 0, .25, 1), transform .5s cubic-bezier(.34, 1.4, .64, 1), opacity .35s; transform: scale(.5) translateY(80px); opacity: 0; }
.phonewrap.show { transform: none; opacity: 1; }
.phonewrap.kitchen { left: 40px; top: 70px; }
.film.portrait .phonewrap, .film.portrait .phonewrap.kitchen { left: 160px; top: var(--ph-top, 508px); transform-origin: 50% 0; }
.film.portrait .phonewrap.show { transform: scale(1.0); }
.phone { position: absolute; inset: 0; background: #0F0F12; border-radius: 34px; padding: 9px; box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 2px #2A2A30; }
.ph-notch { position: absolute; left: 50%; top: 15px; width: 64px; height: 18px; border-radius: 12px; background: #0F0F12; transform: translateX(-50%); z-index: 3; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; }
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; font-family: 'Inter', sans-serif; }
.scr.on { opacity: 1; }
.tap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(200,255,61,.85); box-shadow: 0 0 0 6px rgba(200,255,61,.35); transform: scale(0); opacity: 0; pointer-events: none; z-index: 5; }
.tap.on { animation: tap .45s ease-out; }
@keyframes tap { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

.vid { position: absolute; inset: 0; background: #1D1A16; overflow: hidden; }
.vid svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vid.dim::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.vid.small { position: relative; height: 128px; inset: auto; }
.rail { position: absolute; right: 8px; bottom: 74px; display: flex; flex-direction: column; gap: 12px; }
.ri { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; font-size: 17px; transition: background .2s, color .2s, transform .2s; }
.ri.hit { background: #C8FF3D; color: #000; transform: scale(1.15); }
.vcap { position: absolute; left: 12px; right: 50px; bottom: 22px; color: #fff; }
.vcap b { display: block; font-size: 14px; line-height: 1.2; }
.vcap small { font-size: 11px; opacity: .75; }
.vbar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.vbar i { display: block; height: 100%; width: 30%; background: #fff; animation: vb 6s linear infinite; }
@keyframes vb { from { width: 5%; } to { width: 95%; } }

.s-scroll { background: #111; }
.strip { position: absolute; left: 10px; right: 10px; top: 0; display: flex; flex-direction: column; gap: 10px; }
.s-scroll.run .strip { animation: strip .9s linear infinite; filter: blur(1.5px); }
@keyframes strip { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.strip .sc { height: 118px; border-radius: 14px; display: flex; align-items: flex-end; padding: 10px; color: #fff; font: 700 12px 'Inter', sans-serif; }
.sbar { position: absolute; left: 10px; right: 10px; top: 36px; height: 34px; border-radius: 12px; background: rgba(255,255,255,.95); display: flex; align-items: center; gap: 8px; padding: 0 10px; font: 600 12px 'Inter', sans-serif; color: #111; }
.sbar i { font-style: normal; }

.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #1C1C1E; color: #fff; border-radius: 22px 22px 0 0; padding: 14px 12px 16px; transform: translateY(102%); transition: transform .5s cubic-bezier(.2, .9, .3, 1); }
.sheet.up { transform: none; }
.sh-top { font-size: 13px; margin-bottom: 10px; }
.mini-logo span { font-weight: 500; }
.mini-logo b { font-weight: 900; }
.sh-item { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; }
.sh-item .th { width: 40px; height: 40px; border-radius: 10px; background: #E9B44C; flex-shrink: 0; overflow: hidden; position: relative; }
.sh-item b { display: block; font-size: 12px; line-height: 1.15; }
.sh-item small { font-size: 10px; color: #A3A3A3; }
.sh-h { font-weight: 800; font-size: 14px; margin: 4px 0 8px; }
.row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 12px; background: rgba(255,255,255,.07); margin-bottom: 6px; font-size: 12px; border: 1.5px solid transparent; }
.row b { display: block; font-size: 12.5px; }
.row .fold { font-size: 13px; }
.row .sug { color: #C8FF3D; font-size: 10px; font-weight: 700; }
.row .ok { margin-left: auto; font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #C8FF3D; color: #000; display: grid; place-items: center; font-size: 11px; font-weight: 900; opacity: 0; transition: opacity .3s; }
.row.sel { border-color: #C8FF3D; background: rgba(200,255,61,.14); }
.row.sel .ok { opacity: 1; }
.row.pulse { animation: pulse 1s ease-in-out 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(200,255,61,.3); } }
.btn-lime { margin-top: 10px; background: #C8FF3D; color: #000; border-radius: 14px; text-align: center; padding: 11px; font-weight: 900; font-size: 13px; transition: transform .15s; }
.btn-lime.press { transform: scale(.95); }
.saved { position: absolute; inset: 0; background: #1C1C1E; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0; transition: opacity .3s; border-radius: 22px 22px 0 0; }
.saved.on { opacity: 1; }
.saved .check { width: 54px; height: 54px; border-radius: 50%; background: #C8FF3D; color: #000; display: grid; place-items: center; font-size: 26px; font-weight: 900; transform: scale(.3); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.saved.on .check { transform: none; }
.saved b { font-size: 18px; }
.saved small { color: #A3A3A3; font-size: 12px; }

.s-detail { background: #0B0B0B; color: #fff; }
.prog { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: #C8FF3D; border-radius: 2px; transition: width .6s cubic-bezier(.4, 0, .2, 1); }
.prog em { position: absolute; top: -4px; width: 4px; height: 12px; border-radius: 2px; background: #fff; left: 23%; opacity: 0; transition: opacity .3s; }
.prog em.on { opacity: 1; }
.det-body { padding: 12px; }
.det-t { display: block; font-size: 15px; line-height: 1.2; }
.det-m { display: block; color: #A3A3A3; font-size: 11px; margin: 4px 0 14px; }
.det-h { font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.note-in { min-height: 40px; border-radius: 12px; background: #1C1C1E; padding: 11px 10px; font-size: 12.5px; transition: opacity .3s; }
.caret::after { content: ''; display: inline-block; width: 1.5px; height: 14px; background: #C8FF3D; margin-left: 1px; vertical-align: -2px; animation: car .8s steps(1) infinite; }
@keyframes car { 50% { opacity: 0; } }
.note { margin-top: 8px; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: #1C2410; font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.note.on { opacity: 1; transform: none; }
.tchip { background: #C8FF3D; color: #000; font-weight: 900; border-radius: 8px; padding: 3px 7px; font-size: 11.5px; transition: transform .15s; }
.tchip.press { transform: scale(.9); }

.s-photo { background: #000; }
.paper { position: absolute; left: 14px; right: 14px; top: 74px; bottom: 74px; border-radius: 6px; overflow: hidden; transform: rotate(-1.5deg); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.paper svg { width: 100%; height: 100%; display: block; }
.hi { stroke-dasharray: 160; stroke-dashoffset: 160; }
.hi.on { stroke-dashoffset: 0; transition: stroke-dashoffset .9s ease-in-out; }
.tools { position: absolute; left: 10px; right: 10px; bottom: 16px; display: flex; gap: 6px; }
.tl { flex: 1; text-align: center; padding: 8px 4px; border-radius: 999px; background: #222; color: #fff; font: 700 10.5px 'Inter', sans-serif; }
.tl.on { background: #C8FF3D; color: #000; }
.tl.done { background: #fff; color: #000; }

.s-lib { background: #fff; color: #111; padding: 38px 12px 12px; }
.lib-h { font-weight: 900; font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { border-radius: 16px; background: #F5F5F5; padding: 12px 10px; height: 118px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; transition: transform .2s; }
.tile .te { position: absolute; left: 10px; top: 10px; font-size: 26px; }
.tile b { font-size: 13px; }
.tile small { position: absolute; right: 10px; top: 12px; min-width: 22px; height: 22px; border-radius: 11px; background: #000; color: #fff; font: 800 11px/22px 'Inter', sans-serif; text-align: center; padding: 0 6px; }
.tile.t-rec { background: #EAFBC8; }
.tile.pop { animation: tpop .4s ease; }
@keyframes tpop { 50% { transform: scale(1.07); } }
.tile.press { transform: scale(.94); }

/* pile of things saved everywhere (chapter 1) */
.pile { position: absolute; inset: 0; pointer-events: none; }
.card { position: absolute; width: 132px; padding: 7px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.28); display: flex; gap: 7px; align-items: center; font: 700 11px/1.15 'Inter', sans-serif; color: #111; transition: transform .55s cubic-bezier(.5, 0, .2, 1), opacity .35s; }
.card i { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.card .dest { display: none; position: absolute; left: 6px; top: -30px; background: #C8FF3D; color: #000; font: 900 13px 'Inter', sans-serif; font-style: normal; padding: 5px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.card.hl { box-shadow: 0 0 0 3px #C8FF3D, 0 14px 30px rgba(0,0,0,.35); }
.card.hl .dest { display: block; animation: destIn .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes destIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.tile.hl { box-shadow: 0 0 0 3px #C8FF3D; }
.ph-tag { position: absolute; left: 12px; top: 40px; z-index: 2; background: #C8FF3D; color: #000; font: 900 12px 'Inter', sans-serif; padding: 5px 10px; border-radius: 999px; }
.card small { display: block; font-weight: 500; font-size: 9.5px; color: #777; margin-top: 2px; }

/* ---------- mama pop-in ---------- */
.mama { position: absolute; right: 30px; top: 150px; width: 270px; height: 312px; border-radius: 22px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: translateX(140%) rotate(6deg); transition: transform .7s cubic-bezier(.34, 1.3, .64, 1); z-index: 5; background: #FFF1E2; }
.mama.in { transform: rotate(3deg); }
.mama-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mama .bubbles { position: absolute; inset: 0; }
.m-phone { position: absolute; left: 118px; top: 150px; width: 112px; height: 160px; border-radius: 16px; background: #0F0F12; padding: 6px; transform: rotate(-8deg); font-family: 'Inter', sans-serif; }
.m-phone > * { position: relative; }
.m-phone::before { content: ''; position: absolute; inset: 6px; background: #fff; border-radius: 11px; }
.mp-top { display: flex; align-items: center; gap: 5px; padding: 8px 6px 4px; color: #111; }
.mp-av { width: 20px; height: 20px; border-radius: 50%; background: #0B0B0B; color: #C8FF3D; font: 900 10px/20px 'Inter'; text-align: center; font-style: normal; }
.mp-top b { display: block; font-size: 10px; }
.mp-top small { display: block; font-size: 8.5px; color: #777; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 2px 6px; }
.mp-grid i { height: 30px; border-radius: 6px; background: #EAFBC8; }
.mp-grid i:nth-child(2) { background: #FFE0B8; }
.mp-grid i:nth-child(3) { background: #FFD3CF; }
.mp-btn { margin: 6px 6px 0; background: #000; color: #fff; text-align: center; border-radius: 9px; padding: 6px 0; font: 800 9.5px 'Inter', sans-serif; transition: background .2s, color .2s, transform .15s; }
.mp-btn.on { background: #C8FF3D; color: #000; }
.mp-btn.press { transform: scale(.9); }
.m-hand { position: absolute; left: 106px; top: 236px; width: 26px; height: 26px; border-radius: 50%; background: #F2C6A0; }
.film.portrait .mama { right: auto; left: 250px; top: 120px; width: 260px; height: 300px; }

/* flying cards and hearts */
.flyers { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.heart { position: absolute; font-size: 26px; animation: heart 1.6s ease-out forwards; }
@keyframes heart { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--hx, 0px), -90px) scale(1.1); opacity: 0; } }

/* ---------- poster, end, controls ---------- */
.f-poster { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 20; background: rgba(12,10,20,.55); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.film.poster .f-poster { display: flex; }
.fp-in { text-align: center; padding: 20px; }
.fp-claim { font: 900 clamp(26px, 4vw, 48px)/1.08 'Inter', sans-serif; letter-spacing: -.035em; color: #fff; max-width: 720px; margin: 0 auto; }
.fp-claim em { font-style: normal; color: #C8FF3D; }
.fp-sub { color: #D6D3E4; font: 500 clamp(14px, 1.6vw, 18px)/1.4 'Inter', sans-serif; margin: 12px 0 22px; }
.fp-play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border: 0; border-radius: 999px; background: #fff; color: #000; font: 800 17px 'Inter', sans-serif; cursor: pointer; box-shadow: 0 14px 34px rgba(0,0,0,.35); transition: transform .15s; }
.fp-play:hover { transform: scale(1.04); }
.fp-ic { width: 44px; height: 44px; border-radius: 50%; background: #C8FF3D; display: grid; place-items: center; }
.fp-ic svg { width: 22px; height: 22px; margin-left: 3px; }
.fp-note { margin-top: 12px; color: #B9B5CC; font: 500 13px 'Inter', sans-serif; }

.f-end { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: #fff; z-index: 19; }
.film.ended .f-end { display: flex; }
.fe-in { text-align: center; color: #000; }
.f-end .br-ic, .f-end .br-name { opacity: 1; transform: none; }
.f-end .br-ic { width: 96px; height: 96px; border-radius: 24px; }
.f-end .br-name { font-size: 52px; margin-top: 14px; }
.fe-replay { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 0; background: #000; color: #fff; font: 800 16px 'Inter', sans-serif; cursor: pointer; }
.fe-replay svg { width: 18px; height: 18px; }

.f-bar { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; align-items: center; gap: 10px; z-index: 18; opacity: 0; transition: opacity .3s; }
.film:not(.poster):hover .f-bar, .film.paused .f-bar { opacity: 1; }
.f-segs { flex: 1; display: flex; gap: 6px; }
.f-seg { flex: 1; height: 16px; border: 0; padding: 6px 0; background: transparent; cursor: pointer; }
.f-seg i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.f-seg i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: #fff; }
.f-time { color: #fff; font: 700 12px 'Inter', sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.f-ctl { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.f-ctl svg { width: 16px; height: 16px; }
.f-close { display: none; position: absolute; right: 12px; top: calc(14px + env(safe-area-inset-top)); z-index: 30; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; place-items: center; }
.f-close svg { width: 18px; height: 18px; }

/* full screen and the portrait story */
.film:fullscreen, .film.max { width: 100vw; height: 100vh; max-width: none; border-radius: 0; aspect-ratio: auto; background: #000; }
.film.max { position: fixed; inset: 0; z-index: 1000; height: 100svh; }
html.film-open { overflow: hidden; }
.film.portrait.story .f-bar { top: calc(10px + env(safe-area-inset-top)); bottom: auto; right: 60px; opacity: 1; }
.film.portrait.story .f-time, .film.portrait.story .f-ctl { display: none; }
.film.story .f-close { display: grid; }

/* ---------- CTAs, marquee, footer ---------- */
.ctas { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: var(--fw-page, min(100%, 640px)); margin: 18px auto 0; }
.cta { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 18px; background: #fff; color: #000; text-decoration: none; }
.cta.alt { background: #1C1C1E; color: #fff; }
.cta svg { width: 28px; height: 28px; flex-shrink: 0; }
.cta b { display: block; font-size: 17px; font-weight: 800; line-height: 1.2; }
.cta small { display: block; font-size: 13px; opacity: .65; }
.marquee { overflow: hidden; margin: 22px -20px 0; border-top: 1px solid #1E1E1E; border-bottom: 1px solid #1E1E1E; padding: 11px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq { display: flex; gap: 34px; width: max-content; animation: mq 40s linear infinite; color: #BDBDBD; font: 600 15px 'Inter', sans-serif; white-space: nowrap; }
.mq span::before { content: '✦'; color: #C8FF3D; margin-right: 12px; }
@keyframes mq { to { transform: translateX(-50%); } }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: #777; font-size: 13px; padding: 16px 0 22px; margin-top: auto; }
.foot a { color: #888; }

@media (max-width: 760px) {
  .film { --fw: 100%; aspect-ratio: 1 / 1; border-radius: 18px; }
  .film.poster .f-fit .board { filter: blur(0); }
  .ctas { grid-template-columns: 1fr; }
  .headline { font-size: clamp(28px, 8.4vw, 40px); text-align: left; }
}
@media (max-width: 760px) and (max-height: 700px) { .film { aspect-ratio: 5 / 4; } }
@media (prefers-reduced-motion: reduce) { .mq { animation: none; } .hl-swap { transition: none; } }
