/* ==========================================================================
   Simon Connect - login (/), Microsoft sign-in
   Left: the sign-in card. Right: the Policy Assistant's bubble pulling random
   faces among mini app cards (built by static/js/login-scene.js).
   One "Continuous" background runs across the whole page.
   Colours follow sc-theme.css / sc-dark.css; dark mode via html[data-theme="dark"].
   ========================================================================== */

:root {
    --lg-ink: #1f1f1e;
    --lg-ink2: #5f5e5b;
    --lg-mut: #787774;
    --lg-line: #e1e1df;
    --lg-hair: #ebebea;
    --lg-field: #ffffff;
    --lg-card: #ffffff;
    --lg-cardline: rgba(15, 40, 80, .08);
    --lg-acc: #1a7dc4;
    --lg-acc-d: #126aa8;
    --lg-acc-ink: #ffffff;
    --lg-ring: rgba(26, 125, 196, .16);
    --lg-soft: #f4f4f2;
    --lg-err: #b42318;
    --lg-errbg: #fef3f2;
    --lg-ok: #15803d;
    --lg-okbg: #f0fdf4;
    --lg-font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --lg-page:
        radial-gradient(760px 560px at 76% 44%, rgba(124, 196, 244, .5) 0%, rgba(124, 196, 244, 0) 70%),
        radial-gradient(520px 420px at 100% 100%, rgba(80, 190, 175, .2) 0%, rgba(80, 190, 175, 0) 70%),
        radial-gradient(620px 460px at 0% 100%, rgba(26, 125, 196, .12) 0%, rgba(26, 125, 196, 0) 70%),
        linear-gradient(160deg, #f8fbfe 0%, #edf4fb 100%);
    /* the scene */
    --sc-glow: radial-gradient(circle, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .35) 40%, rgba(255, 255, 255, 0) 70%);
    --sc-tile: rgba(255, 255, 255, .92);
    --sc-tileline: rgba(255, 255, 255, .9);
    --sc-tileshadow: 0 1px 2px rgba(15, 40, 80, .05), 0 12px 26px -14px rgba(20, 60, 120, .35);
    --sc-shadow: rgba(15, 40, 80, .1);
    --sc-z: #1a7dc4;
    color-scheme: light;
}

html[data-theme="dark"] {
    --lg-ink: #e7e7e9;
    --lg-ink2: #a3a4aa;
    --lg-mut: #86888f;
    --lg-line: #2f3036;
    --lg-hair: #232428;
    --lg-field: #16171a;
    --lg-card: #16171a;
    --lg-cardline: #232428;
    --lg-acc: #5aa9e6;
    --lg-acc-d: #86c0ee;
    --lg-acc-ink: #0b1620;
    --lg-ring: rgba(90, 169, 230, .22);
    --lg-soft: #1b1c20;
    --lg-err: #f2a097;
    --lg-errbg: rgba(242, 160, 151, .1);
    --lg-ok: #86efac;
    --lg-okbg: rgba(134, 239, 172, .1);
    --lg-page:
        radial-gradient(760px 560px at 76% 44%, rgba(42, 143, 214, .32) 0%, rgba(42, 143, 214, 0) 70%),
        radial-gradient(520px 420px at 100% 100%, rgba(40, 160, 145, .16) 0%, rgba(40, 160, 145, 0) 70%),
        linear-gradient(160deg, #10151f 0%, #0c111a 100%);
    --sc-glow: radial-gradient(circle, rgba(90, 169, 230, .2) 0%, rgba(90, 169, 230, .06) 45%, rgba(90, 169, 230, 0) 70%);
    --sc-tile: rgba(27, 36, 50, .92);
    --sc-tileline: rgba(255, 255, 255, .07);
    --sc-tileshadow: 0 12px 26px -14px rgba(0, 0, 0, .7);
    --sc-shadow: rgba(0, 0, 0, .4);
    --sc-z: #86c0ee;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.lg {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(440px, 46%) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--lg-page);
    background-attachment: fixed;
    color: var(--lg-ink);
    font-family: var(--lg-font);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -.006em;
    -webkit-font-smoothing: antialiased;
}

/* fine grain over the background */
body.lg::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .16;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.lg [hidden], .lg .hidden { display: none !important; }
.lg button { font: inherit; color: inherit; cursor: pointer; }
.lg :focus-visible { outline: 2px solid var(--lg-acc); outline-offset: 2px; }

/* ---------- left: the card ---------- */
.lg-left {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 40px 32px 28px;
}

.lg-card {
    width: 100%;
    max-width: 440px;
    padding: 38px 42px 40px;
    border: 1px solid var(--lg-cardline);
    border-radius: 20px;
    background: var(--lg-card);
    box-shadow: 0 1px 2px rgba(15, 40, 80, .05), 0 30px 70px -30px rgba(15, 40, 80, .35);
}

/* the top bar's wordmark: "Simon Connect" with "Connect" in Simon blue */
.lg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.lg-brand img { display: block; height: 32px; width: auto; border-radius: 4px; }
.lg-brand span { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #14202c; }
.lg-brand span b { font-weight: inherit; color: var(--lg-acc); }
/* a thin line between the logo and the name, as in the top bar */
.lg-brand::after { content: ""; order: 1; flex: none; width: 1px; height: 24px; background: rgba(20, 32, 44, .18); }
.lg-brand span { order: 2; }

.lg-eb { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lg-mut); }
.lg-h { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.lg-p { margin: 10px 0 26px; font-size: 15px; color: var(--lg-mut); }

/* Microsoft's own dark sign-in button (#2f2f2f, white text, the four-colour logo) */
.lg-ms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 52px;
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    background: #2f2f2f;
    color: #ffffff;
    font-family: "Segoe UI", var(--lg-font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .55);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lg-ms:hover { background: #3b3b3b; border-color: #3b3b3b; }
/* the no-secret mode uses a <button>; keep Microsoft's look over the page's button reset */
.lg button.lg-ms { width: 100%; color: #ffffff; font-family: "Segoe UI", var(--lg-font); font-size: 15px; font-weight: 600; }
.lg button.lg-ms:disabled { cursor: progress; }
html[data-theme="dark"] .lg button.lg-ms { color: #ffffff; }
.lg-ms svg { width: 21px; height: 21px; flex: none; }
html[data-theme="dark"] .lg-ms { border-color: #2f2f2f; background: #2f2f2f; color: #ffffff; }
html[data-theme="dark"] .lg-ms:hover { background: #3a3a3a; }

.lg-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--lg-mut); }

/* "Other ways to sign in": a key icon, the label with "Email and password" under it, and an arrow */
.lg-other {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--lg-ink2) !important;
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    transition: background .15s ease, border-color .15s ease;
}
.lg-other:hover { border-color: #d6dee8; background: #f1f5f9; color: var(--lg-ink) !important; }
.lg-other-key { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: #ffffff; color: #5b6b7d; box-shadow: 0 1px 2px rgba(15, 40, 80, .1); }
.lg-other-key svg { width: 16px; height: 16px; }
.lg-other-txt { display: grid; line-height: 1.3; }
.lg-other-txt small { font-size: 12px; font-weight: 400; color: var(--lg-mut); }
.lg-other-chev { display: grid; place-items: center; margin-left: auto; color: #8a96a5; }
.lg-other-chev svg { width: 16px; height: 16px; }

.lg-msg { margin: -8px 0 18px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.lg-msg.is-error { background: var(--lg-errbg); color: var(--lg-err); }

/* ---------- left: the email + password backup ---------- */
.lg-back { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 22px -8px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--lg-mut) !important; font-size: 13px; font-weight: 500; }
.lg-back:hover { background: var(--lg-soft); color: var(--lg-ink) !important; }
.lg-back i { font-size: 12px; }
.lg-h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.lg-sub { margin: 6px 0 20px; font-size: 14px; color: var(--lg-mut); }
.lg-form { display: grid; gap: 14px; }
.lg-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: var(--lg-ink2); }
.lg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.lg-row .lg-label { margin: 0; }
.lg-form > .lg-row { margin: 0; }
.lg-in {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--lg-line);
    border-radius: 8px;
    outline: 0;
    background: var(--lg-field);
    color: var(--lg-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lg-in::placeholder { color: var(--lg-mut); opacity: .8; }
.lg-in:focus { border-color: var(--lg-acc); box-shadow: 0 0 0 3px var(--lg-ring); }
.lg-pw { position: relative; }
.lg-pw .lg-in { padding-right: 44px; }
.lg-eye { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; border: 0; background: none; color: var(--lg-mut) !important; }
.lg-eye:hover { color: var(--lg-ink) !important; }
.lg-code { text-align: center; padding-left: calc(14px + .5em); font-size: 22px; font-weight: 700; letter-spacing: .5em; }
.lg-btn { height: 44px; border: 0; border-radius: 8px; background: var(--lg-acc); color: var(--lg-acc-ink) !important; font-size: 14px; font-weight: 600; transition: background .15s ease; }
.lg-btn:hover { background: var(--lg-acc-d); }
.lg-btn:disabled, .lg-btn.opacity-70 { opacity: .7; cursor: progress; }
.lg-link { padding: 0; border: 0; background: none; color: var(--lg-acc) !important; font-size: 13px; font-weight: 500; }
.lg-link:hover { text-decoration: underline; }
.lg-center { justify-self: center; }
.lg-small { margin: 0; text-align: center; font-size: 13px; color: var(--lg-mut); }
.lg-left-text { text-align: left; }
.lg-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--lg-ink2); }
.lg-text b { color: var(--lg-ink); font-weight: 600; overflow-wrap: anywhere; }
.lg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* login.js styles its alert with these utility names */
#alert-left { margin-bottom: 16px; }
#alert-left.p-4 { padding: 10px 12px; }
#alert-left.rounded-xl { border-radius: 8px; }
#alert-left.text-sm { font-size: 13px; line-height: 1.45; }
#alert-left.bg-red-50 { background: var(--lg-errbg); color: var(--lg-err); }
#alert-left.bg-green-50 { background: var(--lg-okbg); color: var(--lg-ok); }

.lg-foot { margin: 0; font-size: 12px; color: var(--lg-mut); }

/* ---------- right: the scene ---------- */
.lg-right { position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; overflow: hidden; }
.sc-stage { position: relative; flex: none; width: 600px; height: 640px; transform-origin: center; }
.sc-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; margin: -244px 0 0 -220px; border-radius: 50%; background: var(--sc-glow); }

@keyframes scFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes scHop { 0% { transform: translateY(0); } 30% { transform: translateY(-26px) scale(1.04); } 55% { transform: translateY(0) scale(.97, 1.03); } 75% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
@keyframes scWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes scBlinkEyes { 0%, 93%, 100% { opacity: 1; } 95%, 98% { opacity: 0; } }
@keyframes scBlinkShut { 0%, 93%, 100% { opacity: 0; } 95%, 98% { opacity: 1; } }
@keyframes tlPop { 0% { transform: translateY(0); } 30% { transform: translateY(-16px) scale(1.06); } 60% { transform: translateY(0); } 80% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes tlWig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes tlStartle { 0% { transform: scale(1); } 30% { transform: translateY(-8px) scale(1.12); } 100% { transform: scale(1); } }
@keyframes zzUp { 0% { opacity: 0; transform: translate(0, 0) scale(.8); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(28px, -50px) scale(1.25); } }
@keyframes mcDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mcFill { from { width: 0; } }
@keyframes mcGrow { from { transform: scaleY(0); } }
@keyframes mcTick { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* the bubble */
.sc-ch { position: absolute; left: 50%; top: 50%; z-index: 1; width: 300px; height: 300px; margin: -172px 0 0 -150px; animation: scFloat 5s ease-in-out infinite;
    --eye: #ffffff; --pupil: #0b2a45; --cheek: rgba(255, 160, 185, .5); }
.sc-ch svg { width: 100%; height: 100%; overflow: visible; }
.sc-ch .shadow { fill: var(--sc-shadow); }
.sc-ch .eyes { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sc-ch .open { transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.2, .8, .2, 1); animation: scBlinkEyes 4.6s steps(1) infinite; }
.sc-ch .shut { fill: none; stroke: var(--eye); stroke-width: 3; stroke-linecap: round; opacity: 0; animation: scBlinkShut 4.6s steps(1) infinite; }
.sc-ch .pupil { fill: var(--pupil); transform: translate(calc(var(--px, 0px) * .5), calc(var(--py, 0px) * .5)) scale(var(--ps, 1)); transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sc-ch .brow { fill: none; stroke: var(--eye); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.sc-ch .cheek { fill: var(--cheek); opacity: 0; transition: opacity .3s ease; }
.sc-ch .mouth { fill: none; stroke: var(--eye); stroke-width: 3; stroke-linecap: round; }
.sc-ch .mouth.o { fill: var(--eye); stroke: none; }
.sc-ch .mouth.big, .sc-ch .mouth.flat, .sc-ch .mouth.o, .sc-ch .tongue { display: none; }
.sc-ch .tongue { fill: #f08ca0; stroke: #0b2a45; stroke-width: 1.5; }
.sc-ch.happy { animation: scHop .9s cubic-bezier(.3, .7, .3, 1) 1, scFloat 5s ease-in-out .9s infinite; }
.sc-ch.wiggle { animation: scWiggle .8s ease-in-out 1, scFloat 5s ease-in-out .8s infinite; }
.sc-ch svg { transition: transform .4s cubic-bezier(.3, .8, .3, 1.2); }
.sc-ch.tilt svg { transform: rotate(-8deg); }
.sc-ch.sleepy .open, .sc-ch.laugh .open { animation: none; opacity: 0; }
.sc-ch.sleepy .shut, .sc-ch.laugh .shut { animation: none; opacity: 1; }
.sc-ch.wink .open.r { animation: none; opacity: 0; }
.sc-ch.wink .shut.r { animation: none; opacity: 1; }
.sc-ch.sleepy .shut { transform: translateY(3px); }
.sc-ch.laugh .shut { transform: translateY(-6px) scaleY(-1); transform-box: fill-box; transform-origin: center; }
.sc-ch.surprised { --ps: .6; }
.sc-ch.surprised .open { transform: scale(1.14); }
.sc-ch.surprised .brow { opacity: 1; transform: translateY(-7px); }
.sc-ch.happy .brow { opacity: 1; transform: translateY(-5px); }
.sc-ch.surprised .mouth.small, .sc-ch.sleepy .mouth.small, .sc-ch.laugh .mouth.small, .sc-ch.tongue .mouth.small, .sc-ch.happy .mouth.small { display: none; }
.sc-ch.surprised .mouth.o, .sc-ch.sleepy .mouth.flat, .sc-ch.laugh .mouth.big, .sc-ch.happy .mouth.big, .sc-ch.tongue .mouth.big, .sc-ch.tongue .tongue { display: block; }
.sc-ch.laugh .cheek, .sc-ch.tongue .cheek, .sc-ch.happy .cheek { opacity: 1; }

/* the mini app cards */
.sc-tl { position: absolute; z-index: 1; animation: scFloat var(--dur, 6s) ease-in-out var(--del, 0s) infinite; }
.sc-card {
    display: grid;
    gap: 7px;
    width: 178px;
    padding: 10px 12px 11px;
    border: 1px solid var(--sc-tileline);
    border-radius: 12px;
    background: var(--sc-tile);
    color: var(--lg-ink);
    font-size: 13px;
    box-shadow: var(--sc-tileshadow);
    transition: transform .7s cubic-bezier(.3, .8, .3, 1), opacity .7s ease, box-shadow .3s ease, border-color .3s ease;
}
.mc-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--lg-ink2); }
.mc-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
html[data-theme="dark"] .mc-ico { background: color-mix(in srgb, var(--c) 24%, transparent); color: color-mix(in srgb, var(--c) 50%, #ffffff); }
.mc-ico svg { width: 12px; height: 12px; }
.mc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.mc-k { font-size: 11.5px; color: var(--lg-mut); }
.mc-v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--lg-ok); }
.mc-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.mc-spark { display: block; width: 100%; height: 26px; overflow: visible; }
.mc-spark polyline { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: mcDraw 1.6s cubic-bezier(.4, 0, .2, 1) .4s backwards; }
html[data-theme="dark"] .mc-spark polyline { stroke: color-mix(in srgb, var(--c) 60%, #ffffff); }
.mc-spark path { fill: color-mix(in srgb, var(--c) 12%, transparent); }
.mc-po { display: flex; align-items: center; gap: 9px; }
.mc-tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #22c55e; color: #ffffff; animation: mcTick .5s cubic-bezier(.3, .8, .3, 1.3) .6s backwards; }
.mc-tick svg { width: 13px; height: 13px; }
.mc-po b { display: block; font-size: 13px; font-weight: 600; }
.mc-po small { display: block; font-size: 11px; color: var(--lg-mut); }
.mc-bar { height: 6px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, var(--c) 14%, transparent); }
.mc-bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); animation: mcFill 1.4s cubic-bezier(.4, 0, .2, 1) .5s backwards; }
.mc-big { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.mc-big small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--lg-mut); }
.mc-bars { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.mc-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--c) 70%, transparent); transform-origin: bottom; animation: mcGrow .8s cubic-bezier(.3, .8, .3, 1) backwards; }
.mc-bars i:nth-child(2) { animation-delay: .1s; }
.mc-bars i:nth-child(3) { animation-delay: .2s; }
.mc-bars i:nth-child(4) { animation-delay: .3s; }
.mc-bars i:nth-child(5) { animation-delay: .4s; background: color-mix(in srgb, var(--c) 30%, transparent); }

/* the cards join in with the bubble's faces */
.sc-stage.f-laugh .sc-card, .sc-stage.f-happy .sc-card { animation: tlPop .7s cubic-bezier(.3, .7, .3, 1) var(--jd, 0s) 2; }
.sc-stage.f-tongue .sc-card, .sc-stage.f-wiggle .sc-card { animation: tlWig .45s ease-in-out var(--jd, 0s) 2; }
.sc-stage.f-surprised .sc-card { animation: tlStartle .45s ease-out var(--jd, 0s) 1; }
.sc-stage.f-sleepy .sc-card { transform: translate(var(--ox, 0px), var(--oy, 0px)); opacity: .45; }
.sc-stage.f-tilt .sc-card { transform: rotate(-6deg); }
.sc-tl.lit .sc-card { transform: translateY(-8px) scale(1.06); border-color: var(--lg-acc); box-shadow: 0 0 0 4px var(--lg-ring), 0 16px 30px -14px rgba(20, 60, 120, .45); }
.sc-stage.f-wink .sc-tl.lit .sc-card { animation: tlWig .45s ease-in-out 1; }

.sc-zz { position: absolute; left: 50%; top: 50%; z-index: 1; width: 60px; height: 60px; margin: -150px 0 0 86px; }
.sc-zz i { position: absolute; left: 0; bottom: 0; color: var(--sc-z); font-size: 18px; font-style: normal; font-weight: 700; opacity: 0; }
.sc-zz i:nth-child(2) { left: 14px; font-size: 22px; }
.sc-zz i:nth-child(3) { left: 30px; font-size: 27px; }
.sc-stage.f-sleepy .sc-zz i { animation: zzUp 2.4s ease-out infinite; }
.sc-stage.f-sleepy .sc-zz i:nth-child(2) { animation-delay: .8s; }
.sc-stage.f-sleepy .sc-zz i:nth-child(3) { animation-delay: 1.6s; }

/* ---------- smaller screens: the card on its own ---------- */
@media (max-width: 1000px) {
    body.lg { display: block; }
    .lg-right { display: none; }
    .lg-left { min-height: 100vh; }
}
@media (max-width: 520px) {
    .lg-left { padding: 28px 14px 22px; justify-content: flex-start; }
    .lg-card { padding: 28px 22px 30px; border-radius: 18px; }
    .lg-brand { margin-bottom: 30px; }
    .lg-h { font-size: 26px; }
    .lg-in, .lg-ms { font-size: 16px; }
    .lg-in { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .lg *, .lg *::before, .lg *::after { animation: none !important; transition: none !important; }
}
