@font-face {
  font-family: 'aAutoSignature';
  src: url('aAutoSignature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'AnthonioScript';
  src: url('AnthonioScript.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --orange: #ff8c00;
  --orange-dim: rgba(255,140,0,0.5);
  --bg: #000000;
  --card-bg: rgba(6,6,18,0.97);
  --text: #f0ede8;
  --muted: rgba(240,237,232,0.55);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000000;
  font-family: var(--font-body);
  color: var(--text);
}

/* Space canvas sits behind everything */
#spaceCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#globe {
  position: fixed;
  top: 80px; left: 0; right: 0; bottom: 0;
  z-index: 1;
  width: 100%;
  height: calc(100% - 80px);
  opacity: 0;
  transition: opacity 2.5s ease-in;
  background: transparent !important;
  pointer-events: none;
}
#globe.visible {
  opacity: 1;
  pointer-events: all;
}
#globe canvas {
  background: transparent !important;
}

/* ── Intro title — ElectroScapes centred at top ──────────────────────────── */
#introTitle {
  position: fixed;
  top: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
  pointer-events: none;
  white-space: nowrap;
}

#introSubtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  text-shadow: 0 0 12px rgba(180,210,255,0.25);
  margin: 0;
  margin-top: -6px;
}

#introRow { display: none; }

/* "ElectroScapes" */
#introH1 {
  font-family: 'aAutoSignature', cursive;
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(255,255,255,0.50),
    0 0 50px rgba(200,220,255,0.20),
    0 2px 8px rgba(0,0,0,0.80);
  margin: 0;
}

/* ── Top-right: byline + logo ────────────────────────────────────────────── */
#introTopRight {
  position: fixed;
  top: 18px; right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 60;
  pointer-events: none;
  white-space: nowrap;
}

#bylineStack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

/* ── Header social icons ─────────────────────────────────────────────────── */
#headerSocials {
  display: flex;
  gap: 10px;
  pointer-events: all;
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s, transform 0.15s, filter 0.2s;
}

.header-social svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.header-social:hover {
  color: #ff8c00;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(255,140,0,0.6));
}

/* "(By Mason Alexander)" */
#introByline {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-shadow: none;
  margin: 0;
}

/* Round MA logo — clickable with pulsing ring */
#introLogo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,140,0,0.8);
  box-shadow:
    0 0 0 0 rgba(255,140,0,0.5),
    0 0 14px rgba(255,140,0,0.3);
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: all;
  animation: logoPulse 2.4s ease-in-out infinite;
  transition: transform 0.2s, border-color 0.2s;
}
#introLogo:hover {
  transform: scale(1.08);
  border-color: rgba(255,140,0,1);
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 0 0px rgba(255,140,0,0.5), 0 0 14px rgba(255,140,0,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(255,140,0,0),   0 0 20px rgba(255,140,0,0.5); }
}

/* "About" hint under the logo */
#logoWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
#logoHint {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,140,0,0.85);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255,140,0,0.5);
}

#introBylineRow { display: none; }

/* ── Track card ──────────────────────────────────────────────────────────── */
.trackCard {
  position: fixed;
  width: 420px;
  background: var(--card-bg);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,140,0,0.08);
  animation: cardIn 0.3s cubic-bezier(0.34,1.46,0.64,1) both;
}
@keyframes cardIn {
  from { opacity:0; transform:scale(0.92) translateY(10px); }
  to   { opacity:1; transform:scale(1)    translateY(0); }
}
.tc-close {
  position: absolute; top:10px; right:10px;
  width:30px; height:30px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(0,0,0,0.55); color:#fff;
  font-size:13px; cursor:pointer; z-index:10;
  display:flex; align-items:center; justify-content:center;
  transition:background 0.15s, transform 0.15s;
  backdrop-filter:blur(4px);
}
.tc-close:hover { background:var(--orange); color:#000; transform:scale(1.1); }

.tc-thumb {
  width:100%; height:220px;
  object-fit:cover; display:block;
  border-bottom:1px solid rgba(255,140,0,0.15);
}
.tc-body { padding:18px 20px 22px; display:flex; flex-direction:column; gap:7px; }
.tc-location {
  font-size:0.88rem; font-weight:600;
  letter-spacing:0.20em; text-transform:uppercase; color:var(--orange);
}
.tc-title {
  font-family:var(--font-display); font-size:2rem;
  letter-spacing:0.05em; line-height:1.1; color:var(--text);
}
.tc-desc {
  font-size:0.88rem; font-weight:300;
  line-height:1.65; color:var(--muted); font-style:italic;
}
.tc-btn {
  margin-top:8px; padding:10px 20px;
  background:var(--orange); color:#000; border:none;
  border-radius:8px; font-family:var(--font-body);
  font-size:0.82rem; font-weight:500; letter-spacing:0.08em;
  cursor:pointer; transition:background 0.15s, transform 0.1s;
  align-self:flex-start;
}
.tc-btn:hover { background:#ffaa33; transform:scale(1.04); }

/* ── Video overlay ───────────────────────────────────────────────────────── */
#videoOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  z-index: 1000;
  padding: 16px 20px;
}
#videoOverlay.hidden { display: none; }

/* Video popup card — full width */
#videoPopup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  width: min(860px, calc(100vw - 40px));
  background: rgba(6,6,18,0.97);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: 20px;
  padding: 18px 20px 20px;
  box-shadow: 0 0 80px rgba(255,140,0,0.15), 0 20px 60px rgba(0,0,0,0.9);
  animation: cardIn 0.3s cubic-bezier(0.34,1.46,0.64,1) both;
}
#videoTitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.10em;
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255,140,0,0.5);
  padding-right: 34px;
}
#videoContainer {
  width: 100%;
  height: clamp(360px, 65vh, 640px);
}
#videoContainer iframe,
#videoFrame {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,140,0,0.25);
  box-shadow: 0 0 40px rgba(255,140,0,0.15), 0 8px 30px rgba(0,0,0,0.8);
}
#closeBtn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(20,20,20,0.9); color: var(--text);
  font-size: 14px; cursor: pointer; z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  transition: transform 0.15s, background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
#closeBtn:hover { transform: scale(1.12); background: var(--orange); color: #000; }


/* ══════════════════════════════════════════════════════════
   MAP OVERLAY
══════════════════════════════════════════════════════════ */
#mapOverlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: transparent;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#mapOverlay.map-visible {
  opacity: 1;
}

#mapCanvas {
  position: absolute;
  inset: 0;
  display: block;
}

#mapHeader {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
}

#mapLabel {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow:
    0 0 12px rgba(255,140,0,0.9),
    0 0 30px rgba(255,140,0,0.5),
    0 2px 4px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.45);
  padding: 6px 16px 6px 10px;
  border-left: 3px solid #ff8c00;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(4px);
}

#mapCloseBtn {
  padding: 11px 26px;
  background: #ff8c00;
  border: none;
  color: #000;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255,140,0,0.5);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#mapCloseBtn:hover {
  background: #ffaa33;
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(255,170,50,0.7);
}

/* Map cards */
.mapCard {
  position: fixed;
  width: 380px;
  background: rgba(6,6,18,0.97);
  border: 1px solid rgba(255,140,0,0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,140,0,0.1);
  animation: cardIn 0.3s cubic-bezier(0.34,1.46,0.64,1) both;
}
.mc-close {
  position: absolute; top:9px; right:9px;
  width:28px; height:28px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(0,0,0,0.6); color:#fff;
  font-size:12px; cursor:pointer; z-index:10;
  display:flex; align-items:center; justify-content:center;
  transition: background 0.15s, transform 0.15s;
}
.mc-close:hover { background:#ff8c00; color:#000; transform:scale(1.1); }

.mc-thumb {
  width:100%; height:200px;
  object-fit:cover; display:block;
  border-bottom:1px solid rgba(255,140,0,0.15);
}
.mc-body { padding:16px 18px 20px; display:flex; flex-direction:column; gap:6px; }
.mc-location {
  font-size:0.90rem; font-weight:600;
  letter-spacing:0.20em; text-transform:uppercase; color:#ff8c00;
}
.mc-title {
  font-family: var(--font-display);
  font-size:1.9rem; letter-spacing:0.05em; line-height:1.1; color:#f0ede8;
}
.mc-desc {
  font-size:0.88rem; font-weight:300;
  line-height:1.65; color:rgba(240,237,232,0.55); font-style:italic;
}
.mc-btn {
  margin-top:7px; padding:9px 18px;
  background:#ff8c00; color:#000; border:none;
  border-radius:7px; font-size:0.80rem; font-weight:500;
  letter-spacing:0.08em; cursor:pointer;
  transition:background 0.15s, transform 0.1s;
  align-self:flex-start;
}
.mc-btn:hover { background:#ffaa33; transform:scale(1.04); }


/* ── Dot video preview tooltip ───────────────────────────────────────────── */
#dotVideoPreview {
  position: fixed;
  width: 220px;
  background: rgba(6,6,18,0.97);
  border: 1px solid rgba(255,140,0,0.45);
  border-radius: 12px;
  overflow: hidden;
  z-index: 850;
  box-shadow: 0 8px 40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,140,0,0.10);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#dotVideoPreview.dvp-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dvp-thumb-wrap {
  position: relative;
  width: 100%;
  height: 124px;
}
.dvp-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.dvp-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 18px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.18);
}
.dvp-info { padding: 8px 12px 10px; }
.dvp-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #f0ede8;
  line-height: 1.1;
}
.dvp-loc {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8c00;
  margin-top: 3px;
}

/* ── Region labels (htmlElementsData) ───────────────────────────────────── */
.region-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe8c0;
  text-shadow:
    0 0 8px rgba(255,140,0,0.9),
    0 0 16px rgba(255,100,0,0.6),
    0 1px 3px rgba(0,0,0,0.95);
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ── Audio toggle button ─────────────────────────────────────────────────── */
#audioToggle {
  width: auto;
  height: 38px;
  padding: 0 14px;
  gap: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,10,20,0.75);
  color: #ff8c00;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 14px rgba(255,140,0,0.25);
  transition: background 0.2s, transform 0.15s;
}
#audioLabel {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
#audioToggle:hover {
  background: rgba(255,140,0,0.25);
  transform: scale(1.05);
}
#audioToggle.muted { color: rgba(255,255,255,0.35); }

/* ── Splash overlay ──────────────────────────────────────────────────────── */
#splashOverlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 1.2s ease;
}
#splashOverlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
#splashContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#splashTitle {
  font-family: 'aAutoSignature', cursive;
  font-size: clamp(2.8rem, 13vw, 7rem);
  font-weight: 400;
  color: rgba(255,255,255,0.25);
  text-shadow: none;
  margin: 0;
  position: relative;
  display: inline-block;
}

/* ── Letter-by-letter blue pulse — handled by JS ─────────────────────────
   Base title stays visible and stable; JS wraps each char in a span       */
#splashTitle::before { display: none; }
#splashTitle::after  { display: none; }

#splashTitle {
  color: rgba(255,255,255,0.72);
  text-shadow: 0 2px 8px rgba(0,0,0,0.80);
  animation: none;
}

/* Each letter span injected by JS */
#splashTitle .s-char {
  display: inline-block;
  transition: color 0.6s ease, text-shadow 0.6s ease, transform 0.6s ease;
  color: rgba(255,255,255,0.50);
}
#splashTitle .s-char.lit {
  color: rgba(210, 235, 255, 1.0);
  transform: scaleY(1.04);
  text-shadow:
    0 0 8px  rgba(180, 220, 255, 0.90),
    0 0 24px rgba(100, 175, 255, 0.70),
    0 0 55px rgba(60,  140, 255, 0.45),
    0 0 100px rgba(30, 100, 255, 0.20);
}
#splashSub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
#splashBtn {
  margin-top: 24px;
  padding: 14px 44px;
  background: transparent;
  border: 1px solid rgba(255,140,0,0.7);
  color: #ff8c00;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255,140,0,0.2);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
#splashBtn:hover {
  background: rgba(255,140,0,0.12);
  box-shadow: 0 0 36px rgba(255,140,0,0.4);
  transform: scale(1.05);
}

/* ── About modal ─────────────────────────────────────────────────────────── */
#aboutOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}
#aboutOverlay.hidden { display: none; }

#aboutPopup {
  position: relative;
  width: 560px;
  max-width: 92vw;
  background: rgba(6,6,18,0.97);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: 20px;
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,140,0,0.08);
  animation: cardIn 0.35s cubic-bezier(0.34,1.46,0.64,1) both;
}

#aboutClose {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
#aboutClose:hover { background: var(--orange); color: #000; transform: scale(1.1); }

#aboutLogo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,140,0,0.5);
  box-shadow: 0 0 24px rgba(255,140,0,0.3);
}

#aboutName {
  font-family: 'AnthonioScript', cursive;
  font-size: 2.6rem;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
  margin: 0;
}

#aboutSocials {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 2px 0;
}

.about-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,140,0,0.30);
  background: rgba(255,140,0,0.06);
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  transition: color 0.2s, transform 0.15s, border-color 0.2s, background 0.2s, filter 0.2s;
}

.about-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.about-social:hover {
  color: #ff8c00;
  border-color: rgba(255,140,0,0.70);
  background: rgba(255,140,0,0.12);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 7px rgba(255,140,0,0.55));
}

#aboutDivider {
  width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,140,0,0.7), transparent);
}

#aboutText, #aboutTextEs {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(240,237,232,0.75);
  text-align: center;
  margin: 0;
}
#aboutTextEs {
  color: rgba(240,237,232,0.50);
  font-style: italic;
  padding-top: 4px;
  border-top: 1px solid rgba(255,140,0,0.12);
}

.geo-label-country{font-family:'DM Sans',sans-serif;font-size:0.44rem;font-weight:700;letter-spacing:0.15em;text-transform:uppercase;color:rgba(200,230,255,0.95);pointer-events:none;white-space:nowrap;opacity:0;transition:opacity 0.3s ease;user-select:none;transform:translateX(-50%);text-align:center;text-shadow:0 0 10px rgba(100,180,255,0.9),0 1px 4px rgba(0,0,0,0.95);}
.geo-label-province{font-family:'DM Sans',sans-serif;font-size:0.44rem;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:rgba(180,215,255,0.85);pointer-events:none;white-space:nowrap;opacity:0;transition:opacity 0.3s ease;user-select:none;transform:translateX(-50%);text-align:center;text-shadow:0 0 8px rgba(120,180,255,0.7),0 1px 3px rgba(0,0,0,0.9);}
.geo-label-city{font-family:'DM Sans',sans-serif;font-size:0.36rem;font-weight:400;letter-spacing:0.10em;text-transform:uppercase;color:rgba(160,200,255,0.80);pointer-events:none;white-space:nowrap;opacity:0;transition:opacity 0.3s ease;user-select:none;transform:translateX(-50%);text-align:center;text-shadow:0 0 6px rgba(100,160,255,0.6),0 1px 3px rgba(0,0,0,0.9);}
/* ── Globe controls (zoom + reset) left of How To Explore ──────────────── */
#globeControls {
  position: fixed;
  left: 60px;
  top: 34%;
  transform: translateY(-50%);
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#globeControls.panel-visible { display: flex; }

#resetGlobeWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#resetGlobeLabel {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,140,0,0.70);
  white-space: nowrap;
}

#resetGlobeBtn{background:rgba(255,140,0,0.10);border:1px solid rgba(255,140,0,0.55);color:#ff8c00;border-radius:50%;width:36px;height:36px;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.18s,box-shadow 0.18s,transform 0.12s;padding:0;flex-shrink:0;}
#resetGlobeBtn:hover{background:rgba(255,140,0,0.22);box-shadow:0 0 16px rgba(255,140,0,0.45);}
#resetGlobeBtn:active{transform:scale(0.92);}


/* ── Track list floating panel ──────────────────────────────────────────── */
#trackListFloating {
  position: fixed;
  right: 110px;
  top: 34%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  background: rgba(6,6,18,0.92);
  border: 1px solid rgba(255,140,0,0.30);
  border-radius: 16px;
  min-width: 210px;
  max-width: 240px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.tlf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 10px;
  border-bottom: 1px solid rgba(255,140,0,0.15);
  cursor: grab;
  user-select: none;
}
.tlf-header:active { cursor: grabbing; }

.tlf-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,140,0,0.80);
}

.tlf-toggle {
  background: none;
  border: none;
  color: rgba(255,140,0,0.60);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 8px;
  transition: color 0.15s;
}
.tlf-toggle:hover { color: #ff8c00; }

.tlf-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 6px 10px;
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,140,0,0.25) transparent;
}
.tlf-content::-webkit-scrollbar { width: 3px; }
.tlf-content::-webkit-scrollbar-thumb { background: rgba(255,140,0,0.25); border-radius: 3px; }

.tlf-region {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,140,0,0.55);
  padding: 7px 8px 2px;
}

.tlf-item {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 7px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.tlf-item:hover { background: rgba(255,140,0,0.10); }
.tlf-item:hover .tlf-track { color: #ff8c00; }

.tlf-dot {
  color: rgba(255,140,0,0.55);
  font-size: 0.40rem;
  margin-right: 7px;
  flex-shrink: 0;
  vertical-align: middle;
}
.tlf-track {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(240,237,232,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  transition: color 0.15s;
}
.tlf-loc { display: none; }

/* Make logo cursor pointer */

/* ── Language switcher ───────────────────────────────────────────────────── */
#langSwitcher {
  position: fixed;
  top: 22px;
  left: 24px;
  z-index: 600;
  display: none;
  align-items: center;
  gap: 6px;
}
#langSwitcher.panel-visible { display: flex; }

.lang-btn {
  padding: 5px 11px;
  background: rgba(6,6,18,0.82);
  border: 1px solid rgba(255,140,0,0.25);
  border-radius: 20px;
  color: rgba(255,255,255,0.40);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.lang-btn:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,140,0,0.50);
}
.lang-btn.active {
  background: rgba(255,140,0,0.12);
  border-color: rgba(255,140,0,0.70);
  color: #ff8c00;
  box-shadow: 0 0 12px rgba(255,140,0,0.25);
}

/* ── Instructions + Shuffle panel ───────────────────────────────────────── */
#introPanel {
  position: fixed;
  left: 160px;
  top: 34%;
  transform: translateY(-50%);
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  background: rgba(6,6,18,0.88);
  border: 1px solid rgba(255,140,0,0.30);
  border-radius: 16px;
  padding: 16px 20px 14px;
  min-width: 210px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  cursor: grab;
  user-select: none;
}
#introPanel:active { cursor: grabbing; }
#introPanel.panel-visible { display: flex; }

.intro-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: rgba(255,140,0,0.70);
  margin: 0 0 2px;
}
.intro-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(240,237,232,0.75);
}
.intro-icon { color: #ff8c00; width: 14px; text-align: center; flex-shrink: 0; }
.intro-or {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,140,0,0.45);
  text-transform: uppercase;
}
.intro-or::before,
.intro-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,140,0,0.18);
}

#shuffleBtn {
  margin-top: 4px;
  padding: 9px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  background: rgba(255,140,0,0.10);
  border: 1px solid rgba(255,140,0,0.55);
  color: #ff8c00;
}
#shuffleBtn:hover  { background: rgba(255,140,0,0.22); box-shadow: 0 0 22px rgba(255,140,0,0.35); }
#shuffleBtn:active { transform: scale(0.97); }

/* Shuffle active state — bright pulsing so user knows it's on */
#shuffleBtn.shuffle-on {
  background: rgba(255,140,0,0.22);
  border-color: #ff8c00;
  color: #fff;
  box-shadow: 0 0 18px rgba(255,140,0,0.6), 0 0 36px rgba(255,140,0,0.25);
  animation: shufflePulse 1.8s ease-in-out infinite;
}
@keyframes shufflePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255,140,0,0.5), 0 0 28px rgba(255,140,0,0.2); }
  50%       { box-shadow: 0 0 28px rgba(255,140,0,0.9), 0 0 56px rgba(255,140,0,0.4); }
}

/* Stop Shuffle button inside video / track overlays */
#videoShuffleStop, #scShuffleStop {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 24px;
  cursor: pointer;
  background: rgba(255,140,0,0.15);
  border: 1px solid rgba(255,140,0,0.7);
  color: #ff8c00;
  transition: background 0.18s, box-shadow 0.18s;
  animation: shufflePulse 1.8s ease-in-out infinite;
}
#videoShuffleStop:hover, #scShuffleStop:hover {
  background: rgba(255,140,0,0.30);
  box-shadow: 0 0 22px rgba(255,140,0,0.5);
}
/* ── Bottom-right controls group (zoom + mute) ───────────────────────────── */
#bottomControls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#bottomControls.panel-visible { display: flex; }

#zoomControls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.zoom-icon {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,140,0,0.75);
  line-height: 1;
  user-select: none;
}

/* Vertical range slider */
#zoomSlider {
  -webkit-appearance: slider-vertical;
  appearance: auto;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 4px;
  height: 110px;
  cursor: pointer;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
}

/* Track */
#zoomSlider::-webkit-slider-runnable-track {
  width: 4px;
  background: rgba(255,140,0,0.22);
  border-radius: 4px;
}
#zoomSlider::-moz-range-track {
  width: 4px;
  background: rgba(255,140,0,0.22);
  border-radius: 4px;
}

/* Thumb */
#zoomSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff8c00;
  box-shadow: 0 0 8px rgba(255,140,0,0.7), 0 0 2px rgba(0,0,0,0.5);
  cursor: pointer;
  margin-left: -6px;
  transition: transform 0.12s, box-shadow 0.12s;
}
#zoomSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff8c00;
  border: none;
  box-shadow: 0 0 8px rgba(255,140,0,0.7);
  cursor: pointer;
}
#zoomSlider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 14px rgba(255,140,0,0.9);
}
#zoomSlider:focus { outline: none; }

/* ── POI photo hover tooltip ─────────────────────────────────────────────── */
#poiPhotoTip {
  position: fixed;
  width: 210px;
  background: rgba(4,4,14,0.97);
  border: 1px solid rgba(100,200,255,0.4);
  border-radius: 12px;
  overflow: hidden;
  z-index: 850;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.9);
}
#poiPhotoTip.ppt-visible { opacity: 1; transform: translateY(0) scale(1); }
.ppt-img-wrap { width: 100%; height: 130px; overflow: hidden; background: #050510; }
.ppt-img      { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppt-label    {
  padding: 7px 10px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.73rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(180,230,255,0.9); text-align: center;
}
.ppt-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(100,180,255,0.2);
  border-top-color: rgba(100,180,255,0.8);
  border-radius: 50%;
  animation: pptSpin 0.7s linear infinite;
}
@keyframes pptSpin { to { transform: rotate(360deg); } }

/* ── Map legend ──────────────────────────────────────────────────────────── */
#mapLegend {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 712;
  background: rgba(4,4,18,0.82);
  border: 1px solid rgba(100,180,255,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}
#mapOverlay.map-visible #mapLegend {
  opacity: 1;
  transform: translateY(0);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-orange {
  background: #ff8c00;
  box-shadow: 0 0 8px 2px rgba(255,140,0,0.7);
}
.legend-blue {
  width: 6px;
  height: 6px;
  background: rgba(140,220,255,0.9);
  box-shadow: 0 0 5px 1px rgba(100,200,255,0.5);
}
.legend-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(200,230,255,0.8);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   SOUNDCLOUD HEADPHONE MARKER
══════════════════════════════════════════════════════════ */
.sc-marker {
  cursor: pointer;
  pointer-events: all;
  user-select: none;
}
.sc-marker-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scPulse 2.2s ease-in-out infinite;
}
.sc-marker-inner svg {
  width: 15px;
  height: 15px;
  color: #ff8c00;
  filter:
    drop-shadow(0 0 5px rgba(255,140,0,0.85))
    drop-shadow(0 0 10px rgba(255,140,0,0.4));
  transition: transform 0.18s, filter 0.18s;
}
.sc-marker:hover .sc-marker-inner svg {
  transform: scale(1.18);
  filter:
    drop-shadow(0 0 9px rgba(255,160,40,1))
    drop-shadow(0 0 18px rgba(255,140,0,0.7));
}
@keyframes scPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255,140,0,0.85)); }
  50%       { filter: drop-shadow(0 0 11px rgba(255,160,40,1)); }
}

/* SC legend icon in introPanel */
.sc-legend-icon {
  color: #ff8c00 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
}

/* ══════════════════════════════════════════════════════════
   SOUNDCLOUD PLAYER OVERLAY
══════════════════════════════════════════════════════════ */
#scOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
#scOverlay.sc-visible {
  opacity: 1;
  pointer-events: all;
}
#scPopup {
  position: relative;
  width: min(560px, 92vw);
  background: rgba(6,6,20,0.97);
  border: 1px solid rgba(192,80,255,0.35);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow:
    0 0 60px rgba(192,80,255,0.18),
    0 20px 60px rgba(0,0,0,0.85);
  animation: cardIn 0.35s cubic-bezier(0.34,1.46,0.64,1) both;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#scClose {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
#scClose:hover { background: #c050ff; transform: scale(1.1); }

#scHeader {
  display: flex;
  align-items: center;
  gap: 16px;
}
#scHeadphones {
  width: 48px; height: 48px;
  flex-shrink: 0;
  color: #c050ff;
  filter: drop-shadow(0 0 10px rgba(192,80,255,0.7));
}
#scMeta { display: flex; flex-direction: column; gap: 4px; }
#scTitle {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: #fff;
}
#scLocation {
  font-family: var(--font-body);
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(192,80,255,0.9);
}
#scDesc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: rgba(240,237,232,0.6);
}
#scPlayerWrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(192,80,255,0.2);
  box-shadow: 0 0 30px rgba(192,80,255,0.1);
}
#scFrame {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* ── Track panel section headers ─────────────────────────────────────────── */
.tlf-section-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,140,0,0.80);
  padding: 6px 8px 2px;
  display: flex;
  align-items: center;
}
.tlf-section-header--music {
  color: #c050ff;
}
.tlf-item--music .tlf-dot--music {
  color: #c050ff !important;
  font-size: 0.55rem;
  margin-right: 6px;
}
.tlf-item--music:hover .tlf-track { color: #c050ff; }
.tlf-loc-small {
  font-size: 0.70rem;
  color: rgba(240,237,232,0.40);
  margin-left: 4px;
  font-style: italic;
}
.tlf-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 8px;
}

/* ── HOW TO EXPLORE section labels ──────────────────────────────────────── */
.intro-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,140,0,0.75);
  padding: 4px 0 1px;
  display: flex;
  align-items: center;
}
.intro-section-label--music {
  color: #c050ff;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   REACTIONS — likes, dislikes, comments
══════════════════════════════════════════════════════════ */

/* ── Vote buttons ── */


/* ── Comments ── */


@keyframes rxFadeIn { from { opacity:0; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }


/* ── Input row ── */



/* ── Video overlay variant (wider) ── */

/* ── SoundCloud popup variant ── */
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(192,80,255,0.2);
}

/* ══════════════════════════════════════════════════════════
   SUBSCRIBE BAR
══════════════════════════════════════════════════════════ */
.sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255,140,0,0.10), rgba(255,60,0,0.06));
  border: 1px solid rgba(255,140,0,0.30);
  border-radius: 10px;
  padding: 9px 14px;
  margin-top: 12px;
}
.sub-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sub-links {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}
.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}
.sub-btn svg { flex-shrink: 0; }
.sub-ig {
  background: linear-gradient(135deg, rgba(225,48,108,0.22), rgba(193,53,132,0.15));
  border: 1px solid rgba(225,48,108,0.55);
  color: #ff7eb3;
}
.sub-ig:hover {
  background: linear-gradient(135deg, rgba(225,48,108,0.42), rgba(193,53,132,0.35));
  border-color: #e1306c;
  color: #fff;
  transform: translateY(-1px);
}
.sub-yt {
  background: rgba(255,0,0,0.16);
  border: 1px solid rgba(255,60,60,0.50);
  color: #ff7070;
}
.sub-yt:hover {
  background: rgba(255,0,0,0.32);
  border-color: #ff3333;
  color: #fff;
  transform: translateY(-1px);
}
#scPopup .sub-bar {
  background: linear-gradient(135deg, rgba(192,80,255,0.10), rgba(140,40,220,0.06));
  border-color: rgba(192,80,255,0.30);
}

/* ══════════════════════════════════════════════════════════
   REACTIONS — larger sizing (overrides previous)
══════════════════════════════════════════════════════════ */

/* Video overlay extra container */

/* ══════════════════════════════════════════════════════════
   SUBSCRIBE PANEL — "Don't miss out" — appears on all windows
══════════════════════════════════════════════════════════ */

/* ── Shared sub-bar shell ── */
.sub-bar {
  background: linear-gradient(160deg, rgba(255,140,0,0.12), rgba(200,60,0,0.07));
  border: 1px solid rgba(255,140,0,0.35);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* ── Big headline ── */
.sub-headline {
  font-family: 'Bebas Neue', 'DM Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,140,0,0.5);
  margin: 0;
}

/* ── Buttons stacked vertically ── */
.sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.sub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.sub-btn svg { flex-shrink: 0; }
.sub-ig {
  background: linear-gradient(135deg, rgba(225,48,108,0.25), rgba(193,53,132,0.18));
  border: 1px solid rgba(225,48,108,0.55);
  color: #ff85b5;
}
.sub-ig:hover {
  background: linear-gradient(135deg, rgba(225,48,108,0.5), rgba(193,53,132,0.42));
  border-color: #e1306c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225,48,108,0.35);
}
.sub-yt {
  background: rgba(200,0,0,0.18);
  border: 1px solid rgba(255,60,60,0.52);
  color: #ff7070;
}
.sub-yt:hover {
  background: rgba(200,0,0,0.38);
  border-color: #ff2222;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,0,0,0.35);
}

/* ── Track card: sub panel floats OUTSIDE to the right ── */
.tc-sub-panel {
  position: fixed;
  width: 160px;
  z-index: 600;
  pointer-events: all;
  animation: cardIn 0.3s cubic-bezier(0.34,1.46,0.64,1) both;
}
.tc-sub-panel .sub-bar {
  width: 100%;
}
.tc-sub-panel .sub-headline {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ── Video window: sub panel centred below iframe ── */
.video-sub-wrap {
  width: 100%;
}
.video-sub-wrap .sub-bar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  text-align: left;
  gap: 24px;
}
.video-sub-wrap .sub-headline {
  font-size: 1.8rem;
  white-space: nowrap;
}
.video-sub-wrap .sub-links {
  flex-direction: row;
  gap: 10px;
  width: auto;
  flex-shrink: 0;
}
.video-sub-wrap .sub-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* ── SC popup: sub panel inside popup ── */
#scPopup .sub-bar {
  background: linear-gradient(160deg, rgba(192,80,255,0.12), rgba(130,40,220,0.07));
  border-color: rgba(192,80,255,0.35);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  text-align: left;
  gap: 24px;
}
#scPopup .sub-headline {
  font-size: 1.55rem;
  line-height: 1.2;
  text-shadow: 0 0 18px rgba(192,80,255,0.6);
  white-space: nowrap;
}
#scPopup .sub-links {
  flex-direction: row;
  gap: 10px;
  width: auto;
  flex-shrink: 0;
}
#scPopup .sub-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ══════════════════════════════════════════════════════════
   VIDEO SUBSCRIBE BOX — fixed panel to the right of videoPopup
══════════════════════════════════════════════════════════ */
/* ── Subscribe box — now a slim horizontal bar INSIDE #videoPopup ── */
#videoSubBox {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,140,0,0.10), rgba(200,60,0,0.06));
  border: 1px solid rgba(255,140,0,0.30);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(255,140,0,0.10);
  animation: cardIn 0.4s 0.15s cubic-bezier(0.34,1.46,0.64,1) both;
  pointer-events: all;
  flex-shrink: 0;
}
.vsb-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: 0.10em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,140,0,0.55);
  margin: 0;
  white-space: nowrap;
}
.vsb-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.50);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
}
.vsb-links {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}
.vsb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.vsb-ig {
  background: linear-gradient(135deg, rgba(225,48,108,0.25), rgba(193,53,132,0.18));
  border: 1px solid rgba(225,48,108,0.55);
  color: #ff85b5;
}
.vsb-ig:hover {
  background: linear-gradient(135deg, rgba(225,48,108,0.5), rgba(193,53,132,0.42));
  border-color: #e1306c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225,48,108,0.35);
}
.vsb-yt {
  background: rgba(200,0,0,0.18);
  border: 1px solid rgba(255,60,60,0.52);
  color: #ff7070;
}
.vsb-yt:hover {
  background: rgba(200,0,0,0.38);
  border-color: #ff2222;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,0,0,0.35);
}
/* (legacy block removed — replaced by comprehensive mobile section below) */
/* =========================================================
🔥 GLOBAL FIXES (SAFE APPEND ONLY)
========================================================= */

/* Prevent horizontal scroll bugs */
html, body {
  overflow-x: hidden !important;
}

/* Ensure canvas + globe always fill screen */
canvas,
#globe {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100%;
  display: block;
}

/* Fix globe internal canvas sizing */
#globe canvas {
  width: 100% !important;
  height: 100% !important;
}

/* =========================================================

/* =========================================================

/* =========================================================
   📱 MOBILE + UX — tap targets
   ========================================================= */
button, .tc-btn, .mc-btn, .sub-btn, .vsb-btn { min-height: 44px; }

@media (hover: none) {
  .header-social:hover, .tc-btn:hover, .mc-btn:hover,
  .sub-btn:hover, .vsb-btn:hover, .about-social:hover {
    transform: none !important; filter: none !important; box-shadow: none !important;
  }
}

/* =========================================================
   📱 MOBILE LAYOUT (≤ 768px)  — matches the mockup design

   ZONE MAP:
   ┌──────────────────────────────────────────┐  top:0
   │  [MA logo + socials]        [EN | ES]    │  header bar  52px
   ├──────────────────────────────────────────┤
   │        ElectroScapes                     │  hero title
   │    A Progressive House Journey           │  hero subtitle
   │                                          │
   │            G L O B E                     │  fills middle
   │                                          │
   │      ▶  Tap Globe to Start               │  CTA (before enter)
   ├──────────────────────────────────────────┤
   │  [Shuffle] [Audio] [Reset] [About]       │  bottom nav  58px
   └──────────────────────────────────────────┘  bottom:0
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 14px; overflow: hidden; }

  /* ── Splash: scale title to fit ──────────────────────── */
  #splashTitle { font-size: clamp(2.4rem, 11vw, 3.2rem) !important; }
  #splashSub   { font-size: 0.72rem; letter-spacing: 0.14em; text-align: center; }
  #splashBtn   { padding: 11px 28px; font-size: 0.82rem; margin-top: 16px; }

  /* ── Globe fills from header to bottom nav ───────────── */
  #globe {
    top: 52px !important;
    height: calc(100% - 52px - 58px) !important;
  }

  /* ── Hide desktop-only controls ─────────────────────── */
  #globeControls    { display: none !important; }
  #introPanel       { display: none !important; }  /* replaced by bottom nav */
  #trackListFloating { display: none !important; } /* replaced by bottom nav */

  /* ════════════════════════════════════════════════════════
     HEADER BAR — left: logo + socials  |  right: EN/ES
  ════════════════════════════════════════════════════════ */
  #introTopRight {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: auto;
    height: 52px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    gap: 0;
    z-index: 620;
    pointer-events: all;
    background: rgba(4,4,12,0.80);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,140,0,0.12);
    white-space: nowrap;
  }
  /* Left group: logo + byline + socials */
  #bylineStack {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    order: 0;
  }
  #introLogo {
    width: 36px; height: 36px;
    pointer-events: all;
    animation: logoPulse 2.4s ease-in-out infinite;
  }
  #logoHint { display: none; }
  #logoWrapper { flex-direction: row; gap: 8px; align-items: center; }
  #introByline {
    font-size: 0.58rem;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.55);
    order: 1;
  }
  #headerSocials {
    gap: 6px;
    pointer-events: all;
    order: 2;
  }
  .header-social { width: 22px; height: 22px; }
  .header-social svg { width: 14px; height: 14px; }

  /* Language switcher sits on the RIGHT in header */
  #langSwitcher {
    position: static;
    display: flex !important;
    gap: 5px;
    order: 3;
    pointer-events: all;
  }
  .lang-btn { padding: 4px 10px; font-size: 0.60rem; min-height: 28px; }

  /* Mute button — HIDDEN here, lives in bottom nav instead */
  #bottomControls { display: none !important; }

  /* ════════════════════════════════════════════════════════
     HERO SECTION — ElectroScapes title + subtitle
     Centred over the globe, top area
  ════════════════════════════════════════════════════════ */
  #introTitle {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 60;
    text-align: center;
  }
  #introH1 {
    font-size: clamp(2.2rem, 10.5vw, 3.2rem) !important;
    line-height: 1;
    text-shadow:
      0 0 30px rgba(255,255,255,0.60),
      0 0 70px rgba(200,220,255,0.25),
      0 2px 10px rgba(0,0,0,0.90);
  }
  #introSubtitle {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
  }

  /* ════════════════════════════════════════════════════════
     MOBILE CTA BUTTON — "Tap Globe to Start"
     Shown before the user has entered, hidden after
  ════════════════════════════════════════════════════════ */
  #mobCtaBtn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(58px + 22px);   /* above bottom nav */
    z-index: 610;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 30px;
    background: #ff8c00;
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 0 28px rgba(255,140,0,0.55), 0 4px 16px rgba(0,0,0,0.5);
    white-space: nowrap;
    animation: ctaPulse 2s ease-in-out infinite;
    pointer-events: all;
  }
  #mobCtaBtn.hidden { display: none !important; }
  @keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(255,140,0,0.5), 0 4px 14px rgba(0,0,0,0.5); }
    50%       { box-shadow: 0 0 42px rgba(255,140,0,0.9), 0 4px 20px rgba(0,0,0,0.6); }
  }

  /* ════════════════════════════════════════════════════════
     BOTTOM NAV — Shuffle | Audio | Reset | About
  ════════════════════════════════════════════════════════ */
  #mobBottomNav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 58px;
    z-index: 620;
    display: flex;
    align-items: stretch;
    background: rgba(4,4,12,0.90);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,140,0,0.15);
    pointer-events: all;
  }
  .mob-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    min-height: unset;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-nav-btn:last-child { border-right: none; }
  .mob-nav-btn:active { background: rgba(255,140,0,0.12); color: #ff8c00; }
  .mob-nav-btn.active  { color: #ff8c00; }
  .mob-nav-btn svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; }
  .mob-nav-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: inherit;
    line-height: 1;
  }

  /* ════════════════════════════════════════════════════════
     TRACK SHEET — slides up from bottom when Tracks tapped
  ════════════════════════════════════════════════════════ */
  #mobTrackSheet {
    position: fixed;
    left: 0; right: 0;
    bottom: 58px;
    max-height: 60vh;
    z-index: 615;
    background: rgba(6,6,18,0.97);
    border-top: 1px solid rgba(255,140,0,0.25);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
    pointer-events: all;
    overflow: hidden;
    backdrop-filter: blur(20px);
  }
  #mobTrackSheet.sheet-open { transform: translateY(0); }

  #mobTrackSheet .sheet-handle {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.20);
    border-radius: 2px;
    margin: 10px auto 4px;
    flex-shrink: 0;
  }
  #mobTrackSheet .sheet-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,140,0,0.80);
    padding: 4px 16px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,140,0,0.12);
  }
  #mobTrackSheet .sheet-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 6px 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,140,0,0.25) transparent;
    -webkit-overflow-scrolling: touch;
  }
  #mobTrackSheet .sheet-scroll::-webkit-scrollbar { width: 3px; }
  #mobTrackSheet .sheet-scroll::-webkit-scrollbar-thumb { background: rgba(255,140,0,0.25); border-radius: 2px; }

  /* Reuse existing track list styles inside the sheet */
  #mobTrackSheet .tlf-section-header { font-size: 0.58rem; padding: 6px 8px 2px; }
  #mobTrackSheet .tlf-region         { font-size: 0.52rem; padding: 5px 8px 1px; }
  #mobTrackSheet .tlf-item           { padding: 7px 8px; border-radius: 8px; }
  #mobTrackSheet .tlf-track          { font-size: 0.78rem; max-width: calc(100vw - 50px); }
  #mobTrackSheet .tlf-loc-small      { font-size: 0.64rem; }
  #mobTrackSheet .tlf-divider        { margin: 6px 8px; }

  /* ════════════════════════════════════════════════════════
     POPUPS — slide in from top, full width
  ════════════════════════════════════════════════════════ */
  .trackCard {
    width: 96vw !important;
    left: 2vw !important;
    right: 2vw !important;
    top: 60px !important;
    bottom: auto !important;
    border-radius: 16px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tc-thumb { height: 130px; }
  .tc-title { font-size: 1.4rem; }
  .tc-desc  { font-size: 0.78rem; }
  .tc-btn   { padding: 9px 16px; font-size: 0.76rem; min-height: 40px; }
  .tc-close { width: 30px; height: 30px; font-size: 12px; top: 8px; right: 8px; }

  .tc-sub-panel {
    position: static !important;
    width: 100% !important;
    margin-top: 0;
    animation: none;
  }
  .tc-sub-panel .sub-bar {
    border-radius: 0 0 14px 14px;
    border-top: 1px solid rgba(255,140,0,0.15);
    border-left: none; border-right: none; border-bottom: none;
    padding: 8px 12px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .tc-sub-panel .sub-headline { font-size: 0.72rem; white-space: nowrap; }
  .tc-sub-panel .sub-links    { flex-direction: row; width: auto; gap: 5px; }
  .tc-sub-panel .sub-btn      { padding: 5px 9px; font-size: 0.66rem; min-height: 32px; }

  .mapCard {
    width: 96vw !important;
    left: 2vw !important;
    right: 2vw !important;
    top: 60px !important;
    bottom: auto !important;
    border-radius: 16px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
  .mc-thumb { height: 120px; }
  .mc-title { font-size: 1.35rem; }
  .mc-desc  { font-size: 0.76rem; }
  .mc-btn   { padding: 8px 14px; font-size: 0.74rem; min-height: 40px; }
  .mc-close { width: 28px; height: 28px; font-size: 12px; }

  #videoOverlay { padding: 6px; }
  #videoPopup {
    width: 100% !important;
    padding: 10px;
    gap: 6px;
    border-radius: 14px;
    max-height: 96vh;
    overflow-y: auto;
  }
  #videoTitle    { font-size: 0.92rem; padding-right: 34px; }
  #videoContainer {
    height: 52vw !important;
    min-height: 170px;
    max-height: 36vh;
  }
  #videoSubBox {
    flex-direction: row !important;
    align-items: center !important;
    padding: 7px 10px !important;
    gap: 8px !important;
  }
  .vsb-headline { font-size: 0.72rem !important; white-space: nowrap; }
  .vsb-sub      { display: none; }
  .vsb-links    { flex-direction: row !important; gap: 5px; }
  .vsb-btn      { padding: 6px 9px; font-size: 0.68rem; min-height: 34px; }
  #closeBtn     { width: 28px; height: 28px; font-size: 12px; top: 8px; right: 8px; }

  #scOverlay { padding: 6px; }
  #scPopup {
    width: 100% !important;
    padding: 14px 12px 12px;
    gap: 8px; border-radius: 14px;
    max-height: 96vh; overflow-y: auto;
  }
  #scHeader     { gap: 10px; }
  #scHeadphones { width: 32px; height: 32px; }
  #scTitle      { font-size: 1.2rem; }
  #scLocation   { font-size: 0.68rem; }
  #scDesc       { font-size: 0.74rem; }
  #scFrame      { height: 190px; }
  #scClose      { width: 28px; height: 28px; font-size: 12px; top: 8px; right: 8px; }
  #scPopup .sub-bar {
    flex-direction: row !important; align-items: center !important;
    padding: 8px 10px !important; gap: 8px !important; text-align: left !important;
  }
  #scPopup .sub-headline { font-size: 0.72rem !important; white-space: nowrap; }
  #scPopup .sub-links    { flex-direction: row !important; width: auto; gap: 5px; }
  #scPopup .sub-btn      { padding: 5px 9px; font-size: 0.68rem; min-height: 32px; }

  #aboutPopup {
    padding: 20px 14px 16px; gap: 10px;
    max-height: 86vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #aboutName { font-size: 1.6rem; }
  #aboutText, #aboutTextEs { font-size: 0.78rem; line-height: 1.65; }

  #mapLabel    { font-size: 1.1rem; padding: 4px 10px 4px 8px; }
  #mapCloseBtn { padding: 7px 14px; font-size: 0.75rem; min-height: 36px; }
  #mapHeader   { padding: 8px 12px; }
  #mapLegend   { bottom: 68px; right: 10px; padding: 6px 8px; gap: 4px; }
  .legend-text { font-size: 0.58rem; }

  #cvBox { max-height: calc(88vh - 58px) !important; }

  #dotVideoPreview { display: none !important; }
  #poiPhotoTip     { display: none !important; }
  svg[id^="line_"] { display: none !important; }
}

/* =========================================================
   📱 TAP TARGETS — universal
   ========================================================= */
button, .tc-btn, .mc-btn, .sub-btn, .vsb-btn { min-height: 44px; }
@media (hover: none) {
  .header-social:hover, .tc-btn:hover, .mc-btn:hover,
  .sub-btn:hover, .vsb-btn:hover, .about-social:hover {
    transform: none !important; filter: none !important; box-shadow: none !important;
  }
}

/* =========================================================
   📱 MOBILE LAYOUT (≤ 768px)

   ┌─────────────────────────────┐
   │ [MA] [IG][YT][@]  [EN][ES] │  ← mob-header  52px
   ├─────────────────────────────┤
   │   ElectroScapes             │
   │   A Progressive House...    │  ← hero overlay (over globe)
   │                             │
   │       [  GLOBE  ]           │
   │                             │
   │   ▶ Tap Globe to Start      │  ← big CTA pill over globe
   ├─────────────────────────────┤
   │ [▶Shuffle][♪Audio][↺Reset][?About] │  ← mob-quickbar  56px
   └─────────────────────────────┘

   How To / Track List: sheet drawers from bottom
   Location popups: full-width bottom sheet
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 14px; overflow: hidden; }

  /* ── Splash ─────────────────────────────────── */
  #splashTitle { font-size: clamp(2.4rem, 11vw, 3.2rem) !important; }
  #splashSub   { font-size: 0.72rem; letter-spacing: 0.14em; }
  #splashBtn   { padding: 12px 32px; font-size: 0.85rem; margin-top: 18px; }

  /* ── Globe fills everything between header and quickbar ── */
  #globe {
    top: 52px !important;
    height: calc(100% - 52px - 56px) !important;
  }
  #globeControls { display: none !important; }

  /* ── Hide desktop panels — replaced by mobile UI ── */
  #introTitle,
  #introTopRight,
  #langSwitcher,
  #introPanel,
  #bottomControls,
  #trackListFloating {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════
     MOB-HEADER  (top 52px)
  ═══════════════════════════════════════════════ */
  #mobHeader {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    z-index: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.0) 100%);
    backdrop-filter: blur(0px);
  }
  #mobHeaderLeft {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #mobLogoImg {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,140,0,0.8);
    box-shadow: 0 0 10px rgba(255,140,0,0.4);
    cursor: pointer;
    flex-shrink: 0;
  }
  #mobSocials {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mob-social {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
  }
  .mob-social svg { width: 15px; height: 15px; stroke: currentColor; }
  .mob-social:hover { color: #ff8c00; }

  #mobHeaderRight {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mob-lang-btn {
    padding: 4px 9px;
    background: rgba(6,6,18,0.82);
    border: 1px solid rgba(255,140,0,0.25);
    border-radius: 20px;
    color: rgba(255,255,255,0.40);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.60rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    min-height: 28px;
    transition: all 0.18s;
  }
  .mob-lang-btn.active {
    background: rgba(255,140,0,0.12);
    border-color: rgba(255,140,0,0.70);
    color: #ff8c00;
  }

  /* ═══════════════════════════════════════════════
     HERO OVERLAY (over globe, pointer-events none)
  ═══════════════════════════════════════════════ */
  #mobHero {
    position: fixed;
    top: 52px;
    left: 0; right: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    gap: 4px;
  }
  #mobHeroTitle {
    font-family: 'aAutoSignature', cursive;
    font-size: clamp(2.6rem, 12vw, 3.8rem);
    font-weight: 400;
    color: #fff;
    text-shadow:
      0 0 22px rgba(255,255,255,0.55),
      0 0 55px rgba(200,220,255,0.22),
      0 2px 8px rgba(0,0,0,0.85);
    line-height: 1;
    margin: 0;
    letter-spacing: 0.02em;
  }
  /* Row: subtitle + How To button side by side */
  #mobHeroSubRow {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: all;
  }
  #mobHeroSub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.85), 0 0 14px rgba(180,210,255,0.20);
    pointer-events: none;
  }
  /* "How To" pill button — sits to the right of the subtitle */
  #mobHowToBtn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px 3px 7px;
    background: rgba(255,140,0,0.14);
    border: 1px solid rgba(255,140,0,0.55);
    border-radius: 20px;
    color: #ff8c00;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    pointer-events: all;
    min-height: unset;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 8px rgba(255,140,0,0.20);
    transition: background 0.18s, box-shadow 0.18s;
  }
  #mobHowToBtn:active {
    background: rgba(255,140,0,0.28);
    box-shadow: 0 0 14px rgba(255,140,0,0.45);
  }
  #mobHowToBtn svg { flex-shrink: 0; }

  /* ── "Tap Globe to Start" CTA ── */
  #mobGlobeCta {
    position: fixed;
    left: 50%;
    bottom: calc(56px + 18px);   /* just above quickbar */
    transform: translateX(-50%);
    z-index: 200;
    pointer-events: all;
  }
  #mobGlobeCtaBtn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    background: #ff8c00;
    border: none;
    border-radius: 40px;
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255,140,0,0.65), 0 4px 20px rgba(0,0,0,0.5);
    animation: mobCtaPulse 2.2s ease-in-out infinite;
    min-height: 48px;
    white-space: nowrap;
  }
  @keyframes mobCtaPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,140,0,0.55), 0 4px 18px rgba(0,0,0,0.5); }
    50%       { box-shadow: 0 0 38px rgba(255,140,0,0.90), 0 4px 22px rgba(0,0,0,0.5); }
  }
  #mobGlobeCtaBtn:active { transform: scale(0.96); }
  /* Hide CTA once site is entered */
  #mobGlobeCta.mob-entered { display: none; }

  /* ═══════════════════════════════════════════════
     QUICK-BAR  (bottom 56px, always visible)
  ═══════════════════════════════════════════════ */
  #mobQuickbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 56px;
    z-index: 650;
    display: flex;
    align-items: stretch;
    background: rgba(4,4,14,0.96);
    border-top: 1px solid rgba(255,140,0,0.18);
    backdrop-filter: blur(14px);
  }
  .mob-qb-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.50rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 6px 4px;
    transition: color 0.18s, background 0.18s;
    min-height: unset;    /* override the universal 44px for this bar */
    position: relative;
  }
  .mob-qb-btn svg {
    width: 20px; height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
  }
  .mob-qb-btn:active,
  .mob-qb-btn.qb-active { color: #ff8c00; background: rgba(255,140,0,0.07); }
  .mob-qb-btn.qb-shuffle-on {
    color: #ff8c00;
    animation: shufflePulse 1.8s ease-in-out infinite;
  }

  /* ═══════════════════════════════════════════════
     MOB DRAWERS — slide up from bottom
     Used for: How To Explore, Track List
  ═══════════════════════════════════════════════ */
  .mob-drawer {
    position: fixed;
    left: 0; right: 0;
    bottom: 56px;          /* sits on top of quickbar */
    z-index: 640;
    background: rgba(4,4,14,0.98);
    border: 1px solid rgba(255,140,0,0.22);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
    max-height: 68vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(18px);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.7);
  }
  .mob-drawer.mob-drawer-open {
    transform: translateY(0);
  }
  .mob-drawer-handle {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }
  .mob-drawer-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255,140,0,0.75);
    text-transform: uppercase;
    padding: 10px 18px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,140,0,0.12);
  }
  .mob-drawer-body {
    overflow-y: auto;
    flex: 1;
    padding: 10px 14px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,140,0,0.25) transparent;
  }
  /* How To body content */
  #mobHowToDrawer .intro-label  { font-size: 0; } /* hide duplicate label */
  #mobHowToDrawer .mob-drawer-body .intro-tip   { font-size: 0.80rem; gap: 8px; line-height: 1.4; }
  #mobHowToDrawer .mob-drawer-body .intro-icon  { font-size: 0.70rem; width: 14px; }
  #mobHowToDrawer .mob-drawer-body .intro-or    { font-size: 0.60rem; gap: 6px; margin: 4px 0; }
  #mobHowToDrawer .mob-drawer-body .intro-section-label { font-size: 0.62rem; padding: 4px 0 0; }
  #mobHowToDrawer .mob-drawer-body #shuffleBtn  {
    width: 100%; padding: 10px 0; margin-top: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  }
  /* Track list drawer body */
  #mobTrackDrawer .tlf-section-header { font-size: 0.58rem; padding: 6px 4px 2px; }
  #mobTrackDrawer .tlf-region         { font-size: 0.52rem; padding: 6px 4px 2px; }
  #mobTrackDrawer .tlf-item           { padding: 7px 6px; border-radius: 8px; }
  #mobTrackDrawer .tlf-track          { font-size: 0.80rem; max-width: 100%; }
  #mobTrackDrawer .tlf-loc-small      { font-size: 0.65rem; }
  #mobTrackDrawer .tlf-divider        { margin: 8px 4px; }

  /* Backdrop for drawers */
  #mobDrawerBackdrop {
    position: fixed;
    inset: 0;
    z-index: 630;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s;
  }
  #mobDrawerBackdrop.mob-backdrop-show {
    opacity: 1;
    pointer-events: all;
  }

  /* ═══════════════════════════════════════════════
     LOCATION BOTTOM SHEET (track card / map card)
  ═══════════════════════════════════════════════ */
  .trackCard {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: 64px !important;
    top: auto !important;
    width: min(420px, 94vw) !important;
    border-radius: 16px !important;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mobSheetUp 0.32s cubic-bezier(0.32,0.72,0,1) both !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.85) !important;
    border-bottom: 1px solid rgba(255,140,0,0.2) !important;
    z-index: 850 !important;
  }
  @keyframes mobSheetUp {
    from { transform: translateX(-50%) translateY(40px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
  }
  .tc-thumb  { height: 140px; }
  .tc-body   { padding: 12px 16px 14px; }
  .tc-title  { font-size: 1.5rem; }
  .tc-desc   { font-size: 0.78rem; line-height: 1.55; }
  .tc-btn    { padding: 9px 18px; font-size: 0.78rem; min-height: 42px; width: 100%; text-align: center; justify-content: center; }
  .tc-close  { width: 30px; height: 30px; font-size: 12px; top: 10px; right: 12px; }

  /* Subscribe panel — below card, inline */
  .tc-sub-panel {
    position: static !important;
    width: 100% !important;
    margin-top: 0;
    animation: none;
  }
  .tc-sub-panel .sub-bar {
    border-radius: 0;
    border-top: 1px solid rgba(255,140,0,0.15);
    border-left: none; border-right: none; border-bottom: none;
    padding: 10px 14px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .tc-sub-panel .sub-headline { font-size: 0.78rem; white-space: nowrap; }
  .tc-sub-panel .sub-links    { flex-direction: row; width: auto; gap: 6px; }
  .tc-sub-panel .sub-btn      { padding: 6px 10px; font-size: 0.70rem; min-height: 34px; }

  /* "Pull up for more" hint */
  .tc-pull-hint {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.28);
    padding: 6px 0 2px;
  }

  /* Map card as bottom sheet — smaller, scrollable, never hidden */
  .mapCard {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: 64px !important;
    top: auto !important;
    width: min(420px, 94vw) !important;
    border-radius: 16px !important;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mobSheetUp 0.32s cubic-bezier(0.32,0.72,0,1) both !important;
    border-bottom: 1px solid rgba(255,140,0,0.2) !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.85) !important;
    z-index: 850 !important;
  }
  .mc-thumb  { height: 110px; }
  .mc-body   { padding: 10px 14px 14px; }
  .mc-title  { font-size: 1.35rem; }
  .mc-desc   { font-size: 0.76rem; line-height: 1.5; }
  .mc-btn    { padding: 9px 18px; font-size: 0.76rem; min-height: 42px; width: 100%; text-align: center; justify-content: center; }
  .mc-close  { width: 30px; height: 30px; font-size: 12px; }
  /* Swipe hint */
  .mc-swipe-hint {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.28);
    padding: 6px 0 2px;
  }

  /* ─── Location detail sheet (Track Only / Tracks+Video) ── */
  #mobLocationSheet {
    position: fixed;
    left: 0; right: 0;
    bottom: 56px;
    z-index: 800;
    background: rgba(4,4,14,0.98);
    border: 1px solid rgba(255,140,0,0.25);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.85);
    backdrop-filter: blur(18px);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
    overflow: hidden;
  }
  #mobLocationSheet.mob-sheet-open {
    transform: translateY(0);
  }
  #mobLocSheet-thumb {
    width: 100%; height: 180px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
  }
  #mobLocSheet-body {
    padding: 14px 18px 12px;
    flex-shrink: 0;
  }
  #mobLocSheet-location {
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.20em; text-transform: uppercase;
    color: #ff8c00; margin-bottom: 4px;
  }
  #mobLocSheet-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.0rem; letter-spacing: 0.06em;
    color: #fff; line-height: 1.05; margin-bottom: 6px;
  }
  #mobLocSheet-desc {
    font-size: 0.82rem; font-weight: 300;
    line-height: 1.65; color: rgba(240,237,232,0.60);
    font-style: italic;
  }
  #mobLocSheet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 18px 10px;
    flex-shrink: 0;
  }
  .mob-sheet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    min-height: 48px;
    border: none;
    transition: all 0.18s;
  }
  .mob-sheet-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
  .mob-sheet-btn-primary {
    background: #ff8c00;
    color: #000;
    box-shadow: 0 0 20px rgba(255,140,0,0.4);
  }
  .mob-sheet-btn-primary:active { background: #ffaa33; }
  .mob-sheet-btn-secondary {
    background: rgba(192,80,255,0.12);
    border: 1px solid rgba(192,80,255,0.40);
    color: #c050ff;
  }
  .mob-sheet-btn-secondary:active { background: rgba(192,80,255,0.22); }
  #mobLocSheet-swipe {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.54rem;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.25);
    padding: 4px 0 10px;
    flex-shrink: 0;
  }

  /* ── Video overlay — centred popup ───────────────────────── */
  #videoOverlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }
  #videoPopup {
    width: min(480px, 96vw) !important;
    border-radius: 16px !important;
    padding: 14px 14px 12px;
    gap: 8px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    animation: none;
  }
  #videoTitle    { font-size: 1.0rem; padding-right: 36px; }
  #videoContainer {
    height: 52vw !important;
    min-height: 175px;
    max-height: 38vh;
  }
  #videoSubBox {
    flex-direction: row !important; align-items: center !important;
    padding: 8px 10px !important; gap: 8px !important;
  }
  .vsb-headline { font-size: 0.74rem !important; white-space: nowrap; }
  .vsb-sub      { display: none; }
  .vsb-links    { flex-direction: row !important; gap: 6px; }
  .vsb-btn      { padding: 7px 10px; font-size: 0.70rem; min-height: 36px; }
  #closeBtn     { width: 30px; height: 30px; font-size: 12px; top: 10px; right: 10px; }

  /* ── SoundCloud overlay — centred popup ─────────────────── */
  #scOverlay {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }
  #scPopup {
    width: min(480px, 96vw) !important;
    border-radius: 16px !important;
    padding: 16px 14px 14px;
    gap: 10px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    animation: mobSheetUp 0.32s cubic-bezier(0.32,0.72,0,1) both;
  }
  #scHeader     { gap: 10px; }
  #scHeadphones { width: 34px; height: 34px; }
  #scTitle      { font-size: 1.3rem; }
  #scLocation   { font-size: 0.70rem; }
  #scDesc       { font-size: 0.76rem; }
  #scFrame      { height: 195px; }
  #scClose      { width: 30px; height: 30px; font-size: 12px; top: 10px; right: 10px; }
  #scPopup .sub-bar {
    flex-direction: row !important; align-items: center !important;
    padding: 9px 12px !important; gap: 8px !important; text-align: left !important;
  }
  #scPopup .sub-headline { font-size: 0.74rem !important; white-space: nowrap; }
  #scPopup .sub-links    { flex-direction: row !important; width: auto; gap: 6px; }
  #scPopup .sub-btn      { padding: 6px 10px; font-size: 0.70rem; min-height: 34px; }

  /* ── About overlay — centred popup ─────────────────────── */
  #aboutOverlay {
    align-items: center;
    justify-content: center;
    padding: 12px;
  }
  #aboutPopup {
    width: min(480px, 96vw);
    max-width: 96vw;
    border-radius: 16px;
    padding: 22px 18px 20px;
    gap: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: none;
  }
  #aboutName { font-size: 1.8rem; }
  #aboutText, #aboutTextEs { font-size: 0.80rem; line-height: 1.68; }

  /* ── Map view ───────────────────────────────────────────── */
  #mapLabel    { font-size: 1.1rem; padding: 4px 10px 4px 8px; }
  #mapCloseBtn { padding: 7px 14px; font-size: 0.76rem; min-height: 36px; }
  #mapHeader   { padding: 8px 12px; }
  #mapLegend   { bottom: 66px; right: 10px; padding: 6px 8px; gap: 4px; }
  .legend-text { font-size: 0.58rem; }

  /* Country view panel */
  #cvBox { max-height: calc(88vh - 56px) !important; }

  /* Disable desktop-only hover features */
  #dotVideoPreview  { display: none !important; }
  #poiPhotoTip      { display: none !important; }
  svg[id^="line_"]  { display: none !important; }
}

/* =========================================================
   📱 MOBILE EXTRA — quickbar always visible after enterSite
   ========================================================= */
@media (max-width: 768px) {
  /* Quickbar and header created by JS — always shown */
  #mobQuickbar { display: flex; }
  #mobHeader   { display: flex; }
  #mobHero     { display: flex; }
  #mobGlobeCta { display: block; }

  /* Override the canvas/globe global rule that forces 100vh */
  #globe {
    width: 100% !important;
    height: calc(100% - 52px - 56px) !important;
    max-height: none;
  }
  canvas#spaceCanvas {
    width: 100vw !important;
    height: 100vh !important;
  }

  /* Quickbar button sizing — override the 44px universal rule */
  #mobQuickbar .mob-qb-btn { min-height: unset !important; }

  /* About overlay centred — handled above */

  /* Location sheet — ensure it's above quickbar */
  #mobLocationSheet { z-index: 800; }

  /* Swipe-down indicator on bottom sheets */
  #videoPopup::before,
  #scPopup::before,
  #aboutPopup::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    margin: 0 auto 10px;
    flex-shrink: 0;
  }

  /* Map overlay stays full screen but legend above quickbar */
  #mapOverlay { z-index: 700; }
  #mapCloseBtn { z-index: 760; }
}
