:root {
  --lobby-bg: #05070d;
  --lobby-panel: rgba(5, 10, 19, 0.78);
  --lobby-panel-strong: rgba(4, 8, 16, 0.9);
  --lobby-cyan: #00c4d4;
  --lobby-pink: #f4c430;
  --lobby-red: #ff3347;
  --lobby-green: #39ff88;
  --lobby-yellow: #f4c430;
  --lobby-text: #e8f0ff;
  --lobby-muted: #8793a7;
  --lobby-line: rgba(0, 245, 255, 0.28);
  --lobby-grime: rgba(197, 215, 230, 0.045);
  --lobby-glow-cyan: 0 0 18px rgba(0, 245, 255, 0.44), 0 0 44px rgba(0, 245, 255, 0.16);
  --lobby-glow-pink: 0 0 18px rgba(255, 43, 214, 0.5), 0 0 54px rgba(255, 43, 214, 0.22);
  --lobby-font: "Bahnschrift", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --lobby-cut-sm: 12px;
  --lobby-cut-md: 20px;
  --lobby-cut-lg: 34px;
}

body.lobby-command-body {
  min-height: 100vh;
  margin: 0;
  color: var(--lobby-text);
  background: var(--lobby-bg);
  font-family: var(--lobby-font);
  overflow-x: hidden;
}

.lobby-command {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(20px, 3vh, 34px) clamp(20px, 2vw, 38px);
  display: grid;
  grid-template-columns: minmax(235px, 15vw) minmax(760px, 62vw) minmax(210px, 13vw);
  gap: clamp(18px, 1.8vw, 30px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(1, 3, 8, 0.72), rgba(1, 4, 10, 0.38) 42%, rgba(1, 3, 8, 0.72)),
    linear-gradient(180deg, rgba(1, 4, 10, 0.5), rgba(1, 4, 10, 0.8)),
    url("../../img/tapeta.png") center / cover no-repeat,
    linear-gradient(120deg, #02040a, #07111f 55%, #02030a);
}

.lobby-bg,
.lobby-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lobby-bg {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 38%, rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 245, 255, 0.08), transparent 18% 78%, rgba(255, 43, 214, 0.1)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(100deg, transparent 0 28px, rgba(171, 224, 255, 0.08) 29px 30px, transparent 31px 74px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

.lobby-bg::before,
.lobby-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lobby-bg::before {
  opacity: 0.46;
  background:
    linear-gradient(115deg, transparent 0 13%, rgba(0, 245, 255, 0.16) 13.2% 13.4%, transparent 13.8% 58%, rgba(255, 43, 214, 0.14) 58.2% 58.4%, transparent 59%),
    repeating-linear-gradient(104deg, transparent 0 54px, rgba(255, 255, 255, 0.075) 55px 56px, transparent 57px 132px);
  filter: blur(0.15px);
}

.lobby-bg::after {
  opacity: 0.68;
  background:
    repeating-linear-gradient(92deg, transparent 0 94px, rgba(255, 255, 255, 0.05) 95px 96px, transparent 97px 178px),
    radial-gradient(ellipse at 50% 98%, rgba(0, 0, 0, 0.82), transparent 42%),
    radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 32%, rgba(0, 0, 0, 0.34));
}

.lobby-scan {
  z-index: -1;
  opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 245, 255, 0.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, transparent 0 74%, rgba(255, 43, 214, 0.06));
}

.lobby-command-shell,
.lobby-hud-panel,
.lobby-server-detail-card {
  border: 1px solid var(--lobby-line);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.08), transparent 20% 72%, rgba(255, 43, 214, 0.08)),
    linear-gradient(145deg, rgba(8, 13, 24, 0.84), rgba(2, 7, 15, 0.68)),
    rgba(4, 8, 15, 0.78);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.58),
    inset 0 0 34px rgba(0, 245, 255, 0.045),
    inset 0 0 1px rgba(232, 240, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lobby-command-shell {
  position: relative;
  z-index: 10;
  width: min(100%, 1040px);
  justify-self: center;
  min-height: min(720px, calc(100vh - 96px));
  padding: clamp(14px, 1.25vw, 22px);
  border: 1px solid rgba(90, 230, 255, 0.24);
  border-radius: 8px;
  clip-path: polygon(38px 0, calc(100% - 38px) 0, 100% 38px, 100% calc(100% - 44px), calc(100% - 56px) 100%, 56px 100%, 0 calc(100% - 44px), 0 38px);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.07), transparent 24% 74%, rgba(255, 43, 214, 0.09)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18% 82%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(5, 10, 18, 0.94), rgba(1, 4, 10, 0.8)),
    rgba(1, 3, 8, 0.78);
  background-size: auto;
  box-shadow:
    0 0 0 1px rgba(0, 245, 255, 0.11),
    0 30px 90px rgba(0, 0, 0, 0.76),
    0 0 44px rgba(0, 245, 255, 0.1),
    0 0 38px rgba(255, 43, 214, 0.08),
    inset 0 0 64px rgba(0, 245, 255, 0.04),
    inset 0 0 1px rgba(232, 240, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
}

.lobby-command-shell::before,
.lobby-command-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lobby-command-shell::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(0, 245, 255, 0.72) 9%, transparent 25% 75%, rgba(255, 43, 214, 0.55) 92%, transparent 97%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 7%, rgba(255, 43, 214, 0.38) 12%, transparent 35% 65%, rgba(0, 245, 255, 0.42) 88%, transparent 95%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 0 14%, rgba(0, 245, 255, 0.48) 30%, transparent 58%, rgba(255, 43, 214, 0.34) 84%, transparent 96%) left / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 0 14%, rgba(255, 43, 214, 0.34) 30%, transparent 58%, rgba(0, 245, 255, 0.48) 84%, transparent 96%) right / 1px 100% no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 0 7px rgba(0, 245, 255, 0.32));
}

.lobby-command-shell::after {
  top: 0;
  left: 36%;
  width: 28%;
  height: 16px;
  border: 1px solid rgba(0, 245, 255, 0.34);
  border-top: 0;
  background: rgba(0, 245, 255, 0.08);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
}

.lobby-topbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin: -4px -4px 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.14);
  background:
    linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.035), rgba(255, 43, 214, 0.035)),
    linear-gradient(180deg, rgba(0, 245, 255, 0.035), transparent 70%);
}

.lobby-terminal-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 50px;
  border: 1px solid rgba(0, 245, 255, 0.13);
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.62), rgba(1, 5, 12, 0.5)),
    rgba(1, 3, 8, 0.58);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}

.lobby-terminal-nav button {
  position: relative;
  min-height: 50px;
  padding: 0 clamp(10px, 1vw, 18px);
  border: 0;
  border-left: 1px solid rgba(0, 245, 255, 0.11);
  color: rgba(170, 187, 208, 0.72);
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.025), rgba(0, 0, 0, 0.08));
  font: 1000 clamp(0.68rem, 0.74vw, 0.9rem) var(--lobby-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease, background 160ms ease;
}

.lobby-terminal-nav button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, var(--lobby-cyan), var(--lobby-pink));
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.34), 0 0 16px rgba(255, 43, 214, 0.22);
  transition: opacity 160ms ease;
}

.lobby-terminal-nav button span {
  color: var(--lobby-cyan);
  text-shadow: var(--lobby-glow-cyan);
}

.lobby-terminal-nav button:hover,
.lobby-terminal-nav button.is-active {
  color: #f8fbff;
  background:
    linear-gradient(180deg, rgba(0, 245, 255, 0.08), rgba(255, 43, 214, 0.035)),
    rgba(2, 7, 15, 0.58);
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.34);
}

.lobby-terminal-nav button:hover::after,
.lobby-terminal-nav button.is-active::after {
  opacity: 1;
}

.lobby-terminal-nav button.is-locked,
.lobby-terminal-nav button:disabled {
  color: rgba(135, 147, 167, 0.5);
  background: rgba(1, 5, 12, 0.42);
  cursor: not-allowed;
  text-shadow: none;
}

.lobby-terminal-nav button.is-locked span,
.lobby-terminal-nav button:disabled span {
  color: rgba(135, 147, 167, 0.58);
  text-shadow: none;
}

.lobby-terminal-nav button.is-locked::after,
.lobby-terminal-nav button:disabled::after {
  opacity: 0;
}

.lobby-top-player {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  min-height: 50px;
  min-width: 118px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.07), rgba(255, 43, 214, 0.045)),
    rgba(1, 5, 12, 0.62);
  box-shadow: inset 0 0 24px rgba(0, 245, 255, 0.035), 0 0 18px rgba(0, 245, 255, 0.06);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.lobby-top-player__avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 43, 214, 0.62);
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 0 32%, rgba(255, 43, 214, 0.34) 33% 36%, transparent 37%),
    radial-gradient(circle at 50% 24%, rgba(232, 240, 255, 0.25), transparent 18%),
    url("../../img/serif.jpg") center / cover,
    rgba(4, 8, 15, 0.9);
  box-shadow: var(--lobby-glow-pink);
}

.lobby-top-player strong,
.lobby-top-player span,
.lobby-top-player em,
.lobby-top-player small {
  display: block;
  font-style: normal;
  font-weight: 900;
}

.lobby-top-player strong {
  color: #fff;
  max-width: 170px;
  font-size: 1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(255, 43, 214, 0.34);
}

.lobby-top-player span,
.lobby-top-player em {
  color: rgba(232, 240, 255, 0.66);
  font-size: 0.76rem;
}

.lobby-top-player i {
  display: block;
  width: 94px;
  height: 5px;
  margin-top: 3px;
  background: rgba(125, 136, 153, 0.22);
}

.lobby-top-player i b {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--lobby-cyan), var(--lobby-pink));
}

.lobby-top-player small {
  grid-column: 3;
  color: #fff0b4;
  font-size: 0.78rem;
  white-space: nowrap;
}

.lobby-panel-heading i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--lobby-green);
  box-shadow: 0 0 14px var(--lobby-green);
  animation: lobbyDot 1s infinite;
}

.lobby-shell-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.76fr);
  gap: clamp(12px, 1vw, 18px);
  padding-top: 12px;
}

.lobby-main-column,
.lobby-detail-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

[data-lobby-view][hidden] {
  display: none !important;
}

.lobby-mock-view {
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: clamp(18px, 1.8vw, 28px);
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(0, 245, 255, 0.055), transparent 24% 72%, rgba(255, 43, 214, 0.06)),
    rgba(1, 5, 12, 0.7);
  background-size: auto;
  box-shadow:
    inset 0 0 46px rgba(0, 245, 255, 0.035),
    inset 0 0 1px rgba(232, 240, 255, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
}

.lobby-mock-view::before,
.lobby-mock-view::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lobby-mock-view::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.74), transparent 26%, transparent 72%, rgba(255, 43, 214, 0.42)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(0, 245, 255, 0.5), transparent 35%, transparent 72%, rgba(255, 43, 214, 0.3)) left / 1px 100% no-repeat;
  opacity: 0.72;
}

.lobby-mock-view::after {
  right: -80px;
  bottom: -90px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(0, 245, 255, 0.08), transparent 58%),
    conic-gradient(from 180deg, transparent, rgba(255, 43, 214, 0.12), transparent, rgba(0, 245, 255, 0.1), transparent);
  filter: blur(0.2px);
}

.lobby-mock-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 520px;
  padding-left: 14px;
  border-left: 3px solid rgba(0, 245, 255, 0.72);
}

.lobby-mock-heading span {
  color: var(--lobby-cyan);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: var(--lobby-glow-cyan);
}

.lobby-mock-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.85rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 43, 214, 0.34), 0 0 30px rgba(0, 245, 255, 0.16);
}

.lobby-mock-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
}

.lobby-mock-card {
  position: relative;
  min-width: 0;
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: clamp(16px, 1.5vw, 22px);
  border: 1px solid rgba(0, 245, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.055), transparent 44%),
    linear-gradient(180deg, rgba(10, 18, 31, 0.62), rgba(1, 5, 12, 0.54)),
    rgba(1, 5, 12, 0.62);
  box-shadow: inset 0 0 24px rgba(0, 245, 255, 0.026), 0 14px 28px rgba(0, 0, 0, 0.24);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.lobby-mock-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--lobby-green);
  box-shadow: 0 0 14px var(--lobby-green);
}

.lobby-mock-card:nth-child(2n)::before {
  background: var(--lobby-cyan);
  box-shadow: var(--lobby-glow-cyan);
}

.lobby-mock-card:nth-child(3n)::before {
  background: var(--lobby-pink);
  box-shadow: var(--lobby-glow-pink);
}

.lobby-mock-card span {
  color: var(--lobby-muted);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lobby-mock-card strong {
  color: #fff;
  font-size: clamp(1.1rem, 1.42vw, 1.58rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.22);
}


/* Lobby settings use dedicated cards instead of the generic mock grid. */
.lobby-mock-view.lobby-settings-view {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.lobby-settings-heading { max-width: 680px; }
.lobby-settings-heading p {
  max-width: 620px;
  margin: 2px 0 0;
  color: rgba(232, 240, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.lobby-settings-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.lobby-settings-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: clamp(16px, 1.45vw, 22px);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.07), transparent 48%),
    linear-gradient(180deg, rgba(11, 20, 34, 0.78), rgba(3, 8, 17, 0.72)),
    rgba(1, 5, 12, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(232, 240, 255, 0.05),
    inset 0 0 28px rgba(0, 245, 255, 0.035),
    0 14px 28px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.lobby-settings-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--lobby-cyan), rgba(0, 245, 255, 0.08));
  box-shadow: var(--lobby-glow-cyan);
}

.lobby-settings-card--profile::before,
.lobby-settings-card--support::before {
  background: linear-gradient(180deg, var(--lobby-pink), rgba(255, 43, 214, 0.08));
  box-shadow: var(--lobby-glow-pink);
}

.lobby-settings-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.lobby-settings-card__eyebrow {
  color: var(--lobby-cyan);
  font-size: 0.7rem;
  font-weight: 1000;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lobby-settings-card--profile .lobby-settings-card__eyebrow,
.lobby-settings-card--support .lobby-settings-card__eyebrow { color: #ff7de6; }

.lobby-settings-state {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(57, 255, 136, 0.3);
  border-radius: 999px;
  color: #bfffd7;
  background: rgba(20, 83, 45, 0.22);
  font-size: 0.62rem;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lobby-settings-card__title {
  min-width: 0;
  color: #f7fbff;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.16);
}

.lobby-settings-card__text {
  max-width: 62ch;
  margin: 0;
  color: rgba(214, 226, 240, 0.74);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.lobby-settings-card__copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.lobby-settings-card--support {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  align-items: center;
  background:
    radial-gradient(circle at 90% 50%, rgba(255, 43, 214, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(0, 245, 255, 0.05), transparent 42%),
    rgba(3, 8, 17, 0.82);
}

.lobby-settings-action {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  padding: 11px 13px;
  border: 1px solid rgba(0, 245, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.1), rgba(255, 43, 214, 0.05)),
    rgba(7, 18, 30, 0.9);
  color: #eafcff;
  font: 900 0.78rem/1.25 var(--lobby-font);
  letter-spacing: 0.035em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.lobby-settings-action:hover,
.lobby-settings-action:focus-visible {
  border-color: rgba(0, 245, 255, 0.62);
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.15), rgba(255, 43, 214, 0.09)),
    rgba(7, 18, 30, 0.96);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.12);
}

.lobby-settings-action:focus-visible {
  outline: 2px solid rgba(170, 246, 255, 0.88);
  outline-offset: 2px;
}

.lobby-settings-action i {
  color: var(--lobby-cyan);
  font: 1000 1rem/1 var(--lobby-font);
  font-style: normal;
}

.lobby-settings-action--support {
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 0;
  border-color: rgba(255, 43, 214, 0.4);
  background:
    linear-gradient(90deg, rgba(255, 43, 214, 0.12), rgba(0, 245, 255, 0.07)),
    rgba(11, 10, 27, 0.92);
}
.lobby-settings-action--support i { color: #ff86e8; }

.lobby-settings-action--danger {
  border-color: rgba(255, 70, 92, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.1), transparent),
    rgba(24, 8, 14, 0.88);
  color: #ffe4e9;
}

.lobby-settings-action--danger:hover,
.lobby-settings-action--danger:focus-visible {
  border-color: rgba(255, 96, 116, 0.62);
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.16), transparent),
    rgba(28, 9, 16, 0.94);
  box-shadow: 0 0 18px rgba(255, 51, 71, 0.1);
}
.lobby-settings-action--danger i { color: #ff8093; }

.lobby-settings-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 2px;
}

.lobby-settings-status-grid > span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 7px;
  background: rgba(0, 4, 10, 0.46);
}

.lobby-settings-status-grid small {
  color: rgba(196, 211, 228, 0.64);
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.lobby-settings-status-grid b {
  color: #dffcff;
  font-size: 0.78rem;
  line-height: 1.15;
}

.lobby-settings-card--session { align-content: space-between; }

@media (max-width: 760px) {
  .lobby-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .lobby-settings-card--support {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .lobby-settings-heading p { font-size: 0.74rem; }
  .lobby-settings-card { padding: 14px; }
}

@media (max-width: 430px) {
  .lobby-settings-status-grid { grid-template-columns: minmax(0, 1fr); }
  .lobby-settings-card__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .lobby-settings-state { white-space: normal; }
}

.lobby-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.lobby-title-block h1 {
  margin: 0;
  color: #f3f7ff;
  font-size: clamp(1.18rem, 1.5vw, 1.82rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(0, 245, 255, 0.22), 0 0 26px rgba(255, 43, 214, 0.18);
}

.lobby-title-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--lobby-pink);
  font-size: 0.8rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lobby-title-block p {
  margin: 0;
  color: rgba(232, 240, 255, 0.84);
  font-weight: 700;
}

.lobby-title-block strong { color: var(--lobby-pink); }
.lobby-title-block b { color: var(--lobby-cyan); }

.lobby-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid rgba(0, 245, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.045), transparent 50%, rgba(255, 43, 214, 0.035)),
    rgba(1, 5, 12, 0.62);
  clip-path: polygon(var(--lobby-cut-md) 0, calc(100% - var(--lobby-cut-md)) 0, 100% var(--lobby-cut-md), 100% 100%, 0 100%, 0 var(--lobby-cut-md));
  box-shadow: inset 0 0 26px rgba(0, 245, 255, 0.025), 0 12px 28px rgba(0, 0, 0, 0.26);
}

.lobby-profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.58), transparent 32%, rgba(255, 43, 214, 0.36)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(0, 245, 255, 0.42), transparent 36%, rgba(255, 43, 214, 0.28)) left / 1px 100% no-repeat;
  opacity: 0.68;
}

.lobby-profile-card[data-server-state="missing"] {
  grid-template-columns: minmax(0, 1fr);
}

.lobby-logo-card {
  display: grid;
  place-items: center;
  min-height: 158px;
  overflow: hidden;
  border-color: rgba(0, 196, 212, 0.32);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32)),
    radial-gradient(circle at 50% 5%, rgba(214, 168, 79, 0.26), transparent 25%),
    radial-gradient(circle at 50% 72%, rgba(0, 196, 212, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(1, 4, 10, 0.54), rgba(2, 7, 15, 0.88)),
    url("../../img/lll.png") center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(0, 196, 212, 0.12),
    0 0 22px rgba(0, 196, 212, 0.1),
    inset 0 0 28px rgba(0, 196, 212, 0.06);
}

.lobby-logo-card::after {
  content: "♛";
  position: absolute;
  top: 10px;
  color: var(--lobby-yellow);
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(214, 168, 79, 0.45);
}

.lobby-logo-card strong {
  display: block;
  color: #f7fbff;
  font-size: clamp(2.2rem, 2.95vw, 3.55rem);
  font-weight: 1000;
  line-height: 0.78;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow:
    0 3px 0 rgba(61, 70, 86, 0.94),
    0 0 18px rgba(232, 240, 255, 0.52),
    0 0 28px rgba(0, 196, 212, 0.14);
}

.lobby-top-player__label {
  color: rgba(163, 183, 204, 0.74);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lobby-logo-card span {
  color: var(--lobby-yellow);
  font-style: italic;
  font-size: 0.86em;
  text-shadow: 0 3px 0 rgba(74, 48, 0, 0.9), 0 0 16px rgba(244, 196, 48, 0.34);
}

.lobby-profile-avatar {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 43, 214, 0.52);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 26%, rgba(232, 240, 255, 0.28), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(255, 43, 214, 0.34), transparent 45%),
    url("../../img/serif.jpg") center / cover,
    rgba(4, 8, 15, 0.86);
  box-shadow: var(--lobby-glow-pink);
}

.lobby-profile-card__label {
  display: block;
  color: var(--lobby-pink);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lobby-profile-card__name {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 58px;
  color: #fff;
  font-size: clamp(1rem, 1.25vw, 1.42rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(232, 240, 255, 0.22), 0 0 20px rgba(255, 43, 214, 0.14);
}

.lobby-profile-card__meta {
  margin: 3px 0 0;
  color: rgba(196, 209, 223, 0.78);
}

.lobby-profile-card__summary {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(0, 245, 255, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.055), rgba(255, 43, 214, 0.03)),
    rgba(1, 5, 12, 0.42);
  box-shadow:
    inset 0 0 22px rgba(0, 245, 255, 0.035),
    0 0 18px rgba(0, 245, 255, 0.045);
  overflow: hidden;
}

.lobby-profile-card__summary span {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 12px;
  color: var(--lobby-muted);
  align-content: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 3, 9, 0.48);
  overflow-wrap: anywhere;
}

.lobby-profile-card__summary span::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 7px;
  left: 10px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.24;
}

.lobby-profile-card__summary span:nth-child(1)::before,
.lobby-profile-card__summary span:nth-child(2)::before,
.lobby-profile-card__summary span:nth-child(3)::before {
  display: none;
}

.lobby-profile-card[data-server-state="missing"] .lobby-profile-card__summary span:nth-child(1)::before,
.lobby-profile-card[data-server-state="missing"] .lobby-profile-card__summary span:nth-child(2)::before,
.lobby-profile-card[data-server-state="missing"] .lobby-profile-card__summary span:nth-child(3)::before {
  display: none;
}

.lobby-profile-card__summary span[data-summary-state="selected"] {
  border-color: rgba(0, 196, 212, 0.34);
  color: rgba(223, 247, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(244, 196, 48, 0.08), transparent 70%),
    rgba(2, 11, 18, 0.62);
  box-shadow:
    inset 0 0 18px rgba(0, 196, 212, 0.12),
    inset 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(0, 196, 212, 0.14);
}

.lobby-profile-card__summary span[data-summary-state="selected"]::before {
  color: rgba(111, 239, 255, 0.98);
  text-shadow:
    0 0 10px rgba(0, 196, 212, 0.88),
    0 0 24px rgba(244, 196, 48, 0.2);
}

.lobby-profile-card__summary span[data-summary-state="selected"] strong {
  color: #f5fbff;
  text-shadow:
    0 0 14px rgba(0, 196, 212, 0.24),
    0 0 22px rgba(244, 196, 48, 0.12);
}

.lobby-profile-card__summary span[data-summary-state="missing"] {
  border-color: rgba(166, 28, 56, 0.3);
  color: rgba(214, 126, 146, 0.84);
  background:
    linear-gradient(135deg, rgba(166, 28, 56, 0.18), transparent 44%),
    rgba(18, 4, 8, 0.56);
}

.lobby-profile-card__summary span[data-summary-state="missing"]::before {
  color: rgba(177, 26, 58, 0.92);
  text-shadow:
    0 0 10px rgba(177, 26, 58, 0.78),
    0 0 24px rgba(106, 10, 33, 0.4);
}

.lobby-profile-card__summary span + span {
  border-left: 1px solid rgba(0, 245, 255, 0.12);
}

.lobby-profile-card__summary strong {
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  max-width: 100%;
  padding-right: 4px;
  font-size: clamp(0.76rem, 0.78vw, 0.9rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.lobby-active-server-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: clamp(16px, 1.5vw, 22px);
  border: 1px solid rgba(197, 31, 168, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(197, 31, 168, 0.1), transparent 36% 72%, rgba(0, 196, 212, 0.075)),
    linear-gradient(180deg, rgba(9, 15, 28, 0.86), rgba(1, 5, 12, 0.74)),
    rgba(1, 5, 12, 0.76);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(197, 31, 168, 0.075),
    inset 0 0 32px rgba(0, 196, 212, 0.028);
  overflow: hidden;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}

.lobby-active-server-card[hidden] {
  display: none !important;
}

.lobby-active-server-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(197, 31, 168, 0.48), transparent 28%, transparent 72%, rgba(0, 196, 212, 0.38)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(197, 31, 168, 0.36), transparent 38%, rgba(0, 196, 212, 0.26)) left / 1px 100% no-repeat;
  opacity: 0.78;
}

.lobby-active-server-card__copy,
.lobby-active-server-card__meta,
.lobby-active-server-card .lobby-primary-cta {
  position: relative;
  z-index: 1;
}

.lobby-active-server-card__copy {
  display: grid;
  gap: 6px;
}

.lobby-active-server-card__copy span {
  color: #c51fa8;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(197, 31, 168, 0.38), 0 0 32px rgba(197, 31, 168, 0.18);
}

.lobby-active-server-card__copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1.65vw, 2rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(197, 31, 168, 0.26), 0 0 26px rgba(0, 196, 212, 0.1);
}

.lobby-active-server-card__copy p {
  margin: 0;
  color: rgba(232, 240, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.28;
}

.lobby-active-server-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lobby-active-server-card__meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 6px;
  color: var(--lobby-muted);
  background: rgba(0, 3, 9, 0.48);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lobby-active-server-card__meta strong {
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.14;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.lobby-active-server-card .lobby-primary-cta {
  min-height: 60px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  padding: 4px;
  border: 1px solid rgba(167, 184, 202, 0.12);
  border-radius: 8px;
  background: rgba(3, 8, 15, 0.56);
}

.auth-mode-tab {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(196, 208, 223, 0.72);
  background: rgba(255, 255, 255, 0.02);
  font: 1000 1.06rem var(--lobby-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  clip-path: none;
}

.auth-mode-tab:hover,
.auth-mode-tab:focus-visible {
  border-color: rgba(167, 184, 202, 0.16);
  color: rgba(232, 240, 255, 0.9);
  box-shadow: none;
}

.auth-mode-tab.is-active {
  color: #fff;
  border-color: rgba(167, 184, 202, 0.22);
  background: rgba(17, 25, 36, 0.92);
  box-shadow: inset 0 -2px 0 rgba(57, 255, 136, 0.72);
}

.auth-mode-tab[data-server-mode-tab="free"].is-active {
  border-color: rgba(167, 184, 202, 0.22);
  background: rgba(17, 25, 36, 0.92);
  box-shadow: inset 0 -2px 0 rgba(120, 136, 255, 0.56);
}

.auth-entry-status {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 6px;
  color: rgba(232, 240, 255, 0.74);
  background: rgba(0, 3, 9, 0.44);
  font-weight: 800;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}

.auth-entry-status[data-state="success"] {
  border-color: rgba(57, 255, 136, 0.42);
  color: #ceffe3;
}

.auth-servers {
  display: grid;
  gap: 10px;
  margin: 0;
}

.auth-server-card {
  --server-card-accent: #00c4d4;
  --server-card-accent-soft: rgba(0, 196, 212, 0.09);
  --server-card-accent-line: rgba(0, 196, 212, 0.18);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 196, 212, 0.11);
  border-radius: 6px;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.72), rgba(3, 7, 13, 0.76)),
    rgba(1, 5, 12, 0.72);
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(18px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 10px 100%, 0 calc(100% - 10px), 0 18px);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.auth-server-card[data-server-mode="free"] {
  --server-card-accent: #5fb9c7;
  --server-card-accent-soft: rgba(95, 185, 199, 0.1);
  --server-card-accent-line: rgba(95, 185, 199, 0.26);
  border-color: rgba(95, 185, 199, 0.2);
  background:
    linear-gradient(100deg, rgba(95, 185, 199, 0.085), transparent 42%),
    linear-gradient(180deg, rgba(8, 18, 28, 0.76), rgba(3, 8, 15, 0.78)),
    rgba(1, 5, 12, 0.72);
  box-shadow:
    inset 3px 0 0 rgba(95, 185, 199, 0.3),
    inset 0 0 24px rgba(95, 185, 199, 0.04);
}

.auth-server-card[data-server-mode="war"] {
  --server-card-accent: #c51fa8;
  --server-card-accent-soft: rgba(197, 31, 168, 0.1);
  --server-card-accent-line: rgba(197, 31, 168, 0.27);
  border-color: rgba(197, 31, 168, 0.2);
  background:
    linear-gradient(100deg, rgba(197, 31, 168, 0.078), transparent 42%),
    linear-gradient(180deg, rgba(16, 11, 27, 0.76), rgba(6, 5, 15, 0.8)),
    rgba(1, 5, 12, 0.72);
  box-shadow:
    inset 3px 0 0 rgba(197, 31, 168, 0.31),
    inset 0 0 24px rgba(197, 31, 168, 0.045);
}

.auth-server-card[data-server-mode="free"] .auth-server-card__label {
  text-shadow: 0 0 14px rgba(95, 185, 199, 0.15);
}

.auth-server-card[data-server-mode="war"] .auth-server-card__label {
  text-shadow: 0 0 14px rgba(197, 31, 168, 0.16);
}

body.servers-page .auth-server-card {
  border-color: rgba(0, 196, 212, 0.11);
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.045), transparent 42%),
    linear-gradient(180deg, rgba(11, 18, 30, 0.68), rgba(2, 6, 18, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

body.servers-page .auth-server-card[data-server-mode="free"] {
  border-color: rgba(95, 185, 199, 0.2);
  background:
    linear-gradient(135deg, rgba(95, 185, 199, 0.075), transparent 42%),
    linear-gradient(180deg, rgba(8, 18, 28, 0.74), rgba(3, 8, 15, 0.78));
  box-shadow:
    inset 3px 0 0 rgba(95, 185, 199, 0.3),
    inset 0 0 24px rgba(95, 185, 199, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

body.servers-page .auth-server-card[data-server-mode="war"] {
  border-color: rgba(197, 31, 168, 0.18);
  background:
    linear-gradient(135deg, rgba(197, 31, 168, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(16, 11, 27, 0.74), rgba(6, 5, 15, 0.78));
  box-shadow:
    inset 3px 0 0 rgba(197, 31, 168, 0.28),
    inset 0 0 24px rgba(197, 31, 168, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

body.servers-page .auth-server-card.is-selected {
  border-color: var(--server-card-accent-line);
  background:
    linear-gradient(135deg, var(--server-card-accent-soft), transparent 46%),
    linear-gradient(180deg, rgba(15, 22, 34, 0.84), rgba(3, 8, 17, 0.88));
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--server-card-accent) 58%, transparent),
    0 0 18px color-mix(in srgb, var(--server-card-accent) 10%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.auth-server-card[data-server-mode] .auth-server-card__meta,
.auth-server-card[data-server-mode] .auth-server-card__countdown {
  color: color-mix(in srgb, var(--server-card-accent) 44%, rgba(188, 201, 216, 0.72));
}

.auth-server-card[data-server-mode] .auth-server-card__signal {
  color: color-mix(in srgb, var(--server-card-accent) 72%, rgba(136, 152, 171, 0.72));
}

.auth-server-card[data-server-mode] .auth-server-card__signal i {
  box-shadow: 0 0 10px color-mix(in srgb, var(--server-card-accent) 30%, transparent);
}

.auth-server-card.is-selected {
  outline: 1px solid rgba(232, 240, 255, 0.12);
  border-color: var(--server-card-accent-line);
  background:
    linear-gradient(100deg, var(--server-card-accent-soft), transparent 46%),
    linear-gradient(180deg, rgba(16, 24, 36, 0.92), rgba(5, 11, 19, 0.92)),
    rgba(3, 7, 13, 0.88);
  box-shadow:
    0 0 0 1px rgba(232, 240, 255, 0.06),
    inset 3px 0 0 color-mix(in srgb, var(--server-card-accent) 74%, transparent),
    0 0 22px color-mix(in srgb, var(--server-card-accent) 14%, transparent),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.auth-server-card::after {
  display: none;
}

.auth-server-card__label,
.auth-server-card__subtitle,
.auth-server-card__meta,
.auth-server-card__badge,
.auth-server-card__schedule,
.auth-server-card__countdown,
.auth-server-card__signal {
  position: relative;
  z-index: 1;
  grid-column: 1;
}

.auth-server-card__label {
  color: #fff;
  font-size: clamp(1rem, 1.12vw, 1.24rem);
  font-weight: 1000;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.auth-server-card__subtitle {
  color: rgba(232, 240, 255, 0.72);
  font-size: 0.84rem;
}

.auth-server-card__meta {
  color: rgba(188, 201, 216, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.auth-server-card__schedule {
  grid-column: 2;
  grid-row: 1;
  color: var(--lobby-green);
  font-size: 0.78rem;
  font-weight: 900;
  justify-self: end;
  white-space: nowrap;
}

.auth-server-card__schedule::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: none;
}

.auth-server-card__countdown {
  grid-column: 2;
  grid-row: 2;
  color: rgba(188, 201, 216, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  justify-self: end;
  text-align: right;
  overflow-wrap: anywhere;
}

.auth-server-card__badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 5px 9px;
  border: 1px solid rgba(255, 43, 214, 0.68);
  border-radius: 3px;
  color: var(--lobby-pink);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  background: rgba(255, 43, 214, 0.08);
  box-shadow: inset 0 0 14px rgba(255, 43, 214, 0.1), 0 0 16px rgba(255, 43, 214, 0.16);
}

.auth-server-card__badge + .auth-server-card__schedule {
  grid-row: 2;
}

.auth-server-card__badge + .auth-server-card__schedule + .auth-server-card__countdown {
  grid-row: 3;
}

.auth-server-card__signal {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 18px;
  color: rgba(136, 152, 171, 0.72);
}

.auth-server-card__signal i {
  width: 5px;
  background: currentColor;
  box-shadow: none;
}

.auth-server-card__signal i:nth-child(1) { height: 6px; }
.auth-server-card__signal i:nth-child(2) { height: 10px; }
.auth-server-card__signal i:nth-child(3) { height: 14px; opacity: 0.42; }
.auth-server-card__signal i:nth-child(4) { height: 18px; opacity: 0.3; }

.auth-server-card__signal.is-medium i:nth-child(3) { opacity: 1; }
.auth-server-card__signal.is-high i { opacity: 1; }
.auth-server-card__signal.is-low { color: var(--lobby-muted); }

.live-server-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 126px;
  padding: 0;
  overflow: hidden;
}

.live-server-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.live-server-card__main .auth-server-card__label,
.live-server-card__main .auth-server-card__subtitle {
  grid-column: 1;
}

.live-server-card__main .auth-server-card__meta,
.live-server-card__main .auth-server-card__status,
.live-server-card__main .auth-server-card__schedule,
.live-server-card__main .auth-server-card__countdown {
  position: static;
  inset: auto;
  transform: none;
}

.live-server-card__main .auth-server-card__status,
.live-server-card__main .auth-server-card__schedule,
.live-server-card__main .auth-server-card__countdown {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}

.live-server-card > .lobby-primary-cta {
  align-self: stretch;
  min-width: 178px;
  border-radius: 0;
}

.lobby-registration-status {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(95, 185, 199, 0.22);
  border-radius: 10px;
  background: rgba(2, 9, 18, 0.7);
}

.lobby-registration-status strong {
  color: #dffaff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lobby-registration-status span {
  color: #83cbd6;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .live-server-card {
    grid-template-columns: 1fr;
  }

  .live-server-card > .lobby-primary-cta {
    min-height: 46px;
    border-radius: 0 0 12px 12px;
  }

  .live-server-card__main {
    grid-template-columns: 1fr;
  }

  .live-server-card__main .auth-server-card__status,
  .live-server-card__main .auth-server-card__schedule,
  .live-server-card__main .auth-server-card__countdown {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
}

.auth-server-card.is-locked,
.auth-server-card.is-full {
  opacity: 0.72;
}

.auth-server-card.is-locked {
  border-color: rgba(214, 168, 79, 0.42);
  box-shadow: inset 0 0 18px rgba(214, 168, 79, 0.06);
}

.auth-server-card.is-locked::before {
  display: none;
}

.auth-server-card.is-full {
  border-color: rgba(255, 51, 71, 0.34);
}

.auth-server-card.is-full::before {
  display: none;
}

.auth-server-card.is-offline {
  border-color: rgba(255, 51, 71, 0.48);
  background:
    linear-gradient(100deg, rgba(255, 51, 71, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(30, 8, 14, 0.84), rgba(8, 3, 7, 0.84)),
    rgba(1, 5, 12, 0.78);
  box-shadow:
    inset 3px 0 0 rgba(255, 51, 71, 0.58),
    inset 0 0 24px rgba(255, 51, 71, 0.08),
    0 0 18px rgba(255, 51, 71, 0.1);
}

.auth-server-card.is-offline::before {
  display: none;
}

.auth-server-card.is-offline .auth-server-card__schedule,
.auth-server-card.is-offline .auth-server-card__countdown,
.auth-server-card.is-offline .auth-server-card__signal {
  color: var(--lobby-red);
}

.auth-server-card.is-locked .auth-server-card__schedule,
.auth-server-card.is-locked .auth-server-card__countdown {
  color: var(--lobby-yellow);
}

.auth-server-card.is-full .auth-server-card__schedule,
.auth-server-card.is-full .auth-server-card__countdown {
  color: var(--lobby-red);
}

.auth-server-card:focus-visible {
  outline: 1px solid rgba(232, 240, 255, 0.22);
  outline-offset: 1px;
}

.lobby-refresh-countdown {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  width: auto;
  margin-top: 1px;
  min-width: 116px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(57, 255, 136, 0.24);
  border-radius: 6px;
  color: rgba(182, 255, 211, 0.72);
  background:
    linear-gradient(90deg, rgba(57, 255, 136, 0.075), rgba(0, 245, 255, 0.035)),
    rgba(1, 6, 10, 0.56);
  font: 900 0.66rem var(--lobby-font);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(57, 255, 136, 0.26);
  box-sizing: border-box;
  box-shadow:
    0 0 16px rgba(57, 255, 136, 0.08),
    inset 0 0 16px rgba(57, 255, 136, 0.035);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.lobby-refresh-countdown strong {
  color: var(--lobby-green);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(57, 255, 136, 0.54);
}

.lobby-refresh-countdown.is-refreshing strong {
  color: #d8ffe7;
  text-shadow: 0 0 12px rgba(57, 255, 136, 0.9), 0 0 22px rgba(0, 245, 255, 0.34);
}

.lobby-promo-card {
  min-height: 190px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(2, 6, 13, 0.72)),
    linear-gradient(90deg, rgba(244, 196, 48, 0.12), transparent 52%, rgba(0, 196, 212, 0.1)),
    url("../../img/lll.png") center bottom / cover no-repeat,
    rgba(4, 8, 15, 0.7);
}

.lobby-promo-card strong {
  color: var(--lobby-yellow);
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(244, 196, 48, 0.28), 0 0 28px rgba(0, 196, 212, 0.08);
  transform: rotate(-4deg);
}

.lobby-server-detail-card,
.lobby-hud-panel {
  position: relative;
  border-radius: 8px;
  padding: 16px;
  clip-path: polygon(var(--lobby-cut-md) 0, calc(100% - var(--lobby-cut-md)) 0, 100% var(--lobby-cut-md), 100% calc(100% - var(--lobby-cut-md)), calc(100% - var(--lobby-cut-md)) 100%, var(--lobby-cut-md) 100%, 0 calc(100% - var(--lobby-cut-md)), 0 var(--lobby-cut-md));
}

.lobby-server-detail-card::before,
.lobby-hud-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.58), transparent 24% 82%, rgba(255, 43, 214, 0.32)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(0, 245, 255, 0.44), transparent 28% 78%, rgba(255, 43, 214, 0.26)) left / 1px 100% no-repeat;
  opacity: 0.62;
}

.lobby-server-detail-card h2 {
  margin: 4px 0 0;
  color: #f8fbff;
  font-size: clamp(1.06rem, 1.25vw, 1.38rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 16px rgba(0, 245, 255, 0.2), 0 0 18px rgba(255, 43, 214, 0.16);
}

.lobby-detail-kicker {
  display: block;
  color: var(--lobby-muted);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lobby-detail-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.lobby-detail-title > span {
  padding: 5px 8px;
  border: 1px solid rgba(57, 255, 136, 0.44);
  border-radius: 6px;
  color: var(--lobby-green);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.lobby-detail-heat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  min-height: 92px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 51, 71, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 50%, rgba(255, 51, 71, 0.22), transparent 35%),
    radial-gradient(circle at 15% 20%, rgba(0, 245, 255, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(255, 51, 71, 0.12), transparent 48%),
    rgba(0, 3, 9, 0.58);
  box-shadow:
    inset 0 0 24px rgba(255, 51, 71, 0.055),
    0 0 18px rgba(255, 51, 71, 0.085);
  overflow: hidden;
}

.lobby-detail-heat::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 51, 71, 0.13), transparent 64%);
  transform: translateY(-50%);
  filter: blur(1px);
}

.lobby-detail-heat span {
  position: relative;
  z-index: 1;
  color: rgba(255, 184, 193, 0.86);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lobby-risk-ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(2, 6, 14, 0.92) 0 50%, transparent 51%),
    conic-gradient(var(--lobby-red) var(--risk-value), rgba(255, 51, 71, 0.14) 0);
  box-shadow:
    0 0 0 1px rgba(255, 51, 71, 0.28),
    0 0 20px rgba(255, 51, 71, 0.24),
    inset 0 0 20px rgba(255, 51, 71, 0.08);
}

.lobby-risk-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 184, 193, 0.26);
  border-radius: inherit;
  box-shadow: inset 0 0 14px rgba(255, 51, 71, 0.14);
}

.lobby-risk-ring strong {
  position: relative;
  z-index: 1;
  color: var(--lobby-red);
  font-size: 0.96rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 12px rgba(255, 51, 71, 0.9),
    0 0 28px rgba(255, 51, 71, 0.34);
}

.lobby-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.lobby-detail-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(0, 245, 255, 0.09);
  background: rgba(0, 3, 9, 0.42);
  color: var(--lobby-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.lobby-detail-grid strong {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.lobby-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lobby-primary-cta {
  position: relative;
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(255, 214, 88, 0.58);
  border-radius: 8px;
  color: #fff8d6;
  background:
    linear-gradient(90deg, rgba(255, 214, 88, 0.2), rgba(214, 168, 79, 0.08)),
    rgba(1, 5, 12, 0.82);
  font: 1000 1.35rem var(--lobby-font);
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(255, 214, 88, 0.2), inset 0 0 22px rgba(255, 255, 255, 0.055);
  cursor: pointer;
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

.lobby-detail-actions .lobby-primary-cta {
  min-height: 58px;
  font-size: clamp(0.76rem, 0.9vw, 1rem);
  overflow-wrap: anywhere;
}

.lobby-primary-cta::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 214, 88, 0.42);
  pointer-events: none;
  clip-path: inherit;
}

.lobby-primary-cta--enter {
  border-color: rgba(0, 245, 255, 0.46);
  background:
    linear-gradient(90deg, rgba(0, 245, 255, 0.13), rgba(12, 58, 82, 0.25)),
    rgba(1, 5, 12, 0.86);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.18), inset 0 0 22px rgba(255, 255, 255, 0.05);
}

.lobby-primary-cta--enter::before {
  border-color: rgba(0, 245, 255, 0.42);
}

.lobby-primary-cta:hover,
.lobby-primary-cta:focus-visible {
  box-shadow: 0 0 28px rgba(255, 214, 88, 0.68), 0 0 72px rgba(214, 168, 79, 0.28);
}

.lobby-primary-cta--enter:hover,
.lobby-primary-cta--enter:focus-visible {
  box-shadow: 0 0 28px rgba(0, 245, 255, 0.68), 0 0 72px rgba(0, 245, 255, 0.24);
}

.lobby-primary-cta:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.32);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.lobby-primary-cta:disabled:hover,
.lobby-primary-cta:disabled:focus-visible {
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.lobby-server-detail-card p {
  margin: 10px 0 0;
  color: rgba(255, 154, 167, 0.74);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.lobby-side {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 18px;
}

.lobby-side--left {
  display: grid;
}

.lobby-side--right {
  align-self: stretch;
  align-content: center;
}

.lobby-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(232, 240, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby-status-card strong {
  color: var(--lobby-green);
  font-size: 1.55rem;
  text-shadow: 0 0 14px rgba(57, 255, 136, 0.55);
}

.lobby-status-card p {
  margin: 12px 0 0;
  color: rgba(232, 240, 255, 0.82);
  font-weight: 800;
}

.lobby-status-card {
  position: absolute;
  z-index: 30;
  top: clamp(12px, 1.5vw, 22px);
  right: clamp(12px, 1.6vw, 28px);
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: min(190px, calc(100vw - 24px));
  padding: 9px 13px;
  border-color: rgba(57, 255, 136, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(135deg, rgba(57, 255, 136, 0.08), transparent 38%),
    linear-gradient(90deg, rgba(0, 245, 255, 0.055), rgba(255, 43, 214, 0.035)),
    linear-gradient(145deg, rgba(4, 9, 18, 0.86), rgba(1, 4, 10, 0.68));
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(57, 255, 136, 0.08),
    inset 0 0 24px rgba(0, 245, 255, 0.045),
    inset 0 0 1px rgba(232, 240, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  overflow: hidden;
}

.lobby-status-card::before,
.lobby-status-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lobby-status-card::before {
  top: 0;
  right: 10px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(57, 255, 136, 0.95), rgba(0, 245, 255, 0.44), transparent);
  box-shadow: 0 0 12px rgba(57, 255, 136, 0.7);
}

.lobby-status-card::after {
  right: 8px;
  bottom: 6px;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 136, 0.72));
  opacity: 0.72;
}

.lobby-status-card .lobby-panel-heading {
  margin-bottom: 7px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.lobby-status-card strong {
  display: block;
  color: var(--lobby-green);
  font-size: clamp(0.68rem, 0.74vw, 0.86rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(57, 255, 136, 0.55);
  transition: color 240ms ease, text-shadow 240ms ease;
}

.lobby-status-card strong.is-scrambling {
  color: #b7ffd6;
  text-shadow:
    0 0 10px rgba(57, 255, 136, 0.86),
    0 0 22px rgba(0, 245, 255, 0.32);
}

.lobby-status-card > i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(185, 255, 214, 0.62);
  border-radius: 999px;
  background: var(--lobby-green);
  box-shadow:
    0 0 0 3px rgba(57, 255, 136, 0.08),
    0 0 12px var(--lobby-green),
    0 0 24px rgba(57, 255, 136, 0.34);
  animation: lobbyDot 1s infinite;
}

.lobby-heat-card strong,
.lobby-market-card strong {
  color: #f2fbff;
  font-size: 1.55rem;
  text-shadow: 0 0 14px rgba(0, 196, 212, 0.24);
}

.lobby-meter {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(125, 136, 153, 0.18);
  overflow: hidden;
}

.lobby-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lobby-cyan), #5ad9e5, rgba(0, 196, 212, 0.62));
  box-shadow: 0 0 14px rgba(0, 196, 212, 0.38);
}

.lobby-market-card svg {
  width: 100%;
  height: 54px;
  margin-top: 8px;
}

.lobby-market-card polyline {
  fill: none;
  stroke: var(--lobby-yellow);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 5px rgba(244, 196, 48, 0.52));
}

.lobby-gang-sign {
  padding: 20px 12px;
  border: 1px solid currentColor;
  border-radius: 14px;
  color: rgba(255, 43, 214, 0.64);
  font-size: clamp(1.4rem, 2vw, 2.6rem);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 18px currentColor;
  background: rgba(4, 8, 15, 0.34);
  transform: rotate(-4deg);
}

.lobby-gang-sign--iron {
  color: rgba(0, 245, 255, 0.58);
  transform: rotate(5deg);
}

.server-detail-modal__card {
  width: min(620px, 94vw);
  min-height: auto;
  max-height: calc(100dvh - 32px);
  gap: 12px;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-color: rgba(244, 196, 48, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 26%),
    radial-gradient(circle at top right, rgba(244, 196, 48, 0.12), transparent 38%),
    radial-gradient(circle at 12% 18%, rgba(201, 214, 228, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(8, 14, 26, 0.86), rgba(3, 7, 14, 0.92));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(0, 245, 255, 0.12),
    0 0 34px rgba(244, 196, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

.server-detail-modal__title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding-right: 42px;
}

.server-detail-modal__title {
  min-width: 0;
  padding-right: 0;
  font-size: clamp(0.96rem, 1.2vw, 1.18rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.server-detail-modal__spawn-hint {
  display: none;
}

.server-detail-modal__subtitle {
  font-size: 0.92rem;
  line-height: 1.38;
  color: rgba(210, 220, 232, 0.78);
}

.server-detail-modal__materials li {
  overflow-wrap: anywhere;
}

.server-detail-modal__btn--join {
  border-color: rgba(255, 214, 88, 0.58) !important;
  color: #fff8d6 !important;
  background:
    linear-gradient(90deg, rgba(255, 214, 88, 0.22), rgba(201, 214, 228, 0.08)),
    rgba(1, 5, 12, 0.82) !important;
  box-shadow:
    0 0 20px rgba(255, 214, 88, 0.2),
    inset 0 0 22px rgba(255, 255, 255, 0.055);
}

.server-detail-modal__btn--join:hover:not(:disabled),
.server-detail-modal__btn--join:focus-visible:not(:disabled) {
  box-shadow:
    0 0 28px rgba(255, 214, 88, 0.52),
    0 0 52px rgba(201, 214, 228, 0.18);
}

.lobby-logout-modal[hidden] {
  display: none;
}

.lobby-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.lobby-logout-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 245, 255, 0.16), transparent 30%),
    radial-gradient(circle at 78% 72%, rgba(255, 43, 214, 0.16), transparent 34%),
    rgba(1, 4, 10, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.lobby-logout-modal__card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 43, 214, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 43, 214, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(8, 14, 26, 0.94), rgba(3, 7, 14, 0.98));
  box-shadow:
    var(--lobby-glow-pink),
    0 26px 70px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(232, 240, 255, 0.9);
}

.lobby-logout-modal__eyebrow {
  color: var(--lobby-cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lobby-logout-modal__card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1;
  text-transform: uppercase;
}

.lobby-logout-modal__card p {
  margin: 0;
  color: rgba(232, 240, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lobby-logout-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.lobby-logout-modal__btn {
  min-height: 44px;
  border: 1px solid rgba(0, 245, 255, 0.28);
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.88);
  color: #e8f0ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.lobby-logout-modal__btn--stay {
  border-color: rgba(255, 43, 214, 0.62);
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.72), rgba(64, 16, 62, 0.88));
  box-shadow: var(--lobby-glow-pink);
}

.lobby-logout-modal__btn--logout {
  border-color: rgba(0, 245, 255, 0.42);
  background: rgba(8, 14, 26, 0.88);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.1);
}

@keyframes lobbyDot {
  0%, 100% { opacity: 0.38; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Lobby polish: align lobby with login cinematic HUD system */
.lobby-command {
  background:
    linear-gradient(90deg, rgba(1, 3, 8, 0.76), rgba(1, 4, 10, 0.42) 42%, rgba(1, 3, 8, 0.76)),
    linear-gradient(180deg, rgba(1, 4, 10, 0.5), rgba(1, 4, 10, 0.82)),
    url("../../img/tapeta.png") center / cover no-repeat,
    linear-gradient(120deg, #02040a, #07111f 55%, #02030a);
}

.lobby-bg {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 38%, rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 196, 212, 0.08), transparent 18% 78%, rgba(244, 196, 48, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(100deg, transparent 0 28px, rgba(171, 224, 255, 0.08) 29px 30px, transparent 31px 74px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px);
}

.lobby-bg::before {
  background:
    linear-gradient(115deg, transparent 0 13%, rgba(0, 196, 212, 0.16) 13.2% 13.4%, transparent 13.8% 58%, rgba(244, 196, 48, 0.12) 58.2% 58.4%, transparent 59%),
    repeating-linear-gradient(104deg, transparent 0 54px, rgba(255, 255, 255, 0.075) 55px 56px, transparent 57px 132px);
}

.lobby-scan {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 196, 212, 0.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, transparent 0 74%, rgba(244, 196, 48, 0.05));
}

.lobby-command-shell,
.lobby-hud-panel,
.lobby-server-detail-card {
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.08), transparent 20% 72%, rgba(244, 196, 48, 0.06)),
    linear-gradient(145deg, rgba(8, 13, 24, 0.84), rgba(2, 7, 15, 0.68)),
    rgba(4, 8, 15, 0.78);
}

.lobby-command-shell {
  width: min(100%, 1120px);
  min-height: min(760px, calc(100vh - 72px));
  border-color: rgba(90, 230, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.07), transparent 24% 74%, rgba(244, 196, 48, 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18% 82%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(5, 10, 18, 0.94), rgba(1, 4, 10, 0.84)),
    rgba(1, 3, 8, 0.78);
  box-shadow:
    0 0 0 1px rgba(0, 196, 212, 0.11),
    0 30px 90px rgba(0, 0, 0, 0.76),
    0 0 44px rgba(0, 196, 212, 0.08),
    0 0 34px rgba(244, 196, 48, 0.07),
    inset 0 0 64px rgba(0, 196, 212, 0.04),
    inset 0 0 1px rgba(232, 240, 255, 0.12);
}

.lobby-command-shell::before {
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(0, 196, 212, 0.72) 9%, transparent 25% 75%, rgba(244, 196, 48, 0.42) 92%, transparent 97%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 7%, rgba(244, 196, 48, 0.26) 12%, transparent 35% 65%, rgba(0, 196, 212, 0.42) 88%, transparent 95%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 0 14%, rgba(0, 196, 212, 0.48) 30%, transparent 58%, rgba(244, 196, 48, 0.2) 84%, transparent 96%) left / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 0 14%, rgba(244, 196, 48, 0.2) 30%, transparent 58%, rgba(0, 196, 212, 0.48) 84%, transparent 96%) right / 1px 100% no-repeat;
}

.lobby-command-shell::after {
  border-color: rgba(0, 196, 212, 0.3);
  background: rgba(0, 196, 212, 0.07);
}

.lobby-topbar {
  border-bottom: 1px solid rgba(0, 196, 212, 0.16);
  background:
    linear-gradient(90deg, transparent, rgba(0, 196, 212, 0.04), rgba(244, 196, 48, 0.03)),
    linear-gradient(180deg, rgba(0, 196, 212, 0.035), transparent 70%);
}

.lobby-terminal-nav {
  border-color: rgba(0, 196, 212, 0.15);
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.72), rgba(1, 5, 12, 0.58)),
    rgba(1, 3, 8, 0.58);
}

.lobby-terminal-nav button {
  background: linear-gradient(180deg, rgba(0, 196, 212, 0.025), rgba(0, 0, 0, 0.08));
}

.lobby-terminal-nav button::after {
  background: linear-gradient(90deg, var(--lobby-cyan), var(--lobby-yellow));
  box-shadow: 0 0 12px rgba(0, 196, 212, 0.34), 0 0 16px rgba(244, 196, 48, 0.18);
}

.lobby-terminal-nav button:hover,
.lobby-terminal-nav button.is-active {
  background:
    linear-gradient(180deg, rgba(0, 196, 212, 0.09), rgba(244, 196, 48, 0.03)),
    rgba(2, 7, 15, 0.62);
}

.lobby-terminal-nav button.is-locked,
.lobby-terminal-nav button:disabled {
  color: rgba(146, 159, 176, 0.46);
  background: rgba(1, 5, 12, 0.46);
}

.lobby-top-player {
  border-color: rgba(0, 196, 212, 0.2);
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.07), rgba(244, 196, 48, 0.03)),
    rgba(1, 5, 12, 0.62);
  box-shadow: inset 0 0 24px rgba(0, 196, 212, 0.035), 0 0 18px rgba(0, 196, 212, 0.06);
}

.lobby-shell-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: clamp(14px, 1.2vw, 22px);
  padding-top: 14px;
}

.lobby-main-column,
.lobby-detail-column {
  gap: 14px;
}

.lobby-profile-card {
  border-radius: 8px;
  border-color: rgba(0, 196, 212, 0.16);
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.05), transparent 50%, rgba(244, 196, 48, 0.03)),
    rgba(1, 5, 12, 0.62);
}

.lobby-profile-card__summary {
  border-color: rgba(0, 196, 212, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.055), rgba(244, 196, 48, 0.025)),
    rgba(1, 5, 12, 0.42);
}

.lobby-active-server-card {
  gap: 14px;
  padding: clamp(18px, 1.65vw, 24px);
  border-color: rgba(0, 196, 212, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.1), transparent 34% 72%, rgba(244, 196, 48, 0.07)),
    linear-gradient(180deg, rgba(9, 15, 28, 0.9), rgba(1, 5, 12, 0.78)),
    rgba(1, 5, 12, 0.76);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(0, 196, 212, 0.08),
    inset 0 0 32px rgba(0, 196, 212, 0.04);
}

.lobby-active-server-card::before {
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.48), transparent 28%, transparent 72%, rgba(244, 196, 48, 0.32)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(0, 196, 212, 0.36), transparent 38%, rgba(244, 196, 48, 0.22)) left / 1px 100% no-repeat;
}

.lobby-active-server-card__copy span {
  color: rgba(186, 224, 233, 0.92);
  text-shadow: 0 0 12px rgba(0, 196, 212, 0.24);
}

.lobby-active-server-card__copy h2 {
  font-size: clamp(1.45rem, 1.95vw, 2.25rem);
  text-shadow: 0 0 16px rgba(0, 196, 212, 0.24), 0 0 24px rgba(244, 196, 48, 0.1);
}

.lobby-active-server-card__warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(244, 196, 48, 0.22);
  border-radius: 8px;
  color: rgba(236, 225, 184, 0.9);
  background:
    linear-gradient(90deg, rgba(244, 196, 48, 0.08), transparent 64%),
    rgba(18, 14, 6, 0.36);
}

.lobby-active-server-card__meta span {
  min-height: 72px;
  padding: 12px 12px 10px;
  border-color: rgba(0, 196, 212, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 196, 212, 0.05), transparent 56%),
    rgba(0, 3, 9, 0.48);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.lobby-active-server-card__meta strong {
  font-size: 0.98rem;
}

.auth-mode-tabs {
  padding: 6px;
  border-color: rgba(0, 196, 212, 0.14);
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.045), rgba(244, 196, 48, 0.025)),
    rgba(3, 8, 15, 0.62);
  box-shadow: inset 0 0 22px rgba(0, 196, 212, 0.035);
}

.auth-mode-tab {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.1)),
    rgba(5, 10, 18, 0.72);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-mode-tab:hover,
.auth-mode-tab:focus-visible {
  border-color: rgba(0, 196, 212, 0.22);
  box-shadow: inset 0 0 18px rgba(0, 196, 212, 0.06);
  transform: translateY(-1px);
}

.auth-mode-tab.is-active {
  border-color: rgba(0, 196, 212, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 196, 212, 0.12), rgba(0, 0, 0, 0)),
    rgba(17, 25, 36, 0.94);
  box-shadow: 0 0 18px rgba(0, 196, 212, 0.12), inset 0 -2px 0 rgba(0, 196, 212, 0.82);
}

.auth-mode-tab[data-server-mode-tab="war"] {
  color: rgba(223, 209, 171, 0.78);
  background:
    linear-gradient(180deg, rgba(244, 196, 48, 0.04), rgba(0, 0, 0, 0)),
    rgba(17, 16, 11, 0.6);
}

.auth-mode-tab[data-server-mode-tab="war"]:not(.is-active) {
  border-color: rgba(244, 196, 48, 0.14);
}

.auth-mode-tab[data-server-mode-tab="war"].is-active {
  color: #fff8dd;
  border-color: rgba(244, 196, 48, 0.34);
  background:
    linear-gradient(180deg, rgba(244, 196, 48, 0.12), rgba(0, 0, 0, 0)),
    rgba(27, 22, 10, 0.8);
  box-shadow: 0 0 18px rgba(244, 196, 48, 0.12), inset 0 -2px 0 rgba(244, 196, 48, 0.9);
}

.auth-servers {
  gap: 12px;
}

.auth-server-card {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 8px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-server-card[data-server-mode="war"] {
  --server-card-accent: #f4c430;
  --server-card-accent-soft: rgba(244, 196, 48, 0.1);
  --server-card-accent-line: rgba(244, 196, 48, 0.27);
}

body.servers-page .auth-server-card[data-server-mode="war"] {
  border-color: rgba(244, 196, 48, 0.18);
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(24, 18, 9, 0.74), rgba(10, 8, 5, 0.78));
  box-shadow:
    inset 3px 0 0 rgba(244, 196, 48, 0.28),
    inset 0 0 24px rgba(244, 196, 48, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.auth-server-card:hover,
.auth-server-card:focus-visible {
  border-color: color-mix(in srgb, var(--server-card-accent) 34%, rgba(255,255,255,0.1));
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--server-card-accent) 6%, transparent),
    0 14px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.auth-server-card.is-selected {
  transform: translateY(-1px);
}

.auth-server-card__subtitle {
  color: rgba(159, 177, 198, 0.82);
  font-size: 0.78rem;
  line-height: 1.24;
}

.auth-server-card__meta {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}

.auth-server-card__status {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0, 196, 212, 0.18);
  border-radius: 999px;
  color: rgba(206, 238, 246, 0.88);
  background: rgba(1, 5, 12, 0.54);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.auth-server-card__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: lobbyDot 1.2s infinite;
}

.auth-server-card__countdown {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
}

.auth-server-card__badge {
  border-color: rgba(244, 196, 48, 0.58);
  border-radius: 999px;
  color: var(--lobby-yellow);
  background: rgba(244, 196, 48, 0.08);
  box-shadow: inset 0 0 14px rgba(244, 196, 48, 0.08), 0 0 16px rgba(244, 196, 48, 0.12);
}

.auth-server-card__badge + .auth-server-card__status {
  grid-row: 2;
}

.auth-server-card__badge + .auth-server-card__status + .auth-server-card__countdown {
  grid-row: 3;
}

.auth-server-card.is-offline .auth-server-card__status {
  color: #ffd2d8;
  border-color: rgba(255, 51, 71, 0.24);
}

.auth-server-card.is-locked .auth-server-card__status,
.auth-server-card.is-locked .auth-server-card__countdown {
  color: var(--lobby-yellow);
}

.auth-server-card.is-full .auth-server-card__status,
.auth-server-card.is-full .auth-server-card__countdown {
  color: var(--lobby-red);
}

.lobby-refresh-countdown {
  border-color: rgba(0, 196, 212, 0.24);
  color: rgba(182, 222, 232, 0.76);
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.08), rgba(244, 196, 48, 0.03)),
    rgba(1, 6, 10, 0.56);
  text-shadow: 0 0 10px rgba(0, 196, 212, 0.22);
  box-shadow: 0 0 16px rgba(0, 196, 212, 0.08), inset 0 0 16px rgba(0, 196, 212, 0.035);
}

.lobby-refresh-countdown strong {
  color: var(--lobby-cyan);
  text-shadow: 0 0 12px rgba(0, 196, 212, 0.42);
}

.lobby-refresh-countdown.is-refreshing strong {
  color: #e8fbff;
  text-shadow: 0 0 12px rgba(0, 196, 212, 0.78), 0 0 22px rgba(244, 196, 48, 0.18);
}

.lobby-server-detail-card h2 {
  font-size: clamp(1.22rem, 1.42vw, 1.7rem);
  text-shadow: 0 0 16px rgba(0, 196, 212, 0.22), 0 0 18px rgba(244, 196, 48, 0.12);
}

.lobby-detail-title > span {
  padding: 6px 10px;
  border-color: rgba(0, 196, 212, 0.28);
  border-radius: 999px;
  color: var(--lobby-cyan);
}

.lobby-detail-heat {
  border-color: rgba(0, 196, 212, 0.16);
  background:
    radial-gradient(circle at 82% 50%, rgba(244, 196, 48, 0.16), transparent 35%),
    radial-gradient(circle at 15% 20%, rgba(0, 196, 212, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(0, 196, 212, 0.1), transparent 48%),
    rgba(0, 3, 9, 0.58);
  box-shadow: inset 0 0 24px rgba(0, 196, 212, 0.04), 0 0 18px rgba(0, 196, 212, 0.06);
}

.lobby-detail-heat span {
  color: rgba(170, 190, 208, 0.86);
}

.lobby-risk-ring {
  background:
    radial-gradient(circle at center, rgba(2, 6, 14, 0.92) 0 50%, transparent 51%),
    conic-gradient(var(--lobby-cyan) var(--risk-value), rgba(0, 196, 212, 0.14) 0);
  box-shadow: 0 0 0 1px rgba(0, 196, 212, 0.24), 0 0 20px rgba(0, 196, 212, 0.18), inset 0 0 20px rgba(0, 196, 212, 0.06);
}

.lobby-risk-ring::before {
  border-color: rgba(187, 230, 238, 0.22);
  box-shadow: inset 0 0 14px rgba(0, 196, 212, 0.1);
}

.lobby-risk-ring strong {
  color: var(--lobby-cyan);
  text-shadow: 0 0 12px rgba(0, 196, 212, 0.76), 0 0 28px rgba(0, 196, 212, 0.28);
}

.lobby-detail-grid {
  gap: 10px;
  margin: 14px 0;
}

.lobby-detail-grid span {
  gap: 6px;
  min-height: 76px;
  padding: 12px;
  border-color: rgba(0, 196, 212, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 196, 212, 0.045), transparent 58%),
    rgba(0, 3, 9, 0.42);
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.lobby-detail-grid strong {
  font-size: 1rem;
}

.lobby-detail-description {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 196, 212, 0.12);
  border-radius: 8px;
  color: rgba(198, 214, 229, 0.86);
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.06), transparent 64%),
    rgba(1, 5, 12, 0.46);
  font-size: 0.82rem;
  line-height: 1.42;
}

.lobby-detail-actions {
  gap: 10px;
}

.lobby-primary-cta {
  border-color: rgba(244, 196, 48, 0.42);
  color: #fff7dc;
  background:
    linear-gradient(90deg, rgba(244, 196, 48, 0.16), rgba(214, 168, 79, 0.08)),
    rgba(1, 5, 12, 0.82);
}

.lobby-primary-cta::before {
  border-color: rgba(244, 196, 48, 0.3);
}

.lobby-primary-cta--enter {
  border-color: rgba(0, 196, 212, 0.46);
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.18), rgba(12, 58, 82, 0.28)),
    rgba(1, 5, 12, 0.86);
  box-shadow: 0 0 20px rgba(0, 196, 212, 0.2), inset 0 0 22px rgba(255, 255, 255, 0.05);
}

.lobby-primary-cta--enter::before {
  border-color: rgba(0, 196, 212, 0.38);
}

.lobby-primary-cta:hover,
.lobby-primary-cta:focus-visible {
  box-shadow: 0 0 24px rgba(244, 196, 48, 0.28), 0 0 58px rgba(214, 168, 79, 0.18);
}

.lobby-primary-cta--enter:hover,
.lobby-primary-cta--enter:focus-visible {
  box-shadow: 0 0 28px rgba(0, 196, 212, 0.42), 0 0 68px rgba(0, 196, 212, 0.18);
}

.lobby-server-detail-card__notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(244, 196, 48, 0.14);
  border-radius: 8px;
  color: rgba(235, 218, 174, 0.82);
  text-align: left;
  background: rgba(20, 16, 7, 0.28);
  font-size: 0.74rem;
  font-weight: 800;
}

.lobby-status-card {
  gap: 8px 10px;
  padding: 10px 14px;
  border-color: rgba(0, 196, 212, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(135deg, rgba(0, 196, 212, 0.08), transparent 38%),
    linear-gradient(90deg, rgba(0, 196, 212, 0.055), rgba(244, 196, 48, 0.03)),
    linear-gradient(145deg, rgba(4, 9, 18, 0.86), rgba(1, 4, 10, 0.68));
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(0, 196, 212, 0.08),
    inset 0 0 24px rgba(0, 196, 212, 0.045),
    inset 0 0 1px rgba(232, 240, 255, 0.16);
}

.lobby-status-card::before {
  background: linear-gradient(90deg, rgba(0, 196, 212, 0.95), rgba(244, 196, 48, 0.34), transparent);
  box-shadow: 0 0 12px rgba(0, 196, 212, 0.42);
}

.lobby-status-card::after {
  background: linear-gradient(90deg, transparent, rgba(0, 196, 212, 0.52));
}

.lobby-status-card__label {
  color: rgba(163, 183, 204, 0.8);
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lobby-status-card strong {
  color: #f2fbff;
  font-size: clamp(0.74rem, 0.82vw, 0.92rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(0, 196, 212, 0.3);
}

.lobby-status-card strong.is-scrambling {
  color: #d8f9ff;
  text-shadow: 0 0 10px rgba(0, 196, 212, 0.72), 0 0 22px rgba(244, 196, 48, 0.14);
}

.lobby-status-card > i {
  border-color: rgba(164, 235, 247, 0.62);
  background: var(--lobby-cyan);
  box-shadow:
    0 0 0 3px rgba(0, 196, 212, 0.08),
    0 0 12px var(--lobby-cyan),
    0 0 24px rgba(0, 196, 212, 0.24);
}

  @media (min-width: 1281px) {
  html,
  body.lobby-command-body {
    height: 100%;
    overflow: hidden;
  }

  .lobby-command {
    height: 100vh;
    min-height: 0;
    grid-template-columns: minmax(720px, 1040px);
    justify-content: center;
    gap: clamp(12px, 1.05vw, 20px);
    align-items: center;
    padding: clamp(12px, 1.5vh, 20px) clamp(14px, 1.5vw, 28px);
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(1, 3, 8, 0.02), rgba(1, 3, 8, 0.08)),
      url("../../img/tapeta.png") center / 100% 100% no-repeat,
      #05070d;
  }

  .lobby-side--right {
    display: none;
  }

  .lobby-command-shell {
    height: min(740px, calc(100vh - 56px));
    overflow: hidden;
  }

  .lobby-side--left {
    display: contents;
  }

  .lobby-side--left .lobby-logo-card,
  .lobby-side--left .lobby-heat-card,
  .lobby-side--left .lobby-market-card,
  .lobby-side--left .lobby-promo-card {
    display: none;
  }

  .lobby-hud-panel,
  .lobby-server-detail-card {
    padding: clamp(10px, 1.1vh, 14px);
    border-radius: 10px;
  }

  .lobby-command-shell {
    justify-self: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: clamp(12px, 1.25vh, 18px);
    border-radius: 6px;
    clip-path: polygon(34px 0, calc(100% - 34px) 0, 100% 34px, 100% calc(100% - 40px), calc(100% - 54px) 100%, 54px 100%, 0 calc(100% - 40px), 0 34px);
  }

  .lobby-topbar {
    position: relative;
    z-index: 4;
    top: auto;
    right: auto;
    width: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
    grid-template-rows: none;
    align-items: stretch;
    padding: 0 0 clamp(8px, 0.9vh, 12px);
    gap: clamp(8px, 0.8vw, 12px);
    margin: -4px -4px 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    background:
      linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.06), rgba(255, 43, 214, 0.07)),
      linear-gradient(180deg, rgba(0, 245, 255, 0.06), transparent 70%);
  }

  .lobby-terminal-nav,
  .lobby-top-player {
    min-height: 0;
  }

  .lobby-terminal-nav {
    justify-content: stretch;
    border: 1px solid rgba(0, 245, 255, 0.18);
    background:
      linear-gradient(90deg, rgba(0, 245, 255, 0.08), rgba(255, 43, 214, 0.06)),
      rgba(2, 7, 15, 0.34);
    box-shadow: inset 0 -1px 0 rgba(0, 245, 255, 0.24), 0 0 24px rgba(0, 245, 255, 0.06);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  }

  .lobby-terminal-nav button {
    flex: 1 1 0;
    min-height: 100%;
    padding: 0 clamp(8px, 0.82vw, 16px);
    font-size: clamp(0.64rem, 0.76vw, 0.9rem);
  }

  .lobby-top-player {
    min-width: 118px;
    padding: clamp(8px, 0.9vh, 12px) clamp(10px, 1vw, 16px);
    border-color: rgba(255, 43, 214, 0.42);
    background:
      radial-gradient(circle at 82% 45%, rgba(255, 43, 214, 0.12), transparent 34%),
      rgba(3, 8, 18, 0.42);
  }

  .lobby-top-player strong {
    font-size: clamp(0.82rem, 0.86vw, 1rem);
  }

  .lobby-top-player span,
  .lobby-top-player em,
  .lobby-top-player small {
    font-size: clamp(0.62rem, 0.66vw, 0.76rem);
  }

  .lobby-top-player i {
    width: clamp(62px, 6vw, 96px);
  }

  .lobby-shell-grid {
    --lobby-shell-gap: clamp(10px, 1vw, 16px);
    height: 100%;
    grid-template-columns: minmax(0, 58%) minmax(300px, 42%);
    gap: var(--lobby-shell-gap);
    padding-top: clamp(10px, 1vh, 14px);
    box-sizing: border-box;
    overflow: hidden;
  }

  .lobby-main-column,
  .lobby-detail-column,
  .lobby-mock-view {
    height: 100%;
    gap: clamp(8px, 0.9vh, 12px);
    overflow: hidden;
  }

  .lobby-mock-view {
    min-height: 0;
  }

  .lobby-mock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-main-column {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
  }

  .lobby-detail-column {
    grid-template-rows: minmax(0, auto);
    padding-top: 0;
    box-sizing: border-box;
  }

  .lobby-server-list-only {
    min-height: 0;
    overflow: hidden;
  }

  .auth-servers {
    min-height: 0;
    overflow-y: auto;
    padding: 2px 6px 2px 0;
    scrollbar-gutter: stable;
    scrollbar-color: rgba(255, 43, 214, 0.82) rgba(0, 245, 255, 0.08);
    scrollbar-width: thin;
  }

  .auth-servers::-webkit-scrollbar {
    width: 6px;
  }

  .auth-servers::-webkit-scrollbar-track {
    background: rgba(0, 245, 255, 0.08);
    border-radius: 999px;
  }

  .auth-servers::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--lobby-pink), rgba(255, 43, 214, 0.34));
    border-radius: 999px;
    box-shadow: var(--lobby-glow-pink);
  }

  .lobby-title-block h1 {
    font-size: clamp(1.05rem, 1.35vw, 1.68rem);
  }

  .lobby-title-kicker {
    font-size: clamp(0.66rem, 0.72vw, 0.82rem);
  }

  .lobby-title-block p {
    font-size: clamp(0.68rem, 0.72vw, 0.84rem);
  }

  .lobby-profile-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: clamp(10px, 1.15vh, 14px);
  }

  .lobby-profile-card[data-server-state="missing"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .lobby-profile-card__name {
    font-size: clamp(1.05rem, 1.1vw, 1.35rem);
  }

  .lobby-profile-card__summary span {
    min-height: 54px;
    padding: clamp(8px, 0.85vh, 10px) clamp(34px, 2.7vw, 40px) clamp(8px, 0.85vh, 10px) 10px;
    font-size: clamp(0.62rem, 0.65vw, 0.76rem);
  }

  .lobby-profile-card__summary span:nth-child(1)::before,
  .lobby-profile-card__summary span:nth-child(2)::before,
  .lobby-profile-card__summary span:nth-child(3)::before {
    margin-bottom: 2px;
    font-size: clamp(0.86rem, 0.95vw, 1.05rem);
  }

  .lobby-profile-card__summary strong {
    font-size: clamp(0.78rem, 0.82vw, 0.96rem);
  }

  .auth-mode-tabs {
    gap: 8px;
  }

  .auth-mode-tab {
    min-height: clamp(42px, 5.2vh, 58px);
    font-size: clamp(0.92rem, 1vw, 1.1rem);
  }

  .auth-entry-status {
    padding: clamp(8px, 0.9vh, 12px) 12px;
    font-size: clamp(0.72rem, 0.76vw, 0.9rem);
  }

  .auth-servers {
    gap: clamp(7px, 0.76vh, 10px);
  }

  .auth-server-card {
    grid-template-columns: minmax(0, 1fr) minmax(98px, auto);
    gap: 10px;
    padding: clamp(9px, 1vh, 13px);
    min-height: clamp(70px, 8.8vh, 90px);
  }

  .auth-server-card__label {
    font-size: clamp(0.92rem, 1vw, 1.15rem);
  }

  .auth-server-card__meta,
  .auth-server-card__badge,
  .auth-server-card__status,
  .auth-server-card__countdown {
    font-size: clamp(0.62rem, 0.66vw, 0.78rem);
  }

  .auth-server-card__signal {
    height: 16px;
  }

  .auth-server-card__signal i:nth-child(1) { height: 5px; }
  .auth-server-card__signal i:nth-child(2) { height: 9px; }
  .auth-server-card__signal i:nth-child(3) { height: 12px; }
  .auth-server-card__signal i:nth-child(4) { height: 16px; }

  .lobby-refresh-countdown {
    font-size: clamp(0.58rem, 0.62vw, 0.72rem);
  }

  .lobby-logo-card {
    min-height: clamp(104px, 15vh, 158px);
  }

  .lobby-logo-card strong {
    font-size: clamp(1.65rem, 2.1vw, 2.75rem);
  }

  .lobby-server-detail-card h2,
  .lobby-panel-heading {
    font-size: clamp(0.72rem, 0.78vw, 0.95rem);
  }

  .lobby-server-detail-card h2 {
    font-size: clamp(0.98rem, 1.05vw, 1.22rem);
  }

  .lobby-server-detail-card {
    min-height: 0;
  }

  .lobby-detail-grid {
    gap: 8px;
    margin: clamp(10px, 1.1vh, 14px) 0;
  }

  .lobby-detail-grid span,
  .lobby-server-detail-card p {
    font-size: clamp(0.62rem, 0.68vw, 0.8rem);
  }

  .lobby-detail-grid strong {
    font-size: clamp(0.78rem, 0.82vw, 0.94rem);
  }

  .lobby-primary-cta {
    min-height: clamp(52px, 6.4vh, 64px);
    font-size: clamp(0.82rem, 0.92vw, 1.02rem);
  }

  .lobby-detail-actions .lobby-primary-cta {
    min-height: clamp(52px, 6.2vh, 64px);
    font-size: clamp(0.72rem, 0.82vw, 0.9rem);
  }

  .lobby-status-card strong,
  .lobby-heat-card strong,
  .lobby-market-card strong {
    font-size: clamp(1.1rem, 1.3vw, 1.5rem);
  }

  .lobby-status-card strong {
    font-size: clamp(1rem, 1.05vw, 1.18rem);
  }

  .lobby-status-card p {
    font-size: clamp(0.62rem, 0.67vw, 0.78rem);
    line-height: 1.22;
  }

  .lobby-meter {
    margin-top: 8px;
  }

  .lobby-market-card svg {
    height: clamp(34px, 4.4vh, 48px);
  }

  .lobby-promo-card {
    min-height: clamp(86px, 12vh, 145px);
  }

  .lobby-promo-card strong {
    font-size: clamp(1rem, 1.2vw, 1.35rem);
  }
}

@media (max-width: 1280px) {
  .lobby-command {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lobby-command-shell {
    order: 1;
  }

  .lobby-side--left {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-side--right {
    display: none;
  }

  .lobby-terminal-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    min-height: auto;
    clip-path: none;
  }

  .lobby-terminal-nav button {
    min-height: 48px;
  }
}

@media (max-width: 900px) {
  body.lobby-command-body {
    overflow-y: auto;
  }

  .lobby-command {
    min-height: 100vh;
    align-content: start;
    gap: 10px;
    padding: 10px;
    background-position: center top;
  }

  .lobby-status-card {
    position: static;
    order: 0;
    justify-self: end;
    justify-content: flex-end;
    width: max-content;
    max-width: calc(100vw - 20px);
    min-width: 0;
    margin: 0 0 0 auto;
    padding: 8px 11px;
    border-radius: 8px;
    clip-path: none;
  }

  .lobby-status-card strong {
    text-align: right;
    font-size: 0.72rem;
  }

  .lobby-command-shell {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 12px;
    border-radius: 8px;
    clip-path: none;
  }

  .lobby-command-shell::after {
    display: none;
  }

  .lobby-topbar,
  .lobby-shell-grid,
  .lobby-profile-card,
  .lobby-profile-card__summary,
  .lobby-detail-grid,
  .lobby-mock-grid,
  .lobby-side--left {
    grid-template-columns: 1fr;
  }

  .lobby-side--left {
    display: none;
  }

  .lobby-profile-card__summary {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .lobby-topbar {
    min-height: auto;
    margin: 0;
    gap: 8px;
    padding: 0 0 10px;
  }

  .lobby-terminal-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    min-height: auto;
    border: 0;
    background: rgba(3, 8, 15, 0.5);
    clip-path: none;
  }

  .lobby-terminal-nav button {
    min-height: 38px;
    padding: 0 5px;
    border: 1px solid rgba(167, 184, 202, 0.12);
    border-radius: 6px;
    font-size: clamp(0.56rem, 2.6vw, 0.72rem);
    letter-spacing: 0;
    overflow: hidden;
  }

  .lobby-terminal-nav button span {
    display: none;
  }

  .lobby-terminal-nav button::after {
    left: 8px;
    right: 8px;
    height: 1px;
  }

  .lobby-top-player {
    justify-content: flex-start;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 6px;
    clip-path: none;
  }

  .lobby-shell-grid {
    gap: 10px;
    padding-top: 10px;
  }

  .lobby-main-column,
  .lobby-detail-column {
    gap: 10px;
  }

  .lobby-main-column {
    order: 1;
  }

  .lobby-title-block h1 {
    font-size: 1.42rem;
    letter-spacing: 0;
  }

  .lobby-refresh-countdown {
    min-width: 88px;
    min-height: 26px;
    padding: 5px 8px;
    font-size: 0.58rem;
  }

  .lobby-profile-card {
    gap: 9px;
    padding: 10px;
    border-radius: 8px;
    clip-path: none;
  }

  .lobby-profile-card__name {
    min-height: 0;
    font-size: 1rem;
  }

  .lobby-profile-card__summary {
    border-radius: 8px;
  }

  .lobby-profile-card__summary span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.68rem;
  }

  .lobby-profile-card__summary span::after {
    display: none;
  }

  .lobby-profile-card__summary strong {
    min-width: 0;
    text-align: right;
  }

  .lobby-profile-card__summary span + span {
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    border-left: 0;
  }

  .lobby-profile-card__summary span:nth-child(1)::before,
  .lobby-profile-card__summary span:nth-child(2)::before,
  .lobby-profile-card__summary span:nth-child(3)::before {
    display: none;
  }

  .lobby-active-server-card {
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    clip-path: none;
  }

  .lobby-active-server-card__copy h2 {
    font-size: 1.24rem;
  }

  .lobby-active-server-card__meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .lobby-active-server-card__meta span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
  }

  .lobby-active-server-card .lobby-primary-cta {
    min-height: 48px;
  }

  .auth-mode-tabs {
    gap: 4px;
    padding: 3px;
  }

  .auth-mode-tab {
    min-height: 40px;
    font-size: 0.88rem;
    letter-spacing: 0;
  }

  .auth-entry-status {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    clip-path: none;
  }

  .lobby-server-list-only {
    min-height: 0;
    overflow: visible;
  }

  .auth-servers {
    gap: 8px;
  }

  .auth-server-card {
    grid-template-columns: minmax(0, 1fr) max-content;
    min-height: 64px;
    gap: 8px 10px;
    padding: 10px;
    border-radius: 8px;
    clip-path: none;
  }

  .auth-server-card__label {
    font-size: 0.98rem;
  }

  .auth-server-card__meta,
  .auth-server-card__status,
  .auth-server-card__countdown {
    font-size: 0.68rem;
  }

  .auth-server-card__status,
  .auth-server-card__countdown,
  .auth-server-card__badge,
  .auth-server-card__signal {
    grid-column: 2;
    grid-row: auto;
    justify-self: end;
  }

  .auth-server-card__countdown {
    max-width: 108px;
  }

  .auth-server-card__signal {
    display: none;
  }

  .lobby-detail-grid span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .lobby-detail-grid strong {
    flex: 0 0 auto;
    text-align: right;
  }

  .lobby-detail-column {
    order: 2;
  }

  .lobby-server-detail-card {
    padding: 12px;
    border-radius: 8px;
    clip-path: none;
  }

  .lobby-detail-title {
    align-items: flex-start;
  }

  .lobby-server-detail-card h2 {
    font-size: 1rem;
  }

  .lobby-detail-heat {
    margin: 8px 0;
    min-height: 78px;
    padding: 8px 10px 8px 12px;
  }

  .lobby-detail-heat::before {
    right: 14px;
    width: 70px;
    height: 70px;
  }

  .lobby-risk-ring {
    width: 58px;
    height: 58px;
  }

  .lobby-risk-ring strong {
    font-size: 0.82rem;
  }

  .lobby-detail-grid {
    gap: 6px;
    margin: 8px 0;
  }

  .server-detail-modal__card {
    gap: 8px;
  }

  .server-detail-modal__map-wrap {
    width: 100%;
    height: clamp(300px, 48dvh, 460px);
    min-height: 300px;
    overflow: hidden;
    touch-action: none;
  }

  .server-detail-modal__map,
  .server-detail-modal__map-canvas {
    width: 100%;
    height: 100%;
    min-width: 0;
    aspect-ratio: auto;
    object-fit: fill;
  }

  .lobby-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .lobby-detail-actions .lobby-primary-cta,
  .lobby-primary-cta {
    min-height: 46px;
    border-radius: 8px;
    font-size: clamp(0.68rem, 2.9vw, 0.86rem);
    line-height: 1.08;
    clip-path: none;
  }

  .lobby-primary-cta::before {
    display: none;
  }

  .lobby-detail-actions .lobby-primary-cta > span {
    display: none;
  }

  .lobby-server-detail-card p {
    margin-top: 8px;
    font-size: 0.7rem;
  }

  .lobby-mock-view {
    min-height: 0;
    padding: 14px;
    border-radius: 8px;
    clip-path: none;
  }

  .lobby-mock-grid {
    gap: 8px;
  }

  .lobby-mock-card {
    min-height: 86px;
    padding: 14px;
    border-radius: 8px;
    clip-path: none;
  }
}

@media (max-width: 560px) {
  .server-detail-modal {
    padding: 0;
    overflow: hidden;
    place-items: stretch;
  }

  .server-detail-modal__card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    gap: 7px;
    padding: 10px 10px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .server-detail-modal__close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .server-detail-modal__title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 4px;
    min-height: 0;
    padding-right: 36px;
  }

  .server-detail-modal__title {
    min-width: 0;
    padding-right: 0;
    font-size: clamp(0.86rem, 3.8vw, 0.98rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .server-detail-modal__spawn-hint {
    justify-self: start;
    max-width: 100%;
    min-height: 24px;
    padding: 3px 7px;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
  }

  .server-detail-modal__subtitle {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.76rem;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .server-detail-modal__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .server-detail-modal__meta span {
    min-height: 24px;
    padding: 5px 6px;
    border-radius: 7px;
    font-size: 10.5px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .server-detail-modal__map-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1600 / 980;
    margin-bottom: 18px;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    touch-action: none;
  }

  .server-detail-modal__map,
  .server-detail-modal__map-canvas {
    width: 100%;
    height: 100%;
    min-width: 0;
    aspect-ratio: 1600 / 980;
    object-fit: contain;
  }

  .server-map-scale-controls {
    top: 6px;
    right: 6px;
    gap: 4px;
  }

  .server-map-scale-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .server-detail-modal__type-counts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 0;
    padding: 4px 0 2px;
    overflow: visible;
    background: rgba(4, 8, 16, 0.82);
  }

.server-detail-modal__type-count {
  min-width: 0;
  justify-content: center;
  gap: 3px;
    padding: 5px 6px;
    border-radius: 9px;
    border-color: rgba(177, 187, 198, 0.44);
    background:
      linear-gradient(180deg, rgba(24, 30, 40, 0.84), rgba(7, 11, 20, 0.8)),
      rgba(4, 8, 16, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 14px rgba(201, 214, 228, 0.05);
}

.server-detail-modal__type-count.is-downtown {
  border-color: rgba(255, 78, 196, 0.52);
  background:
    linear-gradient(180deg, rgba(95, 24, 76, 0.9), rgba(39, 10, 34, 0.86)),
    rgba(22, 8, 18, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 245, 0.08),
    0 0 16px rgba(255, 78, 196, 0.16);
}

.server-detail-modal__type-count.is-downtown strong,
.server-detail-modal__type-count.is-downtown b {
  color: #ffd8f2;
  text-shadow: 0 0 14px rgba(255, 78, 196, 0.34);
}

.server-detail-modal__type-count.is-park {
  border-color: rgba(75, 214, 126, 0.46);
  background:
    linear-gradient(180deg, rgba(24, 74, 44, 0.9), rgba(10, 35, 20, 0.86)),
    rgba(8, 18, 12, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(232, 255, 239, 0.08),
    0 0 16px rgba(75, 214, 126, 0.14);
}

.server-detail-modal__type-count.is-park strong,
.server-detail-modal__type-count.is-park b {
  color: #dcffe7;
  text-shadow: 0 0 14px rgba(75, 214, 126, 0.28);
}

.server-detail-modal__type-count.is-industrial {
  border-color: rgba(196, 203, 212, 0.44);
  background:
    linear-gradient(180deg, rgba(64, 70, 79, 0.88), rgba(24, 28, 34, 0.84)),
    rgba(10, 12, 16, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(248, 250, 252, 0.08),
    0 0 14px rgba(196, 203, 212, 0.12);
}

.server-detail-modal__type-count.is-industrial strong,
.server-detail-modal__type-count.is-industrial b {
  color: #f0f4f8;
  text-shadow: 0 0 12px rgba(196, 203, 212, 0.24);
}

.server-detail-modal__type-count.is-commercial,
.server-detail-modal__type-count.is-economy {
  border-color: rgba(68, 172, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(20, 58, 106, 0.9), rgba(9, 24, 44, 0.86)),
    rgba(7, 14, 24, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(231, 247, 255, 0.08),
    0 0 16px rgba(68, 172, 255, 0.14);
}

.server-detail-modal__type-count.is-commercial strong,
.server-detail-modal__type-count.is-commercial b,
.server-detail-modal__type-count.is-economy strong,
.server-detail-modal__type-count.is-economy b {
  color: #def3ff;
  text-shadow: 0 0 14px rgba(68, 172, 255, 0.3);
}

.server-detail-modal__type-count.is-residential,
.server-detail-modal__type-count.is-resident {
  border-color: rgba(244, 196, 48, 0.52);
  background:
    linear-gradient(180deg, rgba(96, 72, 18, 0.9), rgba(40, 28, 9, 0.86)),
    rgba(20, 14, 6, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 214, 0.08),
    0 0 16px rgba(244, 196, 48, 0.14);
}

.server-detail-modal__type-count.is-residential strong,
.server-detail-modal__type-count.is-residential b,
.server-detail-modal__type-count.is-resident strong,
.server-detail-modal__type-count.is-resident b {
  color: #fff1ba;
  text-shadow: 0 0 14px rgba(244, 196, 48, 0.3);
}

  .server-detail-modal__type-count strong {
    max-width: 100%;
    color: rgba(216, 223, 232, 0.82);
    font-size: 9px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .server-detail-modal__type-count b {
    color: #f8fbff;
    font-size: 11px;
    line-height: 1;
  }

.server-detail-modal__type-count:nth-child(4) {
  grid-column: span 2;
}

  .server-detail-modal__materials {
    gap: 5px;
  }

  .server-detail-modal__materials h4 {
    margin: 0;
    font-size: 10px;
  }

  .server-detail-modal__materials ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .server-detail-modal__materials li {
    min-width: 0;
    padding: 5px;
    border-radius: 7px;
    font-size: 10.5px;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .server-detail-modal__actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: auto -2px calc(-16px - env(safe-area-inset-bottom, 0px));
    padding: 7px 2px calc(12px + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, transparent, rgba(4, 8, 16, 0.94) 20%),
      rgba(4, 8, 16, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .server-detail-modal__btn {
    min-height: 38px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
  }

  .auth-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lobby-brand-wordmark strong {
    font-size: 1.6rem;
  }

  .auth-server-card {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .auth-server-card__label,
  .auth-server-card__subtitle,
  .auth-server-card__meta {
    grid-column: 1;
  }

  .auth-server-card__badge,
  .auth-server-card__status,
  .auth-server-card__countdown {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 380px), (max-width: 560px) and (max-height: 620px) {
  .server-detail-modal__card {
    gap: 5px;
    padding: 8px;
  }

  .server-detail-modal__title-row {
    min-height: 30px;
    padding-right: 34px;
  }

  .server-detail-modal__title {
    font-size: clamp(0.78rem, 4.2vw, 0.9rem);
  }

  .server-detail-modal__subtitle {
    -webkit-line-clamp: 1;
  }

  .server-detail-modal__materials ul {
    grid-template-columns: 1fr;
  }

  .server-detail-modal__materials li {
    padding: 4px;
    font-size: 10px;
  }

  .server-detail-modal__actions {
    bottom: 0;
    margin-bottom: -8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

.server-detail-modal__spawn-hint {
  display: none !important;
}

.server-detail-modal__type-count.is-downtown strong,
.server-detail-modal__type-count.is-downtown b {
  color: #ffd8f2 !important;
  text-shadow: 0 0 14px rgba(255, 78, 196, 0.34) !important;
}

.server-detail-modal__type-count.is-downtown {
  border-color: rgba(255, 78, 196, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(95, 24, 76, 0.92), rgba(39, 10, 34, 0.9)),
    rgba(22, 8, 18, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 245, 0.08),
    0 0 18px rgba(255, 78, 196, 0.18) !important;
}

.server-detail-modal__type-count.is-park strong,
.server-detail-modal__type-count.is-park b {
  color: #dcffe7 !important;
  text-shadow: 0 0 14px rgba(75, 214, 126, 0.28) !important;
}

.server-detail-modal__type-count.is-park {
  border-color: rgba(75, 214, 126, 0.52) !important;
  background:
    linear-gradient(180deg, rgba(24, 74, 44, 0.92), rgba(10, 35, 20, 0.9)),
    rgba(8, 18, 12, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(232, 255, 239, 0.08),
    0 0 18px rgba(75, 214, 126, 0.16) !important;
}

.server-detail-modal__type-count.is-industrial strong,
.server-detail-modal__type-count.is-industrial b {
  color: #f0f4f8 !important;
  text-shadow: 0 0 12px rgba(196, 203, 212, 0.24) !important;
}

.server-detail-modal__type-count.is-industrial {
  border-color: rgba(196, 203, 212, 0.52) !important;
  background:
    linear-gradient(180deg, rgba(64, 70, 79, 0.92), rgba(24, 28, 34, 0.9)),
    rgba(10, 12, 16, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(248, 250, 252, 0.08),
    0 0 16px rgba(196, 203, 212, 0.14) !important;
}

.server-detail-modal__type-count.is-commercial strong,
.server-detail-modal__type-count.is-commercial b,
.server-detail-modal__type-count.is-economy strong,
.server-detail-modal__type-count.is-economy b {
  color: #def3ff !important;
  text-shadow: 0 0 14px rgba(68, 172, 255, 0.3) !important;
}

.server-detail-modal__type-count.is-commercial,
.server-detail-modal__type-count.is-economy {
  border-color: rgba(68, 172, 255, 0.54) !important;
  background:
    linear-gradient(180deg, rgba(20, 58, 106, 0.92), rgba(9, 24, 44, 0.9)),
    rgba(7, 14, 24, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(231, 247, 255, 0.08),
    0 0 18px rgba(68, 172, 255, 0.16) !important;
}

.server-detail-modal__type-count.is-residential strong,
.server-detail-modal__type-count.is-residential b,
.server-detail-modal__type-count.is-resident strong,
.server-detail-modal__type-count.is-resident b {
  color: #fff1ba !important;
  text-shadow: 0 0 14px rgba(244, 196, 48, 0.3) !important;
}

.server-detail-modal__type-count.is-residential,
.server-detail-modal__type-count.is-resident {
  border-color: rgba(244, 196, 48, 0.58) !important;
  background:
    linear-gradient(180deg, rgba(96, 72, 18, 0.92), rgba(40, 28, 9, 0.9)),
    rgba(20, 14, 6, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 214, 0.08),
    0 0 18px rgba(244, 196, 48, 0.16) !important;
}

.auth-mode-tab[data-server-mode-tab="free"].is-active {
  color: #f4fbff !important;
  border-color: rgba(176, 196, 216, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.18), rgba(201, 214, 228, 0.16) 54%, rgba(110, 148, 188, 0.14)),
    rgba(16, 24, 36, 0.94) !important;
  box-shadow:
    0 0 18px rgba(0, 196, 212, 0.14),
    0 0 22px rgba(201, 214, 228, 0.12),
    inset 0 -2px 0 rgba(201, 214, 228, 0.72) !important;
}

.auth-mode-tabs {
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.05), rgba(201, 214, 228, 0.04)),
    rgba(3, 8, 15, 0.62) !important;
}

.lobby-terminal-nav button::after {
  background: linear-gradient(90deg, var(--lobby-cyan), rgba(201, 214, 228, 0.82)) !important;
  box-shadow: 0 0 12px rgba(0, 196, 212, 0.34), 0 0 16px rgba(201, 214, 228, 0.18) !important;
}

.lobby-terminal-nav button:hover,
.lobby-terminal-nav button.is-active {
  background:
    linear-gradient(180deg, rgba(0, 196, 212, 0.08), rgba(201, 214, 228, 0.03)),
    rgba(2, 7, 15, 0.58) !important;
}

.lobby-bg {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 38%, rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 196, 212, 0.08), transparent 18% 78%, rgba(201, 214, 228, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(100deg, transparent 0 28px, rgba(171, 224, 255, 0.08) 29px 30px, transparent 31px 74px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 7px);
}

.lobby-bg::before {
  background:
    linear-gradient(115deg, transparent 0 13%, rgba(0, 196, 212, 0.16) 13.2% 13.4%, transparent 13.8% 58%, rgba(201, 214, 228, 0.12) 58.2% 58.4%, transparent 59%),
    repeating-linear-gradient(104deg, transparent 0 54px, rgba(255, 255, 255, 0.075) 55px 56px, transparent 57px 132px);
}

.lobby-scan {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 196, 212, 0.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, transparent 0 74%, rgba(201, 214, 228, 0.05));
}

.lobby-command-shell,
.lobby-hud-panel,
.lobby-server-detail-card {
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.08), transparent 20% 72%, rgba(201, 214, 228, 0.06)),
    linear-gradient(145deg, rgba(8, 13, 24, 0.74), rgba(2, 7, 15, 0.54)),
    rgba(4, 8, 15, 0.62);
}

.lobby-command-shell {
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.07), transparent 24% 74%, rgba(201, 214, 228, 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18% 82%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(5, 10, 18, 0.82), rgba(1, 4, 10, 0.64)),
    rgba(1, 3, 8, 0.58);
  box-shadow:
    0 0 0 1px rgba(0, 196, 212, 0.11),
    0 30px 90px rgba(0, 0, 0, 0.76),
    0 0 44px rgba(0, 196, 212, 0.1),
    0 0 34px rgba(201, 214, 228, 0.08),
    inset 0 0 64px rgba(0, 196, 212, 0.04),
    inset 0 0 1px rgba(232, 240, 255, 0.12);
}

.lobby-command-shell::before {
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(0, 196, 212, 0.72) 9%, transparent 25% 75%, rgba(201, 214, 228, 0.38) 92%, transparent 97%) top / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 7%, rgba(201, 214, 228, 0.22) 12%, transparent 35% 65%, rgba(0, 196, 212, 0.42) 88%, transparent 95%) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 0 14%, rgba(0, 196, 212, 0.48) 30%, transparent 58%, rgba(201, 214, 228, 0.18) 84%, transparent 96%) left / 1px 100% no-repeat,
    linear-gradient(180deg, transparent 0 14%, rgba(201, 214, 228, 0.18) 30%, transparent 58%, rgba(0, 196, 212, 0.48) 84%, transparent 96%) right / 1px 100% no-repeat;
}

.lobby-topbar {
  background:
    linear-gradient(90deg, transparent, rgba(0, 196, 212, 0.04), rgba(201, 214, 228, 0.03)),
    linear-gradient(180deg, rgba(0, 196, 212, 0.035), transparent 70%);
}

.lobby-profile-card {
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.045), transparent 50%, rgba(201, 214, 228, 0.03)),
    rgba(1, 5, 12, 0.48);
}

.lobby-profile-card::before {
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.58), transparent 32%, rgba(201, 214, 228, 0.26)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(0, 196, 212, 0.42), transparent 36%, rgba(201, 214, 228, 0.18)) left / 1px 100% no-repeat;
}

.lobby-top-player {
  background:
    linear-gradient(90deg, rgba(0, 196, 212, 0.07), rgba(201, 214, 228, 0.045)),
    rgba(1, 5, 12, 0.44) !important;
}

.lobby-top-player__avatar {
  border-color: rgba(201, 214, 228, 0.5) !important;
  background:
    linear-gradient(135deg, transparent 0 32%, rgba(201, 214, 228, 0.26) 33% 36%, transparent 37%),
    radial-gradient(circle at 50% 24%, rgba(232, 240, 255, 0.25), transparent 18%),
    url("../../img/serif.jpg") center / cover,
    rgba(4, 8, 15, 0.9) !important;
  box-shadow:
    0 0 18px rgba(201, 214, 228, 0.16),
    0 0 30px rgba(0, 196, 212, 0.08) !important;
}

.lobby-top-player strong {
  text-shadow: 0 0 14px rgba(201, 214, 228, 0.24) !important;
}

.lobby-top-player i b {
  background: linear-gradient(90deg, var(--lobby-cyan), rgba(201, 214, 228, 0.92)) !important;
}

.lobby-top-player__avatar,
.lobby-profile-avatar {
  border-color: rgba(214, 184, 112, 0.52) !important;
  background:
    linear-gradient(135deg, transparent 0 32%, rgba(201, 214, 228, 0.24) 33% 36%, transparent 37%),
    radial-gradient(circle at 50% 24%, rgba(232, 240, 255, 0.25), transparent 18%),
    url("../../img/serif.jpg") center / cover,
    rgba(4, 8, 15, 0.9) !important;
  box-shadow:
    0 0 18px rgba(214, 184, 112, 0.14),
    0 0 28px rgba(201, 214, 228, 0.1) !important;
}

.lobby-top-player strong,
.lobby-profile-card__name {
  text-shadow:
    0 0 14px rgba(201, 214, 228, 0.22),
    0 0 18px rgba(0, 196, 212, 0.08) !important;
}

.lobby-profile-card__label,
.lobby-title-kicker,
.lobby-title-block strong {
  color: rgba(201, 214, 228, 0.92) !important;
}

body.lobby-command-body {
  --lobby-pink: #c9d6e4;
  --lobby-glow-pink: 0 0 18px rgba(201, 214, 228, 0.22), 0 0 42px rgba(0, 196, 212, 0.1);
}

.lobby-command-shell {
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.05), transparent 24% 74%, rgba(201, 214, 228, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18% 82%, rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, rgba(5, 10, 18, 0.52), rgba(1, 4, 10, 0.34)),
    rgba(1, 3, 8, 0.26) !important;
  backdrop-filter: blur(14px) saturate(1.02) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.02) !important;
}

.lobby-command-shell::after {
  background: rgba(0, 196, 212, 0.04) !important;
}

.lobby-topbar {
  background:
    linear-gradient(90deg, transparent, rgba(0, 196, 212, 0.025), rgba(201, 214, 228, 0.02)),
    linear-gradient(180deg, rgba(0, 196, 212, 0.02), transparent 70%) !important;
}

.lobby-terminal-nav {
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.34), rgba(1, 5, 12, 0.24)),
    rgba(1, 3, 8, 0.2) !important;
}

.lobby-terminal-nav button {
  background: linear-gradient(180deg, rgba(0, 196, 212, 0.015), rgba(0, 0, 0, 0.04)) !important;
}

.lobby-hud-panel,
.lobby-server-detail-card,
.lobby-active-server-card,
.lobby-profile-card,
.lobby-profile-card__summary,
.auth-mode-tabs {
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.05), transparent 28% 72%, rgba(201, 214, 228, 0.04)),
    rgba(1, 5, 12, 0.28) !important;
}

.lobby-active-server-card__meta span,
.lobby-profile-card__summary span {
  background: rgba(0, 3, 9, 0.2) !important;
}

.lobby-main-column > .lobby-hud-panel,
.lobby-detail-column > .lobby-server-detail-card,
.lobby-server-list-only {
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.04), transparent 28% 72%, rgba(201, 214, 228, 0.035)),
    rgba(1, 5, 12, 0.18) !important;
}

.lobby-detail-description,
.lobby-server-detail-card__notice {
  color: rgba(201, 214, 228, 0.9) !important;
  text-shadow: 0 0 12px rgba(201, 214, 228, 0.14) !important;
}

@media (max-width: 980px) {
  body.lobby-command-body {
    background:
      linear-gradient(180deg, rgba(1, 4, 10, 0.06), rgba(1, 4, 10, 0.14)),
      url("../../img/lobbymob.png") center / cover no-repeat fixed,
      #05070d !important;
  }

  body.lobby-command-body .lobby-command {
    background:
      linear-gradient(90deg, rgba(1, 3, 8, 0.08), rgba(1, 4, 10, 0.03) 42%, rgba(1, 3, 8, 0.08)),
      linear-gradient(180deg, rgba(1, 4, 10, 0.03), rgba(1, 4, 10, 0.1)),
      url("../../img/lobbymob.png") center / cover no-repeat,
      linear-gradient(120deg, #02040a, #07111f 55%, #02030a) !important;
  }

  .lobby-command-shell,
  .lobby-hud-panel,
  .lobby-server-detail-card,
  .lobby-active-server-card,
  .lobby-profile-card,
  .lobby-profile-card__summary,
  .auth-mode-tabs,
  .lobby-main-column > .lobby-hud-panel,
  .lobby-detail-column > .lobby-server-detail-card,
  .lobby-server-list-only,
  .lobby-terminal-nav,
  .lobby-topbar {
    background:
      linear-gradient(135deg, rgba(0, 196, 212, 0.04), transparent 28% 72%, rgba(201, 214, 228, 0.03)),
      rgba(1, 5, 12, 0.18) !important;
  }

  .lobby-terminal-nav button,
  .lobby-active-server-card__meta span,
  .lobby-profile-card__summary span {
    background: rgba(0, 3, 9, 0.16) !important;
  }
}

@media (min-width: 981px) {
  .lobby-top-player,
  .lobby-top-player__avatar,
  .lobby-profile-avatar {
    border-color: rgba(214, 184, 112, 0.56) !important;
    box-shadow:
      0 0 18px rgba(214, 184, 112, 0.16),
      0 0 28px rgba(201, 214, 228, 0.1) !important;
  }

  .lobby-top-player__avatar,
  .lobby-profile-avatar {
    background:
      linear-gradient(135deg, transparent 0 32%, rgba(214, 184, 112, 0.18) 33% 36%, transparent 37%),
      radial-gradient(circle at 50% 24%, rgba(232, 240, 255, 0.25), transparent 18%),
      url("../../img/serif.jpg") center / cover,
      rgba(4, 8, 15, 0.9) !important;
  }
}

@media (max-width: 980px) {
  body.lobby-command-body {
    background:
      linear-gradient(180deg, rgba(1, 4, 10, 0.06), rgba(1, 4, 10, 0.14)),
      url("../../img/lobbymob.png") center / cover no-repeat fixed,
      #05070d !important;
  }

  body.lobby-command-body .lobby-command {
    background:
      linear-gradient(90deg, rgba(1, 3, 8, 0.08), rgba(1, 4, 10, 0.03) 42%, rgba(1, 3, 8, 0.08)),
      linear-gradient(180deg, rgba(1, 4, 10, 0.03), rgba(1, 4, 10, 0.1)),
      url("../../img/lobbymob.png") center / cover no-repeat,
      linear-gradient(120deg, #02040a, #07111f 55%, #02030a) !important;
  }

  .lobby-command-shell,
  .lobby-hud-panel,
  .lobby-server-detail-card,
  .lobby-active-server-card,
  .lobby-profile-card,
  .lobby-profile-card__summary,
  .auth-mode-tabs,
  .lobby-main-column > .lobby-hud-panel,
  .lobby-detail-column > .lobby-server-detail-card,
  .lobby-server-list-only,
  .lobby-terminal-nav,
  .lobby-topbar {
    background:
      linear-gradient(135deg, rgba(0, 196, 212, 0.03), transparent 28% 72%, rgba(201, 214, 228, 0.025)),
      rgba(1, 5, 12, 0.16) !important;
    backdrop-filter: blur(5px) saturate(1.02) !important;
    -webkit-backdrop-filter: blur(5px) saturate(1.02) !important;
  }

  .lobby-terminal-nav button,
  .lobby-active-server-card__meta span,
  .lobby-profile-card__summary span {
    background: rgba(0, 3, 9, 0.12) !important;
  }

  .lobby-command-shell::before {
    opacity: 0.22 !important;
  }
}

@media (max-width: 640px) {
  html,
  body.lobby-command-body,
  body.lobby-command-body .lobby-command {
    background-image:
      linear-gradient(180deg, rgba(1, 4, 10, 0.04), rgba(1, 4, 10, 0.1)),
      url("../../img/lobbymob.png") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .lobby-bg,
  .lobby-bg::before,
  .lobby-bg::after,
  .lobby-scan {
    opacity: 0.18 !important;
  }

  .lobby-active-server-card {
    gap: 6px;
    padding: 9px 10px;
  }

  .lobby-active-server-card__copy {
    gap: 3px;
  }

  .lobby-active-server-card__copy span {
    font-size: 0.6rem;
  }

  .lobby-active-server-card__copy h2 {
    font-size: 1rem;
    line-height: 1;
  }

  .lobby-active-server-card__copy p {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .lobby-active-server-card__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .lobby-active-server-card__meta span {
    display: grid;
    justify-content: stretch;
    gap: 2px;
    padding: 5px 6px;
    font-size: 0.54rem;
  }

  .lobby-active-server-card__meta strong {
    font-size: 0.7rem;
  }

  .lobby-active-server-card .lobby-primary-cta {
    min-height: 40px;
    font-size: 0.78rem;
  }

  .auth-mode-tabs {
    padding: 2px;
  }

  .auth-mode-tab {
    min-height: 34px;
    font-size: 0.76rem;
  }
}

.auth-mode-tab[data-server-mode-tab="war"] {
  color: #f4c430 !important;
  text-shadow:
    0 0 12px rgba(244, 196, 48, 0.28),
    0 0 20px rgba(214, 184, 112, 0.16) !important;
}

[data-lobby-mode="war"] .lobby-detail-description,
[data-lobby-mode="war"] .lobby-server-detail-card__notice {
  color: #f4c430 !important;
  text-shadow:
    0 0 12px rgba(244, 196, 48, 0.28),
    0 0 20px rgba(214, 184, 112, 0.16) !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell="server"][data-summary-state="missing"],
.lobby-profile-card__summary span[data-lobby-summary-cell="district"][data-summary-state="missing"] {
  border-color: rgba(205, 34, 54, 0.5) !important;
  color: rgba(244, 94, 112, 0.94) !important;
  background:
    linear-gradient(135deg, rgba(205, 34, 54, 0.24), transparent 44%),
    rgba(28, 4, 8, 0.4) !important;
  box-shadow:
    inset 0 0 16px rgba(205, 34, 54, 0.15),
    0 0 16px rgba(156, 12, 32, 0.16) !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell="server"][data-summary-state="missing"] strong,
.lobby-profile-card__summary span[data-lobby-summary-cell="district"][data-summary-state="missing"] strong {
  color: rgba(255, 118, 132, 0.98) !important;
  text-shadow:
    0 0 12px rgba(205, 34, 54, 0.28),
    0 0 18px rgba(156, 12, 32, 0.18) !important;
}

[data-lobby-mode="war"] .lobby-profile-card__summary span[data-lobby-summary-cell="mode"] {
  border-color: rgba(244, 196, 48, 0.5) !important;
  color: #f4c430 !important;
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.2), transparent 44%),
    rgba(30, 22, 7, 0.38) !important;
  box-shadow:
    inset 0 0 16px rgba(244, 196, 48, 0.14),
    0 0 18px rgba(214, 184, 112, 0.16) !important;
}

[data-lobby-mode="war"] .lobby-profile-card__summary span[data-lobby-summary-cell="mode"] strong {
  color: #ffe49a !important;
  text-shadow:
    0 0 12px rgba(244, 196, 48, 0.34),
    0 0 20px rgba(214, 184, 112, 0.18) !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell] {
  box-sizing: border-box !important;
  min-height: 58px !important;
  height: 58px !important;
  width: 100% !important;
  padding: 9px 12px !important;
  align-content: center !important;
  font-size: 0.76rem !important;
  line-height: 1.08 !important;
  grid-template-rows: 0.9rem 1.16rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(110, 146, 178, 0.22) !important;
  border-radius: 6px !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px) !important;
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.08), transparent 38%, rgba(201, 214, 228, 0.04) 88%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 46%),
    rgba(0, 3, 9, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 20px rgba(0, 196, 212, 0.04),
    0 0 12px rgba(0, 0, 0, 0.16) !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell] strong,
[data-lobby-mode="war"] .lobby-profile-card__summary span[data-lobby-summary-cell="mode"] strong {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  font-size: clamp(0.76rem, 0.78vw, 0.9rem) !important;
  line-height: 1.16 !important;
  min-height: 1.16em !important;
  padding-right: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell="mode"] strong {
  min-width: 120px !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell]::before {
  content: "" !important;
  position: absolute !important;
  top: 7px !important;
  left: 8px !important;
  width: 14px !important;
  height: 2px !important;
  background: linear-gradient(90deg, currentColor, transparent) !important;
  opacity: 0.52 !important;
  display: block !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell]::after {
  right: 12px !important;
  bottom: 8px !important;
  left: 12px !important;
  height: 1px !important;
  opacity: 0.28 !important;
}

@media (min-width: 981px) {
  .lobby-profile-card__summary span[data-lobby-summary-cell] {
    min-height: 48px !important;
    height: 48px !important;
    padding: 6px 10px !important;
    font-size: 0.62rem !important;
    line-height: 0.98 !important;
    grid-template-rows: 0.68rem 0.96rem !important;
    border-radius: 5px !important;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px) !important;
  }

  .lobby-profile-card__summary span[data-lobby-summary-cell] strong,
  [data-lobby-mode="war"] .lobby-profile-card__summary span[data-lobby-summary-cell="mode"] strong {
    font-size: clamp(0.62rem, 0.68vw, 0.76rem) !important;
    line-height: 1.02 !important;
    min-height: 1.02em !important;
  }

  .lobby-profile-card__summary span[data-lobby-summary-cell]::before {
    top: 6px !important;
    left: 7px !important;
    width: 12px !important;
  }

  .lobby-profile-card__summary span[data-lobby-summary-cell]::after {
    right: 10px !important;
    bottom: 6px !important;
    left: 10px !important;
  }
}

.lobby-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.lobby-detail-grid span[data-lobby-detail-stat] {
  position: relative;
  display: grid;
  grid-template-rows: 0.78rem auto;
  gap: 6px;
  min-width: 0;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid rgba(112, 145, 176, 0.2);
  border-radius: 7px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.08), transparent 42%, rgba(201, 214, 228, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 48%),
    rgba(3, 9, 16, 0.36);
  color: rgba(167, 184, 202, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 18px rgba(0, 196, 212, 0.04),
    0 0 14px rgba(0, 0, 0, 0.16);
}

.lobby-detail-grid span[data-lobby-detail-stat]::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.56;
}

.lobby-detail-grid span[data-lobby-detail-stat]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0.3;
}

.lobby-detail-grid span[data-lobby-detail-stat] strong {
  display: block;
  min-width: 0;
  color: #f5fbff;
  font-size: clamp(0.84rem, 0.92vw, 0.98rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: none;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 14px rgba(0, 196, 212, 0.16),
    0 0 22px rgba(201, 214, 228, 0.08);
}

.lobby-detail-grid span[data-lobby-detail-stat="region"] {
  border-color: rgba(201, 214, 228, 0.24);
  color: rgba(201, 214, 228, 0.84);
  background:
    linear-gradient(135deg, rgba(201, 214, 228, 0.08), transparent 48%, rgba(0, 196, 212, 0.03) 100%),
    rgba(6, 11, 18, 0.38);
}

.lobby-detail-grid span[data-lobby-detail-stat="districts"] {
  border-color: rgba(0, 196, 212, 0.24);
  color: rgba(144, 226, 236, 0.84);
}

.lobby-detail-grid span[data-lobby-detail-stat="districts"] strong {
  color: #dcfbff;
  justify-self: end;
  align-self: end;
  text-align: right;
  font-size: clamp(1.08rem, 1.18vw, 1.34rem);
  line-height: 1;
}

.lobby-detail-grid span[data-lobby-detail-stat="mode"] {
  border-color: rgba(98, 179, 255, 0.24);
  color: rgba(156, 214, 255, 0.84);
  background:
    linear-gradient(135deg, rgba(68, 172, 255, 0.08), transparent 48%, rgba(201, 214, 228, 0.03) 100%),
    rgba(7, 13, 22, 0.36);
}

.lobby-detail-grid span[data-lobby-detail-stat="mode"] strong {
  color: #def3ff;
  text-shadow:
    0 0 14px rgba(68, 172, 255, 0.18),
    0 0 22px rgba(201, 214, 228, 0.08);
}

.lobby-detail-grid span[data-lobby-detail-stat="capacity"] {
  border-color: rgba(98, 179, 255, 0.24);
  color: rgba(156, 214, 255, 0.84);
  background:
    linear-gradient(135deg, rgba(68, 172, 255, 0.08), transparent 48%, rgba(201, 214, 228, 0.03) 100%),
    rgba(7, 13, 22, 0.36);
}

.lobby-detail-grid span[data-lobby-detail-stat="capacity"] strong {
  color: #def3ff;
  justify-self: end;
  align-self: end;
  text-align: right;
  font-size: clamp(1.08rem, 1.18vw, 1.34rem);
  line-height: 1;
  text-shadow:
    0 0 14px rgba(68, 172, 255, 0.18),
    0 0 22px rgba(201, 214, 228, 0.08);
}

.lobby-detail-grid span[data-lobby-detail-stat="region"] {
  justify-items: start;
  align-content: center;
  padding-top: 9px;
  padding-bottom: 9px;
}

.lobby-detail-grid span[data-lobby-detail-stat="region"] strong {
  text-align: left;
  transform: none;
}

[data-lobby-mode="war"] .lobby-detail-grid span[data-lobby-detail-stat="mode"] {
  border-color: rgba(214, 184, 112, 0.26);
  color: rgba(236, 214, 154, 0.84);
  background:
    linear-gradient(135deg, rgba(244, 196, 48, 0.08), transparent 48%, rgba(201, 214, 228, 0.03) 100%),
    rgba(18, 14, 7, 0.34);
}

[data-lobby-mode="war"] .lobby-detail-grid span[data-lobby-detail-stat="mode"] strong {
  color: #ffe7a8;
  text-shadow:
    0 0 14px rgba(244, 196, 48, 0.18),
    0 0 22px rgba(214, 184, 112, 0.1);
}

@media (max-width: 980px) {
  .lobby-detail-grid span[data-lobby-detail-stat] {
    min-height: 60px;
    padding: 9px 11px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .lobby-detail-grid span[data-lobby-detail-stat] strong {
    font-size: 0.82rem;
  }

  .lobby-detail-grid span[data-lobby-detail-stat="districts"] strong,
  .lobby-detail-grid span[data-lobby-detail-stat="capacity"] strong {
    font-size: 1rem;
  }
}

.lobby-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lobby-detail-actions .lobby-primary-cta {
  min-height: 54px;
  border-radius: 7px;
  font-size: clamp(0.74rem, 0.86vw, 0.92rem);
  letter-spacing: 0.1em;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.lobby-detail-actions .lobby-primary-cta::before {
  inset: 6px;
}

.lobby-detail-actions .lobby-primary-cta > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: currentColor;
  opacity: 0.9;
}

.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter) {
  border-color: rgba(188, 201, 214, 0.34);
  color: rgba(228, 237, 246, 0.94);
  background:
    linear-gradient(135deg, rgba(201, 214, 228, 0.12), transparent 48%, rgba(0, 196, 212, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 48%),
    rgba(5, 11, 18, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 18px rgba(201, 214, 228, 0.04),
    0 0 16px rgba(0, 0, 0, 0.14);
}

.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter)::before {
  border-color: rgba(188, 201, 214, 0.22);
}

.lobby-detail-actions .lobby-primary-cta--enter {
  border-color: rgba(0, 196, 212, 0.42);
  color: #e9fbff;
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.18), transparent 44%, rgba(201, 214, 228, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 48%),
    rgba(4, 12, 20, 0.58);
  box-shadow:
    0 0 18px rgba(0, 196, 212, 0.16),
    inset 0 0 18px rgba(0, 196, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lobby-detail-actions .lobby-primary-cta--enter::before {
  border-color: rgba(0, 196, 212, 0.28);
}

.lobby-detail-actions .lobby-primary-cta:hover,
.lobby-detail-actions .lobby-primary-cta:focus-visible {
  transform: translateY(-1px);
}

.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter):hover,
.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter):focus-visible {
  box-shadow:
    0 0 20px rgba(201, 214, 228, 0.16),
    inset 0 0 18px rgba(201, 214, 228, 0.06);
}

.lobby-detail-actions .lobby-primary-cta--enter:hover,
.lobby-detail-actions .lobby-primary-cta--enter:focus-visible {
  box-shadow:
    0 0 22px rgba(0, 196, 212, 0.22),
    0 0 40px rgba(201, 214, 228, 0.1),
    inset 0 0 18px rgba(0, 196, 212, 0.1);
}

@media (max-width: 980px) {
  .lobby-detail-actions .lobby-primary-cta {
    min-height: 50px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
}

/* Final lobby polish */
.lobby-top-player {
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  min-width: 132px;
  padding: 9px 14px 8px;
  border-color: rgba(214, 184, 112, 0.38) !important;
  background:
    linear-gradient(135deg, rgba(214, 184, 112, 0.08), transparent 54%, rgba(201, 214, 228, 0.06)),
    rgba(3, 8, 18, 0.34) !important;
  box-shadow:
    inset 0 0 18px rgba(214, 184, 112, 0.04),
    inset 0 0 22px rgba(0, 196, 212, 0.03),
    0 0 20px rgba(0, 0, 0, 0.14) !important;
}

.lobby-top-player__label {
  color: rgba(195, 208, 221, 0.7);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

.lobby-top-player strong {
  color: #f6fbff;
  font-size: 0.96rem;
  text-shadow:
    0 0 12px rgba(201, 214, 228, 0.18),
    0 0 18px rgba(0, 196, 212, 0.08) !important;
}

.lobby-status-card,
.auth-server-card__status,
.lobby-detail-title > span {
  border-radius: 999px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(0, 196, 212, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.08), rgba(201, 214, 228, 0.03)),
    rgba(2, 7, 15, 0.5) !important;
  box-shadow:
    inset 0 0 14px rgba(0, 196, 212, 0.05),
    0 0 18px rgba(0, 196, 212, 0.08) !important;
}

.lobby-status-card > i,
.auth-server-card__status::before {
  background: #84f0ff !important;
  box-shadow:
    0 0 10px rgba(132, 240, 255, 0.72),
    0 0 18px rgba(0, 196, 212, 0.22) !important;
}

.lobby-detail-title > span {
  color: #dff9ff !important;
}

.auth-server-card__status {
  color: rgba(223, 249, 255, 0.88) !important;
}

.lobby-status-card__label,
.auth-server-card__status,
.lobby-detail-title > span {
  letter-spacing: 0.1em;
}

.lobby-server-detail-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.lobby-detail-title,
.lobby-detail-grid,
.lobby-detail-actions {
  margin: 0;
}

.lobby-detail-description {
  margin: 0;
}

.lobby-server-detail-card__notice {
  margin: 2px 0 0;
}

.lobby-profile-card__summary span[data-lobby-summary-cell="server"][data-summary-state="missing"],
.lobby-profile-card__summary span[data-lobby-summary-cell="district"][data-summary-state="missing"] {
  border-color: rgba(110, 146, 178, 0.24) !important;
  color: rgba(169, 187, 206, 0.8) !important;
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.06), transparent 46%, rgba(201, 214, 228, 0.04)),
    rgba(2, 7, 15, 0.28) !important;
  box-shadow:
    inset 0 0 14px rgba(0, 196, 212, 0.035),
    0 0 12px rgba(0, 0, 0, 0.12) !important;
}

.lobby-profile-card__summary span[data-lobby-summary-cell="server"][data-summary-state="missing"] strong,
.lobby-profile-card__summary span[data-lobby-summary-cell="district"][data-summary-state="missing"] strong {
  color: rgba(211, 223, 236, 0.92) !important;
  text-shadow:
    0 0 10px rgba(201, 214, 228, 0.12),
    0 0 14px rgba(0, 196, 212, 0.06) !important;
}

.lobby-server-list-only {
  position: relative;
  min-height: 0;
  padding: 2px 0 0;
  border: 1px solid rgba(0, 196, 212, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 196, 212, 0.03), transparent 22%, rgba(3, 8, 18, 0.32) 76%, rgba(3, 8, 18, 0.54)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18%),
    rgba(2, 7, 15, 0.2) !important;
  box-shadow:
    inset 0 0 22px rgba(0, 196, 212, 0.025),
    inset 0 -28px 34px rgba(2, 6, 12, 0.34);
}

.lobby-server-list-only::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 10px;
  height: 44px;
  pointer-events: none;
  border-top: 1px solid rgba(0, 196, 212, 0.08);
  background:
    linear-gradient(180deg, transparent, rgba(2, 6, 12, 0.46)),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(0, 196, 212, 0.03) 20px 21px, transparent 21px 40px);
  opacity: 0.9;
}

.auth-servers {
  scrollbar-color: rgba(0, 196, 212, 0.72) rgba(201, 214, 228, 0.08);
}

.auth-servers::-webkit-scrollbar-track {
  background: rgba(201, 214, 228, 0.08);
}

.auth-servers::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 196, 212, 0.82), rgba(132, 240, 255, 0.56));
  box-shadow: 0 0 12px rgba(0, 196, 212, 0.2);
}

.auth-mode-tabs {
  gap: 8px;
  padding: 6px;
  border-color: rgba(0, 196, 212, 0.14);
  background:
    linear-gradient(135deg, rgba(0, 196, 212, 0.03), rgba(214, 184, 112, 0.02)),
    rgba(2, 7, 15, 0.28) !important;
}

.auth-mode-tab {
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease !important;
}

.auth-mode-tab:hover,
.auth-mode-tab:focus-visible {
  transform: translateY(-1px);
}

.auth-mode-tab[data-server-mode-tab="war"] {
  border: 1px solid rgba(214, 184, 112, 0.24) !important;
  color: rgba(236, 218, 174, 0.88) !important;
  background:
    linear-gradient(135deg, rgba(214, 184, 112, 0.12), transparent 58%, rgba(255, 250, 240, 0.04)),
    rgba(18, 14, 7, 0.22) !important;
  box-shadow:
    inset 0 0 16px rgba(214, 184, 112, 0.04),
    0 0 16px rgba(214, 184, 112, 0.08) !important;
}

.auth-mode-tab[data-server-mode-tab="war"]:hover,
.auth-mode-tab[data-server-mode-tab="war"]:focus-visible {
  border-color: rgba(214, 184, 112, 0.34) !important;
  box-shadow:
    inset 0 0 18px rgba(214, 184, 112, 0.05),
    0 0 18px rgba(214, 184, 112, 0.12) !important;
}

.lobby-detail-heat {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 88px;
  padding: 14px 16px;
  border-color: rgba(0, 196, 212, 0.14);
  background:
    radial-gradient(circle at 82% 50%, rgba(201, 214, 228, 0.09), transparent 35%),
    radial-gradient(circle at 15% 20%, rgba(0, 196, 212, 0.07), transparent 30%),
    linear-gradient(90deg, rgba(0, 196, 212, 0.07), transparent 54%),
    rgba(1, 6, 12, 0.52);
  box-shadow:
    inset 0 0 20px rgba(0, 196, 212, 0.035),
    0 0 16px rgba(0, 0, 0, 0.12);
}

.lobby-detail-heat__copy {
  display: grid;
  gap: 5px;
  align-content: center;
}

.lobby-detail-heat__copy span {
  color: rgba(182, 201, 220, 0.86);
}

.lobby-detail-heat__copy p {
  margin: 0;
  color: rgba(150, 170, 192, 0.82);
  font-size: 0.76rem;
  line-height: 1.35;
}

.lobby-detail-heat[data-risk-level="medium"] {
  border-color: rgba(214, 184, 112, 0.2);
  background:
    radial-gradient(circle at 82% 50%, rgba(214, 184, 112, 0.12), transparent 35%),
    radial-gradient(circle at 15% 20%, rgba(0, 196, 212, 0.06), transparent 30%),
    linear-gradient(90deg, rgba(214, 184, 112, 0.08), transparent 54%),
    rgba(9, 8, 5, 0.42);
}

.lobby-detail-heat[data-risk-level="high"] {
  border-color: rgba(188, 49, 64, 0.24);
  background:
    radial-gradient(circle at 82% 50%, rgba(188, 49, 64, 0.14), transparent 35%),
    radial-gradient(circle at 15% 20%, rgba(214, 184, 112, 0.07), transparent 30%),
    linear-gradient(90deg, rgba(188, 49, 64, 0.08), transparent 54%),
    rgba(15, 5, 8, 0.46);
}

.lobby-risk-ring {
  width: 70px;
  height: 70px;
  background:
    radial-gradient(circle at center, rgba(2, 6, 14, 0.92) 0 50%, transparent 51%),
    conic-gradient(var(--lobby-cyan) var(--risk-value), rgba(0, 196, 212, 0.12) 0);
}

.lobby-risk-ring[data-risk-level="none"],
.lobby-risk-ring[data-risk-level="low"] {
  box-shadow:
    0 0 0 1px rgba(0, 196, 212, 0.22),
    0 0 16px rgba(0, 196, 212, 0.12),
    inset 0 0 18px rgba(0, 196, 212, 0.04);
}

.lobby-risk-ring[data-risk-level="medium"] {
  background:
    radial-gradient(circle at center, rgba(2, 6, 14, 0.92) 0 50%, transparent 51%),
    conic-gradient(var(--lobby-yellow) var(--risk-value), rgba(214, 184, 112, 0.12) 0);
  box-shadow:
    0 0 0 1px rgba(214, 184, 112, 0.22),
    0 0 18px rgba(214, 184, 112, 0.12),
    inset 0 0 18px rgba(214, 184, 112, 0.04);
}

.lobby-risk-ring[data-risk-level="high"] {
  background:
    radial-gradient(circle at center, rgba(2, 6, 14, 0.92) 0 50%, transparent 51%),
    conic-gradient(#c94150 var(--risk-value), rgba(201, 65, 80, 0.12) 0);
  box-shadow:
    0 0 0 1px rgba(201, 65, 80, 0.22),
    0 0 18px rgba(201, 65, 80, 0.14),
    inset 0 0 18px rgba(201, 65, 80, 0.05);
}

.lobby-risk-ring[data-risk-level="medium"]::before {
  border-color: rgba(236, 214, 154, 0.2);
  box-shadow: inset 0 0 12px rgba(214, 184, 112, 0.08);
}

.lobby-risk-ring[data-risk-level="high"]::before {
  border-color: rgba(245, 180, 188, 0.2);
  box-shadow: inset 0 0 12px rgba(201, 65, 80, 0.08);
}

.lobby-risk-ring[data-risk-level="medium"] strong {
  color: #ffe4a1;
  text-shadow: 0 0 12px rgba(214, 184, 112, 0.54);
}

.lobby-risk-ring[data-risk-level="high"] strong {
  color: #ffb7c0;
  text-shadow: 0 0 12px rgba(201, 65, 80, 0.54);
}

.lobby-detail-actions {
  gap: 12px;
}

.lobby-detail-actions .lobby-primary-cta {
  min-height: 56px;
}

.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter) {
  border-color: rgba(188, 201, 214, 0.28);
  color: rgba(229, 237, 245, 0.92);
  background:
    linear-gradient(135deg, rgba(201, 214, 228, 0.08), transparent 56%, rgba(0, 196, 212, 0.04)),
    rgba(4, 10, 18, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 18px rgba(201, 214, 228, 0.035),
    0 0 14px rgba(0, 0, 0, 0.14);
}

.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter)::before {
  border-color: rgba(188, 201, 214, 0.2);
}

.lobby-detail-actions .lobby-primary-cta--enter {
  border-color: rgba(0, 196, 212, 0.48);
  color: #eaffff;
  background:
    linear-gradient(135deg, rgba(40, 227, 245, 0.32), rgba(15, 102, 125, 0.36) 52%, rgba(201, 214, 228, 0.12)),
    rgba(4, 12, 20, 0.68);
  box-shadow:
    0 0 18px rgba(0, 196, 212, 0.18),
    0 0 34px rgba(0, 196, 212, 0.12),
    inset 0 0 22px rgba(0, 196, 212, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lobby-detail-actions .lobby-primary-cta--enter::before {
  border-color: rgba(178, 247, 255, 0.24);
}

.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter):hover,
.lobby-detail-actions .lobby-primary-cta:not(.lobby-primary-cta--enter):focus-visible {
  box-shadow:
    0 0 18px rgba(201, 214, 228, 0.16),
    inset 0 0 18px rgba(201, 214, 228, 0.05);
}

.lobby-detail-actions .lobby-primary-cta--enter:hover,
.lobby-detail-actions .lobby-primary-cta--enter:focus-visible {
  box-shadow:
    0 0 22px rgba(0, 196, 212, 0.3),
    0 0 44px rgba(0, 196, 212, 0.16),
    inset 0 0 24px rgba(0, 196, 212, 0.12);
}

.lobby-detail-actions .lobby-primary-cta:disabled {
  opacity: 0.5;
  border-color: rgba(110, 146, 178, 0.16) !important;
  color: rgba(149, 167, 188, 0.72) !important;
  background:
    linear-gradient(135deg, rgba(110, 146, 178, 0.04), transparent 60%, rgba(201, 214, 228, 0.025)),
    rgba(3, 8, 15, 0.3) !important;
  box-shadow:
    inset 0 0 14px rgba(110, 146, 178, 0.02),
    0 0 10px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 981px) {
  .lobby-top-player {
    min-width: 138px;
    padding: 10px 15px 9px;
  }
}

/* Compact hosted server browser shown below an already active membership. */
.auth-servers.auth-servers--membership-active {
  max-height: min(34vh, 318px);
  padding: 2px 7px 2px 2px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-color: rgba(0, 196, 212, 0.58) rgba(2, 8, 16, 0.64);
  scrollbar-width: thin;
}

.auth-servers--membership-active::-webkit-scrollbar {
  width: 7px;
}

.auth-servers--membership-active::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(2, 8, 16, 0.64);
}

.auth-servers--membership-active::-webkit-scrollbar-thumb {
  border: 1px solid rgba(0, 196, 212, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 196, 212, 0.72), rgba(197, 31, 168, 0.54));
}

.auth-servers--membership-active .live-server-card {
  grid-template-columns: minmax(0, 1fr) minmax(116px, 132px);
  min-height: 82px;
}

.auth-servers--membership-active .live-server-card__main {
  gap: 3px 10px;
  padding: 10px 12px;
}

.auth-servers--membership-active .auth-server-card__label {
  font-size: 0.96rem;
}

.auth-servers--membership-active .auth-server-card__meta,
.auth-servers--membership-active .auth-server-card__subtitle,
.auth-servers--membership-active .auth-server-card__status,
.auth-servers--membership-active .auth-server-card__countdown {
  font-size: 0.66rem;
  line-height: 1.16;
}

.auth-servers--membership-active .auth-server-card__schedule {
  display: none;
}

.auth-servers--membership-active .live-server-card > .lobby-primary-cta {
  min-width: 116px;
  min-height: 82px;
  padding: 8px;
  font-size: 0.68rem;
  line-height: 1.12;
}

@media (max-width: 760px) {
  .auth-servers.auth-servers--membership-active {
    max-height: min(38dvh, 292px);
    padding-right: 5px;
  }

  .auth-servers--membership-active .live-server-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 76px;
  }

  .auth-servers--membership-active .live-server-card__main {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px 10px;
  }

  .auth-servers--membership-active .live-server-card__main .auth-server-card__status,
  .auth-servers--membership-active .live-server-card__main .auth-server-card__countdown {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  .auth-servers--membership-active .auth-server-card__subtitle {
    grid-column: 1 / -1;
  }

  .auth-servers--membership-active .live-server-card > .lobby-primary-cta {
    min-width: 104px;
    min-height: 76px;
    border-radius: 0;
  }
}

body.servers-page .auth-server-card.live-server-card {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  padding: 0;
  overflow: hidden;
}

body.servers-page .auth-server-card.live-server-card > .lobby-primary-cta {
  align-self: stretch;
  min-height: 100%;
  border-width: 0 0 0 1px;
  border-radius: 0;
}

@media (max-width: 760px) {
  body.servers-page .auth-server-card.live-server-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.servers-page .auth-server-card.live-server-card > .lobby-primary-cta {
    min-height: 46px;
    border-width: 1px 0 0;
  }
}

body.servers-page .auth-servers--membership-active .auth-server-card.live-server-card {
  grid-template-columns: minmax(0, 1fr) minmax(116px, 132px);
  min-height: 82px;
}

body.servers-page .auth-servers--membership-active .auth-server-card.live-server-card > .lobby-primary-cta {
  min-width: 116px;
  min-height: 82px;
  border-width: 0 0 0 1px;
}

@media (max-width: 760px) {
  body.servers-page .auth-servers--membership-active .auth-server-card.live-server-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 76px;
  }

  body.servers-page .auth-servers--membership-active .auth-server-card.live-server-card > .lobby-primary-cta {
    min-width: 104px;
    min-height: 76px;
    border-width: 0 0 0 1px;
  }
}

/* Desktop hosted server slot: compact, aligned and quick to scan. */
@media (min-width: 761px) {
  body.servers-page .auth-server-card.live-server-card {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 136px);
    min-height: 86px;
  }

  body.servers-page .auth-server-card.live-server-card .live-server-card__main {
    grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
    grid-template-rows: repeat(3, auto);
    align-content: center;
    gap: 2px 14px;
    min-width: 0;
    padding: 10px 13px 10px 15px;
  }

  body.servers-page .auth-server-card.live-server-card .auth-server-card__meta {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  body.servers-page .auth-server-card.live-server-card .auth-server-card__label {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    font-size: clamp(0.9rem, 1vw, 1.04rem);
    line-height: 1.08;
  }

  body.servers-page .auth-server-card.live-server-card .auth-server-card__subtitle {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    font-size: 0.64rem;
    line-height: 1.12;
  }

  body.servers-page .auth-server-card.live-server-card .auth-server-card__status {
    grid-column: 2;
    grid-row: 1;
    min-height: 21px;
    padding: 0 7px;
    font-size: 0.61rem;
    line-height: 1;
  }

  body.servers-page .auth-server-card.live-server-card .auth-server-card__status::before {
    width: 5px;
    height: 5px;
  }

  body.servers-page .auth-server-card.live-server-card .auth-server-card__schedule {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  body.servers-page .auth-server-card.live-server-card .auth-server-card__countdown {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    min-height: 0;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  body.servers-page .auth-server-card.live-server-card > .lobby-primary-cta {
    min-width: 118px;
    min-height: 86px;
    padding: 8px 9px;
    font-size: 0.66rem;
    line-height: 1.12;
    letter-spacing: 0.035em;
  }

  body.servers-page .auth-servers--membership-active .auth-server-card.live-server-card {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 122px);
    min-height: 78px;
  }

  body.servers-page .auth-servers--membership-active .auth-server-card.live-server-card .live-server-card__main {
    padding: 8px 11px 8px 13px;
  }

  body.servers-page .auth-servers--membership-active .auth-server-card.live-server-card > .lobby-primary-cta {
    min-width: 108px;
    min-height: 78px;
    font-size: 0.62rem;
  }
}

/* Mobile active-membership server slots and registration summary stay compact. */
@media (max-width: 760px) {
  body.servers-page .lobby-server-list-only.is-membership-active {
    width: 100%;
    max-height: 236px;
    padding: 3px;
    overflow: hidden;
  }

  body.servers-page .lobby-server-list-only.is-membership-active::after {
    display: none;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-servers--membership-active {
    grid-auto-rows: max-content;
    align-content: start;
    gap: 6px;
    max-height: 230px;
    padding: 0 4px 0 0;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card.live-server-card {
    grid-template-columns: minmax(0, 1fr) 88px;
    min-height: 64px;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .live-server-card__main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 2px 7px;
    min-width: 0;
    padding: 7px 8px;
  }

  body.servers-page .lobby-server-list-only.is-membership-active :is(
    .auth-server-card__meta,
    .auth-server-card__schedule
  ) {
    display: none;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__label {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.06;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__subtitle {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    font-size: 0.56rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__status,
  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__countdown {
    grid-column: 2;
    justify-self: end;
    max-width: 82px;
    font-size: 0.54rem;
    line-height: 1.05;
    text-align: right;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__status {
    grid-row: 1;
    min-height: 18px;
    padding-inline: 5px;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__countdown {
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__countdown:empty {
    display: none;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .live-server-card > .lobby-primary-cta {
    min-width: 88px;
    min-height: 64px;
    padding: 6px;
    border-width: 0 0 0 1px;
    font-size: 0.56rem;
    line-height: 1.08;
    letter-spacing: 0.025em;
  }

  body.servers-page .lobby-registration-status {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 8px;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 7px;
  }

  body.servers-page .lobby-registration-status strong {
    min-width: 0;
    font-size: 0.65rem;
    line-height: 1.08;
    letter-spacing: 0.035em;
  }

  body.servers-page .lobby-registration-status span {
    max-width: 48vw;
    font-size: 0.59rem;
    line-height: 1.08;
    text-align: right;
  }

  body.servers-page .lobby-registration-status span:empty {
    display: none;
  }
}

@media (min-width: 761px) {
  body.servers-page .lobby-server-list-only.is-membership-active {
    align-self: start;
    width: 100%;
    max-height: 202px;
    padding: 4px;
    overflow: hidden;
  }

  body.servers-page .lobby-server-list-only.is-membership-active::after {
    display: none;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-servers--membership-active {
    grid-auto-rows: max-content;
    align-content: start;
    gap: 7px;
    width: 100%;
    max-height: 192px;
    padding: 0 6px 0 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card.live-server-card {
    grid-template-columns: minmax(0, 1fr) 102px;
    min-height: 58px;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .live-server-card__main {
    grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
    gap: 1px 10px;
    padding: 6px 9px 6px 11px;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__label {
    font-size: 0.86rem;
  }

  body.servers-page .lobby-server-list-only.is-membership-active :is(
    .auth-server-card__meta,
    .auth-server-card__subtitle,
    .auth-server-card__status,
    .auth-server-card__countdown
  ) {
    font-size: 0.58rem;
    line-height: 1.08;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .auth-server-card__status {
    min-height: 18px;
    padding-inline: 6px;
  }

  body.servers-page .lobby-server-list-only.is-membership-active .live-server-card > .lobby-primary-cta {
    min-width: 102px;
    min-height: 58px;
    padding: 6px;
    font-size: 0.58rem;
    line-height: 1.08;
  }
}

/* Returning to an existing war: green action on both lobby cards. */
body.servers-page .lobby-primary-cta[data-lobby-continue-active],
body.servers-page .war-button[data-war-continue] {
  color: #eafff1;
  border-color: rgba(75, 232, 141, 0.72);
  background: linear-gradient(135deg, rgba(28, 134, 78, 0.88), rgba(6, 48, 31, 0.96));
  box-shadow: 0 4px 0 rgba(2, 27, 16, 0.9), 0 0 22px rgba(45, 218, 121, 0.22), inset 0 1px 0 rgba(186, 255, 210, 0.2);
}
body.servers-page .lobby-primary-cta[data-lobby-continue-active]::before {
  border-color: rgba(101, 255, 164, 0.35);
}
body.servers-page .lobby-primary-cta[data-lobby-continue-active]:not(:disabled):is(:hover, :focus-visible),
body.servers-page .war-button[data-war-continue]:not(:disabled):is(:hover, :focus-visible) {
  border-color: #8bffb5;
  box-shadow: 0 4px 0 rgba(2, 27, 16, 0.9), 0 0 30px rgba(45, 218, 121, 0.42), inset 0 1px 0 rgba(186, 255, 210, 0.3);
}
body.servers-page .lobby-primary-cta[data-lobby-continue-active]:disabled,
body.servers-page .war-button[data-war-continue]:disabled {
  opacity: 0.5;
  box-shadow: none;
}

/* Taken spawn districts replace the industrial legend cell. */
.server-detail-modal__type-count.is-taken {
  border-color: rgba(255, 89, 105, 0.65);
  background: linear-gradient(180deg, rgba(91, 22, 35, 0.9), rgba(38, 12, 21, 0.9));
  box-shadow: 0 0 14px rgba(255, 65, 85, 0.16);
}
.server-detail-modal__type-count.is-taken strong,
.server-detail-modal__type-count.is-taken b {
  color: #ffe5e8;
  text-shadow: 0 0 12px rgba(255, 65, 85, 0.3);
}
.server-detail-modal__type-count.is-taken strong {
  text-transform: none;
}
