.homepage-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 8px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
  font-size: 1em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

/* Username section */
.username-section {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.random-name {
  background: linear-gradient(135deg, #6ea8fe 0%, #5b78d6 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(110, 168, 254, 0.3);
  user-select: none;
}

.random-name:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(110, 168, 254, 0.4);
}

.username-input {
  padding: 12px 16px;
  border: 2px solid #6ea8fe;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  outline: none;
  color: white;
  background: rgba(255,255,255,0.1);
  width: 200px;
  transition: all 0.2s;
}

.username-input:focus {
  border-color: #5b78d6;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 8px rgba(110, 168, 254, 0.3);
}

.confirm-username-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  transition: all 0.2s;
  white-space: nowrap;
}

.confirm-username-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.confirm-username-btn:active {
  transform: translateY(0);
}

/* Lobby section - clean grid */
.lobby-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.lobby-grid {
  display: contents;
}

.create-section, .join-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.create-section h3, .join-section h3 {
  color: white;
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lobby-name-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: all 0.2s;
}

/* Decade filters */
.decade-filters {
  margin-bottom: 16px;
  text-align: left;
}

.decade-filters h4 {
  color: white;
  font-size: 13px;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.decade-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decade-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.decade-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
}

.decade-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #6ea8fe;
}

.decade-checkbox span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}

/* Rounds filter */
.rounds-filter {
  margin-bottom: 16px;
  text-align: left;
}

.rounds-filter h4 {
  color: white;
  font-size: 13px;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.rounds-input {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}

.rounds-input:focus {
  border-color: #6ea8fe;
  background: rgba(255, 255, 255, 0.08);
}

.lobby-name-input:focus {
  border-color: #6ea8fe;
  background: rgba(255, 255, 255, 0.08);
}

.lobby-name-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.create-btn, .refresh-btn {
  width: 100%;
  background: linear-gradient(135deg, #6ea8fe 0%, #5b78d6 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(110, 168, 254, 0.3);
}

.create-btn:hover, .refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(110, 168, 254, 0.4);
}

.create-btn:active, .refresh-btn:active {
  transform: translateY(0);
}

/* Lobby list */
.lobby-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.lobby-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.lobby-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.lobby-info {
  text-align: left;
  flex: 1;
}

.lobby-name {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.lobby-players {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.join-lobby-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.join-lobby-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4);
}

.join-lobby-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.5);
}

.no-lobbies {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  padding: 24px 12px;
  font-size: 14px;
}

/* Scrollbar styling */
.lobby-list::-webkit-scrollbar {
  width: 6px;
}

.lobby-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.lobby-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.lobby-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2em;
  }

  .lobby-section {
    grid-template-columns: 1fr;
  }

  .username-section {
    flex-direction: column;
  }

  .username-input {
    width: 100%;
  }

  .create-section, .join-section {
    padding: 20px;
  }
}