@import url("https://fonts.googleapis.com");

* {
  font-family: "Fredoka", sans-serif;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* CSS do Botão SAIR (Bubble Style) */
.btn-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: #ff5757;
  color: white !important;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: bold;
  border: 4px solid white;
  box-shadow: 0 6px 0px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-back:hover {
  transform: scale(1.1);
  background: #ff4040;
}
.btn-back:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0px rgba(0, 0, 0, 0.2);
}

/* Animação do Card */
.card-container {
  width: 320px;
  height: 420px;
  perspective: 1000px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.card-inner.flipped {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.card-back-face {
  transform: rotateY(180deg);
}

/* Botões de Ação */
.btn-action {
  color: white;
  padding: 15px 30px;
  border-radius: 20px;
  font-weight: 800;
  border-bottom: 6px solid rgba(0, 0, 0, 0.2);
  transition: all 0.1s;
  font-size: 1.1rem;
}
.btn-action:active {
  transform: translateY(6px);
  border-bottom-width: 0;
}

.btn-nav {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.8rem;
  transition: all 0.2s;
  border: 3px solid transparent;
}
.btn-nav:hover:not(:disabled) {
  background: white;
  color: #764ba2;
  transform: scale(1.1);
}
.btn-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Maestria */
.mastery-star.active {
  opacity: 1 !important;
  filter: grayscale(0);
  transform: scale(1.3);
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}
