
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #090d18;
  color: white;
  font-family: Arial, sans-serif;
}

.topbar {
  height: 75px;
  padding: 0 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #252b40;
}

.logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo span,
.hero h1 span {
  color: #9675ff;
}

.online {
  color: #48d99a;
  font-size: 11px;
  font-weight: bold;
}

main {
  min-height: calc(100vh - 130px);
  display: grid;
  place-items: center;
  padding: 35px 15px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 500px;
}

.screen.active {
  display: block;
}

.hero {
  text-align: center;
  margin-bottom: 30px;
}

.tag {
  color: #a58aff;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
}

.hero h1 {
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.15;
  margin: 18px 0;
}

.hero p,
.game-card p {
  color: #9ba5ba;
  line-height: 1.6;
}

.game-card {
  background: #151c2e;
  border: 1px solid #303a55;
  border-radius: 22px;
  padding: 28px;
  text-align: center;
}

.game-card h2 {
  margin-top: 0;
  margin-bottom: 22px;
}

button {
  width: 100%;
  padding: 16px;
  margin: 7px 0;
  border: 1px solid #38435e;
  border-radius: 11px;
  background: #252f47;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: .2s;
}

button:hover {
  background: #394664;
  transform: translateY(-2px);
}

button.primary {
  background: #7957f5;
  border-color: #7957f5;
}

button.primary:hover {
  background: #906fff;
}

.separator {
  margin: 18px 0;
  color: #78849d;
  font-size: 11px;
  letter-spacing: 1px;
}

.waiting {
  background: #202a40;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  color: #c2c9da;
}

.room-code {
  font-size: 35px;
  color: #a58aff;
  letter-spacing: 8px;
  font-weight: bold;
  margin: 25px;
}

input {
  width: 100%;
  padding: 17px;
  background: #090d18;
  color: white;
  border: 1px solid #46516c;
  border-radius: 10px;
  text-align: center;
  font-size: 18px;
  margin-bottom: 15px;
}

footer {
  padding: 22px;
  text-align: center;
  color: #69748c;
  font-size: 11px;
}

@media(max-width:480px) {
  .topbar {
    padding: 0 5%;
  }

  .game-card {
    padding: 22px;
  }
}
