* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: green;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

header {
  width: 100%;
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 0 20px;
  color: #fff;
  position: relative;
}

.header-buttons button {
  margin-left: 10px;
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.2s, background 0.2s;
}

.header-buttons button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #475569, #334155);
}


/* ======== BOTÃO HAMBÚRGUER ======== */

.hamburger {
  font-size: 26px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 3000;
}

.hamburger:hover {
  transform: scale(1.1);
}

/* Ícone vira um X com rotação e cor suave */
.hamburger i {
  transition: transform 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}

.hamburger.active i {
  transform: rotate(90deg);
  color: #38bdf8;
}

/* ======== MENU MOBILE ======== */

.mobile-menu {
  display: flex;
z-index:3;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: rgba(30, 41, 59, 0.97);
  position: absolute;
  top: 75px;
  right: 0;
  width: 220px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
  padding: 15px 10px;
}

/* Quando o menu aparece */
.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ======== ITENS DENTRO DO MENU ======== */

.mobile-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.mobile-menu button i {
  color: #38bdf8;
  font-size: 17px;
  width: 20px;
  text-align: center;
}


.mobile-menu a {
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.mobile-menu button:hover {
  background: rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.mobile-menu.show button {
  animation-name: fadeInUp;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
  opacity: 0;
}

.mobile-menu.show button:nth-of-type(1) {
  animation-delay: 0.1s;
}

.mobile-menu.show button:nth-of-type(2) {
  animation-delay: 0.2s;
}

.mobile-menu.show button:nth-of-type(3) {
  animation-delay: 0.3s;
}

.mobile-menu.show button:nth-of-type(4) {
  animation-delay: 0.4s;
}

.mobile-menu.show button:nth-of-type(5) {
  animation-delay: 0.5s;
}

.mobile-menu.show button:nth-of-type(6) {
  animation-delay: 0.6s;
}

.mobile-menu.show button:nth-of-type(7) {
  animation-delay: 0.7s;
}

.mobile-menu.show button:nth-of-type(8) {
  animation-delay: 0.8s;
}

.mobile-menu.show button:nth-of-type(9) {
  animation-delay: 0.9s;
}

.mobile-menu.show button:nth-of-type(10) {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    filter: blur(3px);
  }
  
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
    filter: blur(0);
  }
  
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 0px) {
  .header-buttons {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
}

.items {
  
  text-decoration: none;
  color: #ffffff;
}

header h1 {
  color: #ffffff;
  font-size: 20px;
}

.profile {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile:hover {
  transform: scale(1.05);
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 0;
}

#click {
  
  border-radius: 30px;
  
}

#click:hover,
.icon:hover {
  cursor: pointer;
}

#points_button {
  border-radius: 30px;
  width: 300px;
  height: 300px;
}

.score {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f1f5f9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.3rem;
}

.score-value {
  font-size: 2rem;
  font-weight: bold;
  color: #38bdf8;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.score-value.pop {
  animation: scorePop 0.19s ease-in-out forwards;
}

#click.popp {
  animation: scorePopp 0.35s ease forwards;
}

@keyframes scorePopp {
  0% {
    transform: scale(1);
    color: #38bdf8;
  }
  
  50% {
    transform: scale(0.95);
    color: #22c55e;
  }
  
  100% {
    transform: scale(1);
    color: #38bdf8;
  }
  
}

@keyframes scorePop {
  0% {
    transform: scale(1);
    color: #38bdf8;
  }
  
  50% {
    transform: scale(0.5);
    color: #22c55e;
  }
  
  100% {
    transform: scale(1);
    color: #38bdf8;
  }
  
}

.btn-leaderboard {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-leaderboard:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.btn-reset {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 50;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-reset:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.leaderboard {
  
  background: #0f3460;
  padding: 20px;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: absolute;
  top: -150%;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  transition: top 1s ease;
  z-index: 30;
  
}

.leaderboard.show {
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2001;
}

.leaderboard h2 {
  margin-bottom: 15px;
  background: #e94560;
  padding: 10px;
  border-radius: 8px;
}

.leaderboard ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard li {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a40;
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}

.leaderboard li:nth-child(1) {
  background: gold;
  color: black;
  position: relative;
  box-shadow: 0 0 10px gold, 0 0 20px orange;
  animation: neonPulseGold 1s ease-out infinite;
}

.leaderboard li:nth-child(1)::before,
.leaderboard li:nth-child(1)::after {
  content: "🏆";
  position: absolute;
  top: 40%;
  transform: translateY(-40%);
  font-size: 1.3rem;
  animation-delay: 1.2s;
  animation: swing 1s infinite;
}

.leaderboard li:nth-child(1)::before {
  left: -25px;
}

.leaderboard li:nth-child(1)::after {
  right: -25px;
}

.leaderboard li:nth-child(2) {
  background: silver;
  color: black;
  position: relative;
  animation-delay: 1.5s;
  box-shadow: 0 0 10px silver, 0 0 20px #aaa;
  animation: neonPulseSilver 1.5s ease-in infinite;
}

.leaderboard li:nth-child(2)::before,
.leaderboard li:nth-child(2)::after {
  content: "🥈";
  position: absolute;
  top: 50%;
  transform: translateY(-40%);
  font-size: 1.2rem;
  animation: swing 1s infinite;
}

.leaderboard li:nth-child(2)::before {
  left: -25px;
}

.leaderboard li:nth-child(2)::after {
  right: -25px;
}

.leaderboard li:nth-child(3) {
  background: #cd7f32;
  color: black;
  position: relative;
  animation-delay: 1.8s;
  box-shadow: 0 0 10px #cd7f32, 0 0 20px #a0522d;
  animation: neonPulseBronze 1.5s ease-in-out infinite;
}

.leaderboard li:nth-child(3)::before,
.leaderboard li:nth-child(3)::after {
  content: "🥉";
  position: absolute;
  top: 40%;
  transform: translateY(-40%);
  font-size: 1.2rem;
  animation: swing 1s infinite;
}

.leaderboard li:nth-child(3)::before {
  left: -25px;
}

.leaderboard li:nth-child(3)::after {
  right: -25px;
}

@keyframes neonPulseGold {
  
  0%,
  100% {
    box-shadow: 0 0 10px gold, 0 0 20px orange;
  }
  
  50% {
    box-shadow: 0 0 20px gold, 0 0 30px orange;
  }
}

@keyframes neonPulseSilver {
  
  0%,
  100% {
    box-shadow: 0 0 5px silver, 0 0 10px #aaa;
  }
  
  50% {
    box-shadow: 0 0 10px silver, 0 0 17px #ccc;
  }
}

@keyframes neonPulseBronze {
  
  0%,
  100% {
    box-shadow: 0 0 5px #cd7f32, 0 0 10px #a0522d;
  }
  
  50% {
    box-shadow: 0 0 10px #cd7f32, 0 0 15px #d2691e;
  }
}

@keyframes swing {
  0% {
    transform: rotate(-20deg);
  }
  
  50% {
    transform: rotate(20deg);
  }
  
  70% {
    transform: rotate(-20deg);
  }
  
  85% {
    transform: rotate(20deg);
  }
  
  100% {
    transform: rotate(-20deg);
  }
}

.menu-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #f1f5f9;
  border: none;
  border-radius: 50px 0px 0px 50px;
  font-size: 1.8rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  z-index: 1200;
  transition: background 0.3s ease, right 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.menu-toggle:hover {
  background: linear-gradient(135deg, #334155, #1e293b);
}


.menu-toggle.active {
  right: 250px;
  border-radius: 50px 0px 0px 50px;

}


.menu-toggle i {
  display: inline-block;

}




.store {
  position: fixed;
  top: 5%;
  right: -250px;
  width: 250px;
  height: 90%;
  background: #1e293b;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
  box-shadow: -4px 0 10px rgba(0,0,0,0.3);
  overflow-y: auto;
  transition: right 0.3s ease; /* só animando a posição */
  z-index: 50;
}

.store.active {
  right: 0; 
}

.store h2 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
  width: 100%;
  text-align: center;
}

.store #store-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.store button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #334155;
  border: none;
  border-radius: 12px;
  padding: 0.5rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #fff;
  font-weight: bold;
}

.store button:hover {
  background: #475569;
  transform: scale(1.03);
}

.store button.compravel {
  animation: pulse 1.5s infinite;
  border: 2px solid #38bdf8;
}

.store button.comprado {
  transition: 0.7s;
  background: #14532d;
  color: #bbf7d0;
  border: 2px solid #22c55e;
  opacity: 0.9;
}

.store button .prof-name {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #f1f5f9;
}

.store button .icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}

.store button span {
  font-size: 0.9rem;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: #fff;
}

#notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
}

.notification {
  background: #1e293b;
  color: #f1f5f9;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  z-index: 5000;
  transform: translateX(100%);
  transition: all 0.4s ease;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.error {
  background: #b91c1c;
  color: #fff;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(56, 189, 248, 0.6);
  }
  
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.9);
  }
  
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(56, 189, 248, 0.6);
  }
}

.profile-user {
  font-size: 20px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 20px;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.h1 {
  padding-right: 10px;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  color: #fff;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  border-radius: 20px;
  position: relative;
}

.btn-logout {
  background: transparent !important;
  border: none;
  color: #e94560;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1.4rem;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.btn-logout:hover {
  color: #b8263a;
  transform: scale(1.05);
}

#btnLogoutMobile {
  padding: 4px 6px;
  font-size: 1.4rem;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.notification.conquista {
  background: linear-gradient(135deg, #ffd700, #ffb400);
  color: white;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 10px;
  transform: translateX(100%);
  transform: translateY(90%);
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
  width: 80%;
  animation: conquista-glow 1.5s infinite alternate;
}

@keyframes conquista-glow {
  from {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  }
  
  to {
    box-shadow: 0 0 25px rgba(255, 215, 0, 1);
  }
}

.notification.conquista.show {
  transform: translateX(0);
  transform: translateY(90%);
  
  opacity: 1;
  animation: neonPulse 1.2s infinite alternate;
}

.points-fly {
  position: absolute;
  font-weight: bold;
  color: #22c55e;
  font-size: 24px;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.points-fly.show {
  transform: translateY(-80px);
  opacity: 0;
}