:root {
  color-scheme: dark;
  font-family: Inter, Poppins, sans-serif;
  background: #0c0e1a;
  color: #f8fafc;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(147, 51, 234, 0.2), transparent 42%),
    radial-gradient(ellipse at 85% 85%, rgba(236, 72, 153, 0.14), transparent 40%),
    #0c0e1a;
}

.create-lobby {
  width: min(100%, 560px);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: rgba(20, 22, 38, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.create-lobby__back {
  color: #c4b5fd;
  text-decoration: none;
  font-size: 0.9rem;
}

.create-lobby__header { margin: 1.75rem 0 2rem; text-align: center; }

.create-lobby__icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--game-accent), rgba(255, 255, 255, 0.16));
  font-size: 1.7rem;
}

.create-lobby__header h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.5rem); }

.create-lobby__header p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.create-lobby__label {
  display: block;
  margin: 1.1rem 0 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}

.create-lobby__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

.create-lobby__input:focus { border-color: var(--game-accent); }

.create-lobby__input option {
  background: #141626;
  color: #f8fafc;
}

.create-lobby__avatar-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.25rem 0 1.1rem;
}

.create-lobby__avatar-picker button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.create-lobby__avatar-picker img {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.create-lobby__avatar-picker span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  text-align: center;
}

.create-lobby__submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--game-accent), #ec4899);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.create-lobby__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.create-lobby__error {
  min-height: 1.25rem;
  margin: 0.8rem 0 0;
  color: #fda4af;
  font-size: 0.85rem;
}

.create-lobby__hint {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8rem;
  text-align: center;
}
