:root {
  --bg: #0f1724;
  --card-bg: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.06);
  --muted: #b2c2da;
  --accent: #7c3aed;
  --success: #10b981;
  --danger: #ef4444;

  --radius: 14px;
  --card-shadow: 0 6px 18px rgba(2, 6, 23, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);

  --cta-bg: rgba(255, 255, 255, 0.06);
  --cta-bg2: rgba(255, 255, 255, 0.04);
  --cta-border: rgba(255, 255, 255, 0.15);
  --cta-text: rgba(255, 255, 255, 0.92);
  --cta-muted: rgba(255, 255, 255, 0.7);

  --h: 46px;
}

*,
*::before,
*::after {
  box-sizing: content-box;
}

.center-wrap {
  position: relative;
  max-width: 1100px;
  margin: 150px auto 0 auto;
  color: var(--site-text-main);
  margin-bottom: 300px;
  padding: 0 16px; /* ВОТ это даст отступы слева/справа */
}

.server-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  place-items: stretch;
}

.card {
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.big-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
}

.right-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

.small-card {
  padding-top: 0px;
  padding-left: 18px;
  min-height: 70px;
}

.server-title {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
}

.server-desc {
  margin: 0 0 16px 0;
  color: var(--muted);
}

.server-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  margin-bottom: 14px;
}

.actions {
  display: flex;
  margin-top: 0px;
}

.card-button {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .server-panel {
    grid-template-columns: 1fr 0.9fr;
  }
}

@media (max-width: 768px) {
  .server-panel {
    grid-template-columns: 1fr;
  }

  .right-column {
    grid-template-rows: auto auto;
  }

  .big-card {
    min-height: 220px;
  }
}

.fa-brands {
  color: #dddddd;
}

h3 {
  font-size: 23px;
  color: var(--site-text-main);
}

p,
li,
#playerCount {
  font-size: 18.5px;
  color: var(--site-text-main);
}

h2 {
  font-size: 19px;
}

.fs-ico {
  vertical-align: sub;
  margin-right: 10px;
}

.glass {
  background: rgba(0, 0, 0, 0.09);
  border-radius: 25px;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(179, 179, 179, 0.12);
}

.actions a {
  text-decoration: none;
}

.black-div {
  position: relative;
  display: flex;
  /* width: 100%; */
  min-height: calc(100vh - 100px);
  justify-content: center;
  background: -webkit-linear-gradient(180deg, #0b0b10, #260702);
  background: var(--site-gradient-alt);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.season-wrap {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 50px;
  width: 100%;
  max-width: 980px;
  justify-content: center;
}

.season-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px) saturate(120%);
  transition: transform 0.22s ease;
  height: 350px;
}

.season-card:hover {
  transform: translateY(-6px);
}

.season-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.season-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.season-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.season-subtitle {
  font-size: 12px;
  color: var(--site-text-muted);
  margin-top: 2px;
}

.season-info {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.season-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--site-text-muted);
}

.season-row span:not([class]) {
  font-size: 18px;
}

.season-value {
  font-weight: 600;
  font-size: 16px;
  color: var(--site-text-main);
}

.season-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
}

.season-pill.success {
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.season-pill.danger {
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.season-pill.neutral {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.season-btn {
  margin-top: 14px;
  display: inline-flex;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--btn-primary-bg),
    var(--btn-secondary-bg)
  );
  color: var(--btn-secondary-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: 0.2s ease;
  align-items: center;
  justify-content: center;

  padding: 13px 18px;

  width: 250px;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1;
}

.season-btn:hover {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) inset;
}

.season-btn:active {
  transform: scale(0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) inset;
}

.season-vote {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.season-vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  color: #d0d7e5;
  transition: 0.2s ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.season-vote-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  color: white;
}

.season-vote-btn:active {
  transform: scale(0.92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}

.season-vote-icon {
  font-size: 15px;
}

.season-vote-count {
  font-weight: 600;
}

.vote-message {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}

.vote-btn.active {
  background: #3f8cff;
  box-shadow: 0 0 8px #3f8cffaa;
}

.vote-btn.dislike.active {
  background: #ff4e4e;
  box-shadow: 0 0 8px #ff4e4eaa;
}

.cta-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn {
  isolation: isolate;
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: var(--h);
  padding: 0 14px;
  border-radius: var(--radius);

  color: var(--cta-text);
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  background: linear-gradient(180deg, var(--cta-bg), var(--cta-bg2));
  border: 1px solid var(--cta-border);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transform: translateY(0) scale(1);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, filter 0.18s ease;

  overflow: hidden;
}

.cta-btn::after {
  content: "";
  position: absolute;
  inset: -26px;
  border-radius: calc(var(--radius) + 26px);

  background: radial-gradient(
      180px 110px at 22% 30%,
      rgb(var(--glow-core) / 0.42),
      transparent 62%
    ),
    radial-gradient(
      220px 140px at 82% 72%,
      rgb(var(--glow-core-2) / 0.34),
      transparent 64%
    ),
    linear-gradient(
      135deg,
      rgb(var(--glow-core) / 0.12),
      rgba(255, 255, 255, 0.03),
      rgb(var(--glow-core-2) / 0.1)
    );

  filter: blur(20px);
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  padding: 1px;

  background: linear-gradient(
    135deg,
    rgb(var(--glow-core) / 0.45),
    rgba(255, 255, 255, 0.1),
    rgb(var(--glow-core-2) / 0.22)
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0.62;
  transition: opacity 0.18s ease, filter 0.18s ease;
  pointer-events: none;
  z-index: 3;
}

.cta-btn > * {
  position: relative;
  z-index: 2;
  line-height: 1;
}

.cta-ico {
  margin-left: -6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cta-label {
  font-weight: 650;
  letter-spacing: 0.2px;
  white-space: nowrap;

  display: inline-flex;
  align-items: center;

  height: 100%;
  line-height: 1;
  padding-bottom: 4px;

  transform: translateY(-0.5px);
}

.cta-arrow {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0.92;
  transform: translateX(0);
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.cta-ico svg,
.cta-arrow svg {
  display: block;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 24px rgb(var(--glow-core) / 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: saturate(1.03);
}

.cta-btn:hover::after {
  opacity: 0.86;
  filter: blur(20px);
}

.cta-btn:hover::before {
  opacity: 0.88;
  filter: saturate(1.05);
}

.cta-btn:hover .cta-arrow {
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
  transform: translateX(3px);
}

.cta-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-btn:active .cta-arrow {
  transform: translateX(1px);
}

.cta-btn:focus-visible {
  outline: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgb(var(--glow-core) / 0.35),
    0 0 0 6px rgb(var(--glow-core) / 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-discord {
  --glow-core: 114 137 218;
  --glow-core-2: 88 101 242;
}

.cta-discord .cta-ico {
  background: rgb(114 137 218 / 0.14);
  border-color: rgb(114 137 218 / 0.22);
}

.cta-patreon {
  --glow-core: 255 96 59;
  --glow-core-2: 255 140 92;
}

.cta-patreon .cta-ico {
  background: rgb(255 96 59 / 0.14);
  border-color: rgb(255 96 59 / 0.22);
}

@media (max-width: 520px) {
  .cta-row {
    gap: 10px;
  }

  .cta-btn {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn,
  .cta-btn::before,
  .cta-btn::after,
  .cta-arrow {
    transition: none !important;
  }
}

/* ===== PROMO CARD ===== */
.promo-card {
  grid-column: 1 / -1; /* на всю ширину сетки */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.promo-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.promo-ico {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.promo-text {
  min-width: 0;
}
.promo-title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: var(--site-text-main);
  letter-spacing: 0.2px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-sub {
  margin: 6px 0 0 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--site-text-muted);
}

.promo-right {
  display: flex;
  align-items: center;
}

.promo-btn {
  position: relative;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-family: var(--main-font);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, filter 0.18s ease;
}
.promo-btn__shine {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
      220px 140px at 30% 30%,
      rgba(255, 255, 255, 0.14),
      transparent 62%
    ),
    radial-gradient(
      220px 140px at 70% 70%,
      rgba(255, 255, 255, 0.1),
      transparent 64%
    );
  filter: blur(20px);
  opacity: 0.75;
  pointer-events: none;
}
.promo-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  filter: saturate(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.promo-btn:active {
  transform: scale(0.99);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) inset;
}

/* mobile */
@media (max-width: 768px) {
  .promo-card {
    flex-direction: column;
    align-items: stretch;
  }
  .promo-title {
    white-space: normal;
  }
  .promo-right {
    justify-content: flex-start;
  }
  .promo-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== MODAL ===== */
.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 18px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  transition: opacity 220ms ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal {
  width: min(560px, 100%);
  border-radius: 26px;
  border: 2px solid rgba(179, 179, 179, 0.12);
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px 18px 16px 18px;
  position: relative;

  transform: translateY(10px) scale(0.98);
  transition: transform 220ms ease;
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}
.modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}
.modal-close:active {
  transform: scale(0.98);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-ico {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
  color: #fff;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--site-text-main);
  line-height: 1.15;
}
.modal-sub {
  margin: 4px 0 0 0;
  font-size: 12.8px;
  font-weight: 800;
  color: var(--site-text-muted);
}

.modal-form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.field-label {
  font-size: 12.5px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.field-input {
  height: 44px;
  border-radius: 14px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  font-weight: 850;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field-input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.field-hint {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.62);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-btn {
  position: relative;
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  color: rgba(255, 255, 255, 0.92);
  font-weight: 950;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.modal-btn__fill {
  position: absolute;
  inset: -40px;
  background: radial-gradient(
      260px 140px at 25% 30%,
      rgba(255, 255, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      240px 160px at 80% 70%,
      rgba(255, 255, 255, 0.08),
      transparent 65%
    );
  filter: blur(18px);
  opacity: 0.8;
  pointer-events: none;
}
.modal-btn__content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modal-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.modal-btn:active {
  transform: scale(0.99);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) inset;
}
.modal-btn:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.modal-status {
  font-size: 12.5px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.8);
  min-height: 18px;
}

.modal-note {
  margin: 2px 0 0 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.35;
}
/* === FIX: hidden overlay must REALLY be hidden === */
.modal-overlay[hidden] {
  display: none !important;
}

/* когда оверлей скрыт — он не должен ловить клики */
.modal-overlay {
  pointer-events: none;
}

/* когда показываем — ловит клики */
.modal-overlay.show {
  pointer-events: auto;
}

/* на всякий случай: текст снова выделяемый */
html,
body {
  -webkit-user-select: text;
  user-select: text;
}

/* но на кнопках выделение не нужно */
button,
.cta-btn,
.promo-btn,
.modal-btn {
  -webkit-user-select: none;
  user-select: none;
}

/* чтобы промо было НАД рамками и с нормальным отступом */
.promo-card {
  margin-bottom: 24px; /* ровно как gap у сетки */
}
/* Отступ после последних карточек на телефоне */
@media (max-width: 768px) {
  .season-wrap {
    padding-bottom: 90px;
  }
}
html[data-auth="1"] #nyPromo {
  display: none !important;
}
