/* === BASE === */
body {
  margin: 0;
  background-color: #121534; /* cor base do fundo */
  color: #fff5ea;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  padding-left: 31%;
  position: relative;
}

/* === PLAYER CARDS === */
.player-card {
  position: absolute;
  z-index: -1;
  opacity: 1;
  pointer-events: none;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes floatCardInvert {
  0%, 100% { transform: translateY(-15px); }
  50% { transform: translateY(0px); }
}

.card1 {
  width: 500px;
  top: 22%;
  left: 4.8%;
  transition: transform 0.3s ease;
  animation: floatCard 6s ease-in-out infinite;
}

.card2 {
  width: 450px;
  top: 41.7%;
  left: 68%;
  animation: floatCardInvert 8s ease-in-out infinite;
  z-index: 1;
}

.card3 {
  width: 460px;
  bottom: 11%;
  left: 72%;
  animation: floatCard 10s ease-in-out infinite;
}

.card4 {
  width: 230px;
  top: 33.9%;
  right: 4.5%;
  animation: floatCard 5s ease-in-out infinite;
  z-index: 2;
}

.card5 {
  width: 280px;
  top: 40.3%;
  right: 15.2%;
  animation: floatCardInvert 8s ease-in-out infinite;
  z-index: 2;
}

/* === ESTRELAS FLUTUANTES === */
.eng {
  position: absolute;
  z-index: 7;
  opacity: 1;
  pointer-events: none;
}

@keyframes EngRotate {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(0) rotate(-360deg); }
}

@keyframes EngRotateInvert {
  0% { transform: translateY(0) rotate(-360deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.eng-1 {
  width: 90px;
  top: 85%;
  right: 90.4%;
  animation: EngRotate 8s linear infinite;
}

.eng-2 {
  width: 28px;
  top: 14.8%;
  right: 59.1%;
  animation: EngRotate 12s linear infinite;
}

.eng-3 {
  width: 50px;
  top: 20.3%;
  right: 39.5%;
  animation: EngRotate 16s linear infinite;
}

.eng-4 {
  width: 55px;
  top: 16.8%;
  right: 7.8%;
  animation: EngRotate 20s linear infinite;
}

.eng-5 {
  width: 55px;
  top: 0%;
  right: 27.8%;
  animation: EngRotateInvert 20s linear infinite;
}

.eng-6 {
  width: 30px;
  top: 77.8%;
  right: 35.1%;
  animation: EngRotateInvert 20s linear infinite;
}

.eng-7 {
  width: 55px;
  top: 86%;
  right: 68.9%;
  animation: EngRotateInvert 20s linear infinite;
}

.eng-8 {
  width: 105px;
  top: 8.1%;
  right: 81.4%;
  animation: EngRotateInvert 20s linear infinite;
}

.eng-9 {
  width: 850px;
  top: 58.8%;
  right: -21.5%;
  z-index: -2;
  animation: EngRotate 20s linear infinite;
}


/* === CONTAINER === */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-in 0.6s ease forwards;
  text-align: center;
}

/* === TÍTULO === */
.title-img {
  margin: 0;
  margin-left: 95px;
  margin-bottom: 12px;
  width: 534px;
  height: 100%;
  animation: fade-in 0.8s ease forwards;
}

/* === INFO TEXTO === */
.info-text {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 10px 0 30px;
  margin-left: 86px;
  color: #fff5ea;
  animation: fade-in 0.8s ease forwards;
}

.info-text a {
  color: rgba(109, 133, 186, 1);
  text-decoration: none;
  font-weight: 700;
}

.info-text a:hover {
  color: #37eb77;
}

/* === FORM === */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 380px;
  animation: fade-in 0.8s ease forwards;
  margin-left: 88px;
  margin-bottom: -4px;
}

/* === CAMPOS === */
textarea {
  background: rgba(109, 133, 186, 0.8);
  color: #fff5ea;
  border: none;
  border-radius: 20px;
  padding: 0 20px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  resize: none;
  outline: none;
  height: 48px;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
  line-height: 48px;
}

/* Placeholder animado */
textarea::placeholder {
  color: #fff5ea;
  opacity: 0.8;
  text-align: center;
  transition: opacity 0.25s ease;
}

textarea:focus::placeholder {
  opacity: 0;
}

textarea:not(:placeholder-shown),
textarea:focus {
  background: #6d85ba;
  opacity: 1;
}

/* === BOTÕES === */
.connect-btn,
.disconnect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 133, 186, 0.8);
  border: none;
  color: #fff5ea;
  border-radius: 20px;
  width: 340px;
  height: 48px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  gap: 6px;
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.connect-btn:hover,
.disconnect-btn:hover {
  background: #6d85ba;
  opacity: 1;
}

/* Texto Spotify verde */
.connect-btn span.green,
.disconnect-btn span.green {
  color: #121534
}

/* === ERRO === */
.error-message {
  color: #fff5ea;
  background: #f95777;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  display: none;
  text-align: center;
  width: 100%;
}

/* === CONNECTED VIEW === */
.connected-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-in 0.8s ease forwards;
  padding-left: 196px;
}

.hidden {
  display: none !important;
}

label {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff5ea;
}

/* === ANIMAÇÕES === */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-enter {
  from { opacity: 0; transform: translateY(10px); }
  50% { transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CREDITOS === */
.credits {
  position: absolute;
  bottom: 15px;
  right: 1650px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #29355d;
  opacity: 1;
}

.credits a {
  color: inherit;
  text-decoration: none;
  transition: color 0.8s ease, opacity 0.8s ease;
}

/* Ícone */
.icon-copyright {
  width: 16px;
  height: 16px;
  opacity: 1;
  transition: filter 0.8s ease, opacity 0.8s ease;
}

/* Hover: entra rápido */
.credits:hover {
  color: #fff5ea;
  opacity: 1;
  transition: none; /* sem delay na entrada */
}

.credits:hover .icon-copyright {
  filter: brightness(0) invert(1);
  opacity: 1;
  transition: none; /* entra instantaneamente */
}

.credits:hover a {
  color: #fff5ea;
  transition: none; /* entra instantaneamente */
}

/* === VISIT SHOP BASE === */
.visit-shop {
  position: absolute;
  bottom: 15px;
  left: 792px;
  z-index: 10;
}

.shop-link {
  text-decoration: none;
  cursor: pointer;
}

.shop-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.shop-content:hover {
  opacity: 1;
  transform: scale(1);
}

/* === ÍCONE PRINCIPAL === */

.shop-icon {
  width: 360px;
  bottom: -94.5px;
  right: -316.5px;
  position: absolute;
  transition: transform 0.6s ease;
  opacity: 1;
}

.shop-content:hover .shop-icon {
  transform: translateY(-80px);
  opacity: 1;
}

/* === ESTRELAS EXPLOSÃO POSICIONÁVEIS === */
.burst-star {
  position: absolute;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  z-index: 15;
}

/* === ESTRELAS POSITION === */
/* === dinheiro === */
.star-a { 
  width: 80px;
  bottom: -300%;
  left: 980%;
}
/* === lojinha === */
.star-b { 
  width: 80px;
  bottom: -290%;
  left: 780%; 
}
/* === sacola === */
.star-c { 
  width: 60px;
  bottom: -180%;
  left: 50%;
}
/* === carrinho === */
.star-d { 
  width: 80px;
  bottom: -290%;
  left: 270.1%;
}

/* ===== Caminho + fade (não altera posição/tamanho existente) ===== */
@keyframes travelAndFade {
0% {
    offset-distance: 0%;
    opacity: 0;
    transform: scale(0.4); /* começa pequeno como você queria */
  }
  10% {
    opacity: 1;
    transform: scale(0.55);
  }
  50% {
    transform: scale(0.85); /* crescendo enquanto sobe */
  }
  85% {
    opacity: 1;
    transform: scale(1); /* tamanho final */
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
    transform: scale(0.9); /* começa a sumir */
  }
}

/* base p/ motion-path (não mexe em width/bottom/left que você setou) */
.burst-star {
  offset-rotate: 0deg;      /* não gira junto com a curva */
  offset-distance: 0%;
  will-change: offset-distance, opacity;
}

/* Dispara a animação no hover do bloco */
.shop-content:hover .star-a { animation: travelAndFade 0.9s ease-out 0.04s forwards; }
.shop-content:hover .star-b { animation: travelAndFade 0.9s ease-out 0.04s forwards; }
.shop-content:hover .star-c { animation: travelAndFade 0.9s ease-out 0.04s forwards; }
.shop-content:hover .star-d { animation: travelAndFade 0.9s ease-out 0.04s forwards; }

/* ===== Trajetos curvos individuais (ajuste fino se quiser) ===== */
/* Lembrete: M0 0 = posição atual da imagem .star-x */
.star-a { /* curva preta (vai mais pra direita e sobe) */
  offset-path: path(
    'M0 0 C 0 -90,   12 -115,   45 -150'
  );
}

.star-b { /* curva vermelha (mais íngreme pra cima) */
  offset-path: path(
  'M0 0 C 0 -90,   8 -110,   25 -135'
);
}

.star-c { /* curva amarela (para a esquerda e pra cima) */
    offset-path: path(
    'M0 0 C 0 -90,   -12 -115,   -45 -150'
  );
}

.star-d {
  offset-path: path(
    'M0 0 C 0 -90,   -8 -110,   -25 -135'
  );

}



