/* ==========================================================================
   Aplikasi user — halaman login, lobby, buat room, join room.
   Bergantung pada theme.css (dimuat lebih dulu).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout autentikasi: panel brand + form
   -------------------------------------------------------------------------- */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 52px;
  overflow: hidden;
  border-right: 1px solid rgba(96, 165, 250, 0.12);
  background:
    radial-gradient(720px 480px at 12% 0%, rgba(59, 130, 246, 0.32), transparent 58%),
    radial-gradient(540px 420px at 90% 100%, rgba(14, 165, 233, 0.18), transparent 58%),
    radial-gradient(380px 280px at 40% 70%, rgba(99, 102, 241, 0.1), transparent 70%),
    linear-gradient(180deg, #07101d 0%, #081526 100%);
}

.auth-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 179, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 179, 233, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(760px 520px at 30% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(760px 520px at 30% 30%, #000 20%, transparent 78%);
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.85rem;
  line-height: 1.1;
}

.auth-brand .brand-icon,
.auth-mobile-brand .brand-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-headline h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.auth-headline p {
  max-width: 46ch;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-features {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 179, 233, 0.12);
  background: rgba(8, 16, 32, 0.45);
  font-size: 0.88rem;
  color: var(--text-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.16);
  color: var(--brand-300);
}

.auth-features svg {
  width: 18px;
  height: 18px;
  margin: 0;
  color: inherit;
}

.auth-features strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.auth-foot {
  font-size: 0.78rem;
  color: var(--text-3);
}

.auth-main {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(37, 99, 235, 0.16), transparent 55%),
    #070c16;
}

.auth-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 80% 10%, rgba(59, 130, 246, 0.2), transparent 52%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(14, 165, 233, 0.1), transparent 50%);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

html:not(.is-android) .auth-card.auth-glass-card {
  padding: 36px 34px 28px;
  border-radius: 24px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  background: rgba(13, 22, 40, 0.72);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html:not(.is-android) .auth-glass-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(2, 8, 20, 0.45);
}

html:not(.is-android) .auth-glass-logo .brand-icon {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

html:not(.is-android) .auth-card-head {
  text-align: center;
  margin-bottom: 22px;
}

html:not(.is-android) .auth-card-head h1 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

html:not(.is-android) .auth-card-head p {
  margin-top: 6px;
}

html:not(.is-android) .auth-glass-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html:not(.is-android) .auth-glass-field {
  margin: 0;
}

html:not(.is-android) .auth-input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 12px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(6, 12, 24, 0.72);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

html:not(.is-android) .auth-input-shell:focus-within {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: var(--ring);
}

html:not(.is-android) .auth-input-icon {
  display: inline-flex;
  color: var(--text-3);
}

html:not(.is-android) .auth-input-shell input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

html:not(.is-android) .auth-input-shell input:focus {
  outline: none;
  box-shadow: none;
}

html:not(.is-android) .auth-input-action {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html:not(.is-android) .auth-input-action:hover {
  color: var(--brand-300);
  background: rgba(59, 130, 246, 0.1);
}

html:not(.is-android) .password-toggle .password-toggle-icon {
  display: none;
  width: 20px;
  height: 20px;
}

html:not(.is-android) .password-toggle[aria-pressed='false'] .password-toggle-show,
html:not(.is-android) .password-toggle[aria-pressed='true'] .password-toggle-hide {
  display: block;
}

html:not(.is-android) .auth-glass-meta {
  display: flex;
  justify-content: flex-end;
}

html:not(.is-android) .auth-forgot-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--brand-400);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

html:not(.is-android) .auth-forgot-link:hover {
  color: var(--brand-300);
}

html:not(.is-android) .auth-glass-submit {
  min-height: 50px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

html:not(.is-android) .auth-glass-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

html:not(.is-android) .auth-glass-alt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(148, 179, 233, 0.22);
  background: rgba(8, 16, 32, 0.45);
  color: var(--text);
  font-weight: 600;
}

html:not(.is-android) .auth-glass-alt-btn:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.1);
}

html:not(.is-android) .auth-glass-hint {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

html:not(.is-android) .auth-glass-foot {
  margin-top: 18px;
  text-align: center;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-3, var(--text-2));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line, rgba(255, 255, 255, 0.12));
}

.auth-pqchat-btn {
  border-color: var(--brand-line, rgba(59, 130, 246, 0.35));
  color: var(--brand-300, #93c5fd);
  background: rgba(59, 130, 246, 0.08);
}

.auth-pqchat-btn:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.55);
}

.auth-pqchat-form {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.auth-pqchat-panel[hidden],
#passwordLoginPanel[hidden] {
  display: none !important;
}

.auth-card-head {
  margin-bottom: 26px;
}

.auth-card-head h1 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.auth-card-head p {
  color: var(--text-2);
  font-size: 0.9rem;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 940px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-mobile-brand {
    display: flex;
  }

  .auth-main {
    align-items: flex-start;
    padding-top: 56px;
  }
}

/* --------------------------------------------------------------------------
   Halaman berkartu (lobby, create, join)
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.page-flow {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
}

.flow-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(37, 99, 235, 0.38), transparent 55%),
    radial-gradient(ellipse 90% 60% at 85% 20%, rgba(14, 165, 233, 0.18), transparent 50%),
    linear-gradient(165deg, #04101f 0%, #071a32 38%, #05101e 100%);
}

.flow-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 12, 24, 0.2) 0%,
    rgba(4, 12, 24, 0.45) 55%,
    rgba(4, 12, 24, 0.82) 100%
  );
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
}

.card-glass {
  border-radius: 24px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(12, 28, 56, 0.42);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(59, 130, 246, 0.08);
}

.card-wide {
  max-width: 520px;
}

.field-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flow-submit {
  margin-top: 4px;
  border-radius: 14px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 48%, #1d4ed8 100%) !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42);
}

.card-flow {
  padding: 22px 20px 24px;
}

.flow-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.flow-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.14));
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #93c5fd;
}

.flow-card-icon--join {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.12));
}

.flow-card-head .section-title {
  margin-bottom: 4px;
}

.flow-card-head .room-hint {
  margin: 0;
}

.flow-input-shell {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 18, 36, 0.55);
}

.flow-input-shell:focus-within {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.flow-input-shell input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f1f5f9;
  font-size: 16px;
}

.center {
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 600;
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.brand h1 {
  font-size: 1.2rem;
}

.brand p {
  margin-top: 3px;
  color: var(--text-2);
  font-size: 0.85rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.room-hint {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
}

/* --------------------------------------------------------------------------
   Lobby — clean dark (mockup referensi)
   -------------------------------------------------------------------------- */

.lobby {
  --lobby-gold: #e8b923;
  --lobby-blue: #2563eb;
  --lobby-blue-light: #3b82f6;
  --lobby-blue-soft: #60a5fa;
  --lobby-bg: #0a101f;
  --lobby-muted: #94a3b8;
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--lobby-bg);
  color: #f8fafc;
}

.lobby-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 18%, rgba(37, 99, 235, 0.14), transparent 62%),
    linear-gradient(180deg, #0c1428 0%, var(--lobby-bg) 45%, #080e1a 100%);
}

.lobby-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px;
  background: rgba(10, 16, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.lobby-topbar-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lobby-topbar-side--end {
  justify-content: flex-end;
}

.lobby-topbar-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  letter-spacing: -0.01em;
}

.lobby-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(226, 232, 240, 0.88);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html:not(.is-desktop-app) .lobby-settings-btn {
  display: none;
}

.lobby-text-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.lobby-text-btn:active {
  opacity: 0.65;
}

.lobby-main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lobby-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.lobby-hero {
  text-align: center;
  margin-bottom: 22px;
}

.lobby-mascot {
  width: min(62vw, 230px);
  height: auto;
  margin: 0 auto 14px;
  display: block;
  object-fit: contain;
}

.lobby-greeting {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.lobby-name {
  font-weight: 700;
  color: var(--lobby-gold);
}

.lobby-desc {
  margin: 0;
  padding: 0 6px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--lobby-muted);
}

.lobby-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.lobby-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  transition: transform 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.lobby-btn--create {
  background: linear-gradient(165deg, #1d6fd4 0%, #1558b8 100%);
}

.lobby-btn--join {
  background: linear-gradient(165deg, #2080e8 0%, #1868c8 100%);
}

.lobby-btn:active {
  transform: scale(0.97);
  filter: brightness(1.06);
}

.lobby-btn__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.lobby-btn__label {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.lobby-notice {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.45;
}

.lobby-notice[hidden] {
  display: none !important;
}

.lobby-card {
  flex-shrink: 0;
  width: 100%;
  margin-top: 18px;
  padding: 16px 16px 6px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(16, 24, 39, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.lobby-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.lobby-card__shield {
  flex-shrink: 0;
  color: var(--lobby-blue-light);
  line-height: 0;
}

.lobby-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  flex: 1;
}

.lobby-server-close {
  margin-left: auto;
  flex-shrink: 0;
}

.lobby-tips {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lobby-tip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.lobby-tip:last-child {
  border-bottom: none;
}

.lobby-tip__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: var(--lobby-blue-soft);
}

.lobby-tip__text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.9);
}

.lobby-tip__meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.75);
}

.lobby-server {
  padding-bottom: 16px;
}

.lobby-server-popover {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.lobby-server-popover[hidden] {
  display: none !important;
}

.lobby-server-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.45);
}

.lobby-server-dialog {
  position: absolute;
  top: 52px;
  left: 16px;
  width: min(400px, calc(100vw - 24px));
  max-width: 400px;
  margin: 0;
  transform-origin: top left;
}

.lobby-server-dialog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.lobby-server-dialog-head h2 {
  margin: 0;
  flex: 1;
}

.lobby-server-dialog-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2, #9db0cd);
  font-size: 1.55rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.lobby-server-dialog-x:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

.lobby-server-dialog .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(148, 163, 184, 0.16));
}

.lobby-server-hint {
  margin: 10px 0 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--lobby-muted);
}

.lobby-server-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  color: rgba(226, 232, 240, 0.82);
}

.lobby-server-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 14, 26, 0.85);
  color: #e9eff9;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.8rem;
}

.lobby-server-input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
}

.lobby-server-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lobby-server-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(165deg, #1d6fd4 0%, #1558b8 100%);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 9px 12px;
  cursor: pointer;
}

.lobby-server-btn--ghost {
  background: rgba(24, 34, 53, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.lobby-server-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.lobby-server-status {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 14, 26, 0.7);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #bfdbfe;
  white-space: pre-wrap;
}

.lobby-server-status.is-ok {
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}

.lobby-server-status.is-err {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.lobby-server-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.lobby-server-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--lobby-muted);
}

.lobby-server-list strong {
  color: #6ee7b7;
}

.lobby-server-list .fail {
  color: #f87171;
}
