
.site-header {
  width: 100%;
  background: #020617;
  border-bottom: 1px solid #334155;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.site-menu {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 11px;
  border: 1px solid transparent;
}

.site-menu a:hover {
  color: #fff;
  border-color: #334155;
  background: #0f172a;
}

.menu-toggle {
  display: none;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 22px;
  padding: 6px 10px;
  cursor: pointer;
}

.ad-box {
  margin-top: 22px;
  padding: 12px;
  background: #020617;
  border: 1px solid #334155;
  min-height: 100px;
}

.ad-label {
  text-align: center;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .site-menu {
    display: none;
    width: 100%;
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-menu.show {
    display: flex;
  }

  .site-menu a {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 12px;
  }
}



* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #08111f;
  color: #fff;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, #1d4ed8 0, transparent 35%),
    linear-gradient(135deg, #08111f, #020617);
}

.card {
  width: 100%;
  max-width: 430px;
  background: #0f172a;
  border: 2px solid #1e293b;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.logo {
  width: 70px;
  height: 70px;
  background: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 16px;
  border: 2px solid #60a5fa;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 28px;
}

.sub {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 22px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
  border: 1px solid #334155;
}

.tab {
  padding: 13px;
  border: 0;
  background: #020617;
  color: #94a3b8;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: #2563eb;
  color: #fff;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 15px;
  border: 2px solid #334155;
  background: #020617;
  color: #fff;
  font-size: 16px;
  outline: none;
  margin-bottom: 16px;
}

input:focus {
  border-color: #3b82f6;
}

.main-btn {
  width: 100%;
  padding: 15px;
  border: 0;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

.main-btn:hover {
  background: #15803d;
}

#message {
  margin-top: 16px;
  padding: 12px;
  display: none;
  line-height: 1.5;
}

#message.error {
  display: block;
  background: #450a0a;
  border: 1px solid #dc2626;
  color: #fecaca;
}

#message.success {
  display: block;
  background: #052e16;
  border: 1px solid #22c55e;
  color: #bbf7d0;
}

.player-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.player-box div {
  background: #020617;
  border: 1px solid #334155;
  padding: 14px;
}

.player-box small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 4px;
}

.player-box strong {
  color: #fff;
  font-size: 16px;
}

.divider {
  text-align: center;
  margin: 22px 0;
  color: #64748b;
  font-weight: 800;
}

.main-btn.blue {
  background: #2563eb;
}

.main-btn.blue:hover {
  background: #1d4ed8;
}

.logout-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #475569;
  background: transparent;
  color: #cbd5e1;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover {
  background: #1e293b;
}

.room-code {
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 4px;
  background: #020617;
  border: 2px dashed #38bdf8;
  color: #38bdf8;
  padding: 16px;
  margin: 18px 0;
}

.players-box {
  margin-top: 22px;
  background: #020617;
  border: 1px solid #334155;
  padding: 16px;
}

.players-box h3 {
  margin-top: 0;
  color: #38bdf8;
}

.player-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #1e293b;
}

.player-row:last-child {
  border-bottom: 0;
}

.game-page {
  min-height: 100vh;
  background: #020617;
  padding: 14px;
  color: #fff;
}

.game-card {
  max-width: 520px;
  margin: auto;
}

.game-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.game-top div {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 12px;
  text-align: center;
}

.game-top small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
}

.game-top b {
  font-size: 20px;
  color: #38bdf8;
}

.forming-word {
  min-height: 50px;
  background: #0f172a;
  border: 2px solid #2563eb;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.letter {
  height: 62px;
  border: 2px solid #334155;
  background: #0f172a;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.letter.selected {
  background: #facc15;
  color: #000;
  border-color: #fde047;
}

.clear-btn {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
