/* ═══════════════════════════════════════════════
   GLOBE.CSS — Académie Pirate
   Carte du monde SVG · Panneau continent
   Mobile-first
   ═══════════════════════════════════════════════ */

/* ── Section globe ── */
#globe-sec {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 12px 12px 80px;
  gap: 14px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ── Titre section ── */
.globe-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--gold2);
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 #000;
  text-align: center;
}
.globe-subtitle {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.45);
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: -8px;
}

/* ── Conteneur carte ── */
#globe-container,
#treasure-map {
  width: 100%;
  max-width: min(900px, 96vw);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(245,166,35,.2);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  background: #0a0d1a;
  cursor: pointer;
}
#globe-container svg,
#treasure-map svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: manipulation;
}

/* ── Légende matières ── */
.globe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
  max-width: 520px;
}
.legend-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  font-size: var(--fs-xs);
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
}

/* ── Panneau continent ── */
#globe-panel {
  width: fit-content;
  min-width: min(320px, 92vw);
  max-width: min(520px, 92vw);
  align-self: center;
  border-radius: 16px;
  border: 2px solid rgba(255,215,0,.25);
  background: linear-gradient(160deg, #0a0d1a 0%, #120820 100%);
  padding: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  display: none;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.gp-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gp-emoji {
  font-size: clamp(2rem, 6vw, 2.5rem);
  flex-shrink: 0;
}
.gp-name {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--gold2);
  letter-spacing: 2px;
  line-height: 1;
}
.gp-universe {
  font-family: 'Bangers', cursive;
  font-size: clamp(.8rem, 2.5vw, 1rem);
  letter-spacing: 1px;
  opacity: .8;
  margin-top: 2px;
}
.gp-subject {
  font-family: 'Bangers', cursive;
  font-size: clamp(.9rem, 3vw, 1.1rem);
  color: var(--white);
  letter-spacing: 1px;
}
.gp-desc {
  font-family: 'Nunito', sans-serif;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  font-weight: 700;
}
.gp-chars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gp-char-badge {
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
  font-size: var(--fs-xs);
  font-weight: 800;
}
.gp-locked-msg {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-family: 'Bangers', cursive;
  font-size: clamp(.9rem, 3vw, 1.1rem);
  color: rgba(255,255,255,.4);
  letter-spacing: 1.5px;
}
.gp-play-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Bangers', cursive;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .15s;
  min-height: var(--tap-min);
  -webkit-tap-highlight-color: transparent;
}
.gp-play-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.gp-play-btn:active { transform: scale(.97); }

/* ── Globe overlay (fond semi-transparent mobile) ── */
#globe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#globe-overlay.visible { display: block; }

/* ─────────────── RESPONSIVE ─────────────── */

@media (min-width: 480px) {
  #globe-sec { padding: 16px 16px 80px; }
  #globe-panel { padding: 20px; }
}

@media (min-width: 768px) {
  #globe-container,
  #treasure-map { max-width: min(1050px, 92vw); }
  #globe-panel   { max-width: min(520px, 88vw); }
  .gp-play-btn   { font-size: 1.2rem; }
}

@media (min-width: 1024px) {
  #globe-sec { padding: 24px 24px 80px; }
  #globe-container,
  #treasure-map { max-width: min(1080px, 88vw); }
  #globe-panel   { max-width: 520px; padding: 24px; }
}
