* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #050816;
  color: white;
  overflow-x: hidden;
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(236,72,153,0.22), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(34,197,94,0.20), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(59,130,246,0.22), transparent 35%),
    linear-gradient(-45deg, #050816, #0f172a, #111827, #050816);
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}
.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
  mix-blend-mode: screen;
  animation: blobMove 18s infinite ease-in-out;
}

.blob1 {
  background: #ff4da6;
  left: -5%;
  top: -5%;
}

.blob2 {
  background: #00ff99;
  right: -8%;
  top: 20%;
  animation-delay: 6s;
}

.blob3 {
  background: #3b82f6;
  left: 30%;
  bottom: -10%;
  animation-delay: 12s;
}
@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(40px, -60px) scale(1.08);
  }

  50% {
    transform: translate(-20px, 30px) scale(1.16);
  }

  75% {
    transform: translate(60px, 20px) scale(0.95);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
.lobby {
  min-height: 100vh;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.hero,
.room-panel,
.game-panel,
.players-panel,
.game-live {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.label {
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 14px;
}

h1 {
  font-size: 78px;
  line-height: 0.95;
  margin: 10px 0;
}

.subtitle {
  font-size: 24px;
  color: #d1d5db;
}

.room-panel {
  display: grid;
  grid-template-columns: 1fr 170px;
  align-items: center;
  gap: 20px;
}

#roomCode {
  font-size: 96px;
  margin: 0;
  letter-spacing: 8px;
}

.qr-box {
  height: 170px;
  background: white;
  color: #111827;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: bold;
}

.game-panel h3 {
  font-size: 42px;
  margin: 10px 0;
}

.game-desc {
  color: #d1d5db;
  font-size: 20px;
}

.players-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.game-live {
  grid-column: span 2;
}

button {
  width: 100%;
  padding: 18px;
  margin-top: 14px;
  font-size: 22px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

ul, ol {
  padding-left: 0;
  list-style: none;
}

li {
  font-size: 26px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.phone {
  max-width: 430px;
  margin: 0 auto;
  padding: 28px;
  min-height: 100vh;
}

.phone h1 {
  font-size: 44px;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px;
  margin: 10px 0;
  font-size: 20px;
  border-radius: 14px;
  border: none;
}

textarea {
  min-height: 120px;
}

.guess-card {
  background: rgba(255,255,255,0.08);
  padding: 16px;
  border-radius: 16px;
  margin: 16px 0;
}

@media (max-width: 900px) {
  .lobby {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .game-live {
    grid-column: span 1;
  }

  h1 {
    font-size: 48px;
  }

  #roomCode {
    font-size: 64px;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 140px 120px, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 300px 80px, rgba(255,255,255,0.12), transparent),
    radial-gradient(2px 2px at 500px 300px, rgba(255,255,255,0.08), transparent);
  background-size: 600px 600px;
  animation: particlesMove 60s linear infinite;
  pointer-events: none;
}

@keyframes particlesMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-600px);
  }
}
.phone {
  position: relative;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.phone::before {
  content: "TYLER GAMES";
  display: block;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 18px;
}

.phone h1 {
  line-height: 0.95;
  margin: 0 0 22px;
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.phone input,
.phone textarea,
.phone select {
  background: rgba(255,255,255,0.92);
  color: #111827;
  outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.phone input:focus,
.phone textarea:focus,
.phone select:focus {
  box-shadow: 0 0 0 4px rgba(165,180,252,0.35);
}

.phone button {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  box-shadow: 0 16px 35px rgba(20,184,166,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.phone button:active {
  transform: scale(0.97);
  box-shadow: 0 8px 18px rgba(20,184,166,0.22);
}

#message {
  margin-top: 18px;
  color: #d1d5db;
  font-size: 18px;
  text-align: center;
}

#gameArea {
  margin-top: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.08);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
}

#gameArea h2 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.guess-card p {
  font-size: 18px;
  line-height: 1.35;
}

@media (max-width: 600px) {
  body {
    min-height: 100vh;
  }

  .phone {
    min-height: 100vh;
    max-width: none;
    border-radius: 0;
    padding: 28px 20px;
  }

  .phone h1 {
    font-size: 42px;
  }
}
