/* Treegens Earth — Google Earth-style UI */
:root {
  --lime-1: #d3e165;
  --lime-2: #b6bf56;
  --lime-3: #989c46;
  --bark-1: #3a2f19;
  --bark-2: #1e0f09;
  --panel: rgba(32, 33, 36, 0.92);
  --panel-solid: #202124;
  --panel-2: #2d2e31;
  --txt: #e8eaed;
  --txt-2: #9aa0a6;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #c6d453;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.35);
  --font: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: #000; }
body { font-family: var(--font); color: var(--txt); }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: var(--font); }

#globe { position: fixed; inset: 0; }
#globe canvas { outline: none; }
#globe .cesium-viewer, #globe .cesium-widget, #globe .cesium-widget canvas { width: 100%; height: 100%; }
#globe .cesium-viewer-bottom { display: none; } /* credits render in our attribution bar instead */

/* HTML pin overlay, projected by Cesium each frame */
#markers { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
#markers .marker { position: absolute; }

/* Cesium credits, restyled to match the attribution bar */
#cesium-credits { pointer-events: auto; }
#cesium-credits .cesium-credit-logoContainer, #cesium-credits .cesium-credit-expand-link { display: none !important; }
#cesium-credits, #cesium-credits a { color: rgba(255,255,255,.55); font-size: 11px; text-decoration: none; }

/* ---------- Loading splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity .8s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
#splash img { width: min(420px, 70vw); }
#splash .bar {
  width: min(320px, 60vw); height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden;
}
#splash .bar i {
  display: block; height: 100%; width: 40%; border-radius: 2px;
  background: linear-gradient(90deg, var(--lime-1), var(--lime-3));
  animation: load 1.2s ease-in-out infinite;
}
@keyframes load { 0% { transform: translateX(-100%);} 100% { transform: translateX(350%);} }
#splash p { color: var(--txt-2); font-size: 13px; letter-spacing: .4px; }

/* ---------- Top-left: search pill ---------- */
.searchbar {
  position: fixed; top: 16px; left: 16px; z-index: 40;
  display: flex; align-items: center; gap: 4px;
  background: var(--panel); backdrop-filter: blur(12px);
  border-radius: 24px; box-shadow: var(--shadow);
  height: 48px; padding: 0 8px 0 6px; width: min(392px, calc(100vw - 32px));
}
.searchbar .logo-chip { display: flex; align-items: center; padding: 0 4px 0 6px; }
.searchbar .logo-chip img { height: 26px; display: block; }
.searchbar input {
  flex: 1; background: none; border: none; outline: none; color: var(--txt);
  font-size: 15px; min-width: 0;
}
.searchbar input::placeholder { color: var(--txt-2); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--txt-2); flex: none; transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--txt); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

.search-results {
  position: fixed; top: 72px; left: 16px; z-index: 40; width: min(392px, calc(100vw - 32px));
  background: var(--panel-solid); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: none;
}
.search-results.open { display: block; }
.search-results button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 16px; font-size: 14px; color: var(--txt);
}
.search-results button:hover { background: rgba(255,255,255,.07); }
.search-results .pin-ico { color: var(--accent); flex: none; display: flex; }
.search-results .pin-ico svg { width: 18px; height: 18px; fill: currentColor; }
.search-results .sub { color: var(--txt-2); font-size: 12px; margin-left: auto; padding-left: 8px; white-space: nowrap; }

/* ---------- Left rail ---------- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 30; width: 64px;
  background: rgba(18, 19, 20, 0.82); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 80px;
  border-right: 1px solid rgba(255,255,255,.05);
}
.rail button {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-2); position: relative; transition: background .15s, color .15s;
}
.rail button:hover, .rail button.active { background: rgba(198, 212, 83, .14); color: var(--accent); }
.rail button svg { width: 22px; height: 22px; fill: currentColor; }
.rail button .tip {
  position: absolute; left: 58px; top: 50%; transform: translateY(-50%);
  background: #111; color: var(--txt); font-size: 12px; padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; box-shadow: var(--shadow);
}
.rail button:hover .tip { opacity: 1; }
.rail .spacer { flex: 1; }

/* ---------- Stats HUD (top right) ---------- */
.hud {
  position: fixed; top: 16px; right: 16px; z-index: 30;
  display: flex; gap: 10px; align-items: center;
}
.hud .stat {
  background: var(--panel); backdrop-filter: blur(12px); border-radius: 24px;
  box-shadow: var(--shadow); padding: 8px 16px; display: flex; flex-direction: column; align-items: flex-end;
}
.hud .stat b { font-size: 16px; color: var(--accent); font-weight: 500; letter-spacing: .3px; }
.hud .stat span { font-size: 10.5px; color: var(--txt-2); text-transform: uppercase; letter-spacing: .8px; }
.hud .fund-cta {
  height: 48px; padding: 0 22px; border-radius: 24px; font-size: 14.5px; font-weight: 600;
  background: linear-gradient(180deg, var(--lime-1), var(--lime-3)); color: var(--bark-2);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; transition: transform .15s, filter .15s;
}
.hud .fund-cta:hover { transform: translateY(-1px); filter: brightness(1.06); }
.hud .fund-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Bottom-right nav controls ---------- */
.nav-controls {
  position: fixed; right: 16px; bottom: 24px; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.nav-controls .compass {
  width: 44px; height: 44px; border-radius: 50%; background: var(--panel); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; transition: transform .3s;
}
.nav-controls .zoombox {
  background: var(--panel); backdrop-filter: blur(12px); border-radius: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.nav-controls .zoombox button {
  width: 44px; height: 44px; font-size: 22px; color: var(--txt-2); display: flex; align-items: center; justify-content: center;
}
.nav-controls .zoombox button:hover { color: var(--txt); background: rgba(255,255,255,.07); }
.nav-controls .zoombox hr { border: none; border-top: 1px solid var(--line); margin: 0 10px; }

/* ---------- Attribution (bottom center) ---------- */
.attribution {
  position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 20;
  color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .2px; text-shadow: 0 1px 2px #000;
  pointer-events: none; white-space: nowrap;
}

/* Bottom-left wordmark */
.wordmark {
  position: fixed; left: 76px; bottom: 12px; z-index: 20; pointer-events: none;
  display: flex; align-items: baseline; gap: 7px; text-shadow: 0 1px 3px #000;
}
.wordmark b { font-size: 17px; font-weight: 500; color: #fff; letter-spacing: .2px; }
.wordmark span { font-size: 11.5px; color: rgba(255,255,255,.65); }

/* ---------- Globe pin markers ---------- */
.marker { transform: translate(-50%, -100%); cursor: pointer; pointer-events: auto; will-change: left, top; }
.marker .pin {
  display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
  transition: transform .18s ease;
}
.marker:hover .pin { transform: scale(1.18) translateY(-2px); }
.marker .count {
  background: linear-gradient(180deg, var(--lime-1), var(--lime-2));
  color: var(--bark-2); font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  padding: 4px 9px; border-radius: 12px; white-space: nowrap; margin-bottom: 2px;
  border: 1.5px solid rgba(30, 15, 9, .35);
}
.marker svg.drop { width: 26px; height: 34px; display: block; }
.marker .pulse {
  position: absolute; left: 50%; bottom: -7px; width: 26px; height: 10px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse, rgba(211,225,101,.55), transparent 70%);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .5; transform: translateX(-50%) scale(1);} 50% { opacity: 1; transform: translateX(-50%) scale(1.5);} }

/* ---------- Site knowledge panel (left card, Google Earth style) ---------- */
.panel {
  position: fixed; top: 80px; left: 80px; bottom: 24px; z-index: 35; width: min(400px, calc(100vw - 96px));
  background: var(--panel-solid); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(-120%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.panel.open { transform: translateX(0); opacity: 1; }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }

.panel .hero { position: relative; height: 180px; flex: none; }
.panel .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel .hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 40%, rgba(32,33,36,.95) 96%);
}
.panel .hero .close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center;
}
.panel .hero .close:hover { background: rgba(0,0,0,.8); }
.panel .hero .title { position: absolute; left: 18px; right: 18px; bottom: 10px; z-index: 2; }
.panel .hero .title h2 { font-size: 21px; font-weight: 500; }
.panel .hero .title p { font-size: 13px; color: #cfd2d6; margin-top: 2px; }

.panel .body { padding: 14px 18px 18px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500;
  padding: 5px 10px; border-radius: 14px; letter-spacing: .2px;
  background: rgba(198,212,83,.12); color: var(--accent); border: 1px solid rgba(198,212,83,.25);
}
.badge svg { width: 13px; height: 13px; fill: currentColor; }
.badge.blue { background: rgba(138,180,248,.12); color: #8ab4f8; border-color: rgba(138,180,248,.25); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.fact { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.fact b { display: block; font-size: 16px; font-weight: 500; color: var(--txt); }
.fact span { font-size: 11px; color: var(--txt-2); text-transform: uppercase; letter-spacing: .6px; }

.progress { margin-bottom: 16px; }
.progress .track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress .fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--lime-1), var(--lime-3)); transition: width .8s ease; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--txt-2); margin-top: 5px; }

.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--txt-2); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Before / after videos */
.ba-toggle { display: flex; background: var(--panel-2); border-radius: 20px; padding: 3px; margin-bottom: 10px; }
.ba-toggle button {
  flex: 1; padding: 7px 0; border-radius: 17px; font-size: 12.5px; font-weight: 600; color: var(--txt-2);
  transition: background .2s, color .2s;
}
.ba-toggle button.active { background: linear-gradient(180deg, var(--lime-1), var(--lime-2)); color: var(--bark-2); }
.ba-video { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/10; --split: 50%; }
.ba-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-video #ba-player2 { position: absolute; inset: 0; display: none; }
.ba-video.compare #ba-player2 { display: block; clip-path: inset(0 0 0 var(--split)); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; z-index: 3;
  background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.7); cursor: ew-resize;
  display: none; touch-action: none;
}
.ba-video.compare .ba-divider { display: block; }
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  box-shadow: var(--shadow); pointer-events: none;
}
.ba-video .stamp {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 4px 10px; border-radius: 6px;
}
.ba-video .stamp.right { left: auto; right: 10px; }
.ba-video .gps {
  position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between;
  font-family: 'SF Mono', ui-monospace, monospace; font-size: 10px; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 2px #000;
}

.planter-note {
  display: flex; gap: 10px; align-items: flex-start; background: var(--panel-2); border-radius: 10px;
  padding: 11px 12px; font-size: 12.5px; color: var(--txt-2); line-height: 1.5; margin-top: 14px;
}
.planter-note svg { width: 16px; height: 16px; fill: var(--accent); flex: none; margin-top: 1px; }
.planter-note b { color: var(--txt); font-weight: 500; }

.panel .foot {
  flex: none; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-solid);
  display: flex; gap: 10px;
}
.btn-fund {
  flex: 1; height: 44px; border-radius: 22px; font-size: 14.5px; font-weight: 600;
  background: linear-gradient(180deg, var(--lime-1), var(--lime-3)); color: var(--bark-2);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s;
}
.btn-fund:hover { filter: brightness(1.07); }
.btn-fund svg { width: 17px; height: 17px; fill: currentColor; }
.btn-ghost {
  height: 44px; padding: 0 16px; border-radius: 22px; font-size: 13.5px; font-weight: 500;
  color: var(--accent); border: 1px solid rgba(198,212,83,.4);
}
.btn-ghost:hover { background: rgba(198,212,83,.1); }

/* ---------- Fund modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 440px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--panel-solid); border-radius: 18px; box-shadow: 0 8px 40px rgba(0,0,0,.6);
  transform: translateY(16px) scale(.98); transition: transform .25s;
}
.overlay.open .modal { transform: none; }
.modal-head { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h3 { font-size: 19px; font-weight: 500; }
.modal-head p { font-size: 12.5px; color: var(--txt-2); margin-top: 3px; }
.modal-body { padding: 16px 22px 22px; }

.freq-toggle { display: flex; background: var(--panel-2); border-radius: 22px; padding: 3px; margin-bottom: 16px; }
.freq-toggle button { flex: 1; padding: 9px 0; border-radius: 19px; font-size: 13px; font-weight: 600; color: var(--txt-2); }
.freq-toggle button.active { background: linear-gradient(180deg, var(--lime-1), var(--lime-2)); color: var(--bark-2); }
.freq-toggle button small { display: block; font-size: 10px; font-weight: 500; opacity: .75; }

.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.amounts button {
  padding: 12px 4px; border-radius: 12px; background: var(--panel-2); border: 1.5px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .15s, background .15s;
  position: relative;
}
.amounts button .pop {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 8px; font-weight: 700; letter-spacing: .6px;
  background: linear-gradient(180deg, var(--lime-1), var(--lime-3)); color: var(--bark-2);
  padding: 2px 7px; border-radius: 7px; white-space: nowrap;
}
a.badge { text-decoration: none; cursor: pointer; }
a.badge:hover { filter: brightness(1.25); }
.amounts button b { font-size: 16px; font-weight: 600; color: var(--txt); }
.amounts button span { font-size: 10.5px; color: var(--txt-2); }
.amounts button.active { border-color: var(--accent); background: rgba(198,212,83,.1); }
.amounts button.active span { color: var(--accent); }

.custom-amt { position: relative; margin-bottom: 14px; }
.custom-amt span.cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--txt-2); font-size: 15px; }
.custom-amt input {
  width: 100%; background: var(--panel-2); border: 1.5px solid transparent; border-radius: 12px;
  padding: 12px 12px 12px 30px; color: var(--txt); font-size: 15px; outline: none;
}
.custom-amt input:focus { border-color: var(--accent); }
.custom-amt .trees-out { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--accent); font-weight: 600; }

.split-note {
  display: flex; align-items: center; gap: 10px; background: rgba(198,212,83,.08); border: 1px solid rgba(198,212,83,.2);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--txt-2); line-height: 1.45; margin-bottom: 16px;
}
.split-note b { color: var(--accent); font-size: 15px; }

.pay-btn {
  width: 100%; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 9px;
  transition: filter .15s, transform .1s;
}
.pay-btn:active { transform: scale(.99); }
.pay-btn.apple { background: #fff; color: #000; }
.pay-btn.google { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.pay-btn.card { background: var(--panel-2); color: var(--txt); font-weight: 500; font-size: 13.5px; height: 42px; }
.pay-btn:hover { filter: brightness(.94); }
.pay-btn.google:hover, .pay-btn.card:hover { filter: brightness(1.25); }
.pay-btn svg { height: 22px; }
.pay-secure { text-align: center; font-size: 10.5px; color: var(--txt-2); display: flex; align-items: center; justify-content: center; gap: 5px; }
.tgn-path {
  display: block; margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  background: rgba(198,212,83,.07); border: 1px dashed rgba(198,212,83,.3);
  font-size: 11.5px; line-height: 1.5; color: var(--txt-2); text-decoration: none;
  text-align: center; transition: background .15s;
}
.tgn-path:hover { background: rgba(198,212,83,.13); }
.tgn-path b { color: var(--accent); }
.pay-secure svg { width: 11px; height: 11px; fill: var(--txt-2); }
#pr-button { margin-bottom: 9px; }

/* Success state */
.success { text-align: center; padding: 8px 0 4px; }
.success .ring {
  width: 76px; height: 76px; margin: 6px auto 16px; border-radius: 50%;
  background: linear-gradient(180deg, var(--lime-1), var(--lime-3)); color: var(--bark-2);
  display: flex; align-items: center; justify-content: center; animation: pop .5s cubic-bezier(.2,1.6,.4,1);
}
.success .ring svg { width: 38px; height: 38px; fill: currentColor; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0;} 100% { transform: scale(1); opacity: 1;} }
.success h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.success p { font-size: 13px; color: var(--txt-2); line-height: 1.55; }
.success .receipt {
  margin: 16px 0; background: var(--panel-2); border-radius: 12px; padding: 13px 16px; text-align: left;
}
.success .receipt div { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; color: var(--txt-2); }
.success .receipt div b { color: var(--txt); font-weight: 500; }
.success .receipt div.hl b { color: var(--accent); }

/* ---------- About modal ---------- */
.about-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.about-item { display: flex; gap: 13px; align-items: flex-start; }
.about-item .ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
  background: rgba(198,212,83,.12); color: var(--accent);
}
.about-item .ic svg { width: 20px; height: 20px; fill: currentColor; }
.about-item b { display: block; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.about-item p { font-size: 12.5px; color: var(--txt-2); line-height: 1.5; }

/* ---------- Welcome card ---------- */
.welcome-card { text-align: center; padding: 30px 30px 24px; width: 460px; }
.welcome-card .w-logo { height: 44px; margin-bottom: 16px; }
.welcome-card h2 { font-size: 23px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.welcome-card .w-sub { font-size: 13.5px; color: var(--txt-2); line-height: 1.55; margin-bottom: 18px; }
.w-points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; text-align: left; }
.w-points div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  background: var(--panel-2); border-radius: 10px; padding: 10px 14px;
}
.w-points b { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.w-points span { font-size: 11.5px; color: var(--txt-2); text-align: right; }
.welcome-card .w-explore { width: 100%; margin-bottom: 9px; }
.welcome-card .w-fund { width: 100%; }

/* ---------- Camera status readout ---------- */
.camstat {
  position: fixed; right: 16px; bottom: 208px; z-index: 20; pointer-events: none;
  font-family: 'SF Mono', ui-monospace, monospace; font-size: 10.5px; text-align: right;
  color: rgba(255,255,255,.62); text-shadow: 0 1px 2px #000; line-height: 1.5; white-space: pre-line;
}

/* Real planting pins — green = verified, amber = awaiting verification */
.planting-pin .count { font-size: 10.5px; padding: 3px 7px; }
.planting-pin.verified .count { background: linear-gradient(180deg, #b6e7b6, #8fd18f); border-color: rgba(18,33,15,.35); }
.planting-pin.pending .count { background: linear-gradient(180deg, #e8cf72, #c9a227); border-color: rgba(40,30,5,.35); }
.planting-pin .pulse { display: none; }
.planting-pin svg.drop { width: 20px; height: 26px; }

/* Purchasable video-NFT pins (blue) */
.video-pin .count { background: linear-gradient(180deg, #a8c7fa, #8ab4f8); border-color: rgba(20,30,45,.35); }
.video-pin .pulse { background: radial-gradient(ellipse, rgba(138,180,248,.55), transparent 70%); }

/* Hide pin count chips at far zoom (declutter); reveal on hover */
#markers.far .marker .count { display: none; }
#markers.far .marker:hover .count { display: block; }

/* Success extras */
.nudge { font-size: 11.5px; color: var(--txt-2); margin: -6px 0 12px; line-height: 1.5; }

/* Live supporters ticker (real Stripe data only) */
.liveticker {
  position: fixed; left: 76px; bottom: 42px; z-index: 20; pointer-events: none;
  background: rgba(18,19,20,.78); backdrop-filter: blur(8px);
  color: var(--txt); font-size: 12px; padding: 7px 14px; border-radius: 16px;
  border: 1px solid rgba(198,212,83,.25); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.liveticker.show { opacity: 1; transform: translateY(0); }

/* Real funded count inside site panel */
.funded-line {
  display: flex; align-items: center; font-size: 12.5px; color: var(--accent);
  background: rgba(198,212,83,.08); border: 1px solid rgba(198,212,83,.2);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 4px;
}
.funded-line b { margin-left: 4px; }

.about-foot { font-size: 12px; color: var(--txt-2); margin-top: 16px; text-align: center; }
.about-foot a { color: var(--accent); text-decoration: none; }
.about-foot a:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 80px); z-index: 70;
  background: #111; color: var(--txt); font-size: 13px; padding: 12px 20px; border-radius: 10px;
  box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 40px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .rail { display: none; }
  .wordmark { left: 14px; }
  .hud { top: auto; bottom: 84px; right: 12px; flex-direction: column; align-items: flex-end; }
  .hud .stat { display: none; }
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 72vh; border-radius: 18px 18px 0 0;
    transform: translateY(110%);
  }
  .panel.open { transform: translateY(0); }
  .nav-controls { bottom: 90px; }
  .attribution { display: none; }
  .camstat { display: none; }
  .welcome-card { width: 100%; }
  .liveticker { left: 12px; right: auto; bottom: 42px; font-size: 11px; max-width: calc(100vw - 90px); }
}
