/* ============================================================
   Український Легіон — home page
   Tactical dark theme, electric-blue accent, gold highlight.
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-2: #0a0f18;
  --panel: #0e141f;
  --panel-2: #111a27;
  --line: #1b2636;
  --line-soft: #14202f;
  --text: #d6dde8;
  --muted: #6b7787;
  --muted-2: #8a96a6;
  --blue: #2d8cff;
  --blue-bright: #4ea3ff;
  --blue-deep: #0b3a73;
  --gold: #f0a82a;
  --online: #34d36b;
  --danger: #e0533d;
  --radius: 10px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.legion {
  margin: 0;
  /* Full-bleed blocks use 100vw, which includes the scrollbar width on always-visible scrollbars. */
  overflow-x: clip;
  font-family: "Exo 2", system-ui, sans-serif;
  background:
    radial-gradient(
      1200px 600px at 75% -5%,
      rgba(45, 140, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 30%,
      rgba(11, 58, 115, 0.18),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Pin the footer to the viewport bottom on short pages. */
body.legion:has(> .lg-footer) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.legion:has(> .lg-footer) > main.lg-wrap {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}
body.legion:has(> .lg-footer) > .lg-footer {
  flex-shrink: 0;
}

.legion a {
  color: inherit;
  text-decoration: none;
}
.lg-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.lg-muted {
  color: var(--muted);
}
.lg-accent {
  color: var(--blue-bright);
}

/* ---------- Buttons ---------- */
.lg-btn {
  --b: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.18s ease;
  white-space: nowrap;
}
.lg-btn--primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(45, 140, 255, 0.7);
}
.lg-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(45, 140, 255, 0.9);
}
.lg-btn--dark {
  background: #11161f;
  color: var(--text);
  border-color: #20293a;
}
.lg-btn--dark:hover {
  border-color: var(--blue);
}
.lg-btn--outline {
  background: rgba(45, 140, 255, 0.06);
  color: var(--blue-bright);
  border-color: rgba(45, 140, 255, 0.45);
}
.lg-btn--outline:hover {
  background: rgba(45, 140, 255, 0.14);
}
.lg-btn--ghost {
  background: transparent;
  color: var(--muted-2);
  border-color: transparent;
}
.lg-btn--ghost:hover {
  color: #fff;
}
.lg-btn--lg {
  padding: 16px 34px;
  font-size: 17px;
}
.lg-arr {
  transition: transform 0.18s ease;
}
.lg-btn:hover .lg-arr {
  transform: translateX(4px);
}
.lg-dc { vertical-align: -3px;
  color: var(--blue-bright);
}

/* ---------- Brand ---------- */
.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.lg-brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 7px;
  background: linear-gradient(
    180deg,
    rgba(45, 140, 255, 0.18),
    rgba(45, 140, 255, 0.02)
  );
  box-shadow: inset 0 0 14px rgba(45, 140, 255, 0.25);
}
.lg-brand__logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}
footer .lg-brand__logo{
  height: 90px;
}
.lg-brand__text {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: #c7d2e0;
}

/* ---------- Header ---------- */
.lg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.lg-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}
.lg-header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lg-nav {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.lg-nav a {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.lg-nav a:hover {
  color: var(--text);
}
.lg-nav a.is-active {
  color: var(--blue-bright);
}
.lg-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--blue);
}

/* nav dropdown */
.lg-dropdown {
  position: relative;
}
.lg-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: inherit;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  transition: color 0.15s ease;
}
.lg-dropdown__trigger:hover,
.lg-dropdown__trigger.is-active {
  color: var(--blue-bright);
}
.lg-dropdown__caret {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}
.lg-dropdown.is-open .lg-dropdown__caret {
  transform: rotate(180deg);
}
.lg-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 180px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: 0.16s ease;
  z-index: 60;
}
.lg-dropdown__menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px; /* hover bridge */
}
.lg-dropdown:hover .lg-dropdown__menu,
.lg-dropdown.is-open .lg-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.lg-dropdown__menu a {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14.5px;
  color: var(--muted-2);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  transition: 0.14s ease;
}
.lg-dropdown__menu a:hover {
  background: var(--panel-2);
  color: var(--text);
}
.lg-dropdown__menu a.is-active {
  color: var(--blue-bright);
}

/* ---------- Hero ---------- */
.lg-hero {
  display: block;
  position: relative;
  /* full-bleed: break out of .lg-wrap padding to span the whole viewport */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 40px;
  padding: 84px 0 92px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 18, 0.92) 0%,
      rgba(7, 11, 18, 0.6) 50%,
      rgba(7, 11, 18, 0.3) 100%
    ),
    url("../img/site/hero-banner.webp") center/cover no-repeat;
}
.lg-hero__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.lg-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.lg-hero__copy {
  position: relative;
}
.lg-hero__copy > * {
  max-width: 820px;
}
.lg-hero__title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0 0 22px;
  text-transform: none;
}
.lg-hero__title .lg-accent {
  display: inline-block;
}
.lg-hero__sub {
  color: var(--muted-2);
  font-size: 16px;
  margin: 0 0 30px;
}
.lg-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.lg-hero__actions .lg-btn svg {
  margin-right: 4px;
}
.lg-hero__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 170px));
  justify-content: center;
  gap: 14px;
  margin: 56px 0 0;
  padding: 0;
}
.lg-hero__facts li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(78, 163, 255, 0.2);
  background: linear-gradient(180deg, rgba(45, 140, 255, 0.14), rgba(8, 13, 22, 0.55));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.lg-hero__facts li::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  box-shadow: 0 0 12px var(--blue);
}
.lg-hero__facts b {
  font-family: "Oswald", sans-serif;
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 18px rgba(78, 163, 255, 0.55);
}
.lg-hero__facts span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
@media (max-width: 760px) {
  .lg-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
  }
  .lg-hero__facts b {
    font-size: 30px;
  }
}
@media (max-width: 520px) {
  .lg-hero {
    padding: 56px 0 60px;
  }
  .lg-hero__actions .lg-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.lg-hero__art {
  position: relative;
  min-height: 440px;
}
.lg-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 60% 45%,
    rgba(45, 140, 255, 0.28),
    transparent 70%
  );
  filter: blur(10px);
}
.lg-hero__soldier {
  position: absolute;
  inset: 0;
  background: url("../img/hero/soldier.png") center/contain no-repeat;
  /* graceful fallback shape if the image is missing */
  background-color: transparent;
}
.lg-hero__art::after {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background:
    linear-gradient(
      115deg,
      transparent 60%,
      rgba(45, 140, 255, 0.1) 61% 62%,
      transparent 63%
    ),
    radial-gradient(
      closest-side at 62% 48%,
      rgba(20, 40, 70, 0.55),
      transparent
    );
  border-radius: 18px;
  z-index: -1;
}
.lg-hero__tag {
  position: absolute;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: #9fc6ff;
  padding-left: 26px;
}
.lg-hero__tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
}
.lg-hero__tag--1 {
  left: 4%;
  top: 34%;
}
.lg-hero__tag--2 {
  right: 6%;
  top: 44%;
}

/* ---------- Section heads ---------- */
.lg-section {
  padding: 18px 0 30px;
}
.lg-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.lg-h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lg-tick {
  width: 10px;
  height: 22px;
  background: var(--blue);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(45, 140, 255, 0.6);
}
.lg-link {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-bright);
  letter-spacing: 0.02em;
}
.lg-link:hover {
  color: #fff;
}
.lg-link--sm {
  font-size: 18px;
}
.lg-tg-link {
  color: var(--blue-bright) !important;
}
.lg-tg-link:hover {
  color: #fff;
}

/* ---------- Online KPIs ---------- */
.lg-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.lg-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: var(--radius);
}
.lg-kpi--live {
  border-top-color: var(--online);
}
.lg-kpi--gold {
  border-top-color: var(--gold);
}
.lg-kpi__cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lg-kpi__num {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: #e6ecf4;
  font-variant-numeric: tabular-nums;
}
.lg-kpi__num small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted-2);
}
.lg-kpi--gold .lg-kpi__num {
  color: var(--gold);
}
.lg-kpi__sub {
  font-family: "Exo 2", sans-serif;
  font-size: 13px;
  color: var(--muted-2);
}
@media (max-width: 640px) {
  .lg-kpis {
    grid-template-columns: 1fr;
  }
}

/* ---------- Servers ---------- */
.lg-servers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-srv {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(180px, 1.2fr) 1fr 1fr 1fr 88px 34px;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: 0.18s ease;
}
.lg-srv:hover {
  border-color: #25405f;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.8);
}
.lg-srv--gold {
  border-left-color: var(--gold);
}
.lg-srv__no {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--blue);
  opacity: 0.85;
}
.lg-srv--gold .lg-srv__no {
  color: var(--gold);
}
.lg-srv__name h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 3px;
  letter-spacing: 0.02em;
}
.lg-srv--gold .lg-srv__name h3 {
  color: var(--gold);
}
.lg-srv__ip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  margin-left: -8px;
  font-size: 13px;
  color: var(--muted);
  font-family: "Exo 2", sans-serif;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.lg-srv__ip:hover {
  color: #cfe0f4;
  border-color: #243349;
  background: #131c28;
}
.lg-srv__ip-ico {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}
.lg-srv__ip.is-copied {
  color: var(--online);
  border-color: var(--online);
}
.lg-srv__ip {
  position: relative;
  white-space: nowrap;
}
.lg-srv__ip-text {
  position: relative;
}
/* Overlays the IP text in place so the button keeps its width. */
.lg-srv__ip-text::after {
  content: "✓ Скопійовано";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--online);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.lg-srv__ip.is-copied .lg-srv__ip-text {
  color: transparent;
}
.lg-srv__ip.is-copied .lg-srv__ip-text::after {
  opacity: 1;
}
.lg-srv__ip.is-copied .lg-srv__ip-ico {
  opacity: 1;
}
.lg-srv__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lg-srv__cap {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lg-srv__val {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #e6ecf4;
}
.lg-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--online);
}
.lg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 8px var(--online);
}
.lg-dot--off {
  background: #a83333;
  box-shadow: none;
}
.lg-srv__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lg-gauge {
  --deg: 0deg;
  --ring: var(--blue);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  background: conic-gradient(var(--ring) var(--deg), #17222f 0);
  position: relative;
}
.lg-gauge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--panel);
}
.lg-gauge span {
  position: relative;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.lg-btn--cell {
  background: #131c28;
  border: 1px solid #243349;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  justify-content: center;
}
.lg-btn--cell:hover {
  border-color: var(--blue);
  color: #fff;
}
.lg-srv--gold .lg-btn--cell:hover {
  border-color: var(--gold);
}

/* ---------- Trio panels ---------- */
.lg-trio {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 16px;
  padding: 20px 0 34px;
}

/* Servers full width, then top donors + last donors */
.lg-homecols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  padding: 8px 0 34px;
}
.lg-homecols__main {
  min-width: 0;
  grid-column: 1 / -1;
}
.lg-homecols__aside {
  min-width: 0;
}
.lg-homecols__aside .lg-section__head {
  margin-bottom: 14px;
}
.lg-donors--panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  gap: 4px;
}
.lg-donors--panel li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.lg-donors--panel li:last-child {
  border-bottom: none;
}
.lg-hint {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "Exo 2", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  cursor: help;
  outline: none;
  transition: color 0.15s, border-color 0.15s;
}
.lg-hint:hover,
.lg-hint:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}
.lg-hint::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  width: max-content;
  max-width: 200px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 5;
}
.lg-hint:hover::after,
.lg-hint:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 700px) {
  .lg-homecols {
    grid-template-columns: 1fr;
  }
}
.lg-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.lg-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lg-panel__head h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.lg-panel__foot {
  margin-top: auto;
  padding-top: 14px;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-bright);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.lg-panel__foot:hover {
  color: #fff;
}

.lg-donors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}
.lg-donors li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.lg-donors__rank {
  color: var(--muted);
  font-family: "Exo 2", sans-serif;
}
.lg-donors__name {
  font-weight: 600;
}
.lg-crown {
  color: var(--gold);
}
.lg-donors__sum {
  color: var(--muted-2);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
}
.lg-donors__empty {
  display: block !important;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
}

.lg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}
.lg-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}
.lg-stat__ico {
  display: grid;
  place-items: center;
  height: 26px;
  color: var(--blue-bright);
}
.lg-stat__ico svg {
  width: 26px;
  height: 26px;
  display: block;
}
.lg-stat__num {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.lg-stat__num--wide {
  font-size: 27px;
}
.lg-stat__cap {
  font-size: 12px;
  color: var(--muted);
}

.lg-panel--online {
  position: relative;
  overflow: hidden;
}
.lg-online-num {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 56px;
  color: var(--blue-bright);
  line-height: 1;
}
.lg-online-cap {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.lg-spark {
  width: 100%;
  height: 64px;
  display: block;
  margin-top: auto;
}
.lg-spark--sm {
  height: 42px;
}

/* ---------- News ---------- */
.lg-news-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.lg-news-empty__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--blue);
  background: rgba(45, 140, 255, 0.1);
}
.lg-news-empty__ico svg {
  width: 24px;
  height: 24px;
}
.lg-news-empty strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #e6ecf4;
  margin-bottom: 4px;
}
.lg-news-empty div span {
  font-size: 14px;
  color: var(--muted-2);
}
.lg-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lg-news--n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lg-news__feat {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--panel);
}
/* News covers are 16:9 banners with text, so keep their ratio instead of cropping to the card. */
.lg-news__feat-img {
  flex: none;
  aspect-ratio: 16 / 9;
  background:
    var(--cover) center/cover no-repeat,
    linear-gradient(135deg, #14202f, #0c1420);
}
.lg-news__feat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
}
.lg-news__feat-body .lg-news__date {
  margin-top: auto;
}
.lg-news__feat-body h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  margin: 10px 0 8px;
}
.lg-news__feat-body p {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 12px;
}
.lg-news__feat:hover h3 {
  color: var(--blue-bright);
}
.lg-tagchip {
  display: inline-block;
  width: fit-content;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #bcd9ff;
  background: rgba(45, 140, 255, 0.16);
  border: 1px solid rgba(45, 140, 255, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
}
/* Same caps trim as .lg-badge; letter-spacing also trails after the last letter, so take it off the right padding. */
@supports (text-box: trim-both cap alphabetic) {
  .lg-tagchip {
    line-height: 1;
    padding: 7px calc(10px - 0.14em) 7px 10px;
    text-box: trim-both cap alphabetic;
  }
}
.lg-news__date {
  font-size: 12px;
  color: var(--muted);
  font-family: "Exo 2", sans-serif;
}

/* Only one post: lay it out horizontally instead of leaving an empty column. */
.lg-news--solo {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .lg-news--solo .lg-news__feat {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .lg-news--solo .lg-news__feat-body {
    justify-content: center;
    padding: 30px 34px;
  }
  .lg-news--solo .lg-news__feat-body .lg-news__date {
    margin-top: 0;
  }
}

/* ---------- Last donors ---------- */
/* ---------- CTA banner ---------- */
.lg-cta {
  position: relative;
  overflow: hidden;
  margin: 22px 0 48px;
  border: 1px solid rgba(45, 140, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(
      120% 140% at 50% 0%,
      rgba(45, 140, 255, 0.16),
      transparent 60%
    ),
    linear-gradient(180deg, #0c1726, #0a1018);
  background-image: url("../img/site/start-banner.webp");
  background-size: cover;
  background-position: 50% 40%;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lg-cta h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  margin: 0;
  line-height: 1.08;
}
.lg-cta__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 38px,
    rgba(45, 140, 255, 0.06) 38px 39px
  );
  mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
}

/* ---------- Footer ---------- */
.lg-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  margin-top: 10px;
}
.lg-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding: 48px 24px 36px;
}
.lg-footer__brand .lg-muted {
  margin: 16px 0;
  font-size: 13px;
}
.lg-social {
  display: flex;
  gap: 10px;
}
.lg-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #11161f;
  border: 1px solid #20293a;
  color: var(--muted-2);
  transition: 0.15s;
}
.lg-social a:hover {
  color: #fff;
  border-color: var(--blue);
}
.lg-footer__col h4,
.lg-footer__online h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 14px;
  color: #fff;
}
.lg-footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lg-footer__col a {
  color: var(--muted-2);
  font-size: 14px;
}
.lg-footer__col a:hover {
  color: var(--blue-bright);
}
.lg-footer__num {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--blue-bright);
  line-height: 1;
}
.lg-footer__bar {
  border-top: 1px solid var(--line-soft);
}
.lg-footer__bar-inner {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
.lg-footer__legal a {
  color: var(--muted);
  margin-left: 18px;
}
.lg-footer__legal a:hover {
  color: var(--text);
}

/* ---------- Page-load reveal ---------- */
.lg-hero,
.lg-section,
.lg-trio,
.lg-cta {
  animation: lg-rise 0.6s ease both;
}
.lg-section {
  animation-delay: 0.05s;
}
.lg-trio {
  animation-delay: 0.1s;
}
@keyframes lg-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg-hero,
  .lg-section,
  .lg-trio,
  .lg-cta {
    animation: none;
  }
}

/* ---------- Flash ---------- */
.lg-flash {
  margin: 22px 0;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.lg-flash--success {
  border-color: rgba(52, 211, 107, 0.5);
  background: rgba(52, 211, 107, 0.08);
}
.lg-flash--error {
  border-color: rgba(224, 83, 61, 0.5);
  background: rgba(224, 83, 61, 0.08);
}

/* ---------- Auth pages ---------- */
.lg-auth {
  display: flex;
  justify-content: center;
  padding: 60px 0 80px;
}
.lg-auth__card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 34px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.lg-auth__title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 6px;
}
.lg-auth__sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 26px;
}
.lg-auth__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lg-auth__form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--muted-2);
}
.lg-auth__form input {
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease;
}
.lg-auth__form input:focus {
  outline: none;
  border-color: var(--blue);
}
.lg-auth__submit {
  justify-content: center;
  margin-top: 6px;
}
.lg-auth__alt {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 22px 0 0;
}
.lg-auth__alt a {
  color: var(--blue-bright);
}

/* ---------- Auth: wide card + rows ---------- */
.lg-auth__form .lg-agree {
  position: relative;
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-2);
  user-select: none;
}
.lg-auth__form .lg-agree input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
}
.lg-agree__box {
  flex: 0 0 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid #2a3a52;
  background: #0a0f17;
  color: #fff;
  transition: 0.15s ease;
}
.lg-agree__box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.15s ease;
}
.lg-agree:hover .lg-agree__box {
  border-color: var(--blue);
}
.lg-agree input:checked + .lg-agree__box {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(45, 140, 255, 0.45);
}
.lg-agree input:checked + .lg-agree__box svg {
  opacity: 1;
  transform: none;
}
.lg-agree input:focus-visible + .lg-agree__box {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}
.lg-auth__card--wide {
  max-width: 560px;
}
.lg-auth__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lg-auth__hint {
  font-size: 12px;
  color: var(--muted);
}
.lg-auth__form input[type="file"] {
  background: #0a0f17;
  border: 1px dashed #243349;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted-2);
  font-size: 13px;
}

/* ---------- Cabinet ---------- */
.lg-cab {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  padding: 36px 0 60px;
  align-items: start;
}
.lg-cab__profile {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: max-content;
}
.lg-cab__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #0a0f17 center/cover no-repeat;
  border: 2px solid var(--blue);
  box-shadow: 0 0 22px rgba(45, 140, 255, 0.35);
}
.lg-cab__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 4px 0 0;
}
.lg-badge {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  background: #17222f;
  color: var(--muted-2);
  border: 1px solid var(--line);
}
/* All-caps text sits high in the line box; trim it to the caps so it centers. */
@supports (text-box: trim-both cap alphabetic) {
  .lg-badge {
    display: inline-block;
    line-height: 1;
    padding: 7px 12px;
    text-box: trim-both cap alphabetic;
  }
}
.lg-badge--owner {
  background: rgba(240, 168, 42, 0.16);
  color: var(--gold);
  border-color: rgba(240, 168, 42, 0.4);
}
.lg-badge--admin {
  background: rgba(45, 140, 255, 0.16);
  color: var(--blue-bright);
  border-color: rgba(45, 140, 255, 0.4);
}
.lg-badge--moderator {
  background: rgba(52, 211, 107, 0.14);
  color: var(--online);
  border-color: rgba(52, 211, 107, 0.35);
}
.lg-cab__balance {
  width: 100%;
  margin: 8px 0;
  padding: 14px;
  text-align: center;
  background: #0b121d;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.lg-cab__balance-cap {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.lg-cab__balance-val {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--gold);
}
/* top-up */
.lg-cab__topup-toggle {
  width: 100%;
  justify-content: center;
}
.lg-cab__topup-toggle.is-open {
  background: #131c28;
  color: var(--text);
  border-color: #243349;
  box-shadow: none;
}
.lg-cab__topup[hidden] {
  display: none;
}
.lg-cab__topup {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b121d;
}
.lg-cab__topup-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lg-cab__preset {
  background: #131c28;
  border: 1px solid #243349;
  border-radius: 7px;
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 0;
  cursor: pointer;
  transition: 0.15s ease;
}
.lg-cab__preset:hover {
  border-color: var(--blue);
  color: #fff;
}
.lg-cab__topup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-2);
}
.lg-cab__topup-field input {
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.lg-cab__topup-field input:focus {
  outline: none;
  border-color: var(--blue);
}
.lg-cab__topup .lg-btn {
  justify-content: center;
}

/* payment method tabs (card / crypto) */
.lg-pay__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 9px;
}
.lg-pay__tab {
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--muted-2);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
  transition: 0.15s ease;
}
.lg-pay__tab.is-active {
  background: var(--blue);
  color: #fff;
}
.lg-pay__pane[hidden] {
  display: none;
}
.lg-pay__soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 14px;
  color: var(--muted-2);
}
.lg-pay__soon svg {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.lg-pay__soon b {
  color: var(--text);
  font-size: 15px;
}
.lg-pay__soon span {
  font-size: 13px;
  line-height: 1.5;
}
.lg-pay__lead {
  font-size: 13px;
  color: var(--muted-2);
  margin: 0 0 12px;
  line-height: 1.5;
}
.lg-pay__addr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.lg-pay__addr-cap {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lg-pay__addr-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s ease;
  text-align: left;
}
.lg-pay__addr-copy:hover {
  border-color: var(--blue);
}
.lg-pay__addr-text {
  word-break: break-all;
}
.lg-pay__addr-copy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.lg-pay__addr-copy.is-copied {
  border-color: var(--online);
  color: var(--online);
}
.lg-pay__addr-copy.is-copied .lg-pay__addr-text::after {
  content: " — скопійовано";
  font-weight: 600;
}
.lg-pay__steps {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}
.lg-pay__paid {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lg-pay__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.lg-pay__conv {
  margin: -6px 0 4px;
  font-size: 12px;
  color: var(--blue-bright);
}

.lg-pay__test {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(240, 168, 42, 0.5);
  background: rgba(240, 168, 42, 0.08);
  color: var(--gold);
  font-size: 12.5px;
  line-height: 1.5;
}
.lg-pay__quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lg-pay__quick button {
  padding: 9px 4px;
  border-radius: 8px;
  border: 1px solid #1f2a3a;
  background: #0a0f17;
  color: var(--text);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.15s ease;
}
.lg-pay__quick button:hover,
.lg-pay__quick button.is-active {
  border-color: var(--blue);
  color: var(--blue-bright);
}
.lg-pay__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 26px 10px 10px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}
.lg-pay__state[hidden],
.lg-cab__topup [hidden] {
  display: none !important;
}
.lg-pay__state > b {
  color: var(--text);
  font-size: 17px;
}
.lg-pay__state > svg {
  width: 54px;
  height: 54px;
}
.lg-pay__state--ok > svg {
  color: var(--online);
}
.lg-pay__state--fail > svg {
  color: #ff5a5f;
}
.lg-pay__state .lg-btn {
  margin-top: 6px;
  min-width: 160px;
}
.lg-pay__spin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(45, 140, 255, 0.2);
  border-top-color: var(--blue);
  animation: lg-pay-spin 0.9s linear infinite;
}
@keyframes lg-pay-spin {
  to {
    transform: rotate(360deg);
  }
}
.lg-pay__lp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  opacity: 0.85;
}

/* current donation */
.lg-cab__donate {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b121d;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-cab__donate-cap {
  font-size: 12px;
  color: var(--muted);
}
.lg-cab__donate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-cab__donate-auth {
  font-size: 12px;
  color: var(--muted);
}
.lg-cab__donate-auth b {
  color: var(--muted-2);
}
.lg-cab__donate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lg-cab__donate-until {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted-2);
}

/* friends */
.lg-cab__friends {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b121d;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lg-cab__friends-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lg-cab__friends-cap {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lg-cab__friends-count {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: rgba(45, 140, 255, 0.16);
  color: var(--blue-bright);
  border-radius: 20px;
  padding: 1px 9px;
}
.lg-cab__reqs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.lg-cab__reqs-cap {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.lg-cab__friends-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-cab__friends-empty {
  font-size: 13px;
  margin: 2px 0;
}

.lg-friend {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lg-friend__av {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0a0f17 center/cover no-repeat;
  border: 1px solid var(--line);
}
.lg-friend__dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid #0b121d;
}
.lg-friend__dot.is-online {
  background: var(--online);
  box-shadow: 0 0 6px var(--online);
}
.lg-friend__name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-friend__acts {
  display: flex;
  gap: 4px;
}
.lg-friend form {
  display: inline-flex;
}
.lg-friend__btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: grid;
  place-items: center;
  background: #131c28;
  border: 1px solid #243349;
  color: var(--muted-2);
  transition: 0.15s ease;
}
.lg-friend__btn--ok:hover {
  background: rgba(52, 211, 107, 0.18);
  border-color: var(--online);
  color: var(--online);
}
.lg-friend__btn--no:hover {
  background: rgba(224, 83, 61, 0.18);
  border-color: var(--danger);
  color: #ff7a66;
}

.lg-cab__friend-add {
  display: flex;
  gap: 6px;
}
.lg-cab__friend-add input {
  flex: 1;
  min-width: 0;
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
}
.lg-cab__friend-add input:focus {
  outline: none;
  border-color: var(--blue);
}
.lg-cab__friend-add .lg-btn {
  flex: 0 0 auto;
  padding: 0 14px;
  font-size: 18px;
}

/* purchase history */
.lg-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.lg-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.lg-history li:last-child {
  border-bottom: none;
}
.lg-history__name {
  font-weight: 600;
}
.lg-history__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lg-history__disc {
  color: var(--gold);
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12px;
}
.lg-history__price {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  color: var(--blue-bright);
}
.lg-history__date {
  color: var(--muted);
  font-size: 12.5px;
}

.lg-cab__meta {
  list-style: none;
  margin: 6px 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-cab__meta li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 6px;
}
.lg-cab__meta span {
  color: var(--muted);
}
.lg-cab__meta b {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}
.lg-cab__admin,
.lg-cab__logout {
  width: 100%;
  justify-content: center;
}
.lg-cab__logout {
  background: rgba(224, 83, 61, 0.12);
  color: #ff7a66;
  border: 1px solid rgba(224, 83, 61, 0.45);
}
.lg-cab__logout:hover {
  background: rgba(224, 83, 61, 0.22);
  color: #fff;
  border-color: var(--danger);
}

/* tabs */
.lg-cab__tabs {
  padding: 0;
  overflow: hidden;
}
.lg-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.lg-tabs__btn {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  padding: 16px 10px;
  position: relative;
  transition: color 0.15s ease;
}
.lg-tabs__btn:hover {
  color: var(--text);
}
.lg-tabs__btn.is-active {
  color: var(--blue-bright);
}
.lg-tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--blue);
}
.lg-tabs__pane {
  display: none;
  padding: 24px 26px;
}
.lg-tabs__pane.is-active {
  display: block;
  animation: lg-fade 0.25s ease both;
}
@keyframes lg-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lg-tabs__pane .lg-auth__form {
  gap: 16px;
  align-items: flex-start;
}
.lg-tabs__pane .lg-auth__form .lg-btn {
  align-self: flex-start;
  width: auto;
}
.lg-tabs__pane .lg-auth__form > .lg-auth__row,
.lg-tabs__pane .lg-auth__form > label {
  width: 100%;
}

/* info tab: cards */
.lg-cab__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.lg-cab__card {
  background: #0b121d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-cab__card .lg-cab__balance,
.lg-cab__card .lg-cab__donate {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.lg-cab__history {
  margin-top: 14px;
}

/* daily rewards */
.lg-rewards {
  gap: 14px;
  margin-bottom: 14px;
}
.lg-rewards__head {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lg-rewards__streak {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lg-rewards__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lg-reward {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0a0f17;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  transition: 0.15s ease;
}
.lg-reward.is-reached {
  border-color: rgba(240, 168, 42, 0.4);
  background: rgba(240, 168, 42, 0.05);
}
.lg-reward__days {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f7c873, #e8932e);
  color: #3a2400;
  box-shadow: 0 6px 16px -6px rgba(240, 168, 42, 0.6);
}
.lg-reward__days b {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
}
.lg-reward__days small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.lg-reward__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lg-reward__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #e6ecf4;
}
.lg-reward__cap {
  font-size: 13px;
  color: var(--muted);
}
.lg-reward__check {
  color: var(--gold);
  font-size: 20px;
}

/* settings tab: blocks */
.lg-cab__setblock {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.lg-cab__setblock:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.lg-btn--danger {
  background: linear-gradient(180deg, #e0533d, #b8331f);
  border: 1px solid #e0533d;
  color: #fff;
}
.lg-btn--danger:hover {
  background: linear-gradient(180deg, #ef6650, #c93f2a);
}
.lg-btn--steam {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  background: linear-gradient(180deg, #1b9be0, #1066a8);
  border: 1px solid #1b9be0;
  color: #fff;
}
.lg-btn--steam:hover {
  background: linear-gradient(180deg, #29a9ef, #1373bd);
}
.lg-btn--steam svg {
  width: 20px;
  height: 20px;
}
.lg-link-code {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.lg-link-code__form { display: flex; gap: 8px; max-width: 460px; }
.lg-link-code__form input { flex: 1; min-width: 0; padding: 11px 14px; background: #0a0f17; border: 1px solid var(--line); border-radius: 8px; color: var(--gold); font-family: "Exo 2", monospace; font-size: 18px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.lg-link-code__form input::placeholder { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.lg-link-code__form input:focus { outline: none; border-color: var(--blue); }
.lg-link-code__hint { margin: 10px 0 0; font-size: 13px; }
@media (max-width: 480px) { .lg-link-code__form { flex-direction: column; } }
.lg-link-code__steps {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.7;
}
.lg-link-code__steps kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}
.lg-cab__seth3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 16px;
}

@media (max-width: 860px) {
  .lg-cab {
    grid-template-columns: 1fr;
  }
  .lg-cab__info-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Shop page ---------- */
.lg-crumb {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
}
.lg-crumb a {
  color: var(--muted-2);
}
.lg-crumb a:hover {
  color: var(--blue-bright);
}
.lg-crumb span {
  color: var(--text);
}

.lg-shop-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 14px 0 22px;
  padding: 46px 44px;
  min-height: 230px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 18, 0.94) 0%,
      rgba(7, 11, 18, 0.8) 35%,
      rgba(7, 11, 18, 0.4) 65%,
      rgba(7, 11, 18, 0.15) 100%
    ),
    url("../img/site/shop-banner.webp") center/cover no-repeat,
    linear-gradient(120deg, #0c1726, #0a1018);
  border: 1px solid var(--line);
}
.lg-shop-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 480px;
}
.lg-shop-hero__copy h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.lg-shop-hero__sub {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--blue-bright);
  margin: 2px 0 14px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.lg-shop-hero__sub + p {
  font-size: 14px;
  max-width: 360px;
  color: #cdd6e2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.lg-shop-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    55% 80% at 82% 50%,
    rgba(45, 140, 255, 0.16),
    transparent 60%
  );
}

/* toolbar */
.lg-shop-search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
}
.lg-shop-search svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}
.lg-shop-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 0;
}
.lg-shop-search input:focus {
  outline: none;
}
.lg-shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.lg-shop-sort select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* layout */
.lg-shop {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 22px;
  align-items: start;
}
.lg-shop-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}
.lg-shop-side h4 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.lg-shop-cats,
.lg-shop-pay {
  padding: 18px;
}
.lg-shop-cats nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lg-shop-cats nav a,
.lg-shop-cats nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted-2);
  font-size: 14.5px;
  transition: 0.15s ease;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.lg-shop-cats nav a:hover,
.lg-shop-cats nav button:hover {
  background: var(--panel-2);
  color: var(--text);
}
.lg-shop-cats nav a.is-active,
.lg-shop-cats nav button.is-active {
  background: rgba(45, 140, 255, 0.12);
  color: var(--blue-bright);
}
.lg-shop-cats__ico {
  display: grid;
  place-items: center;
}
.lg-shop-cats__ico svg {
  width: 18px;
  height: 18px;
}
.lg-shop-pay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-shop-pay li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--muted-2);
}
.lg-shop-pay__ico {
  flex: 0 0 52px;
  width: 52px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #131c28;
  border: 1px solid #243349;
}
.lg-shop-pay__ico svg {
  width: 44px;
  height: 30px;
}
.lg-shop-pay__ico--card {
  background: linear-gradient(135deg, #1a2a6c, #142036);
  border-color: #2a3d6b;
}
.lg-shop-pay__ico--crypto {
  background: linear-gradient(135deg, #12302a, #1a1f2a);
  border-color: #24453d;
}
.lg-shop-pay__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lg-shop-pay__txt b {
  font-weight: 600;
  color: var(--text);
}
.lg-shop-pay__txt small {
  font-size: 12px;
  color: var(--muted);
}
/* content */
.lg-shop-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lg-shop-sec {
  margin-bottom: 14px;
  display: none;
}
.lg-shop-sec.is-active {
  display: block;
  animation: lg-fade 0.25s ease both;
}
.lg-shop-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}

/* privilege cards */
.lg-priv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lg-priv {
  --pa: var(--gold);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: 0.18s ease;
}
.lg-priv::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(
    120% 60% at 50% 0%,
    color-mix(in srgb, var(--pa) 14%, transparent),
    transparent 70%
  );
}
.lg-priv:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pa) 45%, var(--line));
}
.lg-priv--gold {
  --pa: var(--gold);
}
.lg-priv--violet {
  --pa: #a172ff;
}
.lg-priv--red {
  --pa: #e0533d;
}
.lg-priv--blue {
  --pa: #4ea3ff;
}
.lg-priv--green {
  --pa: #3ccf7a;
}
.lg-priv__icon {
  color: var(--pa);
  margin-bottom: 8px;
}
.lg-priv__icon svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(
    0 4px 12px color-mix(in srgb, var(--pa) 50%, transparent)
  );
}
.lg-priv__name {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: var(--pa);
  margin: 0;
}
.lg-priv__days {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.lg-priv__perks {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0 0;
  width: 100%;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}
.lg-priv__perks li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted-2);
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.lg-priv__perks li b {
  color: #fff;
  font-weight: 700;
}
.lg-priv__perks li.lg-priv__inherit {
  gap: 8px;
  margin: 0 0 6px;
  padding: 8px 12px;
  border: 1px dashed color-mix(in srgb, var(--pa) 45%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--pa) 8%, transparent);
  color: var(--pa);
  font-size: 13px;
  font-weight: 600;
}
.lg-priv__inherit svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.lg-priv__inherit b {
  color: inherit;
}
.lg-priv__perks li[hidden]{
  display: none;
}
.lg-priv__perks li:last-child {
  border-bottom: none;
}
.lg-priv__check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--pa);
  background: color-mix(in srgb, var(--pa) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--pa) 35%, transparent);
}
.lg-priv__check svg {
  width: 13px;
  height: 13px;
}
.lg-priv__more {
  align-self: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  margin: 4px 0 2px;
  padding: 4px 0;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--pa);
  transition: opacity 0.15s ease;
}
.lg-priv__more:hover {
  opacity: 0.75;
}
.lg-priv__more-count {
  color: var(--muted);
}
.lg-priv__foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lg-priv__price {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}

.lg-shop-cart {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px -6px rgba(45, 140, 255, 0.7);
  transition: 0.15s ease;
}
.lg-shop-cart svg {
  width: 20px;
  height: 20px;
}
.lg-shop-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(45, 140, 255, 0.9);
}

/* product cards */
.lg-prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lg-prod {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.18s ease;
}
.lg-prod:hover {
  transform: translateY(-3px);
  border-color: #25405f;
}
.lg-prod__img {
  height: 150px;
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  background:
    radial-gradient(
      closest-side at 50% 40%,
      rgba(45, 140, 255, 0.12),
      transparent
    ),
    #0c1420;
  border-bottom: 1px solid var(--line-soft);
}
.lg-prod__img svg {
  width: 64px;
  height: 64px;
  opacity: 0.85;
}
.lg-prod__body {
  padding: 14px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lg-prod__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}
.lg-prod__cat {
  font-size: 12.5px;
  color: var(--muted);
}
.lg-prod__foot {
  margin-top: auto;
  padding: 12px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lg-prod__price {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.lg-prod__foot .lg-shop-cart {
  width: 38px;
  height: 38px;
}
.lg-prod__foot .lg-shop-cart svg {
  width: 17px;
  height: 17px;
}

/* price with sale */
.lg-price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.78em;
  margin-right: 6px;
  font-weight: 500;
}
.lg-price-now {
  color: #fff;
}

/* buy modal */
.lg-buy {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}
.lg-buy[hidden] {
  display: none;
}
.lg-buy__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(3px);
}
.lg-buy__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.85);
}
.lg-buy__card h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 12px;
}
.lg-buy__item {
  font-size: 15px;
  margin: 0 0 16px;
}
.lg-buy__item b {
  color: var(--blue-bright);
}
.lg-buy__discount {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted-2);
  background: #0a0f17;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 16px;
  cursor: pointer;
}
.lg-buy__discount input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}
.lg-buy__discount b {
  color: var(--gold);
}
.lg-buy__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* buy: auth method */
.lg-buy__auth {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #0a0f17;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.lg-buy__auth[hidden] {
  display: none;
}
.lg-buy__auth-cap {
  font-size: 13px;
  color: var(--muted);
}
.lg-buy__gameid {
  font-family: "Exo 2", monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}
.lg-buy__auth .lg-muted {
  margin: 0;
  font-size: 14px;
}
.lg-buy__auth .lg-btn {
  align-self: flex-start;
}
#buy-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.lg-buy__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.lg-buy__field input {
  background: #11161f;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.lg-buy__field input:focus {
  outline: none;
  border-color: var(--blue);
}
.lg-buy__hint {
  font-size: 12px;
  color: var(--muted);
}
.lg-buy__auth code {
  color: var(--blue-bright);
}

/* features strip */
.lg-shop-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0 44px;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lg-feat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lg-feat__ico {
  flex: 0 0 auto;
  color: var(--blue-bright);
}
.lg-feat__ico svg {
  width: 30px;
  height: 30px;
}
.lg-feat div {
  display: flex;
  flex-direction: column;
}
.lg-feat b {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.lg-feat span {
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .lg-shop {
    grid-template-columns: 1fr;
  }
  .lg-shop-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .lg-shop-side > * {
    flex: 1;
    min-width: 200px;
  }
  .lg-priv-grid {
    grid-template-columns: 1fr;
  }
  .lg-prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg-shop-feats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .lg-prod-grid,
  .lg-shop-feats {
    grid-template-columns: 1fr;
  }
  .lg-shop-hero {
    padding: 30px 22px;
  }
}

/* ---------- Stats page ---------- */
.lg-stats-page {
  padding: 40px 0 60px;
}
.lg-statnote {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px 20px;
  border-radius: 12px;
  background:
    linear-gradient(
      100deg,
      rgba(240, 168, 42, 0.12),
      rgba(240, 168, 42, 0.03) 60%,
      transparent
    ),
    var(--panel);
  border: 1px solid rgba(240, 168, 42, 0.35);
}
.lg-statnote__ico {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(240, 168, 42, 0.14);
  border: 1px solid rgba(240, 168, 42, 0.4);
}
.lg-statnote__ico svg {
  width: 24px;
  height: 24px;
}
.lg-statnote__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lg-statnote__text b {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #ffd98a;
}
.lg-statnote__text span {
  font-size: 13.5px;
  color: var(--muted-2);
}
.lg-statbl {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.lg-statbl__head,
.lg-statbl__row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1.4fr) 1fr 0.7fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
}
.lg-statbl__head {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.lg-statbl__row {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.14s ease;
}
.lg-statbl__row:last-child {
  border-bottom: none;
}
.lg-statbl__row:hover {
  background: var(--panel-2);
}
.lg-statbl__rank {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--muted-2);
}
.lg-statbl__medal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1100;
}
.lg-statbl__medal--1 {
  background: linear-gradient(160deg, #ffd76a, #e8932e);
}
.lg-statbl__medal--2 {
  background: linear-gradient(160deg, #d8e0ea, #9aa6b6);
}
.lg-statbl__medal--3 {
  background: linear-gradient(160deg, #e0a06a, #b06a36);
  color: #fff;
}
.lg-statbl__player {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lg-statbl__av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
  background: #0a0f17 center/cover no-repeat;
  border: 1px solid var(--line);
}
.lg-statbl__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.lg-statbl__hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  color: var(--text);
}
.lg-statbl__hours svg {
  width: 17px;
  height: 17px;
  color: var(--blue-bright);
}
.lg-statbl__kdr {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.lg-statbl__kdr.is-pos {
  color: var(--online);
}
.lg-statbl__kdr.is-neg {
  color: #ff7a66;
}

.lg-rankbadge {
  display: inline-block;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 20px;
  background: #17222f;
  color: var(--muted-2);
  border: 1px solid var(--line);
}
.lg-rankbadge--gold {
  background: rgba(240, 168, 42, 0.15);
  color: var(--gold);
  border-color: rgba(240, 168, 42, 0.4);
}
.lg-rankbadge--violet {
  background: rgba(161, 114, 255, 0.15);
  color: #b794ff;
  border-color: rgba(161, 114, 255, 0.4);
}
.lg-rankbadge--blue {
  background: rgba(45, 140, 255, 0.15);
  color: var(--blue-bright);
  border-color: rgba(45, 140, 255, 0.4);
}
.lg-rankbadge--green {
  background: rgba(52, 211, 107, 0.14);
  color: var(--online);
  border-color: rgba(52, 211, 107, 0.35);
}

/* my standing block */
.lg-mystat-title {
  margin: 30px 0 14px;
  font-size: 20px;
}
.lg-statbl--mine {
  border-color: rgba(45, 140, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(45, 140, 255, 0.12),
    0 14px 40px -22px rgba(45, 140, 255, 0.5);
}
.lg-statbl--mine .lg-statbl__row {
  background: rgba(45, 140, 255, 0.06);
}
.lg-statbl--mine .lg-statbl__row:hover {
  background: rgba(45, 140, 255, 0.1);
}
.lg-mystat-you {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(45, 140, 255, 0.16);
  border: 1px solid rgba(45, 140, 255, 0.4);
  border-radius: 12px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.lg-pager {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.lg-pager a {
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
}
.lg-pager a:hover {
  border-color: var(--blue);
  color: var(--text);
}
.lg-pager a.is-active {
  background: rgba(45, 140, 255, 0.14);
  color: var(--blue-bright);
  border-color: rgba(45, 140, 255, 0.4);
}

@media (max-width: 680px) {
  .lg-statbl__head,
  .lg-statbl__row {
    grid-template-columns: 44px 1.4fr auto;
  }
  .lg-statbl__head span:nth-child(3),
  .lg-statbl__head span:nth-child(4),
  .lg-statbl__hours,
  .lg-statbl__kdr {
    display: none;
  }
}

/* ---------- Forum ---------- */
.lg-forum {
  padding: 36px 0 60px;
}
.lg-forum__cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-fcat {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  transition: 0.16s ease;
}
.lg-fcat:hover {
  border-color: #25405f;
  transform: translateY(-1px);
}
.lg-fcat__ico {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--blue-bright);
  background: rgba(45, 140, 255, 0.1);
}
.lg-fcat__ico svg {
  width: 24px;
  height: 24px;
}
.lg-fcat__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lg-fcat__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.lg-fcat__desc {
  font-size: 13.5px;
  color: var(--muted);
}
.lg-fcat__stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.lg-fcat__stats b {
  color: var(--text);
  font-family: "Exo 2", sans-serif;
}

/* new topic */
.lg-newtopic {
  margin-bottom: 18px;
}
.lg-newtopic > summary {
  display: inline-flex;
  list-style: none;
}
.lg-newtopic > summary::-webkit-details-marker {
  display: none;
}
.lg-newtopic__form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.lg-newtopic__form input,
.lg-newtopic__form textarea,
.lg-reply textarea {
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.lg-newtopic__form input:focus,
.lg-newtopic__form textarea:focus,
.lg-reply textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.lg-newtopic__form .lg-btn {
  align-self: flex-start;
}

/* topics list */
.lg-topics {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.lg-topics__head,
.lg-topics__row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 130px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
}
.lg-topics__head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lg-topics__row {
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.14s ease;
}
.lg-topics__row:last-child {
  border-bottom: none;
}
.lg-topics__row:hover {
  background: var(--panel-2);
}
.lg-topics__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lg-topics__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.lg-topics__row:hover .lg-topics__title {
  color: var(--blue-bright);
}
.lg-topics__author {
  font-size: 12.5px;
  color: var(--muted);
}
.lg-topics__num {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  color: var(--muted-2);
}
.lg-topics__last {
  font-size: 13px;
  color: var(--muted);
}
.lg-topics__empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--muted);
}

/* posts */
.lg-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.lg-post {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.lg-post--op {
  border-color: rgba(45, 140, 255, 0.4);
}
.lg-post__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  text-align: center;
}
.lg-post__av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0a0f17 center/cover no-repeat;
  border: 1px solid var(--line);
}
.lg-post__author {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.lg-post__userstats {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.lg-post__userstats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
}
.lg-post__userstats svg {
  width: 13px;
  height: 13px;
  color: var(--blue-bright);
}

/* topic tools / closed */
.lg-topic-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 24px;
}
.lg-topic-head .lg-h2 {
  align-items: center;
  flex: 1;
  min-width: 0;
}
.lg-topic-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.lg-topic-closed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #ff7a66;
  background: rgba(224, 83, 61, 0.12);
  border: 1px solid rgba(224, 83, 61, 0.35);
  border-radius: 20px;
  padding: 3px 12px;
  margin-left: 10px;
  vertical-align: middle;
}
.lg-topic-closed svg {
  width: 13px;
  height: 13px;
}
.lg-topic-lock {
  display: inline-flex;
  vertical-align: middle;
  color: #ff7a66;
}
.lg-topic-lock svg {
  width: 14px;
  height: 14px;
}
.lg-post__main {
  padding: 18px 22px;
  min-width: 0;
}
.lg-post__date {
  font-size: 12.5px;
  color: var(--muted);
}
.lg-post__body {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  word-wrap: break-word;
}
.lg-post__body p {
  margin: 0;
}

/* reply */
.lg-reply {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.lg-reply h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0;
}
.lg-reply .lg-btn {
  align-self: flex-start;
}

/* forum stats */
.lg-forum__stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.lg-forum__stats b {
  color: var(--blue-bright);
  font-family: "Exo 2", sans-serif;
}

/* attach + rich body + gallery + likes */
.lg-attach {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-attach > span {
  font-size: 13px;
  color: var(--muted-2);
}
.lg-attach input[type="file"] {
  background: #0a0f17;
  border: 1px dashed #243349;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted-2);
  font-size: 13px;
}
.lg-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.lg-rich a {
  color: var(--blue-bright);
}
.lg-rich blockquote {
  border-left: 3px solid var(--line);
  margin: 8px 0;
  padding: 4px 0 4px 14px;
  color: var(--muted-2);
}
.lg-rich ul,
.lg-rich ol {
  padding-left: 22px;
}

.lg-post__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.lg-post__gallery img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: 0.15s ease;
}
.lg-post__gallery a:hover img {
  border-color: var(--blue);
  transform: scale(1.02);
}

.lg-post__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lg-post__foot form {
  display: inline-flex;
}
.lg-post__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lg-post__act {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted-2);
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.14s ease;
}
.lg-post__act:hover {
  background: var(--panel-2);
  color: var(--text);
}
.lg-post__act--del:hover {
  color: #ff7a66;
}
.lg-post__edited {
  color: var(--muted);
  font-size: 12px;
}
.lg-post__edit {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lg-post__edit[hidden] {
  display: none;
}
.lg-post__edit-actions {
  display: flex;
  gap: 8px;
}
.lg-topic-pin {
  display: inline-flex;
  vertical-align: middle;
  color: var(--gold);
}
.lg-topic-pin svg {
  width: 16px;
  height: 16px;
}
.lg-like {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: #131c28;
  border: 1px solid #243349;
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--muted-2);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: 0.15s ease;
}
.lg-like svg {
  width: 16px;
  height: 16px;
}
.lg-like:hover {
  border-color: var(--blue);
  color: var(--text);
}
.lg-like.is-liked {
  background: rgba(45, 140, 255, 0.16);
  border-color: rgba(45, 140, 255, 0.5);
  color: var(--blue-bright);
}
.lg-like.is-static {
  cursor: default;
}

@media (max-width: 680px) {
  .lg-fcat {
    grid-template-columns: 44px 1fr;
  }
  .lg-fcat__stats {
    display: none;
  }
  .lg-topics__head,
  .lg-topics__row {
    grid-template-columns: 1fr 60px;
  }
  .lg-topics__head span:nth-child(3),
  .lg-topics__head span:nth-child(4),
  .lg-topics__row .lg-topics__num:last-of-type,
  .lg-topics__last {
    display: none;
  }
  .lg-post {
    grid-template-columns: 1fr;
  }
  .lg-post__side {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- Rules page ---------- */
.lg-rules {
  padding: 40px 0 60px;
  max-width: 880px;
  margin: 0 auto;
}
.lg-rules__hero {
  margin-bottom: 26px;
}
.lg-rules__hero h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 10px;
}
.lg-rules__hero p {
  font-size: 15px;
  max-width: 640px;
}
.lg-rules__block {
  padding: 28px 30px;
  margin-bottom: 18px;
}
.lg-rules__h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 23px;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.2;
}
.lg-rules__num {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  box-shadow: 0 6px 18px -8px rgba(45, 140, 255, 0.8);
}
.lg-rules__intro {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.7;
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 16px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, rgba(45, 140, 255, 0.06), transparent);
}
.lg-rules__intro b {
  color: var(--blue-bright);
}
.lg-rules__h3 {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin: 24px 0 14px;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
}
.lg-rules__h3--ok {
  color: var(--online);
  background: rgba(52, 211, 107, 0.1);
  border: 1px solid rgba(52, 211, 107, 0.3);
}
.lg-rules__h3--bad {
  color: #ff7a66;
  background: rgba(224, 83, 61, 0.1);
  border: 1px solid rgba(224, 83, 61, 0.35);
}
.lg-rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-rules__list li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  padding-left: 4px;
  position: relative;
}
.lg-rules__list b {
  color: var(--blue-bright);
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  margin-right: 4px;
}
.lg-rules__foot {
  font-size: 14px;
  margin-top: 8px;
}
.lg-rules__foot a {
  color: var(--blue-bright);
}

/* penalty pill */
.lg-rules__pen {
  display: inline-block;
  margin-top: 8px;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #ffb199;
  background: rgba(224, 83, 61, 0.1);
  border: 1px solid rgba(224, 83, 61, 0.32);
  border-radius: 6px;
  padding: 5px 11px;
  line-height: 1.5;
}
.lg-rules__pen::before {
  content: "Покарання: ";
  color: var(--danger);
  opacity: 0.9;
}
.lg-rules__pen--warn {
  color: var(--gold);
  background: rgba(240, 168, 42, 0.1);
  border-color: rgba(240, 168, 42, 0.35);
}
.lg-rules__pen--warn::before {
  content: "";
}

/* sub list */
.lg-rules__sub {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lg-rules__sub li {
  font-size: 14px;
  color: var(--muted-2);
}
.lg-rules__sub b {
  color: var(--blue-bright);
  margin-right: 4px;
}
.lg-rules__list small {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

/* highlight rows */
.lg-rules__hl {
  list-style: none;
  margin: 6px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: #ff7a66;
  background: rgba(224, 83, 61, 0.1);
  border: 1px solid rgba(224, 83, 61, 0.3);
  text-align: center;
}
.lg-rules__hl--blue {
  color: var(--text);
  background: rgba(45, 140, 255, 0.07);
  border-color: rgba(45, 140, 255, 0.3);
  text-align: left;
}
.lg-rules__hl--blue {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
}
.lg-rules__roles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  font-weight: 400;
}
.lg-c-t {
  color: var(--gold);
}
.lg-c-ct {
  color: var(--blue-bright);
}

/* note (consequences summary) */
.lg-rules__note {
  margin: 18px 0 0;
  padding: 13px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #ff7a66;
  background: rgba(224, 83, 61, 0.1);
  border: 1px solid rgba(224, 83, 61, 0.3);
}
.lg-rules__note--soft {
  color: var(--muted-2);
  background: var(--bg-2);
  border-color: var(--line);
  font-weight: 500;
}

/* maps grid */
.lg-rules__maps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.lg-rules__map {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  background: #131c28;
  border: 1px solid #243349;
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--blue-bright);
}

@media (max-width: 600px) {
  .lg-rules__block {
    padding: 22px 18px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lg-srv {
    grid-template-columns: 48px 1.2fr 1fr 1fr 80px 130px;
  }
  .lg-srv__cell:nth-child(5) {
    display: none;
  } /* hide status, keep online dot in name area on small */
  .lg-trio {
    grid-template-columns: 1fr 1fr;
  }
  .lg-panel--online {
    grid-column: span 2;
  }
  .lg-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .lg-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .lg-nav {
    display: none;
  }
  .lg-hero {
    padding: 64px 0 72px;
  }
  .lg-srv {
    grid-template-columns: 40px 1fr auto;
    row-gap: 12px;
  }
  .lg-srv__cell,
  .lg-gauge {
    grid-column: span 1;
  }
  .lg-news {
    grid-template-columns: 1fr;
  }
  .lg-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 404 page ---------- */
.lg-404 {
  position: relative;
  text-align: center;
  padding: 90px 20px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.lg-404__glow {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 320px;
  background: radial-gradient(
    ellipse at center,
    rgba(45, 140, 255, 0.22),
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
}
.lg-404__code {
  position: relative;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(96px, 22vw, 220px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #4aa0ff, #1f6fd6 60%, #0e141f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(45, 140, 255, 0.25);
}
.lg-404__title {
  position: relative;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 4vw, 32px);
  margin: 6px 0 14px;
  letter-spacing: 0.01em;
}
.lg-404__sub {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 30px;
}
.lg-404__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Banlist page ---------- */
.lg-banlist-page {
  padding: 30px 0 70px;
}
.lg-statnote--ban .lg-statnote__ico {
  color: #ff7a66;
}
.lg-banbl {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.lg-banbl__head,
.lg-banbl__row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr 1.1fr 1fr 1.8fr;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
}
.lg-banbl__head {
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lg-banbl__row {
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  transition: background 0.14s ease;
}
.lg-banbl__row:last-child {
  border-bottom: none;
}
.lg-banbl__row:hover {
  background: var(--panel-2);
}
.lg-banbl__player {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lg-banbl__name {
  font-weight: 600;
  color: var(--text);
}
.lg-banbl__sid {
  font-family: "Exo 2", sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.lg-banbl__admin {
  color: var(--blue-bright);
  font-weight: 600;
}
.lg-banbl__when {
  font-family: "Exo 2", sans-serif;
  color: var(--muted-2);
  font-size: 13px;
}
.lg-banbl__left {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  color: var(--text);
}
.lg-banbl__left.is-perm {
  color: #ff7a66;
}
.lg-banbl__reason {
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-bantag {
  display: inline-flex;
  align-items: center;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 20px;
  text-transform: uppercase;
}
@supports (text-box: trim-both cap alphabetic) {
  .lg-bantag {
    display: inline-block;
    line-height: 1;
    padding: 7px 11px;
    text-box: trim-both cap alphabetic;
  }
}
.lg-bantag--red {
  color: #ff7a66;
  background: rgba(224, 83, 61, 0.14);
  border: 1px solid rgba(224, 83, 61, 0.4);
}
.lg-bantag--gold {
  color: var(--gold);
  background: rgba(240, 168, 42, 0.13);
  border: 1px solid rgba(240, 168, 42, 0.4);
}
.lg-bantag--violet {
  color: #b48bff;
  background: rgba(150, 110, 255, 0.14);
  border: 1px solid rgba(150, 110, 255, 0.4);
}
.lg-banbl__empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

/* ---------- News page ---------- */
.lg-newspage {
  padding: 30px 0 70px;
}
.lg-tagchip--float {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

/* featured hero */
.lg-newshero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 26px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.lg-newshero:hover {
  border-color: rgba(45, 140, 255, 0.5);
  transform: translateY(-2px);
}
.lg-newshero__img {
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 9;
  align-self: center;
}
.lg-newshero__body {
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.lg-newshero__body h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  margin: 0;
}
.lg-newshero:hover .lg-newshero__body h2 {
  color: var(--blue-bright);
}
.lg-newshero__body p {
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.lg-newshero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Exo 2", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.lg-newshero__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--blue-bright);
  font-weight: 600;
}
.lg-newshero__read svg {
  width: 16px;
  height: 16px;
}

/* grid cards */
.lg-newsgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lg-newscard {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.lg-newscard:hover {
  border-color: rgba(45, 140, 255, 0.5);
  transform: translateY(-3px);
}
.lg-newscard__img {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.lg-newscard__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 20, 31, 0.85));
}
.lg-newscard__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.lg-newscard__body h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}
.lg-newscard:hover .lg-newscard__body h3 {
  color: var(--blue-bright);
}
.lg-newscard__body p {
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.lg-newscard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Exo 2", sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.lg-newscard__more {
  color: var(--blue-bright);
  font-size: 16px;
  transition: transform 0.15s ease;
}
.lg-newscard:hover .lg-newscard__more {
  transform: translateX(3px);
}

/* single post */
.lg-newspost {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 0 70px;
}
.lg-newspost__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  text-decoration: none;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 22px;
  transition: color 0.15s ease;
}
.lg-newspost__back:hover {
  color: var(--blue-bright);
}
.lg-newspost__back svg {
  width: 18px;
  height: 18px;
}
.lg-newspost__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.lg-newspost__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.lg-newspost__title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  margin: 0;
}
.lg-newspost__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.lg-newspost__views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}
.lg-newspost__author {
  color: var(--blue-bright);
  font-weight: 600;
}
.lg-newspost__body {
  font-size: 16px;
  line-height: 1.8;
  color: #c8d2de;
}
.lg-newspost__body p {
  margin: 0 0 16px;
}
.lg-newspost__body h2,
.lg-newspost__body h3 {
  font-family: "Oswald", sans-serif;
  margin: 28px 0 12px;
}
.lg-newspost__body img {
  border-radius: 12px;
  margin: 12px 0;
}

@media (max-width: 900px) {
  .lg-newsgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lg-newshero {
    grid-template-columns: 1fr;
  }
  .lg-newshero__img {
    align-self: stretch;
  }
}
@media (max-width: 560px) {
  .lg-newsgrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .lg-banbl__head {
    display: none;
  }
  .lg-banbl__row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }
  .lg-banbl__reason {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

/* ---------- Members directory ---------- */
.lg-members {
  padding: 30px 0 60px;
}
.lg-members__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.lg-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.lg-member[hidden] {
  display: none;
}
.lg-member__av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0a0f17 center/cover no-repeat;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.lg-member__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.lg-member__name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-member__body .lg-badge {
  align-self: flex-start;
}
.lg-member form {
  width: 100%;
}
.lg-member__btn {
  width: 100%;
  cursor: pointer;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s ease;
}
.lg-member__btn:hover {
  background: var(--blue-bright);
}
.lg-member__btn--ghost {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #131c28;
  border-color: #243349;
  color: var(--muted-2);
}
.lg-member__you,
.lg-member__friend,
.lg-member__pending {
  width: 100%;
  text-align: center;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 0;
  border-radius: 8px;
}
.lg-member__you {
  color: var(--muted);
  background: #0a0f17;
}
.lg-member__friend {
  color: var(--online);
  background: rgba(60, 200, 120, 0.1);
}
.lg-member__pending {
  color: var(--gold);
  background: rgba(240, 168, 42, 0.1);
}

.lg-members__search {
  position: relative;
  margin-top: 16px;
  max-width: 360px;
}
.lg-members__search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.lg-members__search input {
  width: 100%;
  box-sizing: border-box;
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 9px;
  padding: 11px 14px 11px 38px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.lg-members__search input:focus {
  outline: none;
  border-color: var(--blue);
}
.lg-members__empty {
  margin: 14px 0 0;
  color: var(--muted);
}

/* ---------- Generic modal (balance top-up) ---------- */
.lg-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lg-modal[hidden] {
  display: none;
}
.lg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(3px);
}
.lg-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  animation: lg-rise 0.22s ease both;
}
.lg-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lg-modal__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0;
}
.lg-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  transition: 0.15s ease;
}
.lg-modal__close:hover {
  color: var(--text);
  background: #131c28;
}
.lg-modal__close svg {
  width: 20px;
  height: 20px;
  display: block;
}
/* inside the modal the top-up panel needs no extra chrome */
.lg-modal__box .lg-cab__topup {
  padding: 0;
  border: none;
  background: none;
}

/* ---------- Public user profile ---------- */
.lg-statbl__player--link {
  color: inherit;
  transition: color 0.15s;
}
.lg-statbl__player--link:hover .lg-statbl__name {
  color: var(--blue-bright);
}
a.lg-member__name:hover {
  color: var(--blue-bright);
}
.lg-uprof__privs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.lg-uprof__main {
  padding: 24px 26px 28px;
}
.lg-uprof__rank {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lg-uprof__letter {
  flex-shrink: 0;
  min-width: 64px;
  padding: 14px 0;
  text-align: center;
  font-size: 26px;
  border-radius: 14px;
}
.lg-uprof__rankbody {
  flex: 1;
  min-width: 0;
}
.lg-uprof__ranktop {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-family: "Exo 2", sans-serif;
  font-size: 15px;
}
.lg-uprof__ranktop b {
  color: #e6ecf4;
}
.lg-uprof__bar {
  height: 8px;
  border-radius: 6px;
  background: #17222f;
  overflow: hidden;
}
.lg-uprof__bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  box-shadow: 0 0 10px rgba(45, 140, 255, 0.5);
}
.lg-uprof__grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 0;
}
@media (max-width: 860px) {
  .lg-uprof__main {
    padding: 18px 16px 20px;
  }
}
.lg-uprof__admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(240, 168, 42, 0.45);
  color: var(--gold);
}
.lg-uprof__admin svg {
  width: 16px;
  height: 16px;
}

/* ---------- Season nominations ---------- */
.lg-noms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}
.lg-noms__card {
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: var(--radius);
}
.lg-noms__card--gold {
  border-top-color: var(--gold);
}
.lg-noms__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.lg-noms__title small {
  font-family: "Exo 2", sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}
.lg-noms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-noms__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lg-noms__row .lg-statbl__av {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.lg-noms__row .lg-statbl__medal {
  flex: 0 0 30px;
  font-weight: 700;
}
.lg-noms__who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
}
a.lg-noms__who:hover .lg-noms__name {
  color: var(--blue-bright);
}
.lg-noms__name {
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-noms__val {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.lg-noms__val small {
  margin-left: 6px;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}
.lg-noms__empty {
  margin: 0;
  font-size: 14px;
  color: var(--muted-2);
}
@media (max-width: 760px) {
  .lg-noms {
    grid-template-columns: 1fr;
  }
}

.lg-noms__place {
  flex: 0 0 30px;
  text-align: center;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted-2);
}

/* my standing in both nominations */
.lg-mypos {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 0 24px -12px rgba(45, 140, 255, 0.6);
}
.lg-mypos__who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
}
.lg-mypos__who:hover .lg-statbl__name {
  color: var(--blue-bright);
}
.lg-mypos__cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--blue);
}
.lg-mypos__cell--gold {
  border-left-color: var(--gold);
}
.lg-mypos__cap {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lg-mypos__place {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: #e6ecf4;
}
.lg-mypos__cell--gold .lg-mypos__place {
  color: var(--gold);
}
.lg-mypos__place small {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted-2);
}
.lg-mypos__sub {
  font-size: 13px;
  color: var(--muted-2);
}
@media (max-width: 760px) {
  .lg-mypos {
    grid-template-columns: 1fr 1fr;
  }
  .lg-mypos__who {
    grid-column: 1 / -1;
  }
}

/* privilege badges keep the shop item's accent colour */
.lg-badge--acc-gold { background: rgba(240, 168, 42, 0.16); color: var(--gold); border-color: rgba(240, 168, 42, 0.4); }
.lg-badge--acc-violet { background: rgba(161, 114, 255, 0.16); color: #b794ff; border-color: rgba(161, 114, 255, 0.45); }
.lg-badge--acc-red { background: rgba(255, 90, 70, 0.14); color: #ff7a66; border-color: rgba(255, 90, 70, 0.4); }
.lg-badge--acc-blue { background: rgba(45, 140, 255, 0.16); color: var(--blue-bright); border-color: rgba(45, 140, 255, 0.4); }
.lg-badge--acc-green { background: rgba(52, 211, 107, 0.14); color: var(--online); border-color: rgba(52, 211, 107, 0.35); }

.lg-member__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* extra server card accents (blue is the default, gold is styled above) */
.lg-srv--violet { border-left-color: #a172ff; }
.lg-srv--violet .lg-srv__no, .lg-srv--violet .lg-srv__name h3 { color: #b794ff; }
.lg-srv--red { border-left-color: #ff5a46; }
.lg-srv--red .lg-srv__no, .lg-srv--red .lg-srv__name h3 { color: #ff7a66; }
.lg-srv--green { border-left-color: var(--online); }
.lg-srv--green .lg-srv__no, .lg-srv--green .lg-srv__name h3 { color: var(--online); }

/* Native date/time pickers default to light-theme icons; render them for the dark UI. */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
  color-scheme: dark;
}
input::-webkit-calendar-picker-indicator {
  opacity: 0.75;
  cursor: pointer;
}
input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* shop: /anew points card */
.lg-points-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 22px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(45,140,255,.12), rgba(161,114,255,.08)), var(--panel); border: 1px solid rgba(45,140,255,.35); border-radius: var(--radius); }
.lg-points-card__info { display: flex; gap: 16px; align-items: flex-start; }
.lg-points-card__icon { flex: 0 0 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(45,140,255,.15); color: var(--blue-bright); }
.lg-points-card__icon svg { width: 28px; height: 28px; }
.lg-points-card h3 { margin: 0 0 6px; font-family: "Oswald", sans-serif; font-size: 22px; }
.lg-points-card p { margin: 0 0 8px; font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.lg-points-card__rate { font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--gold); }
.lg-points-card__buy { display: flex; flex-direction: column; gap: 10px; }
.lg-points-card__bal { font-size: 14px; color: var(--muted-2); }
.lg-points-card__bal b { color: var(--blue-bright); font-family: "Oswald", sans-serif; font-size: 18px; }
.lg-points-card__form { display: flex; gap: 8px; }
.lg-points-card__field { position: relative; flex: 1; }
.lg-points-card__field input { width: 100%; box-sizing: border-box; padding: 11px 70px 11px 12px; background: #0a0f17; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
.lg-points-card__field span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.lg-points-card__preview { font-family: "Exo 2", sans-serif; font-weight: 600; color: var(--muted-2); }
@media (max-width: 760px) { .lg-points-card { grid-template-columns: 1fr; } }
/* Native number spinners are light-themed; dark scheme + hidden arrows on the amount field. */
.lg-points-card__field input { color-scheme: dark; -moz-appearance: textfield; }
.lg-points-card__field input::-webkit-outer-spin-button,
.lg-points-card__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* cabinet: /anew points send */
.lg-cab__points-val { color: var(--blue-bright); }
.lg-cab__points-note { display: block; margin: 8px 0 0; font-size: 13px; text-align: center; }
.lg-cab__send { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lg-cab__send-row { display: flex; gap: 8px; }
.lg-cab__send input { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; background: #0a0f17; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; color-scheme: dark; }
.lg-cab__send-log { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lg-cab__send-log li { display: flex; gap: 8px; align-items: baseline; }
.lg-cab__send-log small { margin-left: auto; color: var(--muted); }
.lg-cab__send-log .is-in { color: var(--online); font-weight: 700; }
.lg-cab__send-log .is-out { color: #ff7a66; font-weight: 700; }

/* nickname suggestions */
.lg-cab__send-to { position: relative; }
.lg-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.8); }
.lg-suggest[hidden] { display: none; }
.lg-suggest li { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.lg-suggest li:hover, .lg-suggest li.is-active { background: #17222f; }
.lg-suggest li.is-off { opacity: .5; cursor: default; }
.lg-suggest li.is-empty { color: var(--muted); cursor: default; }
.lg-suggest li small { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.lg-suggest__av { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: #0a0f17 center/cover no-repeat; }

/* confirmation popup */
.lg-confirm { max-width: 380px; text-align: center; padding: 26px 24px 22px; }
.lg-confirm__icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; background: rgba(45,140,255,.14); color: var(--blue-bright); }
.lg-confirm__icon svg { width: 28px; height: 28px; }
.lg-confirm__text { margin: 10px 0 4px; font-size: 15px; }
.lg-confirm__text b { color: var(--blue-bright); }
.lg-confirm__hint { margin: 0 0 18px; font-size: 13px; }
.lg-confirm__actions { display: flex; gap: 10px; justify-content: center; }
.lg-confirm__actions .lg-btn { min-width: 130px; justify-content: center; }

/* header: signed-in user chip */
.lg-hdr-user { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 30px; background: var(--panel); color: inherit; transition: border-color .15s, background .15s; max-width: 240px; }
.lg-hdr-user:hover { border-color: rgba(45,140,255,.55); background: var(--panel-2); }
.lg-hdr-user__av { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #0a0f17 center/cover no-repeat; border: 2px solid var(--blue); }
.lg-hdr-user__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lg-hdr-user__name { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-hdr-user__bal { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 13px; color: var(--gold); }

/* cabinet info grid: balance + points side by side, privileges full width */
.lg-cab__card--wide { grid-column: 1 / -1; }
.lg-cab__card--pts, .lg-cab__info-grid > .lg-cab__card:first-child { display: flex; flex-direction: column; }
.lg-cab__btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: auto; }
.lg-cab__btn-pair .lg-btn, .lg-cab__wide-btn { justify-content: center; width: 100%; box-sizing: border-box; margin-top: auto; }

/* send-points popup */
.lg-send { max-width: 420px; }
.lg-send__step { display: flex; flex-direction: column; gap: 8px; }
.lg-send__step[hidden] { display: none; }
.lg-send__bal { margin: 0 0 6px; font-size: 13.5px; }
.lg-send__bal b { color: var(--blue-bright); }
.lg-send__label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.lg-send input { width: 100%; box-sizing: border-box; padding: 11px 12px; background: #0a0f17; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; color-scheme: dark; }
.lg-send input:focus { outline: none; border-color: var(--blue); }
.lg-send__go { margin-top: 8px; justify-content: center; }
.lg-send__log-cap { margin-top: 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lg-send .lg-cab__send-log { margin-top: 4px; }
.lg-send .lg-confirm { text-align: center; padding: 6px 0 2px; }

/* ===== Cabinet v2 ===== */
.lg-tabs__nav--6 { overflow-x: auto; scrollbar-width: none; }
.lg-tabs__nav--6::-webkit-scrollbar { display: none; }
.lg-tabs__nav--6 .lg-tabs__btn { flex: 1 0 auto; padding: 16px 14px; white-space: nowrap; }
.lg-tabs__dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #ff5a46; color: #fff; font-size: 11px; }

.lg-cab__tabs .lg-tabs__pane { display: none; flex-direction: column; gap: 14px; }
.lg-cab__tabs .lg-tabs__pane.is-active { display: flex; }

.lg-ov-card, .lg-ov-game, .lg-ov-wallet { background: #0b121d; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.lg-ov-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lg-ov-card__head h3 { margin: 0; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .02em; }

/* game profile */
.lg-ov-game { position: relative; display: flex; gap: 20px; align-items: center; background: linear-gradient(120deg, rgba(45,140,255,.12), rgba(11,18,29,0) 55%), #0b121d; }
.lg-ov-game__rank { flex: 0 0 84px; height: 84px; display: grid; place-items: center; border-radius: 18px; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 40px; background: #17222f; color: var(--muted-2); border: 1px solid var(--line); }
.lg-ov-game__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lg-ov-game__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-family: "Exo 2", sans-serif; font-size: 16px; }
.lg-ov-game__top b { font-size: 18px; }
.lg-ov-game__xp { font-size: 13px; margin-top: -2px; }
.lg-ov-game__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; font-family: "Exo 2", sans-serif; font-size: 14px; color: var(--muted-2); }
.lg-ov-game__stats small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: "Exo 2", sans-serif; }
.lg-ov-game__stats b { font-family: "Oswald", sans-serif; font-size: 20px; color: var(--text); margin-right: 3px; }
.lg-ov-game__noms { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted-2); }
.lg-ov-game__noms b { color: var(--gold); }
.lg-ov-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lg-ov-empty b { font-family: "Oswald", sans-serif; font-size: 18px; }

/* wallet strip */
.lg-ov-wallet { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.lg-ov-wallet__cell { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 14px; padding: 16px 20px; }
.lg-ov-wallet__cell + .lg-ov-wallet__cell { border-left: 1px solid var(--line); }
.lg-ov-wallet__cell small { grid-column: 1; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lg-ov-wallet__cell b { grid-column: 1; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 24px; white-space: nowrap; }
.lg-ov-wallet__cell > .lg-btn, .lg-ov-wallet__btns { grid-column: 2; grid-row: 1 / span 2; }
.lg-ov-wallet__btns { display: flex; gap: 6px; }
.lg-ov-wallet .lg-btn { padding: 9px 14px; font-size: 13.5px; }
.lg-ov-wallet__uah { color: var(--gold); }
.lg-ov-wallet__pts { color: var(--blue-bright); }

/* privileges with time bar */
.lg-ov-priv { display: grid; grid-template-columns: 130px 1fr 90px auto; align-items: center; gap: 14px; padding: 8px 0; }
.lg-ov-priv + .lg-ov-priv { border-top: 1px solid var(--line-soft); }
.lg-ov-priv .lg-badge { justify-self: start; }
.lg-ov-priv__bar { height: 6px; border-radius: 4px; background: #17222f; overflow: hidden; }
.lg-ov-priv__bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.lg-ov-priv__bar.is-forever span { background: linear-gradient(90deg, #b07a1c, var(--gold)); }
.lg-ov-priv__bar.is-low span { background: linear-gradient(90deg, #a83333, #ff5a46); }
.lg-ov-priv__left { font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 14px; color: var(--muted-2); text-align: right; }
.lg-ov-priv__renew { padding: 6px 12px; font-size: 12.5px; }

/* daily rewards track */
.lg-ov-streak { color: var(--gold); font-size: 16px; }
.lg-ov-track { position: relative; height: 74px; margin: 6px 24px 0 8px; }
.lg-ov-track__line { position: absolute; left: 0; right: 0; top: 10px; height: 6px; border-radius: 4px; background: #17222f; }
.lg-ov-track__line span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #b07a1c, var(--gold)); }
.lg-ov-track__me { position: absolute; top: -2px; transform: translateX(-50%); min-width: 30px; height: 30px; padding: 0 6px; box-sizing: border-box; display: grid; place-items: center; border-radius: 15px; background: var(--gold); color: #1a1100; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 14px; box-shadow: 0 0 14px rgba(240,168,42,.55); z-index: 2; }
.lg-ov-track__stop { position: absolute; top: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; white-space: nowrap; }
.lg-ov-track__stop i { width: 18px; height: 18px; border-radius: 50%; background: #0b121d; border: 3px solid #2a3647; box-sizing: border-box; }
.lg-ov-track__stop.is-done i { border-color: var(--gold); background: var(--gold); }
.lg-ov-track__stop b { margin-top: 6px; font-family: "Oswald", sans-serif; font-size: 14px; }
.lg-ov-track__stop small { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 13px; color: var(--gold); }
.lg-ov-track__hint { margin: 4px 0 0; font-size: 12.5px; }

/* wallet log */
.lg-wlog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lg-wlog__row { display: grid; grid-template-columns: 26px 1fr auto 130px; align-items: center; gap: 12px; padding: 10px 0; }
.lg-wlog__row + .lg-wlog__row { border-top: 1px solid var(--line-soft); }
.lg-wlog__ico { width: 26px; height: 26px; border-radius: 8px; background: #17222f; display: grid; place-items: center; color: var(--muted-2); }
.lg-wlog__ico svg { width: 15px; height: 15px; }
.lg-wlog__ico--buy { background: rgba(240,168,42,.18); color: var(--gold); }
.lg-wlog__ico--topup { background: rgba(52,211,107,.18); color: var(--online); }
.lg-wlog__ico--points { background: rgba(45,140,255,.18); color: var(--blue-bright); }
.lg-wlog__title { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-wlog__amt { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; }
.lg-wlog__amt.is-in { color: var(--online); }
.lg-wlog__amt.is-out { color: #ff7a66; }
.lg-wlog__amt.is-wait { color: var(--muted); }
.lg-wlog__date { font-size: 12.5px; color: var(--muted); text-align: right; }

@media (max-width: 760px) {
  .lg-ov-game { flex-direction: column; align-items: flex-start; }
  .lg-ov-wallet { grid-template-columns: 1fr; }
  .lg-ov-wallet__cell + .lg-ov-wallet__cell { border-left: 0; border-top: 1px solid var(--line); }
  .lg-ov-priv { grid-template-columns: 1fr auto; }
  .lg-ov-priv__bar { grid-column: 1 / -1; grid-row: 2; }
  .lg-ov-priv__renew { grid-row: 1; grid-column: 2; }
  .lg-ov-priv__left { display: none; }
  .lg-wlog__row { grid-template-columns: 26px 1fr auto; }
  .lg-wlog__date { grid-column: 2 / -1; text-align: left; margin-top: -8px; }
}

/* members: role / donation glow */
.lg-member--glow { --glow: 45, 140, 255; border-color: rgba(var(--glow), .45); box-shadow: 0 0 22px -8px rgba(var(--glow), .55), inset 0 0 0 1px rgba(var(--glow), .08); background: linear-gradient(160deg, rgba(var(--glow), .10), transparent 55%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.lg-glow--gold { --glow: 240, 168, 42; }
.lg-glow--blue { --glow: 45, 140, 255; }
.lg-glow--green { --glow: 52, 211, 107; }
.lg-glow--violet { --glow: 161, 114, 255; }
.lg-glow--red { --glow: 255, 90, 70; }

/* members: role as a caption, donations as small chips */
.lg-member__body { gap: 3px; }
.lg-member__role { font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-member__role--owner { color: var(--gold); }
.lg-member__role--admin { color: var(--blue-bright); }
.lg-member__role--moderator { color: var(--online); }
.lg-member__badges { margin-top: 4px; gap: 5px; }
.lg-chip { --c: 45, 140, 255; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 6px; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c)); background: rgba(var(--c), .12); border: 1px solid rgba(var(--c), .3); line-height: 1.3; }
.lg-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 6px rgb(var(--c)); }
.lg-chip--gold { --c: 240, 168, 42; }
.lg-chip--blue { --c: 78, 163, 255; }
.lg-chip--green { --c: 52, 211, 107; }
.lg-chip--violet { --c: 183, 148, 255; }
.lg-chip--red { --c: 255, 122, 102; }

/* payment logos (LiqPay, Visa/Mastercard) + seller details */
.lg-paylogos { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.lg-paylogos img { display: block; height: 25px; width: auto; }
.lg-paylogos__card { display: inline-flex; padding: 2px 6px; border-radius: 6px; background: #1a2536; }
.lg-paylogos__card svg { display: block; height: 34px; width: auto; }
.lg-paylogos--footer { margin-top: 0; gap: 10px; opacity: .85; }
.lg-paylogos--footer img { height: 18px; }
.lg-paylogos--footer .lg-paylogos__card svg { height: 26px; }
.lg-seller li { list-style: none; }
.lg-shop-pay__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.lg-shop-pay__foot img { height: 18px; width: auto; }
.lg-pay__lp img { height: 18px; width: auto; }
.lg-pay__lp .lg-paylogos__card svg { height: 24px; }

/* season rewards */
.lg-rw {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 20px 22px 22px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(240, 168, 42, 0.13), transparent 60%),
    radial-gradient(70% 100% at 0% 100%, rgba(45, 140, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.lg-rw__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.lg-rw__eyebrow {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lg-rw__title {
  margin: 2px 0 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lg-rw__timer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(10, 16, 26, 0.55);
  border: 1px solid var(--line);
}
.lg-rw__timer b {
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
}
.lg-rw__timer span {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--text);
  line-height: 1.25;
}
.lg-rw__timer small {
  font-size: 11.5px;
  color: var(--muted);
}
.lg-rw__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.lg-rw__nom h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 17px;
}
.lg-rw__nom h3 small {
  font-family: "Exo 2", sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}
.lg-rw__podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 8px;
}
.lg-rw__step {
  --c: #9aa6b6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}
.lg-rw__step--1 { --c: #f0a82a; grid-column: 2; grid-row: 1; }
.lg-rw__step--2 { grid-column: 1; grid-row: 1; }
.lg-rw__step--3 { --c: #c27b45; grid-column: 3; grid-row: 1; }
.lg-rw__who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  color: inherit;
}
a.lg-rw__who:hover .lg-rw__nick { color: var(--blue-bright); }
.lg-rw__av {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #17222f center / cover no-repeat;
  border: 2px solid var(--c);
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--c) 75%, transparent);
  margin-bottom: 4px;
}
.lg-rw__step--1 .lg-rw__av { width: 72px; height: 72px; }
.lg-rw__av--free {
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  color: var(--muted);
  border-style: dashed;
  box-shadow: none;
}
.lg-rw__medal {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #10161f;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c));
  border: 2px solid var(--panel);
}
.lg-rw__nick {
  max-width: 100%;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-rw__step--1 .lg-rw__nick { font-size: 17px; color: var(--gold); }
.lg-rw__step.is-free .lg-rw__nick { color: var(--muted-2); font-size: 14px; }
.lg-rw__step.is-me .lg-rw__nick::after {
  content: " · ви";
  color: var(--blue-bright);
  font-size: 12px;
}
.lg-rw__val {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted-2);
}
.lg-rw__base {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-bottom: none;
}
.lg-rw__step--2 .lg-rw__base { min-height: 58px; }
.lg-rw__step--1 .lg-rw__base { min-height: 80px; }
.lg-rw__step--3 .lg-rw__base { min-height: 46px; }
.lg-rw__gift { font-size: 13px; line-height: 1; }
.lg-rw__prize {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
  color: color-mix(in srgb, var(--c) 45%, #fff);
}
.lg-rw__step--1 .lg-rw__prize { font-size: 15px; }
.lg-rw__place {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 80%, #fff);
}
.lg-rw__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted-2);
}
@media (max-width: 560px) {
  .lg-rw { padding: 16px; }
  .lg-rw__head { flex-direction: column; align-items: flex-start; }
  .lg-rw__grid { grid-template-columns: 1fr; }
  .lg-rw__prize { font-size: 12.5px; }
  .lg-rw__av { width: 46px; height: 46px; }
  .lg-rw__step--1 .lg-rw__av { width: 58px; height: 58px; }
  .lg-rw__nick { font-size: 13.5px; }
}

/* season leaderboard 4-20 */
.lg-lb { padding: 18px 20px; margin-bottom: 26px; }
.lg-lb__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.lg-lb__title { margin: 0; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 18px; }
.lg-lb__title small {
  margin-left: 6px;
  font-family: "Exo 2", sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
}
.lg-lb__tabs {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: 10px;
  background: #0d1520;
  border: 1px solid var(--line);
}
.lg-lb__tabs button {
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-2);
  font: 600 13.5px "Exo 2", sans-serif;
  cursor: pointer;
  transition: 0.15s;
}
.lg-lb__tabs button:hover { color: var(--text); }
.lg-lb__tabs button.is-active { background: var(--blue); color: #fff; }
.lg-lb__pane { display: none; }
.lg-lb__pane.is-active { display: block; }
.lg-lb__empty { margin: 0; padding: 18px 0 6px; color: var(--muted-2); font-size: 14px; }
.lg-lb__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 90px 150px 80px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted-2);
}
.lg-lb__row:not(.lg-lb__row--head):nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.lg-lb__row:not(.lg-lb__row--head):hover { background: rgba(45, 140, 255, 0.07); }
.lg-lb__row > span:nth-child(n + 3) { text-align: right; }
.lg-lb__row .is-key { color: #fff; font-weight: 700; }
.lg-lb__row--head {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0;
}
.lg-lb__row--head .is-key { color: var(--gold); }
.lg-lb__row.is-me { background: rgba(45, 140, 255, 0.12); box-shadow: inset 3px 0 0 var(--blue); }
.lg-lb__pos { text-align: center; color: var(--muted); }
.lg-lb__who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.lg-lb__who .lg-statbl__av { width: 30px; height: 30px; flex: 0 0 30px; }
a.lg-lb__who:hover .lg-lb__name { color: var(--blue-bright); }
.lg-lb__name {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .lg-lb { padding: 14px; }
  .lg-lb__tabs { width: 100%; }
  .lg-lb__tabs button { flex: 1; padding: 7px 6px; font-size: 12.5px; }
  .lg-lb__row { grid-template-columns: 30px minmax(0, 1fr) 64px; }
  .lg-lb__row > span:nth-child(4),
  .lg-lb__row > span:nth-child(3):not(.is-key),
  .lg-lb__row > span:nth-child(5):not(.is-key) { display: none; }
}

/* wCD check page */
.lg-wcd p { color: var(--muted-2); line-height: 1.6; margin: 0 0 14px; }
.lg-wcd__dl { align-self: flex-start; margin: 4px 0 16px; font-family: "Exo 2", system-ui, sans-serif; font-weight: 700; font-size: 14.5px; }
.lg-wcd__form .lg-btn { font-family: "Exo 2", system-ui, sans-serif; font-weight: 700; }
.lg-wcd__notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.lg-wcd__form { display: flex; gap: 10px; flex-wrap: wrap; }
.lg-wcd__form input {
  flex: 1 1 320px; min-width: 0; padding: 12px 14px; border-radius: 10px;
  background: #0a0f17; border: 1px solid #1f2a3a; color: var(--text); font: inherit; font-size: 14px;
}
.lg-wcd__form input:focus { outline: none; border-color: var(--blue); }
.lg-wcd__result { padding: 24px 28px; margin-bottom: 18px; border-left: 3px solid var(--online); }
.lg-wcd__result.is-dirty { border-left-color: #ff5b5b; }
.lg-wcd__verdict { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lg-wcd__badge {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 22px; font-weight: 800; color: #06120b; background: var(--online);
}
.is-dirty .lg-wcd__badge { background: #ff5b5b; color: #fff; }
.lg-wcd__vt { font-family: "Oswald", sans-serif; font-size: 22px; font-weight: 600; }
.lg-wcd__vs { color: var(--muted); font-size: 13px; }
.lg-wcd__src { margin-left: auto; font-size: 13px; color: var(--blue-bright); }
.lg-wcd__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; margin: 0 0 16px; }
.lg-wcd__facts dt { font-family: "Exo 2", sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-wcd__facts dd { margin: 3px 0 0; font-weight: 600; word-break: break-word; }
.lg-wcd__facts a { color: var(--blue-bright); }
.lg-wcd__checks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lg-wcd__checks .ok { color: var(--online); }
.lg-wcd__checks .warn { color: var(--gold); }
.lg-wcd__list { display: flex; flex-direction: column; }
.lg-wcd__row {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center;
  padding: 11px 6px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text);
}
.lg-wcd__row:last-child { border-bottom: none; }
.lg-wcd__row:hover { background: rgba(255, 255, 255, 0.03); }
.lg-wcd__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--online); }
.lg-wcd__dot.is-dirty { background: #ff5b5b; }
.lg-wcd__nick { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-wcd__rv { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-wcd__rt { color: var(--muted); font-size: 12.5px; font-family: "Exo 2", sans-serif; }
@media (max-width: 600px) {
  .lg-wcd__row { grid-template-columns: 10px 1fr auto; }
  .lg-wcd__rv { display: none; }
  .lg-wcd__src { margin-left: 0; }
}


.lg-fspark { position: relative; cursor: crosshair; }
.lg-fspark svg { display: block; }
.lg-fspark__guide { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(78, 163, 255, 0.35); pointer-events: none; }
.lg-fspark__dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--blue-bright); box-shadow: 0 0 0 2px #0b1018; pointer-events: none;
}
.lg-fspark__tip {
  position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 5px 9px; border-radius: 7px;
  background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 5;
}
.lg-fspark__tip b { color: #fff; }
.lg-fspark__tip span { color: var(--muted); }

.lg-wcd__copy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; font-size: 14px; color: var(--muted-2); }
.lg-wcd__copybtn {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 9px; cursor: pointer;
  background: #0a0f17; border: 1px solid #1f2a3a; color: var(--text); font: inherit; transition: border-color .15s;
}
.lg-wcd__copybtn:hover { border-color: var(--blue); }
.lg-wcd__copybtn code { font-family: "Exo 2", monospace; font-size: 16px; font-weight: 700; color: var(--blue-bright); }
.lg-wcd__copylbl { padding: 4px 10px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 700; }
.lg-wcd__copybtn.is-copied { border-color: var(--online); }
.lg-wcd__copybtn.is-copied .lg-wcd__copylbl { background: var(--online); color: #06120b; }
.lg-wcd__copybtn.is-copied .lg-wcd__copylbl::before { content: "✓ "; }

/* Seasons page before the first season starts */
.lg-soon { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 28px; }
.lg-soon__hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.lg-soon__ico { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 32px; background: rgba(240, 168, 42, 0.12); border: 1px solid rgba(240, 168, 42, 0.35); }
.lg-soon__title { font-family: "Oswald", sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 2px 0 8px; }
.lg-soon__text { margin: 0; color: var(--muted-2); line-height: 1.6; max-width: 720px; }
.lg-soon__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lg-soon__nom { padding: 18px 20px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.lg-soon__nom h3 { margin: 0; font-family: "Oswald", sans-serif; font-size: 19px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.lg-soon__nom small { display: block; margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.lg-soon__prizes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lg-soon__prizes li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.lg-soon__place { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.lg-soon__place--1 { background: linear-gradient(160deg, #ffd76a, #e8932e); color: #1a1205; }
.lg-soon__place--2 { background: linear-gradient(160deg, #d8e0ea, #9aa6b6); color: #10161f; }
.lg-soon__place--3 { background: linear-gradient(160deg, #e0a06a, #b06a36); color: #fff; }
.lg-soon__tba { margin: 0; color: var(--muted); font-size: 13.5px; }
.lg-soon__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 700px) {
  .lg-soon { padding: 22px; }
  .lg-soon__hero { flex-direction: column; }
  .lg-soon__grid { grid-template-columns: 1fr; }
}

/* Privilege extras: badge, note, comparison table */
.lg-priv.has-badge {
  border-color: color-mix(in srgb, var(--pa) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pa) 25%, transparent), 0 18px 40px -22px color-mix(in srgb, var(--pa) 60%, transparent);
}
.lg-priv__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--pa);
  color: #071018;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}
.lg-priv-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.lg-cmp {
  margin-top: 4px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 16px;
}
.lg-cmp__title {
  margin: 0 0 14px;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 600;
}
.lg-cmp__scroll {
  overflow-x: auto;
}
.lg-cmp__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.lg-cmp__table th,
.lg-cmp__table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.lg-cmp__table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--muted-2);
  white-space: nowrap;
}
.lg-cmp__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.lg-cmp__col {
  vertical-align: bottom;
}
.lg-cmp__name {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--pa);
}
.lg-cmp__price {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.lg-cmp__yes {
  color: var(--pa);
  font-weight: 800;
  font-size: 16px;
}
.lg-cmp__no {
  color: #3a4657;
}
.lg-cmp__val {
  color: #fff;
  font-weight: 600;
}
.lg-cmp__buy td,
.lg-cmp__buy th {
  border-bottom: none;
  padding-top: 14px;
}
.lg-cmp__btn {
  padding: 8px 16px;
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.lg-cmp__table thead th {
  padding-top: 26px;
  position: relative;
}
.lg-cmp__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--pa);
  color: #071018;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lg-cmp__table td.is-hot,
.lg-cmp__table th.is-hot {
  background: color-mix(in srgb, var(--pa) 7%, transparent);
}
.lg-cmp__name {
  font-size: 19px;
}

/* Price pill in the comparison header */
.lg-cmp__table .lg-cmp__price {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--pa) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pa) 45%, transparent);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 18px -10px var(--pa);
}
.lg-cmp__table .is-hot .lg-cmp__price {
  background: var(--pa);
  color: #071018;
}

/* ============================================================
   Responsive: tablet & mobile
   ============================================================ */
.lg-burger { display: none; }
.lg-nav__auth { display: none; }

@media (max-width: 1023px) {
  .lg-header__inner { gap: 14px; height: 66px; }
  .lg-header__auth { margin-left: auto; }
  .lg-burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 42px; height: 42px; flex: 0 0 42px; padding: 0; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  }
  .lg-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
  .lg-header.is-open .lg-burger { border-color: rgba(45, 140, 255, .55); }
  .lg-header.is-open .lg-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .lg-header.is-open .lg-burger span:nth-child(2) { opacity: 0; }
  .lg-header.is-open .lg-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .lg-nav,
  .lg-header .lg-nav {
    display: flex; flex-direction: column; gap: 0; justify-content: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto;
    padding: 10px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .lg-header.is-open .lg-nav { opacity: 1; visibility: visible; transform: none; }
  .lg-nav a,
  .lg-dropdown__menu a { padding: 8px 12px; border-radius: 8px; font-size: 16px; }
  .lg-nav a.is-active { background: rgba(45, 140, 255, .1); }
  .lg-nav a.is-active::after { display: none; }
  .lg-dropdown__trigger { display: none; }
  .lg-dropdown__menu,
  .lg-dropdown:hover .lg-dropdown__menu,
  .lg-dropdown.is-open .lg-dropdown__menu {
    position: static; transform: none; opacity: 1; visibility: inherit;
    min-width: 0; padding: 0; margin-top: 0; background: none; border: 0; box-shadow: none; gap: 0;
  }
  .lg-dropdown__menu::before { display: none; }
  body.lg-nav-open { overflow: hidden; }
}

@media (max-width: 520px) {
  .lg-wrap { padding: 0 16px; }
  .lg-brand__logo { height: 40px; }
  .lg-header__reg { display: none; }
  .lg-header__auth .lg-btn { padding: 9px 14px; }
  .lg-nav__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .lg-nav__auth .lg-btn--primary { color: #fff; }
  .lg-nav__auth .lg-btn { justify-content: center; text-align: center; padding: 11px 12px; font-size: 15px; }
  .lg-hdr-user { padding: 4px 10px 4px 4px; max-width: 170px; }
  .lg-hdr-user__av { width: 32px; height: 32px; flex-basis: 32px; }
}

/* section heads: title + link wrap cleanly */
.lg-section__head { gap: 10px 16px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .lg-h2 { font-size: 21px; }
  .lg-section__head > .lg-link,
  .lg-section__head > a { font-size: 13.5px; }
}

/* home KPIs: three compact tiles in a row instead of a tall stack */
@media (max-width: 640px) {
  .lg-kpis:not(.lg-uprof__grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lg-kpis:not(.lg-uprof__grid) .lg-kpi { padding: 12px 10px; gap: 4px; min-width: 0; }
  .lg-kpis:not(.lg-uprof__grid) .lg-kpi__cap { font-size: 9.5px; letter-spacing: .06em; gap: 5px; }
  .lg-kpis:not(.lg-uprof__grid) .lg-kpi__num { font-size: 26px; }
  .lg-kpis:not(.lg-uprof__grid) .lg-kpi__num small { font-size: 13px; }
  .lg-kpis:not(.lg-uprof__grid) .lg-kpi__sub { font-size: 11.5px; }
  .lg-uprof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lg-uprof__grid .lg-kpi { padding: 12px 14px; }
}
.lg-srv__cap { white-space: nowrap; }

/* CTA banner: darken the art behind the text on narrow screens */
@media (max-width: 640px) {
  .lg-cta {
    padding: 28px 20px; min-height: 150px; margin-bottom: 36px;
    background-image: linear-gradient(90deg, rgba(7, 11, 18, .88), rgba(7, 11, 18, .35)), url("../img/site/start-banner.webp");
    background-position: 70% 40%;
  }
  .lg-cta h2 { font-size: 24px; max-width: 220px; }
}

/* shop */
.lg-shop > * { min-width: 0; }
@media (max-width: 980px) {
  .lg-shop-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-shop-side > * { min-width: 0; }
}
@media (max-width: 640px) {
  .lg-shop { gap: 16px; }
  .lg-shop-side { grid-template-columns: 1fr; gap: 12px; }
  .lg-shop-cats nav { display: flex; flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .lg-shop-cats nav::-webkit-scrollbar { display: none; }
  .lg-shop-cats nav button { flex: 1 0 auto; width: auto; justify-content: center; white-space: nowrap; padding: 10px 14px; }
  .lg-shop-hero { padding: 26px 20px; min-height: 0; }
  .lg-cmp { padding: 14px 0 12px; border-radius: 12px; }
  .lg-cmp__scroll { position: relative; -webkit-overflow-scrolling: touch; }
  .lg-cmp__table { min-width: 600px; font-size: 13px; }
  .lg-cmp__table th, .lg-cmp__table td { padding: 10px 6px; }
  .lg-cmp__table tbody th,
  .lg-cmp__table thead th:first-child {
    position: sticky; left: 0; z-index: 2;
    width: 128px; min-width: 128px; max-width: 128px;
    padding-left: 14px; white-space: normal; line-height: 1.3; font-size: 12.5px;
    background: #0f1724; box-shadow: 6px 0 10px -6px rgba(0, 0, 0, .7);
  }
  .lg-cmp__name { font-size: 16px; }
  .lg-cmp__table .lg-cmp__price { font-size: 13px; padding: 2px 7px; }
  .lg-cmp__btn { padding: 7px 10px; font-size: 12px; }
}

/* user profile + cabinet */
@media (max-width: 520px) {
  .lg-ov-card__head { flex-wrap: wrap; }
  .lg-ov-wallet__cell { grid-template-columns: 1fr; gap: 4px; }
  .lg-ov-wallet__cell > .lg-btn, .lg-ov-wallet__btns { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .lg-ov-wallet__btns .lg-btn { flex: 1; text-align: center; justify-content: center; }
  .lg-ov-track { margin: 6px 22px 0 14px; height: 70px; }
  .lg-ov-track__stop b { font-size: 12px; }
  .lg-ov-track__stop small { font-size: 11.5px; }
}

/* ---------- Styled dropdowns (assets/js/select.js) ---------- */
.lg-sel {
  position: relative;
  display: block;
  width: 100%;
}
.lg-sel--inline {
  display: inline-block;
  width: auto;
}
.adm__inline > .lg-sel {
  flex: 1;
  min-width: 0;
}
.lg-sel__native {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  pointer-events: none;
}
.lg-sel__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  background: #0a0f17;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lg-sel--inline .lg-sel__btn {
  min-height: 38px;
  padding: 7px 11px;
  font-size: 13.5px;
}
.lg-sel__btn::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a96a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform 0.18s ease;
}
.lg-sel__btn:hover {
  border-color: #2b3c52;
}
.lg-sel__btn:focus-visible,
.lg-sel.is-open .lg-sel__btn {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.18);
}
.lg-sel.is-open .lg-sel__btn::after {
  transform: rotate(180deg);
}
.lg-sel__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.lg-sel__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-sel__list {
  position: fixed;
  z-index: 1000;
  max-height: 300px;
  max-width: calc(100vw - 16px);
  overflow-y: auto;
  padding: 6px;
  background: #0d1420;
  border: 1px solid #263649;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  font-family: "Exo 2", sans-serif;
}
.lg-sel__opt {
  position: relative;
  padding: 9px 12px 9px 32px;
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.lg-sel__opt.is-active {
  background: rgba(45, 140, 255, 0.14);
}
.lg-sel__opt.is-selected {
  color: var(--blue-bright);
  font-weight: 600;
}
.lg-sel__opt.is-selected::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235aa9ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.lg-sel__opt.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Paid unban / unmute ---------- */
.lg-unban-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.lg-unban-card { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; background: linear-gradient(135deg, rgba(224,83,61,.12), rgba(240,168,42,.06)), var(--panel); border: 1px solid rgba(224,83,61,.38); border-radius: var(--radius); }
.lg-unban-card--mute { background: linear-gradient(135deg, rgba(240,168,42,.12), rgba(150,110,255,.07)), var(--panel); border-color: rgba(240,168,42,.38); }
.lg-unban-card__head { display: flex; gap: 14px; align-items: flex-start; }
.lg-unban-card__icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(224,83,61,.15); color: #ff7a66; }
.lg-unban-card--mute .lg-unban-card__icon { background: rgba(240,168,42,.15); color: var(--gold); }
.lg-unban-card__icon svg { width: 26px; height: 26px; }
.lg-unban-card h3 { margin: 0 0 4px; font-family: "Oswald", sans-serif; font-size: 22px; }
.lg-unban-card p { margin: 0; font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.lg-unban-card__price { margin-left: auto; font-family: "Oswald", sans-serif; font-size: 22px; white-space: nowrap; }
.lg-unban-card__price .lg-price-now { color: var(--gold); }
.lg-unban-card__state { margin-top: auto; padding: 11px 12px; font-size: 14px; color: var(--muted-2); background: #0a0f17; border: 1px solid var(--line); border-radius: 8px; }
.lg-unban-card__state.is-hit { color: var(--text); border-color: rgba(224,83,61,.45); }
.lg-unban-card__state code { font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--blue-bright); }
.lg-unban-card__pay { width: 100%; }
.lg-unban-card__note { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .lg-unban-grid { grid-template-columns: 1fr; } }
.lg-unban-card .lg-btn { justify-content: center; }
.lg-cab__meta b.lg-cab__nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue-bright); }
.lg-unban-card__deny { font-size: 14px; color: #ff9a85; }

/* ---------- All-time statistics ---------- */
.lg-alltime__search { display: flex; gap: 8px; max-width: 520px; margin: 4px 0 16px; }
.lg-alltime__search input { flex: 1; min-width: 0; padding: 11px 14px; background: #0a0f17; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
.lg-alltime__search input:focus { outline: none; border-color: var(--blue); }
.lg-alltime__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.lg-alltime__table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.lg-alltime__table th { padding: 14px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap; }
.lg-alltime__table th a { color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.lg-alltime__table th a:hover, .lg-alltime__table th.is-sorted a { color: var(--blue-bright); }
.lg-alltime__arrow { font-size: 9px; }
.lg-alltime__table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.lg-alltime__table tbody tr:last-child td { border-bottom: none; }
.lg-alltime__table tbody tr:hover { background: var(--panel-2); }
.lg-alltime__table tr.is-mine td { background: rgba(45,140,255,.08); }
.lg-alltime__table .lg-alltime__num { text-align: center; font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 15px; }
.lg-alltime__table th.lg-alltime__num, .lg-alltime__table th.lg-alltime__place { text-align: center; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 11.5px; }
.lg-alltime__table th.lg-alltime__num a { justify-content: center; }
.lg-alltime__place { width: 52px; font-family: "Exo 2", sans-serif; font-weight: 700; color: var(--muted-2); }
.lg-alltime__name { width: 100%; }
.lg-alltime__nick { font-weight: 600; color: var(--text); max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
a.lg-alltime__nick:hover { color: var(--blue-bright); }
.lg-alltime__kdr.is-pos { color: var(--online); }
.lg-alltime__kdr.is-neg { color: #ff7a66; }
.lg-alltime__empty { text-align: center; color: var(--muted); padding: 40px 16px !important; }
@media (max-width: 520px) { .lg-alltime__search { flex-wrap: wrap; } }
.lg-alltime__pn { color: var(--muted-2); font-size: 14px; }
.lg-alltime__table td.lg-alltime__place { text-align: center; }
.lg-alltime__table th.lg-alltime__place { text-align: center; }
.lg-verified { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--blue-bright); cursor: help; }
.lg-verified svg { display: block; }

/* Cabinet on phones */
.lg-auth__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lg-auth__row input { min-width: 0; width: 100%; box-sizing: border-box; }
@media (max-width: 760px) {
  .lg-ov-game { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lg-ov-game__rank { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; font-size: 28px; }
  .lg-ov-game__body { flex: 1 1 100%; }
  .lg-ov-priv__left { display: block; grid-row: 1; grid-column: 2; justify-self: end; font-size: 13px; color: var(--muted-2); }
  .lg-ov-priv__renew { grid-row: 3; grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  .lg-tabs__nav--6 { flex-wrap: wrap; overflow: visible; }
  .lg-tabs__nav--6 .lg-tabs__btn { flex: 1 1 30%; padding: 12px 8px; font-size: 14px; }
  .lg-ov-game__rank { display: none; }
  .lg-ov-game__stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
  .lg-ov-game__stats b { font-size: 18px; }
  .lg-auth__row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* Footer on phones */
@media (max-width: 520px) {
  .lg-footer__grid { gap: 26px 16px; padding: 32px 16px 26px; }
  .lg-footer__brand { display: flex; align-items: center; gap: 16px; }
  .lg-footer__brand .lg-brand__logo { width: 72px; height: auto; }
  .lg-footer__brand .lg-muted { margin: 0; line-height: 1.5; }
  .lg-footer__online { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; padding: 14px 16px; background: #0b121d; border: 1px solid var(--line); border-radius: var(--radius); }
  .lg-footer__online h4 { grid-column: 1 / -1; margin-bottom: 8px; }
  .lg-footer__online .lg-fspark { min-width: 0; }
  .lg-footer__online .lg-spark--sm { width: 100%; height: 44px; }
  .lg-footer__bar-inner { flex-direction: column; align-items: center; text-align: center; padding: 16px 16px 20px; gap: 10px; font-size: 12.5px; }
  .lg-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
  .lg-footer__legal a { margin-left: 0; }
}

/* Shop on phones: privilege cards instead of the comparison table */
.lg-pcards { display: none; }
@media (max-width: 640px) {
  .lg-shop-pay ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lg-shop-pay ul { gap: 8px; }
  .lg-shop-pay li { gap: 8px; }
  .lg-shop-pay__ico { flex: 0 0 40px; width: 40px; height: 30px; }
  .lg-shop-pay__ico svg { width: 34px; height: 23px; }
  .lg-shop-pay__txt b { font-size: 13px; white-space: nowrap; }
  .lg-shop-pay__txt small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .lg-cmp { display: none; }
  .lg-pcards { display: flex; flex-direction: column; gap: 12px; }
  .lg-pcard { position: relative; padding: 16px; border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--pa) 8%, var(--panel-2)), var(--panel)); border: 1px solid color-mix(in srgb, var(--pa) 30%, var(--line)); }
  .lg-pcard.is-hot { border-color: var(--pa); box-shadow: 0 10px 30px -18px var(--pa); }
  .lg-pcard__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
  .lg-pcard__name { font-family: "Oswald", sans-serif; font-size: 21px; font-weight: 700; color: var(--pa); }
  .lg-pcard__badge { padding: 3px 8px; border-radius: 20px; background: var(--pa); color: #071018; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .lg-pcard__price { margin-left: auto; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--pa) 16%, transparent); border: 1px solid color-mix(in srgb, var(--pa) 45%, transparent); font-family: "Oswald", sans-serif; font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
  .lg-pcard__list { list-style: none; margin: 0; padding: 6px 0 4px; }
  .lg-pcard__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--muted-2); border-bottom: 1px dashed var(--line-soft); }
  .lg-pcard__list li:last-child { border-bottom: 0; }
  .lg-pcard__list b { color: #fff; font-weight: 700; white-space: nowrap; }
  .lg-pcard__list .lg-pcard__yes { color: var(--pa); font-size: 16px; }
  .lg-pcard__btn { width: 100%; justify-content: center; margin-top: 8px; padding: 11px; }
}
@media (max-width: 380px) {
  .lg-shop-pay li { gap: 6px; }
  .lg-shop-pay__ico { flex-basis: 34px; width: 34px; height: 26px; }
  .lg-shop-pay__ico svg { width: 28px; height: 19px; }
  .lg-shop-pay__txt b { font-size: 12px; }
  .lg-shop-pay__txt small { font-size: 10.5px; }
}

/* All-time stats on phones */
@media (max-width: 640px) {
  .lg-alltime__table { font-size: 12.5px; min-width: 560px; }
  .lg-alltime__table th, .lg-alltime__table th.lg-alltime__num, .lg-alltime__table th.lg-alltime__place { padding: 10px 8px; font-size: 10.5px; letter-spacing: .06em; }
  .lg-alltime__table td { padding: 8px 8px; }
  .lg-alltime__table .lg-alltime__num { font-size: 13px; }
  .lg-alltime__nick { max-width: 150px; font-size: 13px; }
  .lg-alltime__table .lg-statbl__medal { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }
  .lg-alltime__table .lg-rankbadge { font-size: 11px; padding: 3px 8px; }
  .lg-verified svg { width: 14px; height: 14px; }
}

/* Forum topic list on phones */
.lg-topics__meta { display: none; }
@media (max-width: 680px) {
  .lg-topics__head { display: none; }
  .lg-topics__row { display: block; padding: 14px 16px; }
  .lg-topics__row > .lg-topics__num, .lg-topics__row > .lg-topics__last { display: none; }
  .lg-topics__main { gap: 5px; }
  .lg-topics__title { font-size: 16px; line-height: 1.3; }
  .lg-topics__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12.5px; color: var(--muted-2); }
  .lg-topics__meta > span { display: inline-flex; align-items: center; gap: 5px; }
  .lg-topics__meta svg { width: 14px; height: 14px; color: var(--muted); }
}

/* Topic header tools */
.lg-topic-tools { flex-wrap: wrap; gap: 10px; }
.lg-topic-meta { display: inline-flex; gap: 14px; margin-right: 6px; font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 14px; color: var(--muted-2); }
.lg-topic-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.lg-topic-meta svg { width: 16px; height: 16px; color: var(--muted); }
.lg-topic-tools form { margin: 0; }
.lg-topic-act { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px; background: #0f1724; border: 1px solid var(--line); color: var(--muted-2); font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; }
.lg-topic-act:hover { color: #fff; border-color: rgba(45, 140, 255, .55); background: rgba(45, 140, 255, .08); }
.lg-topic-act svg { width: 14px; height: 14px; color: var(--blue-bright); }
@media (max-width: 680px) {
  .lg-topic-head { gap: 14px; }
  .lg-topic-head .lg-h2 { font-size: 22px; line-height: 1.25; }
  .lg-topic-tools { width: 100%; gap: 8px; }
  .lg-topic-meta { width: 100%; margin: 0 0 2px; }
  .lg-topic-tools form { flex: 1; }
  .lg-topic-act { width: 100%; justify-content: center; padding: 9px 10px; font-size: 13.5px; }
  .lg-post__side { justify-content: flex-start; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
  .lg-post__av { width: 40px; height: 40px; }
  .lg-post__userstats { margin: 0 0 0 auto; }
}

/* Banlist cards on phones */
@media (max-width: 820px) {
  .lg-banbl__row {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas: "player player type" "reason reason reason" "admin when left";
    gap: 10px 12px; padding: 14px 16px;
  }
  .lg-banbl__player { grid-area: player; }
  .lg-banbl__type { grid-area: type; justify-self: end; align-self: start; }
  .lg-banbl__reason { grid-area: reason; white-space: normal; color: var(--text); font-size: 13.5px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-soft); }
  .lg-banbl__admin { grid-area: admin; }
  .lg-banbl__when { grid-area: when; }
  .lg-banbl__left { grid-area: left; text-align: right; }
  .lg-banbl__admin, .lg-banbl__when, .lg-banbl__left { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
  .lg-banbl__admin::before, .lg-banbl__when::before, .lg-banbl__left::before { font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .lg-banbl__admin::before { content: "Адмін"; }
  .lg-banbl__when::before { content: "Видано"; }
  .lg-banbl__left::before { content: "Залишилось"; }
  .lg-banbl__name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lg-banlist-page .lg-statnote { padding: 14px 16px; gap: 14px; }
}

/* ---------- Rules (new layout preview) ---------- */
.rn { padding: 34px 0 60px; }
.rn-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(45,140,255,.14), transparent 55%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.rn-hero h1 { margin: 0 0 8px; font-family: "Oswald", sans-serif; font-size: 38px; line-height: 1.1; }
.rn-hero p { margin: 0; max-width: 560px; color: var(--muted-2); font-size: 15px; line-height: 1.6; }
.rn-search { position: relative; flex: 0 0 300px; }
.rn-search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rn-search input { width: 100%; box-sizing: border-box; padding: 12px 14px 12px 40px; border-radius: 10px; border: 1px solid var(--line); background: #0a0f17; color: var(--text); font: inherit; font-size: 14.5px; }
.rn-search input:focus { outline: none; border-color: rgba(45,140,255,.6); box-shadow: 0 0 0 3px rgba(45,140,255,.15); }

.rn-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 34px; }
.rn-key { --k: var(--blue-bright); display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; transition: .15s; }
.rn-key::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k); }
.rn-key:hover { border-color: color-mix(in srgb, var(--k) 50%, var(--line)); transform: translateY(-1px); }
.rn-key b { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; color: var(--text); }
.rn-key span { font-size: 13px; color: var(--k); font-weight: 600; }
.rn-key--red { --k: #ff7a66; } .rn-key--gold { --k: var(--gold); } .rn-key--violet { --k: #b48bff; }

.rn-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.rn-toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.rn-toc nav { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.rn-toc__title { margin: 0 0 8px; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rn-toc nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted-2); font-size: 14px; transition: .15s; }
.rn-toc nav a svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted); }
.rn-toc nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.rn-toc nav a.is-on { color: #fff; background: rgba(45,140,255,.1); }
.rn-toc nav a.is-on svg { color: var(--blue-bright); }
.rn-toc nav a.is-on::before { content: ""; position: absolute; left: -13px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--blue-bright); }
.rn-toc__appeal { justify-content: center; text-align: center; }

.rn-main { max-width: 780px; }
.rn-sec { scroll-margin-top: 90px; padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line-soft); }
.rn-sec:last-of-type { border-bottom: 0; }
.rn-sec__h { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 25px; line-height: 1.2; color: #fff; }
.rn-sec__ico { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: rgba(45,140,255,.12); border: 1px solid rgba(45,140,255,.3); color: var(--blue-bright); }
.rn-sec__ico svg { width: 21px; height: 21px; }
.rn-sec__ico--red { background: rgba(224,83,61,.12); border-color: rgba(224,83,61,.35); color: #ff7a66; }
.rn-sec__n { color: var(--muted); font-weight: 500; }

.rn-list { list-style: none; margin: 0; padding: 0; }
.rn-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px; padding: 13px 12px 13px 0; border-radius: 10px; scroll-margin-top: 100px; transition: background .6s; }
.rn-item + .rn-item { border-top: 1px solid rgba(255,255,255,.04); }
.rn-item.is-flash { background: rgba(45,140,255,.12); transition: none; }
.rn-item__n { align-self: start; margin-top: 2px; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 15px; color: var(--blue-bright); text-align: right; padding-right: 14px; position: relative; }
.rn-item__n:hover { color: #fff; }
.rn-item__n:hover::after { content: "#"; position: absolute; right: 2px; color: var(--muted); }
.rn-item__body p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #d5dbe6; }
.rn-item__small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.rn-sub { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.rn-sub li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.55; color: var(--muted-2); }
.rn-sub li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); }
.rn-sub b { color: var(--muted); font-weight: 600; margin-right: 2px; }

.rn-pens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rn-pens__arr { font-style: normal; color: var(--muted); font-size: 13px; }
.rn-pen { --c: #8b98ab; padding: 4px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.rn-pen--mute { --c: var(--gold); }
.rn-pen--kick { --c: #ff9a4a; }
.rn-pen--ban { --c: #ff6a55; }
.rn-pen--perm { --c: #ff4d6d; background: color-mix(in srgb, #ff4d6d 20%, transparent); }

.rn-alert { margin: 8px 0; padding: 14px 18px; border-radius: 10px; font-size: 15px; line-height: 1.6; }
.rn-alert p { margin: 0 0 6px; }
.rn-alert--red { text-align: center; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .03em; color: #ff8a78; background: rgba(224,83,61,.1); border: 1px solid rgba(224,83,61,.35); }
.rn-alert--blue { background: rgba(45,140,255,.07); border: 1px solid rgba(45,140,255,.25); color: #d5dbe6; }
.rn-alert small { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted-2); }
.rn-roles { display: flex; flex-direction: column; gap: 3px; }

.rn-intro { margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: var(--muted-2); }
.rn-h3 { margin: 22px 0 6px; padding-left: 12px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 18px; border-left: 3px solid; }
.rn-h3--ok { color: #6fe0a0; border-color: #3ccf7a; }
.rn-h3--bad { color: #ff8a78; border-color: #e0533d; }
.rn-note { margin: 16px 0 0; padding: 13px 16px; border-radius: 10px; background: rgba(240,168,42,.08); border: 1px solid rgba(240,168,42,.3); color: #f3c877; font-size: 14.5px; line-height: 1.55; }
.rn-note--red { background: rgba(224,83,61,.08); border-color: rgba(224,83,61,.35); color: #ff9a8a; }

.rn-fold > summary { cursor: pointer; list-style: none; margin: 0; }
.rn-fold > summary::-webkit-details-marker { display: none; }
.rn-fold__hint { margin-left: auto; flex: 0 0 auto; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line); font-family: "Exo 2", sans-serif; font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.rn-fold__hint::after { content: " ▾"; }
.rn-fold[open] .rn-fold__hint { font-size: 0; padding: 5px 10px; }
.rn-fold[open] .rn-fold__hint::after { content: "згорнути ▴"; font-size: 12.5px; }
.rn-fold[open] > summary { margin-bottom: 18px; }

.rn-maps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rn-maps span { padding: 4px 10px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line); font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 13.5px; color: var(--muted-2); }
.rn-foot { color: var(--muted); font-size: 14px; }
.rn-empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.rn-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; padding: 10px 18px; border-radius: 10px; background: #13223a; border: 1px solid rgba(45,140,255,.5); color: #fff; font-size: 14px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.8); }

@media (max-width: 1023px) {
  .rn-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rn-toc { position: sticky; top: 66px; z-index: 20; margin: 0 -16px 22px; padding: 10px 16px; background: rgba(8,12,19,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
  .rn-toc nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-left: 0; padding-left: 0; gap: 6px; }
  .rn-toc nav::-webkit-scrollbar { display: none; }
  .rn-toc__title, .rn-toc__appeal { display: none; }
  .rn-toc nav a { flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; }
  .rn-toc nav a.is-on::before { display: none; }
  .rn-toc nav a.is-on { border-color: rgba(45,140,255,.55); }
  .rn-main { max-width: none; }
  .rn-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
}
@media (max-width: 640px) {
  .rn { padding-top: 18px; }
  .rn-hero { flex-direction: column; align-items: stretch; padding: 20px 18px; }
  .rn-hero h1 { font-size: 28px; }
  .rn-hero p { font-size: 14px; }
  .rn-search { flex: none; }
  .rn-keys { gap: 8px; }
  .rn-key { padding: 11px 12px 11px 14px; }
  .rn-key b { font-size: 15px; }
  .rn-key span { font-size: 12px; }
  .rn-sec__h { font-size: 20px; gap: 10px; }
  .rn-sec__ico { flex-basis: 36px; height: 36px; }
  .rn-sec__ico svg { width: 18px; height: 18px; }
  .rn-item { grid-template-columns: 40px minmax(0, 1fr); padding-right: 0; }
  .rn-item__n { font-size: 13.5px; padding-right: 8px; }
  .rn-item__body p { font-size: 14.5px; line-height: 1.6; }
  .rn-fold__hint { display: none; }
}

/* ---------- File inputs (media.js) ---------- */
.lg-file { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lg-file__drop {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1.5px dashed #26374f; border-radius: 10px;
  background: linear-gradient(180deg, rgba(45,140,255,.04), rgba(45,140,255,0)) , #0a0f17;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.lg-file__drop:hover, .lg-file__drop.is-over, .lg-file__drop:focus-within {
  border-color: var(--blue); background-color: #0c1626; box-shadow: 0 0 0 3px rgba(45,140,255,.12);
}
.lg-file__drop.is-over { border-style: solid; }
.lg-file__icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  color: var(--blue-bright); background: rgba(45,140,255,.1); border: 1px solid rgba(45,140,255,.25);
}
.lg-file__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.35; }
.lg-file__text b { color: var(--text); font-weight: 600; font-size: 14px; }
.lg-file__text span { color: var(--muted-2); }
.lg-file__text u { color: var(--blue-bright); text-decoration: none; border-bottom: 1px solid rgba(78,163,255,.4); }
.lg-file .lg-file__drop input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; border: 0; font-size: 0;
}
.lg-file__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lg-file__list:empty { display: none; }
.lg-file__item {
  display: flex; align-items: center; gap: 7px; padding: 6px 4px 6px 10px; min-width: 0;
  background: #0d1520; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: default;
}
.lg-file__ico { color: var(--blue-bright); display: inline-flex; }
.lg-file__name { flex: 1 1 auto; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-file__size { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
@media (max-width: 1100px) { .lg-file__size { display: none; } }
.lg-file__rm {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted-2); font-size: 18px; line-height: 1;
}
.lg-file__rm:hover { background: rgba(224,83,61,.15); color: #ff7a63; }

/* ---------- Lightbox (media.js) ---------- */
.lg-lb-lock body { overflow: hidden; }
.lg-lb {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(3,6,11,.92); backdrop-filter: blur(4px);
}
.lg-lb.is-open { display: flex; animation: lgLbIn .15s ease; }
@keyframes lgLbIn { from { opacity: 0; } to { opacity: 1; } }
.lg-lb__stage { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 80px; box-sizing: border-box; }
.lg-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lg-lb__close, .lg-lb__nav {
  position: absolute; z-index: 1; border: 1px solid var(--line); background: rgba(14,20,31,.85); color: var(--text);
  cursor: pointer; display: grid; place-items: center; transition: .15s ease;
}
.lg-lb__close:hover, .lg-lb__nav:hover { border-color: var(--blue); color: #fff; background: rgba(45,140,255,.2); }
.lg-lb__close { top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 10px; padding: 0; }
.lg-lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 12px; padding: 0; }
.lg-lb__close svg, .lg-lb__nav svg { display: block; }
.lg-lb__nav--prev { left: 16px; }
.lg-lb__nav--next { right: 16px; }
.lg-lb__nav[hidden], .lg-lb .lg-lb__count[hidden] { display: none; }
.lg-lb__count {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 20px; background: rgba(14,20,31,.85); border: 1px solid var(--line);
  color: var(--muted-2); font-size: 13px; font-family: "Exo 2", sans-serif;
}
@media (max-width: 640px) {
  .lg-lb__stage { padding: 64px 8px 72px; }
  .lg-lb__nav { width: 44px; height: 44px; top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; }
  .lg-lb__count { bottom: max(14px, env(safe-area-inset-bottom)); height: 44px; display: flex; align-items: center; padding: 0 14px; }
  .lg-lb__nav--prev { left: 14px; }
  .lg-lb__nav--next { right: 14px; }
  .lg-file__drop { padding: 12px; gap: 12px; }
  .lg-file__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Topic title badges: icon-only, tooltip carries the meaning. */
.lg-topic-badge {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  vertical-align: middle; position: relative; top: -2px; margin: 0;
}
/* The h1 is a flex row with a 12px gap; pull paired badges to 6px apart. */
.lg-topic-badge + .lg-topic-badge { margin-left: -6px; }
.lg-topic-head .lg-topic-badge { flex: 0 0 auto; align-self: center; top: 0; }
.lg-topic-badge svg { width: 17px; height: 17px; }
.lg-topic-badge--pin { color: var(--gold); background: rgba(240,168,42,.1); border: 1px solid rgba(240,168,42,.3); }
.lg-topic-badge--lock { color: #ff7a66; background: rgba(224,83,61,.12); border: 1px solid rgba(224,83,61,.35); }
.lg-closed-note { display: flex; align-items: center; justify-content: center; gap: 8px; }
.lg-closed-note svg { width: 16px; height: 16px; color: #ff7a66; flex: 0 0 auto; }
@media (max-width: 680px) {
  .lg-topic-badge { width: 28px; height: 28px; border-radius: 8px; }
  .lg-topic-badge svg { width: 15px; height: 15px; }
}

/* Last donors list (home, next to top donors) */
/* Avatar rows match the height of the ranked list next to them. */
.lg-donors--panel.lg-donors--last li { grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 12px; padding: 7px 0; }
.lg-donors__av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border: 1px solid rgba(78,163,255,.35);
}
.lg-donors--last .lg-donors__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-donors__ago { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Contacts page */
.lg-contacts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.lg-contacts__card { flex-direction: row; align-items: center; gap: 16px; padding: 20px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.lg-contacts__card:hover { border-color: rgba(45, 140, 255, .5); transform: translateY(-2px); }
.lg-contacts__ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--blue-bright); background: rgba(45, 140, 255, .1); border: 1px solid rgba(45, 140, 255, .25); }
.lg-contacts__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lg-contacts__body b { font-family: "Exo 2", sans-serif; font-size: 16px; color: #fff; }
.lg-contacts__body small { font-size: 13px; color: var(--muted-2); }
.lg-contacts__link { margin-top: 4px; font-weight: 600; color: var(--blue-bright); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-contacts .lg-rules__num { font-size: 15px; }
@media (max-width: 720px) {
  .lg-contacts__grid { grid-template-columns: 1fr; }
  }
.lg-dropdown__menu a.is-active::after { display: none; }
.lg-faq { display: flex; flex-direction: column; gap: 10px; }
.lg-faq__item { border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .015); transition: border-color .15s ease, background .15s ease; }
.lg-faq__item:hover { border-color: rgba(45, 140, 255, .35); }
.lg-faq__item[open] { border-color: rgba(45, 140, 255, .45); background: rgba(45, 140, 255, .05); }
.lg-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; font-weight: 600; font-size: 15px; color: #fff; }
.lg-faq__item summary::-webkit-details-marker { display: none; }
.lg-faq__chev { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; background: rgba(45, 140, 255, .1); position: relative; transition: transform .2s ease, background .15s ease; }
.lg-faq__chev::before { content: ""; position: absolute; left: 10px; top: 8px; width: 7px; height: 7px; border-right: 2px solid var(--blue-bright); border-bottom: 2px solid var(--blue-bright); transform: rotate(45deg); }
.lg-faq__item[open] .lg-faq__chev { transform: rotate(180deg); background: rgba(45, 140, 255, .2); }
.lg-faq__a { padding: 0 18px 16px; color: var(--muted-2); line-height: 1.65; }
.lg-faq__a a { color: var(--blue-bright); }
.lg-faq__a a:hover { text-decoration: underline; }
.lg-faq__a code { font-family: Consolas, monospace; background: rgba(45, 140, 255, .1); color: var(--blue-bright); padding: 1px 6px; border-radius: 4px; }
.lg-faq__a b { color: var(--text); }
@media (max-width: 720px) {
  .lg-faq__item summary { padding: 13px 14px; font-size: 14px; }
  .lg-faq__a { padding: 0 14px 14px; }
}

/* ---------- Site chat (home global chat + cabinet DMs) ---------- */
.lg-chatbox { position: relative; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #101826, #0b111b); overflow: hidden; font-family: "Exo 2", sans-serif; }
.lg-chatbox--global { height: 520px; }
.lg-gchat .lg-chat__list { padding: 14px 14px 10px; }
.lg-chatbox--global .lg-chat__list { display: flex; flex-direction: column; }
.lg-cm--skel .lg-cm__body { display: flex; flex-direction: column; gap: 7px; padding-top: 3px; }
.lg-cm--skel i, .lg-conv--skel i { display: block; height: 11px; border-radius: 6px; width: 40%; }
.lg-cm--skel i + i, .lg-conv--skel i + i { width: 70%; }
.lg-cm--skel .lg-chat__av, .lg-cm--skel i, .lg-conv--skel .lg-chat__av, .lg-conv--skel i { background-image: linear-gradient(90deg, #141d2b 0%, #1d2939 50%, #141d2b 100%); background-size: 200% 100%; animation: lgChatSkel 1.2s ease-in-out infinite; border-color: transparent; }
.lg-dmbox { flex-direction: row; height: 600px; }
.lg-dmbox__side { flex: 0 0 290px; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .12); }
.lg-dmbox__cap { padding: 14px 16px 10px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--line-soft); }
.lg-dmbox__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-dmbox__placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.lg-dmbox__placeholder[hidden] { display: none; }
.lg-dmbox__placeholder svg { color: #2a3a52; }
.lg-dmbox .lg-chat__back { display: none; }
.lg-conv.is-active { background: rgba(45, 140, 255, .12); }
.lg-hdr-msg { position: relative; flex: 0 0 auto; width: 42px; height: 42px; margin-right: 10px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted-2); transition: color .15s, border-color .15s, background .15s; }
.lg-hdr-msg:hover { color: #fff; border-color: rgba(45, 140, 255, .5); background: rgba(45, 140, 255, .08); }
.lg-hdr-msg__badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger, #ff5a46); color: #fff; font: 700 11px/20px "Exo 2", sans-serif; text-align: center; border: 2px solid var(--bg, #070b12); }
.lg-hdr-msg__badge[hidden], .lg-tabs__dot[hidden] { display: none; }
.lg-chat__view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lg-chat__view[hidden] { display: none; }
.lg-chat__list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px 8px; overscroll-behavior: contain; }
.lg-chat__list::-webkit-scrollbar, .lg-chat__convs::-webkit-scrollbar { width: 6px; }
.lg-chat__list::-webkit-scrollbar-thumb, .lg-chat__convs::-webkit-scrollbar-thumb { background: #223044; border-radius: 3px; }
.lg-chat__empty { margin: auto; padding: 30px 20px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.lg-chat__av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #1a2433 center / cover no-repeat; border: 1px solid var(--line); }
.lg-chat__jump { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(45, 140, 255, .5); background: #13233b; color: var(--blue-bright); font: 600 12.5px "Exo 2", sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }

/* global messages */
.lg-cm { position: relative; display: flex; gap: 10px; padding: 6px 8px; margin-top: 6px; border-radius: 10px; }
.lg-cm.is-grouped { margin-top: 0; padding-top: 1px; }
.lg-cm.is-grouped .lg-cm__av { visibility: hidden; height: 0; }
.lg-cm:hover { background: rgba(255, 255, 255, .03); }
.lg-cm__body { flex: 1; min-width: 0; }
.lg-cm__head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 2px; }
.lg-cm__name { font-weight: 700; font-size: 13.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-cm.is-mine .lg-cm__name { color: var(--blue-bright); }
.lg-cm__role { flex: 0 0 auto; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.lg-cm__role--owner { background: rgba(240, 168, 42, .16); color: var(--gold); }
.lg-cm__role--moderator { background: rgba(52, 211, 107, .14); color: var(--online); }
.lg-cm__time { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.lg-cm__text { font-size: 14px; line-height: 1.45; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-cm__text.is-deleted, .lg-dm__text.is-deleted { font-style: italic; color: var(--muted); }
.lg-cm__quote { display: flex; flex-direction: column; margin: 3px 0 4px; padding: 4px 9px; border-left: 2px solid var(--blue); border-radius: 0 6px 6px 0; background: rgba(45, 140, 255, .07); font-size: 12.5px; }
.lg-cm__quote b { color: var(--blue-bright); font-weight: 600; }
.lg-cm__quote span { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-cm__rxs { display: flex; flex-wrap: wrap; gap: 4px; }
.lg-cm__rxs:not(:empty) { margin-top: 5px; }
.lg-cm__rx { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font-size: 12.5px; cursor: pointer; }
.lg-cm__rx.is-mine { border-color: rgba(45, 140, 255, .6); background: rgba(45, 140, 255, .15); }
.lg-cm__tools { position: absolute; top: -10px; right: 8px; display: none; gap: 2px; padding: 3px; border-radius: 8px; border: 1px solid var(--line); background: #141e2d; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.lg-cm:hover .lg-cm__tools, .lg-cm:focus-within .lg-cm__tools { display: flex; }
.lg-cm__tool { width: 28px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--muted-2); display: grid; place-items: center; cursor: pointer; }
.lg-cm__tool:hover { background: rgba(45, 140, 255, .14); color: var(--blue-bright); }
.lg-cm__tool.is-danger:hover { background: rgba(224, 83, 61, .14); color: #ff7a66; }
.lg-chat__pop { position: absolute; z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; max-width: 220px; padding: 5px; border-radius: 10px; border: 1px solid var(--line); background: #141e2d; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.lg-chat__pop button { padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: 500 13px "Exo 2", sans-serif; text-align: left; cursor: pointer; white-space: nowrap; }
.lg-chat__pop:not(:has(.is-emoji)) { flex-direction: column; }
.lg-chat__pop button.is-emoji { padding: 5px 7px; font-size: 19px; }
.lg-chat__pop button:hover { background: rgba(45, 140, 255, .15); }

/* conversations */
.lg-chat__convs { flex: 1; overflow-y: auto; padding: 6px; }
.lg-conv { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; cursor: pointer; font-family: inherit; }
.lg-conv:hover { background: rgba(255, 255, 255, .04); }
.lg-conv .lg-chat__av { flex-basis: 42px; width: 42px; height: 42px; }
.lg-conv__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-conv__mid b { font-size: 14px; color: #fff; }
.lg-conv__mid span { font-size: 13px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-conv.is-unread .lg-conv__mid span { color: var(--text); font-weight: 600; }
.lg-conv__side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.lg-conv__side small { font-size: 11px; color: var(--muted); }
.lg-conv__side i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font: 700 11px/20px "Exo 2", sans-serif; text-align: center; }

/* thread */
.lg-chat__thead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.lg-chat__back { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted-2); display: grid; place-items: center; cursor: pointer; }
.lg-chat__back:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lg-chat__tuser { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; color: #fff; }
.lg-chat__tuser b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-chat__tblock { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--muted-2); font: 500 12px "Exo 2", sans-serif; cursor: pointer; }
.lg-chat__tblock:hover, .lg-chat__tblock.is-on { border-color: rgba(224, 83, 61, .5); color: #ff7a66; }
.lg-chat__view.is-loading .lg-chat__tblock { visibility: hidden; }
.lg-chat__view.is-loading [data-chat-tname]:empty { display: inline-block; width: 110px; height: 12px; border-radius: 6px; }
.lg-chat__view.is-loading [data-chat-tname]:empty, .lg-chat__view.is-loading .lg-chat__tuser .lg-chat__av:not([style*="url"]), .lg-dm--skel { background-image: linear-gradient(90deg, #141d2b 0%, #1d2939 50%, #141d2b 100%) !important; background-size: 200% 100% !important; animation: lgChatSkel 1.2s ease-in-out infinite; }
.lg-dm--skel { width: 46%; height: 34px; border: 0 !important; }
.lg-dm--skel:nth-child(3n) { width: 62%; }
.lg-dm--skel:nth-child(4n) { width: 34%; }
@keyframes lgChatSkel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.lg-chat__list--dm { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.lg-dm { max-width: 80%; align-self: flex-start; padding: 8px 11px 6px; border-radius: 14px 14px 14px 4px; background: #172234; }
.lg-dm.is-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(180deg, #2a7fe6, #1c62c0); }
.lg-dm__text { font-size: 14px; line-height: 1.45; color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-dm__meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 10.5px; color: rgba(255, 255, 255, .55); }
.lg-dm__tick::before { content: "✓"; }
.lg-dm.is-read .lg-dm__tick::before { content: "✓✓"; color: #bfe0ff; }

/* composer */
.lg-chat__foot { border-top: 1px solid var(--line); padding: 10px; background: rgba(0, 0, 0, .15); }
.lg-chat__foot[hidden] { display: none; }
.lg-chat__replybar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-left: 2px solid var(--blue); border-radius: 0 8px 8px 0; background: rgba(45, 140, 255, .08); font-size: 12.5px; color: var(--muted-2); }
.lg-chat__replybar[hidden] { display: none; }
.lg-chat__replybar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-chat__replybar b { color: var(--blue-bright); }
.lg-chat__replybar button { border: 0; background: none; color: var(--muted-2); font-size: 18px; cursor: pointer; }
.lg-chat__err { margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(224, 83, 61, .12); color: #ff8a78; font-size: 12.5px; }
.lg-chat__err[hidden] { display: none; }
.lg-chat__form { display: flex; align-items: flex-end; gap: 8px; }
.lg-chat__form textarea { flex: 1; min-width: 0; max-height: 120px; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #0a0f17; color: var(--text); font: 14px/1.4 "Exo 2", sans-serif; outline: none; }
.lg-chat__form textarea:focus { border-color: rgba(45, 140, 255, .6); }
.lg-chat__form textarea:disabled { opacity: .7; }
.lg-chat__form textarea { overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #2a3a52 #0a0f17; }
.lg-chat__note { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 11px; border-radius: 8px; background: rgba(240, 168, 42, .1); border: 1px solid rgba(240, 168, 42, .25); color: var(--gold); font-size: 12.5px; line-height: 1.4; }
.lg-chat__note::before { content: "🔇"; }
.lg-chat__note[hidden] { display: none; }
.lg-chat__send { flex: 0 0 42px; width: 42px; height: 42px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #3b97ff, #1767d1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lg-chat__send:hover { filter: brightness(1.1); }
.lg-chat__login { display: block; padding: 11px; border-radius: 10px; border: 1px dashed rgba(45, 140, 255, .45); color: var(--blue-bright); text-align: center; font-weight: 600; font-size: 14px; }
.lg-chat__login:hover { background: rgba(45, 140, 255, .08); }

@media (max-width: 760px) {
  .lg-dmbox { height: 70vh; height: 70dvh; min-height: 460px; }
  .lg-dmbox__side { flex: 1 1 auto; border-right: 0; }
  .lg-dmbox__main { display: none; }
  .lg-dmbox.is-thread .lg-dmbox__side { display: none; }
  .lg-dmbox.is-thread .lg-dmbox__main { display: flex; }
  .lg-dmbox .lg-chat__back { display: grid; }
}
@media (max-width: 560px) {
  .lg-chatbox--global { height: 460px; }
  .lg-cm:hover .lg-cm__tools { display: none; }
  .lg-cm.is-active { background: rgba(45, 140, 255, .07); }
  .lg-cm.is-active .lg-cm__tools { display: flex; top: -14px; }
  .lg-cm__tool { width: 34px; height: 32px; }
  .lg-cm__tool svg { width: 18px; height: 18px; }
}

/* cabinet: message settings */
.lg-msgset__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line-soft); }
.lg-msgset__row:first-of-type { padding-top: 0; }
.lg-msgset__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lg-msgset__text > b { font-size: 15px; color: #fff; }
.lg-msgset__text .lg-muted { font-size: 13px; line-height: 1.5; }
.lg-msgset__ctl { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.lg-msgset__ctl form { margin: 0; }
.lg-msgset__ctl select { min-width: 190px; }
.lg-msgset__blocked { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.lg-msgset__blocked > b { font-size: 15px; color: #fff; }
.lg-msgset__buser { display: flex; align-items: center; gap: 10px; margin: 0; }
.lg-msgset__av { width: 28px; height: 28px; border-radius: 50%; background: #1a2433 center / cover no-repeat; }
.lg-msgset__bname { flex: 1; min-width: 0; color: var(--text); }
.lg-msgset__buser .lg-link { border: 0; background: none; cursor: pointer; font: inherit; color: var(--blue-bright); }
.lg-switch { position: relative; width: 46px; height: 26px; border-radius: 13px; border: 1px solid var(--line); background: #1a2433; cursor: pointer; padding: 0; transition: background .15s ease; }
.lg-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted-2); transition: transform .15s ease, background .15s ease; }
.lg-switch.is-on { background: rgba(45, 140, 255, .35); border-color: rgba(45, 140, 255, .6); }
.lg-switch.is-on span { transform: translateX(20px); background: #fff; }
.lg-btn--sm { padding: 8px 14px; font-size: 13px; }
.lg-btn--tg { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #33a7e3, #1f86c4); border: 1px solid #33a7e3; color: #fff; }
.lg-btn--tg:hover { filter: brightness(1.08); }
@media (max-width: 640px) {
  .lg-msgset__row { flex-direction: column; align-items: stretch; }
  .lg-msgset__ctl select { width: 100%; }
}
.lg-uprof__write { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Profile action row: friend + write share the width, admin is an icon square. */
.lg-uprof__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; width: 100%; }
.lg-uprof__actions > form { flex: 1 1 0; min-width: 0; margin: 0; display: flex; }
.lg-uprof__actions > form .lg-btn,
.lg-uprof__actions > .lg-btn:not(.lg-uprof__admin),
.lg-uprof__actions > .lg-member__friend,
.lg-uprof__actions > .lg-member__pending { flex: 1 1 0; min-width: 0; width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.lg-uprof__actions > .lg-member__friend, .lg-uprof__actions > .lg-member__pending { padding-top: 0; padding-bottom: 0; }
.lg-uprof__actions .lg-uprof__admin { order: 10; flex: 1 0 100%; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lg-uprof__actions .lg-uprof__admin svg { width: 18px; height: 18px; }
.lg-uprof__actions .lg-uprof__write svg { flex: 0 0 16px; width: 16px; height: 16px; }
.lg-uprof__actions > .lg-member__pending, .lg-uprof__actions > .lg-member__friend { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.lg-footer__copy { line-height: 1.6; }
.lg-footer__seller { font-size: .92em; opacity: .75; }

/* ---------- Auth pages: split screen ---------- */
.lg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.lg-split__art {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px 56px;
  box-sizing: border-box;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.35) 0%, rgba(7, 11, 18, 0.55) 45%, rgba(7, 11, 18, 0.96) 100%),
    linear-gradient(110deg, rgba(45, 140, 255, 0.28), transparent 55%),
    url("../img/site/hero-banner.webp") 35% center/cover no-repeat;
}
.lg-split__art::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(78, 163, 255, 0.5), transparent);
}
.lg-split__logo img {
  display: block;
  width: 84px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(45, 140, 255, 0.35));
}
.lg-split__copy {
  max-width: 460px;
}
.lg-split__copy h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.lg-split__copy p {
  margin: 0 0 22px;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.6;
}
.lg-split__copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lg-split__copy li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text);
}
.lg-split__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat;
  box-shadow: 0 0 10px rgba(45, 140, 255, 0.5);
}
.lg-split__main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 48px 48px;
  box-sizing: border-box;
  background: radial-gradient(70% 50% at 50% 0%, rgba(45, 140, 255, 0.08), transparent 70%);
}
.lg-split__back {
  position: absolute;
  top: 28px;
  right: 40px;
  font-size: 14px;
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.15s;
}
.lg-split__back:hover {
  color: var(--text);
}
.lg-split__inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.lg-authpage .lg-auth {
  padding: 0;
  display: block;
}
.lg-authpage .lg-auth__card {
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.lg-authpage .lg-flash {
  margin: 0 0 18px;
}
.lg-auth__lblrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.lg-auth__forgot {
  font-size: 13px;
  color: var(--blue-bright);
  text-decoration: none;
}
.lg-auth__forgot:hover {
  text-decoration: underline;
}
.lg-auth__note {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  margin: 4px 0 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-2);
}
.lg-auth__note p {
  margin: 0;
}
.lg-auth__note b {
  color: var(--text);
}
.lg-auth__note--ok {
  border-color: rgba(52, 211, 107, 0.35);
  background: rgba(52, 211, 107, 0.06);
}
.lg-oauth {
  display: flex;
  gap: 10px;
}
.lg-oauth__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: 0.15s ease;
  box-sizing: border-box;
}
.lg-oauth__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.lg-oauth__btn--steam {
  background: linear-gradient(180deg, #1f2f45, #16202f);
  border: 1px solid #2a3f5c;
  color: #fff;
}
.lg-oauth__btn--steam:hover {
  border-color: #66c0f4;
  box-shadow: 0 0 0 1px rgba(102, 192, 244, 0.25);
}
.lg-oauth__btn--google {
  background: #fff;
  border: 1px solid #fff;
  color: #1f1f1f;
}
.lg-oauth__btn--google:hover {
  background: #f1f3f4;
}
.lg-oauth__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lg-oauth__or::before,
.lg-oauth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
@media (max-width: 900px) {
  .lg-split {
    grid-template-columns: 1fr;
  }
  .lg-split__art {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 20px 20px 22px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background:
      linear-gradient(180deg, rgba(7, 11, 18, 0.55), rgba(7, 11, 18, 0.92)),
      url("../img/site/hero-banner.webp") center/cover no-repeat;
  }
  .lg-split__art::after {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 163, 255, 0.5), transparent);
  }
  .lg-split__logo img {
    width: 52px;
  }
  .lg-split__copy h2 {
    font-size: 24px;
    margin: 0;
  }
  .lg-split__copy p,
  .lg-split__copy ul {
    display: none;
  }
  .lg-split__main {
    justify-content: flex-start;
    padding: 56px 20px 40px;
  }
  .lg-split__back {
    top: 18px;
    right: 20px;
  }
}
.lg-auth__card a.lg-oauth__btn--google { color: #1f1f1f; }
.lg-auth__card a.lg-oauth__btn--steam { color: #fff; }

/* ---------- Flash toasts ---------- */
.lg-toasts {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.lg-toast {
  --tc: var(--blue);
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--tc);
  background: rgba(13, 20, 32, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lg-toast.is-in {
  opacity: 1;
  transform: none;
}
.lg-toast.is-out {
  opacity: 0;
  transform: translateX(24px);
}
.lg-toast--success { --tc: var(--online); }
.lg-toast--error { --tc: #ff5a5f; }
.lg-toast__ico {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tc);
  box-shadow: 0 0 12px var(--tc);
  -webkit-mask: radial-gradient(circle, #000 0 55%, transparent 56%);
  mask: radial-gradient(circle, #000 0 55%, transparent 56%);
  margin-top: 0;
  transform: scale(0.55);
}
.lg-toast__msg {
  flex: 1;
}
.lg-toast__x {
  flex: 0 0 auto;
  margin: -4px -4px 0 0;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lg-toast__x:hover {
  color: var(--text);
}
@media (max-width: 520px) {
  .lg-toasts {
    top: 76px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* Achievements */
.lg-uprof > .lg-cab__profile { grid-row: span 2; }
.lg-uprof__ach { grid-column: 2; padding: 24px 26px 28px; }
.lg-ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.lg-ach { --t: #d08a4e; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.lg-ach--bronze { --t: #d08a4e; }
.lg-ach--silver { --t: #b9c6d8; }
.lg-ach--gold { --t: #f0a82a; }
.lg-ach--legend { --t: #a172ff; }
.lg-ach__icon { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--t); background: color-mix(in srgb, var(--t) 12%, transparent); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); }
.lg-ach__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lg-ach__title { font-family: "Exo 2", sans-serif; font-size: 15px; color: #e6ecf4; }
.lg-ach__desc { font-size: 13px; color: var(--muted-2); line-height: 1.4; }
.lg-ach__meta { font-size: 12px; color: var(--muted); }
.lg-ach__bar { display: block; height: 5px; margin-top: 5px; border-radius: 4px; background: #17222f; overflow: hidden; }
.lg-ach__bar span { display: block; height: 100%; border-radius: 4px; background: var(--t); }
.lg-ach.is-earned { border-color: color-mix(in srgb, var(--t) 40%, var(--line)); box-shadow: 0 0 22px -12px var(--t); }
.lg-ach.is-earned .lg-ach__meta { color: var(--t); }
.lg-ach:not(.is-earned) .lg-ach__icon { color: var(--muted); background: #121b28; border-color: var(--line); }
.lg-ach:not(.is-earned) .lg-ach__title { color: var(--muted-2); }
.lg-ach__count { color: #e6ecf4; }
@media (max-width: 860px) {
  .lg-uprof > .lg-cab__profile { grid-row: auto; }
  .lg-uprof__ach { grid-column: auto; padding: 18px 16px 20px; }
  .lg-ach-grid { grid-template-columns: 1fr; }
}
.lg-ach-grid.is-collapsed > .lg-ach:nth-child(n+9) { display: none; }
.lg-ach-more { display: block; margin: 14px auto 0; }

/* Cabinet: game link tab */
.lg-gl-status { --c: var(--gold); display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--panel-2)), var(--panel)); }
.lg-gl-status.is-on { --c: var(--online); }
.lg-gl-status__ico { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 24px -10px var(--c); }
.lg-gl-status__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lg-gl-status__title { font-family: "Oswald", sans-serif; font-size: 19px; letter-spacing: .02em; color: #e9eef5; }
.lg-gl-status__body .lg-muted { font-size: 14px; line-height: 1.5; }
.lg-gl-status__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-2); }
.lg-gl-status__meta b { color: #e6ecf4; }
.lg-gl-status__type { padding: 2px 9px; border-radius: 999px; font-size: 12px; color: var(--blue-bright); background: rgba(45, 140, 255, .12); border: 1px solid rgba(45, 140, 255, .3); }
.lg-gl-id { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0a0f17; color: var(--muted-2); cursor: pointer; transition: .15s; }
.lg-gl-id code { font-size: 13px; color: var(--text); }
.lg-gl-id:hover { border-color: var(--blue); color: var(--blue-bright); }
.lg-gl-id.is-copied { border-color: var(--online); color: var(--online); }
.lg-gl-unlink { padding: 9px 16px; border-radius: 9px; border: 1px solid rgba(224, 83, 61, .45); background: transparent; color: #ff7a63; font: 600 14px "Exo 2", sans-serif; cursor: pointer; transition: .15s; }
.lg-gl-unlink:hover { background: rgba(224, 83, 61, .12); border-color: #e0533d; }
@media (max-width: 760px) {
  .lg-gl-status { flex-wrap: wrap; }
  .lg-gl-status form { width: 100%; }
  .lg-gl-unlink { width: 100%; }
}

.lg-gl-card { margin-top: 18px; padding: 22px 24px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 8%, var(--panel-2)), var(--panel)); }
.lg-gl-card__head { margin-bottom: 18px; }
.lg-gl-card__tag { display: inline-block; margin-bottom: 4px; font: 600 11px "Exo 2", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bright); }
.lg-gl-card__title { margin: 0; font: 600 19px "Oswald", sans-serif; letter-spacing: .02em; color: #e9eef5; }
.lg-gl-card__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: center; }
.lg-gl-tl { list-style: none; margin: 0; padding: 0; counter-reset: gl; }
.lg-gl-tl li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 0 0 18px 44px; counter-increment: gl; }
.lg-gl-tl li:last-child { padding-bottom: 0; }
.lg-gl-tl li::before { content: counter(gl); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 13px "Exo 2", sans-serif; color: var(--blue-bright); background: #0a1422; border: 1px solid color-mix(in srgb, var(--blue) 55%, transparent); }
.lg-gl-tl li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: 4px; width: 1px; background: linear-gradient(var(--blue), transparent); opacity: .5; }
.lg-gl-tl b { font-size: 14px; color: #e6ecf4; }
.lg-gl-tl span { font-size: 13px; color: var(--muted-2); line-height: 1.45; }
.lg-gl-tl kbd, .lg-gl-tl code { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: #0a0f17; font-size: 12px; color: var(--text); }
.lg-gl-code { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: rgba(5, 9, 15, .55); border: 1px solid var(--line); }
.lg-gl-code__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-gl-code input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #070b12; color: var(--gold); text-align: center; font: 700 24px "Exo 2", monospace; letter-spacing: .32em; text-transform: uppercase; transition: .15s; }
.lg-gl-code input::placeholder { color: #2a3647; }
.lg-gl-code input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 168, 42, .12); }
.lg-gl-code .lg-btn { width: 100%; justify-content: center; }
.lg-gl-code__hint { font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }
.lg-gl-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lg-gl-or::before, .lg-gl-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lg-gl-steam { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(27, 155, 224, .08), var(--panel)); }
.lg-gl-steam__ico { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #5cc0f5; background: rgba(27, 155, 224, .12); }
.lg-gl-steam__ico svg { width: 26px; height: 26px; }
.lg-gl-steam__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-gl-steam__body b { font-size: 15px; color: #e6ecf4; }
.lg-gl-steam__body .lg-muted { font-size: 13px; }
.lg-gl-steam .lg-gl-card__tag { color: #5cc0f5; }
.lg-gl-steam .lg-btn--steam { margin-top: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .lg-gl-card { padding: 18px 16px; }
  .lg-gl-card__grid { grid-template-columns: 1fr; gap: 20px; }
  .lg-gl-steam { flex-wrap: wrap; }
  .lg-gl-steam .lg-btn--steam { width: 100%; justify-content: center; }
}

/* Cabinet friends: status, message, stats */
.lg-friend { gap: 10px; padding: 6px 0; }
.lg-friend__av { flex: 0 0 38px; width: 38px; height: 38px; }
.lg-friend__dot { width: 11px; height: 11px; }
.lg-friend__dot.is-game { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.lg-friend__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.lg-friend__info .lg-friend__name { flex: none; color: #e6ecf4; transition: color .15s; }
.lg-friend__info:hover .lg-friend__name { color: var(--blue-bright); }
.lg-friend__status { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-friend__status.is-online { color: var(--online); }
.lg-friend__status.is-game { color: var(--gold); }
a.lg-friend__btn { text-decoration: none; }
.lg-friend__btn--msg:hover, .lg-friend__btn--stat:hover { background: rgba(45, 140, 255, .16); border-color: var(--blue); color: var(--blue-bright); }
