/* Sky Garden home: the Discovery World hero (3D islands over a still picture), the cloud descent and the sections that
   float on clouds below it: the Cloud Arcade, the prophets' balloons, Noor's missions and the parents' corner. */

:root { --p: 0; }
.sg-home { position: relative; z-index: 1; display: block; padding: 0; }
body.page-world .sg-sky { display: none; }
body.page-world { background: #FDE9F0; }
:root[data-theme="dark"] body.page-world { background: #3A2E7A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.page-world { background: #3A2E7A; } }

/* ================= The world ================= */
.sg-world { position: relative; height: 136vh; background: linear-gradient(180deg, #BFE3FB 0%, #F6E4F0 55%, #FDF4F6 100%); }
.sg-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.sg-still { position: absolute; inset: 0; display: block; }
.sg-still img { width: 100%; height: 100%; object-fit: cover; display: block; }
:root[data-theme="dark"] .sg-still img { filter: brightness(.55) saturate(1.25) hue-rotate(-18deg); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease .1s; touch-action: pan-y; }
.gl-ready #gl { opacity: 1; }
.sg-rays {
    position: absolute; z-index: 1; inset-inline-end: -30vw; top: -60vh; width: 120vw; height: 150vh; pointer-events: none; opacity: calc(.5 - var(--p)); mix-blend-mode: soft-light;
    background: repeating-conic-gradient(from 200deg at 75% 30%, rgba(255, 248, 220, 0) 0deg, rgba(255, 248, 220, .9) 4deg, rgba(255, 248, 220, 0) 9deg, rgba(255, 248, 220, 0) 16deg);
    -webkit-mask: radial-gradient(closest-side at 75% 30%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%); mask: radial-gradient(closest-side at 75% 30%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%);
    animation: sg-rays 40s linear infinite alternate; transform-origin: 75% 30%;
}
@keyframes sg-rays { to { transform: rotate(8deg); } }
:root[data-theme="dark"] .sg-rays { opacity: 0; }

/* ---------- headline and Noor ---------- */
.sg-hero-copy {
    position: absolute; z-index: 5; top: 124px; inset-inline: 0; margin-inline: auto; width: min(920px, 94vw); text-align: center; pointer-events: none;
    transform: translateY(calc(var(--p) * -160px)); opacity: calc(1 - var(--p) * 3.5);
}
.sg-hero-copy > * { pointer-events: auto; }
.sg-kicker {
    display: inline-flex; align-items: center; gap: 10px; height: 36px; padding-inline: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 8px 18px -10px rgba(76, 52, 150, .45);
    font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #554B86;
}
.sg-kicker b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: linear-gradient(180deg, #A58CFF, #7A5CF0); color: #fff; font-size: 13px; }
.sg-kicker-ar { font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 16px; color: #6A4FD8; }
.sg-title {
    margin: 10px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(50px, 6.6vw, 104px); line-height: .95; letter-spacing: -.035em; color: #2B2350;
    text-shadow: 0 2px 0 rgba(255, 255, 255, .9), 0 4px 0 rgba(214, 200, 255, .9), 0 18px 34px rgba(91, 63, 208, .28); transition: color 1.2s;
}
.sg-title .w { position: relative; display: inline-block; color: #FF6F5E; text-shadow: 0 2px 0 rgba(255, 255, 255, .95), 0 4px 0 #FFC7BC, 0 18px 34px rgba(240, 90, 70, .3); }
.sg-title .w::after {
    content: ""; position: absolute; inset-inline: 4% 2%; bottom: -2px; height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 Q 25 1 50 7 T 100 7 T 150 7 T 198 6' fill='none' stroke='%23FFC84A' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
:root[lang="ur"] .sg-title, :root[lang="ar"] .sg-title { line-height: 1.3; letter-spacing: 0; }
:root[data-theme="dark"] .sg-title { color: #fff; text-shadow: 0 2px 0 rgba(120, 90, 200, .6), 0 4px 0 rgba(70, 50, 150, .5), 0 0 40px rgba(255, 210, 140, .55); }
:root[data-theme="dark"] .sg-title .w { color: #FFD45C; text-shadow: 0 2px 0 rgba(150, 70, 40, .5), 0 0 34px rgba(255, 200, 100, .7); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sg-title { color: #fff; text-shadow: 0 2px 0 rgba(120, 90, 200, .6), 0 0 40px rgba(255, 210, 140, .55); }
    :root:not([data-theme="light"]) .sg-title .w { color: #FFD45C; text-shadow: 0 0 34px rgba(255, 200, 100, .7); }
}

.sg-noor-pill {
    display: flex; align-items: center; gap: 14px; margin: 18px auto 0; width: max-content; max-width: 100%;
    padding-block: 8px; padding-inline: 10px 8px; border-radius: 28px; text-align: start;
    background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 18px 34px -18px rgba(76, 52, 150, .55);
}
:root[data-theme="dark"] .sg-noor-pill { background: rgba(46, 40, 108, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 34px -18px rgba(0, 0, 0, .6); }
.sg-noor-face {
    flex: none; width: 66px; height: 66px; border-radius: 22px; display: grid; place-items: center; align-items: center;
    background: radial-gradient(circle at 50% 55%, #FFF3C8 0%, #FFE08A 45%, #FFD07A 100%);
    box-shadow: inset 0 -3px 0 rgba(200, 120, 0, .2), 0 8px 20px -8px rgba(245, 163, 30, .8);
}
.sg-noor-face .k-mascot-svg { width: 46px; height: 58px; filter: none; }
.sg-noor-face .noor-glow, .sg-noor-face .noor-spark { display: none; }
.sg-say.k-bubble { padding: 0 4px 0 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; max-width: 440px; line-height: 1.25; }
.sg-say strong { display: block; font-size: 18px; color: var(--ink); }
.sg-say [data-bubble-text] { display: block; font-size: 17px; font-weight: 600; color: #6A4FD8; }
:root[data-theme="dark"] .sg-say [data-bubble-text] { color: #FFE3A0; }
.sg-say .is-pop { animation: sg-pop-line .5s var(--ease-bounce); }
@keyframes sg-pop-line { from { transform: translateY(6px); opacity: 0; } }
.sg-hear, .sg-visit { flex: none; min-height: 50px; }
.sg-eq { display: inline-flex; gap: 3px; align-items: center; height: 18px; }
.sg-eq i { width: 4px; height: 8px; border-radius: 2px; background: #fff; }
.sg-hear.is-on .sg-eq i { animation: sg-eq .5s infinite alternate; }
.sg-hear.is-on .sg-eq i:nth-child(2) { animation-delay: -.2s; }
.sg-hear.is-on .sg-eq i:nth-child(3) { animation-delay: -.35s; }
@keyframes sg-eq { to { height: 18px; } }
.sg-noor-pill.has-visit .sg-hear { width: 50px; padding: 0; }
.sg-noor-pill.has-visit .sg-hear-label { display: none; }
.sg-noor-pill.has-visit .sg-say strong { display: none; }
.sg-visit { animation: sg-pop-line .5s var(--ease-bounce); white-space: nowrap; max-width: 260px; }
.sg-visit span { overflow: hidden; text-overflow: ellipsis; }
.sg-visit svg { width: 18px; height: 18px; flex: none; }

/* ---------- the place tags (real links) ---------- */
.sg-tags { position: absolute; inset: 0; z-index: 4; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.sg-tag {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -100%);
    pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding-inline: 7px 14px; border-radius: 999px; white-space: nowrap;
    text-decoration: none; color: #2B2350; background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 22px -10px rgba(76, 52, 150, .55), inset 0 -2px 0 rgba(141, 114, 240, .12);
    font-family: var(--font-display); font-weight: 600; font-size: 15px;
    will-change: transform; transition: background .2s, color .2s, box-shadow .2s, opacity .35s;
}
.sg-tag::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.sg-tag-dot { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--t); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 2px 0 rgba(255, 255, 255, .45); }
.sg-tag-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; opacity: .9; }
.sg-tag-lantern:empty { display: none; }
.sg-tag-lantern {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-inline-start: 2px; border-radius: 8px 8px 9px 9px;
    font-size: 12px; color: #6B3A00; background: linear-gradient(180deg, #FFF3C2, #FFB04A); box-shadow: 0 0 12px 2px rgba(255, 190, 100, .75);
}
.sg-tag.is-hot, .sg-tag.is-on, .sg-tag:focus-visible { background: var(--td); color: #fff; box-shadow: 0 14px 26px -10px var(--td); }
.sg-tag.is-hot .sg-tag-dot, .sg-tag.is-on .sg-tag-dot, .sg-tag:focus-visible .sg-tag-dot { background: #fff; }
.sg-tag.is-hot .sg-tag-dot::after, .sg-tag.is-on .sg-tag-dot::after, .sg-tag:focus-visible .sg-tag-dot::after { background: var(--t); }
.sg-tag.is-hot .sg-tag-name, .sg-tag.is-on .sg-tag-name { display: inline-block; animation: sg-wig .5s ease; }
@keyframes sg-wig { 30% { transform: rotate(-4deg) scale(1.06); } 60% { transform: rotate(3deg); } }
/* Part 48: the tags leave their 2D places (left/top) for the 3D scene's positions (transform) in the same frame as
   they become invisible, with no fade, so the switch is not a layout shift (CLS); they fade in at their 3D places. */
.gl-ready .sg-tag { left: 0; top: 0; opacity: 0; pointer-events: none; transition: background .2s, color .2s, box-shadow .2s; }
.gl-ready .tags-on .sg-tag { opacity: 1; pointer-events: auto; transition: background .2s, color .2s, box-shadow .2s, opacity .35s; }
.gl-ready .tags-on .sg-tag.is-hidden { opacity: 0; pointer-events: none; }
.gl-ready .sg-tag:focus-visible { opacity: 1; pointer-events: auto; z-index: 3; }
@media (max-aspect-ratio: 4/5) { .no-gl .sg-tag, :root:not(.gl-ready) .sg-tag { left: clamp(96px, var(--tx), calc(100% - 96px)); top: var(--ty); } }

/* ---------- the place card ---------- */
.sg-pcard {
    position: absolute; left: 0; top: 0; z-index: 4; width: 280px; padding: 13px 16px 15px; border-radius: 24px; pointer-events: none;
    background: rgba(255, 255, 255, .93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-l), inset 0 0 0 1px #fff; opacity: 0; transition: opacity .25s; will-change: transform; color: #2B2350;
}
:root[dir="rtl"] .sg-pcard { text-align: right; }
.no-gl .sg-pcard { left: 50%; top: auto; bottom: 150px; margin-left: -140px; }
.sg-pcard.is-shown { opacity: 1; }
.sg-pcard.is-shown .sg-pcard-in { animation: sg-card-in .55s cubic-bezier(.25, 1.5, .5, 1); }
@keyframes sg-card-in { from { transform: scale(.85); opacity: 0; } }
.sg-pcard::before { content: ""; position: absolute; inset-inline: 16px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: var(--c, #8D72F0); }
.sg-pcard-ar { display: block; font-family: "Baloo Bhaijaan 2", sans-serif; font-size: 16px; color: var(--c, #8D72F0); font-weight: 700; line-height: 1.3; filter: brightness(.8); }
.sg-pcard-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -.01em; }
.sg-pcard-blurb { margin: 5px 0 0; font-size: 15.5px; line-height: 1.3; color: #554B86; font-weight: 600; }
.sg-pcard-lanterns:empty { display: none; }
.sg-pcard-lanterns { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #FFF3CF; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: #6B3A00; }
.sg-pcard-lanterns::before { content: ""; width: 9px; height: 13px; border-radius: 4px; background: linear-gradient(180deg, #FFF3C2, #FFA34A); box-shadow: 0 0 8px rgba(255, 170, 70, .9); }

/* ---------- lanterns lit ---------- */
.sg-kicker-main { display: inline-flex; align-items: center; gap: 10px; }
.sg-hud { display: inline-flex; align-items: center; gap: 8px; padding-inline-start: 12px; border-inline-start: 1.5px solid rgba(141, 114, 240, .25); }
.sg-hud-lanterns { display: inline-flex; gap: 4px; }
.sg-hud-lanterns i { width: 10px; height: 14px; border-radius: 4px 4px 5px 5px; background: rgba(85, 75, 134, .2); transition: background .5s, box-shadow .5s; }
.sg-hud-lanterns i.is-lit { background: linear-gradient(180deg, #FFF3C2, #FFA34A); box-shadow: 0 0 12px 3px rgba(255, 190, 100, .7); }

/* ---------- the big buttons ---------- */
.sg-dock {
    position: absolute; z-index: 5; inset-inline: 0; margin-inline: auto; bottom: 22px;
    display: grid; grid-template-columns: repeat(5, 1fr) .95fr; gap: 10px; width: min(1400px, calc(100vw - 48px));
    transform: translateY(calc(var(--p) * 160px)); opacity: calc(1 - var(--p) * 3);
}
.sg-dtile {
    position: relative; display: flex; align-items: center; gap: 12px; height: 96px; padding-inline: 12px 14px; border: 0; border-radius: 26px; cursor: pointer; text-align: start; text-decoration: none; color: #2B2350;
    background: rgba(255, 255, 255, .76); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 -4px 0 rgba(141, 114, 240, .08), 0 18px 34px -18px rgba(76, 52, 150, .6);
    transition: transform .35s var(--ease-bounce), background .2s, box-shadow .3s; overflow: hidden; isolation: isolate;
}
.sg-dtile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px 80px at 20% 0%, var(--tt), transparent 70%); opacity: .7; }
.sg-dtile:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .94); }
.sg-dtile-ico { flex: none; width: 68px; height: 68px; padding: 9px; border-radius: 22px; background: linear-gradient(180deg, #fff, var(--tt)); box-shadow: inset 0 -3px 0 rgba(76, 52, 150, .08), 0 8px 16px -8px rgba(76, 52, 150, .45); transition: transform .45s var(--ease-bounce); }
.sg-dtile:hover .sg-dtile-ico { transform: rotate(-8deg) scale(1.08); }
.sg-dtile b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.05; }
.sg-dtile small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: #6B6396; }
:root[dir="rtl"] .sg-dtile::before { background: radial-gradient(120px 80px at 80% 0%, var(--tt), transparent 70%); }
.sg-dusk { color: #fff; background: linear-gradient(160deg, #6E8BF2 0%, #8B6CEB 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(40, 20, 120, .2), 0 18px 34px -16px rgba(91, 63, 208, .8); }
.sg-dusk::before { display: none; }
.sg-dusk:hover { background: linear-gradient(160deg, #7C97F7 0%, #9879F0 100%); }
.sg-dusk b { color: #fff; }
.sg-dusk small { color: rgba(255, 255, 255, .85); }
.sg-dusk .sg-sw { position: relative; flex: none; width: 60px; height: 66px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #9ED8FF, #D7EEFF); box-shadow: inset 0 2px 6px rgba(0, 60, 120, .25); transition: background .8s; }
.sg-dusk .sg-sw i { position: absolute; inset-inline-start: 13px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF6C8, #FFC23A); box-shadow: 0 0 16px #FFD45C; transition: transform .8s cubic-bezier(.4, 1.3, .5, 1), background .8s, box-shadow .8s; }
.sg-dusk .sg-sw::after { content: ""; position: absolute; inset-inline: -6px; bottom: -8px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 18px -6px 0 -4px #fff, -16px -4px 0 -6px #fff; opacity: .95; }
:root[data-theme="dark"] .sg-dusk { background: linear-gradient(160deg, #2E2B70 0%, #5B3FA8 100%); }
:root[data-theme="dark"] .sg-dusk .sg-sw { background: linear-gradient(180deg, #2C2B6E, #8A64C4 80%, #FF9C84); }
:root[data-theme="dark"] .sg-dusk .sg-sw i { transform: translateY(2px) rotate(-20deg); background: radial-gradient(circle at 60% 40%, #FFF8E1, #FFE08A); box-shadow: inset -9px -3px 0 0 #3A3585, 0 0 18px rgba(255, 224, 138, .8); }
:root[data-theme="dark"] .sg-dtile:not(.sg-dusk) { background: rgba(46, 40, 108, .76); color: #FFF7EE; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 34px -18px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .sg-dtile:not(.sg-dusk) small { color: #CFC4F5; }
:root[data-theme="dark"] .sg-dtile::before { opacity: .25; }

/* ---------- the descent ---------- */
.sg-descend {
    position: absolute; z-index: 8; inset-inline: 0; margin-inline: auto; top: 46%; width: max-content; max-width: 92vw; display: flex; align-items: center; gap: 14px;
    padding-block: 12px; padding-inline: 14px 26px; border-radius: 999px; background: rgba(255, 255, 255, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-l);
    transform: translateY(calc((0.5 - var(--p)) * 90px)); pointer-events: none;
    opacity: min(clamp(0, calc((var(--p) - .12) * 6), 1), clamp(0, calc((.86 - var(--p)) * 6), 1));
    font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 26px); color: #2B2350;
}
.sg-descend .k-mascot-svg { width: 44px; height: 55px; flex: none; filter: drop-shadow(0 0 12px rgba(255, 200, 90, .8)); }
.sg-descend small { display: block; font-size: 15px; font-weight: 600; color: #6B6396; }
.sg-veil { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(253, 244, 246, 0) 20%, #FDF4F6 100%); }
:root[data-theme="dark"] .sg-veil { background: linear-gradient(180deg, rgba(30, 26, 78, 0) 20%, #1E1A4E 100%); }

/* ================= Below the clouds ================= */
/* The sections rise over the bottom of the sky on a bank of clouds, so the descent flows straight into the
   Cloud Arcade with no empty band in between. */
.sg-below {
    position: relative; z-index: 6; margin-top: -36vh; padding-top: 36px; overflow-x: clip;
    background: linear-gradient(180deg, rgba(253, 244, 246, .55) 0, #FDF4F6 60px, #F3ECFF 24%, #E3F2FF 50%, #FFF1E6 76%, #FDE9F0 100%);
}
:root[data-theme="dark"] .sg-below { background: linear-gradient(180deg, rgba(30, 26, 78, .55) 0, #1E1A4E 60px, #262064 30%, #2C2B6E 60%, #3A2E7A 100%); }
/* The bank of clouds the sections ride in on: it rises over the sky as you sink, so there is never an empty band. */
.sg-bank { position: absolute; inset-inline: 0; top: -150px; height: 220px; pointer-events: none; overflow: hidden; opacity: clamp(0, calc(var(--p) * 2.2), 1); }
.sg-bank-cloud { position: absolute; top: 10px; height: 190px; width: 30%; filter: drop-shadow(0 -10px 24px rgba(120, 90, 200, .12)); }
.sg-bank-cloud:nth-child(1) { inset-inline-start: -6%; top: 26px; }
.sg-bank-cloud:nth-child(2) { inset-inline-start: 16%; top: 0; width: 34%; }
.sg-bank-cloud:nth-child(3) { inset-inline-start: 42%; top: 20px; }
.sg-bank-cloud:nth-child(4) { inset-inline-start: 64%; top: 4px; width: 32%; }
.sg-bank-cloud:nth-child(5) { inset-inline-end: -6%; top: 30px; width: 24%; }
:root[data-theme="dark"] .sg-bank-cloud { opacity: .35; }
.sg-deco { position: absolute; pointer-events: none; will-change: transform; z-index: 0; }
.sg-deco .sg-ico { width: 100%; height: 100%; }
.sg-deco--1 { inset-inline-end: 4%; top: 260px; width: 70px; height: 105px; --a: #7FD6C2; --b: #C7B5FF; }
.sg-deco--2 { inset-inline-start: 3%; top: 1300px; width: 56px; height: 84px; --a: #FFC84A; --b: #FF9EC4; }
.sg-deco--3 { inset-inline-start: -80px; top: 900px; width: 340px; height: 120px; opacity: .9; }

.sg-sec { position: relative; z-index: 1; width: min(1260px, calc(100vw - 48px)); margin: 0 auto; padding: 18px 0 70px; }
.sg-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.sg-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #6A4FD8; }
:root[data-theme="dark"] .sg-eyebrow { color: #C8B8FF; }
:root[lang="ar"] .sg-eyebrow, :root[lang="ur"] .sg-eyebrow { letter-spacing: 0; }
.sg-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -.025em; margin: 4px 0 0; }
.sg-h2 span { color: #7A5CF0; }
:root[data-theme="dark"] .sg-h2 span { color: #FFD45C; }
.sg-lede { font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--ink-soft); margin: 10px 0 0; max-width: 640px; }
.sg-plate {
    position: relative; z-index: 1; border-radius: 40px; padding: 24px;
    background: rgba(255, 255, 255, .56); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), 0 40px 70px -40px rgba(91, 63, 208, .45);
}
:root[data-theme="dark"] .sg-plate { background: rgba(46, 40, 108, .5); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 40px 70px -40px rgba(0, 0, 0, .6); }

/* ---------- the Cloud Arcade ---------- */
.sg-arcade { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 164px; gap: 14px; }
.sg-game {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; border-radius: 28px; overflow: hidden; isolation: isolate;
    text-decoration: none; color: #2B2350;
    background: linear-gradient(160deg, color-mix(in srgb, var(--t) 14%, #fff), color-mix(in srgb, var(--t) 42%, #fff));
    box-shadow: inset 0 -5px 0 rgba(60, 30, 120, .08), inset 0 1.5px 0 rgba(255, 255, 255, .7), 0 18px 30px -20px rgba(76, 52, 150, .55);
    transition: transform .35s var(--ease-bounce), box-shadow .3s;
}
.sg-game::before { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; inset-inline-end: -50px; top: -60px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.sg-game:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: inset 0 -5px 0 rgba(60, 30, 120, .08), 0 30px 40px -20px rgba(76, 52, 150, .6); }
.sg-game-ico { position: absolute; inset-inline-end: 12px; top: 12px; width: 66px; height: 66px; transition: transform .45s var(--ease-bounce); }
.sg-game:hover .sg-game-ico { transform: rotate(-10deg) scale(1.12); }
.sg-game b { position: relative; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; padding-inline-end: 4px; }
.sg-game small { position: relative; display: block; margin-top: 4px; font-size: 14px; line-height: 1.25; font-weight: 600; color: rgba(43, 35, 80, .72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-game-earned { position: absolute; inset-inline-start: 14px; top: 14px; }
.sg-game-earned .k-stars i { width: 18px; height: 18px; }
.sg-game.is-big { grid-column: span 2; grid-row: span 2; padding: 26px; }
.sg-game.is-big .sg-game-ico { width: 170px; height: 170px; inset-inline-end: 26px; top: 30px; }
.sg-game.is-big b { font-size: clamp(30px, 3vw, 40px); }
.sg-game.is-big small { font-size: 18px; max-width: 340px; -webkit-line-clamp: 3; }
.sg-game.is-big .sg-game-earned { top: 26px; inset-inline-start: 26px; }
.sg-game-play { margin-top: 14px; align-self: flex-start; }
.sg-game.is-wide { grid-column: span 2; }
.sg-game.is-wide .sg-game-ico { width: 88px; height: 88px; }
.sg-game-stars { position: absolute; inset-inline-start: 26px; top: 66px; display: flex; gap: 8px; }
.sg-game-stars .sg-ico { width: 34px; height: 34px; animation: sg-tw 2.4s ease-in-out infinite; }
.sg-game-stars .sg-ico:nth-child(2) { animation-delay: -.8s; }
.sg-game-stars .sg-ico:nth-child(3) { animation-delay: -1.6s; }
@keyframes sg-tw { 50% { transform: translateY(-5px) rotate(10deg); } }
.sg-ladder { position: absolute; inset-inline-end: 40px; bottom: 26px; display: flex; align-items: flex-end; gap: 8px; }
.sg-ladder i { display: block; width: 46px; border-radius: 14px 14px 6px 6px; background: rgba(255, 255, 255, .55); }
.sg-ladder i:nth-child(1) { height: 40px; } .sg-ladder i:nth-child(2) { height: 72px; } .sg-ladder i:nth-child(3) { height: 104px; }

/* ---------- prophets' balloons ---------- */
.sg-stories { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.sg-stories > * { min-width: 0; }
.sg-readalong {
    position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 32px; overflow: hidden; text-decoration: none; color: #fff;
    background: radial-gradient(140px 140px at 78% 22%, rgba(255, 228, 140, .55), transparent 70%), linear-gradient(165deg, #8E74F2 0%, #6A4FD8 60%, #5940C2 100%);
    box-shadow: 0 30px 50px -26px rgba(91, 63, 208, .8), inset 0 1.5px 0 rgba(255, 255, 255, .3);
    transition: transform .35s var(--ease-bounce);
}
.sg-readalong:hover { transform: translateY(-4px); }
.sg-readalong-noor { position: absolute; inset-inline-end: 16px; top: 14px; }
.sg-readalong-noor .k-mascot-svg { width: 92px; height: 115px; filter: drop-shadow(0 0 22px rgba(255, 210, 110, .9)); }
.sg-readalong b { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.02; max-width: 170px; }
.sg-readalong-text { font-size: 16.5px; font-weight: 600; line-height: 1.4; opacity: .94; max-width: 200px; }
.sg-readalong-books { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.sg-readalong-books img { flex: 1; min-width: 0; height: 92px; object-fit: cover; border-radius: 8px 14px 14px 8px; box-shadow: 0 10px 16px -8px rgba(30, 10, 80, .6); }
.sg-readalong .k-btn { align-self: flex-start; margin-top: 12px; }
.sg-lane-wrap { display: flex; align-items: center; padding: 6px 16px; }
.sg-lane-wrap .sg-lane { flex: 1; min-width: 0; }
.sg-lane { display: flex; gap: 6px; margin: 0; padding: 22px 8px 30px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sg-lane::-webkit-scrollbar { display: none; }
.sg-lane li { flex: none; scroll-snap-align: start; }
.sg-lane li:nth-child(odd) { margin-top: 30px; }
.sg-bal { display: flex; flex-direction: column; align-items: center; width: 122px; text-align: center; text-decoration: none; color: #2B2350; transition: transform .35s var(--ease-bounce); }
.sg-bal:hover { transform: translateY(-10px); }
.sg-bal-art { width: 90px; height: 135px; filter: drop-shadow(0 14px 14px rgba(91, 63, 208, .2)); animation: sg-sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
.sg-lane li:nth-child(3n) .sg-bal-art { animation-delay: -1.6s; }
.sg-lane li:nth-child(3n+1) .sg-bal-art { animation-delay: -3.1s; }
@keyframes sg-sway { 50% { transform: translateY(-8px) rotate(2deg); } }
.sg-bal b { margin-top: 6px; padding: 5px 11px; border-radius: 12px; background: #fff; box-shadow: 0 8px 16px -10px rgba(76, 52, 150, .5); font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.1; white-space: nowrap; }
.sg-bal b small { display: block; font-size: 11px; color: #6B6396; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sg-bal-ar { margin-top: 4px; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 600; font-size: 15px; color: #6A4FD8; }
:root[data-theme="dark"] .sg-bal-ar { color: #E3D8FF; }
.sg-bal-done .k-chip { margin-top: 4px; font-size: .72rem; }
.sg-lane-btn { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: #fff; color: #5B3FD0; box-shadow: var(--shadow); transform: translateY(-50%); transition: transform .25s var(--ease-bounce); }
.sg-lane-btn:hover { transform: translateY(-50%) scale(1.08); }
.sg-lane-btn svg { width: 22px; height: 22px; }
:root[dir="rtl"] .sg-lane-btn svg { transform: scaleX(-1); }
.sg-lane-btn.is-start { inset-inline-start: -14px; }
.sg-lane-btn.is-end { inset-inline-end: -14px; }

/* ---------- Noor's missions ---------- */
.sg-missions { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.sg-mission {
    position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 250px; padding: 22px; border-radius: 32px; overflow: hidden; text-decoration: none; color: var(--ink);
    background: var(--glass-strong); box-shadow: 0 26px 46px -28px rgba(76, 52, 150, .55), inset 0 -4px 0 rgba(141, 114, 240, .07), inset 0 0 0 1.5px var(--glass-edge);
    transition: transform .35s var(--ease-bounce);
}
.sg-mission:hover { transform: translateY(-5px); }
.sg-mission b { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.sg-mission > span:not(.sg-eyebrow):not(.k-btn):not(.sg-stickers):not(.sg-mission-earned):not(.sg-mission-card) { font-size: 16px; font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.sg-mission .k-btn { margin-top: auto; align-self: flex-start; }
.sg-mission--letter { background: linear-gradient(160deg, #FFFFFF 30%, #F1EBFF 100%); color: #2B2350; }
.sg-mission--letter > :not(svg) { max-width: 58%; }
.sg-mission--letter > span:not(.sg-eyebrow):not(.k-btn) { color: #554B86; }
.sg-mission-letter { position: absolute; inset-inline-end: 12px; top: 10px; width: 170px; height: 190px; }
.sg-trace { stroke-dasharray: 1 13; animation: sg-dash 3s linear infinite; }
@keyframes sg-dash { to { stroke-dashoffset: -56; } }
.sg-stickers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sg-stickers i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--grape-soft); box-shadow: inset 0 -3px 0 rgba(141, 114, 240, .1); }
.sg-stickers i .k-ico { width: 32px; height: 32px; opacity: .25; filter: grayscale(1); }
.sg-stickers i.is-got { background: linear-gradient(180deg, #fff, var(--ts)); box-shadow: 0 8px 14px -8px rgba(76, 52, 150, .55); transform: rotate(-8deg); }
.sg-stickers i.is-got .k-ico { opacity: 1; filter: none; }
.sg-mission--eid { background: linear-gradient(160deg, #FFF6EC 0%, #FFE2D4 100%); color: #2B2350; }
.sg-mission--eid > span:not(.sg-eyebrow):not(.k-btn):not(.sg-mission-card) { color: #554B86; max-width: 62%; }
.sg-mission--eid b { max-width: 62%; }
.sg-mission-card { position: absolute; inset-inline-end: 22px; top: 22px; width: 112px; height: 136px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, #A58CFF, #6A4FD8); box-shadow: 0 18px 26px -12px rgba(91, 63, 208, .6); transform: rotate(7deg); transition: transform .45s var(--ease-bounce); }
.sg-mission--eid:hover .sg-mission-card { transform: rotate(-4deg) scale(1.05); }
.sg-mission-card .sg-ico { width: 64px; height: 64px; }
.sg-mission-card::after { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255, 255, 255, .5); border-radius: 9px; }
.sg-mission-earned .k-stars i { width: 20px; height: 20px; }
#missions .k-cw-banner, #missions .k-today-ribbon { margin-bottom: 18px; }

/* ---------- parents ---------- */
.sg-parents { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; padding: 36px; }
.sg-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.sg-promise li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: var(--paper); box-shadow: 0 14px 26px -18px rgba(76, 52, 150, .55); font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.sg-promise .sg-ico { width: 44px; height: 44px; }
.sg-ptools { display: grid; gap: 10px; }
.sg-ptools a {
    display: flex; align-items: center; gap: 14px; padding-block: 12px 12px; padding-inline: 12px 16px; border-radius: 24px; text-decoration: none; color: var(--ink);
    background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 14px 26px -18px rgba(76, 52, 150, .55); transition: transform .3s var(--ease-bounce);
}
.sg-ptools a:hover { transform: translateX(6px); }
:root[dir="rtl"] .sg-ptools a:hover { transform: translateX(-6px); }
.sg-ptools-ico { flex: none; width: 54px; height: 54px; padding: 8px; border-radius: 18px; background: var(--tt, var(--grape-soft)); }
.sg-ptools b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.sg-ptools small { display: block; font-size: 15px; color: var(--ink-faint); font-weight: 600; line-height: 1.25; }
.sg-ptools-arr { margin-inline-start: auto; flex: none; width: 22px; height: 22px; color: #8D72F0; }
.sg-ptools a.is-dark { background: linear-gradient(160deg, #2B2350, #4A3D8F); color: #fff; }
.sg-ptools a.is-dark small { color: rgba(255, 255, 255, .78); }
.sg-ptools a.is-dark .sg-ptools-arr { color: #FFD45C; }
.sg-ptools-noor { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: rgba(255, 255, 255, .14); }
.sg-ptools-noor .k-mascot-svg { width: 30px; height: 38px; }
.sg-ptools-noor .noor-glow, .sg-ptools-noor .noor-spark { display: none; }

/* The footer follows straight on from the last cloud plate. */
body.page-world .sg-foot { margin-top: 0; background: linear-gradient(180deg, rgba(253, 233, 240, 0) 0%, rgba(255, 255, 255, .95) 40%); }
:root[data-theme="dark"] body.page-world .sg-foot { background: linear-gradient(180deg, rgba(58, 46, 122, 0) 0%, rgba(30, 26, 78, .95) 40%); }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
    .sg-dtile small { display: none; }
    .sg-arcade { grid-template-columns: repeat(4, 1fr); }
    .sg-stories { grid-template-columns: minmax(0, 1fr); }
    .sg-missions { grid-template-columns: 1fr 1fr; }
    .sg-parents { grid-template-columns: 1fr; }
    .sg-kicker-ar { display: none; }
}
@media (max-width: 860px) {
    .sg-hero-copy { top: 106px; }
    .sg-kicker { height: 32px; font-size: 13px; }
    .sg-hud-text { display: none; }
    .sg-title { font-size: min(52px, 12.2vw); margin-top: 8px; }
    .sg-noor-pill { gap: 10px; padding: 8px; border-radius: 22px; width: auto; margin-top: 10px; }
    .sg-noor-face { width: 52px; height: 52px; border-radius: 18px; }
    .sg-noor-face .k-mascot-svg { width: 36px; height: 46px; }
    .sg-say { flex: 1; min-width: 0; }
    .sg-say strong { font-size: 14.5px; }
    .sg-say [data-bubble-text] { font-size: 14px; }
    .sg-hear { width: 46px; min-height: 46px; padding: 0; }
    .sg-hear-label { display: none; }
    .sg-visit { min-height: 46px; font-size: 14px; padding: 0 12px; gap: 4px; max-width: 150px; }
    .sg-noor-pill.has-visit .sg-say strong { display: none; }
    /* Tablets and phones have the six doors in the tab bar at the bottom, so the dock steps aside for the islands. */
    .sg-dock { display: none; }
    .sg-dock::-webkit-scrollbar { display: none; }
    .sg-dtile { flex-direction: column; justify-content: center; height: 98px; gap: 4px; text-align: center; padding: 8px 6px; border-radius: 22px; }
    .sg-dtile-ico { width: 52px; height: 52px; padding: 6px; border-radius: 16px; }
    .sg-dtile b { font-size: 14.5px; }
    .sg-dusk .sg-sw { width: 52px; height: 52px; border-radius: 16px; }
    .sg-dusk .sg-sw i { width: 26px; height: 26px; inset-inline-start: 13px; top: 7px; }
    .sg-tag { height: 32px; font-size: 13px; padding-inline: 5px 10px; }
    .sg-tag-dot { width: 21px; height: 21px; }
    .sg-pcard { width: calc(100vw - 32px); }
    .no-gl .sg-pcard { left: 16px; margin: 0; }
    .sg-sec { width: calc(100vw - 32px); padding-bottom: 56px; }
    .sg-sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .sg-lede { font-size: 17px; }
    .sg-arcade { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
    .sg-game.is-big { grid-column: span 2; grid-row: span 2; }
    .sg-game.is-big .sg-game-ico { width: 110px; height: 110px; }
    .sg-game-ico { width: 54px; height: 54px; }
    .sg-game b { font-size: 17px; }
    .sg-missions { grid-template-columns: 1fr; }
    .sg-promise { grid-template-columns: 1fr; }
    .sg-plate { padding: 14px; border-radius: 30px; }
    .sg-parents { padding: 20px; }
    .sg-below { padding-top: 28px; }
    .sg-mission-letter { width: 130px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    .sg-rays, .sg-bal-art, .sg-game-stars .sg-ico, .sg-trace { animation: none !important; }
}

@media (max-width: 760px) {
    /* On a phone the big buttons are a compact row of clay icons above the tab bar, so the islands keep the screen. */
    .sg-dtile { height: 74px; padding: 6px 4px; border-radius: 20px; gap: 2px; }
    .sg-dtile-ico { width: 40px; height: 40px; padding: 4px; border-radius: 13px; }
    .sg-dtile b { font-size: 11.5px; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .sg-dusk .sg-sw { width: 40px; height: 40px; border-radius: 13px; }
    .sg-dusk .sg-sw i { width: 22px; height: 22px; inset-inline-start: 9px; top: 5px; }
    .sg-dusk .sg-sw::after { height: 16px; bottom: -6px; }
}

/* ================= The connected world (Part 40) ================= */
/* ---------- landmark tags: smaller, with their own icon ---------- */
.sg-tag--mark { height: 34px; padding-inline: 4px 12px; font-size: 13.5px; gap: 6px; background: rgba(255, 255, 255, .86); }
.sg-tag--mark .sg-tag-dot { width: 24px; height: 24px; display: grid; place-items: center; }
.sg-tag--mark .sg-tag-dot::after { display: none; }
.sg-tag--mark .sg-tag-dot .k-ico { width: 15px; height: 15px; color: #fff; }
.sg-tag--mark.is-hot .sg-tag-dot .k-ico, .sg-tag--mark.is-on .sg-tag-dot .k-ico, .sg-tag--mark:focus-visible .sg-tag-dot .k-ico { color: var(--td); }
.sg-tag:not(.is-found) .sg-tag-name::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 6px; vertical-align: 2px; border-radius: 50%; background: #FFC84A; box-shadow: 0 0 0 3px rgba(255, 200, 74, .28); }
:root[data-theme="dark"] .sg-tag { background: rgba(46, 40, 108, .9); color: #FFF7EE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sg-tag { background: rgba(46, 40, 108, .9); color: #FFF7EE; } }

/* ---------- 2D map mode: tags placed over the still picture, paths between places ---------- */
.map-2d #gl { display: none; }
.map-2d .sg-tag { left: 0 !important; top: 0 !important; opacity: 1; pointer-events: auto; transition: background .2s, color .2s, box-shadow .2s, opacity .3s; }
.map-2d .sg-tag.is-hidden { opacity: 0; pointer-events: none; }
.sg-paths { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; display: none; }
.map-2d .sg-paths { display: block; }
.sg-paths path { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; filter: drop-shadow(0 1px 1px rgba(76, 52, 150, .25)); }
.sg-paths path.is-found { stroke: #FFC84A; stroke-width: 4.5; stroke-dasharray: 14 7; animation: sg-path 1.4s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 190, 90, .8)); }
@keyframes sg-path { to { stroke-dashoffset: -21; } }
.sg-noormark { position: absolute; left: 0; top: 0; z-index: 5; width: 44px; height: 55px; opacity: 0; pointer-events: none; transition: transform .7s var(--ease-bounce), opacity .3s; filter: drop-shadow(0 0 14px rgba(255, 200, 90, .9)); }
.sg-noormark .k-mascot-svg { width: 44px; height: 55px; animation: sg-noorbob 2.6s ease-in-out infinite; }
.sg-noormark.is-on { opacity: 1; }
@keyframes sg-noorbob { 50% { transform: translateY(-6px) rotate(3deg); } }
.map-2d .sg-pcard { left: 0; top: 0; bottom: auto; margin: 0; }

/* ---------- Noor's suggestion ---------- */
.sg-suggest {
    display: inline-flex; align-items: center; gap: 8px; margin: 10px auto 0; padding-block: 5px; padding-inline: 14px 5px; max-width: 100%;
    border-radius: 999px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t, #8D72F0) 45%, transparent), 0 12px 26px -16px rgba(76, 52, 150, .6);
    font-family: var(--font-display); font-size: 14.5px; color: #2B2350; animation: sg-pop-line .6s var(--ease-bounce);
}
.sg-suggest-lead { font-weight: 600; color: #6B6396; white-space: nowrap; }
.sg-suggest-lead::before { content: ""; display: inline-block; width: 8px; height: 12px; margin-inline-end: 7px; border-radius: 3px 3px 4px 4px; background: linear-gradient(180deg, #FFF3C2, #FFA34A); box-shadow: 0 0 10px rgba(255, 170, 70, .9); vertical-align: -1px; }
.sg-suggest-name { font-weight: 700; color: var(--td, #5B3FD0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-suggest-why { font-size: 13px; font-weight: 600; color: #6B6396; white-space: nowrap; }
.sg-suggest-go { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; color: #fff; background: var(--td, #7A5CF0); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); transition: transform .3s var(--ease-bounce); }
.sg-suggest-go:hover, .sg-suggest-go:focus-visible { transform: translateY(-2px) scale(1.04); }
.sg-suggest-go svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .sg-suggest { background: rgba(46, 40, 108, .82); color: #FFF7EE; }
:root[data-theme="dark"] .sg-suggest-lead, :root[data-theme="dark"] .sg-suggest-why { color: #CFC4F5; }
:root[data-theme="dark"] .sg-suggest-name { color: #FFE3A0; }

/* ---------- the toolbar: 3D or map, gliding, the journal ---------- */
.sg-ctrl {
    position: absolute; z-index: 6; inset-inline-start: 24px; bottom: 136px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100% - 48px);
    transform: translateY(calc(var(--p) * 160px)); opacity: calc(1 - var(--p) * 3);
}
.sg-mode { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 22px -12px rgba(76, 52, 150, .55); }
.sg-mode button, .sg-ctrl-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 999px; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 14px; color: #554B86; background: transparent; transition: background .2s, color .2s, transform .3s var(--ease-bounce);
}
.sg-mode button[aria-pressed="true"] { background: linear-gradient(180deg, #A58CFF, #7A5CF0); color: #fff; box-shadow: inset 0 -3px 0 rgba(40, 20, 120, .25); }
.sg-mode button:disabled { opacity: .45; cursor: not-allowed; }
.sg-ctrl-btn { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 22px -12px rgba(76, 52, 150, .55); }
.sg-ctrl-btn:hover, .sg-ctrl-btn:focus-visible, .sg-mode button:not([aria-pressed="true"]):hover { transform: translateY(-2px); color: #2B2350; }
.sg-ctrl-btn[aria-pressed="true"] { background: #2B2350; color: #FFE3A0; }
.sg-ctrl-journal { background: linear-gradient(180deg, #FFF3C2, #FFC84A); color: #6B3A00; }
.sg-ctrl-ico { width: 20px; height: 20px; flex: none; }
:root[data-theme="dark"] .sg-mode, :root[data-theme="dark"] .sg-ctrl-btn:not(.sg-ctrl-journal):not([aria-pressed="true"]) { background: rgba(46, 40, 108, .82); color: #E3D8FF; }

/* the on-screen pad */
.sg-pad {
    position: absolute; z-index: 6; inset-inline-start: 24px; bottom: 190px; display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px) auto; gap: 6px; padding: 10px;
    border-radius: 28px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-l); animation: sg-card-in .45s cubic-bezier(.25, 1.5, .5, 1);
}
.sg-pad button { display: grid; place-items: center; border: 0; border-radius: 18px; cursor: pointer; background: #fff; color: #5B3FD0; box-shadow: inset 0 -4px 0 rgba(91, 63, 208, .14), 0 6px 14px -8px rgba(76, 52, 150, .5); font-family: var(--font-display); font-weight: 700; font-size: 13px; transition: transform .2s; }
.sg-pad button:active { transform: scale(.92); }
.sg-pad svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sg-pad-up { grid-column: 2; grid-row: 1; }
.sg-pad-left { grid-column: 1; grid-row: 2; }
.sg-pad-go { grid-column: 2; grid-row: 2; background: linear-gradient(180deg, #A58CFF, #7A5CF0) !important; color: #fff !important; }
.sg-pad-right { grid-column: 3; grid-row: 2; }
.sg-pad-down { grid-column: 2; grid-row: 3; }
:root[dir="rtl"] .sg-pad-left { grid-column: 3; }
:root[dir="rtl"] .sg-pad-right { grid-column: 1; }
:root[dir="rtl"] .sg-pad-left svg, :root[dir="rtl"] .sg-pad-right svg { transform: scaleX(-1); }
.sg-pad-hint { grid-column: 1 / -1; max-width: 168px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: #6B6396; text-align: center; }
:root[data-theme="dark"] .sg-pad { background: rgba(46, 40, 108, .82); }
:root[data-theme="dark"] .sg-pad button:not(.sg-pad-go) { background: #3E3489; color: #FFE3A0; }
:root[data-theme="dark"] .sg-pad-hint { color: #CFC4F5; }

/* the device note and the loading pill */
.sg-lite { position: absolute; z-index: 6; inset-inline: 0; margin-inline: auto; bottom: 136px; width: max-content; max-width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 10px; padding-block: 8px 8px; padding-inline: 16px 8px; border-radius: 999px; background: rgba(43, 35, 80, .86); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-l); }
.sg-lite-try { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #FFC84A; color: #6B3A00; font: inherit; font-weight: 700; cursor: pointer; }
.sg-loading { position: absolute; z-index: 6; inset-inline: 0; margin: 0 auto; bottom: 50%; width: max-content; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-family: var(--font-display); font-weight: 600; color: #554B86; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sg-loading.is-on { opacity: 1; animation: sg-noorbob 1.6s ease-in-out infinite; }

/* ---------- inside a place: the spots panel and the pins ---------- */
.sg-vpanel {
    position: absolute; z-index: 7; inset-inline-end: 24px; top: 112px; width: min(380px, calc(100% - 48px)); max-height: calc(100% - 260px); overflow: auto; overscroll-behavior: contain;
    padding: 16px 16px 14px; border-radius: 28px; color: #2B2350;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: var(--shadow-l), inset 0 0 0 1px #fff; animation: sg-card-in .55s cubic-bezier(.25, 1.5, .5, 1);
}
.sg-vpanel::before { content: ""; position: absolute; inset-inline: 22px; top: 0; height: 6px; border-radius: 0 0 6px 6px; background: var(--t); }
.sg-vp-ar { display: block; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 700; font-size: 16px; color: var(--td); line-height: 1.2; }
.sg-vp-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.02; letter-spacing: -.01em; outline: none; }
.sg-vp-near { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; color: #554B86; line-height: 1.3; }
.sg-vp-lanterns:empty { display: none; }
.sg-vp-lanterns { display: inline-flex; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: #FFF3CF; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: #6B3A00; }
.sg-vp-say { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; padding-block: 6px 6px; padding-inline: 6px 10px; border-radius: 16px; background: linear-gradient(180deg, #FFF8E1, #FFF1C9); font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #5A3A00; }
.sg-vp-noor { flex: none; display: grid; place-items: center; width: 34px; height: 38px; }
.sg-vp-noor .k-mascot-svg { width: 28px; height: 35px; }
.sg-vp-noor .noor-glow, .sg-vp-noor .noor-spark { display: none; }
:root[data-theme="dark"] .sg-vp-say { background: rgba(255, 210, 120, .14); color: #FFE9B8; }
.sg-vp-spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.sg-vp-spot {
    position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding-block: 5px 5px; padding-inline: 5px 10px; border: 0; border-radius: 16px; cursor: pointer; text-align: start;
    font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.1; color: #2B2350; background: var(--ts); transition: transform .25s var(--ease-bounce), background .2s, color .2s;
}
.sg-vp-spot i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 12px; font-style: normal; font-weight: 700; color: #fff; background: var(--t); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.sg-vp-spot:hover, .sg-vp-spot:focus-visible { transform: translateY(-2px); }
.sg-vp-spot.is-on { background: var(--td); color: #fff; }
.sg-vp-spot.is-on i { background: #fff; color: var(--td); }
.sg-vp-spot.is-done::after { content: ""; position: absolute; inset-inline-end: 8px; top: 6px; width: 8px; height: 12px; border-radius: 3px 3px 4px 4px; background: linear-gradient(180deg, #FFF3C2, #FFA34A); box-shadow: 0 0 10px 2px rgba(255, 190, 100, .8); }
.sg-vp-acts { margin-top: 12px; }
.sg-vp-at { margin: 0 0 6px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--td); }
.sg-vp-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; max-height: 240px; overflow: auto; }
.sg-vp-act { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 5px 5px; padding-inline: 5px 12px; border-radius: 14px; text-decoration: none; color: #2B2350; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1.5px var(--ts); font-weight: 700; font-size: 14.5px; line-height: 1.2; transition: transform .25s var(--ease-bounce), box-shadow .2s; }
.sg-vp-act:hover, .sg-vp-act:focus-visible { transform: translateX(4px); box-shadow: inset 0 0 0 2px var(--t), 0 10px 20px -14px var(--td); }
:root[dir="rtl"] .sg-vp-act:hover, :root[dir="rtl"] .sg-vp-act:focus-visible { transform: translateX(-4px); }
.sg-vp-act-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ts); color: var(--td); }
.sg-vp-act-ico .k-ico { width: 20px; height: 20px; }
.sg-vp-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sg-vp-foot .k-btn { flex: 1 1 auto; justify-content: center; }
:root[data-theme="dark"] .sg-vpanel { background: rgba(38, 33, 96, .92); color: #FFF7EE; box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .sg-vp-near, :root[data-theme="dark"] .sg-vp-hint { color: #CFC4F5; }
:root[data-theme="dark"] .sg-vp-spot { color: #FFF7EE; }
:root[data-theme="dark"] .sg-vp-act { background: rgba(255, 255, 255, .06); color: #FFF7EE; }
:root[data-theme="dark"] .sg-vp-ar, :root[data-theme="dark"] .sg-vp-at { color: #FFE3A0; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sg-vpanel { background: rgba(38, 33, 96, .92); color: #FFF7EE; }
    :root:not([data-theme="light"]) .sg-vp-act, :root:not([data-theme="light"]) .sg-vp-spot { color: #FFF7EE; }
}
.is-inside .sg-hero-copy, .is-visiting .sg-suggest { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s; }
.is-inside .sg-hero-copy * { pointer-events: none !important; }
.is-inside .sg-pcard { opacity: 0; }

.sg-pins { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.sg-pin {
    position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 4px 12px; border: 0; border-radius: 999px; cursor: pointer; pointer-events: auto;
    font-family: var(--font-display); font-weight: 600; font-size: 13.5px; white-space: nowrap; color: #2B2350; background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 22px -10px rgba(76, 52, 150, .6); transition: opacity .35s, background .2s, color .2s; opacity: 0; will-change: transform;
}
.sg-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.sg-pin i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-weight: 700; color: #fff; background: var(--t); animation: sg-pinpulse 2.4s ease-in-out infinite; }
.sg-pin span { display: none; }
.sg-pin { padding-inline: 4px; }
.sg-pin.is-on, .sg-pin.is-hover, .sg-pin:hover { background: var(--td); color: #fff; z-index: 2; padding-inline-end: 12px; }
.sg-pin.is-on span, .sg-pin.is-hover span, .sg-pin:hover span { display: inline; }
.sg-pin.is-on i { background: #fff; color: var(--td); }
.sg-pin.is-done i { box-shadow: 0 0 0 3px #FFC84A, 0 0 14px 2px rgba(255, 190, 100, .8); }
@keyframes sg-pinpulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--t) 25%, transparent); } }

/* ---------- the world journal ---------- */
.sg-journal { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; }
.sg-jn { padding: 22px 24px 24px; text-align: start; }
.sg-jn-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sg-jn-head h2 { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 1.05; }
.sg-jn-head p { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.sg-jn-noor { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: radial-gradient(circle at 50% 55%, #FFF3C8 0%, #FFE08A 45%, #FFD07A 100%); }
.sg-jn-noor .k-mascot-svg { width: 40px; height: 50px; }
.sg-jn-noor .noor-glow, .sg-jn-noor .noor-spark { display: none; }
.sg-jn-close { margin-inline-start: auto; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; background: var(--grape-soft); color: var(--ink); }
.sg-jn-close svg { width: 20px; height: 20px; }
.sg-jn-state { padding: 30px 0; text-align: center; font-weight: 600; color: var(--ink-soft); }
.sg-jn-state.is-error { color: var(--coral-deep); }
.sg-jn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sg-jn-stats p { margin: 0; padding: 12px 14px; border-radius: 20px; background: var(--grape-soft); display: grid; gap: 2px; }
.sg-jn-stats b { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--grape-deep); }
:root[data-theme="dark"] .sg-jn-stats b { color: #FFE3A0; }
.sg-jn-stats span { font-weight: 700; font-size: 14px; }
.sg-jn-stats small { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.sg-jn-h { margin: 18px 0 8px; font-family: var(--font-display); font-size: 17px; }
.sg-jn-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.sg-jn-places a { display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 8px; padding-block: 6px 6px; padding-inline: 6px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); background: rgba(127, 127, 160, .1); opacity: .62; }
.sg-jn-places .is-found a { opacity: 1; background: var(--ts); }
.sg-jn-places .k-ico { grid-row: span 2; width: 30px; height: 30px; padding: 5px; border-radius: 10px; background: var(--t); color: #fff; }
.sg-jn-places span { font-weight: 700; font-size: 13.5px; line-height: 1.15; }
.sg-jn-places small { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.sg-jn-miles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.sg-jn-miles a { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; align-items: center; padding-block: 8px 8px; padding-inline: 8px 12px; border-radius: 18px; text-decoration: none; color: var(--ink); background: rgba(127, 127, 160, .1); }
.sg-jn-miles .is-reached a { background: linear-gradient(180deg, #FFF6D8, #FFE7A8); color: #4A2E00; box-shadow: inset 0 0 0 1.5px #FFC84A; }
.sg-jn-badge { grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(127, 127, 160, .25); color: #fff; }
.sg-jn-miles .is-reached .sg-jn-badge { background: radial-gradient(circle at 40% 35%, #FFF3C2, #FFA34A); box-shadow: 0 0 14px rgba(255, 170, 70, .7); color: #6B3A00; }
.sg-jn-badge .k-ico { width: 22px; height: 22px; }
.sg-jn-miles b { font-size: 14px; line-height: 1.15; }
.sg-jn-miles small { font-size: 12px; font-weight: 600; opacity: .8; }
.sg-jn-bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(127, 127, 160, .2); overflow: hidden; }
.sg-jn-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #A58CFF, #7A5CF0); }
.sg-jn-made { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sg-jn-made li { padding: 8px 14px; border-radius: 14px; background: var(--rose-soft); font-weight: 600; }
.sg-jn-made b { font-family: var(--font-display); font-size: 18px; }
.sg-jn-note { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

/* ---------- the world atlas below the clouds ---------- */
.sg-atlas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sg-atlas-isle { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 28px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 18px 34px -24px rgba(76, 52, 150, .6); }
.sg-atlas-head { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.sg-atlas-head img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(76, 52, 150, .25)); transition: transform .4s var(--ease-bounce); }
.sg-atlas-head:hover img { transform: translateY(-4px) rotate(-3deg); }
.sg-atlas-head b { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.05; }
.sg-atlas-head small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.25; }
.sg-atlas-head .sg-lantern-dot { position: absolute; inset-inline-end: 4px; top: 4px; }
.sg-atlas-spots { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.sg-atlas-spots a { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding-block: 0 0; padding-inline: 6px 10px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--td); background: var(--ts); }
.sg-atlas-spots .k-ico { width: 18px; height: 18px; }
.sg-atlas-mark { position: relative; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; padding-block: 6px 6px; padding-inline: 6px 10px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--ts); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t) 40%, transparent); }
.sg-atlas-mark-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--t); color: #fff; }
.sg-atlas-mark-ico .k-ico { width: 22px; height: 22px; }
.sg-atlas-mark b { display: block; font-size: 14.5px; line-height: 1.1; }
.sg-atlas-mark small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }
.sg-atlas-mark .sg-lantern-dot { position: absolute; inset-inline-end: 8px; top: 8px; }
:root[data-theme="dark"] .sg-atlas-isle { background: rgba(46, 40, 108, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .sg-atlas-spots a { color: #FFF7EE; }

@media (max-width: 860px) {
    .sg-ctrl { inset-inline-start: 12px; bottom: 124px; gap: 6px; }
    .sg-mode button, .sg-ctrl-btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
    .sg-ctrl-btn span, .sg-mode button span { display: none; }
    .sg-mode button[aria-pressed="true"] span { display: inline; }
    .sg-pad { inset-inline-start: 12px; bottom: 172px; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(3, 46px) auto; }
    .sg-vpanel { inset-inline: 10px; top: auto; bottom: 120px; width: auto; max-height: 52%; border-radius: 24px; padding: 12px; }
    .sg-vp-title { font-size: 21px; }
    .sg-vp-spots { grid-template-columns: 1fr 1fr; }
    .sg-vp-list { max-height: 150px; }
    .sg-suggest { font-size: 13px; padding-inline-start: 10px; }
    .sg-suggest-why { display: none; }
    .sg-lite { bottom: 172px; font-size: 13px; border-radius: 22px; }
    .sg-jn { padding: 16px; }
    .sg-jn-stats b { font-size: 24px; }
    .sg-tag--mark { height: 30px; font-size: 12px; }
}
@media (max-width: 600px) {
    /* On a phone the landmarks wear just their icon, so fourteen labels still leave room for the islands. */
    .sg-tag--mark:not(.is-on):not(.is-hot):not(:focus-visible) { padding-inline: 3px; gap: 0; }
    .sg-tag--mark:not(.is-on):not(.is-hot):not(:focus-visible) .sg-tag-name { display: none; }
    .sg-tag--mark .sg-tag-lantern:empty { display: none; }
}
@media (max-width: 760px) {
    .sg-ctrl { bottom: calc(176px + env(safe-area-inset-bottom)); }
    .sg-pad { bottom: calc(222px + env(safe-area-inset-bottom)); }
    .sg-vpanel { bottom: calc(176px + env(safe-area-inset-bottom)); max-height: 46%; }
    .sg-lite { bottom: calc(222px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .sg-paths path.is-found, .sg-noormark .k-mascot-svg, .sg-pin i, .sg-loading.is-on { animation: none !important; }
    .sg-noormark { transition: none; }
}
