/* Sua Partida Chat (LP) 1.3 */
#spc-root {
  --spc-cor: #0b3d22;
  --spc-destaque: #c6f24e;
  --spc-verde: #15803d;
  --spc-verde-texto: #116b33;
  --spc-fundo: #f2f6f1;
  --spc-borda: #dbe6dd;
  --spc-texto: #10241a;
  --spc-fonte: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spc-titulo: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  font-family: var(--spc-fonte);
  font-size: 15px;
  line-height: 1.45;
  color: var(--spc-texto);
  -webkit-font-smoothing: antialiased;
}
#spc-root *, #spc-root *::before, #spc-root *::after { box-sizing: border-box; }
#spc-root [hidden] { display: none !important; }
#spc-root button, #spc-root input {
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  margin: 0;
  box-shadow: none;
  min-height: 0;
  line-height: 1.2;
}
#spc-root svg { width: 100%; height: 100%; display: block; }
#spc-root .spc-sr, #spc-root .spc-hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0;
}

/* botão flutuante: logo + notificação + radar */
#spc-root .spc-launcher {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  width: 64px;
  height: 64px;
  padding: 0;
  border: 3px solid var(--spc-destaque);
  border-radius: 50%;
  background: var(--spc-cor);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  transition: transform .15s ease;
}
#spc-root .spc-launcher::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid var(--spc-destaque);
  animation: spc-radar 2.4s infinite;
  pointer-events: none;
}
@keyframes spc-radar { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.65); } }
#spc-root .spc-launcher:hover { transform: scale(1.06); }
#spc-root .spc-launcher:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
#spc-root .spc-launcher-logo { width: 46px; height: 46px; display: block; }
#spc-root .spc-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #e5484d;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
#spc-root.spc-open .spc-launcher { display: none; }

/* balão de convite (digitando… → mensagem) */
#spc-root .spc-teaser {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(max(24px, env(safe-area-inset-bottom, 0px)) + 78px);
  width: 290px;
  max-width: calc(100vw - 28px);
  border-radius: 18px 18px 4px 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  animation: spc-in .25s ease;
}
#spc-root .spc-teaser-body {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 38px 13px 14px;
  text-align: left;
  cursor: pointer;
  color: var(--spc-texto);
  white-space: normal;
  border-radius: inherit;
}
#spc-root .spc-teaser-who { display: block; font-size: 11.5px; font-weight: 700; color: #4d6656; margin-bottom: 4px; line-height: 1.3; }
#spc-root .spc-teaser-msg { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; white-space: normal; word-wrap: break-word; animation: spc-in .2s ease; }
#spc-root .spc-teaser-msg strong { font-weight: 800; color: var(--spc-verde-texto); }
#spc-root .spc-teaser-typing { display: flex; gap: 5px; padding: 6px 0 4px; }
#spc-root .spc-teaser-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--spc-verde); animation: spc-dot 1s infinite; }
#spc-root .spc-teaser-typing i:nth-child(2) { animation-delay: .15s; }
#spc-root .spc-teaser-typing i:nth-child(3) { animation-delay: .3s; }
#spc-root .spc-teaser-x {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border: 0; border-radius: 50%; background: #eef2ee; padding: 7px; cursor: pointer; color: #4d6656;
}
#spc-root .spc-teaser-x svg, #spc-root .spc-icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

#spc-root .spc-backdrop { display: none; }
#spc-root .spc-grab { display: none; }

/* painel */
#spc-root .spc-panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 392px;
  height: min(660px, calc(100vh - 40px));
  border-radius: 22px;
  overflow: hidden;
  background: var(--spc-fundo);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: spc-in .22s ease;
}
@keyframes spc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#spc-root .spc-head {
  flex-shrink: 0;
  min-height: 74px;
  padding: 12px 12px 12px 16px;
  background: var(--spc-cor);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}
#spc-root .spc-avatar { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
#spc-root .spc-dot {
  position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--spc-destaque); border: 2px solid var(--spc-cor);
}
#spc-root .spc-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#spc-root .spc-head-txt strong {
  font-family: var(--spc-titulo); font-style: italic; font-weight: 900; font-size: 22px; line-height: 1;
  text-transform: uppercase; letter-spacing: .3px; color: #ffffff;
}
#spc-root .spc-head-txt span { font-size: 12px; font-weight: 600; color: var(--spc-destaque); }
#spc-root .spc-icon-btn {
  width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 10px; padding: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #ffffff;
}
#spc-root .spc-icon-btn:hover { background: rgba(255, 255, 255, .18); }

#spc-root .spc-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#spc-root .spc-list > * { flex-shrink: 0; }
#spc-root .spc-msg {
  max-width: 84%;
  padding: 10px 13px;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-line;
  word-wrap: break-word;
  animation: spc-in .18s ease;
}
#spc-root .spc-bot { align-self: flex-start; background: #ffffff; border: 1px solid var(--spc-borda); border-radius: 4px 16px 16px 16px; color: var(--spc-texto); }
#spc-root .spc-me { align-self: flex-end; background: var(--spc-verde); color: #ffffff; font-weight: 600; border-radius: 16px 4px 16px 16px; }
#spc-root .spc-typing { display: flex; gap: 5px; padding: 13px 14px; }
#spc-root .spc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--spc-verde); animation: spc-dot 1.2s infinite; }
#spc-root .spc-typing i:nth-child(2) { animation-delay: .2s; }
#spc-root .spc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes spc-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

#spc-root .spc-price {
  align-self: flex-start;
  width: 88%;
  padding: 16px;
  border-radius: 16px;
  background: var(--spc-cor);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: spc-in .18s ease;
}
#spc-root .spc-price-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--spc-destaque); }
#spc-root .spc-price-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
#spc-root .spc-price-big strong { font-family: var(--spc-titulo); font-style: italic; font-weight: 900; font-size: 46px; line-height: 1; color: var(--spc-destaque); }
#spc-root .spc-price-big span { font-size: 13px; font-weight: 600; color: #d9e8dc; }
#spc-root .spc-price ul { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; gap: 6px; }
#spc-root .spc-price li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #eef6ef; margin: 0; }
#spc-root .spc-price li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--spc-destaque); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

#spc-root .spc-cta { align-self: stretch; display: flex; flex-direction: column; gap: 7px; padding: 2px 0; animation: spc-in .18s ease; }
#spc-root .spc-cta a {
  height: 48px;
  border-radius: 13px;
  background: var(--spc-destaque);
  color: #0b1f14 !important;
  font-weight: 800;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  box-shadow: 0 10px 22px -12px rgba(11, 61, 34, .7);
}
#spc-root .spc-cta a:focus-visible { outline: 3px solid var(--spc-verde); outline-offset: 2px; }
#spc-root .spc-cta svg { width: 17px; height: 17px; fill: none; stroke: #0b1f14; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#spc-root .spc-cta small { text-align: center; font-size: 12px; font-weight: 600; color: #4d6656; }

/* gravação do app (WebP animado) */
#spc-root .spc-demo { align-self: flex-start; width: 92%; border-radius: 20px; background: var(--spc-cor); padding: 10px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: spc-in .2s ease; }
#spc-root .spc-demo-top { align-self: stretch; display: flex; align-items: center; justify-content: space-between; padding: 0 2px 0 6px; }
#spc-root .spc-demo-top span { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--spc-destaque); display: flex; align-items: center; gap: 6px; }
#spc-root .spc-demo-top span i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f; animation: spc-dot 1.2s infinite; }
#spc-root .spc-demo-rep { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); padding: 7px; cursor: pointer; color: #ffffff; }
#spc-root .spc-demo-rep svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#spc-root .spc-demo-ph { width: 220px; max-width: 100%; padding: 5px; border-radius: 30px; background: #05140b; box-shadow: 0 0 0 1px rgba(198, 242, 78, .18), 0 16px 30px -14px rgba(0, 0, 0, .7); }
#spc-root .spc-demo-ph img { display: block; width: 100%; height: auto; aspect-ratio: 440 / 952; border-radius: 25px; background: linear-gradient(110deg, #0f4a2a 30%, #16603a 50%, #0f4a2a 70%); background-size: 200% 100%; animation: spc-shine 1.2s linear infinite; max-width: none; }
#spc-root .spc-demo-ph.ok img { animation: none; background: #0b3d22; }
@keyframes spc-shine { to { background-position: -200% 0; } }
#spc-root .spc-demo-prog { width: 200px; max-width: 90%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
#spc-root .spc-demo-prog i { display: block; height: 100%; width: 0; background: var(--spc-destaque); }
@keyframes spc-prog { from { width: 0; } to { width: 100%; } }
#spc-root .spc-alt { flex-basis: 100%; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #4d6656 !important; text-decoration: underline !important; text-underline-offset: 3px; }

#spc-root .spc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; animation: spc-in .18s ease; }
#spc-root .spc-chip {
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--spc-verde);
  border-radius: 999px;
  background: #ffffff;
  color: var(--spc-verde-texto);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
#spc-root .spc-chip:hover { background: #e6f4ea; }
#spc-root .spc-chip:focus-visible, #spc-root .spc-send:focus-visible, #spc-root .spc-icon-btn:focus-visible { outline: 3px solid var(--spc-destaque); outline-offset: 2px; }

#spc-root .spc-foot {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 12px 10px;
  background: #ffffff;
  border-top: 1px solid var(--spc-borda);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#spc-root .spc-row { display: flex; gap: 8px; }
#spc-root .spc-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #c9d8cd;
  border-radius: 12px;
  background: #f7faf6;
  color: var(--spc-texto);
  font-size: 16px;
  font-weight: 500;
  outline: none;
}
#spc-root .spc-input:focus { border-color: var(--spc-verde); background: #ffffff; }
#spc-root .spc-send {
  width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 12px; padding: 12px; cursor: pointer;
  background: var(--spc-verde);
}
#spc-root .spc-send svg { fill: none; stroke: #ffffff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#spc-root .spc-privacy { font-size: 11px; color: #4d6656; text-align: center; }

/* celular: gaveta de baixo pra cima */
@media (max-width: 520px) {
  #spc-root .spc-launcher { right: 14px; bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
  #spc-root .spc-teaser { right: 14px; bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 78px); width: 250px; }
  #spc-root .spc-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    animation: spc-fade .2s ease;
  }
  #spc-root .spc-backdrop[hidden] { display: none !important; }
  #spc-root .spc-panel {
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    height: 86vh;
    height: 86dvh;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
    animation: spc-up .28s cubic-bezier(.2, .8, .2, 1);
    transition: transform .2s ease;
  }
  #spc-root .spc-head { position: relative; padding: 22px 12px 12px 14px; min-height: 0; touch-action: none; }
  #spc-root .spc-grab {
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 5px;
    margin-left: -20px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .35);
  }
  #spc-root .spc-head-txt strong { font-size: 20px; }
  #spc-root .spc-chip { min-height: 44px; }
  #spc-root .spc-foot { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
@keyframes spc-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes spc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #spc-root * { animation: none !important; transition: none !important; }
}

/* botão do shortcode */
.spc-botao {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #1a7f3c;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
