
:root {
  --bg: #070b12;
  --panel: rgba(255,255,255,.055);
  --panel-2: rgba(255,255,255,.09);
  --text: #f3fbff;
  --muted: #a6b6c7;
  --line: rgba(255,255,255,.12);
  --accent: #7ee4ff;
  --accent-2: #bff8ff;
  --code: rgba(126,228,255,.10);
  --shadow: 0 22px 90px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126,228,255,.15), transparent 36rem),
    linear-gradient(180deg, #070b12, #09111d 55%, #070b12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.docs-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr) 250px; min-height: 100vh; }
.docs-sidebar {
  position: sticky; top: 0; height: 100vh; overflow: auto; border-right: 1px solid var(--line);
  background: rgba(7, 11, 18, .88); backdrop-filter: blur(18px); padding: 20px 16px;
}
.docs-brand { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.docs-brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(126,228,255,.24)); }
.docs-brand strong { display: block; line-height: 1.1; }
.docs-brand span { color: var(--muted); font-size: .86rem; }
.search-wrap { position: relative; margin: 14px 0 18px; }
.search-wrap input {
  width: 100%; padding: 13px 14px 13px 40px; color: var(--text); background: rgba(255,255,255,.055);
  border: 1px solid var(--line); border-radius: 12px; outline: none;
}
.search-wrap input:focus { border-color: rgba(126,228,255,.55); box-shadow: 0 0 0 4px rgba(126,228,255,.08); }
.search-wrap span { position: absolute; left: 14px; top: 12px; color: var(--muted); }
.docs-nav { display: grid; gap: 18px; padding-bottom: 36px; }
.nav-group-title { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 900; margin: 0 8px 8px; }
.docs-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--muted); border-radius: 10px; font-weight: 750; }
.docs-nav a:hover, .docs-nav a.active { color: var(--text); background: rgba(126,228,255,.08); }
.docs-nav .emoji { width: 22px; text-align: center; }
.docs-topbar {
  display: none; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; background: rgba(7, 11, 18, .92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.mobile-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.mobile-brand img { width: 34px; height: 34px; object-fit: contain; }
.menu-btn { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.docs-main { min-width: 0; padding: 32px min(6vw, 74px) 80px; }
.cover { min-height: 250px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, rgba(126,228,255,.16), rgba(255,255,255,.045)); box-shadow: var(--shadow); position: relative; margin-bottom: 34px; }
.cover img.cover-bg { width: 100%; height: 250px; object-fit: cover; opacity: .92; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,18,.88), transparent 78%); }
.cover-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 20px; padding: 28px; }
.cover-content img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 26px rgba(126,228,255,.32)); }
.cover-content p { color: var(--muted); margin: 7px 0 0; max-width: 650px; line-height: 1.65; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.06em; margin-bottom: 14px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.04em; margin: 42px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
h3 { font-size: 1.18rem; margin-bottom: 10px; }
p, li { color: var(--muted); line-height: 1.75; }
strong { color: var(--text); }
.doc-section { scroll-margin-top: 22px; }
.callout { display: flex; gap: 14px; padding: 18px; border: 1px solid rgba(126,228,255,.23); border-radius: 16px; background: rgba(126,228,255,.08); margin: 20px 0; }
.callout .icon { font-size: 1.5rem; line-height: 1; }
.callout p { margin-bottom: 0; }
.quick-grid, .cards-grid { display: grid; gap: 14px; }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 8px; }
.cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.doc-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); }
.doc-card p { margin-bottom: 0; }
.doc-card a { color: var(--accent-2); font-weight: 900; }
.command-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; margin-top: 16px; }
.command-table th, .command-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.command-table tr:last-child td { border-bottom: 0; }
.command-table th { color: var(--text); background: rgba(255,255,255,.06); }
code { color: var(--accent-2); background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; }
.docs-content ul, .docs-content ol { padding-left: 1.25rem; }
.docs-content li + li { margin-top: 8px; }
.next-card { display: block; margin-top: 36px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.055); }
.next-card span { color: var(--muted); font-size: .9rem; }
.next-card strong { display: block; margin-top: 6px; font-size: 1.1rem; }
.updated { margin-top: 24px; color: var(--muted); font-size: .92rem; }
.docs-toc { position: sticky; top: 0; height: 100vh; overflow: auto; border-left: 1px solid var(--line); padding: 32px 20px; background: rgba(7, 11, 18, .48); }
.docs-toc h3 { font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.docs-toc a { display: block; color: var(--muted); padding: 8px 0 8px 12px; border-left: 2px solid transparent; font-weight: 700; font-size: .94rem; }
.docs-toc a:hover, .docs-toc a.active { color: var(--text); border-left-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.055); font-weight: 900; }
.btn.primary { color: #06121b; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.sidebar-overlay { display: none; }
@media (max-width: 1180px) { .docs-shell { grid-template-columns: 280px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 860px) {
  .docs-shell { display: block; }
  .docs-topbar { display: flex; }
  .docs-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 330px); height: 100vh; z-index: 40; transform: translateX(-105%); transition: transform .2s ease; }
  .docs-sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; }
  .sidebar-overlay.show { display: block; }
  .docs-main { padding: 22px 18px 70px; }
  .cover, .cover img.cover-bg { min-height: 280px; height: 280px; }
  .cover-content { align-items: flex-start; flex-direction: column; justify-content: center; padding: 22px; }
  .cover-content img { width: 74px; height: 74px; }
  .quick-grid, .cards-grid { grid-template-columns: 1fr; }
  .command-table { display: block; overflow-x: auto; }
}


/* FrostX v22: pilnas taisyklių dokumentacijos puslapis */
.rules-page-pro .kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 1000;
}

.rules-cover-pro {
  overflow: hidden;
}

.rules-cover-pro::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .85;
}

.rules-summary-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.rules-summary-pro > div {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(126,228,255,.14), transparent 44%),
    rgba(255,255,255,.045);
  box-shadow: 0 16px 48px rgba(0,0,0,.16);
}

.rules-summary-pro span {
  display: block;
  color: var(--accent-2);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 1000;
  line-height: .95;
  letter-spacing: -.06em;
}

.rules-summary-pro strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.rules-summary-pro small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.rules-quick-nav-pro {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  margin: 22px 0 30px;
  background:
    linear-gradient(135deg, rgba(126,228,255,.08), rgba(255,255,255,.035));
}

.rules-quick-nav-pro h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.rules-quick-nav-pro div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rules-quick-nav-pro a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(126,228,255,.22);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(5,11,19,.38);
  color: var(--text);
  font-weight: 850;
}

.rules-quick-nav-pro a:hover {
  border-color: rgba(126,228,255,.55);
  background: rgba(126,228,255,.12);
}

.rules-section-pro {
  scroll-margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  margin: 26px 0;
  background:
    radial-gradient(circle at top right, rgba(126,228,255,.08), transparent 40%),
    rgba(255,255,255,.035);
}

.rules-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.rules-section-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.rules-section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 860px;
  line-height: 1.75;
}

.rules-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121b;
  font-weight: 1000;
  box-shadow: 0 18px 46px rgba(126,228,255,.18);
}

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

.rules-list-pro li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(5,11,19,.38);
}

.rules-list-pro li.danger {
  border-color: rgba(255,112,136,.18);
}

.rules-list-pro li.info {
  border-color: rgba(126,228,255,.18);
}

.rule-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(126,228,255,.13);
  color: var(--accent-2);
  font-weight: 1000;
}

.rules-list-pro p {
  margin: 6px 0 0;
  line-height: 1.65;
  color: var(--text);
}

.rules-paragraph {
  color: var(--muted);
  line-height: 1.85;
  margin: 14px 0;
}

.rules-subtitle {
  margin-top: 22px;
  color: var(--accent-2);
  font-size: 1.25rem;
}

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

.term-card {
  border: 1px solid rgba(126,228,255,.18);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(126,228,255,.10), transparent 50%),
    rgba(5,11,19,.38);
}

.term-card h3 {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 1.15rem;
}

.term-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.voice-example {
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.7;
  font-weight: 750;
}

.voice-example.bad {
  border: 1px solid rgba(255,112,136,.25);
  background: rgba(255,112,136,.08);
}

.voice-example.good {
  border: 1px solid rgba(97,237,178,.25);
  background: rgba(97,237,178,.08);
}

@media (max-width: 960px) {
  .rules-summary-pro,
  .terms-grid-pro {
    grid-template-columns: 1fr;
  }

  .rules-section-head {
    grid-template-columns: 1fr;
  }

  .rules-count {
    width: max-content;
  }
}

@media (max-width: 620px) {
  .rules-section-pro,
  .rules-quick-nav-pro {
    padding: 18px;
    border-radius: 22px;
  }

  .rules-list-pro li {
    grid-template-columns: 1fr;
  }

  .rule-number {
    width: max-content;
    min-width: 42px;
    padding: 0 12px;
  }
}


/* FrostX v23: custom Serverio taisyklės background */
.rules-cover-pro .cover-bg {
  object-position: center center;
  filter: brightness(.64) saturate(1.08) contrast(1.04);
}

.rules-cover-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,11,18,.86), rgba(7,11,18,.42) 48%, rgba(7,11,18,.16)),
    radial-gradient(circle at 20% 50%, rgba(126,228,255,.18), transparent 42%);
  pointer-events: none;
}

.rules-cover-pro .cover-content {
  position: relative;
  z-index: 2;
}


/* FrostX v24: rodyti visą Serverio taisyklių backgroundą be nukirpimo */
.rules-page-pro .rules-cover-pro {
  min-height: auto !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  display: block !important;
}

.rules-page-pro .rules-cover-pro .cover-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: .96 !important;
  filter: brightness(.58) saturate(1.08) contrast(1.05) !important;
}

.rules-page-pro .rules-cover-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,11,18,.88), rgba(7,11,18,.42) 48%, rgba(7,11,18,.16)),
    linear-gradient(0deg, rgba(7,11,18,.46), rgba(7,11,18,.10) 46%, rgba(7,11,18,.30));
  pointer-events: none;
}

.rules-page-pro .rules-cover-pro .cover-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding: clamp(24px, 4vw, 54px) !important;
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 4 / 5 !important;
  }

  .rules-page-pro .rules-cover-pro .cover-bg {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content {
    align-items: flex-end !important;
    padding: 22px !important;
  }
}


/* FrostX v25: sumažintas Serverio taisyklių hero iš apačios ir pakeltas aukščiau */
.rules-page-pro .rules-cover-pro {
  aspect-ratio: 16 / 6.2 !important;
  min-height: auto !important;
}

.rules-page-pro .rules-cover-pro .cover-bg {
  object-position: center 22% !important;
}

.rules-page-pro .rules-cover-pro .cover-content {
  align-items: flex-start !important;
  padding-top: clamp(34px, 4vw, 52px) !important;
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 4 / 4.2 !important;
  }

  .rules-page-pro .rules-cover-pro .cover-bg {
    object-position: center 18% !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content {
    align-items: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: 18px !important;
  }
}


/* FrostX v26: dar labiau sumažintas Serverio taisyklių hero */
.rules-page-pro .rules-cover-pro {
  aspect-ratio: 16 / 4.4 !important;
  min-height: 285px !important;
  max-height: 380px !important;
}

.rules-page-pro .rules-cover-pro .cover-bg {
  object-position: center 18% !important;
}

.rules-page-pro .rules-cover-pro .cover-content {
  align-items: flex-start !important;
  padding-top: clamp(24px, 3vw, 38px) !important;
  padding-bottom: 20px !important;
}

.rules-page-pro .rules-cover-pro .cover-content img {
  width: 76px !important;
  height: 76px !important;
}

.rules-page-pro .rules-cover-pro .cover-content h1 {
  font-size: clamp(2.15rem, 4vw, 3.9rem) !important;
  margin-bottom: 8px !important;
}

.rules-page-pro .rules-cover-pro .cover-content p {
  max-width: 640px !important;
  line-height: 1.5 !important;
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 4 / 3.6 !important;
    min-height: 300px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content {
    align-items: flex-end !important;
    padding: 18px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content img {
    width: 62px !important;
    height: 62px !important;
  }
}


/* FrostX v27: naujas premium RP background + perdirbtas hero dizainas */
.rules-page-pro .rules-cover-pro {
  aspect-ratio: 16 / 5.1 !important;
  min-height: 360px !important;
  max-height: 470px !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.28) !important;
}

.rules-page-pro .rules-cover-pro .cover-bg {
  object-fit: cover !important;
  object-position: center center !important;
  filter: brightness(.50) saturate(1.04) contrast(1.06) !important;
  transform: scale(1.01);
}

.rules-page-pro .rules-cover-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,10,18,.90) 0%, rgba(5,10,18,.72) 35%, rgba(5,10,18,.28) 62%, rgba(5,10,18,.14) 100%),
    linear-gradient(180deg, rgba(5,10,18,.16) 0%, rgba(5,10,18,.06) 42%, rgba(5,10,18,.38) 100%),
    radial-gradient(circle at 22% 28%, rgba(126,228,255,.14), transparent 28%);
  pointer-events: none;
}

.rules-page-pro .rules-cover-pro::after {
  height: 4px !important;
  opacity: .95 !important;
}

.rules-page-pro .rules-cover-pro .cover-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  padding: clamp(28px, 4vw, 52px) !important;
  gap: 18px !important;
}

.rules-page-pro .rules-cover-pro .cover-content img {
  width: 84px !important;
  height: 84px !important;
  filter: drop-shadow(0 8px 22px rgba(126,228,255,.20));
}

.rules-page-pro .rules-cover-pro .cover-content h1 {
  font-size: clamp(2.5rem, 4vw, 4.25rem) !important;
  line-height: .95 !important;
  margin: 8px 0 10px !important;
  letter-spacing: -.06em !important;
  max-width: 760px !important;
}

.rules-page-pro .rules-cover-pro .cover-content p {
  max-width: 560px !important;
  color: rgba(232,242,255,.82) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.rules-page-pro .rules-cover-pro .kicker {
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}

@media (max-width: 900px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 16 / 7.2 !important;
    min-height: 320px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content img {
    width: 72px !important;
    height: 72px !important;
  }
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 4 / 4.4 !important;
    min-height: 340px !important;
    max-height: none !important;
  }

  .rules-page-pro .rules-cover-pro .cover-bg {
    object-position: 63% center !important;
  }

  .rules-page-pro .rules-cover-pro::before {
    background:
      linear-gradient(180deg, rgba(5,10,18,.58) 0%, rgba(5,10,18,.24) 24%, rgba(5,10,18,.70) 100%),
      linear-gradient(90deg, rgba(5,10,18,.82) 0%, rgba(5,10,18,.44) 60%, rgba(5,10,18,.18) 100%);
  }

  .rules-page-pro .rules-cover-pro .cover-content {
    align-items: flex-end !important;
    padding: 22px !important;
    gap: 14px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content img {
    width: 62px !important;
    height: 62px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content h1 {
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content p {
    font-size: .95rem !important;
    max-width: none !important;
  }
}


/* FrostX v28: final polished Serverio taisyklių dizainas */
.rules-page-pro {
  max-width: 1220px !important;
  margin-inline: auto !important;
}

.rules-page-pro .rules-cover-pro {
  aspect-ratio: 16 / 5.4 !important;
  min-height: 390px !important;
  max-height: 500px !important;
  border: 1px solid rgba(126,228,255,.22) !important;
  background: #07111d !important;
}

.rules-page-pro .rules-cover-pro .cover-bg {
  object-fit: cover !important;
  object-position: center center !important;
  filter: brightness(.54) saturate(1.08) contrast(1.05) !important;
}

.rules-page-pro .rules-cover-pro::before {
  background:
    linear-gradient(90deg, rgba(5,10,18,.93) 0%, rgba(5,10,18,.78) 30%, rgba(5,10,18,.35) 62%, rgba(5,10,18,.12) 100%),
    linear-gradient(180deg, rgba(5,10,18,.12) 0%, rgba(5,10,18,.05) 42%, rgba(5,10,18,.48) 100%),
    radial-gradient(circle at 19% 34%, rgba(126,228,255,.18), transparent 30%) !important;
}

.rules-page-pro .rules-cover-pro .cover-content {
  max-width: 760px !important;
}

.rules-page-pro .rules-cover-pro .cover-content h1 {
  text-shadow: 0 10px 40px rgba(0,0,0,.42) !important;
}

.rules-summary-pro {
  gap: 16px !important;
  margin-top: 20px !important;
}

.rules-summary-pro > div,
.rules-quick-nav-pro,
.rules-section-pro {
  border-color: rgba(126,228,255,.16) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.18) !important;
}

.rules-summary-pro > div {
  min-height: 118px !important;
  background:
    radial-gradient(circle at 0 0, rgba(126,228,255,.16), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.030)) !important;
}

.rules-quick-nav-pro {
  background:
    radial-gradient(circle at top left, rgba(126,228,255,.10), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028)) !important;
}

.rules-quick-nav-pro a {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.rules-quick-nav-pro a:hover {
  transform: translateY(-2px);
}

.rules-section-pro {
  background:
    radial-gradient(circle at top right, rgba(126,228,255,.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.058), rgba(255,255,255,.026)) !important;
}

.rules-section-head {
  align-items: center !important;
}

.rules-section-head h2 {
  color: var(--text) !important;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.rules-count {
  box-shadow: 0 14px 36px rgba(126,228,255,.22) !important;
}

.rules-list-pro li {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.rules-list-pro li:hover {
  transform: translateX(3px);
  border-color: rgba(126,228,255,.34) !important;
  background: rgba(8,18,30,.58) !important;
}

.rule-number {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.term-card {
  transition: transform .16s ease, border-color .16s ease;
}

.term-card:hover {
  transform: translateY(-2px);
  border-color: rgba(126,228,255,.36);
}

@media (max-width: 980px) {
  .rules-page-pro {
    max-width: none !important;
  }

  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 16 / 7.2 !important;
    min-height: 330px !important;
  }
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 4 / 4.7 !important;
    min-height: 360px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-bg {
    object-position: 66% center !important;
  }

  .rules-page-pro .rules-cover-pro .cover-content {
    align-items: flex-end !important;
    max-width: none !important;
  }

  .rules-summary-pro {
    gap: 12px !important;
  }
}


/* FrostX v29: matomi veidai + pašalintas hero aprašymas */
.rules-page-pro .rules-cover-pro {
  aspect-ratio: 16 / 5.2 !important;
  min-height: 390px !important;
  max-height: 500px !important;
}

.rules-page-pro .rules-cover-pro .cover-bg {
  object-position: 58% center !important;
  filter: brightness(.68) saturate(1.10) contrast(1.05) !important;
}

.rules-page-pro .rules-cover-pro::before {
  background:
    linear-gradient(90deg, rgba(5,10,18,.88) 0%, rgba(5,10,18,.62) 30%, rgba(5,10,18,.18) 56%, rgba(5,10,18,.04) 100%),
    linear-gradient(180deg, rgba(5,10,18,.08) 0%, rgba(5,10,18,.03) 45%, rgba(5,10,18,.28) 100%),
    radial-gradient(circle at 22% 36%, rgba(126,228,255,.16), transparent 31%) !important;
}

.rules-page-pro .rules-cover-pro .cover-content {
  max-width: 640px !important;
  align-items: center !important;
}

.rules-page-pro .rules-cover-pro .cover-content h1 {
  margin-bottom: 0 !important;
}

.rules-page-pro .rules-cover-pro .cover-content p:not(.kicker) {
  display: none !important;
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro .cover-bg {
    object-position: 72% center !important;
    filter: brightness(.62) saturate(1.08) contrast(1.05) !important;
  }

  .rules-page-pro .rules-cover-pro::before {
    background:
      linear-gradient(180deg, rgba(5,10,18,.34) 0%, rgba(5,10,18,.12) 28%, rgba(5,10,18,.64) 100%),
      linear-gradient(90deg, rgba(5,10,18,.78) 0%, rgba(5,10,18,.36) 58%, rgba(5,10,18,.05) 100%) !important;
  }
}


/* FrostX v30: veidai matomi + vienos eilutės hero kicker */
.rules-page-pro .rules-cover-pro {
  aspect-ratio: 16 / 5.8 !important;
  min-height: 420px !important;
  max-height: 540px !important;
}

.rules-page-pro .rules-cover-pro .cover-bg {
  object-position: 61% 18% !important;
  filter: brightness(.70) saturate(1.12) contrast(1.05) !important;
}

.rules-page-pro .rules-cover-pro::before {
  background:
    linear-gradient(90deg, rgba(5,10,18,.88) 0%, rgba(5,10,18,.58) 31%, rgba(5,10,18,.14) 58%, rgba(5,10,18,.02) 100%),
    linear-gradient(180deg, rgba(5,10,18,.05) 0%, rgba(5,10,18,.04) 45%, rgba(5,10,18,.30) 100%),
    radial-gradient(circle at 20% 38%, rgba(126,228,255,.14), transparent 31%) !important;
}

.rules-page-pro .rules-cover-pro .cover-content {
  max-width: 720px !important;
}

.rules-page-pro .rules-cover-pro .kicker {
  white-space: nowrap !important;
  letter-spacing: .16em !important;
  font-size: clamp(.68rem, .8vw, .84rem) !important;
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 16 / 7.2 !important;
    min-height: 360px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-bg {
    object-position: 64% 18% !important;
  }
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro {
    aspect-ratio: 4 / 4.9 !important;
    min-height: 390px !important;
  }

  .rules-page-pro .rules-cover-pro .cover-bg {
    object-position: 72% 16% !important;
  }

  .rules-page-pro .rules-cover-pro .kicker {
    white-space: normal !important;
    letter-spacing: .12em !important;
  }
}


/* FrostX v31: hero be logo + trumpesnis kicker */
.rules-page-pro .rules-cover-pro .cover-content {
  gap: 0 !important;
  max-width: 720px !important;
}

.rules-page-pro .rules-cover-pro .cover-content > img {
  display: none !important;
}

.rules-page-pro .rules-cover-pro .kicker {
  white-space: nowrap !important;
  letter-spacing: .18em !important;
}

.rules-page-pro .rules-cover-pro .cover-content h1 {
  margin-top: 8px !important;
}


/* FrostX v32: grąžintas dokumentacijos sidebar logo */
.docs-brand > img {
  display: block !important;
}


/* FrostX v36: Serverio taisyklių hero "FrostX RolePlay" šviesiai mėlynas glow stilius */
.rules-page-pro .rules-cover-pro .kicker {
  text-transform: none !important;
  letter-spacing: .06em !important;
  font-size: clamp(.9rem, 1.05vw, 1.05rem) !important;
  font-weight: 900 !important;
  color: #8fe8ff !important;
  white-space: nowrap !important;
  text-shadow:
    0 0 8px rgba(120, 225, 255, 0.30),
    0 0 18px rgba(108, 223, 255, 0.24),
    0 0 34px rgba(71, 196, 255, 0.18);
  opacity: 1 !important;
}

.rules-page-pro .rules-cover-pro .cover-content h1 {
  margin-top: 10px !important;
}

@media (max-width: 720px) {
  .rules-page-pro .rules-cover-pro .kicker {
    font-size: .82rem !important;
    letter-spacing: .04em !important;
    white-space: normal !important;
  }
}
