:root { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0b0e14;
  color: #e6e8ee;
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
}
.menu { width: 100%; max-width: 640px; }
h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.subtitle { color: #9aa2b1; margin-top: 0; margin-bottom: 2rem; }
.server-subtitle { margin-bottom: 1.25rem; }

.login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.login-tab {
  background: #151a24;
  color: #9aa2b1;
  border: 1px solid #262c3a;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.login-tab.active {
  background: #1e2640;
  color: #e6e8ee;
  border-color: #4f7cff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #9aa2b1;
}
.auth-form input {
  background: #151a24;
  border: 1px solid #262c3a;
  border-radius: 6px;
  color: #e6e8ee;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
}
.auth-submit { align-self: flex-start; margin-top: 0.25rem; border: none; }

.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.logout-btn {
  background: transparent;
  color: #9aa2b1;
  border: 1px solid #262c3a;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.logout-btn:hover { color: #e6e8ee; border-color: #4a5160; }

.instance-list { display: flex; flex-direction: column; gap: 1rem; }
.instance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #151a24;
  border: 1px solid #262c3a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.instance-info { display: flex; align-items: center; gap: 0.75rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #4a4f5c; flex-shrink: 0; }
.status-dot.online { background: #34d399; }
.status-dot.offline { background: #f87171; }
.instance-name { font-weight: 600; font-size: 1.1rem; }
.instance-meta { color: #9aa2b1; font-size: 0.85rem; }
.play-btn {
  background: #4f7cff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.play-btn[aria-disabled="true"] { background: #2a2f3a; color: #6b7280; cursor: not-allowed; pointer-events: none; }
.loading, .error { color: #9aa2b1; }
.error { color: #f87171; }
.hidden { display: none !important; }
