.lobby-world-switch {
  position: relative;
  z-index: 2;
  display: grid;
  width: clamp(250px, 15vw, 300px);
  height: clamp(40px, 5.2dvh, 48px);
  flex: 0 0 auto;
  grid-template-columns: minmax(82px, 0.72fr) minmax(158px, 1.28fr);
  gap: 3px;
  margin-left: clamp(12px, 1.2vw, 24px);
  padding: 3px;
  border: 1px solid rgba(255, 220, 157, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.76), rgba(40, 28, 23, 0.68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(128%);
  -webkit-backdrop-filter: blur(14px) saturate(128%);
}

.lobby-world-option {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 241, 216, 0.7);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lobby-world-option:hover,
.lobby-world-option:focus-visible {
  border-color: rgba(255, 211, 137, 0.35);
  color: #fff5df;
  outline: none;
}

.lobby-world-option:active {
  transform: translateY(1px);
}

.lobby-world-option.is-coming-soon {
  cursor: default;
  pointer-events: none;
}

.lobby-world-option.is-active {
  border-color: rgba(255, 229, 178, 0.62);
  background: linear-gradient(180deg, rgba(255, 230, 179, 0.98), rgba(235, 145, 46, 0.95) 58%, rgba(171, 72, 17, 0.96));
  color: #2b1507;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 0 14px rgba(255, 157, 48, 0.28);
  text-shadow: 0 1px 0 rgba(255, 244, 211, 0.3);
}

.lobby-world-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.lobby-world-copy strong {
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(9px, 0.68vw, 12px);
  font-weight: 950;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
}

.lobby-world-copy small {
  margin-top: 3px;
  font-size: clamp(6px, 0.43vw, 8px);
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.lobby-world-checker {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(76, 37, 9, 0.48);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 25%, #fff4c6, #e89b34 62%, #7f330d 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.58), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lobby-world-checker::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 13px;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 231, 190, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 25%, #8f7a64, #3a2418 66%, #160d08 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.34);
}

.lobby-world-arrow {
  flex: 0 0 auto;
  color: #ffc66b;
  font-size: 15px;
  font-weight: 900;
}

.ag-player-menu-worlds {
  display: none;
  width: calc(100% - 20px);
  margin: 0 auto 10px;
  padding: 4px;
  border: 1px solid rgba(255, 214, 143, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}

.ag-player-menu-world {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(255, 239, 213, 0.76);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-align: center;
  text-decoration: none;
}

.ag-player-menu-world small {
  font-size: 8px;
  opacity: 0.7;
}

.ag-player-menu-world:hover,
.ag-player-menu-world:focus-visible {
  border-color: rgba(255, 212, 141, 0.32);
  color: #fff5df;
  outline: none;
}

.ag-player-menu-world.is-active {
  border-color: rgba(255, 226, 169, 0.5);
  background: linear-gradient(180deg, rgba(255, 208, 128, 0.26), rgba(184, 83, 24, 0.24));
  color: #ffe0a4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ag-player-menu-world.is-coming-soon {
  position: relative;
  cursor: default;
  pointer-events: none;
}

.ag-player-menu-soon {
  position: absolute;
  top: -6px;
  right: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 230, 178, 0.42);
  border-radius: 999px;
  background: rgba(58, 33, 17, 0.94);
  color: #ffe2a9;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.28);
}

body[data-game-world="narde"] .lobby-world-option.is-active,
body[data-game-world="narde"] .ag-player-menu-world.is-active {
  background: linear-gradient(180deg, rgba(255, 237, 198, 0.98), rgba(222, 139, 45, 0.96) 58%, rgba(126, 54, 19, 0.97));
}

@media (max-width: 93.75rem) {
  .lobby-world-switch {
    width: clamp(148px, 11.5vw, 172px);
    margin-left: 8px;
    grid-template-columns: minmax(0, 1fr);
  }

  .lobby-world-option.is-active {
    display: none;
  }

  .lobby-world-copy small {
    display: none;
  }

  .lobby-world-checker {
    width: 15px;
    height: 15px;
  }

  .lobby-world-checker::after {
    top: 4px;
    left: 10px;
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 73.75rem) {
  .lobby-world-switch {
    display: none;
  }

  .ag-player-menu-worlds {
    display: grid;
    gap: 3px;
  }
}

body.ag-layout-segmented .lobby-world-switch {
  display: none;
}

body.ag-layout-segmented .ag-player-menu-worlds {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .lobby-world-option {
    transition: none;
  }
}

/* Lobbydeki Long Gammon gecisini Turnuva Merkezi ile ayni gorsel dilde tutar. */
.lobby-world-switch--center-style {
  display: block;
  width: min(13vw, 20dvh);
  min-width: min(15vw, 14dvh);
  height: clamp(40px, 5.2dvh, 48px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lobby-world-switch--center-style .lobby-world-option.is-active {
  display: none;
}

.lobby-world-switch--center-style .lobby-world-option:not(.is-active) {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: min(0.08vw, 0.12dvh);
  padding: 0 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff0d1;
  text-align: center;
  transition: color 170ms ease, text-shadow 170ms ease;
}

.lobby-world-switch--center-style .lobby-world-option:not(.is-active)::before,
.lobby-world-switch--center-style .lobby-world-option:not(.is-active)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(1px, min(0.08vw, 0.11dvh));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 221, 157, 0.38) 0%, rgba(255, 221, 157, 0.90) 18%, rgba(229, 151, 61, 0.96) 82%, rgba(229, 151, 61, 0.42) 100%);
  box-shadow: 0 0 min(0.45vw, 0.7dvh) rgba(255, 183, 79, 0.40), 1px 0 0 rgba(255, 255, 255, 0.10);
  opacity: 0.88;
  pointer-events: none;
}

.lobby-world-switch--center-style .lobby-world-option:not(.is-active)::before {
  left: 0;
}

.lobby-world-switch--center-style .lobby-world-option:not(.is-active)::after {
  right: 0;
}

.lobby-world-switch--center-style .lobby-world-copy strong,
.lobby-world-switch--center-style .lobby-world-copy small {
  display: block;
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: min(1.02vw, 1.72dvh);
  font-weight: 950;
  letter-spacing: 0.075em;
  line-height: 0.95;
  opacity: 1;
  overflow: visible;
  text-overflow: clip;
  text-shadow: 0 1px 0 rgba(72, 30, 5, 0.82), 0 0 min(0.55vw, 0.8dvh) rgba(255, 200, 119, 0.22);
}

.lobby-world-switch--center-style .lobby-world-option:not(.is-active):hover,
.lobby-world-switch--center-style .lobby-world-option:not(.is-active):focus-visible {
  border-color: transparent;
  background: transparent;
  color: #fff8e8;
  outline: none;
  text-shadow: 0 0 min(0.85vw, 1.2dvh) rgba(255, 196, 105, 0.38);
}

.lobby-world-switch--center-style .lobby-world-option.is-coming-soon {
  color: rgba(255, 240, 209, 0.68);
}

.lobby-world-soon {
  position: absolute;
  top: max(-10px, -0.9dvh);
  left: 50%;
  z-index: 1;
  padding: 2px 6px;
  border: 1px solid rgba(255, 230, 178, 0.48);
  border-radius: 999px;
  background: rgba(58, 33, 17, 0.94);
  color: #ffe2a9;
  font-size: min(0.58vw, 0.95dvh);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 178, 74, 0.16);
  transform: translateX(-50%);
}

@media (max-width: 93.75rem) {
  .lobby-world-switch--center-style {
    width: min(13vw, 20dvh);
    min-width: min(15vw, 14dvh);
    margin-left: 8px;
  }

  .lobby-world-switch--center-style .lobby-world-copy small {
    display: block;
  }
}

@media (max-width: 73.75rem) {
  .lobby-world-switch--center-style {
    display: none;
  }
}

body.ag-layout-segmented .lobby-world-switch--center-style {
  display: none;
}
