/* ═══════════════════════════════════════
   STINGNEL.LAB — style.css
   ═══════════════════════════════════════ */

/* ── CÍRCULO EVENTO ── */
/* translate(-50%,-50%) + rotate() mantém o centro fixo durante a rotação */
@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.evento-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.evento-circulo {
  position: absolute;
  width: 56%;   /* círculo menor que o container */
  height: 56%;
  top: 50%;
  left: 50%;
  animation: spin-slow 14s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 80, 180, 0.70));
}
.evento-logo {
  position: absolute;
  width: 58%;   /* logo mantém tamanho */
  height: 58%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
}

/* ── VARIABLES ── */
:root {
  --green-vivid:  #8ED400;
  --green-main:   #7DC800;
  --green-dark:   #5AA000;
  --green-deeper: #3D7A00;
  --red-pin:      #CC1A1A;
  --blue-accent:  #2C5EF6;

  --bg-page:    #F2FAE0;
  --bg-navbar:  #1A2800;
  --bg-sidebar: #0F1F00;
  --bg-card:    #ffffff;

  --text-main:  #1A2800;
  --text-muted: #4A6200;
  --text-white: #ffffff;

  --border:        rgba(90, 160, 0, 0.2);
  --border-strong: rgba(90, 160, 0, 0.4);

  --font-title: 'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;

  --radius:    14px;
  --radius-lg: 20px;
  --navbar-h:  56px;
  --bnav-h:    50px;
  --safe-bot:  env(safe-area-inset-bottom, 0px);

  --shadow-sm: 0 2px 8px  rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.2);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-main);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: transparent; font-family: var(--font-body); }
input, textarea { font-family: var(--font-body); }
img    { display: block; max-width: 100%; }
strong { font-weight: 700; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--navbar-h);
  background: #000;
  border-bottom: 2px solid var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.navbar-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-vivid);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.navbar-logo span { color: var(--text-white); }
.logo-icon {
  width: 28px; height: 28px;
  filter: drop-shadow(0 0 6px rgba(142,212,0,.5));
}

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.desktop-nav .nav-btn {
  color: rgba(255,255,255,.55);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .2s;
}
.desktop-nav .nav-btn:hover,
.desktop-nav .nav-btn.active {
  background: rgba(142,212,0,.15);
  color: var(--green-vivid);
}

.navbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Instagram button — navbar */
.insta-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  height: 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, #8ED400, #5AA000);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700; font-size: .72rem;
  letter-spacing: .3px;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.insta-btn:hover  { opacity: .88; }
.insta-btn:active { transform: scale(.95); }
.insta-label { line-height: 1; }

/* ── APP MAIN ── */
.app-main {
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  bottom: var(--bnav-h);
}

/* ── PAGES ── */
.page {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page.active { display: flex; flex-direction: column; }
#page-mapa   { overflow: hidden; }

/* ── MAP ── */
#map {
  width: 100%;
  flex: 1;
  min-height: 0;
  z-index: 1;
  position: relative;
  /* pinta o verde do mapa de imediato, antes das tiles carregarem
     (melhora a percepção de carregamento / LCP) */
  background: #AAEE30;
}

/* Zoom-responsive pin sizes (camaleões) */
#map.zoom-far   .leaflet-marker-icon { width: 24px !important; height: 24px !important; margin-left: -12px !important; margin-top: -12px !important; }
#map.zoom-mid   .leaflet-marker-icon { width: 32px !important; height: 32px !important; margin-left: -16px !important; margin-top: -16px !important; }
#map.zoom-close .leaflet-marker-icon { width: 40px !important; height: 40px !important; margin-left: -20px !important; margin-top: -20px !important; }
#map.zoom-near  .leaflet-marker-icon { width: 52px !important; height: 52px !important; margin-left: -26px !important; margin-top: -26px !important; }

/* Pin de cluster (zoom afastado) — tamanho fixo, ignora as regras de zoom acima.
   Mesma especificidade das regras .zoom-* e declarado depois → vence. */
#map .leaflet-marker-icon.cluster-pin {
  width: 44px !important; height: 44px !important;
  margin-left: -22px !important; margin-top: -22px !important;
}
.cluster-pin { position: relative; }
.cluster-pin img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.cluster-count {
  position: absolute; top: -7px; right: -7px;
  background: #FF2E88; color: #fff;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 12px; line-height: 1;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Círculo Mágico — posicionado via JS como overlay geográfico (ver map.js _updateCirculoOverlays) */

/* Rotação lenta contínua */
@keyframes circulo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.circulo-girando {
  animation: circulo-spin 24s linear infinite;
  transform-origin: center center;
}

/* Popup especial do Círculo Mágico */
.popup-circulo-wrap .leaflet-popup-content-wrapper {
  background: rgba(8, 16, 0, 0.95);
  border: 1px solid rgba(142, 212, 0, 0.4);
}
.popup-circulo-wrap .leaflet-popup-tip {
  background: rgba(8, 16, 0, 0.88);
}

.popup-circulo {
  text-align: center;
  padding: 4px 0;
}
/* Ícone camaleão preto com "?" */
.popup-circulo-icon {
  position: relative;
  width: 48px; height: 48px;
  margin: 0 auto 10px;
}
.popup-circulo-cam {
  width: 100%; height: 100%;
  display: block;
  filter: brightness(0);      /* torna o SVG totalmente preto */
}
.popup-circulo-q {
  position: absolute;
  top: 48%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 1.3rem; font-weight: 900;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}
.popup-circulo-nome {
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 800;
  color: rgba(255,255,255,.5);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.popup-circulo-texto {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  color: var(--green-vivid);
  line-height: 1.6;
  letter-spacing: .3px;
}

/* ── Busca pública do mapa ── */
.map-search-bar {
  position: fixed;
  bottom: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex; align-items: center; gap: 6px;
  background: #2C5EF6;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 40px;
  padding: 5px 14px;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.map-search-bar svg { flex-shrink: 0; color: rgba(255,255,255,.7); }
.map-search-bar input {
  background: transparent;
  border: none; outline: none;
  color: #fff;
  font-family: var(--font-title); font-size: .75rem; font-weight: 700;
  letter-spacing: .5px;
  width: 90px;
}
.map-search-bar input::placeholder { color: rgba(255,255,255,.5); font-weight: 400; }

/* ── Filtros de zoom do mapa ── */
.map-filters {
  position: fixed;
  bottom: 54px; left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex; gap: 6px;
  background: #2C5EF6;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 40px;
  padding: 5px 8px;
  pointer-events: all;
}
.map-filter-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-title); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: #fff;
  background: transparent;
  border: none; cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.map-filter-btn:hover  { background: rgba(255,255,255,.18); color: #fff; }
.map-filter-btn.active { background: #FF5FA0; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.map-filter-btn svg { flex-shrink: 0; }

/* ── Busca admin ── */
.admin-search-row {
  display: flex; gap: 8px;
}
.admin-search-input {
  flex: 1;
  padding: 10px 14px !important;
  font-size: .88rem !important;
}
.admin-search-btn {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(142,212,0,.15);
  border: 1px solid rgba(90,160,0,.35);
  color: var(--green-vivid);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .18s;
}
.admin-search-btn:hover { background: rgba(142,212,0,.28); }
.admin-search-msg {
  font-size: .75rem; color: #FF7777;
  margin-top: 6px; min-height: 16px;
}

/* Leaflet popup */
.leaflet-popup-content-wrapper {
  background: var(--bg-navbar);
  border: 1px solid var(--green-dark);
  border-radius: var(--radius) !important;
  color: var(--text-white);
  padding: 0;
  box-shadow: var(--shadow-lg);
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip     { background: var(--bg-navbar) !important; }

.popup-inner  { padding: 16px 18px; min-width: 210px; }
.popup-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 20px; margin-bottom: 8px;
}
.popup-status.live,
.popup-status.ativo     { background: rgba(142,212,0,.15); color: var(--green-vivid); }
.popup-status.encontrado { background: rgba(255,255,255,.07); color: rgba(255,255,255,.4); }
.popup-status.marcado   { background: rgba(255,140,0,.15);   color: #FFA500; }
.popup-name { font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; margin-bottom: 3px; }
.popup-loc  { font-size: .75rem; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.popup-btn  {
  width: 100%; padding: 11px; border-radius: 10px;
  font-family: var(--font-title); font-size: .75rem; font-weight: 700; text-transform: uppercase;
  cursor: pointer; border: none;
}
.popup-btn.find     { background: var(--red-pin); color: #fff; }
.popup-btn.disabled { background: rgba(255,255,255,.06); color: rgba(255,255,255,.3); cursor: default; }

/* ── FAB BUTTONS ── */
.fab {
  position: fixed;
  z-index: 7000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s, opacity .2s;
  cursor: pointer;
}
.fab:active { transform: scale(.92); }

/* ── BOTÃO REGRAS (topo do mapa) ── */
.btn-regras {
  position: fixed;
  top: 58px; left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
  padding: 6px 20px;
  border-radius: 30px;
  background: #FF8C00;
  color: #fff;
  font-family: var(--font-title);
  font-size: .82rem; font-weight: 800;
  letter-spacing: .8px;
  border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: opacity .18s, transform .18s;
  pointer-events: all;
}
.btn-regras:hover  { opacity: .88; }
.btn-regras:active { transform: translateX(-50%) scale(.95); }

/* ── PAINEL DE REGRAS ── */
.regras-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 6900;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.regras-panel.open {
  transform: translateY(0);
  pointer-events: all;
}
.regras-panel-inner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px 20px 20px;
  max-height: 75vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.regras-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.regras-panel-title {
  font-family: var(--font-title);
  font-size: 1.1rem; font-weight: 800;
  color: var(--text-main);
}
.regras-panel-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.regras-panel-close:hover { background: rgba(255,255,255,.15); color: #fff; }


@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── USER LOCATION MARKER ── */
.user-marker {
  width: 16px; height: 16px;
  background: var(--green-vivid);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(142,212,0,.3), 0 0 12px rgba(142,212,0,.5);
}
.user-pulse {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(142,212,0,.15);
  border: 1px solid rgba(142,212,0,.3);
  animation: user-pulse 2s infinite;
}
@keyframes user-pulse {
  0%   { transform: scale(.5); opacity: 1; }
  100% { transform: scale(2);  opacity: 0; }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 52px 24px 40px;
  text-align: center;
  border-bottom: 2px solid var(--green-deeper);
  flex-shrink: 0;
}
.hero-sobre,
.hero-creditos { background: var(--bg-navbar); }

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(142,212,0,.15);
  color: var(--green-vivid);
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-title);
  font-size: 2.4rem; font-weight: 800;
  color: var(--green-vivid);
  margin-bottom: 12px; line-height: 1.1;
}
.hero-title span { color: var(--text-white); }
.hero-sub {
  color: rgba(255,255,255,.55);
  font-size: .9rem; max-width: 480px;
  margin: 0 auto; line-height: 1.65;
}

/* ── PAGE CONTENT ── */
.page-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  width: 100%;
}

/* ── SOBRE SECTIONS ── */
.sobre-section { margin-bottom: 48px; }

.section-label {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-title);
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-main); margin-bottom: 14px;
}
.sobre-section p {
  color: var(--text-muted);
  line-height: 1.7; font-size: .92rem;
  margin-bottom: 10px;
}

/* Steps list */
.steps-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 2px;
}
.steps-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .2s;
}
.steps-list li:first-child { border-radius: var(--radius) var(--radius) 4px 4px; }
.steps-list li:last-child  { border-radius: 4px 4px var(--radius) var(--radius); }
.steps-list li:hover { border-color: var(--border-strong); }

.step-num {
  font-family: var(--font-title);
  font-size: .68rem; font-weight: 800;
  color: var(--green-dark);
  background: rgba(90,160,0,.1);
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-body { display: flex; flex-direction: column; gap: 3px; }
.step-body strong { font-size: .9rem; color: var(--text-main); font-weight: 600; }
.step-body span   { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }
.step-body em     { font-style: normal; color: var(--green-dark); font-weight: 700; }

/* Callout */
.sobre-callout {
  background: linear-gradient(135deg, #1A2800, #2A3800);
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.callout-icon { font-size: 2rem; }
.sobre-callout p { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.6; }
.sobre-callout p strong { color: var(--green-vivid); }

/* Legend */
.legend-grid { display: flex; flex-direction: column; gap: 10px; }
.legend-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.legend-dot.ativo      { background: var(--green-dark); box-shadow: 0 0 0 3px rgba(90,160,0,.2); }
.legend-dot.encontrado { background: #aaa; }
.legend-item div strong { font-size: .88rem; color: var(--text-main); display: block; margin-bottom: 3px; }
.legend-item div span   { font-size: .8rem; color: var(--text-muted); }

/* ── CREDITS ── */
.credits-content { max-width: 520px; }

.credit-card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: transform .15s, border-color .2s;
}
.credit-card:hover { transform: translateY(-2px); border-color: var(--green-main); }
.credit-card.featured {
  border-color: var(--green-main);
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(90,160,0,.12);
}
.credit-tag {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--blue-accent); margin-bottom: 4px;
}
.credit-roles { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.credit-name {
  font-family: var(--font-title);
  font-size: 1.15rem; font-weight: 800;
  color: var(--text-main); margin-bottom: 0;
}
.credit-insta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
  color: #fff; border-radius: 24px;
  font-size: .75rem; font-weight: 600;
  transition: opacity .2s;
}
.credit-insta:hover  { opacity: .9; }
.credit-insta:active { transform: scale(.95); }

.credits-footer {
  text-align: center;
  padding: 28px 0 16px;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.credits-footer p      { font-size: .82rem; color: var(--text-muted); margin-bottom: 4px; }
.credits-footer strong {
  font-family: var(--font-title);
  font-size: 1.1rem; color: var(--text-main); display: block;
}

/* ── BEHANCE BUTTON ── */
.credit-behance {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: #0057ff;
  color: #fff; border-radius: 24px;
  font-size: .75rem; font-weight: 600;
  transition: opacity .2s;
}
.credit-behance:hover  { opacity: .88; }
.credit-behance:active { transform: scale(.95); }

/* ── REGRAS (Sobre) — números coloridos por cor de campeão ── */
.regras-list { gap: 10px; }
.regras-list li { border-left: 3px solid var(--c); }
.regras-list .step-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff; font-size: .95rem;
}
.regras-list .step-body strong { color: var(--c); }

/* ── QUADRADO DO CÍRCULO MÁGICO (Sobre) ── */
/* Círculo Mágico inline — dentro da regra 2 */
.circulo-inline-ring {
  width: min(180px, 48%);
  aspect-ratio: 1;
  display: block;
  margin: 105px 40px 4px auto;
  animation: spin-slow 14s linear infinite;
  filter: drop-shadow(0 0 14px rgba(44,94,246,.65));
}

/* ── SOBRE O PROJETO — visual dinâmico ── */
.projeto-intro {
  font-family: var(--font-title);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-main); line-height: 1.5;
  margin-bottom: 14px;
}
.projeto-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.projeto-chips span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--c);
  color: var(--c);
  font-family: var(--font-title); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  background: transparent;
}
.projeto-desc {
  color: var(--text-muted); font-size: .9rem; line-height: 1.7;
  margin-bottom: 0;
}
.temporada-destaque {
  font-family: var(--font-title); font-weight: 800;
  font-size: 1rem; color: var(--c);
  margin-bottom: 8px !important;
}
.temporada-teaser {
  color: var(--c) !important; font-weight: 700;
  margin-top: 8px !important;
}

/* ── TEMPORADAS (Sobre) ── */
.temporada-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.temporada-card {
  background: #fff;
  border: 1px solid var(--border); border-top: 3px solid var(--c);
  border-radius: var(--radius); padding: 14px 16px;
}
.temporada-tag {
  font-family: var(--font-title); font-weight: 800; font-size: .82rem;
  color: var(--c); margin-bottom: 6px;
}
.temporada-card p { color: var(--text-muted); font-size: .84rem; line-height: 1.6; margin: 0; }
@media (max-width: 560px) { .temporada-grid { grid-template-columns: 1fr; } }

/* ── CÍRCULO MÁGICO PREVIEW (página Sobre) ── */
.sobre-circulo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #1A2800, #2A3800);
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-lg);
}
.circulo-preview-img {
  width: 60px; height: 60px;
  animation: spin-slow 14s linear infinite;
  filter: drop-shadow(0 0 10px rgba(44, 94, 246, 0.6));
}
.circulo-preview-label {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  line-height: 1.5;
}

/* ── BOTTOM NAV (mobile only) ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8500;
  background: #5AA000;
  border-top: 1px solid var(--green-dark);
  display: flex; align-items: stretch;
  height: var(--bnav-h);
  padding-bottom: var(--safe-bot);
}
.bnav-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-title); font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  border-top: 2px solid transparent;
  transition: all .2s; padding: 4px 4px;
}
.bnav-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.bnav-btn.active { color: #fff; border-top-color: #FF8C00; }
.bnav-btn:active { transform: scale(.93); }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.75);
  display: none; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-panel {
  background: var(--bg-sidebar);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 600px;
  max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  animation: slideUp .28s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(90,160,0,.2);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,.3);
  flex-shrink: 0;
}
.modal-header h2 {
  font-family: var(--font-title); font-size: .88rem; font-weight: 800;
  color: var(--green-vivid); text-transform: uppercase; letter-spacing: 1px;
}
.close-btn {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.5);
  width: 34px; height: 34px; border-radius: 10px;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.close-btn:hover { background: rgba(255,255,255,.15); color: var(--text-white); }

/* ── ADMIN PANEL ── */
.admin-panel {
  max-height: 85vh;
}
/* Mobile: admin ocupa tela inteira */
@media (max-width: 768px) {
  .modal-overlay:has(.admin-panel) {
    align-items: flex-start;
  }
  .admin-panel {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}

.admin-content--compact {
  padding: 16px 20px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.login-screen {
  padding: 48px 28px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.login-icon { font-size: 2.5rem; }
.login-screen h3 {
  font-family: var(--font-title); font-size: 1.2rem; font-weight: 800; color: var(--text-white);
}
.login-screen p { color: rgba(255,255,255,.3); font-size: .85rem; }

.admin-content {
  flex: 1; overflow-y: auto; padding: 18px 20px;
  -webkit-overflow-scrolling: touch;
}
.tab-pane        { display: none; }
.tab-pane.active { display: block; }

/* ── FORMS ── */
.form-row   { margin-bottom: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.form-row-2 .form-row { margin-bottom: 0; }

.form-label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: rgba(255,255,255,.35); margin-bottom: 5px;
}
.form-input, .form-textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(90,160,0,.25); border-radius: 10px;
  color: var(--text-white); font-size: .92rem;
  outline: none; transition: border-color .2s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--green-vivid); }
.form-textarea { resize: vertical; min-height: 70px; }

.form-error      { color: #FF6666; font-size: .8rem; display: none; }
.form-error.show { display: block; }

#admin-map-picker {
  height: 200px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(90,160,0,.3); margin-bottom: 8px;
}
.coords-display {
  font-size: .72rem; color: rgba(255,255,255,.3);
  text-align: center; margin-bottom: 12px;
}

/* ── BUTTONS ── */
.btn-primary {
  width: 100%; padding: 14px;
  background: var(--green-main); color: var(--bg-navbar);
  border-radius: 12px;
  font-family: var(--font-title); font-size: .9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  transition: opacity .2s;
  cursor: pointer; border: none;
}
.btn-primary:hover  { opacity: .9; }
.btn-primary:active { transform: scale(.98); }

.btn-gradient {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
  color: #fff; border-radius: 24px;
  font-family: var(--font-title); font-weight: 700;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .3px;
  transition: opacity .2s; align-self: flex-start;
}
.btn-gradient:hover { opacity: .9; }

/* ── ADMIN ACTION BUTTONS ── */
.btn-approve, .btn-found, .btn-reject, .btn-delete {
  padding: 9px 12px; border-radius: 8px;
  font-family: var(--font-title); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; transition: opacity .2s; cursor: pointer;
}
.btn-approve, .btn-found {
  background: rgba(142,212,0,.1); color: var(--green-vivid);
  border: 1px solid rgba(142,212,0,.25);
}
.btn-reject, .btn-delete {
  background: rgba(204,26,26,.1); color: #ff5555;
  border: 1px solid rgba(204,26,26,.2);
}
.btn-approve:active, .btn-found:active,
.btn-reject:active,  .btn-delete:active { opacity: .7; }

.pending-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(90,160,0,.2); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.pending-name { font-family: var(--font-title); font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: 4px; }
.pending-loc  { font-size: .75rem; color: rgba(255,255,255,.3); margin-bottom: 10px; }
.pending-actions { display: flex; gap: 8px; }

.manage-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(90,160,0,.15); border-radius: 10px;
  margin-bottom: 8px;
}
.manage-info    { flex: 1; min-width: 0; }
.manage-name    {
  font-family: var(--font-title); font-weight: 700; font-size: .85rem;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.manage-loc     { font-size: .72rem; color: rgba(255,255,255,.28); }
.manage-actions { display: flex; gap: 5px; flex-shrink: 0; }

/* ── REELS / PHOTO PANELS ── */
.reels-panel, .photo-panel { max-height: 80vh; max-width: 500px; }
.reels-content, .photo-content {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* ── REEL PREVIEW ── */
.reel-preview { display: flex; flex-direction: column; width: 100%; }

.reel-thumb-wrap {
  position: relative; display: block;
  width: 100%; aspect-ratio: 9/16;
  max-height: 420px; overflow: hidden;
  background: #000;
}
.reel-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.reel-thumb-wrap:hover .reel-thumb { transform: scale(1.03); }

.reel-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  transition: background .2s;
}
.reel-thumb-wrap:hover .reel-play-btn { background: rgba(0,0,0,.5); }

.reel-play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.reel-play-icon svg { width: 28px; height: 28px; color: #111; margin-left: 4px; }

.reel-info {
  padding: 18px 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.reel-title {
  font-family: var(--font-title);
  font-weight: 700; font-size: .9rem;
  color: var(--text-white); line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-date {
  font-size: .78rem; color: rgba(255,255,255,.4);
}
.reel-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; gap: 12px; padding: 40px;
  color: rgba(255,255,255,.3); font-size: .85rem;
}
.reel-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(142,212,0,.2);
  border-top-color: var(--green-vivid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ── REEL THUMBNAIL PLACEHOLDER ── */
.reel-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #0a1500; font-size: 5rem;
}
.reel-cta {
  align-self: stretch;
  justify-content: center;
  margin-top: 4px;
}

/* ── PLACEHOLDER BOX ── */
.placeholder-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
  flex: 1; gap: 10px;
}
.placeholder-icon  { font-size: 3rem; }
.placeholder-title {
  font-family: var(--font-title); font-weight: 800;
  font-size: 1.1rem; color: var(--green-vivid);
}
.placeholder-text {
  font-size: .85rem; color: rgba(255,255,255,.4);
  max-width: 280px; line-height: 1.5;
}
.placeholder-text strong { color: var(--green-vivid); }

#photo-img  { width: 100%; border-radius: 14px; }
#photo-info { padding: 16px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 36px 16px; color: rgba(255,255,255,.2); font-size: .85rem; }

/* ── SANDBOX ── */
.sandbox-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(90,160,0,.15); border-radius: 10px;
  margin-bottom: 8px;
  gap: 10px;
}
.sandbox-item-info  { flex: 1; min-width: 0; }
.sandbox-item-name  {
  font-family: var(--font-title); font-weight: 700; font-size: .85rem;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sandbox-item-path  { font-size: .7rem; color: rgba(255,255,255,.28); margin-top: 2px; }
.sandbox-item-actions { display: flex; gap: 5px; flex-shrink: 0; }

.sandbox-add {
  border-top: 1px solid rgba(90,160,0,.15);
  margin-top: 14px; padding-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.sandbox-export-all {
  width: 100%; margin-top: 12px;
  padding: 10px; border-radius: 10px;
  background: rgba(142,212,0,.07);
  border: 1px solid rgba(142,212,0,.2);
  color: var(--green-vivid);
  font-family: var(--font-title); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer; transition: opacity .2s;
}
.sandbox-export-all:hover { opacity: .8; }
.empty-state .emoji { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  z-index: 99999;
  background: var(--bg-navbar);
  border: 1px solid var(--green-dark);
  border-left: 4px solid var(--green-main);
  border-radius: 12px; padding: 12px 20px;
  font-size: .85rem; color: var(--text-white);
  opacity: 0;
  transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none; white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show  { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { border-left-color: var(--red-pin); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  /* Instagram btn — mobile: só ícone, sem label */
  .insta-btn {
    padding: 0 10px;
    height: 36px;
    border-radius: 50%;
    width: 36px;
    box-shadow: 0 2px 12px rgba(253,29,29,.35);
    flex-shrink: 0;
  }
  .insta-label { display: none; }
  .hero-title    { font-size: 2rem; }
  .section-title { font-size: 1.25rem; }
}

@media (min-width: 769px) {
  .desktop-nav { display: none; }
  .bottom-nav  { display: flex; }
  .app-main    { bottom: var(--bnav-h); }

  .modal-overlay { align-items: center; }
  .modal-panel   { border-radius: var(--radius-lg); max-height: 85vh; }
  .toast         { bottom: 28px; }
  .page-content  { padding: 48px 32px 80px; }
  .credits-content { max-width: 560px; }
}

/* ── LOTTIE MAP DECORATIONS ── */
.map-lottie {
  position: absolute;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
}

@media (max-width: 380px) {
  .hero-title   { font-size: 1.7rem; }
  .page-content { padding: 24px 16px 72px; }
}

/* ═══════════════════════════════════════
   HISTÓRIA — Parallax ilustrado
   ═══════════════════════════════════════ */

#page-historia {
  background: #140a26;            /* fallback enquanto o BG carrega */
  position: relative;
  overflow-x: hidden;
}

/* Cena com a MESMA proporção do BG (1080×6000) — a altura sai do aspect-ratio */
.hst-scene {
  position: relative;
  width: 100%;
  max-width: 540px;              /* arte é portrait — limita no desktop */
  margin: 0 auto;
  aspect-ratio: 1080 / 5600;
  flex: 0 0 auto;
  isolation: isolate;            /* blend modes operam dentro da cena */
}

/* Camadas ilustradas */
.hst-layer {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}
.hst-layer img { width: 100%; height: auto; display: block; }

/* BG cobre a cena inteira */
.hst-bg { inset: 0; width: 100%; height: 100%; }
/* object-position bottom: a cena é mais curta que o BG, então o corte do cover
   vai pro TOPO do céu (descartável) e preserva a galáxia + "Fim?" no rodapé. */
.hst-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* Fogueira: blend na PRÓPRIA camada (não no img) — assim o overlay blenda contra
   o backdrop da .hst-scene (cam2 etc), e não contra o vazio da camada isolada. */
.hst-fire { mix-blend-mode: overlay; animation: hst-fire 4s ease-in-out infinite; }
@keyframes hst-fire {
  0%   { opacity: .50; filter: brightness(.80); }
  8%   { opacity: 1;   filter: brightness(1.30); }
  18%  { opacity: .68; filter: brightness(.95); }
  30%  { opacity: 1;   filter: brightness(1.40); }
  44%  { opacity: .45; filter: brightness(.72); }
  58%  { opacity: .98; filter: brightness(1.25); }
  70%  { opacity: .60; filter: brightness(.88); }
  84%  { opacity: 1;   filter: brightness(1.35); }
  100% { opacity: .55; filter: brightness(.82); }
}

/* Círculo do topo: rotação aplicada via JS (transform inline no img).
   transform-origin no centro VISUAL do disco (que está fora do centro do
   canvas da imagem) — assim ele gira em torno do próprio eixo e o lagarto
   não escapa de cima dele conforme o scroll gira a roda. */
.hst-rotate { transform-origin: 48% 51.5%; }

/* Camaleões (personagens) ficam ACIMA dos balões — balões só cobrem o BG */
.hst-char { z-index: 6; }

/* ── Balões de fala (HTML/CSS, texto real e leve) ── */
.hst-bubble {
  position: absolute;
  background: #fff;
  border: 3px solid #111;
  border-radius: 16px;
  padding: 11px 15px;
  max-width: 60%;
  z-index: 5;                 /* abaixo dos camaleões (.hst-char = 6) */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.hst-bubble.visible { opacity: 1; transform: translateY(0); }
.hst-bubble p {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 700;
  color: #111; line-height: 1.3; margin: 0; letter-spacing: .2px;
  text-transform: none;
}
.hst-bubble.sb-left::before, .hst-bubble.sb-left::after,
.hst-bubble.sb-right::before, .hst-bubble.sb-right::after { content:''; position:absolute; top:16px; }
.hst-bubble.sb-left::before  { border-top:11px solid transparent; border-bottom:11px solid transparent; border-right:20px solid #111; left:-23px; }
.hst-bubble.sb-left::after   { border-top:8px solid transparent;  border-bottom:8px solid transparent;  border-right:17px solid #fff; left:-17px; }
.hst-bubble.sb-right::before { border-top:11px solid transparent; border-bottom:11px solid transparent; border-left:20px solid #111; right:-23px; }
.hst-bubble.sb-right::after  { border-top:8px solid transparent;  border-bottom:8px solid transparent;  border-left:17px solid #fff; right:-17px; }

/* Badge de abertura — destaque (pílula verde sólida + glow) */
.hst-badge {
  position: absolute; z-index: 12;
  left: 50%; transform: translateX(-50%);
  padding: 9px 24px; border-radius: 24px;
  background: var(--green-vivid);
  border: 2px solid #b6ff3a;
  color: #102000;
  font-family: var(--font-title); font-size: .82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px; white-space: nowrap;
  box-shadow: 0 0 22px rgba(142,212,0,.6), 0 4px 14px rgba(0,0,0,.45);
}
/* Texto final — idêntico ao badge (pílula verde + glow) */
.hst-end-text {
  position: absolute; z-index: 12;
  left: 50%; transform: translateX(-50%);
  padding: 9px 24px; border-radius: 24px;
  background: var(--green-vivid);
  border: 2px solid #b6ff3a;
  color: #102000;
  font-family: var(--font-title); font-size: .82rem; font-weight: 800;
  text-transform: none; letter-spacing: 1px; white-space: nowrap;
  box-shadow: 0 0 22px rgba(142,212,0,.6), 0 4px 14px rgba(0,0,0,.45);
}

@media (prefers-reduced-motion: reduce) {
  .hst-fire { animation: none; opacity: .85; }
  .hst-layer, .hst-rotate { transform: none !important; }
}
@media (min-width: 769px) {
  .hst-bubble p { font-size: .9rem; }
}
