@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&amp;family=Poppins:ital,wght@0,100;0,200;0,300;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,500;1,600;1,700;1,800;1,900&amp;display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", sans-serif;
  background: radial-gradient(circle at top, #0f291e 0%, #050b08 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.logo {
  margin: 10px auto;
  width: 220px;
  filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.2));
}

.logo img {
  width: 100%;
}

.title {
  font-size: 42px;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 24px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.input-section {
  margin-bottom: 30px;
}

.username-input {
  display: block;
  margin: 10px auto;
  padding: 12px 16px;
  width: 80%;
  max-width: 300px;
  border-radius: 12px;
  border: 2px solid #22c55e;
  background-color: rgba(15, 30, 23, 0.95);
  color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  outline: none;
}

.username-input::placeholder {
  color: #86efac;
}

.username-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
  min-height: 20px;
}

.generate-btn {
  display: block;
  margin: 15px auto 30px;
  padding: 10px 24px;
  border: 2px solid #ea580c;
  border-radius: 12px;
  background: linear-gradient(to bottom, #f97316, #ea580c);
  color: white;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  border-bottom: 6px solid #9a3412;
  font-family: "Fredoka", sans-serif;
  text-transform: uppercase;
  transition: 0.1s;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.generate-btn:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}

.fix-stroke {
  paint-order: stroke fill;
}

.selection-text {
  color: white;
  text-align: center;
  -webkit-text-stroke: 3px black;
  font-size: 18px;
  margin: 20px 0 10px 0;
  font-weight: bold;
}

.selection-error {
  color: #ef4444;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.gamepasses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.gamepass-item {
  background: rgba(18, 38, 28, 0.85);
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 3px solid #166534;
}

.gamepass-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
}

.gamepass-item.selected {
  border-color: #facc15;
  background: rgba(20, 50, 35, 0.95);
}

.gamepass-item.selected::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  background: #facc15;
  color: #050b08;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid white;
}

.gamepass-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  font-weight: bold;
}

.gamepass-name {
  font-size: 14px;
  font-weight: bold;
  margin-top: 19px;
  color: #f0fdf4;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: #0f291e;
  border: 3px solid #22c55e;
  color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 16px;
  width: 400px;
  text-align: center;
  position: relative;
  animation: slideIn 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal h2 {
  color: #22c55e;
  margin-bottom: 20px;
  font-size: 24px;
}

.modal p {
  color: #86efac;
  margin-bottom: 30px;
  font-size: 16px;
}

.verify-btn {
  display: block;
  margin: 20px auto 20px;
  padding: 8px 24px;
  border: 2px solid #ea580c;
  border-radius: 12px;
  background: linear-gradient(to bottom, #f97316, #ea580c);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  border-bottom: 6px solid #9a3412;
  font-family: "Fredoka", sans-serif;
  transition: 0.1s;
}

.verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.verify-btn:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Specific gamepass colors */
/* .pixel-angelus {
  background: linear-gradient(45deg, #87ceeb, #4169e1);
} */
/* .vip { */
/* background: linear-gradient(45deg, #ffd700, #ffa500);
}
.huge-hunter {
  background: linear-gradient(45deg, #00ced1, #1e90ff);
}
.lucky {
  background: linear-gradient(45deg, #32cd32, #228b22);
}
.ultra-lucky {
  background: linear-gradient(45deg, #9370db, #4b0082);
}
.eggs-15 {
  background: linear-gradient(45deg, #deb887, #cd853f);
}
.pets-15 {
  background: linear-gradient(45deg, #dc143c, #b22222);
}
.magic-eggs {
  background: linear-gradient(45deg, #ff69b4, #ff1493);
}
.super-drops {
  background: linear-gradient(45deg, #ff4500, #ff6347);
}
.shiny-hunter {
  background: linear-gradient(45deg, #c0c0c0, #708090);
}
.double-stars {
  background: linear-gradient(45deg, #ffd700, #daa520);
}
.egg-hatch {
  background: linear-gradient(45deg, #9370db, #8a2be2);
} */

.loading-content {
  padding: 40px 30px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(34, 197, 94, 0.2);
  border-top: 5px solid #eab308;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-content h2 {
  color: #333;
  margin-bottom: 0;
  font-size: 20px;
}

@media (max-width: 470px) {
  .logo {
    margin: 0px auto;
    width: 166px;
  }

  .modal-content {
    width: 90%;
  }
}
