*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --accent: #b84852;
  --panel: #121018;
  --text: #e8e4ea;
  --panel-alpha: .78;
  --grad1: #a83844;
  --grad2: #5c3040;
  --monitor-btn: #b84852;
  --nav-btn: #8a4550;
  --logo-glow: #c45a62;
  --header-alpha: .82;
  --monitor-alpha: .78;
  --news-alpha: .75;
  --killfeed-alpha: .76;
  --hero-glow-opacity: 1;
  --hero-slogan-opacity: 1;
  --hero-slide-alpha: .28;
  --bg-color: #0a090c;
  --vignette-alpha: .72;
  --bg-blur: 0px;
  --cyan: #6ab4c8;
  --pink: #c47a9a;
  --green: #6ab88a;
  --danger: #c44a55;
  --muted: #9a929e;
  --line: rgba(255, 255, 255, .08);
  --soft-line: rgba(255, 255, 255, .05);
  --glass: color-mix(in srgb, var(--panel) calc(var(--panel-alpha) * 100%), rgba(255, 255, 255, .04));
  --shadow-red: 0 20px 60px rgba(120, 30, 40, .12);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --widget-scale: 1;
  --rules-img-height: 180px;
  --servers-img-height: 160px;
  --widget-motion: subtle;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) #100b12;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg-color);
  color: var(--text);
  font-family: var(--site-font, Inter, "Segoe UI", Roboto, Arial, sans-serif);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0, 0, 0, .7), transparent 72%);
}


a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

::selection {
  background: color-mix(in srgb, var(--accent) 70%, #fff);
  color: #fff;
}

.bg-slider,
.bg-slider span,
.bg-shade {
  position: fixed;
  inset: 0;
  z-index: -4;
}

.bg-slider {
  background: var(--bg-color, #0a090c);
  overflow: hidden;
  filter: blur(var(--bg-blur));
  transform: scale(1.035);
  background-color: var(--bg-color);
}

.bg-slider span {
  opacity: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(var(--bg-saturate, .75)) contrast(1.02) brightness(var(--bg-brightness, .48));
  transition: opacity 1.6s ease;
  will-change: auto;
}

.bg-slider span.is-bg-active {
  opacity: 1;
}

.bg-shade { z-index: -3; opacity: var(--bg-overlay, 1); pointer-events: none; transition: none; }

body.bg-overlay-none .bg-shade {
  opacity: 0;
}

body.bg-overlay-tint .bg-shade {
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, var(--vignette-alpha))),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-overlay-tint, #0a090c) calc(var(--bg-overlay, 1) * 72%), transparent), color-mix(in srgb, var(--bg-overlay-tint, #0a090c) calc(var(--bg-overlay, 1) * 88%), transparent));
}

body.bg-overlay-gradient .bg-shade {
  background:
    radial-gradient(circle at 17% 13%, color-mix(in srgb, var(--grad1) calc(18% * var(--bg-overlay, 1)), transparent), transparent 30%),
    radial-gradient(circle at 83% 18%, color-mix(in srgb, var(--grad2) calc(16% * var(--bg-overlay, 1)), transparent), transparent 34%),
    radial-gradient(circle at 78% 82%, color-mix(in srgb, var(--pink) calc(10% * var(--bg-overlay, 1)), transparent), transparent 30%),
    radial-gradient(circle at center, rgba(0, 0, 0, .08), rgba(0, 0, 0, var(--vignette-alpha))),
    linear-gradient(110deg, rgba(8, 6, 12, .96), color-mix(in srgb, var(--grad1) calc(18% * var(--bg-overlay, 1)), rgba(8, 6, 12, .96)), rgba(6, 7, 12, .96));
}

body.bg-live-pan .bg-slider span.is-bg-active {
  animation: bgLivePan 26s ease-in-out infinite alternate;
}

@keyframes bgLivePan {
  0% {
    transform: scale(calc(1.05 + var(--bg-live-pan, 0) * 0.00035))
      translateX(calc(var(--bg-live-pan, 0) * -0.035%));
  }
  100% {
    transform: scale(calc(1.05 + var(--bg-live-pan, 0) * 0.00035))
      translateX(calc(var(--bg-live-pan, 0) * 0.035%));
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 3vw, 38px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, .06));
  background: rgba(12, 10, 16, var(--header-alpha));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .38);
  backdrop-filter: blur(22px);
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 62px;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--logo-glow) 35%, transparent));
  transition: transform .28s var(--ease), filter .28s var(--ease);
}

.brand:hover img {
  transform: translateY(-2px) scale(1.025);
  filter: drop-shadow(0 0 32px color-mix(in srgb, var(--logo-glow) 88%, transparent));
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.topbar nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--nav-btn) 18%, rgba(255, 255, 255, .06));
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.topbar nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.topbar nav a:hover,
.topbar nav a.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, .1));
  box-shadow: none;
}

.topbar nav a:hover::before,
.topbar nav a.active::before {
  opacity: 1;
}

.topbar nav a {
  isolation: isolate;
}

.topbar nav a::after {
  content: attr(data-label);
  display: none;
}

.topbar nav a > *,
.topbar nav a {
  z-index: 1;
}

.live-pill,
.footer-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3fff6;
  font-weight: 950;
  white-space: nowrap;
}

.live-pill {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(82, 255, 138, .34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(82, 255, 138, .12), rgba(0, 0, 0, .24));
  box-shadow: 0 0 32px rgba(82, 255, 138, .12);
}

.live-pill em {
  color: #d8c7d2;
  font-size: 11px;
  font-style: normal;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(82, 255, 138, .12), 0 0 22px rgba(82, 255, 138, .8);
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(.9); opacity: .86; }
  50% { transform: scale(1.18); opacity: 1; }
}

.socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}

.icon-btn,
.steam-login-pretty,
.steam-account-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  transition: transform .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
}

.icon-btn {
  width: 42px;
  min-width: 42px;
  font-size: 18px;
  font-weight: 950;
}

.icon-btn img,
.steam-login-pretty > img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.icon-btn:hover,
.steam-login-pretty:hover,
.steam-account-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--accent) 24%, rgba(0, 0, 0, .25));
}

.icon-btn.donate {
  width: auto;
  min-width: 50px;
  padding: 0 13px;
  background: radial-gradient(circle at 20% 0, rgba(255,255,255,.34), transparent 30%), linear-gradient(135deg, var(--grad1), var(--grad2));
  animation: donateGlow 2.8s ease-in-out infinite;
}

.icon-btn.donate::after {
  content: "DONATE";
  margin-left: 7px;
  font-size: 11px;
  letter-spacing: .08em;
}

@keyframes donateGlow {
  0%,100% { box-shadow: 0 12px 34px rgba(255,45,61,.16); }
  50% { box-shadow: 0 14px 46px rgba(255,122,24,.34); }
}

.icon-btn.discord,
.icon-btn.vk {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
}

.icon-btn.discord img,
.icon-btn.vk img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.steam-login-pretty,
.steam-account-btn {
  gap: 9px;
  padding: 0 14px 0 6px;
  background: linear-gradient(135deg, #235fba, #101b35);
  font-weight: 950;
  cursor: pointer;
}

.steam-account-btn.profile-top-btn {
  padding: 0 12px 0 5px;
  overflow: hidden;
}

.profile-avatar-ring.header-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101828;
}

.profile-avatar-ring.header-avatar img,
.steam-account-btn .header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-switch-simple {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
}

.lang-switch-simple .lang-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #f5e8ec;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.lang-switch-simple .lang-pick:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.lang-switch-simple .lang-pick.active {
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}

.lang-switch-simple .lang-pick::after,
.lang-switch-simple .lang-pick::before,
.steam-account-btn::after {
  display: none;
}

.steam-account {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.steam-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 200;
  min-width: 230px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(15, 11, 18, .97);
  box-shadow: var(--shadow-deep);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
}

.steam-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.steam-account:hover .steam-menu,
.steam-account:focus-within .steam-menu,
.steam-account.open .steam-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.steam-menu b {
  display: block;
  margin: 2px 0 8px;
  color: #fff;
}

.steam-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 13px;
  color: #f8eef4;
  text-decoration: none;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.steam-menu a:hover {
  transform: translateX(2px);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, .08)), rgba(255, 255, 255, .045));
}

.language-switch {
  margin-left: 10px;
  transform: translateX(8px);
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
}

.lang-flag {
  display: none;
}

.language-switch select {
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  appearance: none;
  min-width: 54px;
  padding: 0 12px 0 0;
  text-align: center;
}

.language-switch select option {
  background: #100b12;
  color: #fff;
}

.wrap {
  width: min(1360px, calc(100% - 42px));
  margin: 30px auto;
}

.title {
  text-align: center;
  margin: 24px 0 30px;
}

.title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .95;
  letter-spacing: .045em;
  color: #fff;
  text-shadow: 0 20px 48px rgba(0, 0, 0, .55), 0 0 38px color-mix(in srgb, var(--accent) 42%, transparent);
}

.title p {
  max-width: 920px;
  margin: 14px auto 0;
  color: #f2dfe8;
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 650;
}

.glass,
.server-card,
.news-widget,
.server-info-card,
.newbie-gift {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px);
}

.glass {
  padding: clamp(18px, 2.5vw, 32px);
  border-radius: 30px;
  background: var(--glass);
}

.content {
  line-height: 1.75;
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, .86fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: stretch;
  min-height: 500px;
  margin: 20px 0 22px;
  padding: clamp(24px, 4.5vw, 62px);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, .12));
  border-radius: 38px;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--grad2) 28%, transparent), transparent 34%),
    radial-gradient(circle at 16% 70%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 38%),
    linear-gradient(130deg, rgba(8, 6, 12, .78), rgba(35, 5, 17, .66));
  box-shadow: var(--shadow-deep), var(--shadow-red);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, .12) 46%, transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  opacity: .7;
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--grad1), var(--grad2), var(--pink), var(--grad1));
  filter: blur(24px);
  opacity: .18;
  animation: slowSpin 18s linear infinite;
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: .88;
  letter-spacing: .055em;
  color: #fff;
  text-shadow: 0 24px 58px rgba(0, 0, 0, .66), 0 0 44px color-mix(in srgb, var(--accent) 48%, transparent);
}

.hero-copy p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #f3dfe9;
  font-size: clamp(16px, 1.8vw, 22px);
}

.hero-actions,
.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.server-info-actions {
  display: block;
  margin-top: 18px;
}

.page-servers .servers-play-actions {
  margin-top: 12px;
}

.page-servers .servers-play-actions .monitor-play-ui,
.page-servers .server-info-actions .monitor-play-ui,
.play-cta-bar .monitor-play-ui,
.profile-login-play .monitor-play-ui {
  width: 100%;
  max-width: 280px;
}

.hero-actions {
  margin-top: 30px;
}

/* —— Кнопки WeeDayZ / Steam (единый стиль) —— */
.play-buttons-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* —— Мониторинг: жёлтая WeeDayZ + синяя Steam (отдельно от общих btn-play) —— */
.monitor-play-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.monitor-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .38);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
  transition: transform .2s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease);
}

.monitor-play-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

.monitor-play-btn:active {
  transform: translateY(0);
}

.monitor-play-weedayz {
  background: linear-gradient(165deg, #f8dc7a 0%, #c59d5f 42%, #8a6a32 100%);
  color: #1a1205;
}

.monitor-play-steam {
  background: linear-gradient(135deg, #235fba 0%, #163d6e 52%, #101b35 100%);
  border-color: color-mix(in srgb, #235fba 42%, #0a1220);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.monitor-play-icon-wrap {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  overflow: hidden;
}

.monitor-play-weedayz .monitor-play-icon-wrap {
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.monitor-play-steam .monitor-play-icon-wrap {
  background: rgba(0, 0, 0, .22);
}

.monitor-play-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.monitor-play-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  line-height: 1.1;
}

.monitor-play-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .88;
}

.monitor-play-brand {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .01em;
}

.monitor-play-free {
  font-size: 11px;
  font-weight: 900;
  opacity: .92;
}

body.buttons-solid .monitor-play-btn.monitor-play-weedayz,
body.buttons-outline .monitor-play-btn.monitor-play-weedayz,
body.buttons-glass .monitor-play-btn.monitor-play-weedayz,
body.buttons-minimal .monitor-play-btn.monitor-play-weedayz,
body.buttons-cyber .monitor-play-btn.monitor-play-weedayz,
body.button-fill-solid .monitor-play-btn.monitor-play-weedayz,
body.button-fill-outline .monitor-play-btn.monitor-play-weedayz {
  background: linear-gradient(165deg, #f8dc7a 0%, #c59d5f 42%, #8a6a32 100%);
  color: #1a1205;
}

body.buttons-solid .monitor-play-btn.monitor-play-steam,
body.buttons-outline .monitor-play-btn.monitor-play-steam,
body.buttons-glass .monitor-play-btn.monitor-play-steam,
body.buttons-minimal .monitor-play-btn.monitor-play-steam,
body.buttons-cyber .monitor-play-btn.monitor-play-steam,
body.button-fill-solid .monitor-play-btn.monitor-play-steam,
body.button-fill-outline .monitor-play-btn.monitor-play-steam {
  background: linear-gradient(135deg, #235fba 0%, #163d6e 52%, #101b35 100%);
  border-color: color-mix(in srgb, #235fba 42%, #0a1220);
  color: #fff;
}

a.btn-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, .35);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .2s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease);
}

a.btn-play:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .36);
}

a.btn-play:active {
  transform: translateY(0);
}

a.btn-play-weedayz {
  background: linear-gradient(180deg, #a88442 0%, #6f5420 48%, #5a4318 100%);
  border-color: color-mix(in srgb, #c59d5f 55%, #3d2f10);
  color: #fff8e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

a.btn-play-weedayz:hover {
  box-shadow: 0 10px 28px rgba(90, 67, 24, .45);
}

a.btn-play-steam {
  background: linear-gradient(135deg, #235fba 0%, #163d6e 52%, #101b35 100%);
  border-color: color-mix(in srgb, #235fba 42%, #0a1220);
}

a.btn-play-steam:hover {
  box-shadow: 0 10px 28px rgba(16, 27, 53, .55);
}

a.btn-play .btn-play-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

a.btn-play-weedayz .btn-play-icon {
  background: #050505;
  padding: 1px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

a.btn-play-steam .btn-play-icon {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}

a.btn-play-sm {
  min-height: 28px;
  padding: 5px 9px;
  gap: 5px;
  font-size: 10px;
  border-radius: 9px;
}

a.btn-play-sm .btn-play-icon {
  width: 15px;
  height: 15px;
}

a.btn-play-md {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}

a.btn-play-lg {
  min-height: 48px;
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 14px;
}

a.btn-play-lg .btn-play-icon {
  width: 22px;
  height: 22px;
}

.hero-actions-play {
  align-items: center;
}

.hero-actions-play .btn-play-lg {
  box-shadow: 0 12px 32px rgba(90, 67, 24, .38);
}

.monitor-actions a.btn-play {
  width: 100%;
}


/* не перекрашивать бренд-кнопки глобальными темами */
body.buttons-solid a.btn-play-weedayz,
body.buttons-outline a.btn-play-weedayz,
body.buttons-glass a.btn-play-weedayz,
body.buttons-minimal a.btn-play-weedayz,
body.buttons-cyber a.btn-play-weedayz,
body.button-fill-solid a.btn-play-weedayz,
body.button-fill-outline a.btn-play-weedayz {
  background: linear-gradient(180deg, #a88442 0%, #6f5420 48%, #5a4318 100%);
  border-color: color-mix(in srgb, #c59d5f 55%, #3d2f10);
  color: #fff8e8;
}

body.buttons-solid a.btn-play-steam,
body.buttons-outline a.btn-play-steam,
body.buttons-glass a.btn-play-steam,
body.buttons-minimal a.btn-play-steam,
body.buttons-cyber a.btn-play-steam,
body.button-fill-solid a.btn-play-steam,
body.button-fill-outline a.btn-play-steam {
  background: linear-gradient(135deg, #235fba 0%, #163d6e 52%, #101b35 100%);
  border-color: color-mix(in srgb, #235fba 42%, #0a1220);
  color: #fff;
}

.hero-btn,
.server-actions a:not(.btn-play),
.server-info-actions a:not(.btn-play):not(.monitor-play-btn),
.big-steam,
.admin-open-btn,
.refresh-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 17px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--monitor-btn) 58%, #fff), color-mix(in srgb, var(--grad2) 28%, #171018));
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 42px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: transform .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
}

.hero-btn::before,
.server-actions a:not(.btn-play)::before,
.server-info-actions a:not(.btn-play):not(.monitor-play-btn)::before,
.big-steam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, .34) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .55s var(--ease);
  z-index: -1;
}

.hero-btn:hover,
.server-actions a:not(.btn-play):hover,
.server-info-actions a:not(.btn-play):not(.monitor-play-btn):hover,
.big-steam:hover,
.admin-open-btn:hover,
.refresh-profile:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 20px 54px color-mix(in srgb, var(--accent) 28%, transparent);
}

.hero-btn:hover::before,
.server-actions a:not(.btn-play):hover::before,
.server-info-actions a:not(.btn-play):not(.monitor-play-btn):hover::before,
.big-steam:hover::before {
  transform: translateX(120%);
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  max-width: 760px;
}

.hero-stats span {
  min-height: 98px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
}

.hero-stats b {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.hero-stats small {
  display: block;
  margin-top: 8px;
  color: #d7c2ce;
  font-weight: 850;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: center;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, .15));
}

.feature-card b {
  display: block;
  color: #fff;
  font-size: 20px;
}

.feature-card p {
  margin: 7px 0 0;
  color: #d9c8d3;
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.online-bars-wrap,
.online-bars {
  display: none !important;
}

/* —— Мониторинг серверов (горизонтальные полосы) —— */
.monitor-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.server-monitor {
  --load: 0%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) minmax(110px, 0.5fr) auto;
  grid-template-areas:
    "head chart load actions"
    "wipe wipe wipe wipe";
  align-items: center;
  gap: 12px 14px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel) calc(var(--monitor-alpha) * 100%), rgba(255, 255, 255, .07));
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.server-monitor:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, .12));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .32), 0 0 28px color-mix(in srgb, var(--accent) 12%, transparent);
}

.server-monitor.is-offline {
  opacity: .82;
}

body.monitor-bar .server-monitor .server-status-dot {
  width: 5px;
  height: 26px;
  border-radius: 3px;
  box-shadow: none;
}

body.monitor-ring .server-monitor .server-status-dot {
  background: transparent !important;
  border: 2px solid #5c5664;
  box-shadow: none;
}

body.monitor-ring .server-monitor .server-status-dot.is-on {
  border-color: #3dff7a;
  box-shadow: 0 0 10px rgba(61, 255, 122, .55);
}

body.monitor-ring .server-monitor .server-status-dot.is-off {
  border-color: #ff3348;
  box-shadow: 0 0 10px rgba(255, 51, 72, .45);
}

body.monitor-minimal .server-monitor .server-status-dot {
  display: none;
}

.monitor-sparkline .spark-bar {
  fill: color-mix(in srgb, var(--chart-color, var(--accent)) 85%, #fff);
}

.monitor-sparkline .spark-dot {
  fill: var(--chart-color, var(--accent));
}

/* Server page widgets */
.server-widget-card {
  padding: 22px 24px;
  margin-bottom: 18px;
}

.server-widget-tagline {
  margin: 6px 0 0;
  font-size: 14px;
}

.server-widget-ip {
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.server-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.server-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
}

.server-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-feature-badge.is-yes .server-feature-dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, .7);
}

.server-feature-badge.is-no .server-feature-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, .65);
}

.server-widget-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0 4px;
  scroll-snap-type: x mandatory;
}

.server-widget-carousel .gallery-thumb {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.server-widget-carousel .gallery-thumb img {
  height: var(--servers-img-height, 160px);
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: cover;
  border-radius: 12px;
}

.server-widget-card,
.rules-widget-section {
  transform: scale(var(--widget-scale, 1));
  transform-origin: center top;
}

body[data-widget-motion="subtle"] .server-widget-tile,
body[data-widget-motion="subtle"] .rules-widget-thumb {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

body[data-widget-motion="float"] .server-widget-tile,
body[data-widget-motion="float"] .rules-widget-thumb {
  animation: widgetFloat 5s ease-in-out infinite;
}

body[data-widget-motion="pulse"] .server-widget-tile__icon,
body[data-widget-motion="pulse"] .rules-widget-thumb {
  animation: widgetPulse 3.2s ease-in-out infinite;
}

@keyframes widgetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes widgetPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  50% { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 28%, transparent); }
}

.server-widget-sections {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.server-widget-section h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.server-widget-section p {
  margin: 0;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  line-height: 1.55;
}

.server-widget-rules-hint {
  margin: 16px 0 0;
  font-size: 13px;
}

.server-widget-rules-hint a {
  color: var(--accent);
}

/* Legal pages */
.legal-doc {
  max-width: 820px;
  line-height: 1.6;
}

.legal-doc h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p {
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--text) 90%, transparent);
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc a {
  color: var(--accent);
}

.legal-updated {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  margin-bottom: 20px;
}

/* —— Вайп: анонс и полоска под мониторингом —— */
.wipe-announce-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.wipe-announce-banner {
  position: relative;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, .12));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, #7c3aed 18%, transparent)),
    color-mix(in srgb, var(--panel) 92%, rgba(8, 6, 12, .9));
  overflow: hidden;
  animation: wipeBannerPulse 2.8s ease-in-out infinite;
}

.wipe-announce-banner.is-urgent,
.wipe-announce-banner.is-today {
  border-color: color-mix(in srgb, #ff4d6d 55%, transparent);
  animation: wipeBannerUrgent 1.4s ease-in-out infinite;
}

.wipe-announce-banner__glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  pointer-events: none;
}

.wipe-announce-banner__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.wipe-announce-banner__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  color: color-mix(in srgb, var(--accent) 85%, #fff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.wipe-announce-banner__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 65%, transparent);
  margin-bottom: 4px;
}

.wipe-announce-banner__name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.wipe-announce-banner__body {
  margin: 6px 0 0;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  line-height: 1.45;
}

.wipe-announce-banner__timer {
  text-align: right;
  min-width: 120px;
}

.wipe-announce-banner__timer b {
  display: block;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.monitor-wipe-strip {
  grid-area: wipe;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .22);
}

.monitor-wipe-strip.is-soon,
.monitor-wipe-strip.is-urgent,
.monitor-wipe-strip.is-today {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  animation: wipeStripGlow 2.2s ease-in-out infinite;
}

.monitor-wipe-strip__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.monitor-wipe-strip__icon {
  display: flex;
  color: color-mix(in srgb, var(--accent) 80%, #fff);
}

.monitor-wipe-strip__title {
  font-size: 13px;
  font-weight: 600;
}

.monitor-wipe-strip__badge {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}

.monitor-wipe-strip.is-urgent .monitor-wipe-strip__badge,
.monitor-wipe-strip.is-today .monitor-wipe-strip__badge {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.monitor-wipe-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 13px;
}

.monitor-wipe-strip__grid .muted {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}

.monitor-wipe-strip__countdown b {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.monitor-wipe-strip__hint {
  margin: 8px 0 0;
  font-size: 11px;
}

.server-card-wipe .monitor-wipe-strip {
  margin: 12px 0 0;
}

@keyframes wipeBannerPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0, 0, 0, .35); }
  50% { box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 18%, transparent); }
}

@keyframes wipeBannerUrgent {
  0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, .4); }
  50% { box-shadow: 0 0 36px color-mix(in srgb, #ff4d6d 35%, transparent); }
}

@keyframes wipeStripGlow {
  0%, 100% { border-color: rgba(255, 255, 255, .08); }
  50% { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
}

/* —— Карточки «Наши сервера»: тайлы с иконками —— */
.server-widget-tiles {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.server-widget-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .15));
  animation: serverTilePulse 3.6s ease-in-out infinite;
}

.server-widget-tile:nth-child(2n) {
  animation-delay: .6s;
}

.server-widget-tile:nth-child(3n) {
  animation-delay: 1.2s;
}

.server-widget-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  color: color-mix(in srgb, var(--text) 75%, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.server-widget-tile__icon svg {
  width: 22px;
  height: 22px;
}

.server-widget-tile__body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.server-widget-tile__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}

@keyframes serverTilePulse {
  0%, 100% {
    border-color: rgba(255, 255, 255, .08);
    box-shadow: none;
  }
  50% {
    border-color: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, .1));
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

@media (max-width: 900px) {
  .wipe-announce-banner__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .wipe-announce-banner__timer {
    text-align: left;
  }
  .monitor-wipe-strip__grid {
    grid-template-columns: 1fr;
  }
  .server-monitor {
    grid-template-areas:
      "head head"
      "chart chart"
      "load actions"
      "wipe wipe";
    grid-template-columns: 1fr auto;
  }
}

.monitor-head {
  grid-area: head;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.monitor-head .server-status-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  margin-top: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.monitor-head .server-status-dot.is-pending {
  background: #5c5664;
  box-shadow: none;
}

.monitor-head .server-status-dot.is-on {
  background: #3dff7a;
  box-shadow: 0 0 10px #3dff7a;
}

.monitor-head .server-status-dot.is-off {
  background: #ff3348;
  box-shadow: 0 0 8px #ff3348;
}

.monitor-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.monitor-name {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.28;
  color: #fff;
  word-break: break-word;
}

.monitor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11px;
  color: #d5c4ce;
}

.monitor-meta-item b {
  color: #fff;
  font-weight: 850;
}

.monitor-meta-label {
  opacity: .75;
  margin-right: 2px;
}

.monitor-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.monitor-now {
  flex: 0 0 auto;
  text-align: right;
  padding-left: 8px;
}

.monitor-now b {
  display: block;
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

.monitor-now small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #c9b8c3;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.monitor-chart-block {
  grid-area: chart;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .08);
}

.monitor-chart-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 10px;
  color: #c9b8c3;
}

.monitor-chart-period {
  font-weight: 900;
  color: #fff;
  letter-spacing: .06em;
}

.monitor-chart-ext {
  margin-left: auto;
}

.monitor-chart-ext:last-child {
  margin-left: 6px;
}

.monitor-sparkline {
  width: 100%;
  height: 52px;
  min-height: 52px;
}

.monitor-sparkline-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spark-line {
  fill: none;
  stroke: var(--chart-color, var(--accent));
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--chart-color, var(--accent)) 45%, transparent));
}

.spark-area {
  fill: color-mix(in srgb, var(--chart-color, var(--accent)) 22%, transparent);
}

.monitor-load-block {
  grid-area: load;
  min-width: 0;
}

.monitor-load-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 10px;
  color: #d5c4ce;
}

.monitor-load-labels b {
  color: #fff;
  font-size: 12px;
}

.monitor-load-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}

.monitor-load-bar i {
  display: block;
  height: 100%;
  width: var(--load, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e 0%, var(--monitor-btn, var(--accent)) 55%, var(--grad2) 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--monitor-btn, var(--accent)) 55%, transparent);
  transition: width .55s var(--ease);
}

.monitor-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 96px;
  align-self: center;
}

.page-home .monitor-rows {
  order: 1;
}

@media (max-width: 1100px) {
  .server-monitor {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head head"
      "chart chart"
      "load actions";
  }

  .monitor-actions {
    flex-direction: row;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .server-monitor {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "chart" "load" "actions";
  }

  .monitor-now {
    padding-left: 0;
  }

  .monitor-actions {
    flex-direction: row;
  }

  .monitor-play-btn {
    flex: 1;
    min-width: 0;
  }

  .monitor-play-brand {
    font-size: 12px;
  }
}

/* legacy server cards (other pages) */
body.monitor-compact .server-card,
.servers-grid.compact-monitor .server-card {
  --load: 0%;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-areas:
    "top top"
    "status orb"
    "stats stats"
    "meter meter"
    "actions actions";
  gap: 5px 6px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.server-card {
  --load: 0%;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-areas:
    "top orb"
    "status orb"
    "stats stats"
    "meter meter"
    "actions actions";
  gap: 12px 16px;
  min-width: 0;
  padding: 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)),
    color-mix(in srgb, var(--panel) calc(var(--monitor-alpha) * 100%), rgba(255, 255, 255, .08));
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}

.server-card::before,
.server-card::after {
  display: none;
}

body.monitor-compact .server-orb,
.servers-grid.compact-monitor .server-orb {
  display: grid !important;
  width: 44px;
  min-width: 44px;
  align-self: center;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .1);
}

body.monitor-compact .server-orb::before,
.servers-grid.compact-monitor .server-orb::before {
  inset: 5px;
}

body.monitor-compact .server-orb b,
.servers-grid.compact-monitor .server-orb b {
  font-size: 10px;
}

body.monitor-compact .server-orb span,
.servers-grid.compact-monitor .server-orb span {
  top: 62%;
  font-size: 6px;
  letter-spacing: .08em;
}

body.monitor-compact .server-top,
.servers-grid.compact-monitor .server-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

body.monitor-compact .server-top .server-status-dot,
.servers-grid.compact-monitor .server-top .server-status-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
}

body.monitor-compact .server-card h3,
.servers-grid.compact-monitor .server-card h3 {
  width: 100%;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 900;
  word-break: break-word;
  hyphens: auto;
}

body.monitor-compact .server-location,
.servers-grid.compact-monitor .server-location {
  padding: 2px 6px;
  font-size: 8px;
  border-radius: 999px;
}

body.monitor-compact .status-row,
.servers-grid.compact-monitor .status-row {
  gap: 6px;
  font-size: 9px;
  line-height: 1.2;
}

body.monitor-compact .status-row > span,
.servers-grid.compact-monitor .status-row > span {
  font-size: 8px;
  opacity: .85;
}

body.monitor-compact .status-row b,
.servers-grid.compact-monitor .status-row b {
  font-size: 15px;
  text-shadow: none;
}

body.monitor-compact .server-stats,
.servers-grid.compact-monitor .server-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

body.monitor-compact .server-stats span,
.servers-grid.compact-monitor .server-stats span {
  padding: 4px 5px;
  gap: 2px;
  font-size: 8px;
  border-radius: 8px;
}

body.monitor-compact .server-stats b,
.servers-grid.compact-monitor .server-stats b {
  font-size: 9px;
  line-height: 1.2;
}

body.monitor-compact .server-stats .ip-stat,
.servers-grid.compact-monitor .server-stats .ip-stat {
  grid-column: 1 / -1;
}

body.monitor-compact .online-meter,
.servers-grid.compact-monitor .online-meter {
  height: 4px;
  border-radius: 999px;
}

body.monitor-compact .server-actions,
.servers-grid.compact-monitor .server-actions {
  gap: 4px;
}

body.monitor-compact .server-actions a,
.servers-grid.compact-monitor .server-actions a {
  min-height: 26px;
  padding: 4px 6px;
  font-size: 9px;
  font-weight: 900;
  border-radius: 8px;
  letter-spacing: .01em;
}

body.monitor-compact .server-card:hover,
.servers-grid.compact-monitor .server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32), 0 0 24px color-mix(in srgb, var(--accent) 14%, transparent);
}

.server-orb {
  grid-area: orb;
  align-self: start;
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(18, 12, 20, .98) 0 43%, transparent 44%),
    radial-gradient(circle at center, transparent 54%, rgba(255,255,255,.08) 55% 61%, transparent 62%),
    conic-gradient(from -90deg, var(--green) 0, var(--grad2) 35%, var(--accent) var(--load), rgba(255, 255, 255, .1) 0);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 26px rgba(255,255,255,.04);
}

.server-orb::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
}

.server-orb b {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.server-orb span {
  position: absolute;
  top: 64%;
  color: #bcaab7;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}

.server-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent) 44%, rgba(255, 255, 255, .14));
  box-shadow: var(--shadow-deep), 0 0 58px color-mix(in srgb, var(--accent) 24%, transparent);
}

.server-card.is-offline {
  opacity: .78;
  filter: saturate(.72);
}

.server-card.is-offline .server-orb {
  background:
    radial-gradient(circle at center, rgba(18, 12, 20, .95) 0 48%, transparent 49%),
    conic-gradient(#4f5264 100%, rgba(255, 255, 255, .1) 0);
}

.server-top {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.server-top .server-status-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-top .server-status-dot.is-pending {
  background: #5c5664;
  box-shadow: none;
}

.server-top .server-status-dot.is-on {
  background: #3dff7a;
  box-shadow: 0 0 10px #3dff7a;
}

.server-top .server-status-dot.is-off {
  background: #ff3348;
  box-shadow: 0 0 8px #ff3348;
}

.server-card h3,
.server-info-head h2,
.news-widget h2,
.glass h2,
.newbie-gift h2 {
  color: #fff;
}

.server-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.server-location {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #ffe1e7;
  font-size: 12px;
  font-weight: 950;
}

.status-row {
  grid-area: status;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #d7c2ce;
}

.status-row b {
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--green) 46%, transparent);
}

.online-bars-wrap {
  grid-area: bars;
  height: 138px;
  margin: 0;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .035) 19px 20px);
  overflow: hidden;
}

.online-bars {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.line-chart {
  min-width: 760px;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-area {
  fill: rgba(255, 45, 61, .18);
}

.chart-line {
  fill: none;
  stroke: var(--chart-color, var(--accent));
  stroke-width: var(--chart-line-width, 4px);
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(255, 45, 61, .55));
}

.chart-point {
  fill: #fff;
  stroke: var(--chart-color, var(--accent));
  stroke-width: 3;
  cursor: crosshair;
  transition: r .18s var(--ease), filter .18s var(--ease);
}

.chart-point:hover {
  r: 7;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, .7));
}

.chart-tooltip {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  width: max-content;
  max-width: 260px;
  transform: translate(-50%, -100%);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(10, 7, 13, .95);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: var(--shadow-deep);
}

.server-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.server-stats span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(0, 0, 0, .2);
  color: #d7c2ce;
  font-size: 12px;
}

.server-stats span > span {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
}

.server-stats b {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.server-stats .ip-stat b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.online-meter {
  grid-area: meter;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.online-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--grad2), var(--accent));
  transition: width .55s var(--ease);
}

.server-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}

.server-actions a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 15px;
  font-size: 13px;
  text-align: center;
}

body.chart-bars .online-bars,
body.chart-strips .online-bars {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

body.chart-bars .line-chart,
body.chart-strips .line-chart {
  display: none;
}

body.chart-bars .online-bars::before,
body.chart-strips .online-bars::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

body.chart-bars .online-bars::before {
  background:
    linear-gradient(90deg, var(--chart-color, var(--accent)) 0 10px, transparent 10px 16px) 0 100% / 34px 72% repeat-x,
    linear-gradient(90deg, color-mix(in srgb,var(--chart-color, var(--accent)) 70%,#fff) 0 10px, transparent 10px 16px) 9px 100% / 42px 48% repeat-x,
    linear-gradient(90deg, var(--grad2) 0 10px, transparent 10px 16px) 18px 100% / 52px 88% repeat-x;
}

body.chart-strips .online-bars::before {
  align-self: center;
  height: 58%;
  background: repeating-linear-gradient(135deg, color-mix(in srgb,var(--chart-color, var(--accent)) 85%,#fff) 0 14px, transparent 14px 23px), linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

body.chart-area .chart-area {
  fill: color-mix(in srgb, var(--chart-color, var(--accent)) 25%, transparent);
}

body.monitor-bars .server-card,
body.monitor-strips .server-card,
body.monitor-minimal .server-card {
  grid-template-columns: 1fr;
  grid-template-areas: "top" "status" "bars" "stats" "meter" "actions";
}

body.monitor-bars .server-orb,
body.monitor-strips .server-orb,
body.monitor-minimal .server-orb {
  display: none;
}

body.monitor-strips .server-card {
  grid-template-areas: "top" "status" "stats" "meter" "bars" "actions";
}


body.monitor-minimal .online-bars-wrap {
  display: none;
}

.news-widget {
  margin-top: 20px;
  padding: 22px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--panel) calc(var(--news-alpha) * 100%), rgba(255, 255, 255, .08));
}

.news-widget h2 {
  margin: 0 0 12px;
}

.news-widget article {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.news-widget article:first-of-type {
  border-top: 0;
}

.news-widget b {
  font-size: 17px;
}

.news-body {
  color: #e8d5df;
}

.newbie-gift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--grad2) 28%, transparent), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, rgba(0, 0, 0, .35)), color-mix(in srgb, var(--pink) 18%, rgba(0, 0, 0, .28)));
}

.newbie-gift div {
  grid-row: span 2;
  font-size: 42px;
}

.newbie-gift h2,
.newbie-gift p {
  margin: 0;
}

.newbie-gift b {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
}

.server-info-list {
  display: grid;
  gap: 20px;
}

.server-info-card {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 30px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    var(--glass);
}

.server-info-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.server-info-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 38px);
}

.server-info-head span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(0, 0, 0, .24);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.server-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.gallery-thumb {
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0, 0, 0, .22);
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}

.gallery-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px color-mix(in srgb, var(--accent) 18%, rgba(0, 0, 0, .28));
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.server-info-text {
  color: #ead8e2;
  line-height: 1.75;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 72px;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.lightbox-close {
  top: 22px;
  right: 28px;
  font-size: 30px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .88);
}

.rules-intro,
.rules-section,
.faq-item,
.alert,
.conclusions,
.legend,
.raid-notes {
  margin: 14px 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: rgba(0, 0, 0, .2);
}

.rules-section {
  counter-reset: rule;
}

.rules-section h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.rule-item {
  counter-increment: rule;
  position: relative;
  margin: 10px 0;
  padding: 14px 14px 14px 58px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 18px;
  background: rgba(0, 0, 0, .22);
}

.rule-item::before {
  content: counter(rule);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  color: #fff;
  font-weight: 950;
}

.rule-punishment {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 85, 102, .36);
  border-radius: 12px;
  background: rgba(255, 45, 61, .13);
  color: #ffd7dd;
  font-weight: 900;
}

.raid-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2px 0 14px;
  scroll-snap-type: x proximity;
}

.raid-header {
  margin-bottom: 18px;
}

.raid-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 52px);
}

.raid-table {
  min-width: 1120px;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 14px;
}

.raid-table th,
.raid-table td {
  min-height: 56px;
  padding: 14px 12px;
  border: 0;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.raid-table th {
  position: static;
  background: linear-gradient(135deg, var(--grad1), color-mix(in srgb, var(--grad2) 72%, #2a0b12));
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .035em;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.raid-table th:first-child {
  border-radius: 18px 0 0 18px;
}

.raid-table th:last-child {
  border-radius: 0 18px 18px 0;
}

.raid-table td {
  background: rgba(255, 255, 255, .065);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.raid-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(255, 45, 61, .24), rgba(0, 0, 0, .42));
  border-radius: 18px 0 0 18px;
  color: #fff;
  font-weight: 950;
  text-align: left;
}

.raid-table td:last-child {
  border-radius: 0 18px 18px 0;
}

.raid-table tbody tr {
  transition: transform .2s var(--ease);
}

.raid-table tbody tr:hover {
  transform: translateY(-2px);
}

.raid-table tbody tr:hover td {
  background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, .075));
}

.raid-table td[data-tip] {
  position: relative;
  cursor: help;
}

.raid-table td[data-tip]:hover::after {
  content: attr(data-tip);
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  max-width: min(92vw, 680px);
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, .16));
  border-radius: 16px;
  background: rgba(10, 7, 13, .96);
  color: #fff;
  box-shadow: var(--shadow-deep);
  font-weight: 850;
}

.best-option {
  color: var(--green);
  font-weight: 950;
}

.worst-option {
  color: #ff9aa5;
  font-weight: 950;
}

.raid-calc {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--soft-line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 5%, var(--panel)), transparent);
}
.raid-calc__head h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.raid-calc__head p { margin: 0 0 1rem; font-size: .88rem; }
.raid-calc__layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}
.raid-calc__group h3 {
  margin: 0 0 .5rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.raid-calc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem;
}
.raid-calc__field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .78rem;
}
.raid-calc__field input {
  width: 100%;
  padding: .4rem .55rem;
  border-radius: 8px;
  border: 1px solid var(--soft-line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font: inherit;
}
.raid-calc__results-head {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: .75rem;
}
.raid-calc__select {
  flex: 1;
  min-width: 160px;
  padding: .4rem .55rem;
  border-radius: 8px;
  border: 1px solid var(--soft-line);
  background: rgba(0,0,0,.25);
  color: var(--text);
}
.raid-calc__reset {
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--soft-line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
}
.raid-calc__reset:hover { border-color: var(--accent); color: var(--text); }
.raid-calc__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .65rem;
}
.raid-calc__card {
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--soft-line);
  background: rgba(0,0,0,.2);
}
.raid-calc__card--ok { border-color: color-mix(in srgb, var(--green) 35%, var(--soft-line)); }
.raid-calc__card--zero { opacity: .65; }
.raid-calc__card h4 { margin: 0 0 .35rem; font-size: .85rem; }
.raid-calc__max { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .25rem; }
.raid-calc__max-num { font-size: 1.6rem; font-weight: 900; color: var(--accent); line-height: 1; }
.raid-calc__max-label { font-size: .72rem; color: var(--muted); }
.raid-calc__best, .raid-calc__none { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.raid-calc__alt { margin: .35rem 0 0; padding-left: 1rem; font-size: .72rem; color: var(--muted); }
.raid-calc__empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  border: 1px dashed var(--soft-line);
  border-radius: 12px;
}
.raid-calc__hint { margin: .75rem 0 0; font-size: .75rem; }
@media (max-width: 820px) {
  .raid-calc__layout { grid-template-columns: 1fr; }
}

.profile-server-stats[hidden] {
  content-visibility: hidden;
  contain-intrinsic-size: auto 400px;
}

.killfeed-servers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.killfeed-server {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: color-mix(in srgb, var(--panel) calc(var(--killfeed-alpha, .76) * 100%), rgba(255, 255, 255, .08));
}

.killfeed-list {
  --killfeed-visible-rows: 10;
  max-height: calc(var(--killfeed-visible-rows) * 52px + 8px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  margin-top: 4px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.killfeed-list::-webkit-scrollbar {
  width: 7px;
}

.killfeed-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .2);
  border-radius: 999px;
}

.killfeed-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, .2));
}

.killfeed-empty {
  margin: 0;
  padding: 20px 8px;
  text-align: center;
  color: #cbb8c4;
  font-size: 14px;
}

.killfeed-server h2,
.leaderboard-wide h2 {
  margin-top: 0;
}

.leaderboard-wide {
  margin-top: 18px;
  padding: clamp(16px, 2.2vw, 24px);
}

.leaderboard-head {
  margin-bottom: 14px;
  text-align: center;
}

.leaderboard-head h2 {
  margin: 0 auto;
}

.leaderboard-hint {
  margin: 8px auto 0;
  max-width: none;
  color: #cbb8c4;
  font-size: 14px;
  line-height: 1.55;
}

.server-pick-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.server-pick-widgets--profile {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.profile-server-stats {
  grid-column: 1 / -1;
}

.server-pick-widgets--weekly {
  margin-bottom: 12px;
}

.server-pick-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid rgba(255, 45, 61, 0.28);
  border-radius: 14px;
  background: rgba(12, 8, 11, 0.72);
  color: #f5e8ec;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.server-pick-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 24, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.server-pick-widget:focus-visible {
  outline: 2px solid rgba(255, 122, 24, 0.85);
  outline-offset: 2px;
}

.server-pick-widget.active {
  border-color: rgba(255, 122, 24, 0.9);
  background: linear-gradient(145deg, rgba(255, 25, 48, 0.22), rgba(255, 122, 24, 0.14));
  box-shadow: 0 0 0 1px rgba(255, 45, 61, 0.35), 0 10px 28px rgba(255, 25, 48, 0.18);
}

.server-pick-widget__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-pick-widget__meta {
  font-size: 11px;
  font-weight: 600;
  color: #c9b0ba;
  letter-spacing: 0.02em;
}

.profile-server-stats[hidden] {
  display: none !important;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.profile-extra-server {
  display: none;
}

.profile-extra-note {
  margin: 0 0 10px;
  color: #cbb8c4;
  font-size: 13px;
}

.weekly-top-empty {
  padding: 12px 0;
  color: #cbb8c4;
}

.leaderboard-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #d5c4ce;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(0, 0, 0, .18);
}

/* Подиум топ-3 */
.leaderboard-podium {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}

.leaderboard-podium--1 {
  grid-template-columns: 1fr;
  max-width: 240px;
  margin-inline: auto;
}

.leaderboard-podium--2 {
  grid-template-columns: 1fr 1fr;
  max-width: 460px;
  margin-inline: auto;
}

.leader-podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 9px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px 16px 12px 12px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
}

.leader-podium-gold {
  min-height: 132px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 220, 120, .35), transparent 55%),
    linear-gradient(180deg, rgba(255, 214, 96, .22) 0%, rgba(30, 22, 8, .75) 100%);
  border-color: color-mix(in srgb, #ffd54a 45%, rgba(255, 255, 255, .12));
  transform: translateY(-4px);
}

.leader-podium-silver {
  min-height: 112px;
  background:
    radial-gradient(circle at 50% 0%, rgba(220, 230, 255, .28), transparent 55%),
    linear-gradient(180deg, rgba(190, 198, 220, .18) 0%, rgba(18, 20, 28, .78) 100%);
  border-color: color-mix(in srgb, #c0c8d8 40%, rgba(255, 255, 255, .1));
}

.leader-podium-bronze {
  min-height: 100px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 170, 110, .22), transparent 55%),
    linear-gradient(180deg, rgba(210, 140, 80, .16) 0%, rgba(28, 16, 10, .78) 100%);
  border-color: color-mix(in srgb, #cd7f4a 38%, rgba(255, 255, 255, .1));
}

.leader-podium-medal {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 950;
  color: #1a1205;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .32);
}

.leader-podium-gold .leader-podium-medal {
  background: linear-gradient(145deg, #ffe566, #d4a017);
}

.leader-podium-silver .leader-podium-medal {
  background: linear-gradient(145deg, #f0f4ff, #8a96ad);
  color: #1c2230;
}

.leader-podium-bronze .leader-podium-medal {
  background: linear-gradient(145deg, #ffc48a, #a65c28);
}

.leader-podium-name {
  display: block;
  max-width: 100%;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 950;
  line-height: 1.2;
  color: #fff8f6;
  word-break: break-word;
}

.leader-podium-score {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leader-podium-score-val {
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
  color: #fff;
}

.leader-podium-score small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d5c4ce;
}

.leader-podium-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.leader-podium-stats li {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 9px;
  color: #b8a8b2;
}

.leader-podium-stats b {
  font-size: 11px;
  font-weight: 900;
  color: #f3e8ed;
}

/* Список 4–20 */
.leaderboard-table-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 72px 88px 76px;
  gap: 10px 14px;
  padding: 0 14px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9f8f98;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leader-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 40%),
    rgba(0, 0, 0, .22);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.leader-card:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, .12));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.leader-card-rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  font-size: 14px;
  font-weight: 950;
  color: #fff;
}

.leader-card-name {
  display: block;
  font-size: 15px;
  font-weight: 950;
  color: #fff4f6;
  line-height: 1.25;
  word-break: break-word;
}

.leader-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.leader-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  font-size: 11px;
  font-weight: 800;
  color: #e8d8e0;
}

.leader-chip em {
  font-style: normal;
  opacity: .75;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.leader-chip-kd.is-positive {
  border-color: rgba(121, 255, 156, .35);
  background: rgba(82, 255, 138, .1);
  color: #b8ffd0;
}

.leader-chip-kd.is-negative {
  border-color: rgba(255, 123, 134, .32);
  background: rgba(255, 45, 61, .1);
  color: #ffb8c0;
}

.leader-chip-kills {
  border-color: rgba(255, 122, 24, .25);
  background: rgba(255, 122, 24, .08);
}

.leader-chip-hs {
  border-color: rgba(255, 214, 96, .28);
  background: rgba(255, 214, 96, .08);
}

.leader-card-points {
  text-align: right;
  min-width: 64px;
}

.leader-card-points b {
  display: block;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  color: color-mix(in srgb, var(--grad2) 70%, #fff);
}

.leader-card-points small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b8a8b2;
}

.kill-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.kill-row .killer {
  color: #79ff9c;
}

.kill-row .victim {
  color: #ff7b86;
  text-align: right;
}

.kill-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.weapon-pill,
.kill-meta {
  grid-column: 1 / -1;
  justify-self: center;
}

.weapon-pill {
  padding: 5px 11px;
  border: 1px solid rgba(255, 122, 24, .28);
  border-radius: 999px;
  background: rgba(255, 122, 24, .12);
  color: #ffd1a9;
  font-size: 12px;
  font-weight: 950;
}

.kill-meta {
  color: #cbb8c4;
  font-size: 12px;
  text-align: center;
}

.warn-shot {
  color: #ffcf5d;
  font-weight: 950;
}


.profile-login {
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.profile-login-play {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.profile-login-play .play-buttons-row {
  justify-content: center;
}

.profile-login .big-steam {
  width: auto;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 15px;
}

.profile-login .big-steam img {
  width: 26px;
  height: 26px;
}

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

.profile-card {
  grid-column: span 2;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  filter: blur(10px);
}

.stat-card b {
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 0 26px color-mix(in srgb, var(--accent) 44%, transparent);
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: #d7c2ce;
  font-weight: 850;
}

.hit-chart {
  grid-column: 1 / -1;
}

.logout-link {
  display: inline-flex;
  margin-left: 10px;
  color: #ffd0d6;
}

.refresh-profile {
  min-height: 38px;
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 999px;
}

.case-notice {
  display: inline-flex;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.case-notice.win {
  border: 1px solid rgba(82, 255, 138, .32);
  box-shadow: 0 0 28px rgba(82, 255, 138, .18);
}

.case-notice.lost {
  border: 1px solid rgba(255, 45, 61, .34);
  box-shadow: 0 0 28px rgba(255, 45, 61, .18);
}

.case-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.case-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--case-color) 44%, rgba(255, 255, 255, .14));
  border-radius: 22px;
  background: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--case-color) 26%, transparent), transparent 42%), rgba(255, 255, 255, .06);
}

.case-art {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: color-mix(in srgb, var(--case-color) 22%, rgba(0, 0, 0, .28));
  font-size: 28px;
}

.case-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.case-art[data-fallback]::before {
  content: attr(data-fallback);
}

.case-card b,
.case-card span,
.case-card small {
  display: block;
}

.case-card.status-issued {
  opacity: .78;
  filter: saturate(.8);
}

.case-card.status-expired {
  opacity: .58;
  filter: grayscale(.35);
}

.case-card span {
  color: #ead8e2;
  overflow-wrap: anywhere;
}

.case-card small {
  margin-top: 4px;
  color: #ffd1a9;
}

.empty-inventory {
  color: var(--muted);
}

.ban-modal {
  max-width: 620px;
  margin: 30px auto;
  text-align: center;
  border-color: rgba(255, 45, 61, .42);
  box-shadow: var(--shadow-deep), 0 0 70px rgba(255, 45, 61, .24);
}

.ban-modal h2 {
  font-size: clamp(34px, 6vw, 72px);
  color: #fff;
}

.donut {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 12px auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 44px rgba(0, 0, 0, .35);
}

.donut::after {
  content: "Hit zones";
  position: absolute;
  inset: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 10, 18, .95);
  color: #fff;
  font-weight: 950;
}

.hit-zones-hint {
  margin: 0 0 14px;
  font-size: 14px;
  color: #d5c4ce;
  line-height: 1.6;
}

.hit-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 2px 0 4px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--zone-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--zone-color) 70%, transparent);
}

.hit-zones-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.hit-zones-empty {
  margin: 0;
  color: #d5c4ce;
}

.hit-bar-row {
  display: grid;
  grid-template-columns: minmax(118px, 148px) 1fr 44px;
  gap: 10px 12px;
  align-items: center;
  --zone-color: #ff2d3d;
}

.hit-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #fff4f6;
}

.hit-bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--zone-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--zone-color) 75%, transparent);
}

.hit-bar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .4);
}

.hit-bar-track i {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--zone-color), color-mix(in srgb, var(--zone-color) 55%, #fff));
  box-shadow: 0 0 14px color-mix(in srgb, var(--zone-color) 65%, transparent);
  transition: width .5s var(--ease);
}

.hit-bar-count {
  text-align: right;
  font-size: 14px;
  font-weight: 950;
}

.servers-play-intro,
.play-cta-bar {
  margin-bottom: 16px;
  padding: 14px 18px;
}

.servers-play-actions,
.play-cta-bar .monitor-play-ui {
  margin-top: 12px;
}

.servers-play-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #f3dfe9;
}

.topbar-play.play-buttons-row {
  flex-wrap: nowrap;
  gap: 6px;
  margin-right: 4px;
}

.topbar-play a.btn-play-sm {
  font-size: 10px;
  padding: 5px 8px;
  min-height: 34px;
  white-space: normal;
  line-height: 1.15;
  max-width: 118px;
  text-align: center;
}

.footer-play-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  order: 0;
}

.footer-play-wrap .play-buttons-row {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer .footer-play-wrap + .footer-server-status {
  margin-top: 4px;
}

.hero-btn-servers {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}

.site-footer {
  width: min(1360px, calc(100% - 42px));
  margin: 30px auto 36px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 28px;
  background: rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  backdrop-filter: blur(14px);
}

.site-footer .footer-play-layout {
  width: 100%;
  flex: 1 1 100%;
}

.site-footer .footer-live,
.site-footer > .footer-server-status {
  order: 1;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 360px;
}

.footer-server-status {
  display: block;
}

.footer-server-widget__title {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8949e;
}

.footer-server-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-server-row {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 6px 8px;
  padding: 3px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
  line-height: 1.25;
  color: #eee;
}

.footer-server-row .status-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
}

.footer-server-row__name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-server-row__status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #8fd9a8;
}

.footer-server-row.is-offline .footer-server-row__status {
  color: #ff8a96;
}

.footer-server-row__players,
.footer-server-row__ping {
  font-size: 10px;
  color: #cbb8c4;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.footer-server-row__players {
  min-width: 2.8em;
}

.footer-server-row__ping {
  min-width: 3.4em;
}

.footer-server-row.is-offline {
  color: #dcc9d2;
}

.status-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.is-pending {
  background: #5c5664;
  box-shadow: none;
}

.status-dot.is-on {
  background: #3dff7a;
  box-shadow: 0 0 10px #3dff7a, 0 0 18px rgba(61, 255, 122, .45);
}

.status-dot.is-off {
  background: #ff3348;
  box-shadow: 0 0 8px #ff3348, 0 0 14px rgba(255, 51, 72, .35);
}

.page-profile .wrap {
  position: relative;
}

.profile-admin-corner ~ .profile-tabs {
  margin-top: 44px;
}

.profile-admin-corner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 61, .45);
  background: linear-gradient(135deg, rgba(255, 45, 61, .92), rgba(120, 10, 24, .92));
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: 0 12px 32px rgba(255, 45, 61, .25);
}

.profile-admin-corner:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.page-profile .profile-identity h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.page-profile .profile-identity p {
  font-size: 14px;
  line-height: 1.5;
  color: #dcc9d2;
}

.page-profile .profile-tabs button {
  font-size: 13px;
  letter-spacing: .02em;
}

.toast-login {
  position: fixed;
  right: 22px;
  top: 86px;
  z-index: 9999;
  padding: 14px 18px;
  border: 1px solid rgba(82, 255, 138, .35);
  border-radius: 18px;
  background: rgba(13, 20, 14, .94);
  color: #eaffdf;
  box-shadow: var(--shadow-deep);
  font-weight: 950;
  animation: toastIn .35s var(--ease), toastOut .35s var(--ease) 4.8s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-12px); pointer-events: none; }
}

.steam-modal-open {
  overflow: hidden;
}

.steam-mobile-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(12px);
}

.steam-mobile-modal.open {
  display: flex;
}

.steam-mobile-card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(28, 16, 28, .97), rgba(9, 8, 14, .97));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-deep);
  animation: steamModalIn .2s var(--ease);
}

@keyframes steamModalIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.steam-mobile-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.steam-mobile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, #273b5d, #111a29);
}

.steam-mobile-icon img {
  width: 44px;
  height: 44px;
}

.steam-mobile-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.steam-mobile-card p {
  max-width: 330px;
  margin: 0 auto 18px;
  color: #d9e1ef;
}

.steam-mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.steam-open-app,
.steam-browser-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.steam-open-app {
  background: linear-gradient(135deg, #3b6ea8, #1d3e68);
}

.steam-browser-login {
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
}

.steam-mobile-card small {
  display: block;
  margin-top: 14px;
  color: #aeb9c9;
}

body.theme-black-red {
  --grad1: #e11d32;
  --grad2: #991b1b;
  --accent: #dc2626;
  --monitor-btn: #dc2626;
  --nav-btn: #dc2626;
  --logo-glow: #ef4444;
  --panel: #0a0a0a;
  --text: #ededed;
  --bg-color: #030303;
  --muted: #8a858c;
}

body.theme-black-red .topbar nav a.active,
body.theme-black-red .topbar nav a:hover {
  background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, .04));
  border-color: color-mix(in srgb, var(--accent) 50%, rgba(255, 255, 255, .08));
  color: #fff;
}

body.theme-black-red .hero-btn,
body.theme-black-red .server-actions a,
body.theme-black-red .server-info-actions a:not(.monitor-play-btn):not(.monitor-play-weedayz):not(.monitor-play-steam),
body.theme-black-red .big-steam,
body.theme-black-red .btn-eco.primary,
body.theme-black-red .discord-bind-btn {
  background: linear-gradient(180deg, #ef4444, #dc2626) !important;
  border-color: #b91c1c !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, .25) !important;
}

body.theme-black-red .hero-btn:hover,
body.theme-black-red .server-actions a:hover,
body.theme-black-red .server-info-actions a:not(.monitor-play-btn):hover,
body.theme-black-red .big-steam:hover,
body.theme-black-red .btn-eco.primary:hover {
  background: linear-gradient(180deg, #f87171, #ef4444) !important;
  box-shadow: 0 10px 28px rgba(239, 68, 68, .32) !important;
}

body.theme-black-red .btn-eco:not(.primary) {
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, .1));
}

body.theme-black-red .btn-eco:not(.primary):hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

body.theme-noir-red {
  --grad1: #a83844;
  --grad2: #5c3040;
  --accent: #b84852;
  --monitor-btn: #b84852;
  --nav-btn: #8a4550;
  --bg-color: #0a090c;
}

body.theme-violet-night {
  --grad1: #8b6ec8;
  --grad2: #4a3868;
  --accent: #9b7fd4;
  --monitor-btn: #9b7fd4;
  --nav-btn: #6e5890;
  --bg-color: #0b0912;
}

body.theme-cobalt-night {
  --grad1: #4a7ec4;
  --grad2: #2a4060;
  --accent: #5a8fd4;
  --monitor-btn: #5a8fd4;
  --nav-btn: #446890;
  --bg-color: #080a10;
}

body.theme-graphite {
  --grad1: #9a969e;
  --grad2: #4a484e;
  --accent: #a8a4b0;
  --monitor-btn: #a8a4b0;
  --nav-btn: #787480;
  --bg-color: #0c0c0e;
}

body.theme-ember {
  --grad1: #b85848;
  --grad2: #6a4038;
  --accent: #c46850;
  --monitor-btn: #c46850;
  --nav-btn: #9a5848;
  --bg-color: #0d0908;
}

body.theme-obsidian {
  --grad1: #7a767e;
  --grad2: #3a383c;
  --accent: #8a858e;
  --monitor-btn: #8a858e;
  --nav-btn: #6a666e;
  --bg-color: #060608;
}

body.theme-crimson-arena { --grad1:#e11d48;--grad2:#9f1239;--accent:#e11d48;--monitor-btn:#e11d48;--nav-btn:#be123c;--bg-color:#12080c; }
body.theme-emerald-forest { --grad1:#34d399;--grad2:#065f46;--accent:#34d399;--monitor-btn:#10b981;--nav-btn:#059669;--bg-color:#071210; }
body.theme-arctic-blue { --grad1:#38bdf8;--grad2:#0c4a6e;--accent:#38bdf8;--monitor-btn:#0ea5e9;--nav-btn:#0284c7;--bg-color:#060a10; }
body.theme-sunset-gold { --grad1:#f59e0b;--grad2:#b45309;--accent:#f59e0b;--monitor-btn:#f59e0b;--nav-btn:#d97706;--bg-color:#100a04; }
body.theme-neon-cyan { --grad1:#22d3ee;--grad2:#0891b2;--accent:#22d3ee;--monitor-btn:#06b6d4;--nav-btn:#0891b2;--bg-color:#040a10; }
body.theme-royal-purple { --grad1:#a855f7;--grad2:#6b21a8;--accent:#a855f7;--monitor-btn:#9333ea;--nav-btn:#7e22ce;--bg-color:#0a0612; }
body.theme-sand-light { --grad1:#d97706;--grad2:#92400e;--accent:#d97706;--monitor-btn:#d97706;--nav-btn:#b45309;--bg-color:#f4efe3;--text:#161616; }

.hero-slogan-carousel { min-height: 2.8em; position: relative; margin: 12px 0; }
.hero-slogan-line {
  margin: 0; font-size: clamp(16px, 2.2vw, 22px); font-weight: 700; line-height: 1.35;
  opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s;
  position: absolute; left: 0; right: 0;
}
.hero-slogan-line.is-active { opacity: 1; transform: none; position: relative; }
.home-hero-v2 .hero-slogan-line { display: none; }

/* Hero v2 — слоганы с иконками */
.home-hero.home-hero-v2 {
  border-color: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, .1));
  background: color-mix(in srgb, var(--panel) calc(var(--panel-alpha) * 100%), rgba(0, 0, 0, .42));
  box-shadow: var(--shadow-deep);
  isolation: isolate;
}

.home-hero.home-hero-v2::before,
.home-hero.home-hero-v2::after {
  display: none;
}

.home-hero-v2 {
  min-height: 420px;
  padding: clamp(22px, 4vw, 48px);
}

.home-hero-v2 .hero-v2-glow {
  position: absolute;
  inset: 0;
  opacity: var(--hero-glow-opacity, 1);
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%),
    radial-gradient(circle at 12% 80%, color-mix(in srgb, var(--grad2) 18%, transparent), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.home-hero-v2 .hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-hero-v2 .hero-eyebrow {
  font-family: var(--hero-eyebrow-font, var(--site-font, inherit));
  opacity: var(--hero-eyebrow-opacity, 1);
}

.home-hero-v2 h1 {
  font-family: var(--hero-title-font, var(--site-font, inherit));
  opacity: var(--hero-title-opacity, 1);
}

.home-hero-v2 .hero-v2-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(200px, 0.9fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}

.home-hero-v2 .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 75%, transparent);
}

.home-hero-v2 h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-slide-stage {
  position: relative;
  height: 128px;
  min-height: 128px;
  max-height: 128px;
  margin: 0 0 12px;
  overflow: hidden;
  flex-shrink: 0;
  contain: layout style paint;
}

.hero-slide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, var(--hero-slide-alpha, .28));
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity .5s ease, transform .5s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: none;
  position: absolute;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35), 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, .1));
}

.hero-effect-pulse .hero-slide.is-active {
  animation: heroSlidePulse 2.4s ease-in-out infinite;
}

.hero-effect-glow .hero-slide.is-active .hero-slide-text {
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent);
}

.hero-effect-slide .hero-slide {
  transform: translateX(32px);
}

.hero-effect-slide .hero-slide.is-active {
  transform: translateX(0);
}

@keyframes heroSlidePulse {
  50% { transform: scale(1.01); border-color: color-mix(in srgb, var(--accent) 50%, rgba(255, 255, 255, .12)); }
}

.hero-slide-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .35));
  color: color-mix(in srgb, var(--accent) 85%, #fff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.hero-slide-icon svg {
  width: 28px;
  height: 28px;
}

.hero-slide-text {
  margin: 0;
  font-size: var(--hero-slogan-size, clamp(17px, 2.4vw, 24px));
  font-weight: 700;
  line-height: 1.35;
  opacity: var(--hero-slogan-opacity, 1);
}

.hero-slide-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.hero-slide-dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
}

.hero-play-hint {
  margin: 0 0 10px;
  font-size: 13px;
}

.hero-play-row .monitor-play-row {
  margin: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.hero-orbit {
  --orbit-active: 0;
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 1;
}

.hero-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 25%, rgba(0, 0, 0, .5));
  color: #fff;
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent);
  animation: heroCorePulse 2.8s ease-in-out infinite;
}

.hero-orbit-core svg {
  width: 36px;
  height: 36px;
}

.hero-orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  color: color-mix(in srgb, var(--text) 80%, var(--accent));
  border: 1px solid rgba(255, 255, 255, .1);
  transform: rotate(calc((360deg / var(--orbit-n)) * var(--orbit-i))) translateY(-110px) rotate(calc((-360deg / var(--orbit-n)) * var(--orbit-i)));
  animation: heroOrbitSpin 24s linear infinite;
  animation-delay: calc(var(--orbit-i) * -2.4s);
  opacity: 0.55;
  transition: opacity .4s, box-shadow .4s, color .4s;
}

.hero-orbit-node svg {
  width: 22px;
  height: 22px;
}

.hero-orbit-node.is-active {
  opacity: 1;
  color: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  z-index: 2;
}

@keyframes heroOrbitSpin {
  to { transform: rotate(calc((360deg / var(--orbit-n)) * var(--orbit-i) + 360deg)) translateY(-110px) rotate(calc((-360deg / var(--orbit-n)) * var(--orbit-i) - 360deg)); }
}

@keyframes heroCorePulse {
  50% { box-shadow: 0 0 56px color-mix(in srgb, var(--accent) 50%, transparent); }
}

.page-home .home-hero-v2 .hero-visual {
  display: flex;
}

@media (max-width: 900px) {
  .home-hero-v2 .hero-v2-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 200px;
    order: -1;
  }
  .hero-orbit {
    width: 220px;
  }
  .hero-orbit-node {
    transform: rotate(calc((360deg / var(--orbit-n)) * var(--orbit-i))) translateY(-88px) rotate(calc((-360deg / var(--orbit-n)) * var(--orbit-i)));
  }
}

.hero-effect-pulse .hero-slogan-line.is-active { animation: heroPulse 2s ease-in-out infinite; }
.hero-effect-glow .hero-slogan-line.is-active { text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent); }
@keyframes heroPulse { 50% { opacity: .82; transform: scale(1.01); } }
.home-hero-pro .hero-sub { margin-top: 48px; font-size: 14px; }
.hero-panel-glass {
  display: grid; place-items: center;
  border-radius: 24px;
  background: color-mix(in srgb, var(--panel) calc(var(--panel-alpha) * 100%), transparent);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-stat-pill { text-align: center; }
.hero-stat-pill b { display: block; font-size: 42px; line-height: 1; }

.profile-hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.profile-hub-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: color-mix(in srgb, var(--panel) calc(var(--profile-alpha, .76) * 100%), transparent);
  color: inherit;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.profile-hub-card:hover, .profile-hub-card.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.profile-hub-card b { display: block; margin: 6px 0 2px; }
.profile-hub-card small { color: var(--muted, #baaab6); font-size: 12px; }
.profile-hub-icon { font-size: 22px; }

.page-profile .glass.profile-card,
.page-profile .tickets-panel {
  background: color-mix(in srgb, var(--panel) calc(var(--profile-alpha, .76) * 100%), rgba(255,255,255,.06));
}

.media-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 20px;
}
.media-lightbox.is-open { display: flex; }
.media-lightbox img, .media-lightbox video { max-width: min(96vw, 920px); max-height: 90vh; border-radius: 12px; }
.media-lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; cursor: pointer;
}
.emoji-toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.emoji-toolbar button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06); cursor: pointer; font-size: 17px;
}
.ticket-attachment { display: inline-block; margin-top: 8px; border-radius: 12px; overflow: hidden; max-width: 280px; }
.ticket-attachment img, .ticket-attachment video { display: block; max-width: 100%; border-radius: 12px; }
.ticket-attachment-video { position: relative; }
.ticket-attachment-video span {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35); font-weight: 700; color: #fff;
}

body.shape-pill .glass,
body.shape-pill .server-card,
body.shape-pill .news-widget,
body.shape-pill .server-info-card,
body.shape-pill .newbie-gift,
body.shape-pill .home-hero {
  border-radius: 42px;
}

body.shape-sharp .glass,
body.shape-sharp .server-card,
body.shape-sharp .news-widget,
body.shape-sharp .server-info-card,
body.shape-sharp .newbie-gift,
body.shape-sharp .home-hero,
body.shape-sharp .hero-btn,
body.shape-sharp .server-actions a {
  border-radius: 8px;
}

body.shape-hex .glass,
body.shape-hex .server-card,
body.shape-hex .news-widget,
body.shape-hex .server-info-card,
body.shape-hex .newbie-gift {
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

body.buttons-solid .hero-btn,
body.buttons-solid .server-actions a,
body.buttons-solid .server-info-actions a:not(.monitor-play-btn),
body.buttons-solid .big-steam {
  background: var(--accent);
  box-shadow: none;
}

body.buttons-outline .hero-btn,
body.buttons-outline .server-actions a,
body.buttons-outline .server-info-actions a:not(.monitor-play-btn),
body.buttons-outline .big-steam {
  background: transparent;
  border-color: color-mix(in srgb, var(--accent) 65%, rgba(255, 255, 255, .2));
}

body.buttons-glass .hero-btn,
body.buttons-glass .server-actions a,
body.buttons-glass .server-info-actions a:not(.monitor-play-btn),
body.buttons-glass .big-steam {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}

body.buttons-minimal .hero-btn,
body.buttons-minimal .server-actions a,
body.buttons-minimal .server-info-actions a:not(.monitor-play-btn),
body.buttons-minimal .big-steam {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}

body.buttons-cyber .hero-btn,
body.buttons-cyber .server-actions a,
body.buttons-cyber .server-info-actions a:not(.monitor-play-btn),
body.buttons-cyber .big-steam {
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

body.header-floating .topbar {
  width: min(1360px, calc(100% - 28px));
  margin: 12px auto 0;
  border-radius: 28px;
}

body.header-compact .topbar {
  padding-top: 7px;
  padding-bottom: 7px;
}

body.header-solid .topbar {
  background: #100b12;
  backdrop-filter: none;
}

body.motion-fast {
  --ease: cubic-bezier(.16, 1, .3, 1);
}

body.motion-calm * {
  transition-duration: .35s;
}

body.motion-off *,
body.motion-off *::before,
body.motion-off *::after {
  animation: none !important;
  transition: none !important;
}

body.logo-transparent .brand img { opacity: .72; filter: none; }
body.logo-solid .brand img { filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
body.logo-neon .brand img { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 32px var(--logo-glow)); }
body.logo-clean .brand img { filter: none; }

body.color-solid.bg-overlay-gradient .bg-shade {
  background: radial-gradient(circle at center, rgba(0,0,0,0), rgba(0,0,0,var(--vignette-alpha))), var(--bg-color);
}

body.color-aurora.bg-overlay-gradient .bg-shade {
  background: radial-gradient(circle at 20% 15%, color-mix(in srgb,var(--grad1) 34%,transparent), transparent 30%), radial-gradient(circle at 80% 20%, color-mix(in srgb,var(--grad2) 34%,transparent), transparent 32%), radial-gradient(circle at 50% 100%, color-mix(in srgb,var(--pink) 26%,transparent), transparent 40%), linear-gradient(120deg, rgba(5,4,8,.92), rgba(20,6,16,.75));
}

body.button-fill-solid .hero-btn,
body.button-fill-solid .server-actions a,
body.button-fill-solid .server-info-actions a:not(.monitor-play-btn),
body.button-fill-solid .big-steam { background: var(--accent); }

body.button-fill-transparent .hero-btn,
body.button-fill-transparent .server-actions a,
body.button-fill-transparent .server-info-actions a:not(.monitor-play-btn),
body.button-fill-transparent .big-steam { background: rgba(255,255,255,.08); }

body.button-fill-outline .hero-btn,
body.button-fill-outline .server-actions a,
body.button-fill-outline .server-info-actions a:not(.monitor-play-btn),
body.button-fill-outline .big-steam { background: transparent; border-color: var(--accent); }

.legal-links {
  order: 99;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.legal-links a {
  color: #bfaeb9;
  font-size: 12px;
  text-decoration: none;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-identity img,
.profile-identity .profile-steam-avatar,
.profile-avatar-fallback {
  width: 128px;
  height: 128px;
  min-width: 128px;
  min-height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.2));
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 26%, transparent);
  display: block;
  background: #101828;
}

.steam-profile-link {
  color: #8ecbff;
  text-decoration: none;
  font-weight: 900;
}

.steam-profile-link:hover {
  color: #fff;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  color: #fff;
  font-weight: 1000;
}

.profile-tabs button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.profile-tabs button.active {
  background: linear-gradient(135deg, var(--grad1), var(--grad2));
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent) 24%, transparent);
}

.page-profile .discord-bind-btn {
  margin-left: 0;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, #5865f2, #263ad8);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(88, 101, 242, .22);
}

.page-profile .discord-bind-btn img {
  width: 18px;
  height: 18px;
}

.admin-open-danger {
  background: linear-gradient(135deg,#ff1830,#8f0012) !important;
  box-shadow: 0 14px 42px rgba(255,24,48,.28) !important;
}

.profile-panel[hidden] {
  display: none !important;
}

.profile-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: profilePanelIn .28s var(--ease);
}

.profile-panel .integration-dev-notice {
  margin: 0;
}

.profile-panel .profile-grid {
  width: 100%;
}

.profile-analytics-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.profile-analytics-stack > .glass {
  width: 100%;
  min-width: 0;
}

.profile-analytics-stack .hit-chart,
.profile-analytics-stack .profile-extra {
  grid-column: auto;
  margin-top: 0;
}

@keyframes profilePanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-extra {
  margin-top: 16px;
}

.profile-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.profile-extra-grid span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
}

.profile-extra-grid b {
  color: #fff;
  font-size: 18px;
}

.tickets-panel {
  display: grid;
  gap: 14px;
}

.ticket-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
}

.ticket-create textarea {
  grid-column: 1 / -1;
  min-height: 120px;
}

.ticket-faq {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}

.ticket-faq ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.ticket-create input,
.ticket-create select,
.ticket-create textarea,
.ticket-message-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(0,0,0,.24);
  color: #fff;
  padding: 12px;
}

.ticket-file,
.ticket-ack {
  grid-column: 1 / -1;
  color: #fff;
}

.ticket-file input {
  margin-top: 8px;
}

.ticket-ack {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ticket-ack input {
  width: auto;
}

.profile-tickets {
  display: grid;
  gap: 12px;
}

.profile-ticket {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
}

.profile-ticket header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-ticket header span {
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  padding: 5px 9px;
  color: #ffd2d9;
  font-size: 12px;
  font-weight: 950;
}

.ticket-thread-mini {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.ticket-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

.ticket-bubble.admin {
  margin-left: auto;
  background: color-mix(in srgb, var(--accent) 22%, rgba(255,255,255,.08));
}

.ticket-bubble p {
  margin: 5px 0;
}

.ticket-bubble small {
  color: #baaab6;
}

.ticket-bubble img {
  display: block;
  max-width: min(100%, 360px);
  margin-top: 8px;
  border-radius: 14px;
}

.ticket-bubble-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ticket-bubble-av,
.ticket-bubble-av-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ticket-bubble-av-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 45, 61, 0.25);
  font-size: 12px;
  font-weight: 800;
}

.ticket-role-pill {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 45, 61, 0.2);
  border: 1px solid rgba(255, 45, 61, 0.35);
  vertical-align: middle;
}

.page-home .wrap {
  display: flex;
  flex-direction: column;
}

.page-home .monitor-rows,
.page-home .servers-grid {
  order: 1;
}

.page-home .home-hero {
  order: 2;
}

.page-home .news-widget {
  order: 3;
}

.page-home .hero-panel {
  display: none;
}

.ticket-message-form {
  display: grid;
  gap: 8px;
}

.client-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(12,8,14,.95);
  color: #fff;
  box-shadow: var(--shadow-deep);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.client-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.client-notice.win { border: 1px solid rgba(82,255,138,.32); }
.client-notice.lost { border: 1px solid rgba(255,45,61,.34); }

.legal-links a:hover {
  color: #fff;
}

@media (max-width: 1180px) {
  .topbar-play {
    display: none;
  }
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand brand lang"
      "nav nav nav"
      "social social social";
  }

  .brand { grid-area: brand; }
  .lang-switch-simple {
    grid-area: lang;
    justify-self: end;
  }
  .topbar nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .socials {
    grid-area: social;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

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

  .server-card {
    width: min(100%, 920px);
    margin: 0 auto;
  }

  .killfeed-servers {
    grid-template-columns: 1fr;
  }

  .leaderboard-podium {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .leader-podium-gold {
    transform: none;
    order: 1;
  }

  .leader-podium-silver {
    order: 2;
  }

  .leader-podium-bronze {
    order: 3;
  }

  .leaderboard-table-head {
    display: none;
  }

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

  .profile-card,
  .hit-chart {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .topbar {
    gap: 9px;
    padding: 9px 10px;
  }

  .brand img {
    height: 48px;
    max-width: 142px;
  }

  .live-pill {
    max-width: 128px;
    overflow: hidden;
    padding: 6px 8px;
    font-size: 11px;
  }

  .topbar nav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .icon-btn {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .steam-login-pretty,
  .steam-account-btn {
    min-height: 36px;
    padding: 0 10px;
  }

  .steam-login-pretty span,
  .steam-account-btn span {
    font-size: 12px;
  }

  .wrap,
  .site-footer {
    width: calc(100% - 20px);
  }

  .home-hero {
    min-height: 0;
    padding: 22px 18px;
    border-radius: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 17vw, 68px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .server-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "status"
      "bars"
      "stats"
      "meter"
      "actions";
    border-radius: 26px;
  }

  .server-card::before,
  .server-card::after,
  .server-orb {
    display: none;
  }

  .server-top,
  .server-info-head {
    display: block;
  }

  .server-location,
  .server-info-head span {
    display: inline-flex;
    margin-top: 8px;
    white-space: normal;
  }

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

  .server-stats .ip-stat {
    grid-column: 1 / -1;
  }

  .server-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .page-servers .server-info-actions .monitor-play-ui {
    max-width: none;
  }

  .page-servers .server-info-actions .monitor-play-btn {
    flex: 1;
    min-width: 0;
  }

  .online-bars-wrap {
    height: 116px;
  }

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

  .newbie-gift {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .newbie-gift div {
    grid-row: auto;
  }

  .profile-grid,
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .kill-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .kill-row .victim {
    text-align: center;
  }

  .kill-icon {
    margin: auto;
  }

  .leader-card {
    grid-template-columns: 40px 1fr;
    gap: 8px 10px;
  }

  .leader-card-points {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    padding-left: 50px;
  }

  .leader-card-points b {
    font-size: 18px;
  }

  .hit-zone-row {
    grid-template-columns: 82px 1fr 36px;
  }

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

  .footer-server-status {
    max-width: none;
  }

  .footer-server-row {
    grid-template-columns: 7px minmax(0, 1fr) auto auto auto;
  }

  .steam-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 116px;
    min-width: 0;
  }

  .toast-login {
    left: 10px;
    right: 10px;
    top: 82px;
  }
}

@media (max-width: 430px) {
  .brand img {
    max-width: 120px;
  }

  .live-pill b,
  .steam-login-pretty span,
  .steam-account-btn span {
    display: none;
  }

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

  .server-stats .ip-stat {
    grid-column: auto;
  }
}

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


/* RETRO ticket/admin patch */
.retro-ticket-faq { overflow: hidden; }
.ticket-faq-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.ticket-faq-head b { font-size:18px; color:#fff; letter-spacing:.02em; }
.ticket-faq-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.ticket-faq-grid h3 { margin:0 0 8px; color:#fff; }
.ticket-faq-grid p { margin:0 0 8px; color:#ffd2d9; }
.ticket-faq-grid a { color:#fff; font-weight:900; }
.ticket-rules-btn,
.ticket-create button,
.ticket-message-form button,
.ticket-actions button,
.ticket-actions select,
.ticket-actions input,
.admin-ticket-btn {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff 6%), #ff7a18);
  color:#fff;
  font-weight:950;
  padding:10px 14px;
  text-decoration:none;
  box-shadow:0 10px 28px rgba(255,45,61,.22), inset 0 1px 0 rgba(255,255,255,.18);
  cursor:pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.ticket-actions input,
.ticket-actions select { background:rgba(0,0,0,.28); }
.ticket-rules-btn:hover,
.ticket-create button:hover,
.ticket-message-form button:hover,
.ticket-actions button:hover,
.admin-ticket-btn:hover { transform: translateY(-2px); filter:saturate(1.12); box-shadow:0 16px 36px rgba(255,45,61,.32); }
.ticket-message-form button[name="close"] { background:rgba(255,255,255,.08); }
.ticket-actions .delete-icon { min-width:42px; background:linear-gradient(135deg,#8b000d,#ff2d3d); }
@media (max-width: 900px) { .ticket-faq-grid { grid-template-columns:1fr; } }

.ticket-faq-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.faq-flag-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}

.faq-flag-btn:hover { transform: scale(1.06); }
.faq-flag-btn.active {
  border-color: color-mix(in srgb, var(--accent) 70%, #fff);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.ticket-faq-panel h3 { margin: 0 0 8px; color: #fff; }
.ticket-faq-panel ul { margin: 0; padding-left: 18px; color: #f2dfe8; }
.ticket-faq-panel li { margin: 6px 0; }

.ticket-faq-play {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .1);
}

.ticket-faq-play-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  color: #ffd2d9;
  letter-spacing: .02em;
}

.ticket-faq-play .play-buttons-row {
  gap: 6px;
}

.ticket-faq-play a.btn-play-sm {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 9px;
  border-radius: 8px;
}

.ticket-faq-play a.btn-play-sm .btn-play-icon {
  width: 14px;
  height: 14px;
}

body.buttons-solid .ticket-faq-play a.btn-play-weedayz,
body.buttons-outline .ticket-faq-play a.btn-play-weedayz,
body.buttons-glass .ticket-faq-play a.btn-play-weedayz,
body.buttons-minimal .ticket-faq-play a.btn-play-weedayz,
body.buttons-cyber .ticket-faq-play a.btn-play-weedayz,
body.button-fill-solid .ticket-faq-play a.btn-play-weedayz,
body.button-fill-outline .ticket-faq-play a.btn-play-weedayz {
  background: linear-gradient(180deg, #a88442 0%, #6f5420 48%, #5a4318 100%);
  color: #fff8e8;
}

body.buttons-solid .ticket-faq-play a.btn-play-steam,
body.buttons-outline .ticket-faq-play a.btn-play-steam,
body.buttons-glass .ticket-faq-play a.btn-play-steam,
body.buttons-minimal .ticket-faq-play a.btn-play-steam,
body.buttons-cyber .ticket-faq-play a.btn-play-steam,
body.button-fill-solid .ticket-faq-play a.btn-play-steam,
body.button-fill-outline .ticket-faq-play a.btn-play-steam {
  background: linear-gradient(135deg, #235fba 0%, #163d6e 52%, #101b35 100%);
  color: #fff;
}

/* —— v1.2: топ недели, достижения, тикеты —— */
.home-weekly-top {
  margin-bottom: 18px;
  padding: 18px 20px;
}

.weekly-top-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.weekly-top-head h2 {
  margin: 0;
  font-size: 20px;
}

.weekly-top-period {
  font-size: 12px;
  font-weight: 800;
  color: #ffd2d9;
  letter-spacing: .04em;
}

.weekly-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.weekly-top-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .08);
}

.weekly-top-item--1 {
  border-color: color-mix(in srgb, #ffd700 45%, transparent);
  background: linear-gradient(90deg, rgba(255, 215, 0, .12), rgba(0, 0, 0, .18));
}

.weekly-top-rank {
  font-size: 22px;
  line-height: 1;
}

.weekly-top-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.weekly-top-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  font-weight: 900;
}

.weekly-top-meta b {
  display: block;
  font-size: 15px;
}

.weekly-top-meta small {
  color: #f2dfe8;
}

.weekly-top-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 900;
  color: #fff;
}

.achievements-panel {
  grid-column: 1 / -1;
}

.achievements-panel--v14 .achievements-scroll {
  max-height: min(520px, 55vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-top: 8px;
  scrollbar-width: thin;
}

.achievement-category {
  margin-bottom: 16px;
}

.achievement-category-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ffd0d8;
}

.achievements-rank {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #ffb4c0;
}

.achievements-rank.rank-tier-3,
.achievements-rank.rank-tier-4,
.achievements-rank.rank-tier-5 {
  color: #ffe08a;
  text-shadow: 0 0 12px rgba(255, 200, 80, .35);
}

.achievements-stats-col {
  text-align: right;
}

.achievements-points {
  margin: 4px 0 0;
  font-size: 12px;
  color: #e8d5dc;
}

.achievements-points span {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.achievements-global-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  margin-bottom: 12px;
}

.achievements-global-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--grad2), var(--accent));
}

.achievements-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.achievements-head h2 {
  margin: 0;
  font-size: 18px;
}

.achievements-summary {
  margin: 0;
  font-size: 13px;
  color: #ffd2d9;
  font-weight: 800;
}

.achievement-progress-block {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .08);
}

.achievement-progress-title {
  margin-bottom: 8px;
  font-size: 14px;
}

.achievement-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.achievement-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--grad2));
}

.achievement-progress-block small {
  display: block;
  margin-top: 6px;
  color: #e8d5dc;
  font-size: 12px;
}

.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
}

.achievement-badge.is-earned {
  opacity: 1;
  filter: none;
  border-color: rgba(74, 222, 128, .7);
  background: linear-gradient(135deg, rgba(34, 197, 94, .32), rgba(22, 101, 52, .18));
  box-shadow: 0 0 12px rgba(74, 222, 128, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #dcfce7;
}

.achievement-badge.is-earned .achievement-label {
  color: #bbf7d0;
}

.achievement-badge.is-earned .achievement-icon {
  filter: drop-shadow(0 0 4px rgba(134, 239, 172, .5));
}

.achievement-badge.is-earned .achievement-pts {
  color: #86efac;
}

.favorite-weapon-card .favorite-weapon-name {
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.2;
  word-break: break-word;
}

.stat-card--weapon {
  grid-column: span 2;
}

@media (max-width: 520px) {
  .stat-card--weapon {
    grid-column: 1 / -1;
  }
}

.achievement-badge.is-locked {
  opacity: .42;
  filter: grayscale(.35);
}

.achievement-badge.is-progress {
  opacity: .88;
  border-color: color-mix(in srgb, var(--grad2) 45%, transparent);
  background: color-mix(in srgb, var(--grad2) 12%, rgba(0, 0, 0, .15));
}

.achievement-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-pts {
  font-size: 10px;
  color: #ffe08a;
  font-weight: 900;
  flex-shrink: 0;
}

.achievement-mini-pct {
  font-size: 10px;
  color: #ffd2d9;
  flex-shrink: 0;
}

.achievement-progress-block em {
  font-style: normal;
  color: #ffe08a;
  font-size: 12px;
}

.achievement-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.profile-tab-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 950;
  background: linear-gradient(135deg, #ff2d3d, #ff7a18);
  color: #fff;
  vertical-align: middle;
}

.profile-tab-badge[hidden] {
  display: none !important;
}

/* —— v1.3: мобильная оптимизация —— */
.raid-mobile-hint {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  color: #ffd2d9;
}

.mobile-scroll-hint {
  display: none;
  font-size: 12px;
  color: #ffd2d9;
  margin: 0 0 10px;
}

.content .glass,
.glass.content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content table {
  min-width: 100%;
}

@media (max-width: 960px) {
  .killfeed-servers {
    grid-template-columns: 1fr;
  }

  .monitor-rows {
    gap: 12px;
  }

  .server-monitor {
    padding: 12px;
  }

  .monitor-play-ui {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .monitor-play-btn {
    flex: 1 1 100%;
    min-height: 44px;
  }

  .home-weekly-top {
    padding: 14px;
  }

  .weekly-top-item {
    padding: 8px 10px;
  }

  .achievements-grid {
    gap: 6px;
  }

  .achievement-badge {
    font-size: 10px;
    padding: 6px 8px;
    flex: 1 1 calc(50% - 6px);
    max-width: none;
  }

  .achievements-panel--v14 .achievements-scroll {
    max-height: none;
  }

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

  .profile-card,
  .achievements-panel,
  .hit-chart,
  .tickets-panel {
    grid-column: 1 / -1;
  }

  .profile-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .profile-tabs button {
    flex: 1 1 auto;
    min-height: 40px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .rules-container,
  .raid-container {
    padding: 0 2px;
  }

  .rules-section h2 {
    font-size: 18px;
  }

  .rule-item,
  .faq-question {
    font-size: 14px;
    line-height: 1.45;
  }

  .raid-mobile-hint,
  .mobile-scroll-hint {
    display: block;
  }

  .raid-container::before {
    content: '← свайп таблицы →';
    display: block;
    font-size: 11px;
    color: #ffd2d9;
    margin-bottom: 8px;
    text-align: center;
  }

  .raid-table {
    min-width: 0;
    display: block;
  }

  .raid-table thead {
    display: none;
  }

  .raid-table tbody {
    display: block;
  }

  .raid-table tbody tr {
    display: block;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .1);
  }

  .raid-table tbody tr:hover {
    transform: none;
  }

  .raid-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    padding: 8px 4px;
    text-align: right;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .raid-table td:last-child {
    border-bottom: 0;
  }

  .raid-table td:first-child {
    position: static;
    display: block;
    text-align: left;
    font-size: 15px;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: transparent !important;
  }

  .raid-table td:not(:first-child)::before {
    content: attr(data-label);
    flex: 1;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: #ffd0d8;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-right: 8px;
  }

  .leaderboard-podium {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .leaderboard-podium--3 .leader-podium-card--1 {
    order: -1;
  }

  .title h1 {
    font-size: clamp(22px, 7vw, 36px);
  }

  .title p {
    font-size: 14px;
  }

  .glass.content {
    padding: 14px 12px;
  }

  .content table {
    display: block;
    overflow-x: auto;
  }

  .ticket-create input,
  .ticket-create select,
  .ticket-create textarea {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 12px 10px 28px;
  }

  .profile-grid,
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: auto;
  }

  .home-hero h1 {
    font-size: clamp(24px, 9vw, 40px);
  }

  .play-buttons-row {
    flex-direction: column;
    align-items: stretch;
  }

  .play-buttons-row a.btn-play {
    width: 100%;
    justify-content: center;
  }

  .monitor-head {
    flex-wrap: wrap;
  }

  .monitor-now {
    width: 100%;
    text-align: left;
  }
}

.integration-dev-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--panel) 88%, var(--accent) 12%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}

.integration-dev-notice--inline {
  margin-top: 0;
  margin-bottom: 16px;
}

.integration-dev-notice--compact {
  margin-bottom: 12px;
  padding: 12px 14px;
}

.integration-dev-notice__badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 78%, #000 22%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.integration-dev-notice__body {
  min-width: 0;
}

.integration-dev-notice__title {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.integration-dev-notice__text {
  margin: 0;
  color: #d9c8d0;
  font-size: 13px;
  line-height: 1.55;
}

.nav-dev-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 70%, #000 30%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.profile-tabs .nav-dev-badge {
  margin-left: 8px;
  font-size: 9px;
}

.integration-dev-placeholder {
  margin: 0;
  padding: 18px 12px;
  text-align: center;
  color: #cbb8c4;
  font-size: 14px;
  line-height: 1.55;
}

.home-weekly-top--dev .weekly-top-link {
  margin-top: 8px;
}

.auto-events-panel {
  display: grid;
  gap: 18px;
}

.auto-events-head p {
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.server-pick-widgets--autoevents {
  margin-bottom: 4px;
}

.auto-events-empty {
  margin: 0;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.auto-events-timers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.auto-events-timer-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) calc(var(--panel-alpha) * 100%), transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.auto-events-timer-card span {
  display: block;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 68%, transparent);
}

.auto-events-timer-card b {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.auto-events-status {
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  font-size: 14px;
}

.auto-events-list {
  display: grid;
  gap: 12px;
}

.auto-event-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) calc(var(--panel-alpha) * 100%), transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}

.auto-event-card.is-leading {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auto-event-card__main {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auto-event-card__emoji {
  font-size: 28px;
  line-height: 1;
}

.auto-event-card__title {
  font-size: 18px;
  font-weight: 700;
}

.auto-event-card__votes {
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.auto-event-card__actions {
  display: flex;
  gap: 8px;
}

.auto-event-vote-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  font-size: 22px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.auto-event-vote-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.auto-event-vote-btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
}

.auto-event-vote-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.auto-events-login-hint {
  margin: 0;
  text-align: center;
}

/* Rules page galleries */
.rules-widgets-wrap {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.rules-widget-section {
  padding: 20px 22px;
}

.rules-widget-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.rules-widget-head .muted {
  margin: 0;
}

.rules-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.rules-widget-thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.rules-widget-thumb:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 18%, transparent);
}

.rules-widget-img-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
}

.rules-widget-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rules-widget-thumb img {
  width: 100%;
  height: var(--rules-img-height, 180px);
  object-fit: cover;
  display: block;
}

.rules-widget-cap {
  padding: 0 10px 10px;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  text-align: left;
}

.rules-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 4, 10, .88);
  backdrop-filter: blur(6px);
}

.rules-lightbox[hidden] {
  display: none !important;
}

.rules-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

.rules-lightbox-close,
.rules-lightbox-prev,
.rules-lightbox-next {
  position: fixed;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.rules-lightbox-close {
  top: 18px;
  right: 22px;
}

.rules-lightbox-prev,
.rules-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.rules-lightbox-prev {
  left: 18px;
}

.rules-lightbox-next {
  right: 18px;
}

.rules-lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
}

body.rules-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .bg-slider span {
    transition: none !important;
  }

  body.bg-live-pan .bg-slider span.is-bg-active {
    animation: none !important;
  }

  body[data-widget-motion="float"] .server-widget-tile,
  body[data-widget-motion="float"] .rules-widget-thumb,
  body[data-widget-motion="pulse"] .server-widget-tile__icon,
  body[data-widget-motion="pulse"] .rules-widget-thumb {
    animation: none !important;
  }

  .server-widget-carousel {
    scroll-behavior: auto;
  }
}

/* bg-shade-neutral-v1 — no red flash on slide change */
body.bg-overlay-gradient .bg-shade,
body.bg-overlay-tint .bg-shade {
  background:
    radial-gradient(circle at center, rgba(0,0,0,.08), rgba(0,0,0, var(--vignette-alpha, .62))),
    linear-gradient(180deg, rgba(8,6,12,.72), rgba(8,6,12,.88)) !important;
}
.bg-slider { position: fixed; isolation: isolate; }
.bg-slider span { position: absolute; inset: 0; }