/* Dragonia Casino header: use the supplied dragon artwork as the single mark. */
.lobby-logo {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
  gap: .55rem;
  overflow: visible !important;
  white-space: nowrap;
}

/* Replace the former crown in-place; do not add a second pseudo-element. */
.lobby-logo::before {
  content: none !important;
  display: none !important;
}

.lobby-logo-mark {
  display: block !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: url("/images/dragonia-logo.webp") center / contain no-repeat !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 8px rgba(238, 174, 55, .22)) !important;
  mix-blend-mode: screen;
  color: transparent !important;
  -webkit-mask-image: radial-gradient(ellipse 96% 96% at center, #000 74%, rgba(0,0,0,.92) 84%, rgba(0,0,0,.55) 93%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 96% at center, #000 74%, rgba(0,0,0,.92) 84%, rgba(0,0,0,.55) 93%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.lobby-logo-mark svg {
  display: none !important;
}

.lobby-logo-type {
  display: inline-block;
  flex: 0 0 auto;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.2;
  font-size: clamp(.96rem, 1.05vw, 1.08rem);
  letter-spacing: -.025em;
}

/* Wide desktop: keep all six navigation labels on one line with full letters. */
@media (min-width: 1101px) {
  .lobby-header-inner {
    flex-wrap: nowrap !important;
    gap: clamp(.55rem, .85vw, 1rem) !important;
  }

  .lobby-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: max-content !important;
    align-items: center;
    justify-content: center;
    gap: clamp(.05rem, .18vw, .2rem) !important;
    margin-left: auto !important;
    overflow: visible !important;
  }

  .lobby-nav-link {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    padding: .6rem clamp(.34rem, .48vw, .62rem) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    line-height: 1.25;
    font-size: clamp(.72rem, .77vw, .82rem) !important;
    letter-spacing: 0 !important;
  }

  .lobby-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    margin-left: 0 !important;
    gap: clamp(.3rem, .45vw, .55rem) !important;
  }

  .lobby-actions > a,
  .lobby-actions > button,
  .lobby-actions .language-switcher {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .lobby-gold-cta {
    max-width: none !important;
    padding-left: clamp(.75rem, .9vw, 1rem) !important;
    padding-right: clamp(.75rem, .9vw, 1rem) !important;
  }
}

/* Tablet widths: switch to the existing expandable menu instead of squeezing labels. */
@media (min-width: 768px) and (max-width: 1100px) {
  .lobby-header-inner {
    flex-wrap: nowrap !important;
    gap: .65rem !important;
  }

  .lobby-nav {
    display: none !important;
  }

  .lobby-menu-btn {
    display: grid !important;
    flex: 0 0 40px !important;
    width: 40px;
    height: 40px;
  }

  .lobby-mobile-menu:not(.hidden) {
    display: block !important;
  }

  .lobby-actions {
    margin-left: auto !important;
    gap: .4rem !important;
  }

  .lobby-ghost-cta {
    display: none !important;
  }

  .lobby-actions .lobby-gold-cta {
    max-width: none !important;
    white-space: nowrap !important;
  }
}

/* Phone header retains the site's existing mobile menu and compact spacing. */
@media (max-width: 767px) {
  .lobby-logo-mark {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .lobby-logo {
    gap: .42rem;
    min-width: 0;
  }

  .lobby-logo-type {
    max-width: 46vw !important;
    font-size: .94rem !important;
  }
}

@media (max-width: 360px) {
  .lobby-logo-mark {
    flex-basis: 32px !important;
    width: 32px !important;
    height: 32px !important;
  }

  .lobby-logo-type {
    max-width: 40vw !important;
    font-size: .88rem !important;
  }
}
