.custom-game-nav {
  position: relative;
  z-index: 100000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  overflow-x: clip;
}

.custom-game-nav .nav-inner {
  width: min(1280px, 100%);
}

.hamburger-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.hamburger-btn span {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: #374151;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 700;
  color: #4b5563;
}

.nav-links a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0078bf;
}

.form-return {
  width: min(1120px, 92%);
  margin: -2rem auto 4rem;
  display: flex;
  justify-content: center;
}

.return-to-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.return-to-selector:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.14);
}

@media (max-width: 768px) {
  .custom-game-nav .nav-inner {
    padding: 0.85rem 1rem !important;
  }

  .custom-game-nav img.h-10 {
    height: 34px !important;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    z-index: 100001;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex !important;
  }

  .nav-links a {
    padding: 0.7rem 0.85rem;
    border-radius: 0.8rem;
    text-align: right;
    font-size: 0.95rem;
  }

  .nav-links a:hover {
    background: #f8fafc;
  }

  .form-return {
    width: min(100% - 2rem, 420px);
    margin: -0.5rem auto 2.5rem;
  }

  .return-to-selector {
    width: 100%;
    font-size: 0.95rem;
  }
}
