/* Block Pipa - Visual 100% proprio em CSS (descaracterizado do Pipa Combate) */
:root {
  --bp-bg: #0b132b;
  --bp-panel: rgba(15, 23, 42, 0.96);
  --bp-border: rgba(56, 189, 248, 0.45);
  --bp-accent: #38bdf8;
  --bp-gold: #facc15;
  --bp-text: #f8fafc;
}

body, #menu, .menu, [class*="bg"] {
  background-image: none !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
}

body {
  background: radial-gradient(circle at 50% 25%, #0284c7 0%, #0f172a 75%) !important;
  color: var(--bp-text) !important;
}

/* Esconde logos e imagens antigas */
img[src*="logo"], img[src*="menu"], img[src*="fundo"], img[src*="cenario"], img[src*="scene"], img[src*="play"], img[src*="close"] {
  display: none !important;
}

/* Marca BLOCK PIPA (apenas fora da partida) */
#bpHeaderMarca {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  text-align: center;
  pointer-events: none;
  padding: 10px 26px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid var(--bp-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

#bpHeaderMarca .bp-titulo {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--bp-gold);
  line-height: 1.05;
}

#bpHeaderMarca .bp-sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--bp-accent);
}

/* Descaracteriza completamente os botoes Festival e Online */
[id*="Festival"], [id*="festival"], [id*="Online"], [id*="online"], .btn-menu {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 2px solid var(--bp-accent) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35) !important;
  padding: 10px 24px !important;
}

[id*="Festival"] *, [id*="festival"] *, [id*="Online"] *, [id*="online"] * {
  font-family: system-ui, -apple-system, sans-serif !important;
  color: #f8fafc !important;
  text-shadow: none !important;
  background: transparent !important;
}

/* Descaracteriza a janela branca de selecao (SELECT SCENE / CHARACTER / PLAY) */
#selectScene, #SelectScene, .selectScene, [id*="boxSelect"], [id*="modal"], .modal {
  background: var(--bp-panel) !important;
  border: 2px solid var(--bp-border) !important;
  border-radius: 18px !important;
  color: var(--bp-text) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
}

#selectScene *, #SelectScene *, .selectScene * {
  font-family: system-ui, -apple-system, sans-serif !important;
  color: #f8fafc !important;
  text-shadow: none !important;
}

/* Botao PLAY moderno */
[id*="play"], [id*="Play"], .btnPlay {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  border: 2px solid #4ade80 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45) !important;
}

/* Mapa unico card */
.bp-mapa-unico-card {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #16a34a 100%);
  border: 2px solid var(--bp-gold);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
}

/* Cartoes de personagens quadradinhos */
.bp-perso-card {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 74px;
  margin: 4px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.95);
  border: 2px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
}

.bp-perso-card.ativo {
  border-color: var(--bp-gold) !important;
  background: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.55);
  transform: scale(1.06);
}

.bp-quad-cabeca {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.5);
}

.bp-quad-olhos {
  position: absolute;
  top: 7px;
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: space-between;
}

.bp-quad-olhos::before,
.bp-quad-olhos::after {
  content: "";
  width: 3px;
  height: 4px;
  background: #0f172a;
}

.bp-quad-corpo {
  width: 26px;
  height: 16px;
  margin-top: 2px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.5);
}

.bp-quad-label {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  color: #e2e8f0 !important;
}

/* Garante que todas as pipas originais no catalogo fiquem 100% visiveis */
#pipas img, #colecao img, [id*="pipa"] img, [class*="pipa"] img {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* === OCULTA BOTOES ANTIGOS E ESTILIZA CONFIG V99 === */
#topDir .pipas,
#topDir .colecao,
#topDir .presentes,
#topDir .bots,
.bots,
.mais1,
.menos1 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#cfgBotsBoxV99 {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(10, 14, 24, 0.96);
  border-radius: 0 0 10px 10px;
}

#cfgBotsBoxV99 button {
  flex: 1;
  background: #111827;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#cfgBotsBoxV99 button:active {
  background: #0284c7;
}


/* === V100: REMOVE BOTOES ANTIGOS E ESTILIZA CONFIG === */
#topDir,
#topDir .pipas,
#topDir .colecao,
#topDir .presentes,
#topDir .bots,
.bots,
.mais1,
.menos1 {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#config nav,
#config .bx {
  background: rgba(9, 13, 22, 0.96) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.78) !important;
}

#config h1,
#config h2,
#config .qualidade {
  color: #38bdf8 !important;
}

#v100BotControls button:active {
  background: #0284c7 !important;
}


/* === V101: VISUAL PROPRIO NO CONFIG + REMOVE CAMERA EXTRA === */
.cameras,
[id*="cam" i]:not(#ThreeJS):not(#gameCanvas):not(canvas),
[class*="cam" i]:not(#ThreeJS):not(#gameCanvas):not(canvas) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#config {
  z-index: 2147483647 !important;
}

#config nav,
#config .bx {
  background: linear-gradient(180deg, #0b1120 0%, #060913 100%) !important;
  border: 1px solid rgba(34, 211, 238, 0.55) !important;
  border-radius: 14px !important;
  color: #f8fafc !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.85), 0 0 18px rgba(34, 211, 238, 0.14) !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}

#config h1,
#config h2,
#config .qualidade {
  color: #22d3ee !important;
}

#config .icoSom,
#config .icoSom2,
#config .icoSom3,
#config .icoSom4,
#config .mais,
#config .menos {
  background: #111827 !important;
  border: 1px solid rgba(34, 211, 238, 0.35) !important;
  border-radius: 8px !important;
  color: #e2e8f0 !important;
}

#v101BotsPainel {
  display: flex !important;
  gap: 10px !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(34, 211, 238, 0.25) !important;
}

#v101BotsPainel button {
  flex: 1 !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #22d3ee !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
}

#v101BotsPainel button:active {
  background: #0891b2 !important;
  color: #ffffff !important;
}


/* === V106: BOTAO MOCHILA SVG + INVENTARIO DARK/CIANO === */
#v106MochilaBtn {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 2147483640;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(9, 13, 24, 0.92);
  border: 1px solid rgba(34, 211, 238, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 14px rgba(34, 211, 238, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

#v106MochilaBtn:active {
  background: #0891b2;
  transform: scale(0.96);
}

#v106MochilaBtn svg {
  width: 22px;
  height: 22px;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#v106InventarioModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: system-ui, -apple-system, sans-serif;
}

#v106InventarioModal.aberto {
  display: flex !important;
}

#v106InventarioCard {
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  background: linear-gradient(180deg, #0b1222 0%, #060913 100%);
  border: 1px solid rgba(34, 211, 238, 0.55);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.88), 0 0 24px rgba(34, 211, 238, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f8fafc;
}

#v106InvHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(15, 23, 42, 0.75);
}

#v106InvTitle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #22d3ee;
}

#v106InvClose {
  background: #111827;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#v106InvGrid {
  padding: 14px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.v106Slot {
  background: #0d1526;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.v106Slot:hover,
.v106Slot:active {
  border-color: #22d3ee;
  background: rgba(8, 145, 178, 0.22);
}

.v106SlotBadge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v106SlotBadge svg {
  width: 18px;
  height: 18px;
  stroke: #22d3ee;
  fill: none;
  stroke-width: 2;
}

.v106SlotNome {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  word-break: break-word;
}


/* === V109: POSICAO FIXA SEM PISCAR === */
#v107MochilaBtn, #v108MochilaBtn {
  top: 68px !important;
  right: 14px !important;
}
#v107KeyBar, #v108KeyBar {
  top: 120px !important;
  right: 14px !important;
}


/* === V110: MOCHILA ESTAVEL SEM PISCAR E FORA DO X === */
#v107MochilaBtn, #v108MochilaBtn, #v110MochilaBtn {
  position: fixed !important;
  top: 68px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2147483640 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(9, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 211, 238, 0.65) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: none !important;
  transition: background 0.15s, transform 0.15s !important;
}
#v107KeyBar, #v108KeyBar, #v110KeyBar {
  top: 120px !important;
  right: 14px !important;
  left: auto !important;
}

/* === V119: APENAS A MOCHILA DAS PIPAS === */
#v119MochilaPipasBtn {
  position: fixed !important;
  top: 68px !important;
  right: 14px !important;
  z-index: 2147483640 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(9, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(34, 211, 238, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

#v119MochilaPipasBtn:active {
  background: #0891b2 !important;
  transform: scale(0.96) !important;
}

#v119MochilaPipasBtn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #22d3ee !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}


/* === V121: MOCHILA PARADA SEM PISCAR === */
#v121MochilaBtn {
  position: fixed !important;
  top: 68px !important;
  right: 14px !important;
  z-index: 2147483640 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(9, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  animation: none !important;
  transition: none !important;
}

#v121MochilaBtn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #22d3ee !important;
  fill: none !important;
  stroke-width: 2 !important;
}


/* === V122: ESCONDE MOCHILA DE CIMA === */
#v106MochilaBtn, #v107MochilaBtn, #v108MochilaBtn, #v110MochilaBtn,
#v112MochilaBtn, #v113MochilaBtn, #v114MochilaBtn, #v116MochilaBtn,
#v117MochilaBtn, #v118MochilaBtn, #v119MochilaPipasBtn, #v120MochilaBtn {
  display: none !important;
}


/* === V123: TELA INICIAL DARK/CIANO, ONLINE EM BREVE BLOQUEADO E SELETOR REPAGINADO === */
#menu, .menu, #telaInicial, .tela-inicial {
  background-color: #050811 !important;
}

#select .festival, .festival, a.festival, button.festival {
  background: linear-gradient(180deg, #0b162a 0%, #070e1c 100%) !important;
  border: 1.5px solid #22d3ee !important;
  border-radius: 12px !important;
  color: #f8fafc !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 14px rgba(34, 211, 238, 0.2) !important;
}

#select .online, .online, a.online, button.online, .v123-online-bloqueado {
  background: #090d18 !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 12px !important;
  color: #94a3b8 !important;
  opacity: 0.72 !important;
  cursor: not-allowed !important;
  position: relative !important;
  box-shadow: none !important;
}

#popSelect .bx, .popSelect .bx {
  background: linear-gradient(180deg, #0b1222 0%, #060913 100%) !important;
  border: 1.5px solid rgba(34, 211, 238, 0.55) !important;
  border-radius: 16px !important;
  color: #f8fafc !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 24px rgba(34, 211, 238, 0.16) !important;
}

#popSelect h1, #popSelect h2, #popSelect .titulo {
  color: #22d3ee !important;
  border-bottom-color: rgba(34, 211, 238, 0.35) !important;
}

#popSelect .fechar, .fechar {
  background: #0f172a !important;
  border: 1px solid #22d3ee !important;
  border-radius: 10px !important;
  color: #22d3ee !important;
}

#popSelect .play, .play {
  background: linear-gradient(180deg, #0891b2 0%, #0e7490 100%) !important;
  border: 1.5px solid #22d3ee !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(8, 145, 178, 0.35) !important;
}


/* === V123: MOCHILA FIXA === */
#v123MochilaBtn {
  position: fixed !important;
  top: 68px !important;
  right: 14px !important;
  z-index: 2147483640 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(9, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  animation: none !important;
  transition: none !important;
}
#v123MochilaBtn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #22d3ee !important;
  fill: none !important;
  stroke-width: 2 !important;
}


/* === V124: MOCHILA FIXA === */
#v124MochilaBtn {
  position: fixed !important;
  top: 68px !important;
  right: 14px !important;
  z-index: 2147483640 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(9, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  animation: none !important;
  transition: none !important;
}
#v124MochilaBtn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #22d3ee !important;
  fill: none !important;
  stroke-width: 2 !important;
}


/* === V135: MOCHILA NA POSICAO EXATA SEM ATRAPALHAR O X === */
#v135MochilaBtn {
  position: fixed !important;
  top: 68px !important;
  right: 14px !important;
  z-index: 2147483640 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(9, 13, 24, 0.94) !important;
  border: 1px solid rgba(34, 211, 238, 0.7) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  animation: none !important;
  transition: none !important;
}

#v135MochilaBtn:active {
  background: #0891b2 !important;
}

#v135MochilaBtn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #22d3ee !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
