/* ==========================================================================
   SUKOON EARTH — globe + soundscape experience
   Extends the Suk00n design system (sukoon.css loads first).
   ========================================================================== */

.earth { background: var(--paper); }

/* ---------- Hero + globe stage (dark, atmospheric) ---------- */
.earth-stage {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: clamp(330px, 34vw, 440px) 1fr; align-items: stretch;
  background: radial-gradient(120% 90% at 60% -10%, #16241d 0%, #0d150f 55%, #080d09 100%);
  color: #eaf1ea;
}
.earth-stage::after { /* subtle starfield */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 72% 30%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 42% 68%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 86% 76%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 55% 16%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 30% 84%, rgba(255,255,255,0.5), transparent);
}
#earthCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: grab; outline: none; }
#earthCanvas:active { cursor: grabbing; }
/* no hard focus box when interacting with the globe; keep a soft keyboard-only ring */
#earthCanvas:focus { outline: none; }
#earthCanvas:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(139,175,155,0.5); }

/* ---------- Split composition: editorial panel + globe area ---------- */
.earth-panel {
  position: relative; z-index: 5; align-self: center; pointer-events: auto;
  padding: calc(var(--nav-h) + 34px) 30px 34px max(6%, 26px); max-width: 460px;
  background: linear-gradient(90deg, rgba(8,13,9,0.62) 0%, rgba(8,13,9,0.28) 70%, transparent 100%);
}
.earth-panel .earth-eyebrow { display: inline-block; margin-bottom: 12px; }
.earth-panel-title { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.08; color: #f3f7f2; margin-bottom: 12px; }
.earth-panel-title .em { font-style: italic; color: var(--sage); }
.earth-panel-sub { color: #c3d1c8; font-size: 0.96rem; max-width: 40ch; margin-bottom: 20px; }
.earth-panel .earth-search { margin-bottom: 0; }
.earth-panel .search-suggest { position: static; margin-top: 8px; max-height: 42vh; overflow: auto; }
.earth-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tod-pill { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-pill); padding: 5px 8px; width: fit-content; }
.tod-pill .tod-label { font-size: 0.72rem; color: #9fb2a6; font-weight: 600; padding: 0 6px; letter-spacing: 0.04em; }
.tod-pill button { padding: 5px 11px; border-radius: var(--r-pill); color: #cdd8ce; font-size: 0.76rem; font-weight: 600; }
.tod-pill button.active { background: rgba(231,201,139,0.2); color: var(--gold); }
.earth-panel-count { margin-top: 20px; font-size: 0.82rem; color: #9fb2a6; }
.earth-panel-count b { color: #e7efe8; }
.linky { color: var(--sage); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.linky:hover { color: var(--gold); }

.globe-area { position: relative; min-height: 100vh; }
/* soft planetary glow so the globe blends into the stage (no visible column seam) */
.globe-area::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(closest-side at 50% 48%, rgba(139,175,155,0.14), rgba(168,199,216,0.06) 45%, transparent 72%); }

/* first-visit hint */
.earth-hint {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(20,29,24,0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14); color: #dfeae2; font-size: 0.82rem; font-weight: 500;
  opacity: 0; transition: opacity 0.5s var(--ease); white-space: nowrap;
}
.earth-hint.show { opacity: 1; animation: hintFloat 3.6s var(--ease-soft) infinite; }
@keyframes hintFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.earth-hint i { color: var(--gold); }

/* subtle "interaction mode": dim editorial panel slightly while dragging the globe */
body.earth.dragging .earth-panel { opacity: 0.62; transition: opacity 0.25s var(--ease); }

/* CSS fallback globe (shown until WebGL ready, or if unsupported) */
.globe-fallback { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; }
.globe-fallback .ball {
  width: min(60vmin, 520px); height: min(60vmin, 520px); border-radius: 50%;
  background:
    radial-gradient(120px 90px at 32% 30%, rgba(168,199,216,0.5), transparent 60%),
    radial-gradient(160px 120px at 70% 68%, rgba(139,175,155,0.55), transparent 60%),
    radial-gradient(circle at 38% 34%, #2b4a3d, #14251d 70%, #0e1913 100%);
  box-shadow: 0 0 90px rgba(139,175,155,0.28), inset -30px -20px 80px rgba(0,0,0,0.6), inset 20px 15px 60px rgba(168,199,216,0.15);
  position: relative; animation: globeSpin 90s linear infinite;
}
.globe-fallback .ball::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, transparent 60%, rgba(139,175,155,0.18) 72%, transparent 78%); }
@keyframes globeSpin { to { background-position: 520px 0, 520px 0, 0 0; } }

.earth-hero-copy {
  position: relative; z-index: 3; text-align: center; padding-top: calc(var(--nav-h) + 6vh);
  pointer-events: none;
}
.earth-hero-copy .inner { pointer-events: auto; display: inline-block; max-width: 720px; padding: 0 20px; }
.earth-eyebrow { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; }
.earth-title { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; margin: 12px 0 10px; color: #f3f7f2; }
.earth-title .em { font-style: italic; color: var(--sage); }
.earth-sub { color: #c3d1c8; max-width: 520px; margin: 0 auto 22px; }
.earth-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* HUD: search + controls layered over globe */
.earth-hud { position: absolute; z-index: 4; left: 0; right: 0; }
.earth-search-wrap { position: absolute; z-index: 5; top: calc(var(--nav-h) + 12px); left: 50%; transform: translateX(-50%); width: min(560px, 92%); }
.earth-search { display: flex; align-items: center; gap: 10px; background: rgba(20,29,24,0.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-pill); padding: 10px 10px 10px 18px; box-shadow: var(--sh-3); }
.earth-search i { color: #b7c6bc; }
.earth-search input { flex: 1; background: transparent; border: none; color: #eef3ee; font-size: 0.98rem; }
.earth-search input::placeholder { color: #9fb2a6; }
.earth-search input:focus { outline: none; }
.earth-search .es-go { background: var(--sage-700); color: #fff; border-radius: var(--r-pill); padding: 8px 14px; font-weight: 600; font-size: 0.85rem; }
.search-suggest { margin-top: 8px; background: rgba(16,24,19,0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-3); display: none; }
.search-suggest.open { display: block; }
.search-suggest button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 16px; color: #e7efe8; border-bottom: 1px solid rgba(255,255,255,0.06); }
.search-suggest button:hover, .search-suggest button.active { background: rgba(139,175,155,0.18); }
.search-suggest .ss-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.72rem; color: #17251d; flex-shrink: 0; }
.search-suggest .muted { color: #9fb2a6; font-size: 0.78rem; margin-left: auto; }
.search-suggest .group-label { padding: 8px 16px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #86998d; }

/* bottom control bar over globe */
.globe-controls { position: absolute; z-index: 5; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: min(760px,94%); }
.globe-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--r-pill); background: rgba(20,29,24,0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.16); color: #e7efe8; font-weight: 600; font-size: 0.84rem; transition: all 0.25s var(--ease); }
.globe-chip:hover, .globe-chip.active { background: rgba(139,175,155,0.24); border-color: rgba(139,175,155,0.5); }
.globe-chip.gold { color: var(--gold); }
.globe-side { position: absolute; z-index: 5; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.globe-side button { width: 42px; height: 42px; border-radius: 50%; background: rgba(20,29,24,0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.16); color: #e7efe8; display: grid; place-items: center; transition: all 0.2s; }
.globe-side button:hover { background: rgba(139,175,155,0.24); }

/* time-of-day toggle */
.tod-toggle { position: absolute; z-index: 5; left: 18px; top: calc(var(--nav-h) + 12px); display: flex; flex-direction: column; gap: 6px; background: rgba(20,29,24,0.5); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md); padding: 6px; }
.tod-toggle button { padding: 6px 10px; border-radius: 8px; color: #cdd8ce; font-size: 0.76rem; font-weight: 600; }
.tod-toggle button.active { background: rgba(231,201,139,0.22); color: var(--gold); }

/* fly-to overlay */
.fly-overlay { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: radial-gradient(circle, rgba(8,13,9,0.2), rgba(8,13,9,0.7)); opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease); text-align: center; }
.fly-overlay.show { opacity: 1; visibility: visible; }
.fly-overlay .fly-text { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); color: #f3f7f2; }
.fly-overlay .fly-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin: 16px auto 0; box-shadow: 0 0 0 0 rgba(231,201,139,0.6); animation: flyPulse 1.4s ease-out infinite; }
@keyframes flyPulse { 0%{box-shadow:0 0 0 0 rgba(231,201,139,0.55);} 70%{box-shadow:0 0 0 22px rgba(231,201,139,0);} 100%{box-shadow:0 0 0 0 rgba(231,201,139,0);} }

/* loading */
.earth-loading { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: #0b120d; transition: opacity 0.6s var(--ease), visibility 0.6s; text-align: center; }
.earth-loading.done { opacity: 0; visibility: hidden; }
.earth-loading .p-orb { width: 74px; height: 74px; border-radius: 50%; background: var(--grad-orb); box-shadow: var(--sh-orb); animation: breathe 4s var(--ease-soft) infinite; margin: 0 auto 18px; }
.earth-loading p { color: #cdd8ce; }
.earth-loading .bar { width: 220px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.12); margin: 16px auto 0; overflow: hidden; }
.earth-loading .bar span { display: block; height: 100%; width: 30%; background: var(--sage); border-radius: 4px; animation: loadbar 1.4s var(--ease) infinite; }
@keyframes loadbar { 0%{transform:translateX(-120%);} 100%{transform:translateX(420%);} }

/* ---------- Location detail: desktop panel + mobile sheet ---------- */
.loc-panel {
  position: fixed; z-index: 950; right: 22px; top: 50%; transform: translateY(-50%) translateX(20px);
  width: 340px; max-width: calc(100% - 44px); background: rgba(16,24,19,0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-lg); box-shadow: var(--sh-3); color: #eaf1ea;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); overflow: hidden;
}
.loc-panel.open { opacity: 1; visibility: visible; transform: translateY(-50%); }
.loc-art { height: 120px; position: relative; display: grid; place-items: center; }
.loc-art .badge-eco { position: absolute; left: 14px; bottom: 12px; }
.loc-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.35); color: #fff; display: grid; place-items: center; z-index: 2; }
.loc-body { padding: 18px 20px 22px; }
.loc-flag { font-size: 0.9rem; }
.loc-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 6px 0 4px; }
.loc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.loc-tag { font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); color: #dfeae2; }
.loc-desc { color: #c3d1c8; font-size: 0.9rem; margin-bottom: 16px; }
.loc-actions { display: flex; gap: 10px; align-items: center; }
.loc-fav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); color: #eaf1ea; display: grid; place-items: center; flex-shrink: 0; }
.loc-fav.on { color: var(--gold); border-color: var(--gold); }
.loc-attr { margin-top: 14px; font-size: 0.72rem; color: #90a397; }

/* ---------- Filters (desktop panel + mobile sheet share classes) ---------- */
.filter-panel { position: absolute; z-index: 6; left: 18px; bottom: 74px; width: 300px; max-height: 62vh; overflow: auto; background: rgba(16,24,19,0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); padding: 18px; color: #eaf1ea; box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.35s var(--ease); }
.filter-panel.open { opacity: 1; visibility: visible; transform: none; }
.filter-group + .filter-group { margin-top: 16px; }
.filter-group h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9fb2a6; margin-bottom: 10px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-tag { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #dfeae2; font-size: 0.78rem; font-weight: 500; transition: all 0.2s; }
.filter-tag[aria-pressed="true"] { background: var(--sage-700); border-color: var(--sage-700); color: #fff; }
.filter-foot { display: flex; justify-content: space-between; margin-top: 16px; }

/* ---------- Discovery sections (light, integrate with site) ---------- */
.earth-section { padding: var(--s-8) 0; }
.need-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.need-card { padding: 18px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--sh-1); text-align: center; cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.25s; }
.need-card:hover { transform: translateY(-3px); border-color: var(--sage); }
.need-card .emo { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.need-card b { font-size: 0.86rem; }

.region-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.region-chip { padding: 9px 16px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 0.85rem; transition: all 0.25s var(--ease); }
.region-chip:hover, .region-chip.active { background: var(--sage-700); color: #fff; border-color: var(--sage-700); }

.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-4); }
.ss-card { border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--sh-1); cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); display: flex; flex-direction: column; }
.ss-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.ss-art { height: 130px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,0.9); font-size: 1.8rem; }
.ss-art .play { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-2); transition: transform 0.25s var(--ease); }
.ss-card:hover .play { transform: scale(1.08); }
.ss-art .fav { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.28); color: #fff; display: grid; place-items: center; font-size: 0.8rem; }
.ss-art .fav.on { color: var(--gold); }
.ss-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ss-info h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.ss-info .place { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ss-info .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ss-info .mini { font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(139,175,155,0.16); color: var(--sage-700); }

/* list mode */
.list-mode .ss-grid { grid-template-columns: 1fr; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.list-row .thumb { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row h3 { font-size: 0.98rem; font-weight: 700; }
.list-row .place { font-size: 0.8rem; color: var(--muted); }

/* ---------- Immersive / Deep Listening ---------- */
.immersive { position: fixed; inset: 0; z-index: 1200; color: #eef3ee; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s; overflow: hidden; }
.immersive.open { opacity: 1; visibility: visible; }
.im-env { position: absolute; inset: 0; z-index: 0; transition: background 1.2s var(--ease); }
.im-env::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,13,9,0.15), rgba(8,13,9,0.72)); }
.im-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.im-wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.im-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; transition: opacity 0.4s; }
.im-top .im-loc { display: flex; align-items: center; gap: 10px; }
.im-exit { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #eef3ee; font-weight: 600; font-size: 0.85rem; }
.im-center { flex: 1; display: grid; place-items: center; text-align: center; padding: 20px; }
.im-center h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); }
.im-center .im-place { color: #cdd8ce; margin-top: 8px; }
.im-breath-orb { width: clamp(120px, 22vw, 190px); height: clamp(120px, 22vw, 190px); border-radius: 50%; margin: 26px auto 0; background: radial-gradient(circle at 36% 32%, rgba(255,255,255,0.9), rgba(255,255,255,0) 60%), var(--grad-orb); box-shadow: var(--sh-orb); display: none; place-items: center; --breath-scale: 0.75; transform: scale(var(--breath-scale)); }
.im-breath-orb.on { display: grid; }
.im-breath-orb.breathing { animation: breathe 12s var(--ease-soft) infinite; }
.im-breath-orb span { font-family: var(--font-display); color: #16302a; font-size: 1.1rem; }

/* bottom controls */
.im-controls { padding: 18px 24px calc(20px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, rgba(8,13,9,0.55)); transition: opacity 0.4s, transform 0.4s; }
.im-bar { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; }
.im-play { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #17221d; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--sh-2); flex-shrink: 0; transition: transform 0.2s; }
.im-play:hover { transform: scale(1.05); }
.im-progress { flex: 1; }
.im-time { display: flex; justify-content: space-between; font-size: 0.74rem; color: #b7c6bc; margin-bottom: 5px; }
.im-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.16); overflow: hidden; cursor: pointer; }
.im-track > span { display: block; height: 100%; width: 0; background: var(--sage); border-radius: 6px; }
.im-tools { display: flex; align-items: center; gap: 8px; }
.im-tool { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: #eef3ee; display: grid; place-items: center; background: rgba(255,255,255,0.06); transition: all 0.2s; }
.im-tool:hover, .im-tool.on { background: rgba(139,175,155,0.28); border-color: rgba(139,175,155,0.5); }
.im-tool.on.gold { color: var(--gold); }

/* deep listening: fade chrome */
.immersive.deep .im-top, .immersive.deep .im-controls { opacity: 0; pointer-events: none; }
.immersive.deep .im-controls { transform: translateY(20px); }

/* Mixer popover */
.mixer { position: absolute; right: 24px; bottom: 96px; z-index: 3; width: min(320px, 90vw); background: rgba(16,24,19,0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s var(--ease); }
.mixer.open { opacity: 1; visibility: visible; transform: none; }
/* h3 on resonance.html (correct outline there), h4 on earth.html. */
.mixer h3, .mixer h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.mix-row { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.mix-row label { font-size: 0.82rem; color: #dfeae2; display: flex; align-items: center; gap: 8px; }
.mixer input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 10px; background: rgba(255,255,255,0.2); outline: none; }
.mixer input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--sage); cursor: pointer; }
.mixer input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--sage); cursor: pointer; }
.mixer .save-mix { margin-top: 6px; }

/* Sleep timer popover */
.sleep-pop { position: absolute; right: 24px; bottom: 96px; z-index: 3; background: rgba(16,24,19,0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s var(--ease); }
.sleep-pop.open { opacity: 1; visibility: visible; transform: none; }
.sleep-pop .opts { display: flex; gap: 8px; flex-wrap: wrap; max-width: 240px; }
.sleep-pop button.opt { padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #eef3ee; font-weight: 600; font-size: 0.82rem; }
.sleep-pop button.opt.active { background: var(--sage-700); border-color: var(--sage-700); }

/* after-session feedback */
.feedback-modal .modal { max-width: 460px; }
.fb-moods { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 8px 0 4px; }
.fb-mood { width: 66px; height: 74px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: all 0.2s var(--ease); }
.fb-mood .e { font-size: 1.6rem; }
.fb-mood .l { font-size: 0.64rem; color: var(--muted); font-weight: 600; }
.fb-mood[aria-pressed="true"] { border-color: var(--sage-700); background: #f2f8f2; }

/* toast reuse from sukoon.css */

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .need-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 920px) {
  .loc-panel { position: fixed; right: 0; left: 0; bottom: 0; top: auto; transform: translateY(100%); width: 100%; max-width: none; border-radius: 24px 24px 0 0; }
  .loc-panel.open { transform: translateY(0); }
  .filter-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 78vh; border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .filter-panel.open { transform: translateY(0); }
  .globe-side { right: 12px; }
  .mixer, .sleep-pop { left: 12px; right: 12px; bottom: 100px; width: auto; }
}
@media (max-width: 620px) {
  .need-grid { grid-template-columns: repeat(2, 1fr); }
  .globe-controls { bottom: 12px; }
  .earth-search-wrap { top: calc(var(--nav-h) + 8px); }
  .tod-toggle { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .globe-fallback .ball { animation: none; }
  .earth-loading .p-orb, .im-breath-orb.breathing, .fly-overlay .fly-dot, .earth-loading .bar span { animation: none !important; }
}

/* ==========================================================================
   Earth page — layering fixes + navigation visibility
   Single source of truth for stacking on the globe stage. Decorative layers
   never capture pointer events; every control layer is explicitly interactive.
   Order (low -> high): fallback(0) < canvas(1) < hero(5) < side/tod(14)
   < controls(16) < search(22) < filters(26) < location(28) < fly(34) < loading(40)
   ========================================================================== */
body.earth .globe-fallback { z-index: 0; pointer-events: none; }
body.earth #earthCanvas { z-index: 1; }
body.earth .earth-hint { z-index: 6; pointer-events: none; }
body.earth .earth-panel { z-index: 8; pointer-events: auto; }
body.earth .tod-pill,
body.earth .globe-side { z-index: 14; pointer-events: auto; }
body.earth .globe-controls { z-index: 16; pointer-events: auto; }
body.earth .filter-panel { z-index: 26; }
body.earth .loc-panel { z-index: 950; }
body.earth .fly-overlay { z-index: 34; }
body.earth .earth-loading { z-index: 40; }
body.earth .earth-loading.done { pointer-events: none; }
/* if the 3D globe isn't active, the canvas must not intercept anything */
body.earth.no-globe #earthCanvas { display: none; pointer-events: none; }

/* ---------- Capability classes (set from JS: sukoon.md §19) ----------
   low-end + reduced-motion KEEP the interactive 3D globe. They only trim
   decorative, non-essential motion so the experience stays smooth. Interactive
   controls remain pointer-events:auto; decorative layers stay pointer-events:none.
   Only .no-globe (genuine lack of WebGL) removes the canvas (rule above). */
body.earth.reduced-motion-globe .earth-hint.show,
body.earth.reduced-motion-globe .globe-fallback .ball,
body.earth.reduced-motion-globe .fly-overlay .fly-dot,
body.earth.low-end-globe .earth-hint.show,
body.earth.low-end-globe .globe-fallback .ball { animation: none !important; }
body.earth.low-end-globe .earth-stage::after { opacity: 0.3; } /* lighter starfield */

/* Mobile: stack the editorial panel on top; globe fills a tall area below */
@media (max-width: 920px) {
  .earth-stage { grid-template-columns: 1fr; }
  .earth-panel { align-self: start; max-width: none; text-align: center; padding: calc(var(--nav-h) + 14px) 6% 14px; background: linear-gradient(180deg, rgba(8,13,9,0.72), rgba(8,13,9,0.2)); }
  .earth-panel-sub { margin-inline: auto; }
  .earth-panel-actions, .tod-pill { justify-content: center; }
  .tod-pill { margin-inline: auto; }
  .globe-area { min-height: 66vh; }
  .earth-hint { bottom: 84px; }
}
@media (max-width: 560px) {
  .earth-panel-title { font-size: 1.5rem; }
  .earth-panel .tod-pill { display: none; }
  .earth-hint { font-size: 0.76rem; }
}

/* Navigation visibility over the dark globe (and the light sections below) */
body.earth .nav { background: linear-gradient(180deg, rgba(9,15,11,0.74) 0%, rgba(9,15,11,0.22) 60%, transparent 100%); }
body.earth .nav .brand,
body.earth .nav-links a,
body.earth .nav-signin { color: #eef3ee; }
body.earth .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }
body.earth .nav-links a.active { color: var(--gold); background: rgba(231,201,139,0.16); }
body.earth .nav-signin:hover { color: #fff; }
body.earth .nav-burger { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.24); box-shadow: none; }
body.earth .nav-burger span,
body.earth .nav-burger span::before,
body.earth .nav-burger span::after { background: #eef3ee; }
body.earth .nav.scrolled {
  background: rgba(11,18,13,0.88);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
body.earth .nav-user .nav-userdot { color: #17332a; }
