/*
 * Header visitante (Entrar / Cadastrar) — CSS estático para não depender do build do Tailwind.
 * Cores alinhadas a app/assets/tailwind/base/palette.css
 */

.navbar--guest-auth {
  background-color: transparent !important;
  box-shadow: none !important;
}

.navbar--lobby-auth {
  background-color: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.navbar--lobby-auth > nav.lobby-nav-logged {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

nav.lobby-nav-logged {
  margin: 0;
  padding: 0.65rem 1rem 0.45rem;
  box-sizing: border-box;
  background: transparent;
}

.lobby-nav-logged__shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 5px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  background: #1c5228;
  border-radius: 9999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lobby-nav-logged__avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.lobby-nav-logged__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Metade esquerda vazia + pill a partir do meio até à direita (Figma). */
.lobby-nav-logged__track {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 0;
}

.lobby-nav-logged__wallet {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  padding: 0 0.55rem 0 0.06rem;
  background: rgba(102, 163, 101, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-nav-logged__coin {
  width: 22px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
}

.lobby-nav-logged__amount {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  color: #fbfcfc;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.lobby-nav-logged__amount small {
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.9;
}

.lobby-nav-logged__amount span {
  margin-top: 0.05rem;
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  font-weight: 700;
  white-space: nowrap;
}

.lobby-nav-logged__gift {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #488453;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lobby-nav-logged__gift:active {
  transform: scale(0.97);
}

.lobby-nav-logged__gift-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

nav.lobby-nav-auth {
  font-family: var(--cx-font-sans, "Inter", ui-sans-serif, system-ui, sans-serif);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding: 1.2rem 1.125rem 1.25rem;
  box-sizing: border-box;
  /* Gradiente sobre ilustração; URL real vem de --lobby-nav-illustration (asset_path no NavComponent) */
  background-color: #1a3d24;
  background-image:
    linear-gradient(
      3.05deg,
      rgba(166, 217, 15, 0.8) 2.49%,
      rgba(3, 243, 235, 0.8) 95.72%
    ),
    var(--lobby-nav-illustration, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  border-radius: 0 0 1.25rem 1.25rem;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.22);
}

nav.lobby-nav-auth a.lobby-nav-auth__btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  text-decoration: none !important;
  color: #fbfcfc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-tap-highlight-color: transparent;
  transition:
    filter 0.15s ease,
    transform 0.12s ease;
}

nav.lobby-nav-auth a.lobby-nav-auth__btn--enter {
  background-color: #488453 !important;
}

nav.lobby-nav-auth a.lobby-nav-auth__btn--register {
  background-color: #1c5228 !important;
  color: #7dc087 !important;
}

nav.lobby-nav-auth a.lobby-nav-auth__btn:hover {
  filter: brightness(1.06);
}

nav.lobby-nav-auth a.lobby-nav-auth__btn:active {
  transform: scale(0.98);
}
