:root {
  --bg: #14020a;
  --navy: #63001f;
  --blue: #c0476e;
  --cyan: #f3d9a8;
  --gold: #E2A94D;
  --gold-2: #c48a32;
  --red: #dc3448;
  --text: #fff8f4;
  --muted: #dcc0c7;
  --faint: #a8838e;
  --glass: rgba(48, 4, 20, 0.62);
  --glass-2: rgba(58, 6, 24, 0.82);
  --line: rgba(226, 169, 77, 0.18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Grotesk', var(--sans);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #000;
  color: var(--text);
  font: 400 15px/1.55 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }

/* ── Background: deep space with a soft blue nebula behind the Earth ── */
.space {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(60vmax 45vmax at 66% 52%, rgba(40, 70, 130, 0.10), transparent 62%), #000;
}
#globe { position: fixed; inset: 0; z-index: 1; touch-action: none; }
#globe canvas { outline: none; }
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}

/* ── Header ── */
.top {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) clamp(16px, 3vw, 40px) 0;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold);
  background: radial-gradient(circle at 50% 60%, rgba(226, 169, 77, 0.28), rgba(226, 169, 77, 0.04) 70%);
  border: 1px solid rgba(226, 169, 77, 0.35);
  box-shadow: 0 0 24px rgba(226, 169, 77, 0.35);
}
.brand-mark svg { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(240, 196, 120, 0.9)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 600 19px/1.1 var(--serif); letter-spacing: 0.01em; }
.brand-text span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; position: relative; padding-top: 5px; margin-top: 3px; }
/* Venezuelan tricolor hairline */
.brand-text span::before {
  content: ''; position: absolute; top: 0; left: 0; width: 54px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #ffcc00 0 33.3%, #1a4fd6 33.3% 66.6%, var(--red) 66.6% 100%);
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(58, 6, 24, 0.55); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: rgba(226, 169, 77, 0.5); background: rgba(80, 10, 34, 0.7); }
.chip svg { width: 16px; height: 16px; }

.top-actions { display: flex; align-items: center; gap: 10px; }
.live-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 16px 0 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(58, 6, 24, 0.55); color: var(--text);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; flex: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s, background .2s, box-shadow .2s;
}
.live-btn[hidden] { display: none; }
.live-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
.live-ico svg { width: 16px; height: 16px; }
.live-btn:hover { border-color: rgba(226, 169, 77, 0.5); }
.live-btn.is-soon { color: var(--muted); }
.live-btn.is-live { border-color: rgba(220, 52, 72, 0.75); background: rgba(150, 14, 40, 0.55); box-shadow: 0 0 24px rgba(220, 52, 72, 0.35); }
.live-btn.is-live .live-ico { background: var(--red); animation: live 2s infinite; }
.live-btn.is-ended .live-ico { background: rgba(226, 169, 77, 0.2); color: var(--gold); }
.live-label .short { display: none; }

.player {
  width: min(1100px, calc(100vw - 24px)); padding: 0; border-radius: 22px; border: 1px solid var(--line); color: var(--text);
  background: #14020a; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); overflow: hidden;
}
.player::backdrop { background: rgba(12, 1, 5, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.player-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 64px 14px 20px; }
.player-head h2 { flex: 1; margin: 0; font: 600 22px/1.2 var(--serif); }
.player .x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.player .x svg { width: 16px; height: 16px; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Hero text (left on desktop, top on phones) ── */
.hero {
  position: fixed; z-index: 5;
  left: clamp(16px, 4.2vw, 72px); top: 50%; transform: translateY(-46%);
  width: min(600px, 40vw);
  transition: opacity .6s, transform .6s;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(220, 52, 72, 0.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(220, 52, 72, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(220, 52, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 52, 72, 0); } }
h1 {
  margin: 0 0 18px; font: 500 clamp(40px, 4.6vw, 68px)/1.0 var(--serif); letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
h1 em {
  display: block; font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, #f7e2b5 0%, var(--gold) 40%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(226, 169, 77, 0.35));
  height: 78px;
}
.lead { margin: 0 0 16px; color: #f1e3e6; font-size: 16px; line-height: 1.65; max-width: 46ch; }
.date { display: flex; align-items: center; gap: 9px; margin: 0 0 26px; color: var(--cyan); font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }
.date svg { width: 17px; height: 17px; opacity: 0.9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.btn-primary, .btn-ghost {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; letter-spacing: 0.01em; border: 0;
  transition: transform .15s, box-shadow .25s, background .25s, border-color .25s;
}
.btn-primary {
  color: #3b0012;
  background: linear-gradient(180deg, #f3d08f 0%, var(--gold) 45%, var(--gold-2) 100%);
  box-shadow: 0 0 0 1px rgba(246, 218, 160, 0.5) inset, 0 10px 34px rgba(214, 150, 60, 0.35), 0 0 60px rgba(226, 169, 77, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(246, 222, 170, 0.7) inset, 0 14px 40px rgba(214, 150, 60, 0.45), 0 0 80px rgba(226, 169, 77, 0.25); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary svg { width: 19px; height: 19px; }
.btn-ghost { color: var(--text); background: rgba(58, 6, 24, 0.5); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(226, 169, 77, 0.5); }
.btn-ghost svg { width: 18px; height: 18px; color: var(--cyan); }
.wide { width: 100%; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  padding: 16px 0 0; border-top: 1px solid var(--line);
}
.stat { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat b { display: block; font: 500 30px/1.1 var(--mono); color: #fff; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat:first-child b { color: var(--gold); text-shadow: 0 0 22px rgba(226, 169, 77, 0.45); }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.countdown { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.cd-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

body.exploring .hero { opacity: 0; pointer-events: none; transform: translate(-30px, -46%); }
.back-chip { position: fixed; z-index: 10; left: clamp(16px, 3vw, 40px); top: calc(max(16px, env(safe-area-inset-top)) + 58px); }
.back-chip[hidden] { display: none; }

/* ── Marker over Guanare ── */
.sanctuary {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; padding: 0; color: #ffe7b0; white-space: nowrap;
  transform: translateY(calc(-50% - 22px)); transition: opacity .3s; pointer-events: auto;
}
.html-anchor { width: 0; height: 0; display: flex; justify-content: center; align-items: center; }
.sanctuary-art {
  width: 84px; height: 84px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(226, 169, 77, 0.65)) drop-shadow(0 0 2px rgba(246, 222, 170, 0.9));
  transition: transform .3s;
}
.sanctuary:hover .sanctuary-art { transform: scale(1.06); }
.sanctuary-text {
  display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 4px 12px 5px;
  border-radius: 999px; border: 1px solid rgba(226, 169, 77, 0.5); background: rgba(50, 6, 20, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 20px rgba(226, 169, 77, 0.3);
}
.sanctuary-text b { font: 600 14px/1.1 var(--serif); letter-spacing: 0.02em; color: #fff3d0; }
.sanctuary-text small { font-size: 10px; color: #e7c98a; letter-spacing: 0.03em; }
.sanctuary::after {
  content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 18px;
  background: linear-gradient(180deg, rgba(226, 169, 77, 0.8), transparent);
}
.card-art { display: block; width: 62%; max-width: 230px; margin: -6px auto 6px; filter: drop-shadow(0 0 18px rgba(226, 169, 77, 0.45)); }

/* ── "Just lit a candle" toasts ── */
.toasts {
  position: fixed; z-index: 20; right: clamp(16px, 3vw, 40px); bottom: calc(24px + var(--safe-b));
  display: flex; flex-direction: column-reverse; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 16px 11px 11px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast-flame {
  flex: none; position: relative; width: 38px; height: 38px; border-radius: 12px;
  background: radial-gradient(circle at 50% 60%, rgba(226, 169, 77, 0.35), rgba(226, 169, 77, 0.05) 70%);
  border: 1px solid rgba(226, 169, 77, 0.3);
}
.toast-flame i {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 16px; margin: -9px 0 0 -5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff8df 0 20%, var(--gold) 45%, rgba(226, 120, 40, 0.2) 75%);
  box-shadow: 0 0 14px 3px rgba(226, 169, 77, 0.65);
  animation: flick 1.6s ease-in-out infinite alternate;
}
@keyframes flick { 0% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.06, 0.95) rotate(2deg); } 100% { transform: scale(0.97, 1.05) rotate(-1deg); } }
.toast-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.35; }
.toast-text b { color: #fff; font-weight: 700; }
.toast-text small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.card-open .toasts { opacity: 0; pointer-events: none; }
.toasts { transition: opacity .3s; }

/* ── Hover tooltip ── */
.tooltip {
  position: fixed; z-index: 25; left: 0; top: 0; pointer-events: none;
  display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px;
  background: var(--glass-2); border: 1px solid rgba(226, 169, 77, 0.35); font-size: 13px; line-height: 1.3;
}
.tooltip b { color: #fff3d0; }
.tooltip span { color: var(--muted); font-size: 12px; }
.tooltip[hidden] { display: none; }

/* ── Candle / sanctuary card ── */
.card {
  position: fixed; z-index: 30; right: clamp(16px, 3vw, 40px); top: calc(max(16px, env(safe-area-inset-top)) + 64px);
  width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto;
  padding: 22px; border-radius: 22px;
  background: var(--glass-2); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(226, 169, 77, 0.06) inset;
  opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.card.in { opacity: 1; transform: none; }
.card[hidden] { display: none; }
.card .x, .sheet .x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.card .x svg, .sheet .x svg { width: 16px; height: 16px; }
.card-head { display: flex; align-items: center; gap: 14px; margin: 0 40px 16px 0; }
.card-head h3 { margin: 0; font: 600 22px/1.15 var(--serif); }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 600 20px/1 var(--serif); color: #3b0012;
  background: radial-gradient(circle at 40% 35%, #fff0bf, var(--gold) 55%, var(--gold-2));
  box-shadow: 0 0 24px rgba(226, 169, 77, 0.45);
}
.card blockquote {
  margin: 0 0 16px; padding: 2px 0 2px 16px; border-left: 2px solid var(--gold);
  font: italic 500 21px/1.45 var(--serif); color: #f6efe0; white-space: pre-wrap; overflow-wrap: anywhere;
}
.silent { color: var(--muted); font-style: italic; margin: 0 0 12px; }
.card-text { color: #efdfe3; margin: 0 0 12px; }
.card-meta { color: var(--cyan); font-size: 13px; font-weight: 600; margin: 0 0 18px; }
.card-media { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: #000; margin-bottom: 8px; }
.pending-note { font-size: 13px; color: var(--gold); margin: 10px 0 14px; }

/* ── Bottom button on phones ── */
.fab { display: none; }

.demo-badge {
  position: fixed; z-index: 6; right: clamp(16px, 3vw, 40px); top: calc(max(16px, env(safe-area-inset-top)) + 52px);
  margin: 0; padding: 5px 11px; border-radius: 999px; font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); border: 1px dashed rgba(226, 169, 77, 0.3); background: rgba(22, 2, 9, 0.5);
}
.demo-badge[hidden] { display: none; }

/* ── Form sheet ── */
.sheet {
  width: min(620px, calc(100vw - 24px)); max-height: min(92vh, 920px); padding: 0; margin: auto;
  border-radius: 24px; border: 1px solid var(--line); color: var(--text);
  background: linear-gradient(180deg, rgba(84, 8, 34, 0.97), rgba(30, 2, 12, 0.98));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(170, 30, 70, 0.12);
  overflow: hidden;
}
.sheet[open] { display: flex; animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(12, 1, 5, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sheet form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.sheet-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 24px 64px 18px 24px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font: 600 28px/1.1 var(--serif); }
.sheet-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.flame-badge {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--gold);
  background: radial-gradient(circle at 50% 60%, rgba(226, 169, 77, 0.3), rgba(226, 169, 77, 0.04) 70%);
  border: 1px solid rgba(226, 169, 77, 0.35); box-shadow: 0 0 30px rgba(226, 169, 77, 0.25);
}
.flame-badge svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(240, 196, 120, 0.9)); }
.sheet-body { overflow: auto; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field > span, .field > label, .field-label { font-size: 13px; font-weight: 600; color: #f5e6e9; letter-spacing: 0.01em; }
.field small { color: var(--faint); font-size: 12px; }
.field small.count { align-self: flex-end; margin-top: -2px; }
input:not([type]), input[type=email], input[type=text], textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(26, 2, 11, 0.65); border: 1px solid rgba(226, 169, 77, 0.22); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
input:focus, textarea:focus { border-color: rgba(226, 169, 77, 0.65); box-shadow: 0 0 0 3px rgba(226, 169, 77, 0.14); }
input:disabled { opacity: 0.45; }
::placeholder { color: #9a7480; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #efdfe3; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.consent { font-size: 13px; color: var(--muted); }
.city-row { display: flex; gap: 8px; }
.city-row input { flex: 1; min-width: 0; }
.city-row .chip { height: auto; flex: none; }
.suggest {
  position: absolute; z-index: 5; left: 0; right: 0; top: 78px; margin: 0; padding: 6px; list-style: none;
  border-radius: 14px; background: #3d0716; border: 1px solid rgba(226, 169, 77, 0.28); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.suggest li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.suggest li:hover { background: rgba(226, 169, 77, 0.12); }
.suggest[hidden] { display: none; }
.drop {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 14px;
  border-radius: 14px; border: 1.5px dashed rgba(226, 169, 77, 0.35); background: rgba(26, 2, 11, 0.4);
  color: var(--cyan); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover { border-color: rgba(226, 169, 77, 0.6); background: rgba(226, 169, 77, 0.05); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop svg { width: 22px; height: 22px; }
.drop[hidden] { display: none; }
.preview { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.preview img, .preview video { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.preview .remove { position: absolute; top: 10px; right: 10px; height: 30px; background: rgba(22, 2, 9, 0.75); }
.preview[hidden] { display: none; }
.turnstile { min-height: 65px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(220, 52, 72, 0.12); border: 1px solid rgba(220, 52, 72, 0.45); color: #ffc2c6; font-size: 14px; }
.error[hidden] { display: none; }
#submitBtn { --p: 0%; flex: none; }
#submitBtn .bar { position: absolute; inset: 0 auto 0 0; width: var(--p); background: rgba(255, 255, 255, 0.35); transition: width .2s; }
#submitBtn .label { position: relative; }
#submitBtn:disabled { cursor: progress; filter: saturate(0.85); }

.style-switch {
  position: fixed; z-index: 7; left: clamp(16px, 4.2vw, 72px); bottom: calc(46px + var(--safe-b));
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(48, 4, 20, 0.62); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ss-label { padding: 0 8px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.style-switch button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; transition: background .2s, color .2s;
}
.style-switch button svg { width: 17px; height: 17px; }
.style-switch button:hover { color: var(--text); }
.style-switch button[aria-checked="true"] { background: rgba(226, 169, 77, 0.16); color: var(--gold); box-shadow: 0 0 0 1px rgba(226, 169, 77, 0.4) inset; }
.credit {
  position: fixed; z-index: 6; left: clamp(16px, 4.2vw, 72px); bottom: calc(18px + var(--safe-b));
  margin: 0; font-size: 11.5px; color: var(--faint); letter-spacing: 0.02em;
}
.credit a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(230, 200, 205, 0.3); }
.credit a:hover { color: var(--gold); border-color: var(--gold); }
.toast.note { font-size: 14px; line-height: 1.45; padding: 12px 16px; }
.noscript { position: fixed; inset: auto 0 40% 0; text-align: center; z-index: 50; }

/* ── Phones and small tablets ── */
/* ── Names next to candles (zoomed in) and city tags ── */
.names { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.name-tag {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(226, 169, 77, 0.28);
  background: rgba(40, 3, 16, 0.72); color: #fff6e6; font: 600 11.5px/1.2 var(--sans);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: tagIn .35s ease both;
}
.name-tag:hover { border-color: var(--gold); }
.name-tag.group { padding: 5px 12px; font-size: 12.5px; color: #3b0012; border-color: transparent; text-shadow: none;
  background: linear-gradient(180deg, #f3d08f, var(--gold) 50%, var(--gold-2)); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }
@keyframes tagIn { from { opacity: 0; } to { opacity: 1; } }

/* ── City feed in the card ── */
.city-more { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px;
  padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(226, 169, 77, 0.08); color: var(--text);
  font: 600 13.5px var(--sans); cursor: pointer; text-align: left; }
.city-more b { color: #3b0012; background: var(--gold); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.city-more:hover { border-color: rgba(226, 169, 77, 0.6); }
.avatar.count { font-size: 15px; font-family: var(--sans); font-weight: 700; color: #3b0012; }
.feed { display: grid; gap: 8px; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px; border-radius: 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; }
.feed-item:hover { border-color: rgba(226, 169, 77, 0.55); background: rgba(226, 169, 77, 0.06); }
.feed-thumb { position: relative; flex: none; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; background: #000; display: grid; place-items: center; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-thumb i { position: absolute; font-style: normal; color: #fff; text-shadow: 0 1px 6px #000; }
.feed-text { min-width: 0; display: grid; gap: 3px; }
.feed-who { display: flex; gap: 8px; align-items: baseline; }
.feed-who b { font-size: 14px; }
.feed-who small { color: var(--muted); font-size: 11.5px; }
.feed-msg { color: #f1e2e6; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.feed-more { margin-top: 12px; width: 100%; }

@media (max-width: 979px) {
  body { font-size: 14px; }
  .sanctuary-art { width: 62px; height: 62px; }
  .live-label .long { display: none; }
  .live-label .short { display: inline; }
  .live-btn { padding-right: 12px; gap: 7px; font-size: 12px; }
  .top-actions { gap: 8px; }
  .player { width: 100vw; max-width: 100vw; border-radius: 0; margin: auto 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .brand-text strong { font-size: 17px; }
  .brand-text span { font-size: 10.5px; }
  .hero {
    left: 0; right: 0; top: calc(max(16px, env(safe-area-inset-top)) + 62px); transform: none;
    width: auto; padding: 0 18px; text-align: center; pointer-events: none;
  }
  .hero > * { pointer-events: auto; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.18em; margin-bottom: 8px; }
  h1 { font-size: clamp(30px, 8.4vw, 44px); margin-bottom: 0; }
  h1 em { display: inline; }
  .lead, .date, .actions .btn-primary { display: none; }
  .actions { position: fixed; right: 16px; top: calc(max(16px, env(safe-area-inset-top))); margin: 0; z-index: 11; }
  .actions .btn-ghost { display: none; }
  .stats {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(104px + var(--safe-b)); border: 0; padding: 0;
    width: max-content;
  }
  .stat { padding-right: 16px; margin-right: 16px; text-align: center; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 10px; }
  .countdown { margin-top: 10px; font-size: 12px; }
  body.exploring .hero { transform: translateY(-20px); }
  body.exploring .fab { transform: translate(-50%, 140%); }
  .back-chip { top: auto; bottom: calc(26px + var(--safe-b)); left: 50%; transform: translateX(-50%); }
  .fab {
    display: inline-flex; position: fixed; z-index: 15; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%);
    width: min(340px, calc(100vw - 32px)); height: 56px; transition: transform .4s;
    bottom: calc(30px + var(--safe-b));
  }
  .style-switch { left: auto; right: 10px; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; padding: 4px; gap: 2px; border-radius: 18px; }
  .ss-label, .style-switch button span { display: none; }
  .style-switch button { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .style-switch button svg { width: 19px; height: 19px; }
  body.form-open .style-switch { display: none; }
  .credit { left: 0; right: 0; bottom: calc(7px + var(--safe-b)); text-align: center; font-size: 10px; }
  .toasts { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(158px + var(--safe-b)); width: min(380px, calc(100vw - 32px)); }
  .card { left: 12px; right: 12px; width: auto; top: auto; bottom: calc(12px + var(--safe-b)); max-height: 70vh; z-index: 40; }
  .demo-badge { top: auto; right: 50%; transform: translateX(50%); bottom: calc(80px + var(--safe-b)); display: none; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .sheet-head { padding: 18px 58px 14px 18px; }
  .sheet-head h2 { font-size: 24px; }
  .flame-badge { width: 44px; height: 44px; }
  .sheet-body { padding: 16px 18px calc(22px + var(--safe-b)); }
  .row-2 { grid-template-columns: 1fr; }
  .city-row .chip span { display: none; }
  .city-row .chip { padding: 0 12px; }
}
@media (max-width: 979px) and (max-height: 640px) {
  .stats { display: none; }
  .toasts { bottom: calc(86px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .toast-flame i { animation: none; }
}
