/* V79: layered welcome, scoped to the authenticated learner dialog. */
.v72-overlay{background:radial-gradient(ellipse at 50% 30%,#824b9860,transparent 65%),#160d29bd;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));perspective:1200px}
.v72-popup.v79-card{isolation:isolate;grid-template-columns:minmax(0,210px) minmax(0,1fr);width:min(760px,100%);max-height:calc(100dvh - 32px);padding:62px 32px 32px;gap:28px;border:1px solid #d9b8f26b;border-radius:30px;background:radial-gradient(ellipse at 0 0,#a368c347,transparent 60%),linear-gradient(135deg,#50246b,#29173f 65%,#21122f);color:#fff;box-shadow:0 32px 85px #09031199,0 12px 0 -5px #241130,0 16px 0 -7px #bc7edc55,inset 0 1px 0 #ffffff40;animation:v79Enter .65s cubic-bezier(.18,.8,.2,1) both;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#ad79c8 #2b173c}
.v79-topline{position:absolute;top:19px;right:26px;left:26px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.v79-topline .v72-kicker{font:700 10px Arial,sans-serif;letter-spacing:1.4px;color:#f1c48b;direction:ltr}
.v79-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}
.v79-card .v72-close,.v79-sound{position:static;display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;padding:8px;border:1px solid #ffffff30;border-radius:14px;color:#fff;background:#ffffff10;cursor:pointer}
.v79-card .v72-close{font:28px Arial,sans-serif;line-height:1}
.v79-sound{font:12px Tahoma,Arial,sans-serif;gap:5px}
.v79-sound:focus-visible,.v79-card button:focus-visible{outline:3px solid #ffc475;outline-offset:3px}
.v79-stage{position:relative;display:grid;place-items:center;min-height:225px;border-radius:28px;background:radial-gradient(ellipse at 50% 40%,#fff 0,#f7edff 55%,#d8b6ed 100%);box-shadow:inset 0 1px 0 #fff,0 18px 30px #10051950,0 6px 0 #b785cc;border:1px solid #fff9;perspective:600px;overflow:hidden}
.v79-stage::before{content:'';position:absolute;width:145px;height:48px;border-radius:50%;bottom:12px;background:radial-gradient(ellipse,#52216e55,transparent 65%);transform:rotateX(35deg)}
.v79-stage::after{content:'';position:absolute;width:130px;height:130px;border:1px solid #fff9;border-radius:50%;top:21px;right:-46px;box-shadow:0 0 0 20px #fff2,0 0 0 40px #fff1;pointer-events:none}
.v79-card .v79-stage .v74-popup-mascot{position:relative;z-index:1;width:155px;max-width:90%;max-height:205px;filter:drop-shadow(0 12px 7px #51206b45);animation:v79Float 3.6s ease-in-out infinite!important}
.v79-card .v76-welcome-copy{gap:14px;align-items:stretch;min-width:0}
.v79-card h2{color:#fff;font-size:clamp(24px,3vw,34px);line-height:1.45;overflow-wrap:anywhere;text-shadow:0 3px 8px #12071c55}
.v79-card p{color:#e6d6ef;font-size:15px;line-height:1.85;margin:0;overflow-wrap:anywhere}
.v79-badge{display:inline-flex;align-self:flex-start;gap:7px;align-items:center;font-size:11px;border-radius:20px;padding:7px 11px;color:#ffe5c4;background:#ffb65612;border:1px solid #ffc57440}
.v79-badge::before{content:'';width:7px;height:7px;flex:none;border-radius:50%;background:#6edaa0;box-shadow:0 0 0 3px #6edaa020}
.v79-card .v72-popup-action{position:relative;min-height:50px;margin-top:3px;border:1px solid #ffdb9a;border-radius:15px;background:linear-gradient(180deg,#ffd28b,#f5a044);color:#30173e;font:700 15px Tahoma,Arial,sans-serif;box-shadow:0 5px 0 #b56723,0 12px 25px #16082155;transform:translateY(0);transition:transform .16s,box-shadow .16s}
.v79-card .v72-popup-action:hover{background:linear-gradient(180deg,#ffdfa8,#ffb65e);transform:translateY(-1px)}
.v79-card .v72-popup-action:active{transform:translateY(4px);box-shadow:0 1px 0 #b56723,0 5px 12px #16082144}
body.v79-dialog-open{overflow:hidden}
@keyframes v79Enter{from{opacity:0;transform:translateY(24px) rotateX(8deg) scale(.95)}to{opacity:1;transform:translateY(0) rotateX(0) scale(1)}}
@keyframes v79Float{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}
@media(max-width:560px){.v72-popup.v79-card{grid-template-columns:minmax(0,1fr);gap:17px;padding:72px 20px 23px;border-radius:24px;text-align:center;max-height:calc(100dvh - 28px)}.v79-topline{top:14px;right:16px;left:16px;gap:6px}.v79-topline .v72-kicker{font-size:9px;letter-spacing:.7px;max-width:110px;line-height:1.6}.v79-stage{min-height:0;height:128px;width:152px;justify-self:center;border-radius:24px}.v79-card .v79-stage .v74-popup-mascot{width:103px;max-height:118px}.v79-stage::before{width:90px;height:24px;bottom:3px}.v79-card .v76-welcome-copy{gap:11px}.v79-card h2{font-size:25px}.v79-card p{font-size:14px;line-height:1.7}.v79-badge{align-self:center}.v79-card .v72-popup-action{width:100%;font-size:14px}.v79-sound{font-size:11px}}
@media(max-height:580px){.v72-popup.v79-card{gap:15px;padding-top:70px;padding-bottom:20px}.v79-stage{min-height:0;height:140px}.v79-card .v79-stage .v74-popup-mascot{max-height:130px}.v79-card .v76-welcome-copy{gap:9px}.v79-card h2{font-size:23px}.v79-card p{font-size:13px;line-height:1.6}}
@media(max-height:580px) and (max-width:560px){.v79-stage{height:82px;width:110px}.v79-card .v79-stage .v74-popup-mascot{max-height:76px;width:68px}.v72-popup.v79-card{gap:12px}.v79-badge{padding:5px 9px}.v79-card h2{font-size:22px}}
/* Visitor greeting remains separate, with a safe height in landscape too. */
.bego-welcome{box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}
.bego-welcome-card{box-sizing:border-box;max-width:100%;max-height:calc(100dvh - 36px);overflow-y:auto;flex-shrink:0}
.bego-welcome-close{min-width:44px;min-height:44px}
@media(max-height:500px){.bego-welcome-card{flex-direction:row;padding:48px 18px 20px;gap:14px}.bego-welcome-img{width:120px;height:140px;max-width:30%}.bego-welcome-copy p{font-size:13px;line-height:1.6}.bego-welcome-actions button{min-height:44px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.v72-popup.v79-card,.v79-card .v79-stage .v74-popup-mascot{animation:none!important}.v79-card .v72-popup-action{transition:none!important;transform:none!important}.v72-overlay{animation:none!important}}
