/* Snow Globe Streets (ported from Street Alchemy, alchemy.tripgeo.com). Everything is scoped to .sgx, the wrapper
   every snow globe page draws, so none of it reaches the rest of TripGeo Maps (Bootstrap pages). Class prefixes:
   sa- shared controls, sg- the engine's overlays, hub- the library, st- the studio, vw- the full-window viewer. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

.sgx {
    --bg: #05070e;
    --bg-2: #0a0f1e;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-2: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #eaf0fa;
    --muted: #9aa7bf;
    --dim: #6b7790;
    --ice: #a9d6ff;
    --gold: #f3c76e;
    --gold-2: #d38f34;
    --radius: 18px;
    --radius-lg: 28px;
    --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
    --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --head-h: 0px;
    color-scheme: dark;
    font: 400 16px/1.6 var(--sans);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
/* inside the site's layout the pages are a dark panel in the white content column */
.sgx-panel {
    border-radius: 22px;
    overflow: clip;
    margin: 0 0 1.5rem;
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(64, 104, 196, 0.22), transparent 60%),
        radial-gradient(900px 600px at -10% 20%, rgba(166, 92, 214, 0.12), transparent 60%),
        radial-gradient(1000px 800px at 50% 120%, rgba(212, 150, 60, 0.08), transparent 60%),
        var(--bg);
}
.sgx *, .sgx *::before, .sgx *::after { box-sizing: border-box; }
.sgx a { color: var(--ice); text-decoration: none; }
.sgx a:hover { color: #fff; }
.sgx h1, .sgx h2, .sgx h3 { line-height: 1.1; margin: 0 0 0.4em; font-weight: 600; color: inherit; }
.sgx h1, .sgx h2 { font-family: var(--serif); letter-spacing: -0.01em; }
.sgx h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.sgx h3 { font-size: 1.12rem; }
.sgx p { margin: 0 0 1em; }
.sgx kbd { font: 600 0.8em var(--sans); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.sgx :focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.sgx [hidden] { display: none !important; }
.sgx label { margin: 0; }
.sgx .sa-section { padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }

.sa-kicker {
    font: 600 0.74rem/1.2 var(--sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9em;
}

/* ------------------------------------------------------------------ buttons, chips, inputs */
.sa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    font: 600 0.95rem/1 var(--sans);
    padding: 0.85em 1.35em;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--text);
    background: var(--panel-2);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.sa-btn:hover { transform: translateY(-1px); color: #fff; }
.sa-btn:active { transform: translateY(0); }
.sa-btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.sa-btn-gold {
    color: #1d1205;
    background: linear-gradient(180deg, #ffe2a3, var(--gold) 45%, var(--gold-2));
    box-shadow: 0 8px 28px -10px rgba(243, 199, 110, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.sa-btn-gold:hover { color: #1d1205; box-shadow: 0 12px 34px -10px rgba(243, 199, 110, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.sa-btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.sa-btn-glass:hover { background: rgba(255, 255, 255, 0.14); }
.sa-btn-glass.is-off { opacity: 0.75; }
.sa-btn-ghost { background: transparent; border-color: var(--line-2); }
.sa-btn-ghost:hover { border-color: var(--ice); }
.sa-btn-big { font-size: 1.05rem; padding: 1em 1.6em; }
.sa-btn-small { font-size: 0.82rem; padding: 0.6em 1em; }

.sa-chip {
    display: inline-flex; align-items: center; gap: 0.4em;
    font: 500 0.85rem/1 var(--sans);
    padding: 0.6em 0.95em;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sa-chip:hover { border-color: var(--ice); }
.sa-chip.is-on { background: rgba(169, 214, 255, 0.16); border-color: var(--ice); color: #fff; box-shadow: 0 0 0 1px rgba(169, 214, 255, 0.25) inset; }
.sa-chip-swatch i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset; }

.sa-input {
    width: 100%;
    font: 400 0.95rem/1.4 var(--sans);
    color: var(--text);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 0.75em 0.95em;
    transition: border-color 0.2s, background 0.2s;
}
.sa-input:focus { outline: none; border-color: var(--ice); background: rgba(0, 0, 0, 0.4); }
.sa-input::placeholder { color: var(--dim); }
select.sa-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2em; }
select.sa-input option, select.sa-input optgroup { background: #101727; color: var(--text); }
textarea.sa-input { resize: vertical; min-height: 84px; }
input[type=range] { width: 100%; accent-color: var(--gold); }


.sa-toast {
    position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 20px); opacity: 0;
    padding: 0.8em 1.2em; border-radius: 999px; background: rgba(10, 15, 30, 0.9); border: 1px solid var(--line-2);
    color: var(--text); font-size: 0.9rem; z-index: 90; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
    backdrop-filter: blur(12px); max-width: calc(100vw - 32px); text-align: center;
}
.sa-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ the library (/snowglobe) */
.hub-hero {
    max-width: 1500px; margin: 0 auto;
    padding: clamp(16px, 3vw, 36px) clamp(16px, 4vw, 48px) 0;
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); gap: clamp(16px, 3vw, 40px); align-items: stretch;
}
.hub-stage-wrap { position: relative; }
.hub-stage {
    position: relative; height: min(78vh, 820px); min-height: 440px; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line-2); box-shadow: var(--shadow);
    background: radial-gradient(circle at 50% 45%, #13254d, #02040b 70%);
}
.hub-stage-hint { text-align: center; color: var(--dim); font-size: 0.82rem; margin: 0.7rem 0 0; }
.hub-now { align-self: center; padding: 1rem 0; }
.hub-now h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin: 0; }
.hub-now-sub { color: var(--ice); font-weight: 500; margin: 0.4rem 0 1rem; }
.hub-now-blurb { color: #c9d3e6; font-size: 1.08rem; }
.hub-seasons { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.4rem 0; }
.hub-now-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.7rem; }
.hub-now-note { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }

.hub-lib-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.2rem; margin-bottom: 1.8rem; }
.hub-lib-head h2 { margin: 0; }
.hub-lib-tools { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hub-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hub-search { width: 220px; border-radius: 999px; }
.hub-region { margin-bottom: 2.6rem; }
.hub-region-name { font: 600 0.78rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.hub-card {
    position: relative; display: flex; flex-direction: column; gap: 0.6rem;
    padding: 1rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
    color: var(--text); transition: transform 0.22s ease, border-color 0.22s, background 0.22s;
}
.hub-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); color: var(--text); }
.hub-card.is-current { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(243, 199, 110, 0.35) inset, 0 16px 40px -24px rgba(243, 199, 110, 0.6); }
.sa-globeart { width: 92px; height: 92px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); transition: transform 0.35s ease; }
.hub-card:hover .sa-globeart { transform: rotate(-5deg) scale(1.04); }
.hub-card-text { display: flex; flex-direction: column; }
.hub-card-text b { font: 600 1.28rem/1.15 var(--serif); }
.hub-card-text small { color: var(--ice); font-size: 0.8rem; margin: 0.15rem 0 0.4rem; }
.hub-card-text span { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.hub-card-badge { position: absolute; top: 12px; right: 12px; font-size: 1rem; }
.hub-none { color: var(--muted); }


@media (max-width: 980px) {
    .hub-hero { grid-template-columns: 1fr; }
    .hub-stage { height: 62vh; min-height: 360px; }
}
@media (max-width: 760px) {
    .hub-search { width: 100%; }
    .hub-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .hub-card { padding: 0.8rem; }
    .sa-globeart { width: 72px; height: 72px; }
}


/* ------------------------------------------------------------------ the engine's host and overlays */
.sg-host { overflow: hidden; isolation: isolate; }   /* the page positions it (absolute or relative) */
.sg-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; cursor: grab; }
.sg-canvas:active { cursor: grabbing; }
.sg-ui { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sg-loading {
    position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55em 1em; border-radius: 999px;
    background: rgba(5, 8, 16, 0.6); border: 1px solid var(--line-2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-size: 0.82rem; color: var(--text); white-space: nowrap;
}
.sg-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--gold); animation: sg-spin 0.9s linear infinite; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
.sg-attrib {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    padding: 5px 10px;
    font: 400 10.5px/1.3 var(--sans); color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: auto;
}
.sg-glogo { height: 14px; width: auto; }
.sg-credits { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-sim { padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); white-space: nowrap; cursor: help; }

/* the inside: Street View under our falling snow */
.sg-inside { position: absolute; inset: 0; z-index: 30; background: #fff; animation: sg-fade-in 0.6s ease; }
@keyframes sg-fade-in { from { opacity: 0; } to { opacity: 1; } }
.sg-pano { position: absolute; inset: 0; z-index: 1; }
.sg-fall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.sg-inside-bar { position: absolute; left: 12px; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; pointer-events: none; }
.sg-inside-bar .sa-btn { pointer-events: auto; background: rgba(6, 9, 18, 0.65); }
.sg-inside-label { font-size: 0.72rem; color: #fff; padding: 0.35em 0.8em; border-radius: 999px; background: rgba(6, 9, 18, 0.55); }
.sg-inside-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; padding: 1.2rem 1.6rem; border-radius: 16px; background: rgba(6, 9, 18, 0.85); color: var(--text); max-width: 80%; text-align: center; }

/* ------------------------------------------------------------------ the viewer: one globe, the whole window */
.vw { position: fixed; inset: 0; overflow: hidden; background: #02040b; color: var(--text); }
.vw-stage { position: absolute; inset: 0; }
.vw-top {
    position: absolute; left: 0; right: 0; top: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: max(12px, env(safe-area-inset-top)) 16px 28px;
    background: linear-gradient(180deg, rgba(2, 4, 11, 0.7), transparent);
    pointer-events: none;
}
.vw-top a, .vw-top button { pointer-events: auto; }
.vw-brand { display: flex; align-items: center; gap: 0.55rem; color: var(--text); }
.vw-brand .sa-logo { width: 30px; height: 30px; }
.vw-brand span { display: flex; flex-direction: column; line-height: 1.05; }
.vw-brand b { font: 700 1.08rem var(--serif); }
.vw-brand small { font: 600 0.55rem var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.vw-place { text-align: right; font: 600 1.15rem/1.1 var(--serif); display: flex; flex-direction: column; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.vw-place small { font: 500 0.72rem var(--sans); color: var(--muted); margin-top: 0.2rem; }

.vw-cover {
    position: absolute; inset: 0; z-index: 40;
    display: grid; place-items: center; padding: 20px;
    background: radial-gradient(circle at 50% 40%, rgba(10, 20, 45, 0.35), rgba(2, 4, 11, 0.82));
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.6s ease, visibility 0.6s;
}
.vw-cover.is-gone { opacity: 0; visibility: hidden; }
.vw-card {
    width: min(460px, 100%); text-align: center;
    padding: 2rem 1.8rem 1.6rem; border-radius: 26px;
    background: linear-gradient(180deg, rgba(20, 28, 52, 0.78), rgba(8, 11, 22, 0.86));
    border: 1px solid var(--line-2); box-shadow: var(--shadow);
    animation: vw-rise 0.8s cubic-bezier(.2, .8, .2, 1);
}
@keyframes vw-rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.vw-card h1 { font-size: clamp(2.2rem, 8vw, 3.1rem); margin: 0 0 0.5rem; }
.vw-msg { color: #d6deee; font-size: 1.05rem; white-space: pre-line; }
.vw-from { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.15rem; }
.vw-from b { color: var(--gold); font-style: normal; }
.vw-where { color: var(--ice); font-size: 0.85rem; margin: 1.2rem 0 1.4rem; }
.vw-tip { color: var(--dim); font-size: 0.8rem; margin: 1rem 0 0; }

.vw-bar {
    position: absolute; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 22px)); transform: translateX(-50%); z-index: 20;
    display: flex; gap: 0.35rem; padding: 0.4rem;
    border-radius: 22px; background: rgba(6, 9, 18, 0.6); border: 1px solid var(--line-2);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; transform: translate(-50%, 16px); transition: opacity 0.5s 0.2s, transform 0.5s 0.2s;
}
.vw.is-open .vw-bar { opacity: 1; transform: translate(-50%, 0); }
.vw-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 64px; padding: 0.5rem 0.6rem; border: 0; border-radius: 16px;
    background: transparent; color: var(--text); cursor: pointer; font: 500 0.7rem var(--sans);
    transition: background 0.2s;
}
.vw-btn span:first-child { font-size: 1.25rem; line-height: 1.1; }
.vw-btn span:last-child { white-space: nowrap; }
.vw-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.vw-btn.is-off { opacity: 0.6; }
.vw-btn-gold { background: linear-gradient(180deg, #ffe2a3, var(--gold) 45%, var(--gold-2)); color: #1d1205; }
.vw-btn-gold:hover { color: #1d1205; background: linear-gradient(180deg, #fff0c8, var(--gold)); }
.vw.is-inside .vw-bar, .vw.is-inside .vw-top, .vw.is-inside .vw-message { opacity: 0; pointer-events: none; }
.vw.is-diving .vw-bar { opacity: 0.3; }

.vw-message {
    position: absolute; left: 16px; bottom: 110px; z-index: 15; max-width: min(340px, calc(100vw - 32px));
    display: flex; gap: 0.6rem; align-items: flex-start;
    opacity: 0; transition: opacity 0.5s 0.6s;
}
.vw.is-open .vw-message { opacity: 1; }
.vw-message-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6, 9, 18, 0.6); color: var(--gold); font-size: 1.1rem; cursor: pointer; backdrop-filter: blur(10px); }
.vw-message-body { padding: 0.8rem 1rem; border-radius: 16px; background: rgba(6, 9, 18, 0.6); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.vw-message-body b { font: 600 1.25rem/1.1 var(--serif); display: block; margin-bottom: 0.3rem; }
.vw-message-body p { color: #d6deee; font-size: 0.9rem; margin: 0 0 0.3rem; white-space: pre-line; }
.vw-message-body small { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 0.95rem; }
.vw-message.is-folded .vw-message-body { display: none; }

.vw-hint {
    position: absolute; left: 50%; top: 84px; transform: translate(-50%, -8px); z-index: 12;
    padding: 0.55em 1em; border-radius: 999px; background: rgba(6, 9, 18, 0.62); border: 1px solid var(--line-2);
    font-size: 0.8rem; color: var(--text); text-align: center; max-width: calc(100vw - 32px);
    opacity: 0; transition: opacity 0.5s, transform 0.5s; pointer-events: none;
}
.vw-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.vw .sg-attrib { bottom: 0; }
.vw .sg-loading { top: 76px; }

.vw-missing { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.vw-missing-card { max-width: 520px; text-align: center; padding: 2.2rem; border-radius: 26px; background: var(--panel); border: 1px solid var(--line-2); }
.vw-missing-card .sa-logo { width: 56px; height: 56px; margin-bottom: 1rem; }
.vw-missing-card p { color: var(--muted); }

@media (max-width: 560px) {
    .vw-btn { min-width: 50px; padding: 0.45rem 0.3rem; font-size: 0.6rem; }
    .vw-bar { gap: 0.15rem; }
    .vw-btn-wide { display: none; }
    .vw-message { bottom: 104px; left: 12px; }
    .vw-place { font-size: 1rem; }
    .vw-brand span { display: none; }
}

/* ------------------------------------------------------------------ the studio */
.st {
    display: grid; grid-template-columns: minmax(0, 1fr) 440px;
    max-width: 1600px; margin: 0 auto; gap: 0;
}
.st-stage-col { position: sticky; top: 0; height: 100vh; padding: 16px 0 16px clamp(12px, 2.5vw, 32px); display: flex; flex-direction: column; }
.st-stage-wrap { position: relative; flex: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: radial-gradient(circle at 50% 45%, #13254d, #02040b 70%); }
.st-stage { position: absolute; inset: 0; }
.st-stage-tools { position: absolute; top: 14px; left: 14px; z-index: 5; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.st-stage-tools .sa-btn { background: rgba(6, 9, 18, 0.55); }
.st-stage-note { color: var(--dim); font-size: 0.8rem; text-align: center; margin: 0.7rem 0 0; }
.st-status { margin: 0.5rem auto 0; padding: 0.5em 1em; border-radius: 999px; background: var(--panel-2); font-size: 0.84rem; color: var(--text); }
.st-status[data-tone=warn] { background: rgba(243, 199, 110, 0.15); color: #ffe3a8; }

.st-panel { padding: 24px clamp(16px, 2.4vw, 32px) 60px; }
.st-head h1 { font-size: 2.6rem; margin: 0; }
.st-desktop-note { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 0; }
.st-step { margin-top: 1.4rem; padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.st-step h2 { font: 600 1.35rem var(--serif); display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.st-step h2 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 0.85rem var(--sans); color: #1d1205; background: linear-gradient(180deg, #ffe2a3, var(--gold-2)); }
.st-step h3 { font: 600 1.1rem var(--serif); margin: 1.2rem 0 0.3rem; }
.st-label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.84rem; color: var(--muted); margin-top: 0.9rem; }
.st-label output { color: var(--ice); font-weight: 600; }
.st-sub { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 1rem 0 0.5rem; }
.st-sub:first-of-type { margin-top: 0; }
.st-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.st-row { display: flex; gap: 0.5rem; }
.st-row .sa-input { flex: 1; }
.st-search { position: relative; }
.st-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 0.3rem;
    border-radius: 14px; background: #0d1424; border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.st-suggest li { padding: 0.55rem 0.7rem; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; }
.st-suggest li small { color: var(--muted); font-size: 0.78rem; }
.st-suggest li:hover, .st-suggest li.is-active { background: rgba(169, 214, 255, 0.12); }
.st-place { display: flex; gap: 0.7rem; align-items: center; margin-top: 1rem; padding: 0.8rem 0.9rem; border-radius: 14px; background: rgba(169, 214, 255, 0.07); border: 1px solid rgba(169, 214, 255, 0.2); }
.st-place span:last-child { display: flex; flex-direction: column; }
.st-place b { font: 600 1.2rem/1.1 var(--serif); }
.st-place small { color: var(--muted); font-size: 0.8rem; }
.st-send { border-color: rgba(243, 199, 110, 0.35); background: linear-gradient(180deg, rgba(243, 199, 110, 0.08), var(--panel)); }
.st-create { width: 100%; }
.st-result { margin-top: 1rem; }
.st-result-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.st-result-row .sa-input { flex: 1; min-width: 180px; font-size: 0.85rem; }
.st-small { color: var(--muted); font-size: 0.8rem; margin: 0.4rem 0 0; }

@media (max-width: 980px) {
    .st { grid-template-columns: 1fr; }
    .st-stage-col { position: sticky; top: 0; z-index: 10; height: 52vh; padding: 8px 8px 0; background: var(--bg); }
    .st-stage-note { display: none; }
    .st-panel { padding-top: 8px; }
}

/* back out to the whole globe after zooming in among the buildings */
.sg-whole {
    position: absolute; right: 14px; top: 14px; pointer-events: auto; z-index: 3;
    font: 600 0.82rem var(--sans); color: var(--text); cursor: pointer;
    padding: 0.6em 1em; border-radius: 999px; border: 1px solid var(--line-2);
    background: rgba(6, 9, 18, 0.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: sg-fade-in 0.3s ease;
}
.sg-whole:hover { background: rgba(6, 9, 18, 0.85); border-color: var(--ice); }
.vw .sg-whole { top: auto; right: auto; left: 50%; bottom: max(104px, calc(env(safe-area-inset-bottom) + 100px)); transform: translateX(-50%); }

/* walk mode: the hint across the top and the touch pad */
.sg-walkhint {
    position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 3;
    padding: 0.55em 1.1em; border-radius: 999px; max-width: calc(100% - 32px); text-align: center;
    background: rgba(6, 9, 18, 0.6); border: 1px solid var(--line-2); color: var(--text); font-size: 0.8rem;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity 0.8s;
}
.sg-walkhint.is-faded { opacity: 0; }
.sg-stick {
    position: absolute; left: 24px; bottom: 40px; z-index: 4; width: 120px; height: 120px; border-radius: 50%;
    pointer-events: auto; touch-action: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sg-stick span {
    position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.75); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); transition: transform 0.08s;
}
.vw .sg-stick { bottom: max(120px, calc(env(safe-area-inset-bottom) + 116px)); }
.vw .sg-walkhint { top: 76px; }
.vw.is-walking .vw-message, .vw.is-walking .vw-hint { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------------ TripGeo Maps additions */
.vw-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.vw-missing { background: var(--bg); }
.vw-missing-card img { border-radius: 12px; margin-bottom: 1rem; }
.hub-credit { color: var(--dim); font-size: 0.8rem; margin: 1rem 0 0; }
.hub .hub-hero { padding-top: clamp(16px, 2.4vw, 28px); }
/* the studio's stage stays in view while the form scrolls (the site's sidebar is beside it, not above) */
.st { border-radius: 22px; }
@media (max-width: 640.98px) {
    .sgx-panel { border-radius: 14px; margin-left: -0.75rem; margin-right: -0.75rem; }
}
.sgx h1:focus, .sgx h1:focus-visible { outline: none; }

/* links out: the place on Google Maps, and TripGeo */
.st-gmaps { font-size: 0.78rem; margin-top: 0.25rem; }
.vw-place .vw-gmaps { pointer-events: auto; font: 500 0.72rem var(--sans); color: var(--ice); margin-top: 0.3rem; text-shadow: none; }
.vw-place .vw-gmaps:hover { color: #fff; }
.vw-tripgeo {
    pointer-events: auto; margin-right: auto; margin-left: 0.4rem;
    font: 600 0.72rem var(--sans); color: var(--muted); padding: 0.35em 0.8em; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(6, 9, 18, 0.45);
}
.vw-tripgeo:hover { color: #fff; border-color: var(--ice); }

/* recording a film of the globe */
.vw-rec span:first-child, .st-rec .st-rec-dot { color: #ff4d4d; }
.vw.is-recording .vw-rec { background: rgba(255, 70, 70, 0.22); }
.vw.is-recording .vw-rec span:first-child, .st-rec.is-recording .st-rec-dot { animation: sg-rec-blink 1s steps(2, start) infinite; }
.vw.is-recording .vw-message, .vw.is-recording .vw-hint { opacity: 0; pointer-events: none; }
.st-rec.is-recording { background: rgba(255, 70, 70, 0.3) !important; border-color: #ff6b6b; }
@keyframes sg-rec-blink { to { visibility: hidden; } }
