* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: #101827;
  font-family: Arial, sans-serif;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  background: #101827;
}

#menu {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: white;
  padding: 20px;
}

.menu-card {
  width: min(460px, 100%);
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.menu-card h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
}

.menu-card p {
  margin: 14px 0 22px;
  color: #dbeafe;
  font-size: 18px;
}

#roomInput {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  outline: none;
  border-radius: 16px;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  color: #111827;
  background: white;
}

.menu-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  color: #111827;
  background: #facc15;
  transition: transform 0.12s ease, filter 0.12s ease;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

#joinBtn {
  background: #22c55e;
}

#inviteBox {
  min-height: 22px;
  margin-top: 16px;
  color: #bfdbfe;
  font-size: 14px;
  word-break: break-all;
}

@media (max-width: 520px) {
  .menu-card {
    padding: 24px;
  }

  .menu-card h1 {
    font-size: 36px;
  }

  .menu-buttons {
    grid-template-columns: 1fr;
  }
}