* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Remove overflow: hidden from here */
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;           /* use min-height instead of height */
  overflow-x: hidden;          /* hide horizontal scroll */
  overflow-y: auto;            /* allow vertical scroll */
  background: linear-gradient(135deg, #ff4081, #81d4fa);
  background-size: 300% 300%;
  animation: bgShift 10s ease infinite;
  padding: 10px;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

.container {
  background: rgba(0, 0, 0, 0.85);
  padding: 25px;
  border-radius: 14px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  /* Added margin top to create breathing space on mobile */
  margin-top: 60px;
  z-index: 10; /* Make sure container is above video */
}

.logo-container {
  margin-bottom: 15px;
}

.logo {
  width: 120px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.game-logo {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 8px #ffeb3b;
  transition: transform 0.6s ease-in-out;
  display: inline-block;
}

.game-logo:hover {
  transform: rotate(360deg);
}

h2 {
  color: #f8c100;
  font-size: 18px;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: none;
  background: #f3eacb;
  font-size: 13px;
  text-align: center;
}

.button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.button:hover {
  background-color: #f50057;
  transform: scale(1.05);
}

.error {
  color: #ff5252;
  font-size: 13px;
}

.message {
  margin-top: 12px;
  font-weight: 500;
  font-size: 13px;
  display: none;
}

.message.success {
  color: #6899f5;
}

.message.error {
  color: #ff5252;
}

.hidden {
  display: none;
}

/* 🔻 Mobile Responsive */
@media only screen and (max-width: 480px) {
  body {
    min-height: auto;        /* auto height on small devices */
    padding: 15px;
    overflow-y: auto;        /* allow vertical scroll */
  }

  .container {
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 100px;      /* more top margin on mobiles */
  }

  .logo {
    width: 90px;
  }

  .game-logo {
    font-size: 24px;
  }

  h2 {
    font-size: 16px;
  }

  input {
    padding: 10px;
    font-size: 12px;
  }

  .button {
    padding: 10px;
    font-size: 13px;
  }

  .message {
    font-size: 12px;
  }
}

