@import url("./lobby-mobile-dock.css?v=shared-profile-v42-20260814");

body.ag-mobile-app-shell {
  --ag-lobby-safe-top: env(safe-area-inset-top, 0px);
  --ag-lobby-safe-right: env(safe-area-inset-right, 0px);
  --ag-lobby-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ag-lobby-safe-left: env(safe-area-inset-left, 0px);
}

body.ag-mobile-app-shell.ag-device-small.ag-layout-segmented .ag-lobby-mobile-dock {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-switch {
  display: block;
  width: var(--ag-lobby-language-width, clamp(34px, 8.5vw, 44px));
  height: clamp(50px, 12vw, 58px);
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 208, 136, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(46, 52, 58, 0.74), rgba(10, 13, 18, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.24), 0 0 10px rgba(255, 184, 82, 0.1);
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-trigger {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 238, 209, 0.78);
  cursor: pointer;
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-current {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, rgba(255, 248, 232, 0.96) 0%, rgba(255, 204, 123, 0.94) 48%, rgba(188, 108, 32, 0.92) 100%);
  color: #35210d;
  font: 900 var(--ag-lobby-language-font-size, clamp(8px, 2.2vw, 11px))/1 "Montserrat", sans-serif;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 4px rgba(255, 248, 232, 0.26), 0 0 9px rgba(255, 184, 82, 0.16);
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-arrow {
  align-self: center;
  justify-self: center;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: margin 160ms ease, transform 160ms ease;
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-switch.is-open .ag-language-arrow {
  margin-top: 3px;
  transform: rotate(225deg);
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  display: grid;
  width: var(--ag-lobby-language-width, clamp(34px, 8.5vw, 44px));
  max-height: calc(100dvh - 8px);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(255, 208, 136, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(46, 52, 58, 0.96), rgba(10, 13, 18, 0.97));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38), 0 0 12px rgba(255, 184, 82, 0.12);
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-menu[hidden] {
  display: none;
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-option {
  display: inline-flex;
  width: 100%;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 238, 209, 0.76);
  font: 900 clamp(9px, 2.4vw, 12px)/1 "Montserrat", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-option:hover,
body.ag-mobile-app-shell.ag-layout-segmented .ag-language-option.is-active {
  background: radial-gradient(circle at 30% 0, rgba(255, 248, 232, 0.96) 0%, rgba(255, 204, 123, 0.94) 48%, rgba(188, 108, 32, 0.92) 100%);
  color: #35210d;
  box-shadow: inset 0 1px 4px rgba(255, 248, 232, 0.26), 0 0 9px rgba(255, 184, 82, 0.16);
}

body.ag-mobile-app-shell.ag-layout-segmented .ag-language-trigger:focus-visible,
body.ag-mobile-app-shell.ag-layout-segmented .ag-language-option:focus-visible {
  outline: 2px solid rgba(255, 215, 155, 0.82);
  outline-offset: 2px;
}

body.ag-mobile-app-shell.ag-device-small.ag-layout-segmented .ag-language-trigger {
  grid-template-columns: minmax(0, 1fr) 16px;
  grid-template-rows: 1fr;
}

body.ag-mobile-app-shell.ag-device-small.ag-layout-segmented .ag-language-current {
  grid-column: 1;
  grid-row: 1;
}

body.ag-mobile-app-shell.ag-device-small.ag-layout-segmented .ag-language-arrow {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}

body.ag-mobile-app-shell.ag-device-small.ag-layout-segmented .ag-language-switch.is-open .ag-language-arrow {
  margin-top: 0;
}

.ag-tournament-mobile-language {
  display: none !important;
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented {
  --ag-lobby-header-height: clamp(37px, 5.7dvh, 41px);
  --ag-lobby-header-total: calc(var(--ag-lobby-header-height) + var(--ag-lobby-safe-top));
  --ag-lobby-header-inline: 7px;
  --ag-lobby-header-gap: 4px;
  --ag-lobby-brand-x: -8px;
  --ag-lobby-brand-y: -12px;
  box-sizing: border-box;
  padding-top: var(--ag-lobby-header-total);
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented .lobby-command-bar {
  position: fixed;
  inset: 0 auto auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  height: var(--ag-lobby-header-total);
  min-height: var(--ag-lobby-header-total);
  padding-top: max(6px, var(--ag-lobby-safe-top));
  padding-right: max(var(--ag-lobby-header-inline), var(--ag-lobby-safe-right));
  padding-bottom: 6px;
  padding-left: max(var(--ag-lobby-header-inline), var(--ag-lobby-safe-left));
  gap: var(--ag-lobby-header-gap);
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented .lobby-command-bar > .ag-player-area,
body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented .lobby-command-bar > .ag-banner-tournament-center {
  display: none !important;
}

body.ag-mobile-app-page-tournament.ag-device-small.ag-layout-segmented .ag-tournament-mobile-language {
  display: block !important;
}
