:root{--night:#0b0e25;--night2:#171333;--purple:#ba9bff;--pink:#ff9dd5;--blue:#7dd8ff;--white:#fff6ff;--muted:#d0c3e4;--soft:#f3e5fc;--glow:0 0 40px rgba(186,155,255,.2);--ease:cubic-bezier(.18,.76,.23,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(ellipse 100% 100% at 50% -20%,#34245c 0%,#131632 35%,#0b0e25 72%),var(--night);color:var(--white);font-family:Vazirmatn,'Noto Sans Arabic','Noto Naskh Arabic',Tahoma,Arial,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:4px}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin:0}h1,h2{font-weight:800;letter-spacing:-.045em;line-height:1.45}h1 em,h2 em{font-style:normal;background:linear-gradient(100deg,#ffe4fa 0%,#ffa7d9 30%,#c4abff 63%,#8be0fd 100%);background-clip:text;color:transparent;-webkit-background-clip:text}::selection{background:#a772f3;color:white}.skip-link{position:fixed;top:-100px;right:20px;background:white;color:#111;padding:12px;z-index:999}.skip-link:focus{top:15px}.aurora{position:fixed;z-index:-2;pointer-events:none;border-radius:50%;filter:blur(70px);opacity:.45;animation:auroraShift 16s ease-in-out infinite alternate}.a-one{width:54vw;height:56vw;max-height:700px;top:-23%;right:-18%;background:radial-gradient(circle,rgba(135,87,238,.7),rgba(126,94,240,0) 66%)}.a-two{width:50vw;height:50vw;max-height:650px;bottom:-32%;left:-18%;background:radial-gradient(circle,rgba(44,167,250,.4),rgba(255,113,185,.3) 39%,transparent 70%);animation-delay:-7s}#stars,#confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}#stars{z-index:-1}#confetti{z-index:140}.grain{pointer-events:none;position:fixed;inset:0;z-index:150;opacity:.11;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.31'/%3E%3C/svg%3E")}
/* opening invitation */
.cover{position:fixed;inset:0;z-index:110;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 20px;background:radial-gradient(ellipse at 50% 44%,#38265d 0,#19152e 44%,#0b0e25 100%);overflow:hidden;transition:opacity .9s ease,visibility .9s}.cover.leave{opacity:0;visibility:hidden;pointer-events:none}.cover:before{content:'';position:absolute;inset:24px;border:1px solid rgba(223,181,255,.15);border-radius:18px;pointer-events:none}.cover:after{content:'';position:absolute;inset:37px;border:1px solid rgba(223,181,255,.07);border-radius:12px;pointer-events:none}.cover-dust i{position:absolute;font-size:25px;color:var(--purple);opacity:.72;animation:float 7s infinite}.cover-dust i:nth-child(1){top:18%;right:14%}.cover-dust i:nth-child(2){top:31%;left:16%;animation-delay:-2s}.cover-dust i:nth-child(3){bottom:20%;right:21%;color:var(--pink);animation-delay:-3s}.cover-dust i:nth-child(4){bottom:19%;left:22%;color:var(--blue);animation-delay:-4s}.cover-dust i:nth-child(5){top:11%;left:49%;animation-delay:-1s}.cover-box-wrap{position:relative;width:255px;height:240px;display:grid;place-items:center;perspective:800px;filter:drop-shadow(0 20px 40px rgba(212,135,243,.21))}.cover-ring{position:absolute;border:1px solid rgba(194,159,255,.27);border-radius:50%;transform:rotateX(65deg);width:285px;height:285px;animation:rotate 22s linear infinite}.cr2{width:350px;height:350px;border-style:dashed;border-color:rgba(240,172,229,.15);animation-direction:reverse}.gift-3d{position:relative;width:170px;height:137px;transform:translateY(13px) rotate(-5deg) rotateX(7deg);transform-style:preserve-3d;animation:giftFloat 5s ease-in-out infinite}.gift-3d-back,.gift-3d-front{position:absolute;width:160px;height:108px;left:5px;bottom:0;border-radius:13px 13px 17px 17px;background:linear-gradient(145deg,#e3bafa 0%,#a482e7 40%,#6d66c9 100%);box-shadow:inset -14px -12px 25px #453a9970, 0 20px 70px rgba(224,164,255,.25)}.gift-3d-front:before{content:'';position:absolute;inset:0 38%;background:linear-gradient(90deg,#ffe6f7,#ffb5db,#f4a8ee);box-shadow:0 0 16px #ffcaf166}.gift-3d-lid{position:absolute;z-index:4;top:15px;left:-5px;width:180px;height:36px;border-radius:9px 9px 6px 6px;background:linear-gradient(130deg,#ecd5ff,#9f86eb 70%,#7b70ca);box-shadow:0 8px 18px #2d225c5c;transform:rotate(-3deg)}.gift-3d-lid:after{content:'';position:absolute;top:0;bottom:0;left:40%;width:28px;background:linear-gradient(90deg,#f8dcf8,#ff9ecf,#ffdaed)}.gift-3d-ribbon{position:absolute;z-index:5;top:45px;left:45%;width:29px;height:80px;background:linear-gradient(90deg,#ffd1f0,#ff9dcb,#ffdbf2);opacity:.9}.gift-3d-bow{position:absolute;z-index:7;top:-2px;width:64px;height:40px;border:12px solid #ffbce2;border-radius:65% 20% 65% 30%;filter:drop-shadow(0 3px 5px #734e8955)}.bow-l{left:26px;transform:rotate(25deg)}.bow-r{right:23px;transform:rotate(-35deg) scaleX(-1)}.gift-3d-knot{position:absolute;z-index:8;top:17px;left:77px;width:26px;height:26px;background:#ffe0f1;border-radius:50%}.cover .eyebrow{margin:10px 0 12px}.eyebrow,.overline{font-family:Georgia,serif;direction:ltr;letter-spacing:.27em;color:var(--blue);font-size:10px;font-weight:700}.cover h1{font-size:clamp(40px,5.5vw,74px);line-height:1.38}.cover-sub{color:#e1cce9;max-width:520px;line-height:2.25;margin:16px 0 25px;font-size:14px}.cover-start{min-width:225px}.small-note{margin-top:28px;color:#ada0c7;font-size:11px}.small-note span{color:#f5c8e6}
/* header */
.header{position:relative;z-index:40;height:96px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:0 clamp(23px,4.8vw,85px);background:rgba(11,14,37,.72);border-bottom:1px solid rgba(222,188,255,.11);backdrop-filter:blur(22px)}.brand{display:flex;align-items:center;gap:11px;min-width:175px}.brand-icon{font-size:36px;color:var(--pink);line-height:1;text-shadow:0 0 20px #fa89d36a}.brand strong{display:block;font-size:16px;font-weight:850}.brand small{display:block;font-size:8px;color:#a9a5ca;letter-spacing:.22em;margin-top:4px}.chapters{display:flex;align-items:center;gap:8px}.nav-step{position:relative;display:flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:30px;background:transparent;color:#b4a9cd;padding:8px 10px;font-size:11px;transition:.3s}.nav-step b{display:grid;place-items:center;font-size:11px;font-weight:600;width:24px;height:24px;border:1px solid #70658e;border-radius:50%}.nav-step.selected{background:rgba(176,137,253,.16);border-color:rgba(200,170,255,.3);color:#fff}.nav-step.selected b{background:linear-gradient(135deg,#ffabd4,#aa9aff);border-color:transparent;color:#261737}.nav-step:hover{color:#fff;background:rgba(192,167,255,.1)}.sound-shortcut{width:43px;height:43px;border:1px solid #79689082;background:#ffffff0c;border-radius:50%;color:#ffe4ff;display:flex;align-items:center;justify-content:center;gap:3px;font-size:19px}.sound-lines{display:flex;gap:2px;align-items:end;height:13px}.sound-lines i{background:#ed9fe4;width:2px;height:6px;animation:musicBeat 1s ease-in-out infinite alternate}.sound-lines i:nth-child(2){height:11px;animation-delay:.2s}.sound-lines i:nth-child(3){height:8px;animation-delay:.4s}body:not(.playing) .sound-lines i{animation:none;height:3px}.top-progress{height:2px;background:#ffffff0d}.top-progress span{display:block;width:16.666%;height:100%;background:linear-gradient(90deg,var(--pink),var(--purple),var(--blue));transition:width .7s}
/* scenes core */
.scene{min-height:calc(100svh - 154px);position:relative;overflow:clip;display:flex;align-items:center;justify-content:center;padding:32px 0 70px}.scene[hidden]{display:none!important}.scene-inner{position:relative;width:min(1240px,calc(100% - 108px));min-height:610px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:35px;margin:auto}.scene-copy{position:relative;z-index:3;padding:26px 0}.scene-index{display:flex;gap:14px;align-items:center;color:#baaacd;font-size:12px;margin-bottom:30px}.scene-index .line{width:38px;height:1px;background:linear-gradient(90deg,var(--pink),transparent)}.mini-star{color:var(--pink)}.scene .overline{margin-bottom:17px}.scene h2{font-size:clamp(39px,4.4vw,70px);line-height:1.57;max-width:680px}.body-lead{max-width:510px;font-size:15px;line-height:2.5;color:#d7cde7;margin:20px 0 26px}.actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:32px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:19px;padding:14px 26px;border-radius:100px;font-weight:750;font-size:13px;min-height:51px;transition:transform .25s,background .25s,box-shadow .25s;border:1px solid transparent}.btn:not(:disabled):hover{transform:translateY(-3px)}.btn-prime{background:linear-gradient(112deg,#ffd3ed 0%,#f8a7d9 44%,#bfa3ff 100%);color:#251b42;box-shadow:0 11px 32px #db8dd829}.btn-prime:not(:disabled):hover{box-shadow:0 12px 45px #eba7f25f}.btn-prime span:last-child{font-size:18px}.btn-text{background:transparent;color:#c1b4d4;padding-inline:7px}.btn-text:hover{color:white}.btn-soft{background:#ffffff0a;border-color:#bda3ec55;color:#f6ddfa;min-height:46px;padding:11px 20px;font-size:12px}.btn-soft:hover{background:#c29bff19}.hint{color:#bcaacc;font-size:11px}.scene-visual{position:relative;min-height:570px;display:flex;justify-content:center;align-items:center;perspective:1200px}.scene.is-active .scene-copy{animation:arrive .8s var(--ease) both}.scene.is-active .scene-visual{animation:arriveVisual 1s var(--ease) both}
/* hero crystal */
.hero-copy h2{font-size:clamp(39px,4.6vw,74px)}.hero-tag{display:inline-flex;align-items:center;gap:13px;padding:11px 17px;border-radius:40px;background:linear-gradient(90deg,#f0abdd14,#a69bff12);border:1px solid #dda9e63b;color:#f0d4f0;font-size:12px}.hero-tag span{font-size:21px;color:var(--pink)}.cosmos{transform-style:preserve-3d;transition:transform .4s ease}.cosmos:before{content:'';position:absolute;width:520px;height:520px;max-width:95%;background:radial-gradient(circle,#b47bef3b,transparent 68%);filter:blur(20px)}.orbit{position:absolute;border-radius:50%;border:1px solid #c5aeef5c;width:460px;height:460px;transform:rotateX(70deg) rotateZ(20deg);box-shadow:0 0 40px #c79dea12;animation:orbitRoll 24s linear infinite}.orbit-two{width:510px;height:510px;transform:rotateY(60deg) rotateZ(-22deg);animation-duration:31s;animation-direction:reverse;border-color:#92dfff39}.orbit-three{width:400px;height:400px;border-style:dashed;border-color:#fac9f93f;transform:rotateX(-29deg) rotateZ(60deg);animation-duration:27s}.heart-jewel{position:relative;width:min(90%,385px);filter:drop-shadow(0 32px 36px #a16bf47f) drop-shadow(0 0 38px #dd93dc4d);transform:rotate(-8deg) rotateY(-9deg);animation:heartHover 5.8s ease-in-out infinite}.heart-jewel svg{width:100%;height:auto}.cosmos-caption{position:absolute;bottom:28px;left:0;right:0;text-align:center;font:10px Georgia,serif;letter-spacing:.35em;color:#dec8ed}.spark,.floating-dot,.present-spark,.letter-star{position:absolute;color:#ffe4ff;font-size:22px;text-shadow:0 0 19px #fa9dfb;animation:float 5s infinite}.s1{top:12%;right:18%}.s2{top:27%;left:9%;color:var(--blue);animation-delay:-2s}.s3{bottom:21%;right:10%;font-size:13px;animation-delay:-3s}.s4{bottom:25%;left:16%;color:var(--pink);animation-delay:-1s}
/* flowers */
.flower-rack{display:flex;gap:14px;align-items:end;min-height:165px;margin:0 0 6px}.flower-pick{width:110px;height:154px;position:relative;display:grid;place-items:center;background:linear-gradient(150deg,#f1dbff0d,#9282c112);border:1px solid #bb9ddd32;border-radius:60px 60px 22px 22px;color:white;touch-action:none;transition:transform .25s,filter .25s,border-color .25s;transform-origin:50% 90%;overflow:visible}.flower-pick svg{width:100%;height:145px;overflow:visible;filter:drop-shadow(0 5px 14px #ef89e633)}.flower-pick:hover{transform:translateY(-8px) rotate(3deg);border-color:#d9aaff95}.flower-pick:active{transform:rotate(-8deg)}.flower-pick.picked{opacity:.45;filter:grayscale(.5);cursor:default}.flower-pick .flower-mark{position:absolute;bottom:6px;font-size:10px;color:#e5d6e8}.garden-hint{min-height:44px;margin-top:6px;font-size:12px;line-height:2;color:#b9c4e6}.bouquet-world{min-height:600px}.bouquet-glow{position:absolute;width:550px;height:520px;max-width:100%;border-radius:50%;background:radial-gradient(circle,#b48bf43d 0,#71d5f217 40%,transparent 75%)}.bouquet-label{position:absolute;top:37px;font:11px Georgia,serif;letter-spacing:.22em;color:#dec5f6}.bouquet-drop{height:435px;width:100%;position:relative;display:flex;align-items:center;justify-content:center;margin-top:28px;outline:none}.bouquet-drop.drop-target{filter:drop-shadow(0 0 25px #d6b7ff);transform:scale(1.02)}.bouquet-flowers{position:absolute;z-index:2;bottom:130px;display:flex;align-items:end;justify-content:center;width:360px;height:300px;pointer-events:none}.collected-bloom{width:128px;height:230px;position:absolute;bottom:0;filter:drop-shadow(0 10px 12px #2c1a464f);animation:flowerArrive .5s var(--ease) both}.collected-bloom svg{width:100%;height:100%}.collected-bloom:nth-child(1){left:15px;transform:rotate(-18deg);transform-origin:bottom}.collected-bloom:nth-child(2){left:112px;bottom:20px;z-index:2;transform:rotate(0deg)}.collected-bloom:nth-child(3){right:16px;transform:rotate(18deg);transform-origin:bottom}.vase-3d{width:180px;height:185px;position:absolute;bottom:24px;z-index:3}.vase-rim{position:absolute;top:0;left:0;width:180px;height:35px;border-radius:50%;background:linear-gradient(90deg,#aef5fb44,#c2a8ff6a,#aeeaff4d);border:3px solid #b9effca1;z-index:3;box-shadow:0 0 20px #8fdbff45}.vase-glass{position:absolute;top:12px;left:12px;width:156px;height:172px;clip-path:polygon(0 0,100% 0,83% 100%,17% 100%);background:linear-gradient(100deg,#92dfff65 0,#d9caff37 15%,#e5baff54 45%,#7ecfee6a 80%,#c6fdff55);border-radius:0 0 45px 45px;box-shadow:inset 12px 2px 30px #f5ecff33}.vase-base{position:absolute;bottom:0;left:42px;width:100px;height:15px;background:#bfc4fa73;border-radius:100%}.bouquet-placeholder{position:absolute;z-index:4;bottom:225px;font-size:13px;color:#d2c2e0;white-space:nowrap}.promise-message{position:absolute;bottom:0;text-align:center;color:#e3cceb;max-width:420px;font-size:13px;line-height:2.2;padding:10px 18px;border:1px solid #cba5f536;border-radius:14px;background:#201a3e76}.f1{right:8%;top:18%;color:var(--pink)}.f2{left:7%;top:41%;color:var(--blue)}.flower-ghost{position:fixed;z-index:135;pointer-events:none;width:100px;height:150px;transform:translate(-50%,-70%) rotate(-16deg);filter:drop-shadow(0 0 21px #eca7f988)}
/* memories */
.memory-picker{display:flex;gap:10px;flex-wrap:wrap}.memory-pill{padding:10px 14px;border:1px solid #c5a2f650;border-radius:25px;background:#ffffff09;color:#d5c6e6;font-size:12px}.memory-pill.chosen{background:#e0b9ff28;border-color:#efb0fd;color:#fff}.memory-tip{margin:15px 0;color:#bad5f6;font-size:12px}.memory-world{min-height:610px}.photo-orbit{position:absolute;width:500px;height:500px;max-width:100%;border:1px solid #bda5fa35;border-radius:50%;transform:rotateX(65deg) rotateZ(45deg)}.photo-card{border:0;background:transparent;position:relative;width:360px;height:505px;max-width:78vw;transform:rotate(-5deg);transform-style:preserve-3d;transition:transform .7s var(--ease);perspective:1200px;text-align:right;padding:0;filter:drop-shadow(0 25px 35px #05061799)}.photo-card:hover{transform:translateY(-10px) rotate(-2deg)}.photo-card.flipped{transform:rotateY(180deg) rotate(-2deg)}.photo-front,.photo-back{backface-visibility:hidden;-webkit-backface-visibility:hidden;position:absolute;inset:0;background:#fbeefc;border-radius:7px;padding:14px;display:flex;flex-direction:column;box-shadow:0 0 0 1px #ffffff55,0 0 35px #c899fb40}.photo-front img{width:100%;height:85%;object-fit:cover;border-radius:3px;background:#5c4c87}.photo-caption{color:#42325c;height:15%;display:flex;align-items:center;justify-content:space-between;padding:2px 14px;font-size:16px;font-weight:750}.photo-caption small{font:12px Georgia,serif;color:#8a6597}.photo-back{transform:rotateY(180deg);padding:42px;background:linear-gradient(140deg,#fceefa,#e2dcff);color:#614676;align-items:center;justify-content:center;text-align:center;gap:20px}.photo-back>span{font-size:37px;color:#b878db}.photo-back strong{font-size:27px}.photo-back p{line-height:2.5;font-size:15px;color:#72527d}.photo-back small{font-size:11px;color:#9d79b5}.photo-shadow{position:absolute;width:320px;height:55px;bottom:5px;border-radius:50%;filter:blur(28px);background:#03051c9c;z-index:-1}
/* cake stage */
.cake-feedback{font-size:13px;color:#f6cbf4;line-height:2;margin:15px 0}.cake-actions{display:flex;gap:10px;flex-wrap:wrap}.micro-note{color:#afadcf;font-size:10px;line-height:2;margin-top:9px}.cake-world{overflow:visible}.cake-halo{position:absolute;width:540px;height:540px;max-width:100%;border-radius:50%;background:radial-gradient(circle,#efb1fa36,#a1bbff15 50%,transparent 75%)}.cake-stars{position:absolute;top:12%;font-size:36px;letter-spacing:70px;color:#f6ccfb;text-shadow:0 0 17px #f4a4e8;opacity:.8}.cake-art{position:relative;width:390px;height:395px;max-width:92vw;transform:translateY(20px) rotate(-3deg);filter:drop-shadow(0 18px 28px #0b08265e);transition:transform .5s}.cake-art:hover{transform:translateY(12px) rotate(0deg)}.cake-top,.cake-body,.cake-bottom,.cake-plate,.cake-plate-shadow{position:absolute;left:50%;transform:translateX(-50%)}.cake-bottom{width:350px;height:100px;bottom:61px;z-index:1;background:linear-gradient(90deg,#7e5aa6,#f0b0d8 20%,#eaa0de 55%,#815dba 100%);border-radius:18px 18px 28px 28px;box-shadow:inset 0 -20px 0 #a77fd5}.cake-bottom:before{content:'';position:absolute;top:-20px;width:100%;height:53px;border-radius:50%;background:linear-gradient(130deg,#ffdef4,#d9a7ee,#aa9ae2);box-shadow:inset 0 8px 10px #fff7}.cake-body{width:310px;height:110px;bottom:128px;z-index:3;background:linear-gradient(90deg,#8359ac,#f8c1df 18%,#f6bbeb 60%,#896cc0);border-radius:18px 18px 28px 28px;box-shadow:inset 0 -21px 0 #b78dde,0 11px 14px #5b317b5e}.cake-top{z-index:5;bottom:221px;width:310px;height:62px;border-radius:50%;background:radial-gradient(ellipse at 45% 30%,#fff7fb,#f6c5e8 70%,#d09bc8);box-shadow:inset 0 0 14px #ffe8f7,0 4px 0 #fbdbef}.cake-top-heart{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:28px;color:#d88fbf}.icing-drips{position:absolute;top:29px;width:100%;height:48px;background:linear-gradient(90deg,#ffeffc,#fbd6f2,#fceafa);clip-path:polygon(0 0,100% 0,100% 60%,95% 70%,92% 33%,89% 80%,85% 42%,81% 90%,76% 37%,72% 79%,68% 41%,63% 67%,59% 42%,55% 92%,51% 45%,47% 75%,43% 42%,38% 80%,34% 40%,29% 70%,24% 41%,19% 82%,15% 35%,10% 74%,6% 42%,0 62%)}.icing-line{position:absolute;top:20px;width:100%;height:2px;background:#fff0fc70;box-shadow:0 2px 4px #fff}.cake-dots{position:absolute;top:50px;width:100%;text-align:center;color:#fff6ff;font-size:22px;letter-spacing:12px;white-space:nowrap;opacity:.9}.cake-plate{width:390px;height:45px;border-radius:50%;bottom:48px;z-index:2;background:linear-gradient(#d9e5ff,#907cc5);border:6px solid #fce7ff;box-shadow:inset 0 8px 10px #bcb6f999}.cake-plate-shadow{width:350px;height:30px;bottom:28px;border-radius:50%;background:#05091d9e;filter:blur(15px)}.candles{position:absolute;left:50%;transform:translateX(-50%);bottom:255px;z-index:8;width:252px;height:130px;display:flex;align-items:end;justify-content:space-around}.candle{position:relative;display:block;border:0;padding:0;width:19px;height:75px;border-radius:4px 4px 3px 3px;background:repeating-linear-gradient(145deg,#ffcce6 0 8px,#fff3fa 9px 13px,#eea0d9 14px 21px);box-shadow:inset 4px 0 7px #b077c97d,0 2px 3px #b2698a99;transition:transform .2s}.candle:nth-child(2),.candle:nth-child(4){height:92px;background:repeating-linear-gradient(145deg,#b6dffd 0 9px,#fff5fc 10px 14px,#b1a3f2 15px 23px)}.candle:nth-child(3){height:105px;background:repeating-linear-gradient(145deg,#cdbdff 0 9px,#fff5fc 10px 14px,#f1acdc 15px 23px)}.candle:hover{transform:translateY(-6px)}.candle:before{content:'';position:absolute;top:-12px;left:8px;width:2px;height:14px;background:#664f64}.flame{position:absolute;top:-47px;left:-4px;width:27px;height:34px;border-radius:60% 20% 60% 50%;background:radial-gradient(ellipse at 55% 80%,#fffce5 0 13%,#ffe78a 35%,#ff9d9d 70%,#fc85ce 95%);transform:rotate(45deg);opacity:0;filter:drop-shadow(0 0 15px #ffd6a5);transition:opacity .2s}.candle.lit .flame{opacity:1;animation:flameDance .55s ease-in-out infinite alternate}.candle.lit:after{content:'';position:absolute;top:-41px;left:-18px;width:53px;height:54px;background:radial-gradient(circle,#ffe8a459,transparent 69%);pointer-events:none}.cake-floor{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#eac9f2;font:10px Georgia,serif;letter-spacing:.23em}
/* gift open */
.gift-result{background:linear-gradient(120deg,#b67fd020,#67cdf219);border:1px solid #dcacfa5b;border-radius:22px;padding:22px 23px;max-width:525px;display:none;box-shadow:0 10px 60px #ca8af419;animation:arrive .7s ease both}.gift-result.shown{display:block}.gift-result>span{font-size:25px;color:var(--pink);display:block}.gift-result strong{display:block;margin:8px 0;font-size:18px}.gift-result p{line-height:2.4;font-size:13px;color:#e6d2f4;margin-bottom:12px}.present-world{min-height:600px}.present-world:before{content:'';position:absolute;width:550px;height:550px;max-width:100%;border-radius:50%;background:radial-gradient(circle,#f6a7ee38,#aa92fe17 49%,transparent 75%)}.present-stage{position:relative;display:grid;place-items:center;width:470px;height:430px;max-width:100%;perspective:900px}.present-rays{position:absolute;width:460px;height:460px;background:repeating-conic-gradient(from 0deg,#dca0ff23 0deg 2deg,transparent 2deg 18deg);border-radius:50%;mask-image:radial-gradient(circle,transparent 17%,#000 75%);-webkit-mask-image:radial-gradient(circle,transparent 17%,#000 75%);animation:rotate 40s linear infinite}.present-action{position:relative;display:block;width:270px;height:270px;border:0;background:transparent;filter:drop-shadow(0 35px 28px #050519b9);transform:rotateX(6deg) rotateY(-12deg);transition:transform .6s var(--ease)}.present-action:hover{transform:rotateX(0deg) rotateY(7deg) translateY(-9px)}.present-box{position:absolute;left:14px;top:83px;width:242px;height:169px;border-radius:14px 14px 23px 23px;background:linear-gradient(100deg,#6e7cda 0%,#9f96f5 22%,#d1b4ff 52%,#9d8bdc 83%,#6963be);box-shadow:inset 0 -22px 27px #473e8c70,inset 12px 0 21px #b4b9ff68;border:1px solid #f8ddff78}.present-ribbon{position:absolute;z-index:4;top:80px;left:117px;width:39px;height:176px;background:linear-gradient(90deg,#fbaddd,#ffe6f8 40%,#ff9ddd);box-shadow:4px 1px 10px #54365b55}.present-lid{position:absolute;z-index:5;top:57px;left:0;width:270px;height:59px;border-radius:11px 11px 6px 6px;background:linear-gradient(100deg,#7e86dc,#c6b5ff 48%,#8c7dd1);box-shadow:inset 0 -10px 10px #6455a47b,0 9px 10px #23205570;transform-origin:17% 100%;transition:transform 1s var(--ease)}.present-lid:after{content:'';position:absolute;left:117px;top:0;width:40px;height:100%;background:linear-gradient(90deg,#ffb9e3,#ffe7f5,#f4a3d7)}.present-bow{position:absolute;z-index:6;top:6px;width:100px;height:66px;border:17px solid #f8b0e2;border-radius:60% 15% 70% 24%;filter:drop-shadow(0 6px 5px #9b78b355);transition:transform 1s var(--ease)}.present-bow.left{left:48px;transform:rotate(24deg)}.present-bow.right{left:124px;transform:rotate(-28deg) scaleX(-1)}.present-knot{position:absolute;z-index:8;top:49px;left:124px;width:28px;height:29px;border-radius:50%;background:#ffe1f4;transition:transform 1s var(--ease)}.present-heart{position:absolute;z-index:7;top:141px;left:119px;color:#fff3fc;font-size:38px;text-shadow:0 0 13px #fff;transition:opacity .5s}.present-inside{position:absolute;z-index:1;left:92px;top:85px;font-size:90px;color:#ffb6ec;filter:drop-shadow(0 0 24px #ef86fa);transform:scale(.2) translateY(85px);opacity:0;transition:transform 1s var(--ease),opacity .5s}.present-action.open .present-lid{transform:translateY(-130px) rotate(-14deg) rotateX(36deg)}.present-action.open .present-bow.left{transform:translate(-20px,-130px) rotate(-4deg)}.present-action.open .present-bow.right{transform:translate(20px,-130px) rotate(-32deg) scaleX(-1)}.present-action.open .present-knot{transform:translateY(-140px)}.present-action.open .present-inside{transform:translateY(-70px) scale(1);opacity:1}.present-action.open .present-heart{opacity:0}.present-caption{position:absolute;bottom:45px;color:#e8cdf1;font-size:14px}.ps1{top:15%;right:15%}.ps2{bottom:24%;left:12%;color:var(--blue)}.ps3{top:23%;left:10%;color:var(--pink)}
/* envelope and letter */
.envelope-world{min-height:580px}.envelope-halo{position:absolute;width:520px;height:520px;max-width:100%;background:radial-gradient(circle,#ebb4f447,#7ed1fa13 54%,transparent 75%);border-radius:50%}.envelope-action{position:relative;border:0;background:transparent;width:390px;height:305px;max-width:92%;perspective:900px;filter:drop-shadow(0 20px 40px #08081b9c);transform:rotate(-5deg);transition:transform .4s}.envelope-action:hover{transform:translateY(-8px) rotate(0deg)}.envelope-back{position:absolute;bottom:28px;left:0;width:100%;height:220px;border-radius:9px;background:linear-gradient(130deg,#cdb8ff,#fbd2ee,#a6afe9)}.envelope-front{position:absolute;z-index:4;bottom:28px;left:0;width:100%;height:220px;background:linear-gradient(30deg,#d7baf5,#f5c6ed 60%,#b2baf8);clip-path:polygon(0 0,50% 53%,100% 0,100% 100%,0 100%);border-radius:8px}.envelope-flap{position:absolute;z-index:5;bottom:97px;left:0;width:100%;height:150px;clip-path:polygon(0 0,100% 0,50% 90%);background:linear-gradient(140deg,#fee1f5,#d9b8fc);transform-origin:top center;transition:transform .85s var(--ease),z-index 0s .4s}.envelope-paper{position:absolute;z-index:3;left:24px;bottom:48px;width:calc(100% - 48px);height:176px;background:#fff5fc;border:1px solid #ecc3e8;border-radius:3px;color:#9b6fb3;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:8px;transition:transform 1.1s var(--ease)}.envelope-paper span{font:10px Georgia,serif;letter-spacing:.16em}.envelope-paper b{font-size:65px;font-weight:400}.wax-seal{position:absolute;z-index:6;bottom:121px;left:calc(50% - 26px);width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ff9aca,#bc72bc 75%);box-shadow:0 5px 14px #ab55996b,inset 0 0 0 4px #ffc5eb6e;display:grid;place-items:center;font-size:29px;color:white;transition:opacity .3s}.envelope-action.open .envelope-flap{transform:rotateX(180deg);z-index:1}.envelope-action.open .envelope-paper{transform:translateY(-115px)}.envelope-action.open .wax-seal{opacity:0}.envelope-hint{position:absolute;bottom:60px;font-size:14px;color:#d3c4ea}.l1{top:18%;right:9%}.l2{bottom:20%;left:14%;color:var(--blue)}.letter-reveal{display:none;max-height:min(48vh,400px);overflow-y:auto;overscroll-behavior:contain;padding:24px 25px;border-radius:20px;border:1px solid #e8b9f058;background:linear-gradient(140deg,#efb7ef21,#b5ccff16);scrollbar-color:#b99fe7 transparent}.letter-reveal.shown{display:block;animation:arrive .8s ease both}.letter-content{font-size:13px;color:#f2def1;line-height:2.75}.letter-content p{margin:0 0 13px}.letter-content p:first-child{font-size:18px;color:#ffcfec;font-weight:850}.letter-signed{font-size:12px;color:#ebc1e6;padding:13px 0;border-top:1px solid #ffffff25}.wishes>p{font-size:12px;margin:12px 0;color:#d0d4f2}.wish-options{display:flex;flex-wrap:wrap;gap:8px}.wish-options button{border:1px solid #a6b7ed66;background:#ffffff0d;border-radius:22px;color:#fff;font-size:11px;padding:9px 12px}.wish-options button.selected{background:linear-gradient(125deg,#f6a4d7,#978bda);color:#261631}.wish-result{font-size:13px;line-height:2;color:#a4e6fc;min-height:24px;margin-top:12px}
/* footer/player */
.footer{position:relative;z-index:2;min-height:58px;border-top:1px solid #ffffff12;display:flex;gap:25px;justify-content:space-around;align-items:center;padding:17px 260px 17px 28px;color:#b6accd;font-size:10px}.music-dock{position:fixed;left:24px;bottom:21px;z-index:80;min-width:345px;display:flex;align-items:center;gap:9px;padding:11px 13px 17px;background:rgba(34,27,66,.92);backdrop-filter:blur(28px);border:1px solid #bea9fa5e;border-radius:20px;box-shadow:0 14px 48px #0303189f,0 0 32px #bfa6ff12;direction:rtl}.music-cover{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(140deg,#f09ccf,#aaa3f9,#72cffa);color:white;font-size:21px;position:relative;flex-shrink:0}.mini-spin{position:absolute;inset:5px;border:1px dashed #ffffff73;border-radius:50%}.playing .mini-spin{animation:rotate 9s linear infinite}.music-info{min-width:105px;width:123px}.music-info strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.music-info small{display:block;font-size:9px;color:#bbacce;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.music-dock button{background:none;color:#f9e4fe;border:0;padding:4px;font-size:15px;line-height:1;min-width:20px}.music-dock button.play-pause{width:33px;height:33px;background:linear-gradient(130deg,#f7b5e7,#b6a5fd);color:#36244d;border-radius:50%;display:grid;place-items:center}.music-progress{position:absolute;bottom:0;left:15px;right:15px;height:14px;display:flex;align-items:center}.music-progress input{width:100%;height:3px;accent-color:#f8a3da;cursor:pointer}.playlist-panel{position:fixed;left:24px;bottom:101px;width:365px;max-width:calc(100vw - 30px);z-index:83;border:1px solid #cea3fb73;background:#222044ee;backdrop-filter:blur(30px);box-shadow:0 12px 60px #020315c9;border-radius:20px;padding:20px}.playlist-panel[hidden]{display:none}.playlist-heading{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-bottom:14px}.playlist-heading button{border:0;background:#ffffff1c;color:#fff;font-size:22px;border-radius:50%;height:29px;width:29px}.track-list{max-height:215px;overflow:auto;display:flex;flex-direction:column;gap:6px}.track-row{display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #ffffff14;border-radius:10px;background:#ffffff08;color:#e6d8f6;cursor:pointer;text-align:right;width:100%;font-size:12px}.track-row small{color:#bdaace;display:block;margin-top:2px;font-size:10px}.track-row.current{border-color:#efb5f895;background:#e6b1fe23}.track-row .track-index{color:#eab8eb;font:12px Georgia,serif;min-width:25px}.playlist-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.upload-music{cursor:pointer;padding:8px 11px;border:1px dashed #bda2f5;border-radius:9px;font-size:10px}.volume-label{display:flex;align-items:center;gap:5px;font-size:10px;color:#c2b4d2}.volume-label input{width:69px;accent-color:#dda4fa}.playlist-hint{color:#b6a5ca;line-height:1.9;font-size:9px;margin-top:12px}.toast{position:fixed;left:50%;bottom:95px;transform:translate(-50%,15px);z-index:160;background:#f1dbfa;color:#271942;border-radius:40px;padding:12px 21px;box-shadow:0 7px 25px #0008;font-size:12px;opacity:0;pointer-events:none;transition:.3s;text-align:center;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes float{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-16px) rotate(9deg)}}@keyframes giftFloat{0%,100%{transform:translateY(14px) rotate(-5deg) rotateX(7deg)}50%{transform:translateY(0) rotate(0deg) rotateX(-3deg)}}@keyframes heartHover{0%,100%{transform:translateY(6px) rotate(-8deg) rotateY(-9deg) scale(1)}50%{transform:translateY(-16px) rotate(-3deg) rotateY(8deg) scale(1.04)}}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes orbitRoll{to{transform:rotate(360deg) rotateX(65deg)}}@keyframes musicBeat{to{height:3px}}@keyframes auroraShift{to{transform:translate(12vw,-6vh) scale(1.3)}}@keyframes arrive{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}@keyframes arriveVisual{from{opacity:0;transform:translateY(30px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes flowerArrive{from{opacity:0;scale:.7}to{opacity:1;scale:1}}@keyframes flameDance{to{transform:rotate(37deg) scale(.85) translate(3px,-3px)}}
@media(max-width:1230px){.chapters{gap:0}.nav-step{gap:5px;padding:7px 5px}.nav-step span{font-size:10px}.scene-inner{width:calc(100% - 72px);gap:20px}.scene h2{font-size:clamp(35px,4.2vw,60px)}.photo-card{width:300px;height:433px}.scene-visual{min-height:500px}.cosmos .orbit{max-width:94%}.footer{padding-left:390px}}
@media(max-width:1010px){.header{padding:0 23px;gap:12px;height:85px}.brand{min-width:unset}.nav-step span{display:none}.nav-step{padding:6px}.nav-step b{width:28px;height:28px}.scene-inner{width:min(840px,calc(100% - 60px));grid-template-columns:1fr 1fr}.scene h2{font-size:clamp(32px,4.2vw,48px)}.body-lead{font-size:13px;line-height:2.35}.scene-copy{padding:15px 0}.flower-rack{gap:6px}.flower-pick{width:94px}.cake-actions{gap:6px}.cake-actions .btn{font-size:11px;padding:10px 12px}}
@media(max-width:770px){.header{height:74px}.brand strong{font-size:13px}.brand-icon{font-size:27px}.brand small{font-size:6px}.scene{min-height:auto;padding:32px 0 120px}.scene-inner{width:calc(100% - 36px);min-height:unset;display:flex;flex-direction:column;gap:3px}.scene-copy{padding:19px 3px 0;width:min(100%,570px);text-align:center}.scene-index,.actions{justify-content:center}.scene-index{margin-bottom:17px}.scene .overline{font-size:9px}.scene h2,.hero-copy h2{font-size:clamp(36px,7vw,56px);line-height:1.55}.body-lead{font-size:13px;line-height:2.35;margin:13px auto 18px;max-width:500px}.scene-visual{min-height:390px;width:100%}.scene-inner>.scene-visual{order:1}.scene-inner>.scene-copy{order:0}.cosmos{height:420px}.cosmos .orbit{width:330px;height:330px}.cosmos .orbit-two{width:360px;height:360px}.cosmos .orbit-three{width:290px;height:290px}.heart-jewel{width:250px}.cosmos-caption{bottom:10px;font-size:9px}.scene-hero .scene-visual{min-height:400px}.scene-index{font-size:11px}.hero-tag{font-size:11px}.flower-rack{justify-content:center}.bouquet-world{min-height:480px}.bouquet-drop{height:340px}.bouquet-label{top:5px}.bouquet-glow{height:390px}.bouquet-flowers{bottom:115px}.vase-3d{bottom:15px}.promise-message{bottom:3px}.memory-world{min-height:510px}.photo-card{width:310px;height:429px}.cake-world{min-height:470px}.cake-art{scale:.9}.cake-floor{bottom:0}.present-world{min-height:460px}.present-caption{bottom:0}.envelope-world{min-height:415px}.envelope-action{scale:.85}.envelope-hint{bottom:0}.footer{flex-direction:column;gap:6px;text-align:center;padding:18px 20px 106px;min-height:130px}.music-dock{left:50%;transform:translateX(-50%);bottom:12px;min-width:350px;max-width:calc(100vw - 26px);z-index:80}.playlist-panel{left:50%;transform:translateX(-50%);bottom:93px}.letter-reveal{max-height:350px;text-align:right}}
@media(max-width:470px){.header{height:67px;padding:0 14px}.brand-icon{font-size:24px}.brand strong{font-size:11px}.brand small{font-size:5px;letter-spacing:.12em}.chapters{gap:0}.nav-step b{width:24px;height:24px;font-size:10px}.nav-step{padding:4px}.sound-shortcut{width:32px;height:32px;font-size:14px}.sound-lines{display:none}.cover:before{inset:12px}.cover:after{inset:18px}.cover-box-wrap{width:218px;height:199px;scale:.83;margin-bottom:-10px}.cover h1{font-size:39px}.cover-sub{font-size:12px;margin:15px 0 21px}.cover .eyebrow{font-size:8px;letter-spacing:.15em}.cover-start{min-width:210px}.small-note{font-size:10px;margin-top:23px}.scene{padding:25px 0 98px}.scene-inner{width:calc(100% - 28px)}.scene-index{font-size:10px;gap:8px;margin-bottom:12px}.scene-index .line{width:16px}.scene .overline{font-size:8px;letter-spacing:.17em;margin-bottom:9px}.scene h2,.hero-copy h2{font-size:clamp(33px,8.7vw,42px)}.body-lead{font-size:12px;margin:11px auto 15px;line-height:2.3}.hero-tag{font-size:10px}.actions{margin-top:22px;gap:10px}.btn{padding:12px 18px;min-height:47px;font-size:11px}.hint{font-size:10px}.scene-hero .scene-visual{min-height:300px}.cosmos{min-height:300px}.cosmos .orbit{width:265px;height:265px}.cosmos .orbit-two{width:280px;height:280px}.cosmos .orbit-three{width:245px;height:245px}.heart-jewel{width:215px}.cosmos-caption{font-size:7px;bottom:1px}.flower-pick{width:29%;height:130px}.flower-pick svg{height:125px}.flower-rack{gap:6px;min-height:137px}.garden-hint{font-size:11px}.bouquet-world{min-height:400px}.bouquet-drop{height:310px}.bouquet-flowers{scale:.83;bottom:92px}.vase-3d{scale:.75;bottom:-10px}.bouquet-placeholder{bottom:175px;font-size:11px}.promise-message{font-size:11px;padding:7px 10px}.memory-world{min-height:435px}.photo-card{width:257px;height:354px}.photo-caption{font-size:13px}.photo-back{padding:25px;gap:12px}.photo-back strong{font-size:20px}.photo-back p{font-size:12px}.photo-orbit{width:340px;height:340px}.cake-world{min-height:340px}.cake-art{scale:.71;transform:translateY(0);transform-origin:center;flex-shrink:0}.cake-art:hover{transform:translateY(0)}.cake-floor{bottom:5px;font-size:8px}.cake-actions{justify-content:center}.cake-actions .btn{font-size:10px;padding:10px 14px}.cake-feedback{font-size:11px}.micro-note{font-size:9px}.present-world{min-height:340px}.present-stage{scale:.78;height:340px}.present-caption{bottom:0;font-size:12px}.envelope-world{min-height:325px}.envelope-action{scale:.67;flex-shrink:0}.envelope-hint{font-size:12px}.letter-reveal{padding:16px 14px}.letter-content{font-size:11px}.letter-content p:first-child{font-size:16px}.music-dock{min-width:320px;padding:9px 9px 14px;border-radius:17px;gap:6px}.music-cover{width:34px;height:34px;font-size:18px}.music-info{width:100px;min-width:92px}.music-info strong{font-size:10px}.music-info small{font-size:8px}.music-dock button{font-size:13px;padding:3px}.music-dock button.play-pause{width:30px;height:30px}.playlist-panel{padding:16px;bottom:79px}.footer{padding-bottom:94px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* A crystal heart contains four small messages; keyboard and touch accessible. */
.heart-secret{margin-top:14px;color:#b8d8f9;font-size:11px;min-height:25px;line-height:2}.cosmos[role=button]{cursor:pointer;outline-offset:-22px}.cosmos.heart-touched .heart-jewel{filter:drop-shadow(0 23px 44px #f5a0e6c0) drop-shadow(0 0 65px #86ddff99)}
@media(max-width:770px){.heart-secret{margin-top:8px}}

/* Playlist personalization */
.playlist-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.playlist-bottom select{max-width:180px;background:#231e39;color:#f7ebff;border:1px solid rgba(196,155,240,.5);border-radius:9px;padding:7px 10px;font:12px Tahoma,Arial,sans-serif}
.track-row .track-credit{display:block;opacity:.8;font-size:10px;color:#e3c5ff;line-height:1.5}
.track-row .track-license-link{display:inline-block;color:#9edcff;font-size:10px;text-decoration:underline;margin-top:4px}

/* Chapter soundtrack: elegant modal, accessible focus and touch targets */
.cover-music-start{position:relative;z-index:4;margin-top:13px;border:1px solid rgba(224,181,255,.48);color:#f9dafa;background:rgba(204,157,253,.12);border-radius:999px;padding:9px 18px;min-height:43px;font-size:12px;box-shadow:0 5px 30px rgba(95,65,159,.15);transition:background .2s,transform .2s}
.cover-music-start:hover{background:rgba(204,157,253,.24);transform:translateY(-2px)}
.cover-music-note{margin:9px 0 0;color:#d5bbeb;font-size:11px;min-height:1.8em}
.chapter-music-dialog{position:fixed;inset:auto;margin:auto;max-width:min(490px,calc(100vw - 30px));width:100%;box-sizing:border-box;border:1px solid rgba(236,190,255,.6);border-radius:26px;color:#fff3ff;background:radial-gradient(ellipse at 15% 0%,rgba(170,117,244,.32),transparent 70%),linear-gradient(145deg,#30254f,#191b39);box-shadow:0 28px 120px rgba(5,6,23,.85),inset 0 0 45px rgba(201,120,241,.08);padding:31px 26px;text-align:center;direction:rtl;font-family:Tahoma,Arial,sans-serif;line-height:1.8;overflow:auto;max-height:calc(100dvh - 40px)}
.chapter-music-dialog::backdrop{background:rgba(4,3,20,.74);backdrop-filter:blur(9px)}
.chapter-music-decoration{font-size:27px;color:#edb2fd;letter-spacing:10px}.music-dialog-eyebrow{font:10px Georgia,serif;letter-spacing:.16em;color:#91dbff;margin:12px 0}
.chapter-music-dialog h2{font-size:clamp(19px,4.4vw,26px);font-weight:700;line-height:1.55;margin:10px 0;color:#ffe7f6}.chapter-music-dialog p{color:#e0d3ed;font-size:12px}
.chapter-music-comparison{display:flex;align-items:center;justify-content:space-between;gap:11px;margin:23px 0;background:rgba(15,11,34,.48);border:1px solid rgba(224,185,252,.23);border-radius:15px;padding:16px 13px}
.chapter-music-comparison>div{min-width:0;flex:1}.chapter-music-comparison small{display:block;color:#c6acd9;font-size:10px;margin-bottom:5px}.chapter-music-comparison strong{display:block;font-size:12px;color:#fff;overflow-wrap:anywhere}.chapter-music-comparison>span{color:#ffb1e1}
.chapter-music-actions{display:grid;gap:11px}.chapter-music-actions button{min-height:49px;border-radius:13px;padding:12px 10px;border:1px solid rgba(229,199,255,.47);font:700 12px Tahoma,Arial,sans-serif;cursor:pointer}
.chapter-music-change{background:linear-gradient(115deg,#f1a8df,#b2a7ff,#90d6ff);color:#1d1a35;border:none!important}.chapter-music-keep{background:rgba(220,190,255,.08);color:#f4dafa}.chapter-music-actions button:focus-visible,.cover-music-start:focus-visible{outline:3px solid #8cdefd;outline-offset:3px}
.chapter-music-foot{font-size:10px!important;color:#bcb1cc!important;margin-bottom:0}
@media(max-width:470px){.chapter-music-dialog{padding:23px 16px;border-radius:20px}.chapter-music-comparison{padding:12px 9px;gap:6px}.chapter-music-comparison strong{font-size:11px}.cover-music-start{font-size:11px}}

/* V4.2: unobtrusive soundtrack switcher; never blocks the chapter. */
.chapter-music-dialog{
  position:fixed; inset:auto 22px calc(100px + env(safe-area-inset-bottom, 0px)) auto;
  display:block; z-index:100; margin:0; width:min(430px, calc(100vw - 32px));
  max-width:none; max-height:min(70dvh, 610px); overflow-y:auto;
  padding:20px 21px 16px; border-radius:20px; text-align:center;
  overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
}
.chapter-music-dialog[hidden]{display:none!important}
.music-dialog-dismiss{position:absolute;top:8px;left:9px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.27);border-radius:50%;width:33px;height:33px;color:white;font-size:22px;line-height:1;cursor:pointer}
.chapter-music-dialog .music-dialog-eyebrow{margin:2px 0 6px}
.chapter-music-dialog h2{margin:7px 0;font-size:clamp(17px,4vw,22px)}
.chapter-music-dialog .chapter-music-comparison{margin:12px 0;padding:9px 12px}
.chapter-music-dialog .chapter-music-actions{gap:7px}
.chapter-music-dialog .chapter-music-actions button{min-height:43px}
.chapter-music-dialog .chapter-music-decoration{font-size:20px}
.chapter-music-dialog .chapter-music-foot{margin-top:9px;font-size:10px!important}
@media(max-width:770px){
 .chapter-music-dialog{right:12px;left:12px;bottom:calc(85px + env(safe-area-inset-bottom, 0px));width:auto;max-height:min(63dvh, 460px);padding:15px 13px 12px}
 .chapter-music-dialog .chapter-music-decoration{font-size:15px}
 .chapter-music-dialog .music-dialog-eyebrow{font-size:8px}
 .chapter-music-dialog #musicChoiceDetail{font-size:11px}
 .chapter-music-dialog .chapter-music-comparison{margin:8px 0;padding:8px}
 .chapter-music-dialog .chapter-music-actions{grid-template-columns:1fr 1fr;gap:7px}
 .chapter-music-dialog .chapter-music-actions button{font-size:11px;min-height:46px;line-height:1.5;padding:7px 5px}
 .chapter-music-dialog .chapter-music-foot{display:none}
}
@media(max-width:370px){
 .chapter-music-dialog{bottom:calc(82px + env(safe-area-inset-bottom, 0px));max-height:59dvh}
 .chapter-music-dialog .chapter-music-actions{grid-template-columns:1fr}
 .chapter-music-dialog .chapter-music-actions button{min-height:36px}
 .chapter-music-dialog .chapter-music-decoration,.chapter-music-dialog .music-dialog-eyebrow{display:none}
}
@media(prefers-reduced-motion:reduce){.chapter-music-dialog{transition:none!important;animation:none!important}}
/* Narrow iPhone/Android viewport: keep six steps and player inside the screen. */
@media(max-width:370px){
 .header{padding-left:7px;padding-right:7px;gap:5px}
 .brand{min-width:25px;gap:0;flex:0 0 25px}
 .brand strong,.brand small{display:none}
 .brand-icon{font-size:23px}
 .chapters{gap:0;min-width:0;flex:1;justify-content:space-between}
 .nav-step{padding:2px}
 .nav-step b{width:22px;height:22px;font-size:9px}
 .sound-shortcut{width:27px;height:27px;flex:0 0 27px}
}

/* V4.2 hotfix: place music choice in normal document flow to avoid any overlap 
   with flowers, gift or controls, on desktops as well as mobile devices. */
.chapter-music-dialog{position:relative;top:auto;right:auto;bottom:auto;left:auto;inset:auto;z-index:3;display:block;width:min(780px,calc(100% - 36px));max-width:none;max-height:none;overflow:visible;margin:14px auto 6px;padding:13px 20px 15px;border-radius:20px;box-shadow:0 10px 40px rgba(5,6,23,.52)}
.chapter-music-dialog .chapter-music-decoration{display:none}
.chapter-music-dialog .music-dialog-eyebrow{font-size:9px;margin:0 0 3px}
.chapter-music-dialog h2{font-size:18px;margin:3px 0 4px}
.chapter-music-dialog #musicChoiceDetail{font-size:11px}
.chapter-music-dialog .chapter-music-comparison{margin:6px auto;padding:7px 10px;max-width:520px}
.chapter-music-dialog .chapter-music-actions{display:flex;justify-content:center;gap:10px}
.chapter-music-dialog .chapter-music-actions button{min-height:42px;padding:8px 14px;flex:1;max-width:260px}
.chapter-music-dialog .chapter-music-foot{display:none}
@media(max-width:770px){
 .chapter-music-dialog{position:relative;top:auto;right:auto;bottom:auto;left:auto;inset:auto;width:calc(100% - 20px);max-height:none;overflow:visible;margin:9px auto 0;padding:13px 11px 13px}
 .chapter-music-dialog .chapter-music-actions{display:flex;flex-direction:row;gap:6px}
 .chapter-music-dialog .chapter-music-actions button{font-size:11px;line-height:1.6;min-height:42px;padding:7px 6px}
}
@media(max-width:370px){
 .chapter-music-dialog{top:auto;right:auto;bottom:auto;left:auto;inset:auto;max-height:none}
 .chapter-music-dialog .chapter-music-actions{display:grid;grid-template-columns:1fr}
 .chapter-music-dialog .chapter-music-actions button{min-height:35px;width:100%;max-width:none}
 .chapter-music-dialog #musicChoiceDetail{display:none}
}
