:root {
  --bg: #080a0b;
  --side: #0b0f11;
  --panel: #17212a;
  --panel-2: #11181d;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --soft: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.08);
  --purple: #8e3dff;
  --pink: #ff21a8;
  --gold: #f8d65c;
  --green: #8cff78;
  --promo-h: 0px;
  --sidebar-w: 280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

a,
button,
select {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100svh;
  padding-top: var(--promo-h);
}

.sidebar {
  position: fixed;
  inset: var(--promo-h) auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  padding: 20px 10px 16px;
  background: var(--side);
  border-right: 1px solid var(--line);
}

.side-logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 0 22px;
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.side-logo strong {
  color: var(--purple);
}

.player-now {
  display: grid;
  gap: 5px;
  padding: 0 56px 24px;
}

.player-now span {
  color: var(--muted);
  font-size: 15px;
}

.player-now strong {
  font-size: 25px;
  line-height: 1;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: #252c32;
}

.side-nav a:hover {
  transform: translateX(2px);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #101010;
  background: #fff;
  font-size: 13px;
  font-weight: 950;
}

.side-nav a.is-active .nav-icon {
  background: var(--gold);
}

.nav-icon.accent {
  color: #fff;
  background: var(--pink);
}

.side-nav strong {
  font-size: 16px;
  font-weight: 900;
}

.side-nav em {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e23b63;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.side-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.language-toggle,
.side-footer a {
  min-height: 34px;
  border-radius: 8px;
  background: #11171a;
}

.language-toggle {
  display: flex;
  grid-column: 1 / -1;
  padding: 3px;
}

.lang-button {
  flex: 1;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.lang-button.is-active {
  color: #fff;
  background: #20282d;
}

.side-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.main-app {
  grid-column: 2;
  min-width: 0;
  padding: 20px 54px 54px;
}

.topbar {
  position: sticky;
  top: var(--promo-h);
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  margin: -20px -54px 16px;
  padding: 16px 54px;
  background: rgba(8, 10, 11, 0.82);
  backdrop-filter: blur(16px);
}

.server-status-pill,
.icon-button,
.premium-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  background: #11171c;
}

.server-status-pill {
  gap: 8px;
  min-width: 144px;
  padding: 0 14px;
  color: var(--muted);
}

.server-status-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.top-label {
  color: var(--muted);
  font-weight: 850;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.avatar {
  width: 40px;
  height: 40px;
}

.avatar {
  border-radius: 50%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.25)),
    url("https://images.unsplash.com/photo-1568602471122-7832951cc4c5?auto=format&fit=crop&w=200&q=80");
  background-position: center;
  background-size: cover;
}

.profile-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  min-width: 152px;
  max-width: 210px;
  padding: 4px 10px 4px 4px;
  border-radius: 8px;
  color: #fff;
  background: #10161a;
  overflow: hidden;
  white-space: nowrap;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(135deg, var(--purple), var(--green));
  background-position: center;
  background-size: cover;
}

.profile-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-button {
  min-width: 148px;
  color: #171203;
  background: #f3c949;
  font-weight: 950;
}

.integration-badge {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #dce6ec;
  background: #11161a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.integration-badge[data-state="connected"] {
  color: var(--green);
  border-color: rgba(140, 255, 120, 0.35);
}

.integration-badge[data-state="syncing"] {
  color: var(--gold);
  border-color: rgba(248, 214, 92, 0.35);
}

.integration-badge[data-state="premium-required"],
.integration-badge[data-state="unavailable"] {
  color: #ff8dbf;
  border-color: rgba(255, 33, 168, 0.35);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  gap: 12px;
}

.earn-panel,
.challenge-banner {
  position: relative;
  min-height: 192px;
  overflow: hidden;
  border-radius: 8px;
  background: #233749;
}

.earn-panel {
  padding: 22px 20px;
  background:
    linear-gradient(90deg, rgba(36, 61, 83, 0.98), rgba(35, 55, 73, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
}

.earn-panel h1,
.challenge-banner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

.earn-panel p,
.challenge-banner p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 540px;
  margin-top: 14px;
}

.stat-row span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  min-height: 56px;
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(9, 16, 21, 0.46);
}

.stat-row span::before {
  color: var(--gold);
  content: "●●";
  font-size: 18px;
}

.stat-row b {
  font-size: 14px;
}

.stat-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.challenge-banner {
  padding: 22px 20px;
  background:
    linear-gradient(105deg, rgba(48, 97, 55, 0.96), rgba(102, 182, 131, 0.82)),
    url("https://images.unsplash.com/photo-1614294148960-9aa740632a87?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 42px;
  margin-top: 22px;
  border-radius: 8px;
  color: #161204;
  background: #f5d46c;
  font-weight: 950;
}

.knife {
  position: absolute;
  right: 24px;
  top: 26px;
  width: 94px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #192a22, #bdf7d6, #263c32);
  transform: rotate(42deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mode-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 255px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.58)),
    var(--img);
  background-position: center;
  background-size: cover;
  text-align: center;
  isolation: isolate;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.mode-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.18);
  content: "";
  transition: background 180ms ease;
}

.mode-card:hover,
.mode-card.is-active {
  transform: translateY(-3px);
  filter: brightness(1.16);
}

.mode-card:hover::after,
.mode-card.is-active::after {
  background: rgba(142, 61, 255, 0.16);
}

.mode-card span {
  display: block;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 950;
  line-height: 1;
}

.mode-card small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.mode-card.advert {
  background:
    radial-gradient(circle at 70% 30%, rgba(140, 255, 120, 0.78), transparent 38%),
    linear-gradient(135deg, #102c23, #0fd1b3);
}

.live-room-board {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #0d1215;
}

.live-board-head,
.room-filters,
.live-server-row,
.live-server-actions {
  display: flex;
  align-items: center;
}

.live-board-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.live-board-head p {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.live-board-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
}

.room-filters {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.server-browser-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.server-browser-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.server-browser-filters select,
.server-browser-filters input[type="search"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 11px;
  color: #fff;
  background: #131a1f;
  font-weight: 850;
}

.server-browser-filters .checkbox-filter {
  min-height: 38px;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #131a1f;
  color: #fff;
}

.room-filters button,
.live-server-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #131a1f;
  color: #cbd5df;
  font-weight: 900;
  cursor: pointer;
}

.room-filters button.is-active,
.live-server-actions button:hover {
  border-color: rgba(248, 214, 92, 0.7);
  color: #171203;
  background: var(--gold);
}

.live-server-list {
  display: grid;
  gap: 8px;
}

.live-server-row {
  gap: 12px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #10171b;
}

.live-server-map {
  position: relative;
  display: grid;
  place-items: end start;
  width: 112px;
  height: 56px;
  overflow: hidden;
  padding: 8px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.62)),
    var(--map-img);
  background-position: center;
  background-size: cover;
}

.live-server-map strong,
.live-server-meta strong,
.live-server-row code {
  color: #fff;
}

.live-server-meta {
  min-width: 180px;
  flex: 1;
}

.live-server-meta span,
.live-server-meta small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.live-server-meta strong {
  display: block;
  margin: 3px 0;
  font-size: 16px;
}

.live-server-row code {
  min-width: 260px;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #090d10;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-server-actions {
  gap: 8px;
}

.live-server-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: #0b1013;
  font-weight: 850;
}

.create-dock,
.info-panel {
  border-radius: 8px;
  background: #11171c;
}

.create-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
}

.create-copy p,
.info-panel p {
  margin: 0 0 7px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.create-copy strong {
  font-size: 20px;
}

.create-controls {
  display: flex;
  gap: 8px;
}

.create-summary {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(141, 77, 255, 0.34);
  border-radius: 8px;
  background: rgba(141, 77, 255, 0.08);
  color: #ffffff;
}

.create-summary span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.create-controls select,
.create-button,
.copy-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1114;
  color: #fff;
  font-weight: 900;
}

.create-controls select {
  padding: 0 12px;
}

.create-button,
.copy-button {
  min-width: 102px;
  border-color: rgba(248, 214, 92, 0.6);
  color: #171203;
  background: var(--gold);
  cursor: pointer;
}

.server-status {
  grid-column: 1 / -1;
  min-height: 42px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #0c1114;
  font-size: 13px;
  font-weight: 850;
}

.server-status.is-ok {
  color: var(--green);
}

.server-status.is-error {
  color: #fff;
  background: rgba(255, 33, 168, 0.12);
}

.connect-output,
.lobby-output,
.site-lobby {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(184, 111, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(184, 111, 255, 0.16), rgba(88, 255, 163, 0.1));
}

.lobby-output,
.site-lobby {
  border-color: rgba(88, 255, 163, 0.24);
  background: #0d1316;
}

.connect-output[hidden],
.lobby-output[hidden],
.site-lobby[hidden] {
  display: none;
}

.connect-output span,
.lobby-output span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.connect-output code {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-details p {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lobby-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.steam-connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 116px;
  padding: 0 14px;
  border: 1px solid rgba(88, 255, 163, 0.45);
  border-radius: 8px;
  color: #fff;
  background: rgba(88, 255, 163, 0.12);
  font-weight: 950;
}

.site-lobby {
  grid-template-columns: 1fr;
}

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

.site-lobby-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.site-lobby-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.site-lobby-head strong {
  min-width: 70px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(88, 255, 163, 0.1);
  text-align: center;
}

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

.lobby-member {
  min-height: 52px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.lobby-member strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-member span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.xplay-lobby {
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.06);
  background: #080b0d;
}

.xplay-lobby.has-settings {
  grid-template-columns: minmax(0, 1fr) 338px;
  align-items: start;
}

.xplay-lobby.has-settings .lobby-room-top,
.xplay-lobby.has-settings .lobby-room-grid,
.xplay-lobby.has-settings .spectator-row {
  grid-column: 1;
}

.lobby-room-top,
.lobby-room-actions,
.team-head,
.lobby-meta,
.spectator-list {
  display: flex;
  align-items: center;
}

.lobby-room-top {
  justify-content: space-between;
  gap: 16px;
}

.back-lobby,
.delete-lobby-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: #10161a;
  font-weight: 850;
}

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

.delete-lobby-button {
  color: #ff5f7d;
  cursor: pointer;
}

.lobby-room-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 0.85fr) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
}

.team-column {
  min-width: 0;
}

.team-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.team-head h3,
.spectator-row h3 {
  margin: 0;
  color: #d6e2ec;
  font-size: 18px;
  font-weight: 800;
}

.team-head span {
  min-width: 54px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #1b2328;
  font-size: 14px;
  text-align: center;
}

.team-slots {
  display: grid;
  gap: 0;
}

.team-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.52);
}

.player-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    #171f24;
}

.team-slot.is-filled .player-avatar,
.spectator-card .player-avatar {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(135deg, var(--purple), var(--green));
}

.team-slot strong,
.spectator-card strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-slot small,
.spectator-card small {
  color: var(--muted);
}

.team-slot .skin-tag,
.spectator-card .skin-tag {
  display: inline-flex;
  max-width: 170px;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(88, 255, 163, 0.1);
  font-size: 11px;
  font-weight: 850;
}

.join-team-button {
  display: block;
  width: max-content;
  min-height: 40px;
  margin: 18px auto 0;
  border: 0;
  border-radius: 6px;
  color: var(--gold);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}

.lobby-center {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: 38px;
}

.lobby-map-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(100%, 270px);
  min-height: 128px;
  padding: 12px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.18)),
    var(--map-img, url("https://images.unsplash.com/photo-1600861194942-f883de0dfe96?auto=format&fit=crop&w=900&q=80")) center / cover;
}

.lobby-map-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.lobby-map-card span,
.lobby-map-card strong {
  position: relative;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 13px;
}

.versus-mark {
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0;
}

.lobby-meta {
  width: min(100%, 240px);
  justify-content: space-between;
  gap: 20px;
}

.lobby-meta small {
  display: block;
  color: #97a8b8;
  font-size: 12px;
}

.lobby-meta b {
  display: block;
  color: #fff;
  font-size: 14px;
}

.waiting-box {
  width: min(100%, 270px);
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid #151c21;
  border-radius: 8px;
  color: #9fb0bf;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.015);
}

.spectator-row {
  max-width: 420px;
}

.spectator-list {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.spectator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  min-height: 62px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spectator-card.is-empty strong {
  color: rgba(255, 255, 255, 0.45);
}

.match-settings-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
  padding: 0 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.create-settings-panel {
  grid-column: 1 / -1;
  grid-row: auto;
  display: grid;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #080d10;
}

.skinchanger-page {
  margin-top: 14px;
  padding: 28px;
  border-radius: 8px;
  background: #090c0e;
}

.skin-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 118px;
}

.skin-profile-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(135deg, var(--purple), var(--green));
  background-position: center;
  background-size: cover;
}

.skin-profile-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.skin-profile-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.skin-coins {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
}

.skin-coins strong {
  color: var(--gold);
  font-size: 20px;
}

.skin-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 30px;
}

.skin-tabs a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #b8c7d5;
  font-size: 20px;
}

.skin-tabs a.is-active {
  border-radius: 999px;
  color: #0b0d0f;
  background: #fff;
}

.skin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 12px;
}

.skin-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.skin-sidebar .weapon-filter {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.skin-sidebar .weapon-filter button {
  width: 100%;
  justify-content: flex-start;
}

.skin-sidebar button {
  min-height: 58px;
  display: grid;
  justify-items: start;
  gap: 4px;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.skin-sidebar button.is-active {
  background: #11161a;
  box-shadow: inset 4px 0 0 var(--pink);
}

.skin-sidebar span {
  color: var(--muted);
  font-size: 12px;
}

.skin-main {
  min-width: 0;
}

.skin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 14px;
  border-radius: 8px;
  background: #101418;
}

.weapon-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.weapon-filter button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 12px;
  color: #7f8c95;
  background: transparent;
  font-weight: 850;
}

.weapon-filter button.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245, 210, 90, 0.1);
}

.skin-toolbar input {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: #0d1114;
}

.skin-plus-banner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 16px 20px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 45%, rgba(255, 30, 177, 0.46), transparent 28%),
    linear-gradient(90deg, rgba(23, 31, 38, 0.98), rgba(70, 30, 95, 0.9));
}

.skin-plus-banner strong {
  font-size: 26px;
}

.skin-plus-banner em {
  padding: 10px 18px;
  border-radius: 6px;
  color: #241b27;
  background: rgba(255, 255, 255, 0.85);
  font-style: normal;
  font-weight: 850;
}

.skin-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.skin-card {
  min-height: 144px;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 33, 168, 0.85);
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  background: #151012;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, outline-color 160ms ease;
}

.skin-card[hidden] {
  display: none;
}

.skin-card:hover {
  transform: translateY(-2px);
  background: #181317;
}

.skin-card.is-active {
  outline: 1px solid var(--gold);
}

.skin-card small {
  color: #bec8d0;
}

.skin-card strong {
  font-size: 14px;
}

.skin-art {
  --skin-a: #8cff78;
  --skin-b: #ff21a8;
  --skin-c: #11181d;
  width: 100%;
  height: 72px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background:
    radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--skin-a) 42%, transparent), transparent 34%),
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--skin-b) 42%, transparent), transparent 34%),
    linear-gradient(180deg, #1b2229, #0d1013 72%);
}

.skin-art::before,
.skin-art::after {
  content: "";
  position: absolute;
  display: block;
}

.skin-art::before {
  left: 10%;
  right: 9%;
  top: 31px;
  height: 13px;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, transparent 0 8%, var(--skin-a) 8% 32%, var(--skin-b) 32% 68%, var(--skin-c) 68% 100%),
    #222a31;
  box-shadow:
    58px -11px 0 -4px rgba(255, 255, 255, 0.14),
    82px 12px 0 -6px rgba(255, 255, 255, 0.18);
  transform: skewX(-11deg);
}

.skin-art::after {
  left: 16%;
  top: 44px;
  width: 34px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, #20272e, var(--skin-c));
  transform: skewX(16deg);
}

.skin-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.52));
  transform: scale(1.12);
}

.skin-art.has-image::before,
.skin-art.has-image::after {
  display: none;
}

.skin-art.image-failed {
  background:
    radial-gradient(circle at 24% 20%, color-mix(in srgb, var(--skin-a) 48%, transparent), transparent 34%),
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--skin-b) 46%, transparent), transparent 34%),
    linear-gradient(180deg, #202830, #0d1013 72%);
}

.knife-art::before {
  left: 18%;
  right: 11%;
  top: 32px;
  height: 12px;
  clip-path: polygon(0 42%, 78% 0, 100% 35%, 78% 70%, 0 100%, 8% 58%);
  border-radius: 0;
  transform: rotate(-12deg);
}

.knife-art::after {
  left: 13%;
  top: 36px;
  width: 34px;
  height: 12px;
  border-radius: 2px;
  background: #20262d;
  transform: rotate(-12deg);
}

.gloves-art::before,
.gloves-art::after {
  top: 18px;
  width: 46px;
  height: 42px;
  border-radius: 44% 48% 42% 46%;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(135deg, var(--skin-a), var(--skin-b));
  box-shadow: 0 0 24px color-mix(in srgb, var(--skin-b) 40%, transparent);
  transform: rotate(-11deg);
}

.agent-art::before {
  left: 50%;
  top: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 54% 40%, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(135deg, var(--skin-a), var(--skin-b));
  box-shadow: -18px 23px 0 9px rgba(32, 39, 46, 0.95);
  transform: translateX(-50%);
}

.agent-art::after {
  left: 50%;
  top: 36px;
  width: 62px;
  height: 34px;
  border-radius: 28px 28px 8px 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 28% 72%, rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, #d8e1e8, #242b33);
  transform: translateX(-50%);
}

.music-art::before {
  left: 28%;
  top: 16px;
  width: 45px;
  height: 45px;
  border: 8px solid var(--skin-a);
  border-right-color: var(--skin-b);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px #12171c;
  background:
    radial-gradient(circle, #090c0e 0 24%, var(--skin-a) 25% 30%, transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
}

.music-art::after {
  right: 22%;
  top: 18px;
  width: 22px;
  height: 38px;
  border-right: 5px solid var(--skin-b);
  border-top: 5px solid var(--skin-b);
  border-radius: 0 10px 0 0;
  background: transparent;
}

.gloves-art::before {
  left: 25%;
}

.gloves-art::after {
  left: 52%;
  transform: rotate(11deg);
}

.awp-art::before,
.ssg-art::before {
  left: 4%;
  right: 3%;
  top: 32px;
  height: 10px;
  box-shadow:
    64px -14px 0 -3px var(--skin-c),
    112px -1px 0 -5px rgba(255, 255, 255, 0.28);
}

.deagle-art::before,
.usp-art::before,
.glock-art::before {
  left: 26%;
  right: 20%;
  top: 28px;
  height: 18px;
  border-radius: 5px 10px 6px 5px;
}

.deagle-art::after,
.usp-art::after,
.glock-art::after {
  left: 39%;
  top: 43px;
  width: 20px;
  height: 18px;
}

.knife-art { --skin-a: #ff3fa6; --skin-b: #ff8df0; --skin-c: #171b1f; }
.gloves-art { --skin-a: #705cff; --skin-b: #b86fff; --skin-c: #171b1f; }
.ak-art { --skin-a: #56301d; --skin-b: #58ffa3; --skin-c: #1d1210; }
.m4-art { --skin-a: #7a7686; --skin-b: #ff22a8; --skin-c: #232a31; }
.howl-art { --skin-a: #ff5f2e; --skin-b: #2a323b; --skin-c: #11181d; }
.awp-art { --skin-a: #d2b14c; --skin-b: #343b3f; --skin-c: #181d21; }
.ssg-art { --skin-a: #292f33; --skin-b: #38ccff; --skin-c: #11181d; }
.deagle-art { --skin-a: #f4f4f1; --skin-b: #2d3238; --skin-c: #101318; }
.usp-art { --skin-a: #c63b48; --skin-b: #f0e8d4; --skin-c: #12171c; }
.glock-art { --skin-a: #ffe14d; --skin-b: #fb412f; --skin-c: #18120f; }
.fade-art { --skin-a: #ffd76a; --skin-b: #ff3fa6; --skin-c: #53ffd0; }
.doppler-art { --skin-a: #5b2cff; --skin-b: #ff48cf; --skin-c: #211733; }
.vice-art { --skin-a: #ff56cc; --skin-b: #5ee7ff; --skin-c: #15181d; }
.neon-art { --skin-a: #ff2ca8; --skin-b: #4dffe0; --skin-c: #251f36; }
.vulcan-art { --skin-a: #eceff4; --skin-b: #28b7ff; --skin-c: #151b20; }
.printstream-art { --skin-a: #eff3f5; --skin-b: #ff58d2; --skin-c: #151a20; }
.asiimov-art { --skin-a: #f5f0e8; --skin-b: #ff7a1a; --skin-c: #151a20; }
.blaze-art { --skin-a: #ff8b17; --skin-b: #ffd25c; --skin-c: #101318; }
.agent-art { --skin-a: #49f5b1; --skin-b: #8d4dff; --skin-c: #11181d; }
.music-art { --skin-a: #f5d25a; --skin-b: #ff21a8; --skin-c: #151a20; }

.skin-apply-dock {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #101418;
}

.skin-preview {
  min-height: 92px;
  display: grid;
  align-content: end;
  gap: 5px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(184, 111, 255, 0.35), transparent 30%),
    linear-gradient(135deg, rgba(88, 255, 163, 0.16), rgba(184, 111, 255, 0.18)),
    #10161a;
}

.skin-preview b {
  color: #fff;
  font-size: 24px;
}

.skin-preview span {
  color: var(--green);
  font-weight: 900;
}

.skin-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.skin-controls label {
  display: grid;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.skin-controls select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: #20282e;
  padding: 0 10px;
}

.apply-skin-button {
  width: 100%;
  min-height: 42px;
  margin: 12px 0 8px;
  border: 0;
  border-radius: 8px;
  color: #171203;
  background: var(--gold);
  font-weight: 950;
}

.save-loadout-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), #ff21a8);
}

.selected-loadout {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  padding-top: 2px;
}

.loadout-empty,
.loadout-chip {
  min-height: 38px;
  border-radius: 8px;
}

.loadout-empty {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.loadout-chip {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 10px;
  color: #fff;
  background: #151b20;
  cursor: pointer;
}

.loadout-chip strong {
  color: var(--gold);
}

.loadout-chip span {
  color: #e6edf3;
}

.loadout-chip em {
  color: #ff5f7d;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
}

#skin-status.is-ok {
  color: var(--green);
}

#skin-status.is-error {
  color: #ff5f7d;
}

.settings-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.settings-tabs button {
  min-height: 36px;
  border: 0;
  color: #9db0c1;
  background: transparent;
  font-weight: 850;
}

.settings-tabs button.is-active {
  color: #fff;
  background: #20272d;
}

.settings-list {
  display: grid;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #fff;
}

.settings-row span {
  font-size: 15px;
  font-weight: 850;
}

.settings-row strong,
.settings-row em,
.settings-row select,
.setting-toggle {
  max-width: 170px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #dbe6ef;
  background: #222a30;
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.settings-row select,
.setting-toggle {
  border: 0;
  outline: 0;
  cursor: pointer;
}

.settings-row select {
  min-width: 120px;
  appearance: none;
}

.setting-toggle {
  min-width: 48px;
}

.setting-toggle.is-on {
  color: #161207;
  background: #e9cc6c;
}

.settings-row strong::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 10px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #dbe6ef;
}

.settings-row em {
  min-width: 42px;
  color: #161207;
  background: #e9cc6c;
}

.settings-row em.is-off {
  color: #b7c3cc;
  background: #283138;
}

.save-preset-button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #252d34;
  font-weight: 950;
}

.copy-button.is-copied {
  border-color: rgba(88, 255, 163, 0.8);
  background: var(--green);
}

.info-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.info-panel {
  min-height: 180px;
  padding: 18px;
}

#skins {
  position: relative;
  border: 1px solid rgba(248, 214, 92, 0.2);
  background:
    linear-gradient(180deg, rgba(142, 61, 255, 0.14), rgba(17, 23, 28, 1)),
    #11171c;
}

#skins::after {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #171203;
  background: var(--gold);
  content: "20₾";
  font-size: 12px;
  font-weight: 950;
}

.info-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.05;
  letter-spacing: 0;
}

.price-panel h2 {
  font-size: clamp(44px, 4vw, 68px);
}

.info-panel span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.trial-button {
  margin-top: 18px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #120d05;
  background: #f3c949;
  font-weight: 950;
  cursor: pointer;
}

.trial-button[hidden] {
  display: none;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.admin-overview span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  margin-top: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-overview b {
  color: #fff;
  font-size: 18px;
}

.admin-overview small {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-w: 236px;
  }

  .main-app {
    padding-inline: 22px;
  }

  .topbar {
    margin-inline: -22px;
    padding-inline: 22px;
  }

  .dashboard-hero,
  .create-dock {
    grid-template-columns: 1fr;
  }

  .live-board-head,
  .server-browser-filters,
  .live-server-row {
    align-items: stretch;
    flex-direction: column;
  }

  .server-browser-filters {
    grid-template-columns: 1fr 1fr;
  }

  .live-server-map,
  .live-server-row code {
    width: 100%;
    min-width: 0;
  }

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

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

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

  .lobby-room-grid {
    grid-template-columns: 1fr;
  }

  .xplay-lobby.has-settings {
    grid-template-columns: 1fr;
  }

  .match-settings-panel {
    grid-column: 1;
    grid-row: auto;
    border-left: 0;
  }

  .skin-layout {
    grid-template-columns: 1fr;
  }

  .skin-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skin-apply-dock {
    grid-template-columns: 1fr;
  }

  .lobby-center {
    order: -1;
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: auto;
    padding: 14px;
  }

  .side-logo,
  .player-now {
    display: none;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
  }

  .side-nav a {
    min-width: 168px;
  }

  .side-footer {
    margin-top: 12px;
  }

  .main-app {
    grid-column: 1;
    padding: 12px 14px 34px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    margin: 0 0 12px;
    padding: 0;
    background: transparent;
  }

  .top-actions {
    overflow-x: auto;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 190px;
  }

  .stat-row,
  .info-panels {
    grid-template-columns: 1fr;
  }

  .create-controls {
    flex-direction: column;
  }

  .create-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .create-summary span {
    text-align: left;
  }

  .server-browser-filters {
    grid-template-columns: 1fr;
  }

  .connect-output,
  .lobby-output,
  .site-lobby {
    grid-template-columns: 1fr;
  }

  .lobby-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lobby-members {
    grid-template-columns: 1fr;
  }

  .lobby-room-top,
  .lobby-room-actions,
  .lobby-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .xplay-lobby {
    padding: 16px;
  }

  .lobby-room-grid {
    gap: 20px;
  }

  .skinchanger-page {
    padding: 16px;
  }

  .skin-profile-head,
  .skin-plus-banner,
  .skin-toolbar {
    grid-template-columns: 1fr;
  }

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

  .skin-tabs a {
    font-size: 16px;
  }

  .skin-card-grid,
  .skin-controls {
    grid-template-columns: 1fr;
  }
}
