/* GNB STAGE-1 — image_41b9c3 master ref · v30 · nav true-center grid */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&family=Montserrat:wght@500;600&family=Oswald:wght@400;500&display=swap');

.lobby-header,
.lobby-header * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Shell — dark velvet (41b9c3); emblem block untouched below */
.lobby-header {
  height: 48px;
  min-height: 48px;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  box-sizing: border-box;
  margin: 0 -24px;
  padding: 0 24px;
  background: #0b0405;
  border-bottom: 1px solid #160809;
  box-shadow: none;
}

.lobby-header__inner {
  display: contents;
}

/* ① Brand — emblem B (gen_01 PNG) + wordmark */
.lobby-header__brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-height: 100%;
}

.brand-emblem {
  flex-shrink: 0;
  width: 40px;
  height: 36px;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-emblem__img {
  width: 40px;
  height: 36px;
  max-height: 36px;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.brand-txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.brand-txt__baccarat {
  display: block;
  width: 100%;
  margin-top: 0;
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff7d6 0%, #dca954 45%, #966720 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

.brand-txt__tournament {
  display: block;
  width: 100%;
  margin-top: 2px;
  font-family: 'Oswald', sans-serif;
  font-size: 7.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c59643;
}

/* ② Nav */
.lobby-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: nowrap;
  min-width: 0;
}

.lobby-nav button {
  margin: 0;
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c8b72;
  transition: color 0.15s ease;
}

.lobby-nav button:hover {
  color: #b8a68c;
}

.lobby-nav button.is-active {
  padding: 6px 20px;
  font-weight: 500;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(180deg, #511419 0%, #220306 100%);
  border: 1px solid #631b21;
  border-radius: 4px;
  box-shadow: none;
}

.lobby-nav button.is-active:hover {
  color: #ffffff;
}

.lobby-nav button.is-active::after {
  display: none !important;
}

/* ③ Balance */
.lobby-header__right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lobby-header .balance {
  display: flex;
  align-items: center;
  height: 28px;
  margin: 0;
  padding-left: 12px;
  padding-right: 0;
  border: 1px solid #5c4a33;
  border-radius: 14px;
  background: #000000;
  overflow: hidden;
  box-shadow: none;
}

.lobby-header .balance__amt {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0 8px 0 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #f6d797;
}

.lobby-header .balance__prefix,
.lobby-header .balance__val {
  color: #f6d797;
  -webkit-text-fill-color: #f6d797;
  background: none;
  filter: none;
}

.lobby-header .balance__add {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  background: linear-gradient(180deg, #e6c587 0%, #a67c3c 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.5);
  color: #000000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ④ Profile · mail · lang */
.lobby-header .profile {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 1px 8px 1px 1px;
  border-radius: 999px;
  border: 1px solid #4d3d25;
  background: #000000;
  box-shadow: none;
}

.lobby-header .profile__av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #b68739;
  display: block;
  flex-shrink: 0;
}

.lobby-header .profile__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.lobby-header .profile__vip {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6d797;
  padding: 1px 5px;
  border-radius: 3px;
  background: #1a1107;
  border: 1px solid #73572e;
}

.lobby-header .profile__name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lobby-header .profile__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.lobby-header .profile__chev {
  font-size: 6px;
  line-height: 1;
  color: #b89a5e;
}

.lobby-header .icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #4d3d25;
  background: #000000;
  color: #e8dcc8;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.lobby-header .icon-btn.mail .badge-dot,
.lobby-header .icon-btn.mail .dot {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
  border: 1px solid #0b0405;
  pointer-events: none;
}

.lobby-header .icon-btn.mail.has-unread .badge-dot {
  display: block;
}

.lobby-header .icon-btn.lang {
  width: auto;
  min-width: 46px;
  height: 28px;
  padding: 0 9px 0 10px;
  border-radius: 3px;
  border: 1px solid #4d3d25;
  background: #000000;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0ebe3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lobby-header .icon-btn.lang::after {
  content: '▼';
  font-size: 6px;
  line-height: 1;
  color: #9c8b72;
}

.lobby-header .lang-sel {
  position: relative;
}

.lobby-header .lang-btn::after {
  content: none;
}

.lobby-header .lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 9000;
  min-width: 120px;
  padding: 4px;
  border: 1px solid rgba(201, 169, 110, 0.38);
  border-radius: 6px;
  background: linear-gradient(165deg, rgba(28, 22, 16, 0.98), rgba(8, 6, 4, 0.99));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.lobby-header .lang-sel.open .lang-menu {
  display: block;
}

.lobby-header .lang-item {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #f5efe0;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
}

.lobby-header .lang-item:hover {
  background: rgba(201, 169, 110, 0.12);
}

.lobby-header .lang-item.active {
  color: #f6d797;
  background: rgba(201, 169, 110, 0.18);
}

/* Legacy overrides off */
.lobby-header .part-logo {
  display: none;
}
