/* Reset default margins and ensure full viewport coverage */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  overflow: hidden; /* Prevent global scrollbars */
}

/* Dark animated gradient background */
body {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 25%, #24243e 50%, #0f0c29 75%, #1a1a2e 100%);
  background-size: 400% 400%;
  animation: darkGradientShift 15s ease infinite;
  display: flex; /* Use Flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 100vh; /* Ensure body takes full viewport height */
}

@keyframes darkGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated grid overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Glowing particles */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(2px);
}

.particle.purple {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8) 0%, rgba(124, 58, 237, 0) 70%);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.particle.blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0) 70%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.particle.cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.8) 0%, rgba(6, 182, 212, 0) 70%);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  25% { transform: translate(100px, -100px) scale(1.3); opacity: 0.8; }
  50% { transform: translate(-50px, 50px) scale(0.8); opacity: 0.9; }
  75% { transform: translate(80px, 80px) scale(1.1); opacity: 0.7; }
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -10px) rotate(90deg); }
  50% { transform: translate(-10px, 15px) rotate(180deg); }
  75% { transform: translate(10px, 10px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Neon orbs */
.neon-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orbPulse 8s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
  50% { transform: scale(1.5) translate(50px, -50px); opacity: 0.6; }
}

/* Shooting stars */
.shooting-star {
  position: fixed;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
  animation: shoot 3s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-500px) translateY(500px);
    opacity: 0;
  }
}

/* Floating game icons */
.game-icon, .bg-game-icon {
  position: fixed;
  font-size: 40px;
  opacity: 0.3;
  animation: bgIconFloat 15s infinite ease-in-out;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px currentColor);
  z-index: 2;
}

.bg-game-icon:hover {
  transform: scale(1.5) rotate(360deg) !important;
  opacity: 0.8 !important;
  filter: drop-shadow(0 0 20px currentColor);
}

@keyframes bgIconFloat {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-60px) translateX(30px) rotate(90deg); }
  50% { transform: translateY(-120px) translateX(-30px) rotate(180deg); }
  75% { transform: translateY(-60px) translateX(20px) rotate(270deg); }
}

/* Animated Gaming Background */
#wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #1a1a2e 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Neon Light Rays */
.light-ray {
  position: absolute;
  width: 2px;
  height: 300px;
  background: linear-gradient(to bottom, transparent, rgba(79, 172, 254, 0.8), transparent);
  animation: lightRayMove 4s ease-in-out infinite;
  opacity: 0.6;
  filter: blur(2px);
}

@keyframes lightRayMove {
  0%, 100% { transform: translateY(-100%) rotate(0deg); opacity: 0; }
  50% { transform: translateY(100vh) rotate(5deg); opacity: 0.8; }
}

/* Background Floating Particles */
.bg-floating-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bgParticleFloat 10s infinite ease-in-out;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

@keyframes bgParticleFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-50px) translateX(20px) scale(1.2); opacity: 1; }
}

/* Container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  position: relative;
  z-index: 100;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
}

/* Premium dark glass container */
.form-container {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 30px;
  padding: 40px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 80px rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(168, 85, 247, 0.2);
  position: relative;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow-y: auto; /* Enable vertical scrolling */
  max-height: calc(100vh - 40px); /* Account for container padding */
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  -ms-overflow-style: none; /* Hide scrollbar in Edge */
}

.form-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome, Safari */
}

/* Animated neon border */
.form-container::before {
  content: '';
  position: absolute;
  inset: -3px;
  /* background: linear-gradient(45deg,
    rgba(31, 41, 55, 0.8),
    rgba(17, 24, 39, 0.8),
    rgba(55, 65, 81, 0.8),
    rgba(31, 41, 55, 0.8)
  ); */
  background-size: 300% 300%;
  border-radius: 33px;
  z-index: -1;
  animation: borderGlow 4s ease infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form-container:hover::before {
  opacity: 1;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.form-container:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 80px rgba(255, 255, 255, 0.2);
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.01); }
}

/* Player avatar */
.player-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 40px rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
}

.player-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.8),
    0 0 60px rgba(124, 58, 237, 0.6);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Avatar container */
.avatar-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
}

/* Refresh avatar button */
.refresh-avatar {
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #6b7280, #4b5563);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.refresh-avatar:hover {
  background: linear-gradient(135deg, #4b5563, #6b7280);
  transform: scale(1.2) rotate(180deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Player name */
.player-name {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
  margin-bottom: 25px;
  animation: nameGlow 2s infinite ease-in-out;
}

@keyframes nameGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(124, 58, 237, 0.6); }
  50% { text-shadow: 0 0 20px rgba(124, 58, 237, 0.9); }
}

/* Headings */
h1 {
  color: white;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
  font-weight: 600;
  font-size: 2.5rem;
}

h5 {
  color: white;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
  font-weight: 600;
  font-size: 1.4rem;
}

/* Input Wrapper */
.input-wrapper {
  position: relative;
  margin: 0 auto 40px;
  width: 90%;
  max-width: min(950px, 85vw);
  cursor: text;
}

.form-control {
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 22px 90px 22px 90px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  font-size: 22px;
  color: #333;
  box-sizing: border-box;
  cursor: text;
}

.form-control:focus {
  background: rgba(255, 255, 255, 1);
  border-color: #4facfe;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.6), 0 0 40px rgba(79, 172, 254, 0.3);
  outline: none;
  transform: scale(1.02);
  padding-left: 95px;
}

.form-control::placeholder {
  color: rgba(51, 51, 51, 0.5);
  padding-left: 5px;
}

.input-icon {
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  color: #5a67d8;
  font-size: 30px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
  cursor: text;
}

.form-control:focus + .input-icon {
  color: #4facfe;
}

/* Validation Messages */
.validation-message {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  pointer-events: none;
}

.validation-error {
  color: #e3342f;
  opacity: 1;
  transform: translateY(0);
  animation: shake 0.5s ease-in-out;
  text-shadow: 0 0 10px rgba(227, 52, 47, 0.5);
}

.validation-success {
  color: #28a745;
  opacity: 1;
  transform: translateY(0);
  animation: successPop 0.5s ease-in-out;
  text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes successPop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Status Indicators */
.status-indicator {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  opacity: 0;
  font-size: 32px;
  pointer-events: none;
}

.status-error {
  color: #e3342f;
  opacity: 1;
  animation: statusBounce 0.6s ease;
  filter: drop-shadow(0 0 8px rgba(227, 52, 47, 0.7));
}

.status-success {
  color: #28a745;
  opacity: 1;
  animation: statusBounce 0.6s ease;
  filter: drop-shadow(0 0 8px rgba(40, 167, 69, 0.7));
}

@keyframes statusBounce {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.3); }
}

.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.5) !important;
  animation: shake 0.3s ease-in-out;
}

/* Rounds selection */
.option-container {
  background: rgba(31, 41, 55, 0.6);
  border-radius: 15px;
  padding: 30px;
  margin: 30px auto;
  width: 90%;
  max-width: min(950px, 85vw);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Button Container */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: min(950px, 85vw);
  flex-wrap: wrap;
}

.rounds-options {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 25px;
}

.round-option {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(55, 65, 81, 0.5);
  padding: 18px 30px;
  border-radius: 15px;
  transition: all 0.3s ease;
  flex: 1;
}

.round-option:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.form-check-input {
  width: 26px;
  height: 26px;
  margin: 0;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.form-check-label {
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Instruction text */
.instruction-text {
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.instruction-text i {
  color: #7c3aed;
  font-size: 20px;
}

/* Buttons */
.btn {
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 200px;
  flex: 1;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.6);
}

.btn-info {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: white;
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.btn-info:hover {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.6);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Validation message */
.validation-message {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #dc2626;
  font-size: 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.validation-message.show {
  opacity: 1;
  transform: translateY(0);
  animation: shake 0.5s ease-in-out;
}

.validation-message i {
  font-size: 20px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Responsive Media Queries for Width */
@media (min-width: 2560px) {
  .form-container {
    max-width: 1500px;
    padding: 100px;
    max-height: calc(100vh - 200px); /* Account for larger padding */
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 240px;
    height: 240px;
  }

  .player-name {
    font-size: 3rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  h5 {
    font-size: 2rem;
  }

  .input-wrapper {
    max-width: min(1300px, 85vw);
    margin-bottom: 30px;
  }

  .form-control {
    padding: 28px 110px;
    font-size: 26px;
  }

  .input-icon {
    font-size: 36px;
    left: 35px;
  }

  .status-indicator {
    font-size: 38px;
    right: 35px;
  }

  .btn {
    padding: 24px 60px;
    font-size: 24px;
    min-width: 250px;
  }

  .button-container {
    max-width: min(1300px, 85vw);
    gap: 30px;
  }

  .option-container {
    max-width: min(1300px, 85vw);
    padding: 40px;
    margin: 20px auto;
  }

  .rounds-options {
    gap: 60px;
  }

  .round-option {
    padding: 24px 40px;
    font-size: 24px;
  }

  .form-check-input {
    width: 34px;
    height: 34px;
  }

  .form-check-label {
    font-size: 24px;
  }

  .validation-message {
    font-size: 22px;
    padding: 18px;
    bottom: -30px;
  }

  .validation-message i {
    font-size: 24px;
  }

  .bg-game-icon {
    font-size: 60px;
  }
}

@media (min-width: 1920px) and (max-width: 2559px) {
  .form-container {
    max-width: 1300px;
    padding: 80px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 200px;
    height: 200px;
  }

  .player-name {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  h5 {
    font-size: 1.8rem;
  }

  .input-wrapper {
    max-width: min(1100px, 85vw);
    margin-bottom: 30px;
  }

  .form-control {
    padding: 24px 100px;
    font-size: 24px;
  }

  .input-icon {
    font-size: 32px;
    left: 30px;
  }

  .status-indicator {
    font-size: 34px;
    right: 30px;
  }

  .btn {
    padding: 22px 50px;
    font-size: 22px;
    min-width: 220px;
  }

  .button-container {
    max-width: min(1100px, 85vw);
    gap: 25px;
  }

  .option-container {
    max-width: min(1100px, 85vw);
    padding: 30px;
    margin: 20px auto;
  }

  .rounds-options {
    gap: 50px;
  }

  .round-option {
    padding: 20px 35px;
    font-size: 22px;
  }

  .form-check-input {
    width: 30px;
    height: 30px;
  }

  .form-check-label {
    font-size: 22px;
  }

  .validation-message {
    font-size: 20px;
    padding: 16px;
    bottom: -30px;
  }

  .validation-message i {
    font-size: 22px;
  }

  .bg-game-icon {
    font-size: 50px;
  }
}

@media (min-width: 1600px) and (max-width: 1919px) {
  .form-container {
    max-width: 1200px;
    padding: 70px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 180px;
    height: 180px;
  }

  .player-name {
    font-size: 2.3rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h5 {
    font-size: 1.7rem;
  }

  .input-wrapper {
    max-width: min(1000px, 85vw);
    margin-bottom: 25px;
  }

  .form-control {
    padding: 22px 90px;
    font-size: 22px;
  }

  .input-icon {
    font-size: 30px;
    left: 25px;
  }

  .status-indicator {
    font-size: 32px;
    right: 25px;
  }

  .btn {
    padding: 20px 45px;
    font-size: 20px;
    min-width: 200px;
  }

  .button-container {
    max-width: min(1000px, 85vw);
    gap: 20px;
  }

  .option-container {
    max-width: min(1000px, 85vw);
    padding: 25px;
    margin: 15px auto;
  }

  .rounds-options {
    gap: 45px;
  }

  .round-option {
    padding: 18px 30px;
    font-size: 20px;
  }

  .form-check-input {
    width: 28px;
    height: 28px;
  }

  .form-check-label {
    font-size: 20px;
  }

  .validation-message {
    font-size: 18px;
    padding: 14px;
    bottom: -25px;
  }

  .validation-message i {
    font-size: 20px;
  }

  .bg-game-icon {
    font-size: 45px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .form-container {
    max-width: 1100px;
    padding: 60px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 160px;
    height: 160px;
  }

  .player-name {
    font-size: 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  .input-wrapper {
    max-width: min(950px, 85vw);
    margin-bottom: 25px;
  }

  .form-control {
    padding: 20px 80px;
    font-size: 20px;
  }

  .input-icon {
    font-size: 26px;
    left: 22px;
  }

  .status-indicator {
    font-size: 30px;
    right: 22px;
  }

  .btn {
    padding: 18px 40px;
    font-size: 18px;
    min-width: 180px;
  }

  .button-container {
    max-width: min(950px, 85vw);
    gap: 20px;
  }

  .option-container {
    max-width: min(950px, 85vw);
    padding: 25px;
    margin: 15px auto;
  }

  .rounds-options {
    gap: 40px;
  }

  .round-option {
    padding: 16px 25px;
    font-size: 18px;
  }

  .form-check-input {
    width: 26px;
    height: 26px;
  }

  .form-check-label {
    font-size: 18px;
  }

  .validation-message {
    font-size: 16px;
    padding: 12px;
    bottom: -25px;
  }

  .validation-message i {
    font-size: 18px;
  }

  .bg-game-icon {
    font-size: 42px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .form-container {
    max-width: 950px;
    padding: 50px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 140px;
    height: 140px;
  }

  .player-name {
    font-size: 1.8rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h5 {
    font-size: 1.4rem;
  }

  .input-wrapper {
    max-width: min(850px, 85vw);
    margin-bottom: 20px;
  }

  .form-control {
    padding: 18px 70px;
    font-size: 18px;
  }

  .input-icon {
    font-size: 24px;
    left: 20px;
  }

  .status-indicator {
    font-size: 28px;
    right: 20px;
  }

  .btn {
    padding: 16px 35px;
    font-size: 17px;
    min-width: 160px;
  }

  .button-container {
    max-width: min(850px, 85vw);
    gap: 15px;
  }

  .option-container {
    max-width: min(850px, 85vw);
    padding: 20px;
    margin: 15px auto;
  }

  .rounds-options {
    gap: 35px;
  }

  .round-option {
    padding: 14px 22px;
    font-size: 17px;
  }

  .form-check-input {
    width: 24px;
    height: 24px;
  }

  .form-check-label {
    font-size: 17px;
  }

  .validation-message {
    font-size: 15px;
    padding: 11px;
    bottom: -20px;
  }

  .validation-message i {
    font-size: 17px;
  }

  .bg-game-icon {
    font-size: 40px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .form-container {
    max-width: 90%;
    padding: 40px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 130px;
    height: 130px;
  }

  .player-name {
    font-size: 1.7rem;
  }

  h1 {
    font-size: 2rem;
  }

  h5 {
    font-size: 1.3rem;
  }

  .input-wrapper {
    max-width: min(750px, 85vw);
    margin-bottom: 20px;
  }

  .form-control {
    padding: 16px 60px;
    font-size: 17px;
  }

  .input-icon {
    font-size: 22px;
    left: 18px;
  }

  .status-indicator {
    font-size: 26px;
    right: 18px;
  }

  .btn {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 140px;
  }

  .button-container {
    max-width: min(750px, 85vw);
    gap: 15px;
  }

  .option-container {
    max-width: min(750px, 85vw);
    padding: 20px;
    margin: 15px auto;
  }

  .rounds-options {
    gap: 30px;
  }

  .round-option {
    padding: 13px 20px;
    font-size: 16px;
  }

  .form-check-input {
    width: 22px;
    height: 22px;
  }

  .form-check-label {
    font-size: 16px;
  }

  .validation-message {
    font-size: 14px;
    padding: 10px;
    bottom: -20px;
  }

  .validation-message i {
    font-size: 16px;
  }

  .bg-game-icon {
    font-size: 38px;
  }
}

@media (min-width: 360px) and (max-width: 767px) {
  .container {
    padding: 5px;
    align-items: flex-start;
    overflow: hidden;
  }

  .form-container {
    max-width: 95%;
    padding: 15px;
    max-height: calc(100vh - 10px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 5px auto;
    min-height: auto;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

  .player-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .input-wrapper {
    max-width: min(550px, 90vw);
    margin-bottom: 15px;
  }

  .form-control {
    padding: 12px 45px;
    font-size: 15px;
  }

  .input-icon {
    font-size: 19px;
    left: 14px;
  }

  .status-indicator {
    font-size: 22px;
    right: 14px;
  }

  .btn {
    padding: 11px 25px;
    font-size: 14px;
    min-width: 120px;
  }

  .button-container {
    max-width: min(550px, 90vw);
    gap: 10px;
  }

  .option-container {
    max-width: min(550px, 90vw);
    padding: 15px;
    margin: 10px auto;
  }

  .rounds-options {
    gap: 10px;
    flex-direction: column;
  }

  .round-option {
    padding: 11px 16px;
    font-size: 14px;
  }

  .form-check-input {
    width: 19px;
    height: 19px;
  }

  .form-check-label {
    font-size: 14px;
  }

  .validation-message {
    font-size: 12px;
    padding: 8px;
    bottom: -20px;
  }

  .validation-message i {
    font-size: 14px;
  }

  .bg-game-icon {
    font-size: 32px;
  }
}

@media (min-width: 320px) and (max-width: 359px) {
  .container {
    padding: 5px;
    align-items: flex-start;
    overflow: hidden;
  }

  .form-container {
    max-width: 95%;
    padding: 12px;
    max-height: calc(100vh - 10px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 5px auto;
    min-height: auto;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }

  .player-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  h5 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .input-wrapper {
    max-width: min(450px, 90vw);
    margin-bottom: 12px;
  }

  .form-control {
    padding: 10px 40px;
    font-size: 14px;
  }

  .input-icon {
    font-size: 18px;
    left: 12px;
  }

  .status-indicator {
    font-size: 20px;
    right: 12px;
  }

  .btn {
    padding: 9px 22px;
    font-size: 13px;
    min-width: 100px;
  }

  .button-container {
    max-width: min(450px, 90vw);
    gap: 8px;
  }

  .option-container {
    max-width: min(450px, 90vw);
    padding: 12px;
    margin: 10px auto;
  }

  .rounds-options {
    gap: 8px;
    flex-direction: column;
  }

  .round-option {
    padding: 10px 14px;
    font-size: 13px;
  }

  .form-check-input {
    width: 18px;
    height: 18px;
  }

  .form-check-label {
    font-size: 13px;
  }

  .validation-message {
    font-size: 11px;
    padding: 7px;
    bottom: -18px;
  }

  .validation-message i {
    font-size: 13px;
  }

  .bg-game-icon {
    font-size: 30px;
  }
}

@media (max-width: 319px) {
  .container {
    padding: 4px;
    align-items: flex-start;
    overflow: hidden;
  }

  .form-container {
    max-width: 98%;
    padding: 10px;
    max-height: calc(100vh - 8px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 4px auto;
    min-height: auto;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }

  .player-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  h5 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .input-wrapper {
    max-width: min(400px, 90vw);
    margin-bottom: 10px;
  }

  .form-control {
    padding: 8px 35px;
    font-size: 13px;
  }

  .input-icon {
    font-size: 17px;
    left: 10px;
  }

  .status-indicator {
    font-size: 18px;
    right: 10px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 12px;
    min-width: 90px;
  }

  .button-container {
    max-width: min(400px, 90vw);
    gap: 8px;
  }

  .option-container {
    max-width: min(400px, 90vw);
    padding: 10px;
    margin: 8px auto;
  }

  .rounds-options {
    gap: 6px;
    flex-direction: column;
  }

  .round-option {
    padding: 8px 12px;
    font-size: 12px;
  }

  .form-check-input {
    width: 17px;
    height: 17px;
  }

  .form-check-label {
    font-size: 12px;
  }

  .validation-message {
    font-size: 10px;
    padding: 6px;
    bottom: -15px;
  }

  .validation-message i {
    font-size: 12px;
  }

  .bg-game-icon {
    font-size: 28px;
  }
}

/* Height-Based Media Queries */
@media (max-height: 800px) {
  .container {
    padding: 10px;
    align-items: flex-start;
    overflow: hidden;
  }

  .form-container {
    max-width: 90%;
    padding: 20px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 5px auto;
    min-height: auto;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }

  .player-name {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  h1 {
    font-size: 1.9rem;
    margin-bottom: 15px;
  }

  h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .input-wrapper {
    max-width: min(650px, 90vw);
    margin-bottom: 15px;
  }

  .form-control {
    padding: 12px 50px;
    font-size: 16px;
  }

  .input-icon {
    font-size: 20px;
    left: 16px;
  }

  .status-indicator {
    font-size: 24px;
    right: 16px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 15px;
    min-width: 120px;
  }

  .button-container {
    max-width: min(650px, 90vw);
    gap: 10px;
  }

  .option-container {
    max-width: min(650px, 90vw);
    padding: 15px;
    margin: 10px auto;
  }

  .rounds-options {
    gap: 10px;
    flex-direction: column;
  }

  .round-option {
    padding: 12px 18px;
    font-size: 15px;
  }

  .form-check-input {
    width: 20px;
    height: 20px;
  }

  .form-check-label {
    font-size: 15px;
  }

  .validation-message {
    font-size: 13px;
    padding: 9px;
    bottom: -20px;
  }

  .validation-message i {
    font-size: 15px;
  }

  .bg-game-icon {
    font-size: 32px;
  }
}

@media (max-height: 600px) {
  .container {
    padding: 5px;
    align-items: flex-start;
    overflow: hidden;
  }

  .form-container {
    max-width: 95%;
    padding: 12px;
    max-height: calc(100vh - 10px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 4px auto;
    min-height: auto;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
  }

  .player-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  h5 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .input-wrapper {
    max-width: min(500px, 90vw);
    margin-bottom: 10px;
  }

  .form-control {
    padding: 10px 40px;
    font-size: 14px;
  }

  .input-icon {
    font-size: 18px;
    left: 12px;
  }

  .status-indicator {
    font-size: 20px;
    right: 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
    min-width: 100px;
  }

  .button-container {
    max-width: min(500px, 90vw);
    gap: 8px;
  }

  .option-container {
    max-width: min(500px, 90vw);
    padding: 12px;
    margin: 8px auto;
  }

  .rounds-options {
    gap: 8px;
    flex-direction: column;
  }

  .round-option {
    padding: 10px 14px;
    font-size: 13px;
  }

  .form-check-input {
    width: 18px;
    height: 18px;
  }

  .form-check-label {
    font-size: 13px;
  }

  .validation-message {
    font-size: 11px;
    padding: 7px;
    bottom: -18px;
  }

  .validation-message i {
    font-size: 13px;
  }

  .bg-game-icon {
    font-size: 28px;
  }
}

@media (max-width: 359px) and (max-height: 500px) {
  .container {
    padding: 4px;
    align-items: flex-start;
    overflow: hidden;
  }

  .form-container {
    max-width: 98%;
    padding: 8px;
    max-height: calc(100vh - 6px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 3px auto;
    min-height: auto;
  }

  .form-container::-webkit-scrollbar {
    display: none;
  }

  .player-avatar, .avatar-container {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
  }

  .player-name {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  h5 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .input-wrapper {
    max-width: min(400px, 90vw);
    margin-bottom: 8px;
  }

  .form-control {
    padding: 8px 35px;
    font-size: 12px;
  }

  .input-icon {
    font-size: 16px;
    left: 10px;
  }

  .status-indicator {
    font-size: 18px;
    right: 10px;
  }

  .btn {
    padding: 8px 18px;
    font-size: 12px;
    min-width: 90px;
  }

  .button-container {
    max-width: min(400px, 90vw);
    gap: 6px;
  }

  .option-container {
    max-width: min(400px, 90vw);
    padding: 8px;
    margin: 6px auto;
  }

  .rounds-options {
    gap: 6px;
    flex-direction: column;
  }

  .round-option {
    padding: 8px 12px;
    font-size: 12px;
  }

  .form-check-input {
    width: 16px;
    height: 16px;
  }

  .form-check-label {
    font-size: 12px;
  }

  .validation-message {
    font-size: 10px;
    padding: 6px;
    bottom: -15px;
  }

  .validation-message i {
    font-size: 12px;
  }

  .bg-game-icon {
    font-size: 26px;
  }
}