/* ===== INDEX / LOBBY STYLES ===== */

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lobby container */
.container {
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  animation: lamb-enter 0.4s ease-in-out;
  z-index: 1;
}

/* ===== TAB NAVIGATION ===== */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-teal);
}

.tab-button {
  flex: 1;
  padding: 0.75rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-void) 100%);
  color: var(--cream-dim);
  border: 2px solid var(--border-wood);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tab-button:hover {
  color: var(--cream);
  background: linear-gradient(180deg, var(--border-teal) 0%, var(--bg-dark) 100%);
  border-color: var(--border-teal);
}

.tab-button.active {
  background: linear-gradient(180deg, var(--border-teal) 0%, var(--bg-panel) 100%);
  color: var(--cream);
  border-color: var(--border-teal-lt);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 -2px 8px rgba(90,125,110,0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: lamb-enter 0.3s ease-in-out;
}

/* ===== FORM ELEMENTS ===== */

h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.6);
}

/* Decorative line under title */
h2::after {
  content: '✦  ◈  ✦';
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--cream-dim);
  opacity: 0.5;
  letter-spacing: 0.5em;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 2px solid var(--border-wood);
  border-radius: 2px;
  color: var(--cream);
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  transition: all 0.2s ease-in-out;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}

input::placeholder {
  color: var(--cream-dark);
  font-style: italic;
}

input:focus {
  outline: none;
  border-color: var(--border-teal-lt);
  box-shadow:
    inset 0 0 10px rgba(0,0,0,0.4),
    0 0 8px rgba(90,125,110,0.3);
}

/* Lobby full-width buttons (extend .btn-lamb) */
button {
  width: 100%;
  padding: 0.75rem;
}

/* ===== LOADING ===== */

.loading {
  display: none;
  text-align: center;
  color: var(--cream-dim);
  margin-top: 1rem;
  font-family: 'IM Fell English', serif;
}

.loading.show {
  display: block;
}

.spinner {
  border: 2px solid var(--border-wood);
  border-top: 2px solid var(--gold);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 0.5rem;
}

/* ===== TITLE ICON ===== */

.title-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: lamb-wobble 3s ease-in-out infinite;
}

/* ===== KEY HINTS (lobby-specific spacing) ===== */

.key-hints {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(90, 125, 110, 0.3);
}
