/* AntsSurvivors lobby v9
   Single-source lobby skin. Loaded last so the abandoned v3-v8 experiments
   cannot leak into the production title screen. */
#overlay {
  --l9-ivory: #eee6d4;
  --l9-muted: #a9b0b7;
  --l9-line: rgba(196, 174, 124, .5);
  --l9-blue: #63b7e8;
  --l9-glass: rgba(7, 13, 20, .78);
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(4, 7, 11, .04) 55%, rgba(3, 6, 10, .72) 100%),
    url('/lobby-v9/lobby-background-master.webp') center center / cover no-repeat,
    #080b10 !important;
  font-family: system-ui, 'Malgun Gothic', sans-serif;
}

/* Dedicated alpha atlas. The former lobby-navigation-atlas.png is RGB and
   paints its navy sheet background inside every icon cell. */
#overlay .lobbyNavIcon {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Individual alpha icons avoid fractional 4x4 sprite sampling at 1254px. */
#overlay .lni-battle { background-image: url('/lobby-v9/icons/battle.png') !important; }
#overlay .lni-world { background-image: url('/lobby-v9/icons/world.png') !important; }
#overlay .lni-codex { background-image: url('/lobby-v9/icons/codex.png') !important; }
#overlay .lni-rank { background-image: url('/lobby-v9/icons/rank.png') !important; }
#overlay .lni-gallery { background-image: url('/lobby-v9/icons/gallery.png') !important; }
#overlay .lni-logout { background-image: url('/lobby-v9/icons/logout.png') !important; }
#overlay .lni-attendance { background-image: url('/lobby-v9/icons/attendance.png') !important; }
#overlay .lni-event { background-image: url('/lobby-v9/icons/event.png') !important; }
#overlay .lni-quest { background-image: url('/lobby-v9/icons/quest.png') !important; }
#overlay .lni-settings { background-image: url('/lobby-v9/icons/settings.png') !important; }
#overlay .lni-notice { background-image: url('/lobby-v9/icons/notice.png') !important; }
#overlay .lni-mail { background-image: url('/lobby-v9/icons/mail.png') !important; }
#overlay .lni-achievement { background-image: url('/lobby-v9/icons/achievement.png') !important; }
#overlay .lni-ranking { background-image: url('/lobby-v9/icons/ranking.png') !important; }
#overlay .lni-shop { background-image: url('/lobby-v9/icons/shop.png') !important; }
#overlay .lni-profile { background-image: url('/lobby-v9/icons/profile.png') !important; }

#overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 67% at 50% 49%, rgba(4, 8, 13, .08), rgba(4, 8, 13, .34) 76%, transparent 100%),
    linear-gradient(90deg, rgba(2, 5, 8, .16), transparent 23%, transparent 77%, rgba(2, 5, 8, .16));
}

#overlay .topbar {
  position: absolute !important;
  inset: 0 !important;
  z-index: 4;
  display: block !important;
  pointer-events: none;
}

#overlay .rankbadge,
#overlay .pcard {
  display: none !important;
}

#overlay .center {
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  width: min(52vw, 980px) !important;
  height: auto !important;
  padding: 0 !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  filter: none !important;
  isolation: isolate;
  pointer-events: none;
}

#overlay .center::before,
#overlay .center::after {
  display: none !important;
}

#overlay .title {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  /* 옛 v6 데스크톱 규칙의 flex:0 0 142px 가 세로 축에서 height 보다 우선이라
     여기서 아무리 키워도 142px 에 묶여 있었다 — flex 를 먼저 풀어 준다. */
  flex: 0 0 auto !important;
  height: clamp(150px, 15.5vw, 300px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: url('/lobby-v9/title-logo.png') center / contain no-repeat !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .62)) !important;
  white-space: nowrap;
}

#overlay .title::before {
  display: none !important;
}

#overlay .title::after {
  display: none !important;
}

#overlay .tagline {
  width: auto !important;
  max-width: none !important;
  margin: -8px auto clamp(32px, 3.6vh, 52px) !important;
  padding: 0 !important;
  background: none !important;
  color: #c8c8c2 !important;
  font-size: clamp(11px, .95vw, 16px) !important;
  font-weight: 600 !important;
  letter-spacing: .27em !important;
  text-shadow: 0 2px 7px #000 !important;
}

#overlay .menu {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  /* 데스크톱은 화면이 넓을수록 같이 커진다 — 1280 기준 119/60/34, 1920 이상에서 상한 */
  grid-template-rows: clamp(96px, 9.6vw, 168px) clamp(50px, 4.8vw, 84px) clamp(32px, 2.8vw, 46px) !important;
  gap: clamp(13px, 1.4vw, 26px) clamp(5px, .7vw, 12px) !important;
  pointer-events: auto;
}

#overlay .mbtn,
#overlay #startBtn,
#overlay #worldBtn,
#overlay #codexBtn,
#overlay #rankBtn,
#overlay #waveInfoBtn,
#overlay #logoutBtn {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--l9-muted) !important;
  filter: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-shadow: 0 2px 5px #000 !important;
  transition: color .16s ease, transform .16s ease, opacity .16s ease !important;
}

#overlay .mbtn::before,
#overlay .mbtn::after {
  display: none !important;
}

#overlay #worldBtn {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  width: auto !important;
  max-width: 100% !important;
  aspect-ratio: 1757 / 539 !important;
  /* 왼쪽 구슬이 아트에 구워져 있어 글자를 오른쪽으로 밀어 두었는데, 그 값(중심 59%)이
     남색 판 가운데(실측 61.5%)에 맞춘 것이라 버튼 전체로 보면 오른쪽으로 치우쳐 보였다.
     구슬까지 포함한 시각적 균형으로 당긴다 — 중심 54%. */
  padding: 0 17% 0 25% !important;
  border: 0 !important;
  background: url('/lobby-v9/world-button-trimmed.png') center / contain no-repeat !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .55)) !important;
}

#overlay #worldBtn::before,
#overlay #worldBtn::after {
  display: none !important;
}

#overlay #worldBtn::before { left: -12px; right: auto !important; }
#overlay #worldBtn::after { left: auto !important; right: -12px; }

#overlay #worldBtn .lobbyNavIcon {
  display: none !important;
}

#overlay #worldBtn span {
  position: static !important;
  white-space: nowrap !important;
  color: #f0dfb2 !important;
  font: 900 clamp(21px, 2.05vw, 34px)/1 'Noto Serif KR', 'Malgun Gothic', serif !important;
  letter-spacing: .17em !important;
  text-shadow: 0 2px 6px #000 !important;
}

#overlay #worldBtn:hover {
  transform: translateY(-2px) !important;
  background: url('/lobby-v9/world-button-trimmed.png') center / contain no-repeat !important;
  filter: brightness(1.12) drop-shadow(0 12px 18px rgba(17, 100, 157, .35)) !important;
}

#overlay #startBtn { grid-column: 1; grid-row: 2; }
#overlay #codexBtn { grid-column: 2; grid-row: 2; }
#overlay #rankBtn { grid-column: 3; grid-row: 2; }
#overlay #waveInfoBtn { grid-column: 4; grid-row: 2; }

#overlay #startBtn .lobbyNavIcon,
#overlay #codexBtn .lobbyNavIcon,
#overlay #rankBtn .lobbyNavIcon,
#overlay #waveInfoBtn .lobbyNavIcon {
  display: block !important;
  width: clamp(19px, 1.8vw, 30px) !important;
  height: clamp(19px, 1.8vw, 30px) !important;
  opacity: .9 !important;
  filter: brightness(1.08) grayscale(.1) sepia(.15) drop-shadow(0 2px 3px #000) !important;
}

#overlay #startBtn span,
#overlay #codexBtn span,
#overlay #rankBtn span,
#overlay #waveInfoBtn span {
  position: static !important;
  color: #c7c7c1 !important;
  font: 700 clamp(11px, 1.05vw, 17px)/1 system-ui, 'Malgun Gothic', sans-serif !important;
  letter-spacing: .045em !important;
}

#overlay #startBtn:hover,
#overlay #codexBtn:hover,
#overlay #rankBtn:hover,
#overlay #waveInfoBtn:hover {
  color: var(--l9-ivory) !important;
  transform: translateY(-1px) !important;
}

/* Visible secondary crests — actual buttons instead of loose icon labels. */
#overlay #startBtn,
#overlay #codexBtn,
#overlay #rankBtn,
#overlay #waveInfoBtn {
  border: 1px solid rgba(194, 169, 110, .36) !important;
  background:
    linear-gradient(90deg, transparent, rgba(71, 133, 169, .09) 50%, transparent),
    linear-gradient(180deg, rgba(15, 23, 32, .78), rgba(5, 10, 16, .9)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .72),
    inset 0 0 18px rgba(54, 121, 159, .09),
    0 4px 10px rgba(0, 0, 0, .32) !important;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%) !important;
}

#overlay #startBtn::after,
#overlay #codexBtn::after,
#overlay #rankBtn::after,
#overlay #waveInfoBtn::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93, 177, 224, .4), transparent);
}

#overlay #startBtn:hover,
#overlay #codexBtn:hover,
#overlay #rankBtn:hover,
#overlay #waveInfoBtn:hover {
  border-color: rgba(232, 204, 137, .86) !important;
  background:
    linear-gradient(90deg, transparent, rgba(79, 160, 207, .2) 50%, transparent),
    linear-gradient(180deg, rgba(24, 38, 52, .95), rgba(7, 15, 24, .98)) !important;
}

/* 로그아웃도 다른 버튼과 같은 판을 쓴다 — 글씨만 있으면 배경 그림에 묻혀 보이지 않았다 */
#overlay #logoutBtn {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  justify-self: center !important;
  width: clamp(150px, 13vw, 250px) !important;
  padding: 0 12px !important;
  border: 1px solid rgba(194, 169, 110, .36) !important;
  background:
    linear-gradient(90deg, transparent, rgba(71, 133, 169, .09) 50%, transparent),
    linear-gradient(180deg, rgba(15, 23, 32, .78), rgba(5, 10, 16, .9)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .72),
    0 4px 10px rgba(0, 0, 0, .32) !important;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%) !important;
  color: #b9b2a6 !important;
  opacity: 1;
}

#overlay #logoutBtn .lobbyNavIcon { display: none !important; }
#overlay #logoutBtn span {
  position: static !important;
  font: 700 clamp(10px, .9vw, 15px)/1 system-ui, 'Malgun Gothic', sans-serif !important;
  letter-spacing: .16em !important;
}
#overlay #logoutBtn:hover {
  border-color: rgba(232, 204, 137, .86) !important;
  color: #e8c4b4 !important;
  transform: translateY(-1px) !important;
}

#overlay .topicons {
  position: fixed !important;
  left: auto !important;
  right: 22px !important;
  top: 17px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  gap: 7px !important;
  background: none !important;
  border: 0 !important;
  clip-path: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: auto;
}

#overlay .topicons .ti,
#overlay .boticons .bi {
  position: relative !important;
  inset: auto !important;
  width: 52px !important;
  height: 50px !important;
  padding: 2px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  clip-path: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  color: #c9c4b7 !important;
  opacity: .92;
  transition: opacity .16s ease, transform .16s ease !important;
}

#overlay .topicons .ti:hover,
#overlay .boticons .bi:hover {
  opacity: 1;
  transform: translateY(-2px) !important;
  filter: none !important;
}

#overlay .topicons .ti .lobbyNavIcon,
#overlay .boticons .bi .lobbyNavIcon {
  width: 29px !important;
  height: 29px !important;
  opacity: 1 !important;
  filter: brightness(1.1) grayscale(.08) sepia(.2) saturate(.82) drop-shadow(0 2px 4px #000) !important;
}

#overlay .topicons .ti span,
#overlay .boticons .bi span {
  color: #d0cabd !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px #000 !important;
  white-space: nowrap;
}

#overlay .boticons {
  position: absolute !important;
  left: 50% !important;
  bottom: 10px !important;
  width: min(41vw, 610px) !important;
  height: 57px !important;
  padding: 4px 18px 1px !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(3, 7, 11, .24) 16%, rgba(3, 7, 11, .24) 84%, transparent) !important;
  border: 0 !important;
  border-top: 1px solid rgba(202, 181, 130, .22) !important;
  clip-path: none !important;
  filter: none !important;
  box-sizing: border-box !important;
  pointer-events: auto;
}

#overlay .boticons .bi {
  width: 100% !important;
  height: 49px !important;
  margin: 0 3px !important;
  border: 0 !important;
  border-left: 1px solid rgba(190, 165, 108, .22) !important;
  background: linear-gradient(180deg, rgba(14, 22, 31, .5), rgba(4, 9, 15, .68)) !important;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 8px) !important;
  box-shadow: none !important;
}

#overlay .boticons .bi:hover {
  border-color: rgba(230, 201, 133, .8) !important;
  background: linear-gradient(180deg, rgba(24, 38, 50, .94), rgba(6, 14, 22, .98)) !important;
}

/* Portrait uses its own composition instead of cropping the landscape cast. */
@media (orientation: portrait) {
  #overlay {
    background:
      linear-gradient(180deg, rgba(4, 7, 11, .02) 45%, rgba(3, 6, 10, .68) 100%),
      url('/lobby-v9/lobby-background-portrait.webp') center center / cover no-repeat,
      #080b10 !important;
  }
}

/* Square tablet and unfolded portrait tablet */
@media (orientation: portrait) and (min-width: 600px),
       (min-width: 700px) and (max-width: 1199px) and (min-height: 600px) and (max-aspect-ratio: 4/3) {
  #overlay { background-position: center center !important; }
  #overlay .center { top: 49% !important; width: min(66vw, 520px) !important; }
  #overlay .title { height: clamp(132px, 20vw, 176px) !important; }
  #overlay .tagline { margin-top: -12px !important; margin-bottom: 42px !important; }
  #overlay .menu { grid-template-rows: 72px 42px 28px !important; }
  #overlay .boticons { width: min(78vw, 630px) !important; }
}

/* Fold landscape */
@media (orientation: landscape) and (min-width: 700px) and (max-height: 599px) {
  #overlay .center { top: 48% !important; width: min(43vw, 455px) !important; }
  #overlay .title { height: clamp(80px, 12vw, 108px) !important; }
  #overlay .title::before { top: -15px; width: 15px; height: 15px; }
  #overlay .tagline { margin: 6px auto 25px !important; font-size: 7px !important; }
  #overlay .menu { grid-template-rows: 50px 30px 22px !important; gap: 7px 3px !important; }
  #overlay #worldBtn span { font-size: 15px !important; }
  #overlay #startBtn .lobbyNavIcon,
  #overlay #codexBtn .lobbyNavIcon,
  #overlay #rankBtn .lobbyNavIcon,
  #overlay #waveInfoBtn .lobbyNavIcon { width: 15px !important; height: 15px !important; }
  #overlay #startBtn span,
  #overlay #codexBtn span,
  #overlay #rankBtn span,
  #overlay #waveInfoBtn span { font-size: 8px !important; }
  #overlay .topicons { right: 5px !important; top: 3px !important; gap: 0 !important; }
  #overlay .topicons .ti { width: 42px !important; height: 37px !important; }
  #overlay .topicons .ti .lobbyNavIcon { width: 18px !important; height: 18px !important; }
  #overlay .topicons .ti span { font-size: 6px !important; }
  #overlay .boticons { bottom: 2px !important; width: min(47vw, 475px) !important; height: 40px !important; padding: 2px 12px 0 !important; }
  #overlay .boticons .bi { height: 36px !important; }
  #overlay .boticons .bi .lobbyNavIcon { width: 18px !important; height: 18px !important; }
  #overlay .boticons .bi span { font-size: 6px !important; }
}

/* Fold cover and ordinary phones */
@media (orientation: portrait) and (max-width: 599px) {
  #overlay {
    background-position: 50% center !important;
  }
  #overlay::before {
    background:
      linear-gradient(180deg, rgba(3, 7, 12, .08) 25%, rgba(3, 7, 12, .22) 57%, rgba(3, 7, 12, .7) 100%),
      radial-gradient(ellipse 68% 48% at 50% 48%, rgba(3, 7, 12, .16), transparent 80%);
  }
  #overlay .center { top: 47% !important; width: 84vw !important; }
  #overlay .title { height: clamp(104px, 30vw, 132px) !important; }
  #overlay .title::before { top: -17px; width: 16px; height: 16px; }
  #overlay .tagline { margin: -7px auto 31px !important; font-size: 7px !important; letter-spacing: .18em !important; }
  #overlay .menu {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: 61px 37px 37px 26px !important;
    gap: 7px 5px !important;
  }
  #overlay #worldBtn { grid-column: 1 / -1 !important; grid-row: 1 !important; }
  #overlay #startBtn { grid-column: 1; grid-row: 2; }
  #overlay #codexBtn { grid-column: 2; grid-row: 2; }
  #overlay #rankBtn { grid-column: 1; grid-row: 3; }
  #overlay #waveInfoBtn { grid-column: 2; grid-row: 3; }
  #overlay #logoutBtn { grid-column: 1 / -1 !important; grid-row: 4 !important; }
  #overlay #worldBtn span { font-size: 17px !important; }
  #overlay #startBtn .lobbyNavIcon,
  #overlay #codexBtn .lobbyNavIcon,
  #overlay #rankBtn .lobbyNavIcon,
  #overlay #waveInfoBtn .lobbyNavIcon { width: 17px !important; height: 17px !important; }
  #overlay #startBtn span,
  #overlay #codexBtn span,
  #overlay #rankBtn span,
  #overlay #waveInfoBtn span { font-size: 8px !important; }
  #overlay .topicons { right: 3px !important; top: 3px !important; gap: 0 !important; }
  #overlay .topicons .ti { width: 41px !important; height: 39px !important; }
  #overlay .topicons .ti .lobbyNavIcon { width: 19px !important; height: 19px !important; }
  #overlay .topicons .ti span { font-size: 6px !important; }
  #overlay .boticons { bottom: 2px !important; width: 96vw !important; height: 46px !important; padding: 2px 7px 0 !important; }
  #overlay .boticons .bi { height: 42px !important; }
  #overlay .boticons .bi .lobbyNavIcon { width: 21px !important; height: 21px !important; }
  #overlay .boticons .bi span { font-size: 6px !important; }
}

/* Fold 6 cover/portrait may expose a 600–720 CSS-pixel viewport.
   Treat every narrow portrait up to 820px as touch UI, not square tablet. */
@media (orientation: portrait) and (min-width: 560px) and (max-width: 900px) {
  #overlay .center {
    top: 48% !important;
    width: min(92vw, 700px) !important;
  }
  #overlay .title {
    height: clamp(142px, 23vw, 188px) !important;
  }
  #overlay .title::before {
    top: -20px;
    width: 18px;
    height: 18px;
  }
  #overlay .tagline {
    margin: -10px auto 29px !important;
    font-size: clamp(10px, 1.7vw, 13px) !important;
  }
  #overlay .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 96px 72px 72px 28px !important;
    gap: 11px 10px !important;
  }
  #overlay #worldBtn {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: auto !important;
    max-width: 82% !important;
  }
  #overlay #startBtn { grid-column: 1 !important; grid-row: 2 !important; }
  #overlay #codexBtn { grid-column: 2 !important; grid-row: 2 !important; }
  #overlay #rankBtn { grid-column: 1 !important; grid-row: 3 !important; }
  #overlay #waveInfoBtn { grid-column: 2 !important; grid-row: 3 !important; }
  #overlay #logoutBtn {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
  }
  #overlay #worldBtn span {
    font-size: clamp(21px, 3.4vw, 26px) !important;
    letter-spacing: .1em !important;
  }
  #overlay #startBtn .lobbyNavIcon,
  #overlay #codexBtn .lobbyNavIcon,
  #overlay #rankBtn .lobbyNavIcon,
  #overlay #waveInfoBtn .lobbyNavIcon {
    width: 38px !important;
    height: 38px !important;
  }
  #overlay #startBtn span,
  #overlay #codexBtn span,
  #overlay #rankBtn span,
  #overlay #waveInfoBtn span {
    font-size: 15px !important;
  }
  #overlay .topicons {
    right: 7px !important;
    top: 6px !important;
    gap: 2px !important;
  }
  #overlay .topicons .ti {
    width: 61px !important;
    height: 60px !important;
  }
  #overlay .topicons .ti .lobbyNavIcon {
    width: 34px !important;
    height: 34px !important;
  }
  #overlay .topicons .ti span { font-size: 10px !important; }
  #overlay .boticons {
    bottom: 7px !important;
    width: 98vw !important;
    height: 82px !important;
    padding: 5px 12px 2px !important;
  }
  #overlay .boticons .bi {
    min-width: 0 !important;
    height: 73px !important;
    margin: 0 4px !important;
  }
  #overlay .boticons .bi .lobbyNavIcon {
    width: 41px !important;
    height: 41px !important;
  }
  #overlay .boticons .bi span { font-size: 11px !important; }
}

/* Fold cover / narrow phone: large touch targets without overflowing 320–430px. */
@media (orientation: portrait) and (max-width: 559px) {
  #overlay .center {
    top: 48% !important;
    width: calc(100vw - 20px) !important;
    max-width: 430px !important;
    box-sizing: border-box !important;
  }
  #overlay .title {
    height: clamp(106px, 31vw, 136px) !important;
  }
  #overlay .tagline {
    margin: -8px auto 26px !important;
    font-size: clamp(7px, 2.25vw, 9px) !important;
  }
  #overlay .menu {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 74px 56px 56px 28px !important;
    gap: 8px 6px !important;
  }
  #overlay #worldBtn {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: auto !important;
    max-width: 90% !important;
  }
  #overlay #startBtn { grid-column: 1 !important; grid-row: 2 !important; }
  #overlay #codexBtn { grid-column: 2 !important; grid-row: 2 !important; }
  #overlay #rankBtn { grid-column: 1 !important; grid-row: 3 !important; }
  #overlay #waveInfoBtn { grid-column: 2 !important; grid-row: 3 !important; }
  #overlay #startBtn,
  #overlay #codexBtn,
  #overlay #rankBtn,
  #overlay #waveInfoBtn {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  #overlay #logoutBtn {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
  }
  #overlay #worldBtn span {
    font-size: 18px !important;
    letter-spacing: .08em !important;
  }
  #overlay #startBtn .lobbyNavIcon,
  #overlay #codexBtn .lobbyNavIcon,
  #overlay #rankBtn .lobbyNavIcon,
  #overlay #waveInfoBtn .lobbyNavIcon {
    width: 30px !important;
    height: 30px !important;
  }
  #overlay #startBtn span,
  #overlay #codexBtn span,
  #overlay #rankBtn span,
  #overlay #waveInfoBtn span {
    font-size: 12px !important;
  }
  #overlay .topicons {
    right: 3px !important;
    top: 4px !important;
    gap: 0 !important;
  }
  #overlay .topicons .ti {
    width: 45px !important;
    height: 47px !important;
  }
  #overlay .topicons .ti .lobbyNavIcon {
    width: 26px !important;
    height: 26px !important;
  }
  #overlay .topicons .ti span { font-size: 7px !important; }
  #overlay .boticons {
    bottom: 4px !important;
    width: 98vw !important;
    height: 66px !important;
    padding: 3px 5px 1px !important;
  }
  #overlay .boticons .bi {
    min-width: 0 !important;
    height: 60px !important;
    margin: 0 2px !important;
  }
  #overlay .boticons .bi .lobbyNavIcon {
    width: 32px !important;
    height: 32px !important;
  }
  #overlay .boticons .bi span { font-size: 8px !important; }
}
