:root{--ink:#292432;--muted:#777180;--purple:#8060cf;--line:rgba(255,255,255,.85);--glass:rgba(255,255,255,.58);--shadow:0 12px 30px rgba(70,51,94,.07),inset 0 1px 0 #fff}
body{color:var(--ink);background:radial-gradient(ellipse at 15% 20%,#e5ddf6,transparent 48%),radial-gradient(ellipse at 90% 65%,#f8e2db,transparent 40%),#eeebef;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:28px 18px;line-height:1.6}
#app{max-width:880px;min-height:calc(100vh - 56px);background:rgba(249,247,249,.78);border:1px solid #fff;border-radius:36px;box-shadow:0 28px 70px #49385b20;overflow:clip;backdrop-filter:blur(24px)}
.screen{min-height:calc(100vh - 58px)}
.bar{padding:20px 30px;background:rgba(249,247,250,.91);backdrop-filter:blur(20px);border-bottom:1px solid #eae5ed;gap:12px}
.bar .title{font-size:16px;letter-spacing:.07em}.bar .back,.bar .home,.bar .favbtn,.heart{border-radius:14px;background:#ffffffb0;color:var(--ink);border:1px solid #fff;padding:12px;box-shadow:0 4px 12px #57456908}.bar .crumb{color:var(--muted)}
.body{padding:28px 30px;gap:20px}h1,h2{letter-spacing:-.035em;line-height:1.2}h1{font-size:36px}h2{font-size:24px}.sub{color:var(--muted);font-size:14px}.btn{padding:15px 20px;border-radius:20px;font-size:14px;font-family:inherit;transition:transform .2s,box-shadow .2s}.btn.primary{background:linear-gradient(110deg,#bb86e8,#9272ed 65%,#8185ef);color:#fff;box-shadow:0 9px 22px #9976d435;border:1px solid #ffffff55}.btn.outline,.btn.ghost{background:#ffffff91;border:1px solid #fff;color:#655771}.btn:hover{transform:translateY(-2px)}
.welcome{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;background:#fff;min-height:310px;border:1px solid white;box-shadow:var(--shadow)}.welcome-wave{position:absolute;right:0;top:0;width:56%;height:100%;object-fit:cover;object-position:50% 60%;z-index:-1;opacity:.8;mask-image:linear-gradient(90deg,transparent,#000 28%)}.welcome-copy{padding:34px;max-width:70%}.eyebrow{font-size:9px;letter-spacing:.19em;color:#887493;font-weight:600}.welcome h1{font-size:46px;margin:14px 0}.welcome p{font-size:13px;color:#807486;max-width:280px;margin-bottom:22px}.welcome .btn{width:auto;min-width:182px;display:flex;gap:28px;align-items:center;justify-content:space-between}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:12px}.section-heading h2{font-size:22px}.section-heading>span{font-size:11px;color:var(--muted)}
.grid2{gap:16px}.grid3{gap:12px}.card,.row,.tile,.album-row,.check-row{background:var(--glass);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}.card:hover,.row:hover,.tile:hover,.album-row:hover{transform:translateY(-3px);box-shadow:0 16px 28px #59436d15,inset 0 1px 0 #fff}.card{padding:22px}.card.highlight{border:1px solid #fff;background:linear-gradient(130deg,#e7dcffbd,#f9e5ee70 65%,#fff9)}.card .nm{font-size:16px;line-height:1.35;margin-top:12px}.card .ds{font-size:12px;color:var(--muted);line-height:1.65;margin-top:8px}.hubgrid .card{min-height:212px;padding:24px}.hubgrid .card .ic{width:48px;height:48px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(140deg,#ede3ff,#bea0ee);box-shadow:inset 1px 1px 2px #fff,0 7px 16px #9b78bb25;font-size:23px}.hubgrid .card:nth-child(2) .ic{background:linear-gradient(140deg,#f9e8f5,#d3b4f1)}.hubgrid .card:nth-child(3) .ic{background:linear-gradient(140deg,#d5f3fb,#9fbff3)}.hubgrid .card:nth-child(4) .ic{background:linear-gradient(140deg,#ffe9cb,#f4bdb0)}.hubgrid .card:last-child{grid-column:1/-1;min-height:160px;background:linear-gradient(115deg,#e7dcfbb0,#fbe7ed8a,#fcebdca0);padding-right:36%}.hubgrid .tag{position:static;display:inline-block;margin-top:14px;background:#ffffffa8;color:#806295;font-size:10px;font-weight:500}.tag.free{background:#e7eee9;color:#53745f}.tag.paid,.tag.part{background:#ede5f4;color:#7a638b}
.library-link{display:flex;gap:16px;align-items:center;padding:20px 24px;border:1px solid #fff;border-radius:24px;background:#ffffff75;box-shadow:var(--shadow);color:var(--ink);text-align:left;cursor:pointer;font:inherit}.library-link small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.library-icon{font-size:32px;color:#9b76db}.library-arrow{margin-left:auto;color:var(--purple);font-size:24px}
.block,.result-box,.diag,.checkout,.nudge,.care,.meta{border:1px solid #e5dced;border-radius:20px;background:linear-gradient(120deg,#f2ebfaa0,#ffffffa0);padding:18px;color:var(--ink);box-shadow:inset 0 1px 0 #fff}.result-box b,.care b,.care .chev{color:#816295}.prog{background:#eae3f0;height:7px}.prog>div{background:linear-gradient(90deg,#d8b4ed,#937bee)}.row,.album-row{padding:18px}.row.open,.check-row.on{background:#eee5f8;border-color:#d3bce8}.row .rm,.album-row .rm{font-size:12px;color:var(--muted)}.album-row .rb{flex:1}.album-row .an{background:#e8dff4;color:var(--purple);border-radius:12px}.chip{border:1px solid #fff;background:#ffffff91;padding:9px 15px;color:#77677e}.chip.on,.opt.on{background:#977bcc;border-color:#977bcc;color:#fff}.flabel{color:#88798f;letter-spacing:.07em}.field,.opt{background:#fff9;border:1px solid #ded4e7;border-radius:16px;padding:14px;font-family:inherit}.field:focus{border-color:#a487cd;outline:3px solid #bca2e32a}.check-row .cbx{border-color:#b091d0;color:#9166b8}.check-row.on .cbx{background:#aa89cf}.swap-row{border-color:#e0d1ea;border-radius:15px}.swap-row.picked{background:#f0e6f6;border-color:#ba9bcf}.tile .th{background:linear-gradient(135deg,#e8ccf2,#d2c5f3 50%,#b8dbee);color:#6e5a88;height:110px}.tile .tb{padding:16px}.player{background:radial-gradient(ellipse at top left,#d4b6e8,transparent 65%),linear-gradient(130deg,#7772b4,#b69bcc);border:1px solid #ffffffa0;border-radius:26px;padding:40px 24px;box-shadow:var(--shadow)}.player small{color:#fff!important}.player .play{color:white}.footer{border-color:#e4dce8;gap:12px;margin-top:12px;padding-top:24px}.soc{border:1px solid #fff;background:#ffffff8c;border-radius:15px;color:#776480}.legal{border-color:#e6dfea}.legal-req,.legal-copy{color:#938899}.legal-links a{color:#82708f}
.entry{background:#fff url('wave-new.png') no-repeat right center;background-size:auto 100%;color:var(--ink);position:relative;gap:22px;padding:48px 28px}.entry .sub,.entry small.note{color:#796a85!important;background:#ffffffbd;border-radius:16px;padding:8px}.entry h1{letter-spacing:.12em;font-size:32px}.entry-logo{width:85px;height:85px;object-fit:contain}.video-circle{width:130px;height:130px;border:1px solid white;background:linear-gradient(140deg,#f2dff3d9,#d1c6f3eb);box-shadow:0 12px 32px #77569923,inset 0 1px 0 #fff;backdrop-filter:blur(15px)}.video-circle .vp{color:#9473bc}.video-circle .vc{color:#79628e}.entry-photo{width:180px;height:180px;border-radius:50%;object-fit:cover;border:1px solid white;box-shadow:0 12px 32px #77569923}.success{min-height:65vh}:focus-visible{outline:3px solid #9b79cd;outline-offset:4px}
@media(min-width:700px){.screen:not(#hub):not(#entry)>.body{max-width:680px;width:100%;margin:0 auto}.hubgrid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body{padding:0;background:#f3eff5}#app{border-radius:0;border:0;min-height:100vh}.screen{min-height:100vh}.bar{padding:16px 20px}.body{padding:20px 16px;gap:16px}.welcome{min-height:302px;border-radius:25px}.welcome-copy{padding:26px 22px;max-width:85%}.welcome h1{font-size:39px}.welcome p{max-width:220px}.welcome-wave{width:58%;opacity:.48}.eyebrow{font-size:8px}.section-heading{display:block}.section-heading h2{font-size:21px}.section-heading>span{display:block;margin-top:7px}.hubgrid{gap:12px}.hubgrid .card{padding:18px 15px;min-height:226px}.card .nm{font-size:15px}.card .ds{font-size:12px}.hubgrid .tag{font-size:9px;padding:3px 7px}.hubgrid .card:last-child{padding-right:18px;min-height:170px}.entry h1{font-size:28px}.puzzle .card .nm{font-size:12px}.library-link{padding:18px}.album-row{flex-wrap:wrap}.entry{background-position:65% center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* Edge decoration has its own space and never sits beneath the content. */
#hub .welcome{margin:-28px -30px 0;border:0;border-radius:0;box-shadow:none;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) 32%;min-height:330px}
#hub .welcome-copy{grid-column:1;max-width:none;min-width:0;padding:34px 30px;background:transparent}
#hub .welcome-wave{right:0;top:0;width:32%;height:100%;object-fit:cover;object-position:right center;opacity:.8;mask-image:linear-gradient(90deg,transparent,#000 18%);pointer-events:none}
.entry{background:#fff;isolation:isolate;overflow:hidden;padding:48px calc(22% + 24px) 48px 32px}
.entry:after{content:"";position:absolute;inset:0 0 0 auto;width:22%;background:url('wave-new.png') right center/auto 100% no-repeat;mask-image:linear-gradient(90deg,transparent,#000 18%);z-index:-1;pointer-events:none}
.entry .sub,.entry small.note{background:transparent;padding:0}
.entry>*{max-width:100%!important}
@media(max-width:600px){
 #hub .welcome{margin:-20px -16px 0;grid-template-columns:minmax(0,1fr) 24%;min-height:310px}
 #hub .welcome-copy{padding:28px 12px 28px 20px}
 #hub .welcome-wave{width:24%;opacity:.7}
 #hub .welcome h1{font-size:clamp(30px,8.5vw,39px)}
 #hub .welcome .btn{min-width:0;width:100%;max-width:205px;gap:12px}
 .entry{padding:40px calc(18% + 16px) 40px 20px}
 .entry:after{width:18%}
 .entry h1{font-size:clamp(20px,5.5vw,28px);letter-spacing:.08em}
}

/* Full entrance wave; soften only the areas behind the copy. */
.entry{padding:48px 28px}
.entry:after{inset:0;width:100%;background-position:right center;background-size:100% 100%;mask-image:none}
.entry h1,.entry .sub,.entry small.note{position:relative;isolation:isolate}
.entry h1:before,.entry .sub:before,.entry small.note:before{content:"";position:absolute;inset:-10px -16px;z-index:-1;border-radius:22px;background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 0 18px 10px rgba(255,255,255,.65);pointer-events:none}
.entry .sub{color:#665970!important}
@media(max-width:600px){.entry{padding:40px 24px}.entry:after{width:100%;background-position:right center}.entry h1{font-size:clamp(24px,6.5vw,28px)}}

/* Smaller, proportionate wave anchored to the right edge. */
.entry:after{background-size:auto 68%;background-position:right center;background-repeat:no-repeat}
.entry h1:before,.entry .sub:before,.entry small.note:before{background:rgba(255,255,255,.48);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:0 0 14px 8px rgba(255,255,255,.4)}
@media(max-width:600px){.entry:after{background-size:auto 60%;background-position:right center}}

/* Let the lines enter from the screen edge, with the entire lower curve visible. */
.entry:after{background-size:auto 72%;background-position:right top;mask-image:none}
.entry h1:before,.entry .sub:before,.entry small.note:before{content:none}
.entry h1,.entry .sub,.entry small.note{text-shadow:0 0 5px #fff,0 0 10px #fff,0 0 16px #fff}
@media(max-width:600px){.entry:after{background-size:auto 68%;background-position:right top}}

/* New supplied wave: preserve the full artwork and its natural proportions. */
.entry:after{background-image:url('wave-new.png');background-size:contain;background-position:right top;background-repeat:no-repeat}
#hub .welcome-wave{object-fit:contain;object-position:right top;mask-image:none}
@media(max-width:600px){.entry:after{background-size:contain;background-position:right top}}

/* Frosted greeting panel and a clear area around the brand name. */
.entry:after{transform:translateX(12%)}
.entry .sub{padding:16px 20px;max-width:360px!important;border:1px solid rgba(255,255,255,.85);border-radius:22px;background:rgba(255,255,255,.65);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 8px 28px rgba(64,40,92,.07),inset 0 1px 0 rgba(255,255,255,.9);color:#655970!important;text-shadow:none}
.entry h1{position:relative;z-index:1}
@media(max-width:600px){.entry .sub{max-width:100%!important;padding:14px 16px}.entry:after{transform:translateX(16%)}}

/* Bring more of the wave back into view. */
.entry:after{transform:translateX(6%)}
@media(max-width:600px){.entry:after{transform:translateX(8%)}}

/* Restore the original wave treatment only in the home welcome block. */
#hub .welcome-wave{object-fit:cover;object-position:right center;mask-image:linear-gradient(90deg,transparent,#000 18%)}

/* Prominent social links with compact, locally rendered icons. */
.socials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.socials .soc{display:flex;align-items:center;justify-content:center;gap:9px;min-height:64px;padding:12px 10px;border:1px solid rgba(255,255,255,.95);border-radius:20px;font-weight:600;color:#594669;box-shadow:0 6px 18px rgba(89,62,119,.1),inset 0 1px 0 #fff;transition:transform .2s,box-shadow .2s}
.socials .soc:nth-child(1){background:linear-gradient(125deg,#f3dff4,#fbe5dc)}
.socials .soc:nth-child(2){background:linear-gradient(125deg,#dff0fb,#e4e7fb)}
.socials .soc:nth-child(3){background:linear-gradient(125deg,#e7defa,#dedffc)}
.social-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;flex-shrink:0;color:#fff;box-shadow:inset 0 1px 0 #ffffff50}
.social-icon svg{width:20px;height:20px}
.social-icon-instagram{background:linear-gradient(145deg,#aa77d1,#d88fb5,#edb48e)}
.social-icon-telegram{background:linear-gradient(145deg,#6cb9e8,#718fd4)}
.social-icon-max{background:linear-gradient(145deg,#8987ed,#a17ad2)}
.socials .soc:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(89,62,119,.16)}
.socials .soc:active{transform:translateY(0)}
@media(max-width:400px){.socials{gap:8px}.socials .soc{flex-direction:column;gap:7px;padding:12px 6px;font-size:12px}}

/* Use the entrance artwork at the full height of the welcome block. */
#hub .welcome-wave{width:auto;max-width:none;height:100%;right:0;top:0;object-fit:contain;object-position:right top;mask-image:none;mix-blend-mode:multiply;opacity:.8}
#hub .welcome-copy{position:relative;z-index:1}

/* A unified white welcome card on a frosted glass base. */
#hub .welcome{margin:0;border:1px solid rgba(255,255,255,.95);border-radius:28px;background:#fff;box-shadow:0 14px 34px rgba(83,62,108,.1),0 0 0 7px rgba(255,255,255,.38),inset 0 1px 0 #fff;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);overflow:hidden;isolation:isolate}
#hub .welcome-wave{z-index:0;mix-blend-mode:multiply;mask-image:linear-gradient(to right,transparent,#000 18%);pointer-events:none}
#hub .welcome-copy{z-index:1;padding:32px 26px}
@media(max-width:600px){#hub .welcome{margin:0;border-radius:24px}#hub .welcome-copy{padding:26px 12px 26px 20px}#hub .welcome h1{font-size:clamp(28px,7.5vw,39px)}}

.embedded-video{position:relative;width:100%;aspect-ratio:16/9;border-radius:22px;overflow:hidden;background:#211733;box-shadow:var(--shadow)}
.embedded-video[hidden]{display:none}
.embedded-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.embedded-audio{padding:18px;border:1px solid #fff;border-radius:22px;background:linear-gradient(120deg,#eee4fa,#ffffffcc);box-shadow:var(--shadow)}
.embedded-audio[hidden]{display:none}
.embedded-audio audio{display:block;width:100%;height:54px}

/* Audio controls sit directly on the frosted card, without a nested panel. */
.embedded-audio{padding:22px 20px;background:linear-gradient(120deg,#eee5faad,#ffffffbd);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.embedded-audio audio{display:none}
.audio-controls{display:flex;align-items:center;gap:16px}
.audio-toggle,.audio-mute{display:grid;place-items:center;flex-shrink:0;border:0;cursor:pointer;color:#fff}
.audio-toggle{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#c59be9,#9379df);box-shadow:0 6px 16px #9574bd30,inset 0 1px 1px #ffffffaa}
.audio-toggle svg{width:24px;height:24px;fill:currentColor}
.audio-mute{width:40px;height:44px;background:transparent;color:#927aa9;border-radius:12px}
.audio-mute svg{width:22px;height:22px;fill:currentColor}
.audio-track{flex:1;min-width:0;padding-top:10px}
.audio-seek{display:block;width:100%;height:22px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;--played:0%}
.audio-seek::-webkit-slider-runnable-track{height:5px;border-radius:8px;background:linear-gradient(to right,#a48adc var(--played),#e4dced var(--played))}
.audio-seek::-moz-range-track{height:5px;border-radius:8px;background:linear-gradient(to right,#a48adc var(--played),#e4dced var(--played))}
.audio-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:13px;height:13px;margin-top:-4px;border-radius:50%;background:#a48adc;border:2px solid #fff;box-shadow:0 2px 5px #9b7fc533}
.audio-seek::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#a48adc;border:2px solid #fff}
.audio-times{display:flex;justify-content:space-between;font-size:11px;font-variant-numeric:tabular-nums;color:#8b7b98}
.audio-status:empty{display:none}.audio-status{margin-top:10px;font-size:12px;color:#796282}
@media(max-width:400px){.embedded-audio{padding:18px 14px}.audio-controls{gap:10px}}

/* Header scrolls with the page on all screen sizes. */
.bar{position:static;top:auto}

/* Give the entrance title more room on mobile. */
@media(max-width:600px){.entry:after{transform:translateX(12%)}}

/* A small complementary wave in the upper-left corner of the entrance. */
.entry:before{content:"";position:absolute;top:0;left:0;width:120px;height:210px;background:url('wave-new.png') right top/auto 100% no-repeat;transform:scaleX(-1);opacity:.48;z-index:-1;pointer-events:none;mask-image:linear-gradient(to bottom,#000 65%,transparent)}
@media(max-width:600px){
 .entry:before{width:85px;height:165px;opacity:.4}
 .entry:after{transform:translateX(19%)}
}

/* Match the main wave's scale and reveal only a corner fragment. */
.entry:before{inset:0;width:100%;height:100%;background-size:contain;background-position:right top;transform:scaleX(-1);clip-path:polygon(72% 0,100% 0,100% 34%,72% 34%);mask-image:linear-gradient(to bottom,#000 20%,transparent 34%);opacity:.65}
@media(max-width:600px){.entry:before{width:100%;height:100%;opacity:.6}}

/* Reveal the middle bend in the upper-left corner at the original scale. */
.entry:before{background-position:right top;transform:translateY(-38%) scaleX(-1);clip-path:polygon(62% 38%,100% 38%,100% 70%,62% 70%);mask-image:linear-gradient(to bottom,transparent 37%,#000 38%,#000 57%,transparent 70%)}

/* Carry the selected bend diagonally between the top and left edges. */
.entry:before{transform:translateY(-38%) scaleX(-1);clip-path:polygon(56% 38%,100% 38%,100% 77%);mask-image:none;opacity:.6}
@media(max-width:600px){.entry:before{opacity:.6}}

/* Turn the bend itself toward the side edge; no diagonal clipping. */
.entry:before{inset:0;width:100%;height:100%;background-position:right top;background-size:contain;transform-origin:50% 50%;transform:translate(-22%,-44%) rotate(35deg) scaleX(-1);clip-path:none;mask-image:none;opacity:.6}
@media(max-width:600px){.entry:before{transform:translate(-26%,-44%) rotate(35deg) scaleX(-1)}}

/* Bring the upper-left bend back inside the entrance viewport. */
.entry:before{transform:translate(-5%,-28%) rotate(35deg) scaleX(-1);opacity:.75}
@media(max-width:600px){.entry:before{transform:translate(-8%,-28%) rotate(35deg) scaleX(-1);opacity:.75}}

/* A compact corner bend, sized independently from the full-height wave. */
.entry:before{inset:auto;top:-180px;left:-70px;width:340px;height:604px;background:url('wave-new.png') center/100% 100% no-repeat;transform:rotate(35deg) scaleX(-1);transform-origin:center;clip-path:none;mask-image:none;opacity:.7;mix-blend-mode:multiply}
.entry:after{mix-blend-mode:multiply}
@media(max-width:600px){.entry:before{top:-160px;left:-65px;width:300px;height:533px;transform:rotate(35deg) scaleX(-1);opacity:.65}}

/* Keep the mobile right wave continuous and outside the centered title. */
@media(max-width:600px){
 .entry:after{inset:0 0 0 auto;width:24%;height:100%;background-image:url('wave-new.png');background-size:100% 100%;background-position:right top;background-repeat:no-repeat;transform:none;mask-image:none;mix-blend-mode:multiply}
}

/* Preserve the desktop artwork's proportions on phones; never stretch the lines. */
@media(max-width:600px){
 .entry:after{inset:0;width:100%;height:100%;background-size:auto 100%;background-position:right top;transform:translateX(26%);mask-image:none}
 .entry:before{width:300px;height:533px;background-size:contain;top:-160px;left:-65px;transform:rotate(35deg) scaleX(-1)}
}

/* Enlarge the corner bend and move its upper end toward the center. */
.entry:before{width:400px;height:711px;top:-190px;left:-35px;background-size:contain;transform:rotate(35deg) scaleX(-1)}
@media(max-width:600px){.entry:before{width:350px;height:622px;top:-175px;left:-25px;transform:rotate(35deg) scaleX(-1)}}

/* Rotate the upper wave a further 30 degrees clockwise. */
.entry:before{transform:rotate(65deg) scaleX(-1)}

/* Adjust the upper wave 15 degrees counterclockwise. */
.entry:before{transform:rotate(50deg) scaleX(-1)}

/* External bonus form in an accessible modal. */
body.bonus-modal-open{overflow:hidden}
#bonus-dialog{margin:auto;width:min(640px,calc(100vw - 24px));height:min(820px,90vh);height:min(820px,90dvh);max-height:90dvh;padding:0;border:1px solid #fff;border-radius:26px;background:#fff;box-shadow:0 24px 80px #30213f40;color:var(--ink);overflow:hidden}
#bonus-dialog[open]{display:flex;flex-direction:column}
#bonus-dialog::backdrop{background:#30213f66;backdrop-filter:blur(6px)}
.bonus-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#f7f2fc;flex-shrink:0}
.bonus-dialog-header h2{font-size:20px}
.bonus-close{width:40px;height:40px;border:0;border-radius:50%;background:#fff;color:#806493;font-size:28px;cursor:pointer}
#bonus-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:white}
.bonus-fallback{padding:10px 16px;font-size:12px;color:#796985;flex-shrink:0}.bonus-fallback a{color:#7955b5;text-decoration:underline}

/* Scroll the entire form instead of squeezing it behind the footer. */
#bonus-dialog{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
#bonus-frame{flex:none;height:800px;min-height:300px}
.bonus-dialog-header{position:sticky;top:0;z-index:2}
#bonus-dialog>.btn{flex-shrink:0}

/* Stable modal bounds: only the embedded form scrolls. */
#bonus-dialog{height:min(860px,94vh);height:min(860px,94dvh);max-height:94dvh;overflow:hidden;scrollbar-gutter:auto}
#bonus-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
#bonus-frame{height:100%;min-height:0;width:100%;min-width:0;align-self:stretch}
.bonus-dialog-header{position:static;padding:10px 16px}
#bonus-dialog>.btn{margin:0;border-radius:0;padding:11px 16px}
#bonus-dialog .bonus-fallback{padding:8px 14px;margin:0}
@media(max-width:600px){#bonus-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.bonus-dialog-header h2{font-size:18px}}

.embedded-video.embedded-video-portrait{aspect-ratio:100 / 177.61;width:min(100%,380px);margin-inline:auto}

/* Раскрывающиеся карточки дней курса (например «Self-Made») внутри бонусной страницы. */
.day-card{border:1px solid var(--line);border-radius:22px;background:var(--glass);box-shadow:var(--shadow);overflow:hidden}
.day-card+.day-card{margin-top:12px}
.day-card>summary{list-style:none;cursor:pointer;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600;font-size:15px}
.day-card>summary::-webkit-details-marker{display:none}
.day-card>summary::after{content:'⌄';font-size:20px;color:var(--purple);transition:transform .2s;flex-shrink:0}
.day-card[open]>summary::after{transform:rotate(180deg)}
.day-card>summary .day-eyebrow{display:block;font-size:10px;letter-spacing:.12em;color:var(--muted);font-weight:700;margin-bottom:3px}
.day-body{padding:0 22px 22px;display:flex;flex-direction:column;gap:16px}
.day-section-label{font-size:12px;font-weight:700;letter-spacing:.04em;color:#8a5a1a;margin-bottom:8px;display:block}
.day-card .result-box ul{margin:0;padding-left:18px}
.day-card .result-box li{margin-bottom:6px}
.day-card .result-box li:last-child{margin-bottom:0}
.materials-link{display:flex;align-items:center;gap:10px;padding:14px 18px;border:1px dashed var(--purple);border-radius:16px;background:#ffffff91;color:var(--ink);text-decoration:none;font-size:13px;font-weight:600}
.materials-link:hover{background:#ffffffc0}
.day-video-pending{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;border-radius:20px;background:linear-gradient(120deg,#eee5fa,#f6f3ee);color:var(--muted);font-size:13px;text-align:center;padding:20px}
