/* NowGame content components v0.3.9. These styles intentionally override legacy article UI. */
:root {
  --ng-blue: #2563ff;
  --ng-ink: #0b1220;
  --ng-slate: #475569;
  --ng-silver: #e7edf7;
  --ng-line: #dbe4f0;
  --ng-soft: #f5f8fc;
}

/* Table of contents */
.ng-toc {
  display: block;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid #e2eaf4;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7faff 0%, #f1f6fc 100%);
  color: var(--ng-ink);
  box-shadow: 0 8px 28px rgba(15, 32, 57, .06);
}
.ng-toc__summary {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 42px;
  padding: 0 4px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ng-toc__summary::-webkit-details-marker { display: none; }
.ng-toc__glyph {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background: rgba(37, 99, 255, .11);
  position: relative;
}
.ng-toc__glyph::before,
.ng-toc__glyph::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 9px;
  height: 2px;
  border-radius: 3px;
  background: var(--ng-blue);
  box-shadow: 0 6px 0 var(--ng-blue), 0 12px 0 var(--ng-blue);
  top: 10px;
}
.ng-toc__glyph::after {
  left: 5px;
  right: auto;
  width: 3px;
  box-shadow: 0 6px 0 var(--ng-blue), 0 12px 0 var(--ng-blue);
}
.ng-toc__title {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ng-toc__chevron {
  margin-left: auto;
  width: 11px;
  height: 11px;
  border-right: 3px solid #4c6a87;
  border-bottom: 3px solid #4c6a87;
  transform: rotate(225deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.ng-toc:not([open]) .ng-toc__chevron { transform: rotate(45deg); }
.ng-toc__list {
  list-style: none !important;
  counter-reset: ng-toc-counter;
  padding: 0 !important;
  margin: 0 !important;
}
.ng-toc__item {
  counter-increment: ng-toc-counter;
  margin: 8px 0 !important;
  padding: 0 !important;
}
.ng-toc__item::before { display: none !important; }
.ng-toc__item > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 7px 14px 7px 8px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .83);
  border: 1px solid rgba(214, 225, 238, .72);
  color: var(--ng-ink) !important;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.ng-toc__item > a::before {
  content: counter(ng-toc-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: #e8f2ff;
  color: #355b7c;
  font-weight: 700;
  font-size: 16px;
}
.ng-toc__item:first-child > a::before {
  color: #fff;
  background: linear-gradient(145deg, #2d7fff, #168de8);
  box-shadow: 0 5px 14px rgba(37, 99, 255, .22);
}
.ng-toc__text { flex: 1; min-width: 0; font-size: 17px; line-height: 1.25; }
.ng-toc__arrow {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-top: 2px solid #476a89;
  border-right: 2px solid #476a89;
  transform: rotate(45deg);
}
.ng-toc__item > a:hover {
  background: #fff;
  border-color: #b8d1ef;
  transform: translateX(2px);
}
.ng-toc__item--h3 > a { margin-left: 24px; min-height: 46px; }
.ng-toc__item--h3 > a::before { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }

/* Semantic content callouts */
.ng-callout {
  position: relative;
  margin: 20px 0;
  padding: 19px 22px 20px 72px;
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: 0 7px 20px rgba(15, 32, 57, .06);
  overflow: hidden;
}
.ng-callout::before {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}
.ng-callout__title { margin: 0 0 8px; font-size: 20px; line-height: 1.2; font-weight: 800; }
.ng-callout__body { font-size: 17px; line-height: 1.55; }
.ng-callout--tip { background: #eef6ff; border-color: #d6e8ff; }
.ng-callout--tip::before { content: "i"; background: #3189e8; }
.ng-callout--tip .ng-callout__title { color: #12233a; }
.ng-callout--result { background: #effbf4; border-color: #d3f0df; }
.ng-callout--result::before { content: "✓"; background: #35b875; }
.ng-callout--result .ng-callout__title { color: #173825; }
.ng-callout--note { background: #f2f5fa; border-color: #dde4ee; }
.ng-callout--note::before { content: "i"; background: #53647c; font-size: 20px; font-weight: 900; font-family: Arial, Helvetica, sans-serif; text-transform: lowercase; }
.ng-callout--note .ng-callout__title { color: #202b3a; }

/* Public pagination */
.button_page {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 46px !important;
  width: auto !important;
  height: 46px !important;
  margin: 3px !important;
  padding: 0 14px !important;
  border: 1px solid #e1e6ed !important;
  border-radius: 13px !important;
  background: #f4f6f9 !important;
  color: #1d2733 !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1 !important;
  text-decoration: none !important;
  vertical-align: middle;
  box-shadow: 0 3px 10px rgba(20, 36, 56, .04);
}
.button_page:hover {
  border-color: #c7d6e9 !important;
  background: #eaf2ff !important;
  color: var(--ng-blue) !important;
}
.button_page.active,
.button_page:active {
  border-color: var(--ng-blue) !important;
  background: var(--ng-blue) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 255, .24);
}
a.button_page[href="#pagination"] { opacity: .5; pointer-events: none; box-shadow: none; }

/* Season / episode navigation */
.season,
.series {
  width: auto !important;
  min-width: 106px;
  height: auto !important;
  min-height: 44px;
  padding: 10px 15px !important;
  margin: 4px 5px 4px 0 !important;
  border: 1px solid #d7e0eb !important;
  border-radius: 12px !important;
  background: #f4f7fb !important;
  color: #203246 !important;
  font-size: 14px !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(20, 36, 56, .04);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
a:hover > .season,
a:hover > .series,
.season:hover,
.series:hover {
  border-color: #bcd1eb !important;
  background: #eaf2ff !important;
  color: var(--ng-blue) !important;
  transform: translateY(-1px);
}
.season.is-active,
.series.is-active {
  border-color: var(--ng-blue) !important;
  background: var(--ng-blue) !important;
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(37, 99, 255, .22);
}

/* Dark theme support for the existing site switch. */
body.dark .ng-toc { background: #171f2c; border-color: #2a3648; color: #e7edf7; box-shadow: none; }
body.dark .ng-toc__item > a { background: #202a39; border-color: #2d3a4c; color: #e7edf7 !important; }
body.dark .ng-toc__item > a:hover { background: #263247; border-color: #3a5270; }
body.dark .ng-toc__item > a::before { background: #263b57; color: #bcd8f5; }
body.dark .ng-callout { box-shadow: none; color: #e7edf7; }
body.dark .ng-callout--tip { background: #15263a; border-color: #23425f; }
body.dark .ng-callout--result { background: #173127; border-color: #28533e; }
body.dark .ng-callout--note { background: #202936; border-color: #344255; }
body.dark .ng-callout__title { color: #fff; }
body.dark .button_page { background: #202936 !important; border-color: #344255 !important; color: #e7edf7 !important; }
body.dark .button_page.active { background: var(--ng-blue) !important; border-color: var(--ng-blue) !important; }
body.dark .season,
body.dark .series { background: #202936 !important; border-color: #344255 !important; color: #e7edf7 !important; }
body.dark .season.is-active,
body.dark .series.is-active { background: var(--ng-blue) !important; border-color: var(--ng-blue) !important; }

@media (max-width: 575px) {
  .ng-toc { margin: 22px 0; padding: 14px; border-radius: 18px; }
  .ng-toc__summary { padding-bottom: 10px; }
  .ng-toc__title { font-size: 22px; }
  .ng-toc__item > a { min-height: 50px; border-radius: 13px; padding-right: 12px; }
  .ng-toc__text { font-size: 16px; }
  .ng-toc__item--h3 > a { margin-left: 12px; }
  .ng-callout { padding: 17px 17px 18px 64px; border-radius: 17px; }
  .ng-callout::before { left: 16px; top: 17px; width: 34px; height: 34px; }
  .ng-callout__title { font-size: 19px; }
  .ng-callout__body { font-size: 16px; }
  .button_page { min-width: 44px !important; height: 44px !important; padding: 0 12px !important; border-radius: 12px !important; }
  .season, .series { min-height: 42px; min-width: 94px; padding: 9px 12px !important; }
}


/* v0.3.10 — predictable paragraph rhythm */
.text--post .ng-paragraph-break {
  display: block;
  height: 14px;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* TOC placement in existing article side column */
.ng-toc-placement--mobile { display: none; }
.ng-article-sidebar-toc { margin: 0 0 28px; }
.ng-article-sidebar-toc .ng-toc {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
}
.ng-article-sidebar-toc .ng-toc__summary {
  min-height: 38px;
  gap: 10px;
  padding-bottom: 10px;
}
.ng-article-sidebar-toc .ng-toc__glyph {
  width: 42px;
  height: 42px;
  flex-basis: 30px;
  border-radius: 9px;
}
.ng-article-sidebar-toc .ng-toc__glyph::before { left: 9px; right: 7px; top: 8px; }
.ng-article-sidebar-toc .ng-toc__glyph::after { left: 5px; top: 8px; }
.ng-article-sidebar-toc .ng-toc__title { font-size: 20px; }
.ng-article-sidebar-toc .ng-toc__item > a {
  min-height: 44px;
  gap: 9px;
  padding: 6px 10px 6px 7px;
  border-radius: 12px;
}
.ng-article-sidebar-toc .ng-toc__item > a::before {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  border-radius: 9px;
  font-size: 13px;
}
.ng-article-sidebar-toc .ng-toc__text {
  font-size: 14px;
  line-height: 1.25;
}
.ng-article-sidebar-toc .ng-toc__arrow {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
}

/* Review verdict card */
.ng-review-card {
  position: relative;
  margin: 34px 0 24px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 255, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 15%, rgba(37,99,255,.20), transparent 34%),
    linear-gradient(145deg, #0b1220 0%, #101c2e 58%, #0d1727 100%);
  color: #e7edf7;
  box-shadow: 0 18px 42px rgba(11, 18, 32, .18);
}
.ng-review-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(255,255,255,.025) 62% 63%, transparent 63%),
    linear-gradient(120deg, transparent 0 74%, rgba(37,99,255,.08) 74% 75%, transparent 75%);
}
.ng-review-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border-bottom: 1px solid rgba(231,237,247,.10);
}
.ng-review-card__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 116px;
  padding: 13px 16px;
  border: 1px solid rgba(126,170,255,.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(37,99,255,.34), rgba(37,99,255,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 12px 30px rgba(37,99,255,.18);
}
.ng-review-card__score strong {
  font-size: 48px;
  line-height: .95;
  letter-spacing: -.05em;
  color: #fff;
}
.ng-review-card__score span {
  margin-left: 5px;
  color: #9fb5d0;
  font-size: 16px;
  font-weight: 700;
}
.ng-review-card__heading {
  display: grid;
  gap: 4px;
}
.ng-review-card__heading > span {
  color: #76a5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ng-review-card__heading > strong {
  font-size: 26px;
  line-height: 1.1;
  color: #fff;
}
.ng-review-card__heading p {
  margin: 2px 0 0;
  color: #aebdd0;
  font-size: 14px;
  line-height: 1.45;
}
.ng-review-card__columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(231,237,247,.08);
}
.ng-review-card__column {
  padding: 21px 24px 23px;
  background: rgba(8,15,27,.74);
}
.ng-review-card__column-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-size: 17px;
  font-weight: 800;
}
.ng-review-card__column-title::before {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
}
.ng-review-card__column--pros .ng-review-card__column-title::before {
  content: "+";
  background: #22c55e;
}
.ng-review-card__column--cons .ng-review-card__column-title::before {
  content: "−";
  background: #ef4444;
}
.ng-review-card__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ng-review-card__list li {
  position: relative;
  margin: 9px 0 !important;
  padding: 0 0 0 18px !important;
  color: #dce5f2;
  font-size: 15px;
  line-height: 1.45;
}
.ng-review-card__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.ng-review-card__column--pros li::before { background: #22c55e; }
.ng-review-card__column--cons li::before { background: #ef4444; }

@media (max-width: 991px) {
  .ng-toc-placement--desktop { display: none; }
  .ng-toc-placement--mobile { display: block; }
  .ng-toc-placement--mobile .ng-toc { margin-top: 0; }
}
@media (max-width: 575px) {
  .text--post .ng-paragraph-break { height: 12px; }
  .ng-review-card { border-radius: 18px; }
  .ng-review-card__head { align-items: flex-start; gap: 14px; padding: 18px; }
  .ng-review-card__score { min-width: 88px; padding: 12px; border-radius: 15px; }
  .ng-review-card__score strong { font-size: 38px; }
  .ng-review-card__heading > strong { font-size: 22px; }
  .ng-review-card__heading p { font-size: 13px; }
  .ng-review-card__columns { grid-template-columns: 1fr; }
  .ng-review-card__column { padding: 18px; }
}

/* v0.3.17 — persistent article TOC.
   Keep the legacy sidebar stretched to the whole article row; JS below also
   provides a fixed-position fallback because some old layout wrappers break
   native position:sticky. */
@media (min-width: 992px) {
  .ng-article-sidebar-column {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
  }
  .ng-article-sidebar-stack {
    flex: 1 1 auto;
    min-height: 100%;
    overflow: visible !important;
  }
  .ng-article-sidebar-toc {
    position: -webkit-sticky;
    position: sticky;
    top: 84px;
    z-index: 8;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(71, 85, 105, .45) transparent;
  }
  .ng-article-sidebar-toc.is-fixed-by-js {
    position: fixed !important;
    margin: 0 !important;
  }
  .ng-article-sidebar-toc-anchor {
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
  }
  .ng-article-sidebar-toc::-webkit-scrollbar { width: 6px; }
  .ng-article-sidebar-toc::-webkit-scrollbar-track { background: transparent; }
  .ng-article-sidebar-toc::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, .35);
    border-radius: 999px;
  }
}

/* Legacy spoiler tags, restyled for the new NowGame content system. */
.text--post .ng_spoiler {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid #d8e1ee;
  border-radius: 16px;
  background: #f6f9fd;
  box-shadow: 0 8px 24px rgba(11, 18, 32, .05);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.text--post .title_spoiler,
.text--post .title_spoiler2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 0;
  padding: 11px 46px 11px 12px;
  border-radius: 0;
  cursor: pointer;
  color: #172033;
  font-weight: 800;
  line-height: 1.3;
  user-select: none;
  transition: background-color .18s ease, color .18s ease;
}

.text--post .title_spoiler {
  background: linear-gradient(135deg, #eef5ff 0%, #e7f0ff 100%);
}

.text--post .title_spoiler2 {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe8eb 100%);
  color: #801d2a;
}

.text--post .title_spoiler::before,
.text--post .title_spoiler2::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
}

.text--post .title_spoiler::before {
  content: "!";
  background: #2563ff;
  color: #fff;
  box-shadow: 0 7px 16px rgba(37, 99, 255, .20);
}

.text--post .title_spoiler2::before {
  content: "18+";
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 7px 16px rgba(229, 72, 77, .18);
}

.text--post .title_spoiler::after,
.text--post .title_spoiler2::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .65;
  transform: translateY(-68%) rotate(45deg);
}

.text--post .title_spoiler:hover { background: #deebff; }
.text--post .title_spoiler2:hover { background: #ffdde1; }

.text--post .ng_spoiler .ng_show,
.text--post .ng_spoiler .ng_hide {
  color: inherit;
}

.text--post .ng_spoiler .text_spoiler {
  margin: 0;
  padding: 18px 20px;
  border-top: 1px solid #d8e1ee;
  background: #fff;
  color: #172033;
  line-height: 1.55;
}

body.dark .text--post .ng_spoiler {
  border-color: #2a3648;
  background: #111a29;
  box-shadow: none;
}
body.dark .text--post .title_spoiler {
  background: linear-gradient(135deg, #15243d 0%, #172b49 100%);
  color: #dce9ff;
}
body.dark .text--post .title_spoiler:hover { background: #1a3152; }
body.dark .text--post .title_spoiler2 {
  background: linear-gradient(135deg, #311922 0%, #3b1d28 100%);
  color: #ffd5da;
}
body.dark .text--post .title_spoiler2:hover { background: #47212e; }
body.dark .text--post .ng_spoiler .text_spoiler {
  border-top-color: #2a3648;
  background: #0f1826;
  color: #e7edf7;
}

@media (max-width: 575px) {
  .text--post .ng_spoiler { border-radius: 14px; }
  .text--post .title_spoiler,
  .text--post .title_spoiler2 { min-height: 50px; padding: 9px 42px 9px 10px; }
  .text--post .title_spoiler::before,
  .text--post .title_spoiler2::before { width: 30px; height: 30px; border-radius: 9px; }
  .text--post .ng_spoiler .text_spoiler { padding: 15px 16px; }
}

/* FAQ block: one editorial [faq] wrapper containing multiple H3 questions. */
.ng-faq-block {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #d8e5f5;
  border-radius: 20px;
  background: #f4f8fd;
  box-shadow: 0 8px 24px rgba(15, 32, 57, .06);
  color: #162033;
}
.ng-faq-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}
.ng-faq-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #2563ff;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(37, 99, 255, .22);
}
.ng-faq-block__items {
  display: grid;
  gap: 9px;
}
.ng-faq-block__item {
  margin: 0;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.ng-faq-block__item > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 13px 16px;
  color: #152238;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease, color .18s ease;
}
.ng-faq-block__item > summary::-webkit-details-marker { display: none; }
.ng-faq-block__item > summary:hover { background: #eef5ff; color: #164fb8; }
.ng-faq-block__item > summary i {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #eef4ff;
}
.ng-faq-block__item > summary i::before,
.ng-faq-block__item > summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: #2563ff;
  transform: translate(-50%, -50%);
}
.ng-faq-block__item > summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .18s ease;
}
.ng-faq-block__item[open] > summary {
  background: #edf4ff;
  color: #164fb8;
}
.ng-faq-block__item[open] > summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.ng-faq-block__answer {
  padding: 2px 16px 16px;
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
}
.ng-faq-block__answer .ng-paragraph-break { height: 10px; }
.ng-faq-block__empty {
  padding: 15px 16px;
  border: 1px dashed #c7d7eb;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  color: #475569;
}

/* Legacy one-question FAQ tag remains readable, but new content should use .ng-faq-block. */
.ng-faq {
  margin: 10px 0;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.ng-faq > summary {
  padding: 13px 16px;
  color: #152238;
  font-weight: 750;
  cursor: pointer;
}
.ng-faq__answer { padding: 0 16px 16px; color: #334155; }

body.dark .ng-faq-block {
  border-color: #273852;
  background: #111c2d;
  color: #e7edf7;
  box-shadow: none;
}
body.dark .ng-faq-block__item { border-color: #2b3b52; background: #172335; }
body.dark .ng-faq-block__item > summary { color: #e7edf7; }
body.dark .ng-faq-block__item > summary:hover,
body.dark .ng-faq-block__item[open] > summary { background: #1c2b42; color: #8fb5ff; }
body.dark .ng-faq-block__item > summary i { background: #203451; }
body.dark .ng-faq-block__answer { color: #cbd5e1; }
body.dark .ng-faq-block__empty { border-color: #32435a; background: rgba(255,255,255,.025); color: #aebdce; }
body.dark .ng-faq { border-color: #2b3b52; background: #172335; }
body.dark .ng-faq > summary { color: #e7edf7; }
body.dark .ng-faq__answer { color: #cbd5e1; }

@media (max-width: 720px) {
  .ng-faq-block { margin: 22px 0; padding: 16px; border-radius: 17px; }
  .ng-faq-block__head { font-size: 20px; }
  .ng-faq-block__item > summary { min-height: 50px; padding: 12px 13px; font-size: 16px; }
  .ng-faq-block__answer { padding: 0 13px 14px; font-size: 16px; }
}

/* Image slider: clean gallery, arrows + touch/mouse drag, no thumbnails or counter. */
.text--post .ng-slider {
  position: relative;
  width: 100%;
  margin: 28px 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  outline: none;
}
.text--post .ng-slider:focus-visible .ng-slider__viewport {
  box-shadow: 0 0 0 3px rgba(37, 99, 255, .18);
}
.text--post .ng-slider__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.text--post .ng-slider__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.text--post .ng-slider__viewport::-webkit-scrollbar { display: none; }
.text--post .ng-slider__track {
  display: flex;
  width: 100%;
  align-items: stretch;
}
.text--post .ng-slider__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #0b1220;
}
.text--post .ng-slider__media {
  display: grid;
  -webkit-user-drag: none;
  user-drag: none;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070d17;
  overflow: hidden;
}
.text--post .ng-slider__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.text--post .ng-slider__fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: #e7edf7;
  text-align: center;
  line-height: 1.45;
}
.text--post .ng-slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 30px 72px 14px;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, .78));
  color: #e7edf7;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}
.text--post .ng-slider__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 18, 32, .72);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: background .16s ease, opacity .16s ease, transform .16s ease;
}
.text--post .ng-slider__arrow:hover {
  background: rgba(37, 99, 255, .94);
  transform: translateY(-50%) scale(1.05);
}
.text--post .ng-slider__arrow:disabled { opacity: .28; cursor: default; transform: translateY(-50%); }
.text--post .ng-slider__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.text--post .ng-slider__arrow--prev { left: 14px; }
.text--post .ng-slider__arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.text--post .ng-slider__arrow--next { right: 14px; }
.text--post .ng-slider__arrow--next::before { transform: translate(-65%, -50%) rotate(45deg); }
body.dark .text--post .ng-slider { box-shadow: none; }
@media (max-width: 720px) {
  .text--post .ng-slider { margin: 22px 0; }
  .text--post .ng-slider__viewport { border-radius: 14px; }
  .text--post .ng-slider__arrow { width: 40px; height: 40px; }
  .text--post .ng-slider__arrow--prev { left: 8px; }
  .text--post .ng-slider__arrow--next { right: 8px; }
  .text--post .ng-slider__caption { padding: 28px 56px 11px; font-size: 13px; }
}

/* v0.3.21 — keep all article slider UI below the fixed site header. */
.s-head {
  z-index: 1000 !important;
}

.text--post .ng-slider {
  z-index: 0;
  isolation: isolate;
}

.text--post .ng-slider__caption {
  z-index: 1;
}

.text--post .ng-slider__arrow {
  z-index: 2;
}

/* v0.3.22 — readable list rhythm + NowGame quote block. */
.text--post .ng-list {
  margin: 22px 0;
  padding-left: 28px;
}

.text--post .ng-list > li {
  margin: 0;
  padding-left: 2px;
  line-height: 1.55;
}

.text--post .ng-list > li + li {
  margin-top: 9px;
}

.text--post .ng-quote {
  position: relative;
  margin: 28px 0 !important;
  padding: 22px 26px 22px 70px !important;
  border: 1px solid #dbe6f3 !important;
  border-left: 4px solid var(--ng-blue) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f6f9fe 0%, #eef4fb 100%) !important;
  color: #182235 !important;
  box-shadow: 0 8px 24px rgba(15, 32, 57, .055) !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.text--post .ng-quote::before {
  content: "“";
  position: absolute;
  left: 20px;
  top: 10px;
  color: var(--ng-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  opacity: .9;
}

.text--post .ng-quote::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: rgba(37, 99, 255, .22);
}

body.dark .text--post .ng-quote {
  border-color: #2b3a50 !important;
  border-left-color: var(--ng-blue) !important;
  background: linear-gradient(135deg, #111b2b 0%, #152237 100%) !important;
  color: #e7edf7 !important;
  box-shadow: none !important;
}

body.dark .text--post .ng-quote::before {
  color: #6f9aff;
}

body.dark .text--post .ng-quote::after {
  background: rgba(111, 154, 255, .3);
}

@media (max-width: 720px) {
  .text--post .ng-list {
    margin: 18px 0;
    padding-left: 24px;
  }

  .text--post .ng-list > li + li {
    margin-top: 8px;
  }

  .text--post .ng-quote {
    margin: 22px 0 !important;
    padding: 18px 18px 18px 56px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
  }

  .text--post .ng-quote::before {
    left: 15px;
    top: 9px;
    font-size: 44px;
  }

  .text--post .ng-quote::after {
    left: 14px;
    bottom: 14px;
    width: 23px;
  }
}


/* v0.9.19 — article image lightbox with desktop/mobile zoom. */
.ng-lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4, 9, 18, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
  overscroll-behavior: contain;
}
.ng-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.ng-lightbox__dialog {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: min(94vw, 1500px);
  max-height: 94vh;
  margin: 0;
}
.ng-lightbox__viewport {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: 94vw;
  max-height: calc(94vh - 64px);
  overflow: hidden;
  border-radius: 10px;
  touch-action: none;
  cursor: zoom-in;
  box-shadow: 0 30px 90px rgba(0,0,0,.52);
}
.ng-lightbox__image {
  display: block;
  max-width: 94vw;
  max-height: calc(94vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform .16s ease;
}
.ng-lightbox.is-zoomed .ng-lightbox__viewport { cursor: grab; }
.ng-lightbox.is-dragging .ng-lightbox__viewport { cursor: grabbing; }
.ng-lightbox.is-dragging .ng-lightbox__image { transition: none; }
.ng-lightbox__caption {
  max-width: 900px;
  margin: 0 auto;
  color: #d8e2f0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.ng-lightbox__caption:empty { display: none; }
.ng-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231,237,247,.18);
  border-radius: 50%;
  background: #0b1220;
  color: #e7edf7;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.ng-lightbox__close:hover {
  border-color: rgba(37,99,255,.55);
  background: #111c2f;
}
body.ng-lightbox-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.text--post .ng-image-link,
.text--post .ng-slider__media { cursor: zoom-in; }
@media (max-width: 720px) {
  .ng-lightbox { padding: 12px; }
  .ng-lightbox__dialog { max-width: 100%; max-height: 96vh; }
  .ng-lightbox__viewport,
  .ng-lightbox__image { max-width: calc(100vw - 24px); max-height: calc(92vh - 54px); border-radius: 8px; }
  .ng-lightbox__close { top: -8px; right: -4px; width: 38px; height: 38px; }
  .ng-lightbox__caption { max-width: calc(100vw - 32px); font-size: 13px; }
}

/* v0.4.3 — related materials card carousel on desktop and mobile. */
.ng-related {
  --ng-related-gap: 14px;
  margin: 46px 0 26px;
  padding: 25px 0 20px;
  border-top: 1px solid #dfe7f1;
  border-bottom: 1px solid #dfe7f1;
  background: transparent;
}
.ng-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.ng-related__heading {
  position: relative;
  min-width: 0;
  padding-left: 17px;
}
.ng-related__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 5px;
  border-radius: 999px;
  background: #2563ff;
  box-shadow: 0 0 20px rgba(37, 99, 255, .22);
}
.ng-related__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ng-related__title {
  margin: 0 !important;
  padding: 0 !important;
  color: #0b1220;
  font-size: 26px !important;
  line-height: 1.12 !important;
  font-weight: 850 !important;
}
.ng-related__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  outline: none;
  touch-action: pan-x pan-y pinch-zoom;
}
.ng-related__viewport::-webkit-scrollbar { display: none; }
.ng-related__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.ng-related__viewport:focus-visible {
  border-radius: 15px;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, .18);
}
.ng-related__track {
  display: flex;
  align-items: stretch;
  gap: var(--ng-related-gap);
  width: max-content;
  min-width: 100%;
  padding: 2px 1px 8px;
}
.ng-related__card {
  flex: 0 0 clamp(218px, calc((100vw - 360px) / 3), 278px);
  width: clamp(218px, calc((100vw - 360px) / 3), 278px);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 18, 32, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ng-related__card:hover {
  transform: translateY(-3px);
  border-color: #b9cbff;
  box-shadow: 0 15px 34px rgba(37, 99, 255, .12);
}
.ng-related__link {
  display: flex;
  height: 100%;
  min-height: 332px;
  flex-direction: column;
  color: inherit !important;
  text-decoration: none !important;
}
.ng-related__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe7f2;
}
.ng-related__image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,18,32,0), rgba(11,18,32,.48));
}
.ng-related__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.ng-related__card:hover .ng-related__image img { transform: scale(1.04); }
.ng-related__image--empty {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 75% 10%, rgba(37,99,255,.34), transparent 42%), linear-gradient(145deg, #1a2940, #0b1220);
}
.ng-related__empty-mark {
  color: #a9c0ff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.08em;
}
.ng-related__category {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 11px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(11,18,32,.78);
  color: #f4f7fb;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ng-related__body {
  display: flex;
  min-height: 150px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 15px 15px 14px;
}
.ng-related__name {
  display: -webkit-box;
  overflow: hidden;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.ng-related__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.ng-related__footer time {
  color: #718096;
  font-size: 11px;
  font-weight: 650;
}
.ng-related__go {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: #eef3fa;
  color: #172033;
  font-size: 20px;
  line-height: 1;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.ng-related__card:hover .ng-related__go {
  background: #2563ff;
  color: #fff;
  transform: translateX(2px);
}
.ng-related__nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  margin-top: 13px;
}
.ng-related__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e0eb;
  border-radius: 50%;
  background: #fff;
  color: #172033;
  font: 700 21px/1 Arial, sans-serif;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease, opacity .16s ease;
}
.ng-related__arrow:hover:not(:disabled) {
  border-color: #2563ff;
  background: #2563ff;
  color: #fff;
  transform: translateY(-1px);
}
.ng-related__arrow:disabled {
  opacity: .34;
  cursor: default;
}
.ng-related__dots {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.ng-related__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c6d2df;
  cursor: pointer;
  transition: width .18s ease, background .18s ease, transform .18s ease;
}
.ng-related__dot:hover { transform: scale(1.15); }
.ng-related__dot.is-active {
  width: 22px;
  background: #2563ff;
}
.ng-related.is-static .ng-related__nav { display: none; }
body.dark .ng-related { border-color: #243247; }
body.dark .ng-related__eyebrow { color: #91a1b6; }
body.dark .ng-related__title { color: #e7edf7; }
body.dark .ng-related__card {
  border-color: #26344a;
  background: #121d2d;
  box-shadow: none;
}
body.dark .ng-related__card:hover {
  border-color: #3b63aa;
  box-shadow: 0 15px 36px rgba(0,0,0,.22);
}
body.dark .ng-related__name { color: #e7edf7; }
body.dark .ng-related__footer time { color: #91a1b6; }
body.dark .ng-related__go {
  background: #1e2d43;
  color: #d9e4f3;
}
body.dark .ng-related__arrow {
  border-color: #304158;
  background: #121d2d;
  color: #e7edf7;
}
body.dark .ng-related__arrow:hover:not(:disabled) {
  border-color: #2563ff;
  background: #2563ff;
  color: #fff;
}
body.dark .ng-related__dot { background: #41536c; }
body.dark .ng-related__dot.is-active { background: #2563ff; }
@media (max-width: 980px) {
  .ng-related__card {
    flex-basis: min(42vw, 260px);
    width: min(42vw, 260px);
  }
}
@media (max-width: 760px) {
  .ng-related {
    --ng-related-gap: 12px;
    margin: 35px 0 20px;
    padding: 21px 0 16px;
  }
  .ng-related__head { margin-bottom: 15px; }
  .ng-related__heading { padding-left: 14px; }
  .ng-related__heading::before { width: 4px; }
  .ng-related__eyebrow { font-size: 9px; }
  .ng-related__title { font-size: 22px !important; }
  .ng-related__card {
    flex-basis: min(76vw, 270px);
    width: min(76vw, 270px);
    border-radius: 14px;
  }
  .ng-related__link { min-height: 318px; }
  .ng-related__body { min-height: 146px; padding: 14px; }
  .ng-related__name { font-size: 14px; }
  .ng-related__nav {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 12px;
    margin-top: 10px;
  }
  .ng-related__arrow { width: 42px; height: 42px; }
  .ng-related__category { left: 10px; bottom: 10px; }
}
@media (max-width: 420px) {
  .ng-related__card {
    flex-basis: min(79vw, 260px);
    width: min(79vw, 260px);
  }
}

/* v0.4.4 — section listing cards + rounded article tag pills */

/* Legacy section cards (novosti / obzory / gajdy / prohozhdeniya / chity / podborki / tags results) */
.wrap .b-post {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px !important;
  padding: 18px;
  border: 1px solid #e1e9f3;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 30px rgba(15, 32, 57, .06);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.wrap .b-post:hover {
  transform: translateY(-2px);
  border-color: #c8d8ec;
  box-shadow: 0 16px 34px rgba(15, 32, 57, .10);
}
.wrap .b-post > a.elem-img-hover {
  order: 1;
  display: block;
  margin: -18px -18px 0;
  overflow: hidden;
  background: #dbe6f2;
}
.wrap .b-post > a.elem-img-hover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}
.wrap .b-post:hover > a.elem-img-hover img {
  transform: scale(1.035);
}
.wrap .b-post > h4 {
  order: 2;
  margin: 18px 0 12px !important;
  font-size: clamp(23px, 1.9vw, 33px) !important;
  line-height: 1.2;
}
.wrap .b-post > h4 a {
  color: #0f1d31;
  text-decoration: none;
}
.wrap .b-post > h4 a:hover {
  color: #148df0;
  text-decoration: none;
}
.wrap .b-post > div.cn-mt-15 {
  order: 3;
  margin: 0 0 18px !important;
  color: #53667b;
  font-size: 16px;
  line-height: 1.6;
}
.wrap .b-post > div.cn-mt-15 p {
  margin: 0;
}
.wrap .b-post > ul {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 16px;
  border-top: 1px solid #e8eef6;
}
.wrap .b-post > ul li {
  display: inline-flex;
  align-items: center;
}
.wrap .b-post > ul li span,
.wrap .b-post > ul li b {
  line-height: 1.2;
}
.wrap .b-post .typo-opter,
.wrap .b-post .typo-idetu {
  color: #6c7f92;
}
.wrap .b-post .e-like__good {
  color: #12b24a;
}
.wrap .b-post .e-like__bad {
  color: #f23f4a;
}

@media screen and (max-width: 767px) {
  .wrap .b-post {
    margin-bottom: 22px !important;
    padding: 14px;
    border-radius: 24px;
  }
  .wrap .b-post > a.elem-img-hover {
    margin: -14px -14px 0;
    border-radius: 18px 18px 0 0;
  }
  .wrap .b-post > h4 {
    margin: 14px 0 10px !important;
    font-size: 20px !important;
  }
  .wrap .b-post > div.cn-mt-15 {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media screen and (max-width: 575px) {
  .wrap .b-post {
    padding: 12px;
    border-radius: 22px;
  }
  .wrap .b-post > a.elem-img-hover {
    margin: -12px -12px 0;
    border-radius: 16px 16px 0 0;
  }
  .wrap .b-post > div.cn-mt-15 {
    display: none;
  }
  .wrap .b-post > ul {
    gap: 9px 14px;
    padding-top: 14px;
  }
}

body.dark .wrap .b-post {
  background: linear-gradient(180deg, #0f1824 0%, #132131 100%);
  border-color: #21344c;
  box-shadow: none;
}
body.dark .wrap .b-post:hover {
  border-color: #2b79ff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}
body.dark .wrap .b-post > a.elem-img-hover {
  background: #162334;
}
body.dark .wrap .b-post > h4 a {
  color: #eff6ff;
}
body.dark .wrap .b-post > h4 a:hover {
  color: #5fc5ff;
}
body.dark .wrap .b-post > div.cn-mt-15 {
  color: #a8bfd6;
}
body.dark .wrap .b-post > ul {
  border-top-color: #26384d;
}
body.dark .wrap .b-post .typo-opter,
body.dark .wrap .b-post .typo-idetu {
  color: #9cb1c7;
}

/* Rounded tag pills under article hero — rebuilt closer to the provided reference */
.post-tag4 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 24px 0 28px !important;
  padding: 0;
}
.post-tag4 a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 22px 11px 52px;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbfe 0%, #f1f5fb 100%);
  color: #52677d;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(15, 32, 57, .05);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.post-tag4 a::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 20px;
  height: 14px;
  margin-top: -7px;
  border: 3px solid #8fb2cf;
  border-right-width: 3px;
  border-radius: 5px;
  transform: skewX(-8deg);
  clip-path: polygon(0 50%, 28% 0, 100% 0, 100% 100%, 28% 100%);
  box-sizing: border-box;
  opacity: .95;
}
.post-tag4 a::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #8fb2cf;
  box-shadow: 0 0 0 3px rgba(143, 178, 207, .13);
}
.post-tag4 a:hover {
  transform: translateY(-1px);
  border-color: #c6d8ec;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fd 100%);
  color: #294763;
  box-shadow: 0 10px 22px rgba(15, 32, 57, .08);
}

body.dark .post-tag4 a {
  background: linear-gradient(180deg, rgba(33, 49, 74, .94) 0%, rgba(20, 32, 49, .96) 100%);
  border-color: rgba(108, 200, 255, .22);
  color: #e7edf7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 22px rgba(0, 0, 0, .18);
}
body.dark .post-tag4 a::before {
  border-color: #69c5ff;
}
body.dark .post-tag4 a::after {
  background: #69c5ff;
  box-shadow: 0 0 0 3px rgba(105, 197, 255, .14);
}
body.dark .post-tag4 a:hover {
  background: linear-gradient(180deg, rgba(39, 59, 89, 1) 0%, rgba(25, 39, 60, 1) 100%);
  border-color: #52b7ff;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 28px rgba(0, 0, 0, .22);
}

@media screen and (max-width: 575px) {
  .post-tag4 {
    gap: 10px;
    margin: 18px 0 24px !important;
  }
  .post-tag4 a {
    min-height: 42px;
    padding: 10px 16px 10px 44px;
    font-size: 14px;
  }
  .post-tag4 a::before {
    left: 15px;
    width: 17px;
    height: 12px;
    margin-top: -6px;
    border-width: 2px;
  }
  .post-tag4 a::after {
    left: 21px;
  }
}

/* v0.4.5 — compact section cards */

/* Desktop/tablet: turn the oversized vertical tile into a compact editorial card. */
@media screen and (min-width: 768px) {
  .wrap .b-post {
    display: grid;
    grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 20px;
    row-gap: 0;
    min-height: 190px;
    padding: 14px;
    border-radius: 22px;
  }

  .wrap .b-post > a.elem-img-hover {
    grid-column: 1;
    grid-row: 1 / 5;
    order: initial;
    margin: 0;
    min-height: 100%;
    border-radius: 16px;
  }

  .wrap .b-post > a.elem-img-hover img {
    width: 100%;
    height: 100%;
    min-height: 176px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .wrap .b-post > h4 {
    grid-column: 2;
    grid-row: 1;
    order: initial;
    margin: 2px 0 9px !important;
    font-size: clamp(20px, 1.45vw, 25px) !important;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wrap .b-post > div.cn-mt-15 {
    grid-column: 2;
    grid-row: 2 / 4;
    order: initial;
    margin: 0 0 12px !important;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wrap .b-post > ul {
    grid-column: 2;
    grid-row: 4;
    order: initial;
    gap: 7px 13px;
    margin: 0 !important;
    padding-top: 12px;
    font-size: 13px;
  }
}

@media screen and (min-width: 1200px) {
  .wrap .b-post {
    grid-template-columns: minmax(235px, 36%) minmax(0, 1fr);
    min-height: 185px;
  }
}

/* Mobile: keep the visual card, but make it much shorter and denser. */
@media screen and (max-width: 767px) {
  .wrap .b-post {
    padding: 10px;
    margin-bottom: 16px !important;
    border-radius: 18px;
  }

  .wrap .b-post > a.elem-img-hover {
    margin: -10px -10px 0;
    border-radius: 16px 16px 0 0;
  }

  .wrap .b-post > a.elem-img-hover img {
    aspect-ratio: 1.92 / 1;
    max-height: 178px;
  }

  .wrap .b-post > h4 {
    margin: 12px 2px 8px !important;
    font-size: 18px !important;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wrap .b-post > div.cn-mt-15 {
    display: none;
  }

  .wrap .b-post > ul {
    display: grid !important;
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
    gap: 9px 14px;
    padding-top: 10px;
    border-top: 1px solid #e8eef6;
    font-size: 12px;
    overflow: hidden;
  }

  .wrap .b-post > ul li:first-child {
    display: none;
  }

  .wrap .b-post > ul li {
    margin: 0 !important;
    min-width: 0;
  }

  .wrap .b-post > ul .e-icons::before {
    transform: scale(.86);
    transform-origin: center;
  }
}

@media screen and (max-width: 420px) {
  .wrap .b-post > a.elem-img-hover img {
    aspect-ratio: 2 / 1;
    max-height: 160px;
  }

  .wrap .b-post > h4 {
    font-size: 17px !important;
  }

  .wrap .b-post > ul {
    grid-template-columns: repeat(4, auto);
    gap: 8px 11px;
    font-size: 11.5px;
  }
}

/* Firm NowGame dark palette for compact cards. */
body.dark .wrap .b-post {
  background: #0b1220;
  border-color: #22324a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .20);
}

body.dark .wrap .b-post:hover {
  background: #0e1929;
  border-color: #2563ff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}

body.dark .wrap .b-post > h4 a {
  color: #e7edf7;
}

body.dark .wrap .b-post > h4 a:hover {
  color: #6ec8ff;
}

body.dark .wrap .b-post > div.cn-mt-15,
body.dark .wrap .b-post .typo-opter,
body.dark .wrap .b-post .typo-idetu {
  color: #9fb1c8;
}

body.dark .wrap .b-post > ul {
  border-top-color: #213149;
}

/* v0.4.6 — medium section cards: balance between v0.4.4 and v0.4.5 */

/* Keep mobile compact; restore more editorial weight on desktop/tablet. */
@media screen and (min-width: 768px) {
  .wrap .b-post {
    grid-template-columns: minmax(245px, 43%) minmax(0, 1fr);
    min-height: 238px;
    column-gap: 24px;
    padding: 16px;
    border-radius: 24px;
    margin-bottom: 26px !important;
  }

  .wrap .b-post > a.elem-img-hover {
    border-radius: 18px;
  }

  .wrap .b-post > a.elem-img-hover img {
    min-height: 206px;
  }

  .wrap .b-post > h4 {
    margin: 4px 0 11px !important;
    font-size: clamp(23px, 1.75vw, 29px) !important;
    line-height: 1.16;
    -webkit-line-clamp: 3;
  }

  .wrap .b-post > div.cn-mt-15 {
    margin: 0 0 14px !important;
    font-size: 15px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }

  .wrap .b-post > ul {
    gap: 9px 16px;
    padding-top: 14px;
    font-size: 13.5px;
  }
}

@media screen and (min-width: 1200px) {
  .wrap .b-post {
    grid-template-columns: minmax(275px, 44%) minmax(0, 1fr);
    min-height: 250px;
    padding: 17px;
  }

  .wrap .b-post > a.elem-img-hover img {
    min-height: 216px;
  }

  .wrap .b-post > h4 {
    font-size: clamp(24px, 1.55vw, 30px) !important;
  }
}

/* Tablet: not as small as v0.4.5, but still denser than desktop. */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .wrap .b-post {
    grid-template-columns: minmax(225px, 41%) minmax(0, 1fr);
    min-height: 220px;
    column-gap: 20px;
    padding: 14px;
  }

  .wrap .b-post > h4 {
    font-size: 22px !important;
  }

  .wrap .b-post > div.cn-mt-15 {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
}

/* v0.9.01 — keep the blue light canvas exclusive to the homepage.
   Other public pages use the original white/section backgrounds from style.css. */

/* v0.4.7 — unified NowGame dark palette across the public site.
   Goal: keep the light theme untouched, but make dark theme look like one coherent branded system. */
body.dark {
  --ng-dark-bg: #0a1019;
  --ng-dark-surface: #0f1724;
  --ng-dark-surface-2: #121d2d;
  --ng-dark-surface-3: #162437;
  --ng-dark-line: #213149;
  --ng-dark-line-strong: #2a3d59;
  --ng-dark-text: #e7edf7;
  --ng-dark-muted: #9eb0c7;
  --ng-dark-soft: #c9d5e4;
  --ng-dark-accent: #2563ff;
  --ng-dark-accent-soft: #56bfff;
  color: var(--ng-dark-text);
  background: linear-gradient(180deg, #09111b 0%, #0b1220 100%);
}

body.dark .wrap {
  background:
    radial-gradient(circle at 50% -10%, rgba(37, 99, 255, .12), transparent 36%),
    linear-gradient(180deg, #0b1220 0%, #0d1624 100%);
}

body.dark .section,
body.dark .s-content,
body.dark .s-speedbar {
  background: transparent;
}

/* Header / mobile header / menu */
body.dark .s-head,
body.dark .mobile-head,
body.dark .mobile {
  background: linear-gradient(180deg, #08111a 0%, #0b1320 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.20);
}

body.dark .s-head a,
body.dark .mobile a,
body.dark .e-menu__modum,
body.dark .typo-rsona,
body.dark .b-user__intel a,
body.dark .b-user__intel button {
  color: var(--ng-dark-text) !important;
}

body.dark .e-menu__modum:hover,
body.dark .s-head a:hover,
body.dark .mobile a:hover,
body.dark .b-user__intel a:hover,
body.dark .b-user__intel button:hover {
  color: #ffffff !important;
}

body.dark .mobile-over {
  background: rgba(5, 10, 16, .74);
  backdrop-filter: blur(6px);
}

body.dark .b-user__intel {
  background: var(--ng-dark-surface-2);
  border: 1px solid var(--ng-dark-line-strong);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,.26);
}

/* Breadcrumbs / headings / body copy */
body.dark .e-speedbar,
body.dark .e-speedbar a,
body.dark .e-speedbar span,
body.dark .typo-opter,
body.dark .typo-idetu,
body.dark .typo-actum,
body.dark .typo-visar {
  color: var(--ng-dark-muted) !important;
}

body.dark .e-speedbar a:hover {
  color: var(--ng-dark-text) !important;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark .typo-orsal,
body.dark .typo-minim,
body.dark .text,
body.dark .text p,
body.dark .text li,
body.dark .text td,
body.dark .text th,
body.dark .text strong,
body.dark .text--post {
  color: var(--ng-dark-text);
}

body.dark .text a,
body.dark .text--post a {
  color: #69c7ff;
}

body.dark .text a:hover,
body.dark .text--post a:hover {
  color: #a8e0ff;
}

body.dark hr {
  border: 0;
  border-top: 1px solid var(--ng-dark-line);
}

/* Common surfaces: sidebar widgets, article tools, panels */
body.dark .e-social,
body.dark .b-user__intel,
body.dark .ng-related,
body.dark .ng-review-card,
body.dark .ng-callout,
body.dark .ng-toc,
body.dark .elem-item,
body.dark .e-comment,
body.dark .b-support,
body.dark .b-profile__upload {
  background: linear-gradient(180deg, var(--ng-dark-surface) 0%, var(--ng-dark-surface-2) 100%) !important;
  border-color: var(--ng-dark-line-strong) !important;
}

body.dark .e-social {
  border: 1px solid var(--ng-dark-line-strong);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.dark .e-social:hover {
  background: linear-gradient(180deg, #121f31 0%, #16263c 100%) !important;
  border-color: var(--ng-dark-accent) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
  transform: translateY(-1px);
}

body.dark .e-social .typo-ccept {
  color: var(--ng-dark-text) !important;
}

/* Inputs */
body.dark .input,
body.dark .input-range,
body.dark .input-field,
body.dark .input-press,
body.dark .input-usher,
body.dark .input-place,
body.dark textarea,
body.dark input[type="text"],
body.dark input[type="email"],
body.dark input[type="password"] {
  background: #0f1827 !important;
  border-color: var(--ng-dark-line-strong) !important;
  color: var(--ng-dark-text) !important;
}

body.dark .input::placeholder,
body.dark .input-range::placeholder,
body.dark .input-field::placeholder,
body.dark .input-press::placeholder,
body.dark .input-usher::placeholder,
body.dark .input-place::placeholder,
body.dark textarea::placeholder {
  color: #7f94ad !important;
}

body.dark .input:focus,
body.dark .input-range:focus,
body.dark .input-field:focus,
body.dark .input-press:focus,
body.dark .input-usher:focus,
body.dark .input-place:focus,
body.dark textarea:focus {
  border-color: var(--ng-dark-accent) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, .12);
}

/* Buttons */
body.dark .btn,
body.dark .btn.btn-snap,
body.dark .btn.btn-clasp,
body.dark .btn.btn-handle {
  background: linear-gradient(180deg, #111b2a 0%, #152236 100%);
  border-color: var(--ng-dark-line-strong);
  color: var(--ng-dark-text);
  box-shadow: none;
}

body.dark .btn:hover,
body.dark .btn.btn-snap:hover,
body.dark .btn.btn-clasp:hover,
body.dark .btn.btn-handle:hover {
  background: linear-gradient(180deg, #172640 0%, #1c3151 100%);
  border-color: var(--ng-dark-accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

body.dark .btn.btn-clasp.btn--ico-good,
body.dark .e-like__good {
  color: #79f2a2 !important;
}

body.dark .btn.btn-clasp.btn--ico-bad,
body.dark .e-like__bad {
  color: #ff7b8a !important;
}

/* Dark section cards: nudge palette to the same system used by TOC and tags. */
body.dark .wrap .b-post {
  background: linear-gradient(180deg, #0d1726 0%, #101b2d 100%);
  border-color: var(--ng-dark-line);
}

body.dark .wrap .b-post:hover {
  background: linear-gradient(180deg, #101d30 0%, #14233a 100%);
  border-color: var(--ng-dark-accent);
}

body.dark .wrap .b-post > a.elem-img-hover {
  background: #142132;
}

body.dark .wrap .b-post > div.cn-mt-15,
body.dark .wrap .b-post .typo-opter,
body.dark .wrap .b-post .typo-idetu {
  color: var(--ng-dark-muted) !important;
}

body.dark .wrap .b-post > ul {
  border-top-color: var(--ng-dark-line) !important;
}

/* Article tag pills */
body.dark .post-tag4 a {
  background: linear-gradient(180deg, rgba(33, 49, 74, .94) 0%, rgba(20, 32, 49, .96) 100%);
  border-color: rgba(108, 200, 255, .22);
  color: #e7edf7;
}

body.dark .post-tag4 a::before {
  border-color: #69c5ff;
}

body.dark .post-tag4 a::after {
  background: #69c5ff;
  box-shadow: 0 0 0 3px rgba(105, 197, 255, .14);
}

body.dark .post-tag4 a:hover {
  background: linear-gradient(180deg, rgba(39, 59, 89, 1) 0%, rgba(25, 39, 60, 1) 100%);
  border-color: var(--ng-dark-accent);
  color: #fff;
}

/* Related carousel already exists; align tone more tightly. */
body.dark .ng-related {
  background: linear-gradient(180deg, rgba(17, 27, 42, .55) 0%, rgba(13, 20, 32, .55) 100%);
  border: 1px solid var(--ng-dark-line);
  border-radius: 28px;
  padding: 22px;
}

body.dark .ng-related__card {
  background: linear-gradient(180deg, #111a29 0%, #132033 100%);
  border-color: var(--ng-dark-line);
}

body.dark .ng-related__card:hover {
  border-color: var(--ng-dark-accent);
}

body.dark .ng-related__go,
body.dark .ng-related__arrow {
  background: #152235;
  border-color: var(--ng-dark-line-strong);
}

body.dark .ng-related__go,
body.dark .ng-related__arrow::before {
  color: var(--ng-dark-text);
}

/* Footer */
body.dark .s-foot {
  background: linear-gradient(180deg, #08111a 0%, #0a121e 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.dark .s-foot,
body.dark .s-foot a,
body.dark .s-foot span,
body.dark .s-foot p,
body.dark .s-foot li {
  color: var(--ng-dark-soft) !important;
}

body.dark .s-foot a:hover {
  color: #ffffff !important;
}

body.dark .s-foot .btn.btn-snap {
  background: #101a2a;
  border-color: #26415f;
}

body.dark .s-foot .btn.btn-snap:hover {
  border-color: var(--ng-dark-accent);
}

/* Back-to-top button */
body.dark .scroll_top {
  background: linear-gradient(180deg, #2d5dff 0%, #1e6dff 100%);
  box-shadow: 0 10px 24px rgba(10, 18, 32, .32);
}

body.dark .scroll_top:hover {
  filter: brightness(1.05);
}

/* Small visual cleanups for section layouts */
body.dark .b-news__content,
body.dark .b-news__cente {
  border-color: var(--ng-dark-line) !important;
}


@media screen and (max-width: 767px) {
  body.dark .e-social {
    border-radius: 16px;
  }

  body.dark .ng-related {
    padding: 16px;
    border-radius: 22px;
  }
}

/* v0.4.8 — card typography + restored dark pattern */

/* Restore the original site pattern outside the central content area. */
body.dark {
  background-color: #08111a !important;
  background-image: url(/img/background/pattern_nowgame_soft.png) !important;
  background-repeat: repeat !important;
  background-position: 0 0 !important;
  background-size: 460px auto !important;
}

/* Keep the v0.4.6 card dimensions, but make headlines readable instead of oversized. */
@media screen and (min-width: 768px) {
  .wrap .b-post > h4 {
    font-size: clamp(19px, 1.15vw, 22px) !important;
    line-height: 1.2;
    -webkit-line-clamp: 4;
  }

  .wrap .b-post > div.cn-mt-15 {
    -webkit-line-clamp: 2;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .wrap .b-post > h4 {
    font-size: 20px !important;
    -webkit-line-clamp: 3;
  }
}

@media screen and (min-width: 1200px) {
  .wrap .b-post > h4 {
    font-size: 22px !important;
    line-height: 1.2;
    -webkit-line-clamp: 4;
  }
}

/* v0.4.10 — compact minimalist article tags */
.post-tag4 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 14px 0 18px !important;
  padding: 0 !important;
}

.post-tag4 a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #d7e1ec !important;
  border-radius: 8px !important;
  background: #f5f7fa !important;
  color: #52657a !important;
  box-shadow: none !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transform: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease !important;
}

.post-tag4 a::before,
.post-tag4 a::after {
  content: none !important;
  display: none !important;
}

.post-tag4 a:hover {
  background: #edf3fb !important;
  border-color: #bfd0e4 !important;
  color: #254b70 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.dark .post-tag4 a {
  background: #111c2b !important;
  border-color: #263a52 !important;
  color: #b9c9da !important;
  box-shadow: none !important;
}

body.dark .post-tag4 a:hover {
  background: #16243a !important;
  border-color: #31547a !important;
  color: #e7edf7 !important;
}

@media screen and (max-width: 575px) {
  .post-tag4 {
    gap: 6px !important;
    margin: 12px 0 16px !important;
  }

  .post-tag4 a {
    height: 26px !important;
    padding: 0 9px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
  }
}

/* v0.4.11 — private admin material tools */
.ng-admin-material-tools {
  position: fixed;
  top: 82px;
  right: 22px;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #dce5f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 28px rgba(15, 32, 57, .12);
  backdrop-filter: blur(10px);
}
.ng-admin-material-tools__views,
.ng-admin-material-tools__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  color: #52677d;
}
.ng-admin-material-tools__views {
  gap: 7px;
  min-width: 56px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
}
.ng-admin-material-tools__views strong {
  color: #26384d;
  font-size: 13px;
  font-weight: 800;
}
.ng-admin-material-tools__edit {
  width: 36px;
  flex: 0 0 36px;
  border: 1px solid transparent;
  background: #edf3fb;
  text-decoration: none !important;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.ng-admin-material-tools__edit:hover {
  background: #e4edff;
  border-color: #c9d9f4;
  color: #2563ff !important;
  transform: translateY(-1px);
}
.ng-admin-material-tools__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.dark .ng-admin-material-tools {
  border-color: #263b56;
  background: rgba(11, 18, 32, .94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
body.dark .ng-admin-material-tools__views {
  color: #91a7bf;
}
body.dark .ng-admin-material-tools__views strong {
  color: #e7edf7;
}
body.dark .ng-admin-material-tools__edit {
  background: #16253a;
  color: #a9c2dc;
}
body.dark .ng-admin-material-tools__edit:hover {
  background: #1a3150;
  border-color: #2563ff;
  color: #69c7ff !important;
}
@media screen and (max-width: 767px) {
  .ng-admin-material-tools {
    top: auto;
    right: 14px;
    bottom: 16px;
    padding: 5px;
    border-radius: 13px;
  }
  .ng-admin-material-tools__views,
  .ng-admin-material-tools__edit {
    min-height: 34px;
  }
  .ng-admin-material-tools__edit {
    width: 34px;
    flex-basis: 34px;
  }
}

/* ========================================================================== 
   v0.4.12 — public shell polish
   Header / sidebar / footer / comments. Light theme remains light; dark theme
   uses the NowGame navy system introduced in v0.4.7-v0.4.11.
   ========================================================================== */

/* ---------- Header ---------- */
.s-head {
  border-bottom: 1px solid rgba(15, 32, 57, .08);
  box-shadow: 0 4px 18px rgba(15, 32, 57, .05);
}

.s-head .b-head {
  min-height: 62px;
}

.s-head .e-menu--main {
  align-items: stretch;
}

.s-head .e-menu--main > li {
  display: flex;
  align-items: stretch;
}

.s-head .e-menu__modum {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  padding-top: 2px;
  font-weight: 700;
  transition: color .18s ease;
}

.s-head .e-menu__modum::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #2563ff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.s-head .e-menu__modum:hover::after,
.s-head .e-menu__modum.active::after {
  transform: scaleX(1);
}

.s-head .e-search__stripe {
  border-radius: 14px;
}

.b-user__intel {
  border-radius: 18px;
  overflow: hidden;
}

body.dark .s-head {
  background: rgba(8, 17, 27, .97) !important;
  border-bottom-color: #1d2c40;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

body.dark .s-head .e-menu__modum {
  color: #cbd8e8 !important;
}

body.dark .s-head .e-menu__modum:hover,
body.dark .s-head .e-menu__modum.active {
  color: #fff !important;
}

body.dark .s-head .e-menu__modum::after {
  background: #2ea8ff;
  box-shadow: 0 0 12px rgba(46, 168, 255, .28);
}

body.dark .s-head .e-search__stripe {
  background: #0e1928 !important;
  border-color: #21334a !important;
  color: #e7edf7 !important;
}

body.dark .s-head .e-search__stripe:focus {
  border-color: #2563ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, .12);
}

body.dark .b-user__intel {
  background: #101b2b !important;
  border: 1px solid #26394f !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .30);
}

/* ---------- Mobile menu ---------- */
.mobile-head {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mobile-body .e-menu__modum {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
}

.mobile-body .e-menu__modum:hover,
.mobile-body .e-menu__modum:active {
  background: rgba(37, 99, 255, .10);
}

body.dark .mobile-head,
body.dark .mobile-body {
  background: #0b1220 !important;
}

body.dark .mobile-body {
  color: #e7edf7;
}

body.dark .mobile-body .e-menu__modum {
  color: #d3dfed !important;
}

body.dark .mobile-body .e-menu__modum:hover,
body.dark .mobile-body .e-menu__modum:active {
  background: #142237;
  color: #fff !important;
}

/* ---------- Sidebar social cards ---------- */
.e-social {
  min-height: 62px;
  padding: 10px 16px;
  border: 1px solid #dde6f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 32, 57, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.e-social:hover {
  transform: translateY(-1px);
  border-color: #bad0e8;
  box-shadow: 0 10px 24px rgba(15, 32, 57, .08);
}

.e-social__ico {
  max-width: 34px;
  max-height: 26px;
  object-fit: contain;
}

.e-social .typo-ccept {
  font-weight: 700;
  line-height: 1.2;
}

body.dark .e-social {
  background: linear-gradient(180deg, #101b2a 0%, #111e30 100%) !important;
  border-color: #26394f !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

body.dark .e-social:hover {
  background: linear-gradient(180deg, #14233a 0%, #162842 100%) !important;
  border-color: #2f74d7 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

body.dark .e-social .typo-ccept {
  color: #e7edf7 !important;
}

/* ---------- Comments ---------- */
#comments-empty {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px dashed #cfdae8;
  border-radius: 18px;
  background: #f7f9fc;
  color: #64748b;
  text-align: center;
  line-height: 1.45;
}

#comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#comments-list > .b-comment {
  margin: 0 !important;
}

.b-comment {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e0e7f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 32, 57, .045);
}

.b-comment__ava {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #dbe8f5;
  box-shadow: 0 4px 12px rgba(15, 32, 57, .08);
}

.b-comment__body {
  min-width: 0;
  padding-left: 0 !important;
}

.b-comment__body > .typo-opter {
  margin: 0 0 9px !important;
  padding-top: 0 !important;
  color: #7a8a9f;
  line-height: 1.35;
}

.b-comment__body > .typo-opter .typo-cresc {
  color: #172033;
  font-weight: 800;
}

.b-comment__body > p.typo-visar {
  margin: 0 0 14px !important;
  color: #334155;
  font-size: 15px !important;
  line-height: 1.58;
}

.b-comment .btn-handle {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.e-counter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 3px 5px;
  border: 1px solid #e1e8f1;
  border-radius: 11px;
  background: #f6f8fb;
}

.e-counter__plus,
.e-counter__minus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  transition: background .15s ease, color .15s ease;
}

.e-counter__plus:hover {
  background: #e7f8ed;
  color: #169b46;
}

.e-counter__minus:hover {
  background: #fff0f2;
  color: #df3047;
}

.b-comment .cform {
  margin-top: 16px !important;
  padding-top: 16px;
  border-top: 1px solid #e9eef5;
}

.b-comment .input-range {
  border-radius: 14px;
  resize: vertical;
}

.b-comment.b-ccomment {
  margin-top: 14px;
  padding: 15px;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: none;
}

.b-comment.b-ccomment .b-comment__ava {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
}

body.dark #comments-empty {
  background: #101a29;
  border-color: #2a3c53;
  color: #9eb0c7;
}

body.dark .b-comment {
  background: linear-gradient(180deg, #0f1928 0%, #111d2f 100%) !important;
  border-color: #22344a !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

body.dark .b-comment__ava {
  border-color: #2a4561;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

body.dark .b-comment__body > .typo-opter,
body.dark .b-comment__body > .typo-opter span {
  color: #8fa3ba !important;
}

body.dark .b-comment__body > .typo-opter .typo-cresc {
  color: #e7edf7 !important;
}

body.dark .b-comment__body > p.typo-visar {
  color: #cad6e5 !important;
}

body.dark .e-counter {
  background: #0b1420;
  border-color: #26374c;
}

body.dark .e-counter__plus,
body.dark .e-counter__minus {
  color: #aebed0;
}

body.dark .e-counter__plus:hover {
  background: rgba(34,197,94,.12);
  color: #73e59a;
}

body.dark .e-counter__minus:hover {
  background: rgba(239,68,68,.12);
  color: #ff8390;
}

body.dark .b-comment .cform {
  border-top-color: #22344a;
}

body.dark .b-comment.b-ccomment {
  background: #0c1624 !important;
  border-color: #203149 !important;
}

/* ---------- Footer ---------- */
.s-foot {
  border-top: 1px solid rgba(15, 32, 57, .10);
}

.s-foot .cn-container {
  padding-top: 38px;
  padding-bottom: 30px;
}

.s-foot a {
  transition: color .18s ease;
}

.s-foot .typo-rfals a {
  color: #63748a;
}

.s-foot .typo-rfals a:hover {
  color: #2563ff;
}

body.dark .s-foot {
  background: #08111b !important;
  border-top-color: #1c2b3d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

body.dark .s-foot .typo-rfals a,
body.dark .s-foot .typo-actum,
body.dark .s-foot .typo-visar {
  color: #8397ae !important;
}

body.dark .s-foot .typo-rfals a:hover {
  color: #6bc9ff !important;
}

/* ---------- Small-screen tuning ---------- */
@media screen and (max-width: 767px) {
  .s-head .b-head {
    min-height: 58px;
  }

  .e-social {
    min-height: 56px;
    border-radius: 14px;
  }

  .b-comment {
    gap: 11px;
    padding: 14px;
    border-radius: 17px;
  }

  .b-comment__ava {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
  }

  .b-comment__body > p.typo-visar {
    font-size: 14px !important;
    line-height: 1.52;
  }

  .b-comment.b-ccomment {
    margin-left: -4px;
    margin-right: -4px;
    padding: 12px;
  }

  .s-foot .cn-container {
    padding-top: 28px;
    padding-bottom: 24px;
  }
}

/* ========================================================================== 
   v0.4.13 — fixes after public shell polish
   1) vertically center desktop nav text
   2) restore social-card icon spacing/alignment
   3) make the mobile drawer fill the whole viewport
   ========================================================================== */

/* Desktop header: legacy CSS still adds top/bottom padding to these links.
   Reset it completely so the label sits in the vertical center of the bar. */
.s-head .e-menu--main {
  min-height: 62px;
  align-items: center !important;
}

.s-head .e-menu--main > li {
  min-height: 62px;
  align-items: center !important;
}

.s-head .e-menu--main .e-menu__modum {
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  min-height: 62px;
  height: 62px;
  padding: 0 !important;
  line-height: 1.15 !important;
}

/* Sidebar social cards: preserve the legacy absolute icon positioning,
   but reserve actual space for it so the text cannot slide underneath. */
.e-social {
  position: relative;
  display: flex !important;
  align-items: center !important;
  min-height: 62px;
  padding: 10px 46px 10px 68px !important;
}

.e-social__ico {
  position: absolute !important;
  left: 22px !important;
  top: 50% !important;
  width: auto !important;
  max-width: 34px !important;
  max-height: 26px !important;
  transform: translateY(-50%) !important;
  object-fit: contain;
}

.e-social .typo-ccept {
  display: block;
  margin: 0;
  line-height: 1.2;
}

.e-social::after {
  right: 14px !important;
}

/* Mobile drawer: plugin wrapper used a white background while the moved
   #mobile-menu could collapse to content height. Force every layer to cover
   the viewport so there is never a white strip under the menu. */
.mobile-menu,
.mobile-menu-background,
.mobile-menu-content,
.mobile-menu-body {
  min-height: 100vh;
  min-height: 100dvh;
}

.mobile-menu-content {
  height: 100vh !important;
  height: 100dvh !important;
  background: #0b1220 !important;
  overflow: hidden !important;
}

.mobile-menu-body {
  height: 100% !important;
  min-height: 100% !important;
  padding: 0 !important;
  background: #0b1220 !important;
}

.mobile-menu-body > .mobile,
#mobile-menu.mobile {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  background: #0b1220 !important;
}

#mobile-menu .mobile-head {
  flex: 0 0 auto;
}

#mobile-menu .mobile-body {
  flex: 1 1 auto !important;
  min-height: 0;
  overflow-y: auto;
  background: #0b1220 !important;
}

@media screen and (max-width: 767px) {
  .s-head .e-menu--main .e-menu__modum {
    height: auto;
    min-height: 0;
  }

  .e-social {
    min-height: 56px;
    padding: 9px 42px 9px 62px !important;
  }

  .e-social__ico {
    left: 20px !important;
    max-width: 30px !important;
    max-height: 24px !important;
  }
}

/* v0.4.18 — legacy [color] is rendered as a compact inline highlight. */
.text--post .ng-text-highlight {
  display: inline;
  margin: 0;
  padding: .03em .30em .08em;
  border-radius: .34em;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.text--post .ng-text-highlight--red { background: #ef4444; color: #fff !important; }
.text--post .ng-text-highlight--orange { background: #f59e0b; color: #17120a !important; }
.text--post .ng-text-highlight--yellow { background: #eab308; color: #17120a !important; }
.text--post .ng-text-highlight--green { background: #22c55e; color: #fff !important; }
.text--post .ng-text-highlight--blue { background: #2563ff; color: #fff !important; }
.text--post .ng-text-highlight--purple { background: #a855f7; color: #fff !important; }


/* v0.4.19 — legacy [b1]/[b2] as NowGame editorial blocks with optional titles. */
.text--post .ng-editorial-box {
  position: relative;
  margin: 26px 0;
  padding: 20px 22px;
  border: 1px solid #dbe5f2;
  border-left-width: 4px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  color: #243247;
  box-shadow: 0 8px 22px rgba(15, 32, 57, .055);
  overflow: hidden;
}
.text--post .ng-editorial-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 42%);
}
.text--post .ng-editorial-box--b1 {
  border-color: #cfe0f7;
  border-left-color: #3b82f6;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
}
.text--post .ng-editorial-box--b2 {
  border-color: #e3d7f4;
  border-left-color: #8b5cf6;
  background: linear-gradient(180deg, #faf7ff 0%, #f5f0fd 100%);
}
.text--post .ng-editorial-box__title {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
}
.text--post .ng-editorial-box--b1 .ng-editorial-box__title { color: #174a92; }
.text--post .ng-editorial-box--b2 .ng-editorial-box__title { color: #6236a6; }
.text--post .ng-editorial-box__body {
  position: relative;
  z-index: 1;
  font-size: 17px;
  line-height: 1.6;
  color: inherit;
}
.text--post .ng-editorial-box__body > :first-child { margin-top: 0; }
.text--post .ng-editorial-box__body > :last-child { margin-bottom: 0; }
.text--post .ng-editorial-box__body .ng-paragraph-break { height: 10px; }
body.dark .text--post .ng-editorial-box { color: #dce6f3; box-shadow: none; }
body.dark .text--post .ng-editorial-box--b1 {
  border-color: #294467;
  border-left-color: #4b8df8;
  background: linear-gradient(180deg, #15243a 0%, #17263c 100%);
}
body.dark .text--post .ng-editorial-box--b2 {
  border-color: #46345f;
  border-left-color: #9b72f2;
  background: linear-gradient(180deg, #241d32 0%, #292039 100%);
}
body.dark .text--post .ng-editorial-box--b1 .ng-editorial-box__title { color: #9fc3ff; }
body.dark .text--post .ng-editorial-box--b2 .ng-editorial-box__title { color: #c9afff; }
@media (max-width: 575px) {
  .text--post .ng-editorial-box { margin: 22px 0; padding: 17px 18px; border-radius: 15px; }
  .text--post .ng-editorial-box__title { margin-bottom: 7px; font-size: 18px; }
  .text--post .ng-editorial-box__body { font-size: 16px; line-height: 1.55; }
}


/* v0.4.21 — compact [b6]/[b7] blocks with branded NG icon and active header button. */
.ng-topic-links {
  margin: 26px 0 22px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #223248;
  background: linear-gradient(180deg, rgba(10, 18, 31, .94) 0%, rgba(8, 16, 28, .98) 100%);
  box-shadow: 0 14px 34px rgba(2, 6, 15, .22);
}
.ng-topic-links__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.ng-topic-links__brand {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ng-topic-links__logo {
  width: 42px;
  height: 42px;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  text-indent: -9999px;
  white-space: nowrap;
  background-image: url('/img/brand/nowgame-ng-mark.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.ng-topic-links__heading {
  min-width: 0;
  flex: 1 1 auto;
}
.ng-topic-links__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #8fa2b9;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ng-topic-links__title {
  color: #eef4fb;
  font-size: clamp(18px, 1.55vw, 20px);
  line-height: 1.06;
  font-weight: 800;
}
.ng-topic-links__more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 40, 61, .98) 0%, rgba(20, 33, 50, 1) 100%);
  border: 1px solid #2a405c;
  color: #eef4fb !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ng-topic-links__more:hover {
  transform: translateY(-1px);
  border-color: #38639b;
  background: linear-gradient(180deg, rgba(29, 48, 72, 1) 0%, rgba(22, 37, 56, 1) 100%);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}
.ng-topic-links__more i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(148,163,184,.14);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}
.ng-topic-links__list {
  display: block;
}
.ng-topic-links__list .ng-paragraph-break {
  display: block;
  height: 8px;
}
.ng-topic-links__list .ng-paragraph-break:first-child,
.ng-topic-links__list .ng-paragraph-break:last-child {
  display: none;
}
.ng-topic-links__list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 11px 54px 11px 16px;
  border-radius: 16px;
  border: 1px solid #223349;
  background: linear-gradient(180deg, #111a29 0%, #132033 100%);
  color: #eef4fb !important;
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ng-topic-links__list a:hover {
  transform: translateY(-1px);
  border-color: #35527a;
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
  background: linear-gradient(180deg, #152235 0%, #18283e 100%);
}
.ng-topic-links__list a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #17263b;
  border: 1px solid #2a405c;
  color: #dce6f4;
  font-size: 22px;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .ng-topic-links {
    margin: 22px 0 18px;
    padding: 12px;
    border-radius: 18px;
  }
  .ng-topic-links__head {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .ng-topic-links__brand {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .ng-topic-links__logo {
    width: 26px;
    height: 26px;
  }
  .ng-topic-links__title {
    font-size: 17px;
  }
  .ng-topic-links__more {
    margin-left: 48px;
    padding: 7px 9px 7px 10px;
    font-size: 11px;
  }
  .ng-topic-links__more i {
    width: 20px;
    height: 20px;
    font-size: 16px;
  }
  .ng-topic-links__list .ng-paragraph-break {
    height: 7px;
  }
  .ng-topic-links__list a {
    min-height: 46px;
    padding: 10px 46px 10px 14px;
    border-radius: 14px;
    font-size: 14px;
  }
  .ng-topic-links__list a::after {
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    font-size: 20px;
  }
}


/* v0.4.25 — theme-aware related/topic and review blocks.
   Light theme gets soft bright surfaces; dark theme keeps the branded navy look. */

/* Review card — light theme (default) */
.ng-review-card {
  border: 1px solid #d7e2f1;
  background:
    radial-gradient(circle at 88% 15%, rgba(37,99,255,.09), transparent 34%),
    linear-gradient(145deg, #f8fbff 0%, #f2f7fd 58%, #edf3fa 100%);
  color: var(--ng-ink);
  box-shadow: 0 14px 30px rgba(15, 32, 57, .08);
}
.ng-review-card::after {
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(255,255,255,.38) 62% 63%, transparent 63%),
    linear-gradient(120deg, transparent 0 74%, rgba(37,99,255,.08) 74% 75%, transparent 75%);
}
.ng-review-card__head {
  border-bottom: 1px solid rgba(71, 85, 105, .14);
}
.ng-review-card__score {
  border: 1px solid rgba(37,99,255,.24);
  background: linear-gradient(145deg, rgba(37,99,255,.16), rgba(37,99,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(37,99,255,.10);
}
.ng-review-card__score strong { color: #0f172a; }
.ng-review-card__score span { color: #5d7390; }
.ng-review-card__heading > span { color: #2563ff; }
.ng-review-card__heading > strong { color: #0f172a; }
.ng-review-card__heading p { color: #5f738d; }
.ng-review-card__columns {
  background: rgba(148, 163, 184, .18);
}
.ng-review-card__column {
  background: rgba(255,255,255,.68);
}
.ng-review-card__column-title {
  color: #0f172a;
}
.ng-review-card__list li {
  color: #243446;
}

/* Review card — dark theme */
body.dark .ng-review-card {
  border: 1px solid rgba(37, 99, 255, .28) !important;
  background:
    radial-gradient(circle at 88% 15%, rgba(37,99,255,.20), transparent 34%),
    linear-gradient(145deg, #0b1220 0%, #101c2e 58%, #0d1727 100%) !important;
  color: #e7edf7;
  box-shadow: 0 18px 42px rgba(11, 18, 32, .18);
}
body.dark .ng-review-card::after {
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(255,255,255,.025) 62% 63%, transparent 63%),
    linear-gradient(120deg, transparent 0 74%, rgba(37,99,255,.08) 74% 75%, transparent 75%);
}
body.dark .ng-review-card__head {
  border-bottom: 1px solid rgba(231,237,247,.10);
}
body.dark .ng-review-card__score {
  border: 1px solid rgba(126,170,255,.28);
  background: linear-gradient(145deg, rgba(37,99,255,.34), rgba(37,99,255,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 12px 30px rgba(37,99,255,.18);
}
body.dark .ng-review-card__score strong { color: #fff; }
body.dark .ng-review-card__score span { color: #9fb5d0; }
body.dark .ng-review-card__heading > span { color: #76a5ff; }
body.dark .ng-review-card__heading > strong { color: #fff; }
body.dark .ng-review-card__heading p { color: #aebdd0; }
body.dark .ng-review-card__columns { background: rgba(231,237,247,.08); }
body.dark .ng-review-card__column { background: rgba(8,15,27,.74); }
body.dark .ng-review-card__column-title { color: #fff; }
body.dark .ng-review-card__list li { color: #dce5f2; }

/* Related/topic blocks — light theme (default) */
.ng-topic-links {
  border: 1px solid #d5deeb;
  background: linear-gradient(180deg, rgba(248, 251, 255, .98) 0%, rgba(241, 246, 252, .98) 100%);
  box-shadow: 0 12px 28px rgba(15, 32, 57, .08);
}
.ng-topic-links__head {
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}
.ng-topic-links__eyebrow {
  color: #61758f;
}
.ng-topic-links__title {
  color: #0f172a;
}
.ng-topic-links__more {
  background: linear-gradient(180deg, rgba(244, 248, 253, 1) 0%, rgba(236, 242, 249, 1) 100%);
  border: 1px solid #c7d5e8;
  color: #17304f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}
.ng-topic-links__more:hover {
  border-color: #9fb8dc;
  background: linear-gradient(180deg, rgba(238, 245, 253, 1) 0%, rgba(231, 239, 249, 1) 100%);
  box-shadow: 0 8px 18px rgba(15, 32, 57, .10);
}
.ng-topic-links__more i {
  background: rgba(37,99,255,.08);
  border: 1px solid rgba(37,99,255,.12);
  color: #1d4ed8;
}
.ng-topic-links__list a {
  border: 1px solid #d7e1ee;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #13243b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}
.ng-topic-links__list a:hover {
  border-color: #afc3dd;
  box-shadow: 0 10px 18px rgba(15,32,57,.10);
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6fd 100%);
}
.ng-topic-links__list a::after {
  background: #eef4fb;
  border: 1px solid #c8d6e8;
  color: #1d3f6e;
}

/* Related/topic blocks — dark theme */
body.dark .ng-topic-links {
  border: 1px solid #223248;
  background: linear-gradient(180deg, rgba(10, 18, 31, .94) 0%, rgba(8, 16, 28, .98) 100%);
  box-shadow: 0 14px 34px rgba(2, 6, 15, .22);
}
body.dark .ng-topic-links__head {
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
body.dark .ng-topic-links__eyebrow { color: #8fa2b9; }
body.dark .ng-topic-links__title { color: #eef4fb; }
body.dark .ng-topic-links__more {
  background: linear-gradient(180deg, rgba(24, 40, 61, .98) 0%, rgba(20, 33, 50, 1) 100%);
  border: 1px solid #2a405c;
  color: #eef4fb !important;
  box-shadow: none;
}
body.dark .ng-topic-links__more:hover {
  border-color: #38639b;
  background: linear-gradient(180deg, rgba(29, 48, 72, 1) 0%, rgba(22, 37, 56, 1) 100%);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}
body.dark .ng-topic-links__more i {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(148,163,184,.14);
  color: #dce6f4;
}
body.dark .ng-topic-links__list a {
  border: 1px solid #223349;
  background: linear-gradient(180deg, #111a29 0%, #132033 100%);
  color: #eef4fb !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
body.dark .ng-topic-links__list a:hover {
  border-color: #35527a;
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
  background: linear-gradient(180deg, #152235 0%, #18283e 100%);
}
body.dark .ng-topic-links__list a::after {
  background: #17263b;
  border: 1px solid #2a405c;
  color: #dce6f4;
}


/* v0.4.26 — visually align sidebar TOC with the first content block on desktop. */
@media (min-width: 992px) {
  .ng-article-sidebar-toc {
    margin-top: 22px;
  }
  .ng-article-sidebar-toc.is-fixed-by-js {
    margin-top: 0 !important;
  }
  .ng-article-sidebar-toc-anchor {
    height: 22px;
  }
}


/* v0.4.27 — correct the desktop TOC alignment introduced in v0.4.26.
   The previous patch offset both the TOC and its anchor, effectively doubling the shift. */
@media (min-width: 992px) {
  .ng-article-sidebar-toc-anchor {
    height: 0;
  }
}


/* v0.5.6 — portrait article images: full image in a fixed 16:9 stage + blurred side/background fill. */
.text--post .ng-image-wrap--portrait .ng-image-link--portrait {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  overflow: hidden !important;
  background: #0b1220;
  isolation: isolate;
}
.text--post .ng-image-wrap--portrait .ng-image-link--portrait::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8%;
  background-image: var(--ng-portrait-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(.52) saturate(.9);
  transform: scale(1.06);
  pointer-events: none;
}
.text--post .ng-image-wrap--portrait .ng-image-link--portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(4, 10, 18, .08);
  pointer-events: none;
}
.text--post .ng-image-wrap--portrait .ng-image-foreground {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  margin: auto !important;
  display: block !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-shadow: 0 0 30px rgba(0,0,0,.22);
}
body:not(.dark) .text--post .ng-image-wrap--portrait .ng-image-link--portrait {
  background: #e8eef6;
}
body:not(.dark) .text--post .ng-image-wrap--portrait .ng-image-link--portrait::before {
  filter: blur(28px) brightness(.72) saturate(.86);
}
body:not(.dark) .text--post .ng-image-wrap--portrait .ng-image-link--portrait::after {
  background: rgba(255,255,255,.06);
}
@media (max-width: 720px) {
  .text--post .ng-image-wrap--portrait .ng-image-link--portrait {
    aspect-ratio: 16 / 9;
  }
  .text--post .ng-image-wrap--portrait .ng-image-link--portrait::before {
    filter: blur(22px) brightness(.58) saturate(.88);
  }
}



/* v0.5.7 — portrait images inside article sliders use the same full-image 16:9 stage. */
.text--post .ng-slider__media--portrait {
  position: relative !important;
  isolation: isolate;
  background: #0b1220;
}
.text--post .ng-slider__media--portrait::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8%;
  background-image: var(--ng-slider-portrait-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(.52) saturate(.9);
  transform: scale(1.06);
  pointer-events: none;
}
.text--post .ng-slider__media--portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(4, 10, 18, .08);
  pointer-events: none;
}
.text--post .ng-slider__media--portrait .ng-slider__image--portrait {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  margin: auto !important;
  display: block !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-shadow: 0 0 30px rgba(0,0,0,.22);
}
body:not(.dark) .text--post .ng-slider__media--portrait {
  background: #e8eef6;
}
body:not(.dark) .text--post .ng-slider__media--portrait::before {
  filter: blur(28px) brightness(.72) saturate(.86);
}
body:not(.dark) .text--post .ng-slider__media--portrait::after {
  background: rgba(255,255,255,.06);
}

/* v0.5.7 — lightbox becomes a gallery for images that belong to the same slider. */
.ng-lightbox__nav {
  position: fixed;
  z-index: 3;
  top: 50%;
  display: none;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(231,237,247,.18);
  border-radius: 50%;
  background: rgba(11, 18, 32, .78);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
  transition: opacity .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.ng-lightbox.has-gallery .ng-lightbox__nav {
  display: block;
}
.ng-lightbox__nav--prev { left: max(18px, calc((100vw - 1500px) / 2 - 72px)); }
.ng-lightbox__nav--next { right: max(18px, calc((100vw - 1500px) / 2 - 72px)); }
.ng-lightbox__nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.ng-lightbox__nav--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.ng-lightbox__nav--next::before { transform: translate(-65%, -50%) rotate(45deg); }
.ng-lightbox__nav:hover:not(:disabled) {
  border-color: rgba(86,191,255,.62);
  background: rgba(37, 99, 255, .92);
  transform: translateY(-50%) scale(1.05);
}
.ng-lightbox__nav:disabled {
  opacity: .24;
  cursor: default;
}

@media (max-width: 720px) {
  .text--post .ng-slider__media--portrait::before {
    filter: blur(22px) brightness(.58) saturate(.88);
  }
  .ng-lightbox__nav {
    width: 42px;
    height: 42px;
    background: rgba(11,18,32,.68);
  }
  .ng-lightbox__nav--prev { left: 8px; }
  .ng-lightbox__nav--next { right: 8px; }
  .ng-lightbox__nav::before {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
}


/* v0.5.12 — smart article media stage.
   Sub-FHD native uploads and portraits are NOT padded/blurred on disk anymore.
   The fixed 16:9 presentation and blur live only on the frontend. */
.text--post .ng-image-wrap--stage .ng-image-link--stage {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  overflow: hidden !important;
  background: #0b1220;
  isolation: isolate;
}
.text--post .ng-image-wrap--stage .ng-image-link--stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8%;
  background-image: var(--ng-media-stage-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(.52) saturate(.9);
  transform: scale(1.06);
  pointer-events: none;
}
.text--post .ng-image-wrap--stage .ng-image-link--stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(4, 10, 18, .08);
  pointer-events: none;
}
.text--post .ng-image-wrap--stage .ng-image-stage-foreground {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  margin: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-shadow: 0 0 30px rgba(0,0,0,.22);
}
body:not(.dark) .text--post .ng-image-wrap--stage .ng-image-link--stage {
  background: #e8eef6;
}
body:not(.dark) .text--post .ng-image-wrap--stage .ng-image-link--stage::before {
  filter: blur(28px) brightness(.72) saturate(.86);
}
body:not(.dark) .text--post .ng-image-wrap--stage .ng-image-link--stage::after {
  background: rgba(255,255,255,.06);
}

/* v0.5.12 — the same smart stage inside sliders. */
.text--post .ng-slider__media--stage {
  position: relative !important;
  isolation: isolate;
  background: #0b1220;
}
.text--post .ng-slider__media--stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8%;
  background-image: var(--ng-slider-stage-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(.52) saturate(.9);
  transform: scale(1.06);
  pointer-events: none;
}
.text--post .ng-slider__media--stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(4, 10, 18, .08);
  pointer-events: none;
}
.text--post .ng-slider__media--stage .ng-slider__image--stage {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  margin: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-shadow: 0 0 30px rgba(0,0,0,.22);
}
body:not(.dark) .text--post .ng-slider__media--stage {
  background: #e8eef6;
}
body:not(.dark) .text--post .ng-slider__media--stage::before {
  filter: blur(28px) brightness(.72) saturate(.86);
}
body:not(.dark) .text--post .ng-slider__media--stage::after {
  background: rgba(255,255,255,.06);
}
@media (max-width: 720px) {
  .text--post .ng-image-wrap--stage .ng-image-link--stage::before,
  .text--post .ng-slider__media--stage::before {
    filter: blur(22px) brightness(.58) saturate(.88);
  }
}


/* v0.6.0.2 — reusable poll entity rendered from [poll=ID]. */
.ng-poll {
  position: relative;
  margin: 28px 0 24px;
  overflow: hidden;
  border: 1px solid #d7e2f1;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 32, 57, .08);
}
.ng-poll__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}
.ng-poll__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}
.ng-poll__brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2563ff, #1748c7);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37, 99, 255, .20);
}
.ng-poll__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #2563ff;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ng-poll__status {
  color: #526983;
  font-size: 13px;
  font-weight: 700;
}
.ng-poll__count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #d5e0ee;
  border-radius: 10px;
  background: rgba(255,255,255,.70);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.ng-poll__question {
  padding: 18px 18px 14px;
  color: #0f172a;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.25;
  font-weight: 800;
}
.ng-poll__options {
  display: grid;
  gap: 9px;
  padding: 0 18px 18px;
}
.ng-poll__option,
.ng-poll__result {
  position: relative;
  min-height: 50px;
  border: 1px solid #d7e1ee;
  border-radius: 15px;
  background: rgba(255,255,255,.82);
}
.ng-poll__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}
.ng-poll__radio {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid #9ab0c9;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}
.ng-poll__option-text {
  color: #192a40;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}
.ng-poll__result {
  overflow: hidden;
}
.ng-poll__result-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(37,99,255,.18), rgba(37,99,255,.08));
}
.ng-poll__result-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 11px 14px;
  color: #192a40;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}
.ng-poll__result-content strong { color: #1d4ed8; }
.ng-poll__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px 13px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  color: #71839a;
  font-size: 11px;
  line-height: 1.35;
}
.ng-poll__notice,
.ng-poll__empty {
  padding: 16px 18px;
  color: #8fa1b7;
  font-size: 14px;
  line-height: 1.45;
}
.ng-poll--missing,
.ng-poll--draft { border-style: dashed; }

body.dark .ng-poll {
  border-color: #263a55;
  background: linear-gradient(180deg, #101a2a 0%, #0d1726 100%);
  color: #e7edf7;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}
body.dark .ng-poll__head { border-bottom-color: rgba(148,163,184,.16); }
body.dark .ng-poll__status { color: #9fb0c5; }
body.dark .ng-poll__count {
  border-color: #2b405e;
  background: #142238;
  color: #aebfd3;
}
body.dark .ng-poll__question { color: #f1f5f9; }
body.dark .ng-poll__option,
body.dark .ng-poll__result {
  border-color: #263a55;
  background: #121f31;
}
body.dark .ng-poll__radio {
  border-color: #6683a7;
  background: #17263b;
  box-shadow: inset 0 0 0 4px #17263b;
}
body.dark .ng-poll__option-text,
body.dark .ng-poll__result-content { color: #e6edf7; }
body.dark .ng-poll__result-fill {
  background: linear-gradient(90deg, rgba(37,99,255,.28), rgba(37,99,255,.10));
}
body.dark .ng-poll__result-content strong { color: #75a4ff; }
body.dark .ng-poll__foot {
  border-top-color: rgba(148,163,184,.14);
  color: #8498b2;
}
body.dark .ng-poll__notice,
body.dark .ng-poll__empty { color: #9fb0c5; }

@media (max-width: 575px) {
  .ng-poll { margin: 22px 0 18px; border-radius: 18px; }
  .ng-poll__head { align-items: flex-start; padding: 14px; }
  .ng-poll__brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .ng-poll__count { padding: 6px 8px; font-size: 11px; }
  .ng-poll__question { padding: 15px 14px 12px; font-size: 18px; }
  .ng-poll__options { gap: 8px; padding: 0 14px 14px; }
  .ng-poll__option,
  .ng-poll__result { min-height: 46px; border-radius: 13px; }
  .ng-poll__option { padding: 10px 12px; }
  .ng-poll__result-content { min-height: 46px; padding: 10px 12px; }
  .ng-poll__foot { flex-direction: column; gap: 3px; padding: 10px 14px 12px; }
}

/* v0.6.1 — public poll voting states. */
.ng-poll__option {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.ng-poll__option:hover {
  transform: translateY(-1px);
  border-color: #a9bfdc;
  box-shadow: 0 7px 16px rgba(15,32,57,.07);
}
.ng-poll__option.is-selected {
  border-color: #568dff;
  background: #f3f7ff;
  box-shadow: 0 0 0 2px rgba(37,99,255,.10);
}
.ng-poll__option.is-selected .ng-poll__radio {
  border-color: #2563ff;
  background: #2563ff;
  box-shadow: inset 0 0 0 4px #fff;
}
.ng-poll__option:focus-visible,
.ng-poll__submit:focus-visible {
  outline: 3px solid rgba(37,99,255,.25);
  outline-offset: 2px;
}
.ng-poll__option:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}
.ng-poll__foot--voting {
  align-items: center;
}
.ng-poll__feedback.is-error { color: #dc2626; }
.ng-poll__feedback.is-success { color: #16803a; }
.ng-poll__submit {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #2563ff;
  border-radius: 11px;
  background: linear-gradient(145deg, #2d72ff, #245de8);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(37,99,255,.16);
  transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease;
}
.ng-poll__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37,99,255,.22);
}
.ng-poll__submit:disabled {
  cursor: not-allowed;
  opacity: .42;
  box-shadow: none;
}
.ng-poll.is-loading .ng-poll__submit { cursor: wait; }
.ng-poll__result.is-my-choice {
  border-color: #568dff;
  box-shadow: 0 0 0 2px rgba(37,99,255,.09);
}
.ng-poll__result.is-my-choice .ng-poll__result-content span::after {
  content: "Ваш выбор";
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(37,99,255,.10);
  color: #2563ff;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 800;
  vertical-align: 1px;
}

body.dark .ng-poll__option:hover { border-color: #3e5d86; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
body.dark .ng-poll__option.is-selected {
  border-color: #4f83ef;
  background: #152640;
  box-shadow: 0 0 0 2px rgba(37,99,255,.14);
}
body.dark .ng-poll__option.is-selected .ng-poll__radio {
  border-color: #4f83ef;
  background: #2563ff;
  box-shadow: inset 0 0 0 4px #17263b;
}
body.dark .ng-poll__feedback.is-error { color: #ff7b84; }
body.dark .ng-poll__feedback.is-success { color: #66d992; }
body.dark .ng-poll__result.is-my-choice { border-color: #4f83ef; box-shadow: 0 0 0 2px rgba(37,99,255,.13); }
body.dark .ng-poll__result.is-my-choice .ng-poll__result-content span::after {
  background: rgba(37,99,255,.18);
  color: #8ab0ff;
}

@media (max-width: 575px) {
  .ng-poll__foot--voting { align-items: stretch; }
  .ng-poll__submit { width: 100%; min-height: 40px; }
}

/* Dark theme */
body.dark .ng-tags-wrap {
  --ng-tags-card: #101a27;
  --ng-tags-card-soft: #121f2e;
  --ng-tags-text: #eff6ff;
  --ng-tags-muted: #9db0c4;
  --ng-tags-border: #23364a;
}
body.dark .ng-tags-hero {
  border-color: #23384e;
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 255, .22), transparent 31%),
    radial-gradient(circle at 70% 110%, rgba(0, 195, 252, .08), transparent 35%),
    linear-gradient(145deg, #101a27 0%, #0e1722 100%);
  box-shadow: none;
}
body.dark .ng-tags-hero::after { color: rgba(92, 145, 255, .055); }
body.dark .ng-tags-hero p { color: #a5b8ca; }
body.dark .ng-tags-hero__meta span {
  border-color: #2a4057;
  background: rgba(18,31,46,.8);
  color: #9fb2c5;
}
body.dark .ng-tags-search__label { color: #a3b5c8; }
body.dark .ng-tags-search__field input {
  border-color: #2a4057;
  background: #111e2c;
  color: #eff6ff;
  box-shadow: none;
}
body.dark .ng-tags-search__field input:focus { border-color: #477dd8; }
body.dark .ng-tags-search__clear { background: #203247; color: #aec0d2; }
body.dark .ng-tags-block,
body.dark .ng-tag-feed__toolbar,
body.dark .ng-tag-material-card {
  border-color: #22364b;
  background: #101a27;
  box-shadow: none;
}
body.dark .ng-topic-card,
body.dark .ng-tag-row,
body.dark .ng-tags-alphabet button,
body.dark .ng-tag-feed__filters a,
body.dark .ng-tag-feed__sort a,
body.dark .ng-related-tags__list a {
  border-color: #273a4e;
  background: #132131;
  color: #dce9f6 !important;
}
body.dark .ng-topic-card:hover,
body.dark .ng-tag-row:hover,
body.dark .ng-tags-alphabet button:hover,
body.dark .ng-related-tags__list a:hover {
  border-color: #376193;
  background: #17283a;
}
body.dark .ng-topic-card__index { background: #1b3150; color: #8ab2f1; }
body.dark .ng-topic-card__body small,
body.dark .ng-tag-row__count,
body.dark .ng-tag-feed__summary,
body.dark .ng-tag-material-card p { color: #91a6ba; }
body.dark .ng-tags-result-count,
body.dark .ng-related-tags__list span { background: #1c2d40; color: #9db0c3; }
body.dark .ng-tags-alphabet button.is-active,
body.dark .ng-tag-feed__filters a.is-active,
body.dark .ng-tag-feed__sort a.is-active { background: #2563ff; border-color: #2563ff; color: #fff !important; }
body.dark .ng-tag-material-card:hover { border-color: #34597e; box-shadow: 0 15px 32px rgba(0,0,0,.18); }
body.dark .ng-tag-material-card__media { background: #172637; }
body.dark .ng-tag-material-card__media.is-empty { background: linear-gradient(145deg, #18304e, #172637); color: #86a9cf; }
body.dark .ng-tag-material-card__meta { border-top-color: #25374a; color: #8ea3b8; }
body.dark .ng-tag-material-card__admin-stats { border-left-color: #2a3e53; }
body.dark .ng-tags-empty,
body.dark .ng-tag-feed-empty { border-color: #31465d; background: #121f2e; }
body.dark .ng-tag-pagination a { border-color: #283c51; background: #132131; color: #a9bdd0 !important; }
body.dark .ng-tag-pagination a.is-active { border-color: #2563ff; background: #2563ff; color: #fff !important; }

@media screen and (max-width: 1100px) {
  .ng-tags-hero { gap: 30px; }
  .ng-tags-search { flex-basis: 330px; width: 330px; }
  .ng-tags-popular,
  .ng-tags-directory,
  .ng-tag-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-tag-feed__toolbar { flex-direction: column; }
  .ng-tag-feed__sort { width: 100%; justify-content: flex-end; }
}

@media screen and (max-width: 767px) {
  .ng-tags-section { padding-top: 8px; }
  .ng-tags-hero {
    display: block;
    margin-bottom: 28px;
    padding: 27px 22px;
    border-radius: 25px;
  }
  .ng-tags-hero::after { right: -18px; top: -20px; font-size: 180px; }
  .ng-tags-hero h1,
  .ng-tags-hero--topic h1 { font-size: clamp(34px, 11vw, 52px); }
  .ng-tags-hero--directory { padding: 24px 22px 25px; margin-bottom: 24px; }
  .ng-tags-hero--directory .ng-tags-search { width: 100%; margin-top: 22px; }
  .ng-tags-hero--topic { padding: 24px 22px 25px; margin-bottom: 24px; }
  .ng-tags-hero--topic .ng-tags-back { margin-bottom: 12px; }
  .ng-tags-hero--topic p { font-size: 15px; }
  .ng-tags-search { width: 100%; margin-top: 28px; }
  .ng-tags-block { margin-bottom: 28px; padding: 22px; border-radius: 23px; }
  .ng-tags-block__head { display: block; }
  .ng-tags-block__head p { margin-top: 10px; text-align: left; }
  .ng-tags-block__head--catalog { display: flex; }
  .ng-tags-popular,
  .ng-tags-directory { grid-template-columns: 1fr; }
  .ng-tag-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .ng-tag-feed__toolbar { padding: 12px; border-radius: 17px; }
  .ng-tag-feed__filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .ng-tag-feed__filters a { flex: 0 0 auto; }
  .ng-tag-feed__sort { justify-content: flex-start; flex-wrap: wrap; }
  .ng-tag-feed__sort > span { width: 100%; margin-bottom: 2px; }
  .ng-tag-material-card { border-radius: 18px; }
  .ng-tag-material-card__body { padding: 15px; }
  .ng-tag-material-card h2 { min-height: 43px; font-size: 16px; }
  .ng-tag-material-card p { display: none; }
  .ng-tag-material-card__admin-stats { gap: 7px; padding-left: 9px; }
  .ng-tag-pagination { flex-wrap: wrap; gap: 8px; }
  .ng-tag-pagination__pages { order: 3; width: 100%; justify-content: center; }
  .ng-related-tags__list { gap: 7px; }
}

@media screen and (max-width: 520px) {
  .ng-tags-hero { padding: 24px 18px; }
  .ng-tags-hero p { font-size: 15px; line-height: 1.55; }
  .ng-tags-search__field input { height: 56px; border-radius: 16px; }
  .ng-tags-block { padding: 18px; }
  .ng-topic-card { min-height: 76px; border-radius: 17px; }
  .ng-tags-block__head--catalog { align-items: flex-end; }
  .ng-tag-row__count { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ng-tag-material-grid { grid-template-columns: 1fr; }
  .ng-tag-material-card h2 { min-height: 0; font-size: 18px; }
  .ng-tag-material-card p { display: -webkit-box; min-height: 0; -webkit-line-clamp: 3; }
  .ng-tag-material-card__meta { flex-wrap: wrap; }
  .ng-tag-material-card__admin-stats { width: 100%; margin-left: 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid #edf1f6; }
  body.dark .ng-tag-material-card__admin-stats { border-top-color: #2a3e53; }
  .ng-tag-feed__sort a { flex: 1; justify-content: center; }
  .ng-tag-feed__sort > span { flex: 0 0 100%; }
  .ng-tag-pagination__nav { flex: 1; }
}

/* v0.8.4 — compact topic hero, two-column material cards and admin-only private metrics */


/* v0.8.6 — real section cards. These use the exact material-card component from tag pages. */
.ng-section-material-grid {
  --ng-tags-text: #0f1d31;
  --ng-tags-blue: #2563ff;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.ng-section-material-grid .ng-tag-material-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.ng-section-material-grid .ng-tag-material-card__body {
  display: flex;
  min-height: 210px;
  flex: 1;
  flex-direction: column;
}
.ng-section-material-grid .ng-tag-material-card__meta {
  margin-top: auto;
}
.ng-section-pagination {
  margin: 24px 0 8px;
  text-align: center;
}
.ng-section-empty {
  padding: 32px 20px;
  border: 1px dashed #cbd8e6;
  border-radius: 20px;
  color: #74879b;
  text-align: center;
}
body.dark .ng-section-material-grid {
  --ng-tags-text: #eff6ff;
  --ng-tags-blue: #5c8dff;
}
body.dark .ng-section-empty {
  border-color: #2b4056;
  color: #91a6ba;
}
@media screen and (max-width: 767px) {
  .ng-section-material-grid {
    gap: 13px;
  }
  .ng-section-material-grid .ng-tag-material-card__body {
    min-height: 0;
  }
}
@media screen and (max-width: 520px) {
  .ng-section-material-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== 
   v0.8.11 — search UI refresh
   Keeps the existing search engine and refreshes only the public presentation.
   ========================================================================== */

/* Header search */
.s-head .e-search {
  height: 46px;
}
.s-head .e-search__toggle {
  width: 46px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent !important;
  opacity: 1 !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.s-head .e-search__toggle:hover {
  border-color: rgba(37,99,255,.16);
  background: rgba(37,99,255,.07) !important;
}
.s-head .e-search__toggle::before,
.s-head .e-search__toggle::after {
  content: "" !important;
  position: absolute;
  display: block;
  box-sizing: border-box;
}
.s-head .e-search__toggle::after {
  width: 17px;
  height: 17px;
  border: 2px solid #32465d;
  border-radius: 50%;
  left: 13px;
  top: 12px;
}
.s-head .e-search__toggle::before {
  width: 8px;
  height: 2px;
  border-radius: 3px;
  background: #32465d;
  transform: rotate(45deg);
  left: 28px;
  top: 29px;
}
.s-head .e-search.open .e-search__toggle {
  border-color: rgba(37,99,255,.20);
  background: #eef4ff !important;
}
.s-head .e-search.open .e-search__toggle::before,
.s-head .e-search.open .e-search__toggle::after {
  width: 17px;
  height: 2px;
  left: 14px;
  top: 21px;
  border: 0;
  border-radius: 3px;
  background: #2563ff;
}
.s-head .e-search.open .e-search__toggle::before { transform: rotate(45deg); }
.s-head .e-search.open .e-search__toggle::after { transform: rotate(-45deg); }
.s-head .e-search__stripe {
  box-sizing: border-box;
  width: min(720px, calc(100vw - 350px));
  height: 46px;
  top: 0;
  right: 0;
  padding: 0 58px 0 48px;
  border: 1px solid #cbd9e9 !important;
  border-radius: 15px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374899f' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px 50% !important;
  background-size: 20px 20px !important;
  color: #142235 !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 38px rgba(15,32,57,.16);
}
.s-head .e-search__stripe::placeholder { color: #8a9aac; }
.s-head .e-search__stripe:focus {
  border-color: #2563ff !important;
  box-shadow: 0 0 0 3px rgba(37,99,255,.12), 0 16px 38px rgba(15,32,57,.16) !important;
}
body.dark .s-head .e-search__toggle::after { border-color: #d6e3f2; }
body.dark .s-head .e-search__toggle::before { background: #d6e3f2; }
body.dark .s-head .e-search__toggle:hover { border-color: #294663; background: #122238 !important; }
body.dark .s-head .e-search.open .e-search__toggle { border-color: #315a86; background: #142944 !important; }
body.dark .s-head .e-search.open .e-search__toggle::before,
body.dark .s-head .e-search.open .e-search__toggle::after { background: #5aaeff; }
body.dark .s-head .e-search__stripe {
  border-color: #29405a !important;
  background-color: #101d2c !important;
  color: #f1f6fb !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
}
body.dark .s-head .e-search__stripe::placeholder { color: #71879e; }
body.dark .s-head .e-search__stripe:focus {
  border-color: #3378d8 !important;
  box-shadow: 0 0 0 3px rgba(37,99,255,.16), 0 18px 44px rgba(0,0,0,.34) !important;
}

/* v0.8.13 — article tags below the article body */
.ng-article-tags {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 22px 0 30px;
  overflow: hidden;
}

.ng-article-tags .post-tag4 {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
}

.ng-article-tags .post-tag4 a {
  flex: 0 0 auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media screen and (max-width: 575px) {
  .ng-article-tags { margin: 18px 0 24px; }
}


/* v0.8.14 — compact grouped article tags */
.ng-article-tags {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 30px;
  padding: 11px 12px 12px;
  border: 1px solid #dce6f1;
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.ng-article-tags::before {
  content: "Темы материала";
  display: block;
  margin: 0 0 8px 2px;
  color: #71869b;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ng-article-tags .post-tag4 {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  gap: 5px !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
}

.ng-article-tags .post-tag4 a {
  height: 26px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  background: #fff !important;
  font-size: 11px !important;
}

.ng-article-tags .post-tag4 a:hover {
  background: #edf4ff !important;
  border-color: #b8cdeb !important;
  color: #235a9a !important;
}

body.dark .ng-article-tags {
  border-color: #22384f;
  background: #0d1826;
}

body.dark .ng-article-tags::before {
  color: #718aa3;
}

body.dark .ng-article-tags .post-tag4 a {
  border-color: #294058 !important;
  background: #122235 !important;
  color: #b9c9da !important;
}

body.dark .ng-article-tags .post-tag4 a:hover {
  border-color: #3a6088 !important;
  background: #172a40 !important;
  color: #eef5ff !important;
}

@media screen and (max-width: 575px) {
  .ng-article-tags {
    width: 100%;
    margin: 18px 0 24px;
    padding: 10px;
    border-radius: 12px;
  }

  .ng-article-tags::before {
    margin-bottom: 7px;
  }

  .ng-article-tags .post-tag4 {
    gap: 5px !important;
  }
}

/* v0.8.15 — article hero refresh */
.ng-article-hero {
  position: relative;
  min-height: 500px;
  margin: 0 0 56px;
  overflow: hidden;
  border: 1px solid rgba(58, 91, 126, .46);
  border-radius: 18px;
  background: #07111e;
  color: #fff;
  isolation: isolate;
}

.ng-article-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.ng-article-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 13, 23, .92) 0%, rgba(5, 13, 23, .78) 28%, rgba(5, 13, 23, .38) 52%, rgba(5, 13, 23, .10) 72%, rgba(5, 13, 23, .30) 100%),
    linear-gradient(0deg, rgba(4, 12, 21, .88) 0%, rgba(4, 12, 21, .22) 44%, rgba(4, 12, 21, .10) 72%, rgba(4, 12, 21, .36) 100%);
}

.ng-article-hero__crumbs {
  position: absolute;
  top: 22px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #8ca5bd;
  font-size: 12px;
  line-height: 1.3;
}

.ng-article-hero__crumbs a,
.ng-article-hero__crumbs span {
  color: inherit !important;
  text-decoration: none !important;
}

.ng-article-hero__crumbs a:hover {
  color: #dcecff !important;
}

.ng-article-hero__content {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 30px;
}

.ng-article-hero__category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 0 12px;
  border: 1px solid rgba(63, 154, 255, .52);
  border-radius: 999px;
  background: rgba(16, 75, 128, .52);
  color: #9dd0ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.ng-article-hero h1 {
  width: min(760px, 68%);
  margin: 0 0 22px;
  color: #f4f8fd !important;
  font-size: clamp(28px, 2.55vw, 40px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .42);
}

.ng-article-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  min-height: 67px;
}

.ng-article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #b7c7d8;
  font-size: 12px;
  line-height: 1.2;
}

.ng-article-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.ng-article-hero__meta-item + .ng-article-hero__meta-item::before {
  content: "";
  width: 1px;
  height: 17px;
  margin-right: 8px;
  background: rgba(167, 190, 213, .28);
}

.ng-article-hero__meta-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #c8d9e8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.ng-article-hero__meta-item strong {
  color: #eaf3fb;
  font-weight: 800;
}

.ng-article-hero__reactions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 36px;
  margin-left: auto;
}

.ng-article-hero__reaction {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 64px;
  height: 36px;
  padding: 0 14px !important;
  border: 1px solid rgba(123, 158, 191, .38) !important;
  border-radius: 999px !important;
  background: rgba(6, 19, 31, .62) !important;
  box-shadow: none !important;
  color: #dce8f4 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 36px !important;
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ng-article-hero__reaction::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.ng-article-hero__reaction--like::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 10h4v11H2V10Zm6 11V10l4-7c2.1.5 3.1 2.5 2.4 4.5L13.8 9H20a2 2 0 0 1 2 2.3l-1.1 8A2 2 0 0 1 19 21H8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 10h4v11H2V10Zm6 11V10l4-7c2.1.5 3.1 2.5 2.4 4.5L13.8 9H20a2 2 0 0 1 2 2.3l-1.1 8A2 2 0 0 1 19 21H8Z'/%3E%3C/svg%3E");
}

.ng-article-hero__reaction--dislike::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 3h4v11H2V3Zm6 0v11l4 7c2.1-.5 3.1-2.5 2.4-4.5L13.8 15H20a2 2 0 0 0 2-2.3l-1.1-8A2 2 0 0 0 19 3H8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M2 3h4v11H2V3Zm6 0v11l4 7c2.1-.5 3.1-2.5 2.4-4.5L13.8 15H20a2 2 0 0 0 2-2.3l-1.1-8A2 2 0 0 0 19 3H8Z'/%3E%3C/svg%3E");
}

.ng-article-hero__reaction--like {
  border-color: rgba(53, 211, 115, .45) !important;
  color: #7ee6a7 !important;
}

.ng-article-hero__reaction--dislike {
  border-color: rgba(255, 84, 101, .44) !important;
  color: #ff8792 !important;
}

.ng-article-hero__reaction:hover {
  transform: translateY(-1px);
  background: rgba(13, 31, 47, .82) !important;
}

.ng-article-hero__reaction--like:hover {
  border-color: rgba(53, 211, 115, .78) !important;
}

.ng-article-hero__reaction--dislike:hover {
  border-color: rgba(255, 84, 101, .76) !important;
}

.ng-article-hero__loader {
  position: absolute !important;
  left: calc(100% + 8px);
  top: 50%;
  margin: 0 !important;
  transform: translateY(-50%) scale(.56);
  transform-origin: left center;
}

@media (max-width: 991px) {
  .ng-article-hero {
    min-height: 500px;
    margin-bottom: 46px;
  }

  .ng-article-hero h1 {
    width: min(780px, 82%);
    font-size: clamp(27px, 3.8vw, 36px);
  }

  .ng-article-hero__bottom {
    min-height: 62px;
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .ng-article-hero {
    min-height: 520px;
    border-radius: 14px;
  }

  .ng-article-hero__shade {
    background:
      linear-gradient(0deg, rgba(4, 12, 21, .94) 0%, rgba(4, 12, 21, .66) 54%, rgba(4, 12, 21, .26) 100%),
      linear-gradient(90deg, rgba(4, 12, 21, .62) 0%, rgba(4, 12, 21, .12) 100%);
  }

  .ng-article-hero__crumbs {
    top: 16px;
    left: 18px;
    right: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ng-article-hero__content {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .ng-article-hero__category {
    min-height: 27px;
    margin-bottom: 10px;
    padding: 0 10px;
    font-size: 10px;
  }

  .ng-article-hero h1 {
    width: 100%;
    margin-bottom: 16px;
    font-size: clamp(24px, 6.4vw, 32px);
    line-height: 1.08;
  }

  .ng-article-hero__meta {
    gap: 8px 12px;
  }

  .ng-article-hero__meta-item + .ng-article-hero__meta-item::before {
    display: none;
  }

  .ng-article-hero__bottom {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ng-article-hero__reactions {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .ng-article-hero {
    min-height: 500px;
  }

  .ng-article-hero__meta-item {
    font-size: 11px;
  }

  .ng-article-hero__reaction {
    min-width: 58px;
    height: 34px;
    padding: 0 12px !important;
    line-height: 34px !important;
  }
}

/* v0.8.18 — section sidebar: full-width socials + fixed-height latest comments */
.ng-section-sidebar {
  width: 100%;
  margin-left: 0;
}
.ng-section-socials {
  width: 100%;
}
.ng-section-socials .e-social {
  width: 100%;
  box-sizing: border-box;
}
.ng-section-comments {
  display: flex;
  width: 100%;
  height: 520px;
  margin-top: 22px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 32, 57, .05);
}
.ng-section-comments__head {
  display: flex;
  min-height: 82px;
  padding: 16px 17px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #e4ebf3;
  flex: 0 0 auto;
}
.ng-section-comments__head-icon {
  display: inline-flex;
  width: 37px;
  height: 37px;
  align-items: center;
  justify-content: center;
  flex: 0 0 37px;
  border-radius: 11px;
  background: #edf5ff;
  color: #2563ff;
}
.ng-section-comments__head-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-section-comments__head > div {
  min-width: 0;
  flex: 1;
}
.ng-section-comments__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #7c91a7;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.ng-section-comments__head h3 {
  margin: 0;
  color: #13243a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.18;
}
.ng-section-comments__count {
  display: inline-flex;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef3f8;
  color: #7d90a3;
  font-size: 10px;
  font-weight: 900;
}
.ng-section-comments__list {
  min-height: 0;
  padding: 6px 7px 8px 10px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b9c9d9 transparent;
}
.ng-section-comments__list::-webkit-scrollbar { width: 6px; }
.ng-section-comments__list::-webkit-scrollbar-track { background: transparent; }
.ng-section-comments__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b9c9d9;
}
.ng-section-comment {
  padding: 13px 10px 12px;
  border-bottom: 1px solid #e9eef4;
}
.ng-section-comment:last-child { border-bottom: 0; }
.ng-section-comment__top {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 9px;
}
.ng-section-comment__avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid #d9e4ef;
  border-radius: 50%;
  object-fit: cover;
  background: #eef3f8;
}
.ng-section-comment__author {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ng-section-comment__author strong {
  overflow: hidden;
  color: #203248;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-section-comment__author time {
  margin-top: 2px;
  color: #8ca0b3;
  font-size: 9px;
  line-height: 1.2;
}
.ng-section-comment__text {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: #536a81 !important;
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.ng-section-comment__text:hover { color: #245da8 !important; }
.ng-section-comment__material {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #2563ff !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
}
.ng-section-comment__material span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-section-comment__material svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-section-comments__empty {
  padding: 30px 15px;
  color: #8396aa;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
body.dark .ng-section-comments {
  border-color: #26394f;
  background: #101b2a;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
body.dark .ng-section-comments__head { border-bottom-color: #26394f; }
body.dark .ng-section-comments__head-icon { background: #142c4d; color: #5d91ff; }
body.dark .ng-section-comments__eyebrow { color: #7290ae; }
body.dark .ng-section-comments__head h3 { color: #eef5ff; }
body.dark .ng-section-comments__count { background: #1a2b3e; color: #93a9be; }
body.dark .ng-section-comments__list { scrollbar-color: #38516b transparent; }
body.dark .ng-section-comments__list::-webkit-scrollbar-thumb { background: #38516b; }
body.dark .ng-section-comment { border-bottom-color: #203247; }
body.dark .ng-section-comment__avatar { border-color: #2d435a; background: #172637; }
body.dark .ng-section-comment__author strong { color: #e4edf7; }
body.dark .ng-section-comment__author time { color: #718aa3; }
body.dark .ng-section-comment__text { color: #9db0c4 !important; }
body.dark .ng-section-comment__text:hover { color: #c6daf0 !important; }
body.dark .ng-section-comment__material { color: #73a4ff !important; }
body.dark .ng-section-comments__empty { color: #7f96ac; }

@media screen and (max-width: 991px) {
  .ng-section-sidebar { margin-top: 28px; }
  .ng-section-comments { height: 460px; }
}

@media screen and (max-width: 575px) {
  .ng-section-comments {
    height: 430px;
    border-radius: 18px;
  }
}

/* v0.8.19 — section cards: denser titles so longer headlines fit cleanly. */
.ng-section-material-grid .ng-tag-material-card h2 {
  min-height: 66px;
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -.01em;
  -webkit-line-clamp: 3;
}

@media (max-width: 1120px) {
  .ng-section-material-grid .ng-tag-material-card h2 {
    min-height: 62px;
    font-size: 16.5px;
  }
}

@media (max-width: 720px) {
  .ng-section-material-grid .ng-tag-material-card h2 {
    min-height: 0;
    font-size: 18px;
    -webkit-line-clamp: 3;
  }
}

/* v0.8.22 — branded social artwork: tighter stack and Telegram alignment. */
.ng-section-socials--art {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.ng-section-social-art {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: visible;
  text-decoration: none !important;
  transform: translateZ(0);
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
.ng-section-social-art img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ng-section-social-art:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) drop-shadow(0 9px 15px rgba(23, 124, 255, .16));
}
.ng-section-social-art:active {
  transform: translateY(0) scale(.99);
}
.ng-section-social-art:focus-visible {
  outline: 2px solid #2f7cff;
  outline-offset: 4px;
  border-radius: 16px;
}
/* The mascot is part of the YouTube artwork. Pull the following artwork into
   the transparent padding so the three buttons read as one compact group. */
.ng-section-social-art--youtube {
  z-index: 1;
  margin-bottom: 0;
}
.ng-section-social-art--vk {
  margin-top: -28px;
}
.ng-section-social-art--telegram {
  margin-top: -32px;
}
body.dark .ng-section-social-art:hover {
  filter: brightness(1.08) drop-shadow(0 10px 18px rgba(0, 174, 255, .18));
}
@media screen and (max-width: 991px) {
  .ng-section-socials--art {
    max-width: 430px;
    margin-right: auto;
    margin-left: auto;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  .ng-section-social-art { transition: none; }
}

/* NOWGAME 0.8.37 — notifications */
.ng-header-notifications-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 12px;
  margin-right: 10px;
}
.ng-notifications { position: relative; }
.ng-notifications__toggle {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #b7c7d9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .18s ease;
}
.ng-notifications__toggle:hover,
.ng-notifications.is-open .ng-notifications__toggle {
  color: #e7edf7;
  background: #101d2f;
  border-color: #24405f;
}
.ng-notifications__toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-notifications__badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #2563ff;
  border: 2px solid #07111e;
  color: #fff;
  font: 700 9px/13px Arial,sans-serif;
  text-align: center;
}
.ng-notifications__badge.is-hidden { display: none; }
.ng-notifications__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -44px;
  width: 390px;
  max-height: min(610px, calc(100vh - 90px));
  overflow: hidden;
  border: 1px solid #203a56;
  border-radius: 16px;
  background: #0b1727;
  box-shadow: 0 20px 60px rgba(0,0,0,.38);
  z-index: 1200;
}
.ng-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 17px;
  border-bottom: 1px solid #1d334d;
}
.ng-notifications__head > div { display: flex; flex-direction: column; gap: 3px; }
.ng-notifications__head span {
  color: #6f8baa;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .15em;
  font-weight: 800;
}
.ng-notifications__head strong { color: #f0f5fb; font-size: 16px; line-height: 1.15; }
.ng-notifications__head button {
  padding: 0;
  border: 0;
  background: none;
  color: #69a9ff;
  font-size: 11px;
  cursor: pointer;
}
.ng-notifications__head button:disabled { color: #53667d; cursor: default; }
.ng-notifications__list { max-height: 520px; overflow-y: auto; }
.ng-notification-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #172a40;
  color: #d9e4ef;
  transition: background .16s ease;
}
.ng-notification-item:last-child { border-bottom: 0; }
.ng-notification-item:hover { background: #10223a; color: #fff; }
.ng-notification-item.is-unread { background: #0f2139; }
.ng-notification-item.is-unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #36a3ff;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(54,163,255,.9);
}
.ng-notification-item__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #10243c;
  border: 1px solid #29445f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ng-notification-item__icon img { width: 100%; height: 100%; object-fit: contain; }
.ng-notification-item__icon--system svg {
  width: 22px;
  height: 22px;
  stroke: #52aaff;
  stroke-width: 1.8;
  fill: none;
}
.ng-notification-item__copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.ng-notification-item__copy strong {
  color: #f1f6fb;
  font-size: 12px;
  line-height: 1.3;
}
.ng-notification-item__copy > span {
  color: #9fb1c5;
  font-size: 11px;
  line-height: 1.35;
}
.ng-notification-item__copy small { color: #65809c; font-size: 9px; }
.ng-notifications__empty { padding: 34px 18px; text-align: center; color: #71869d; font-size: 12px; }
.ng-notification-toasts {
  position: fixed;
  top: 80px;
  right: 24px;
  width: min(390px, calc(100vw - 32px));
  z-index: 99999;
  pointer-events: none;
}
.ng-notification-toast {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid #2a4868;
  border-radius: 15px;
  background: rgba(9,24,40,.97);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  color: #fff;
  opacity: 0;
  transform: translateY(-10px) translateX(12px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto;
}
.ng-notification-toast.is-visible { opacity: 1; transform: translateY(0) translateX(0); }
.ng-notification-toast .ng-notification-item__icon { flex-basis: 52px; width: 52px; height: 52px; }
.ng-notification-toast__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ng-notification-toast__copy strong { color: #fff; font-size: 13px; line-height: 1.3; }
.ng-notification-toast__copy span { color: #a8bdd2; font-size: 11px; line-height: 1.35; }
.ng-notification-toast--achievement_unlocked { border-color: #2f6cb3; }
.ng-notification-toast--level_up { border-color: #3b78ce; box-shadow: 0 18px 55px rgba(37,99,255,.18),0 18px 50px rgba(0,0,0,.38); }

@media (max-width: 1199px) {
  .ng-header-notifications-wrap { margin-left: 6px; margin-right: 5px; }
}
@media (max-width: 720px) {
  .ng-notifications__panel {
    position: fixed;
    top: 64px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 78px);
  }
  .ng-notifications__list { max-height: calc(100vh - 145px); }
  .ng-notification-toasts { top: 70px; right: 16px; }
}

/* NOWGAME account menu + embedded notifications · 0.8.38 */
.s-head .ng-account-slot {
  flex: 0 0 auto;
  margin-left: 30px;
}
.s-head .ng-account-menu {
  margin-left: 0 !important;
}
.ng-account-menu .b-user__toggle {
  overflow: visible;
}
.ng-account-menu__avatar-badge {
  position: absolute;
  top: 0;
  right: -5px;
  z-index: 3;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #07111e;
  border-radius: 999px;
  background: #2563ff;
  color: #fff;
  font: 800 9px/14px Arial, sans-serif;
  text-align: center;
  box-shadow: 0 0 12px rgba(37, 99, 255, .45);
}
.ng-account-menu .b-user__intel.ng-account-menu__panel {
  right: 0;
  top: calc(100% + 8px);
  min-width: 310px;
  width: 310px;
  padding: 0;
  overflow: visible;
  border: 1px solid #203a56;
  border-radius: 16px;
  background: #0b1727;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .42);
  color: #e7edf7;
}
.ng-account-menu__panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #203a56;
  border-left: 1px solid #203a56;
  background: #0b1727;
  transform: rotate(45deg);
}
.ng-account-menu__identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #1b3048;
}
.ng-account-menu__avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #315272;
  border-radius: 50%;
  background: linear-gradient(145deg, #10233a, #0a1523);
  color: #61b5ff;
  font: 900 18px/1 Arial, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.ng-account-menu__avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.ng-account-menu__identity-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.ng-account-menu__identity-copy strong {
  overflow: hidden;
  color: #f3f7fb;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-account-menu__identity-copy span {
  color: #6985a3;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ng-account-menu__links {
  position: relative;
  z-index: 1;
  padding: 7px;
}
.ng-account-menu__item {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #d9e5f0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.ng-account-menu__item:hover,
.ng-notifications.is-open > .ng-account-menu__item {
  border-color: #213c59;
  background: #10223a;
  color: #fff;
}
.ng-account-menu__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #28445f;
  border-radius: 10px;
  background: #0d1d30;
  color: #63b5ff;
}
.ng-account-menu__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-account-menu__label {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.ng-account-menu__label strong {
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}
.ng-account-menu__label small {
  overflow: hidden;
  color: #7089a3;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-account-menu__arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #58718b;
  font: 400 22px/1 Arial, sans-serif;
}
.ng-account-menu__count {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #2563ff;
  color: #fff;
  font: 800 9px/20px Arial, sans-serif;
  text-align: center;
}
.ng-account-menu__logout {
  margin: 0;
  padding: 0;
}
.ng-account-menu__item--danger {
  font: inherit;
}
.ng-account-menu__item--danger:hover {
  border-color: rgba(255, 91, 109, .22);
  background: rgba(122, 31, 45, .14);
}
.ng-account-menu__item--danger .ng-account-menu__icon {
  border-color: rgba(255, 91, 109, .18);
  background: rgba(122, 31, 45, .10);
  color: #ff7d8d;
}

/* Notifications now live inside the account menu instead of occupying header space. */
.ng-notifications--account {
  position: relative;
  width: 100%;
}
.ng-notifications--account .ng-notifications__toggle--menu {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 54px;
  justify-content: flex-start;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #d9e5f0;
}
.ng-notifications--account .ng-notifications__toggle--menu:hover,
.ng-notifications--account.is-open .ng-notifications__toggle--menu {
  border-color: #213c59;
  background: #10223a;
  color: #fff;
}
.ng-notifications--account .ng-notifications__toggle--menu:disabled {
  opacity: .58;
  cursor: default;
}
.ng-notifications--account .ng-notifications__toggle--menu .ng-account-menu__icon svg {
  width: 18px;
  height: 18px;
}
.ng-notifications--account .ng-notifications__badge {
  position: static;
  top: auto;
  right: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 0;
  font: 800 9px/20px Arial, sans-serif;
}
.ng-notifications--account .ng-notifications__panel {
  top: calc(100% + 8px);
  right: 0;
  width: 390px;
  max-width: calc(100vw - 24px);
}

@media (max-width: 720px) {
  .s-head .ng-account-slot { margin-left: 14px; }
  .ng-account-menu .b-user__intel.ng-account-menu__panel {
    position: fixed;
    top: 62px;
    right: 10px;
    left: 10px;
    width: auto;
    min-width: 0;
  }
  .ng-account-menu__panel::before { display: none; }
  .ng-notifications--account .ng-notifications__panel {
    position: fixed;
    top: 72px;
    right: 10px;
    left: 10px;
    width: auto;
  }
}
.ng-account-menu__avatar-badge.is-hidden { display: none; }

/* 0.8.39: fixed header account spacing. Keep the account slot separated from search. */
@media (min-width: 721px) {
  .s-head .ng-account-slot { margin-left: 30px !important; }
}


/* 0.8.40: guest account dropdown uses the same NOWGAME account menu language. */
.ng-account-menu__panel--guest .ng-account-menu__avatar {
  color: #63b5ff;
  font-size: 20px;
}
.ng-account-menu__panel--guest .ng-account-menu__links {
  padding-bottom: 9px;
}

/* NOWGAME profile cosmetics progression · 0.8.41 */
.ng-cosmetic-name {
  display: inline-block;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
}
.ng-nick-default { color: inherit; }
.ng-nick-blue { color: #56a9ff !important; }
.ng-nick-cyan { color: #54e7ff !important; }
.ng-nick-violet { color: #bd86ff !important; }
.ng-nick-gold { color: #ffd36c !important; }
.ng-nick-aurora {
  color: transparent !important;
  background: linear-gradient(90deg, #53d8ff 0%, #7f9cff 28%, #c98cff 55%, #5fffd1 78%, #53d8ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ngNickAurora 5s linear infinite;
}
.ng-nickfx-glow { text-shadow: 0 0 9px currentColor, 0 0 20px color-mix(in srgb, currentColor 38%, transparent); }
.ng-nickfx-pulse { animation: ngNickPulse 2.3s ease-in-out infinite; }
.ng-nickfx-shine { animation: ngNickShine 3.2s ease-in-out infinite; }
@keyframes ngNickAurora { to { background-position: -220% 0; } }
@keyframes ngNickPulse {
  0%, 100% { filter: brightness(1); text-shadow: 0 0 5px currentColor; }
  50% { filter: brightness(1.28); text-shadow: 0 0 12px currentColor, 0 0 24px currentColor; }
}
@keyframes ngNickShine {
  0%, 72%, 100% { filter: brightness(1); text-shadow: 0 0 0 transparent; }
  82% { filter: brightness(1.55); text-shadow: 0 0 10px currentColor; }
  90% { filter: brightness(1.08); text-shadow: 0 0 3px currentColor; }
}

.ng-cosmetic-avatar {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
}
.ng-cosmetic-avatar > img { position: relative; z-index: 1; }
.ng-frame-blue {
  border-color: #3f9dff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 255, .22), 0 0 14px rgba(55, 148, 255, .42) !important;
}
.ng-frame-energy {
  border-color: #55e3ff !important;
  box-shadow: 0 0 0 2px rgba(75, 221, 255, .26), 0 0 8px rgba(75, 221, 255, .75), 0 0 22px rgba(37, 99, 255, .5) !important;
}
.ng-frame-prestige {
  border-color: #d8efff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 255, .55), 0 0 0 4px rgba(102, 226, 255, .2), 0 0 18px rgba(65, 178, 255, .82), 0 0 34px rgba(102, 102, 255, .38) !important;
}
.ng-avfx-glow { animation: ngAvatarGlow 2.6s ease-in-out infinite; }
.ng-avfx-orbit { overflow: visible !important; }
.ng-avfx-orbit::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
  inset: -6px;
  border: 1px solid rgba(85, 226, 255, .78);
  border-right-color: rgba(122, 112, 255, .2);
  border-bottom-color: rgba(122, 112, 255, .42);
  border-radius: inherit;
  box-shadow: 0 0 8px rgba(70, 206, 255, .42);
  animation: ngAvatarOrbit 3.4s linear infinite;
}
.b-user__toggle.has-avatar.ng-avfx-orbit::after { display: block !important; }
@keyframes ngAvatarGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(73, 184, 255, .28)); }
  50% { filter: drop-shadow(0 0 8px rgba(73, 214, 255, .8)); }
}
@keyframes ngAvatarOrbit { to { transform: rotate(360deg); } }

.ng-profile-name-badge {
  display: inline-block;
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-left: 5px;
  vertical-align: -2px;
}
.ng-profile-name-badge::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: #62b7ff;
  box-shadow: 0 0 8px rgba(79, 181, 255, .65);
}
.ng-badge-star::before { clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%); }
.ng-badge-crystal::before {
  inset: 0 2px;
  background: linear-gradient(135deg, #dffbff, #46c7ff 45%, #6f74ff);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
  box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(78, 194, 255, .9));
}

/* Consistent avatar cosmetics across header, articles, comments and sidebars. */
.ng-comment-avatar-wrap,
.ng-article-hero__author-avatar-wrap,
.ng-section-comment__avatar-wrap,
.ng-profile-cosmetics-preview__avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}
.ng-comment-avatar-wrap { width: 54px; height: 54px; }
.ng-comment-avatar-wrap .b-comment__ava { width: 100%; height: 100%; margin: 0; border-radius: inherit; object-fit: cover; }
.ng-article-hero__author-avatar-wrap { width: 28px; height: 28px; border-radius: 50%; }
.ng-article-hero__author-avatar-wrap .ng-article-hero__author-avatar { width: 100%; height: 100%; flex: none; }
.ng-article-hero__author-avatar-wrap > svg { width: 18px; height: 18px; }
.ng-section-comment__avatar-wrap { width: 34px; height: 34px; border-radius: 50%; text-decoration: none; }
.ng-section-comment__avatar-wrap .ng-section-comment__avatar { width: 100%; height: 100%; }
.ng-profile-avatar.ng-cosmetic-avatar { border-radius: 26px; }
.ng-account-menu__avatar.ng-cosmetic-avatar { border-radius: 50% !important; }
.b-user__toggle.ng-cosmetic-avatar { border-radius: 50%; }

.ng-profile-edit-cosmetics {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(113, 151, 190, .2);
}
.ng-profile-cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.ng-profile-cosmetic-field select option:disabled { color: #73879d; }
.ng-profile-cosmetics-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #203a56;
  border-radius: 14px;
  background: #0b1727;
}
.ng-profile-cosmetics-preview__label {
  color: #7297bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ng-profile-cosmetics-preview__content { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ng-profile-cosmetics-preview__avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #294965;
  background: #13243a;
  color: #82c8ff;
  font-size: 15px;
  font-weight: 800;
}
.ng-profile-cosmetics-preview__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

@media (max-width: 820px) {
  .ng-profile-cosmetics-grid { grid-template-columns: 1fr; }
  .ng-profile-cosmetics-preview { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1040px) {
  .ng-home-feature-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 400px; }
  .ng-home-feature-main { min-height: 400px; }
}
@media (max-width: 760px) {
  .ng-home-model { gap: 34px; margin-top: 34px; }
  .ng-home-feature-layout { grid-template-columns: 1fr; min-height: 0; }
  .ng-home-feature-main { min-height: 390px; }
  .ng-home-feature-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-home-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ng-home-feature-main { min-height: 360px; }
  .ng-home-feature-main__body { padding: 22px 20px; }
  .ng-home-feature-main__body h3 { font-size: 25px; }
  .ng-home-feature-side, .ng-home-content-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-nick-aurora,
  .ng-nickfx-pulse,
  .ng-nickfx-shine,
  .ng-avfx-glow,
  .ng-avfx-orbit::after { animation: none !important; }
}

/* NOWGAME avatar crop apply + live cosmetics preview · 0.8.42 */
.ng-profile-cropper__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.ng-profile-cropper__actions .ng-profile-secondary-button {
  min-width: 116px;
}
.ng-profile-crop-reopen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 0;
  padding: 7px 11px;
  border: 1px solid #244563;
  border-radius: 9px;
  background: #0e1d30;
  color: #8ebbe5;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ng-profile-crop-reopen:hover {
  border-color: #3477b8;
  color: #d5ecff;
}
.ng-profile-crop-reopen[hidden] { display: none !important; }

/* NOWGAME 0.8.43: read-only profile URL generated from nickname */
.ng-profile-slug-input > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: inherit;
    font-weight: 700;
    color: inherit;
}


/* NOWGAME 0.9.26: full-width profile description with content-driven height. */
@media (min-width: 1101px) {
  .ng-profile-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 500px;
    box-sizing: border-box;
    padding: 44px 34px 30px;
  }

  .ng-profile-identity {
    width: 100%;
    max-width: none;
    align-items: flex-start;
    gap: 22px;
  }

  .ng-profile-identity__body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ng-profile-identity h1 {
    font-size: 42px;
  }

  .ng-profile-title-row {
    align-items: flex-start;
  }

  .ng-profile-title-row h1 {
    margin-right: 0;
  }

  .ng-profile-edit-button {
    margin-top: 3px;
  }

  .ng-profile-bio {
    max-width: none;
  }

  .ng-profile-progress-card {
    margin-top: auto;
    width: 560px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ng-profile-hero__glow {
    right: -90px;
    top: -150px;
  }
}

/* NOWGAME 0.8.49 — notification center */
.ng-notifications__all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #1d334c;
  color: #77baff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.ng-notifications__all-link:hover { background: #10223a; color: #fff; }
.ng-notifications__all-link span { font-size: 15px; }

.ng-notification-center-page .s-content { padding-top: 0; }
.ng-notification-center {
  margin: 0 auto 32px;
  padding: 22px;
  border: 1px solid #203951;
  border-radius: 18px;
  background: #0b1727;
  color: #e7edf7;
}
.ng-notification-center__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1b3048;
}
.ng-notification-center__eyebrow,
.ng-notification-settings__head span {
  display: block;
  margin-bottom: 7px;
  color: #6caef2;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .14em;
}
.ng-notification-center__top h1,
.ng-notification-settings__head h2 {
  margin: 0;
  color: #f4f7fb;
  font-weight: 900;
}
.ng-notification-center__top h1 { font-size: 30px; }
.ng-notification-center__top p {
  margin: 7px 0 0;
  color: #88a1bb;
  font-size: 12px;
}
.ng-notification-center__read-all {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #2b5680;
  border-radius: 10px;
  background: #102642;
  color: #86c4ff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ng-notification-center__read-all:hover { background: #153252; color: #fff; }
.ng-notification-center__read-all:disabled { opacity: .45; cursor: default; }
.ng-notification-center__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
}
.ng-notification-center__tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.ng-notification-center__tabs a,
.ng-notification-center__unread-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #203b59;
  border-radius: 10px;
  background: #0d1d30;
  color: #829bb4;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.ng-notification-center__tabs a:hover,
.ng-notification-center__tabs a.is-active,
.ng-notification-center__unread-toggle:hover,
.ng-notification-center__unread-toggle.is-active {
  border-color: #2a67a3;
  background: #102947;
  color: #fff;
}
.ng-notification-center__unread-toggle span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #536e89;
}
.ng-notification-center__unread-toggle.is-active span { background: #45aaff; box-shadow: 0 0 10px rgba(69,170,255,.7); }
.ng-notification-center__list {
  overflow: hidden;
  border: 1px solid #1f3852;
  border-radius: 14px;
  background: #091524;
}
.ng-notification-center-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 13px 18px;
  border-bottom: 1px solid #182d43;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}
.ng-notification-center-item:last-child { border-bottom: 0; }
.ng-notification-center-item:hover { background: #0f2137; color: inherit; }
.ng-notification-center-item.is-unread { background: #0f223a; }
.ng-notification-center-item__icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #294763;
  border-radius: 12px;
  background: #0d2036;
}
.ng-notification-center-item__icon img { width: 100%; height: 100%; object-fit: contain; }
.ng-notification-center-item__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #5aaeff;
  stroke-width: 1.8;
}
.ng-notification-center-item__copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.ng-notification-center-item__copy strong { color: #f3f7fb; font-size: 13px; line-height: 1.25; }
.ng-notification-center-item__copy > span { color: #9eb2c6; font-size: 11px; line-height: 1.4; }
.ng-notification-center-item__copy small { color: #607b96; font-size: 9px; }
.ng-notification-center-item__dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ea8ff;
  box-shadow: 0 0 12px rgba(62,168,255,.8);
}
.ng-notification-center__empty {
  padding: 38px 20px;
  color: #718aa3;
  font-size: 12px;
  text-align: center;
}
.ng-notification-center__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 2px;
  color: #6e89a5;
  font-size: 10px;
}
.ng-notification-center__pagination a { color: #72b8ff; text-decoration: none; font-weight: 800; }
.ng-notification-center__pagination a:hover { color: #fff; }

.ng-notification-settings {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #203951;
  border-radius: 14px;
  background: #0a1625;
}
.ng-notification-settings__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.ng-notification-settings__head h2 { font-size: 18px; }
.ng-notification-settings__status { min-height: 16px; color: #6f8ba7; font-size: 10px; font-weight: 700; }
.ng-notification-settings__status.is-saved { color: #68d89b; }
.ng-notification-settings__status.is-error { color: #ff8090; }
.ng-notification-settings__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ng-notification-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 12px 13px;
  border: 1px solid #1d354e;
  border-radius: 12px;
  background: #0d1b2c;
  cursor: pointer;
}
.ng-notification-setting > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ng-notification-setting strong { color: #eaf1f8; font-size: 11px; }
.ng-notification-setting small { color: #7089a2; font-size: 9px; line-height: 1.35; }
.ng-notification-setting input { position: absolute; opacity: 0; pointer-events: none; }
.ng-notification-setting i {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 22px;
  border: 1px solid #29445f;
  border-radius: 999px;
  background: #0a1421;
  transition: background .16s ease, border-color .16s ease;
}
.ng-notification-setting i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6f8498;
  transition: transform .16s ease, background .16s ease;
}
.ng-notification-setting input:checked + i { border-color: #2d79c4; background: #123b67; }
.ng-notification-setting input:checked + i::after { transform: translateX(16px); background: #54b6ff; box-shadow: 0 0 9px rgba(84,182,255,.55); }
.ng-notification-settings__divider { height: 1px; margin: 16px 0; background: #1a3047; }

@media (max-width: 900px) {
  .ng-notification-settings__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ng-notification-center { padding: 14px; border-radius: 14px; }
  .ng-notification-center__top, .ng-notification-center__toolbar { flex-direction: column; align-items: stretch; }
  .ng-notification-center__read-all { align-self: flex-start; }
  .ng-notification-center__tabs { width: 100%; }
  .ng-notification-center__tabs a { flex: 1 1 auto; justify-content: center; }
  .ng-notification-center-item { padding: 12px; }
  .ng-notification-center-item__icon { flex-basis: 44px; width: 44px; height: 44px; }
  .ng-notification-settings { padding: 14px; }
}

/* NOWGAME 0.8.50 — notification modal */
html.ng-notifications-modal-open,
html.ng-notifications-modal-open body {
  overflow: hidden;
}
.ng-notification-modal[hidden] { display: none !important; }
.ng-notification-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 28px;
}
.ng-notification-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 8, 17, .78);
  backdrop-filter: blur(7px);
  cursor: default;
}
.ng-notification-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 56px));
  max-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid #27435f;
  border-radius: 18px;
  background: #0a1625;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(37, 99, 255, .06) inset;
  color: #e7edf7;
}
.ng-notification-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #1c334b;
  background: linear-gradient(180deg, #0d1d30 0%, #0a1727 100%);
}
.ng-notification-modal__header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ng-notification-modal__header span {
  color: #659fd8;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .14em;
}
.ng-notification-modal__header strong {
  color: #f4f7fb;
  font-size: 22px;
  line-height: 1.1;
}
.ng-notification-modal__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ng-notification-modal__read-all,
.ng-notification-modal__close {
  border: 1px solid #274968;
  background: #102238;
  color: #86bff7;
  cursor: pointer;
}
.ng-notification-modal__read-all {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}
.ng-notification-modal__read-all:hover,
.ng-notification-modal__close:hover { background: #15304e; color: #fff; }
.ng-notification-modal__read-all:disabled { opacity: .42; cursor: default; }
.ng-notification-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font: 400 24px/28px Arial, sans-serif;
}
.ng-notification-modal__nav {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
  background: #0a1625;
}
.ng-notification-modal__nav button,
.ng-notification-modal__categories button {
  border: 1px solid #203b57;
  border-radius: 9px;
  background: #0c1b2d;
  color: #7892ac;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ng-notification-modal__nav button {
  min-height: 34px;
  padding: 0 14px;
}
.ng-notification-modal__nav button:hover,
.ng-notification-modal__nav button.is-active,
.ng-notification-modal__categories button:hover,
.ng-notification-modal__categories button.is-active {
  border-color: #2b6da9;
  background: #11304f;
  color: #fff;
}
.ng-notification-modal__view {
  display: none;
  min-height: 430px;
}
.ng-notification-modal__view.is-active { display: block; }
.ng-notification-modal__filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 12px;
}
.ng-notification-modal__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ng-notification-modal__categories button {
  min-height: 32px;
  padding: 0 11px;
}
.ng-notification-modal__unread {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #839ab2;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ng-notification-modal__unread input { position: absolute; opacity: 0; pointer-events: none; }
.ng-notification-modal__unread span {
  width: 9px;
  height: 9px;
  border: 1px solid #34516d;
  border-radius: 50%;
  background: #0b1725;
}
.ng-notification-modal__unread input:checked + span {
  border-color: #4aaaff;
  background: #4aaaff;
  box-shadow: 0 0 9px rgba(74, 170, 255, .6);
}
.ng-notification-modal__list {
  max-height: min(530px, calc(100vh - 250px));
  overflow-y: auto;
  margin: 0 20px 20px;
  border: 1px solid #1e374f;
  border-radius: 13px;
  background: #081421;
}
.ng-notification-modal__list .ng-notification-item {
  min-height: 76px;
  padding: 12px 14px;
}
.ng-notification-modal__list .ng-notification-item[hidden] { display: none !important; }
.ng-notification-item__dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}
.ng-notification-item.is-unread .ng-notification-item__dot {
  background: #3ca8ff;
  box-shadow: 0 0 10px rgba(60, 168, 255, .8);
}
.ng-notification-modal__empty-filter {
  margin: 0 20px 20px;
  padding: 36px 20px;
  border: 1px dashed #1f3851;
  border-radius: 12px;
  color: #7189a1;
  font-size: 11px;
  text-align: center;
}
.ng-notification-settings--modal {
  margin: 14px 20px 20px;
  max-height: min(570px, calc(100vh - 210px));
  overflow-y: auto;
}
.ng-notification-settings--modal .ng-notification-settings__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .ng-notification-modal {
    padding: 0;
    place-items: stretch;
  }
  .ng-notification-modal__dialog {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }
  .ng-notification-modal__header { padding: 14px; }
  .ng-notification-modal__header strong { font-size: 19px; }
  .ng-notification-modal__read-all { display: none; }
  .ng-notification-modal__nav { padding: 10px 14px 0; }
  .ng-notification-modal__filters {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px 10px;
  }
  .ng-notification-modal__categories { width: 100%; }
  .ng-notification-modal__categories button { flex: 1 1 auto; }
  .ng-notification-modal__unread { align-self: flex-start; }
  .ng-notification-modal__list {
    max-height: calc(100vh - 205px);
    margin: 0 14px 14px;
  }
  .ng-notification-settings--modal {
    margin: 12px 14px 14px;
    max-height: calc(100vh - 130px);
  }
  .ng-notification-settings--modal .ng-notification-settings__grid { grid-template-columns: 1fr; }
}

/* NOWGAME 0.9.18.5 — private messages, consolidated responsive layout */
.ng-account-menu__count.is-hidden { display: none; }
.ng-profile-message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  margin-left: 10px;
  border: 1px solid rgba(56, 139, 253, .45);
  border-radius: 10px;
  background: rgba(37, 99, 255, .14);
  color: #dbeafe;
  font: 700 11px/1 Arial, sans-serif;
  cursor: pointer;
  transition: .18s ease;
}
.ng-profile-message-button:hover { background: rgba(37, 99, 255, .28); border-color: rgba(76, 154, 255, .8); color: #fff; }

html.ng-message-modal-open,
html.ng-message-modal-open body { overflow: hidden; }
.ng-message-modal[hidden] { display: none !important; }
.ng-message-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.ng-message-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 7, 16, .78);
  backdrop-filter: blur(5px);
  cursor: default;
}
.ng-message-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr);
  width: min(1000px, calc(100vw - 56px));
  height: min(720px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid #213b59;
  border-radius: 18px;
  background: #0b1727;
  box-shadow: 0 28px 80px rgba(0,0,0,.5);
  color: #e7edf7;
}
.ng-message-modal__header {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  height: 76px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e344d;
  background: linear-gradient(180deg,#101f32,#0c1929);
}
.ng-message-modal__header > div { display:flex; flex-direction:column; gap:5px; min-width:0; }
.ng-message-modal__header span { color:#72a9db; font:800 9px/1 Arial,sans-serif; letter-spacing:.15em; }
.ng-message-modal__header strong { color:#fff; font:800 24px/1.05 Arial,sans-serif; }
.ng-message-modal__close {
  flex: 0 0 36px;
  width:36px;
  height:36px;
  border:1px solid #294764;
  border-radius:10px;
  background:#0c1b2d;
  color:#9eb9d2;
  font-size:22px;
  cursor:pointer;
}
.ng-message-modal__close:hover { color:#fff; background:#15304e; }

.ng-message-modal__body {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.ng-message-threads {
  min-width:0;
  min-height:0;
  border-right:1px solid #1e344d;
  background:#0a1524;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.ng-message-threads__head {
  flex:0 0 auto;
  padding:15px 16px;
  border-bottom:1px solid #182c42;
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:#e7edf7;
}
.ng-message-threads__head strong { font:800 13px/1 Arial,sans-serif; }
.ng-message-threads__head span { color:#58aefc; font:700 10px/1 Arial,sans-serif; }
.ng-message-threads__list { min-height:0; overflow:auto; flex:1 1 auto; padding:8px; }
.ng-message-threads__empty { padding:22px 12px; color:#7290ad; font-size:12px; text-align:center; }
.ng-message-thread {
  width:100%;
  border:0;
  border-radius:12px;
  background:transparent;
  color:inherit;
  padding:10px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  text-align:left;
  cursor:pointer;
}
.ng-message-thread:hover, .ng-message-thread.is-active { background:#10243a; }
.ng-message-thread__avatar, .ng-message-chat__avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:50%;
  background:#152942;
  border:1px solid #31516f;
  color:#8bc8ff;
  font:800 13px/1 Arial,sans-serif;
}
.ng-message-thread__avatar { width:42px; height:42px; }
.ng-message-thread__avatar img, .ng-message-chat__avatar img { width:100%; height:100%; border-radius:inherit; object-fit:cover; }
.ng-message-thread__copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
.ng-message-thread__copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font:800 12px/1.1 Arial,sans-serif; }
.ng-message-thread__copy span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#87a0b9; font-size:11px; }
.ng-message-thread__copy small { color:#536f8b; font-size:9px; }
.ng-message-thread > i {
  min-width:22px;
  height:22px;
  padding:0 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  background:#2563ff;
  color:#fff;
  font:800 9px/1 Arial,sans-serif;
  font-style:normal;
}

.ng-message-chat {
  min-width:0;
  min-height:0;
  overflow:hidden;
  position:relative;
  background:radial-gradient(circle at 70% 0,rgba(37,99,255,.08),transparent 40%),#0b1727;
}
.ng-message-chat__empty { height:100%; display:flex; align-items:center; justify-content:center; padding:30px; color:#718da9; text-align:center; font-size:13px; }
.ng-message-chat__active { height:100%; min-width:0; min-height:0; display:grid; grid-template-rows:68px minmax(0,1fr) auto; }
.ng-message-chat__active[hidden] { display:none !important; }
.ng-message-chat__user {
  min-width:0;
  border-bottom:1px solid #1e344d;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.ng-message-chat__user > [data-ng-message-chat-user] { min-width:0; overflow:hidden; }
.ng-message-chat__user a { display:inline-flex; align-items:center; gap:10px; min-width:0; color:inherit; text-decoration:none; }
.ng-message-chat__avatar { width:44px; height:44px; flex:0 0 44px; }
.ng-message-chat__user a > span:last-child { min-width:0; display:flex; flex-direction:column; gap:4px; }
.ng-message-chat__user strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font:800 13px/1 Arial,sans-serif; }
.ng-message-chat__user small { color:#6f9bc3; font-size:10px; }
.ng-message-chat__actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.ng-message-chat__actions button {
  appearance:none;
  border:1px solid #29445f;
  background:#0f2033;
  color:#b9cee2;
  border-radius:8px;
  min-height:32px;
  padding:0 11px;
  font:700 11px/1 Arial,sans-serif;
  cursor:pointer;
}
.ng-message-chat__actions button:hover { border-color:#3f6f9d; color:#fff; }
.ng-message-chat__actions button.is-active { border-color:#d29a35; color:#ffd37d; background:#231c12; }
.ng-message-chat__actions button.is-danger { border-color:#5a2b38; color:#ff9cac; background:#21131a; }
.ng-message-chat__actions button:disabled { opacity:.5; cursor:default; }
.ng-message-chat__back {
  display:none;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #29445f;
  border-radius:10px;
  background:#0f2033;
  color:#c8d9e9;
  font:400 27px/30px Arial,sans-serif;
  cursor:pointer;
}
.ng-message-chat__history { min-width:0; min-height:0; overflow:auto; padding:18px; display:flex; flex-direction:column; gap:9px; }
.ng-message-bubble-row { display:flex; }
.ng-message-bubble-row.is-mine { justify-content:flex-end; }
.ng-message-bubble { max-width:min(72%,620px); padding:10px 12px; border:1px solid #24415f; border-radius:13px 13px 13px 4px; background:#102237; color:#e7edf7; white-space:pre-wrap; word-break:break-word; font-size:13px; line-height:1.4; }
.ng-message-bubble-row.is-mine .ng-message-bubble { border-color:#285ca9; border-radius:13px 13px 4px 13px; background:#153661; }
.ng-message-bubble small { display:block; margin-top:6px; color:#7392b0; font-size:9px; text-align:right; }
.ng-message-compose { padding:12px 14px 10px; border-top:1px solid #1e344d; background:#0a1524; }
.ng-message-compose textarea { box-sizing:border-box; width:100%; min-height:70px; max-height:140px; resize:vertical; padding:11px 12px; border:1px solid #294663; border-radius:10px; background:#0c1b2c; color:#e7edf7; font:400 13px/1.4 Arial,sans-serif; outline:none; }
.ng-message-compose textarea:focus { border-color:#347fd1; box-shadow:0 0 0 2px rgba(37,99,255,.12); }
.ng-message-compose textarea:disabled { opacity:.7; cursor:not-allowed; }
.ng-message-compose > div { margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ng-message-compose small { color:#5f7e9b; font-size:9px; }
.ng-message-compose button { min-height:34px; padding:0 18px; border:0; border-radius:9px; background:#2563ff; color:#fff; font:800 11px/1 Arial,sans-serif; cursor:pointer; }
.ng-message-compose button:hover { background:#3974ff; }
.ng-message-compose__status { min-height:14px; margin:5px 0 0; color:#ff9f9f; font-size:10px; }

@media (max-width: 820px) {
  .ng-message-modal { padding:0; align-items:stretch; justify-content:stretch; }
  .ng-message-modal__dialog {
    width:100%;
    max-width:none;
    height:100vh;
    height:100dvh;
    max-height:none;
    border:0;
    border-radius:0;
    grid-template-rows:64px minmax(0,1fr);
  }
  .ng-message-modal__header { height:64px; min-height:64px; padding:10px 12px; }
  .ng-message-modal__header strong { font-size:21px; }
  .ng-message-modal__header span { font-size:8px; }

  .ng-message-modal__body {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr);
  }
  .ng-message-modal__body > .ng-message-threads,
  .ng-message-modal__body > .ng-message-chat {
    grid-column:1;
    grid-row:1;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    border-right:0;
  }
  .ng-message-modal__body:not(.is-chat-open) > .ng-message-threads { display:flex; }
  .ng-message-modal__body:not(.is-chat-open) > .ng-message-chat { display:none; }
  .ng-message-modal__body.is-chat-open > .ng-message-threads { display:none; }
  .ng-message-modal__body.is-chat-open > .ng-message-chat { display:block; }

  .ng-message-threads__head { padding:14px 14px 12px; }
  .ng-message-threads__head strong { font-size:14px; }
  .ng-message-threads__list { padding:8px; }
  .ng-message-thread { grid-template-columns:44px minmax(0,1fr) auto; gap:10px; padding:10px; }
  .ng-message-thread__avatar { width:44px; height:44px; }

  .ng-message-chat__active { grid-template-rows:auto minmax(0,1fr) auto; }
  .ng-message-chat__user {
    display:grid;
    grid-template-columns:36px minmax(0,1fr);
    grid-template-areas:"back user" "actions actions";
    align-items:center;
    gap:9px 10px;
    padding:9px 12px 10px;
  }
  .ng-message-chat__back { display:block; grid-area:back; }
  .ng-message-chat__user > [data-ng-message-chat-user] { grid-area:user; }
  .ng-message-chat__user a { width:100%; max-width:100%; }
  .ng-message-chat__user a > span:last-child { flex:1 1 auto; overflow:hidden; }
  .ng-message-chat__avatar { width:38px; height:38px; flex-basis:38px; }
  .ng-message-chat__actions {
    grid-area:actions;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
  }
  .ng-message-chat__actions button { min-width:0; min-height:32px; padding:0 8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
  .ng-message-chat__history { padding:12px; overscroll-behavior:contain; }
  .ng-message-bubble { max-width:88%; }
  .ng-message-compose { padding:10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .ng-message-compose textarea { min-height:56px; max-height:100px; resize:none; }
  .ng-message-compose > div { margin-top:7px; }
  .ng-message-compose button { min-height:36px; padding:0 16px; }
  .ng-profile-message-button { margin-left:0; margin-top:8px; }
}

/* NOWGAME 0.8.60 — bookmarks, reports and community moderation */
.ng-article-bookmark{height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid rgba(148,163,184,.32);border-radius:12px;background:rgba(9,18,32,.72);color:#dbe7f5;font:700 12px/1 Arial,sans-serif;cursor:pointer;transition:.16s ease;backdrop-filter:blur(8px)}
.ng-article-bookmark svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.ng-article-bookmark:hover{border-color:#2563ff;color:#fff;background:rgba(37,99,255,.2)}
.ng-article-bookmark.is-saved{border-color:rgba(37,99,255,.75);background:#2563ff;color:#fff}.ng-article-bookmark.is-saved svg{fill:currentColor}.ng-article-bookmark:disabled{opacity:.55;cursor:wait}
.ng-profile-moderation-button{border:1px solid rgba(245,158,11,.55);border-radius:10px;background:rgba(245,158,11,.1);color:#fbbf24;padding:8px 12px;font:700 12px/1 Arial,sans-serif;cursor:pointer}.ng-profile-moderation-button:hover{background:rgba(245,158,11,.18)}
.nowgame-comment-actions__separator{height:1px;margin:5px 6px;background:#d9e2ee}.nowgame-comment-actions__item--moderation{color:#b45309!important}body.dark .nowgame-comment-actions__separator{background:#263d59}body.dark .nowgame-comment-actions__item--moderation{color:#fbbf24!important}
body.ng-community-modal-open{overflow:hidden}.ng-community-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:20px}.ng-community-modal[hidden]{display:none}.ng-community-modal__backdrop{position:absolute;inset:0;background:rgba(2,8,18,.76);backdrop-filter:blur(6px)}
.ng-community-modal__dialog{position:relative;z-index:1;width:min(680px,100%);max-height:min(760px,90vh);overflow:auto;border:1px solid #263d59;border-radius:18px;background:#0c1828;color:#e7edf7;box-shadow:0 28px 90px rgba(0,0,0,.5);padding:24px}.ng-community-modal__close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:1px solid #29415e;border-radius:10px;background:#0b1726;color:#8eabc9;font-size:22px;cursor:pointer}.ng-community-modal__close:hover{color:#fff;border-color:#2563ff}.ng-community-modal__eyebrow{font:800 10px/1.2 Arial,sans-serif;letter-spacing:.16em;color:#6ea8ff;margin-bottom:8px}.ng-community-modal h2{margin:0 42px 18px 0;color:#fff;font:800 24px/1.15 Arial,sans-serif}.ng-community-modal__hint{margin:0 0 18px;color:#91a8c2;font:400 13px/1.55 Arial,sans-serif}
.ng-community-field{display:grid;gap:8px}.ng-community-field>span,.ng-community-moderation-grid h3{font:800 12px/1.2 Arial,sans-serif;color:#dce9f9}.ng-community-field textarea,.ng-community-moderation-grid select{width:100%;box-sizing:border-box;border:1px solid #29415e;border-radius:11px;background:#0a1524;color:#eaf2fc;padding:12px;font:400 14px/1.45 Arial,sans-serif;outline:none}.ng-community-field textarea:focus,.ng-community-moderation-grid select:focus{border-color:#2563ff;box-shadow:0 0 0 2px rgba(37,99,255,.16)}
.ng-community-modal__actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.ng-community-button{border:1px solid #2563ff;border-radius:10px;background:#2563ff;color:#fff;padding:10px 14px;font:800 12px/1 Arial,sans-serif;cursor:pointer}.ng-community-button:disabled{opacity:.45;cursor:not-allowed}.ng-community-button--ghost{background:transparent;border-color:#334b68;color:#b9cbe0}.ng-community-button--danger{background:#8d2630;border-color:#b93a47}.ng-community-moderation-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ng-community-moderation-grid section{border:1px solid #243a55;border-radius:14px;padding:16px;background:rgba(6,15,27,.45)}.ng-community-moderation-grid h3{margin:0 0 7px;font-size:15px}.ng-community-moderation-grid p{margin:0 0 12px;color:#8ca4bf;font:400 12px/1.35 Arial,sans-serif}
.ng-profile-bookmarks-panel .ng-profile-posts__grid{margin-top:4px}
@media(max-width:700px){.ng-community-modal{padding:10px}.ng-community-modal__dialog{padding:20px 15px}.ng-community-moderation-grid{grid-template-columns:1fr}.ng-article-bookmark span{display:none}.ng-article-bookmark{width:38px;padding:0;justify-content:center}}

/* v0.9.07 — use the supplied NowGame wordmark in the public header. */
.ng-header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none !important;
}

.ng-header-logo img {
  display: block;
  width: auto;
  height: 32px;
  max-width: 174px;
  object-fit: contain;
}

#mobile-menu .ng-header-logo--mobile {
  min-height: 62px;
  padding: 0 18px;
}

#mobile-menu .ng-header-logo--mobile img {
  height: 30px;
  max-width: 162px;
}

@media screen and (max-width: 1199px) {
  .s-head .ng-header-logo img {
    height: 30px;
    max-width: 162px;
  }
}

@media screen and (max-width: 575px) {
  .s-head .ng-header-logo img {
    height: 27px;
    max-width: 146px;
  }
}

/* Article interaction polish: login callout + like/dislike controls (0.9.09). */
.wrap .shape__aesen {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px !important;
  padding: 17px 20px !important;
  border: 1px solid #d7e3f2;
  border-left: 4px solid var(--ng-blue);
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faff 0%, #f1f6fc 100%);
  color: var(--ng-slate);
  text-align: left;
  box-shadow: 0 10px 26px rgba(15, 32, 57, .06);
}
.wrap .shape__aesen::before {
  content: "";
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(37, 99, 255, .14), rgba(37, 99, 255, .06));
  border: 1px solid rgba(37, 99, 255, .22);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.4);
}
.wrap .shape__aesen::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 28px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ng-blue);
  border-radius: 50%;
  box-shadow: 0 8px 0 -1px var(--ng-blue);
  pointer-events: none;
}
.wrap .shape__aesen p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
}
.wrap .shape__aesen .typo-otest {
  color: var(--ng-blue) !important;
  font-weight: 800;
  text-decoration: none;
}
.wrap .shape__aesen .typo-otest:hover {
  color: #174fd4 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Article rating buttons. */
.wrap .btn.btn-clasp.btn--ico-good,
.wrap .btn.btn-clasp.btn--ico-bad {
  margin-top: 18px;
  min-width: 72px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border-width: 1px;
  border-style: solid;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.wrap .btn.btn-clasp.btn--ico-good {
  color: #12833d;
  border-color: rgba(18, 178, 74, .28);
  background: rgba(18, 178, 74, .08);
}
.wrap .btn.btn-clasp.btn--ico-bad {
  color: #cf3341;
  border-color: rgba(242, 63, 74, .28);
  background: rgba(242, 63, 74, .07);
}
.wrap .btn.btn-clasp.btn--ico-good:hover,
.wrap .btn.btn-clasp.btn--ico-bad:hover {
  transform: translateY(-1px);
  color: inherit;
}
.wrap .btn.btn-clasp.btn--ico-good:hover {
  border-color: rgba(18, 178, 74, .55);
  background: rgba(18, 178, 74, .14);
  box-shadow: 0 8px 20px rgba(18, 178, 74, .10);
}
.wrap .btn.btn-clasp.btn--ico-bad:hover {
  border-color: rgba(242, 63, 74, .55);
  background: rgba(242, 63, 74, .13);
  box-shadow: 0 8px 20px rgba(242, 63, 74, .09);
}
.wrap .btn.btn-clasp.btn--ico-good::before,
.wrap .btn.btn-clasp.btn--ico-bad::before {
  margin-right: 9px;
  transform: scale(.88);
  transform-origin: center;
}

body.dark .wrap .shape__aesen {
  background: linear-gradient(180deg, #0d1726 0%, #101b2d 100%);
  border-color: var(--ng-dark-line-strong);
  border-left-color: var(--ng-dark-accent);
  color: var(--ng-dark-soft);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}
body.dark .wrap .shape__aesen::before {
  background: linear-gradient(145deg, rgba(37, 99, 255, .24), rgba(37, 99, 255, .09));
  border-color: rgba(86, 191, 255, .28);
  box-shadow: inset 0 0 0 5px rgba(11, 18, 32, .32);
}
body.dark .wrap .shape__aesen .typo-otest {
  color: #56bfff !important;
}
body.dark .wrap .shape__aesen .typo-otest:hover {
  color: #8bd4ff !important;
}
body.dark .wrap .btn.btn-clasp.btn--ico-good {
  color: #79f2a2 !important;
  border-color: rgba(121, 242, 162, .24);
  background: rgba(22, 163, 74, .10);
}
body.dark .wrap .btn.btn-clasp.btn--ico-bad {
  color: #ff7b8a !important;
  border-color: rgba(255, 123, 138, .24);
  background: rgba(190, 24, 93, .10);
}
body.dark .wrap .btn.btn-clasp.btn--ico-good:hover {
  border-color: rgba(121, 242, 162, .48);
  background: rgba(22, 163, 74, .17);
}
body.dark .wrap .btn.btn-clasp.btn--ico-bad:hover {
  border-color: rgba(255, 123, 138, .48);
  background: rgba(190, 24, 93, .17);
}

@media screen and (max-width: 575px) {
  .wrap .shape__aesen {
    align-items: flex-start;
    padding: 15px 16px !important;
    border-radius: 16px;
  }
  .wrap .shape__aesen::before {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .wrap .shape__aesen::after {
    left: 28px;
    top: 25px;
  }
  .wrap .shape__aesen p {
    font-size: 13px;
  }
}

/* ==========================================================================
   v0.9.18.4 — public mobile header
   Dedicated grid; no legacy gutter math participates in the mobile width.
   ========================================================================== */
@media (max-width: 760px) {
  .s-head { font-size: 16px !important; }

  .s-head > .ng-header-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .s-head .ng-public-header-row {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 34px 36px 36px;
    align-items: center;
    column-gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    margin: 0 !important;
  }

  .s-head .ng-public-header-row > * {
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .s-head .ng-public-header-row > :nth-child(2) {
    overflow: hidden;
  }

  .s-head .ng-public-header-row .e-toggle {
    width: 32px;
    height: 28px;
  }

  .s-head .ng-header-logo {
    display: flex;
    width: min(146px, 100%);
    max-width: 100%;
    overflow: hidden;
  }

  .s-head .ng-header-logo img {
    display: block;
    width: 100%;
    max-width: 146px;
    height: auto;
    max-height: 30px;
    object-fit: contain;
    object-position: left center;
  }

  .s-head .e-night-toggle {
    width: 34px;
    height: 18px;
    justify-self: center;
  }

  .s-head .e-search,
  .s-head .e-search__toggle,
  .s-head .ng-account-slot,
  .s-head .b-user__toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .s-head .e-search { justify-self: end; }
  .s-head .ng-account-slot { justify-self: end; }
  .s-head .ng-account-menu { margin: 0 !important; }

  .s-head .e-search__toggle::after { left: 8px; top: 7px; }
  .s-head .e-search__toggle::before { left: 23px; top: 24px; }

  .s-head .b-user__toggle.has-avatar {
    width: 34px;
    min-width: 34px;
    height: 34px;
    justify-self: end;
  }
}

@media (max-width: 340px) {
  .s-head > .ng-header-container { padding-left: 10px; padding-right: 10px; }
  .s-head .ng-public-header-row {
    grid-template-columns: 30px minmax(0, 1fr) 32px 34px 34px;
    column-gap: 4px;
  }
  .s-head .ng-public-header-row .e-toggle { width: 30px; height: 26px; }
  .s-head .e-night-toggle { width: 32px; }
  .s-head .e-search,
  .s-head .e-search__toggle,
  .s-head .ng-account-slot,
  .s-head .b-user__toggle { width: 34px; min-width: 34px; height: 34px; }
}

/* v0.9.19 — unified NowGame footer. */
.ng-footer {
  position: relative;
  margin-top: 64px;
  border-top: 1px solid #1d2b3e;
  background: #08111f;
  color: #a9b7c9;
}
.ng-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563ff 18%, #2563ff 82%, transparent);
  opacity: .75;
  pointer-events: none;
}
.ng-footer__inner {
  width: min(1170px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 24px;
}
.ng-footer__main {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.55fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}
.ng-footer__brand { min-width: 0; }
.ng-footer__logo {
  display: inline-flex;
  align-items: center;
  width: min(190px, 72vw);
}
.ng-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ng-footer__about {
  max-width: 390px;
  margin: 20px 0 0;
  color: #8fa1b7;
  font-size: 14px;
  line-height: 1.65;
}
.ng-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.ng-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px 7px 8px;
  border: 1px solid #213249;
  border-radius: 12px;
  background: #0d1929;
  color: #cbd7e6;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.ng-footer__social:hover {
  border-color: rgba(37, 99, 255, .65);
  background: #10213a;
  color: #fff;
  transform: translateY(-1px);
}
.ng-footer__social-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #2563ff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ng-footer__social-mark--youtube {
  background: #ef4444;
  font-size: 9px;
}
.ng-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}
.ng-footer__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.ng-footer__group h2 {
  margin: 0 0 4px;
  color: #e7edf7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ng-footer__group a {
  color: #8fa1b7;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  transition: color .15s ease, transform .15s ease;
}
.ng-footer__group a:hover {
  color: #2563ff;
  transform: translateX(2px);
}
.ng-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #1d2b3e;
  color: #718299;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .ng-footer { margin-top: 44px; }
  .ng-footer__inner {
    width: calc(100% - 24px);
    padding: 38px 0 20px;
  }
  .ng-footer__main {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .ng-footer__about { max-width: 520px; }
  .ng-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
  .ng-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 34px;
  }
}
@media (max-width: 430px) {
  .ng-footer__nav { grid-template-columns: 1fr; gap: 24px; }
  .ng-footer__socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-footer__social { justify-content: flex-start; min-width: 0; }
}

/* v0.9.19 — keep gallery navigation out of the way while an image is zoomed. */
.ng-lightbox.is-zoomed .ng-lightbox__nav {
  opacity: .12;
  pointer-events: none;
}

/* v0.9.20 — footer Telegram placeholder. */
.ng-footer__social-mark--telegram { background: #229ed9; font-size: 9px; }
.ng-footer__social--disabled {
  cursor: default;
  opacity: .62;
  user-select: none;
}
.ng-footer__social--disabled:hover {
  border-color: #213249;
  background: #0d1929;
  color: #cbd7e6;
  transform: none;
}

@media (max-width: 760px) {
  .ng-contact-page { padding: 28px 12px 0; }
  .ng-contact-hero { border-radius: 20px; padding: 26px 22px; }
  .ng-contact-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .ng-contact-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .ng-contact-info,
  .ng-contact-card { border-radius: 20px; }
  .ng-contact-info { padding: 24px 22px; }
  .ng-contact-info__points { margin-top: 6px; padding-top: 22px; }
  .ng-contact-card { padding: 24px 22px; }
  .ng-contact-form { grid-template-columns: 1fr; gap: 17px; }
  .ng-contact-field:nth-of-type(3),
  .ng-contact-captcha,
  .ng-contact-form__footer { grid-column: auto; }
  .ng-contact-form__footer { justify-content: stretch; }
  .ng-contact-submit { width: 100%; }
  .ng-contact-form__loader.cssload-loader { right: auto; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 350px) {
  .ng-contact-hero,
  .ng-contact-info,
  .ng-contact-card { padding-left: 18px; padding-right: 18px; }
  .ng-contact-captcha .g-recaptcha {
    transform: scale(.88);
    transform-origin: left top;
    margin-bottom: -8px;
  }
}

/* NOWGAME 0.9.29: readable article text, including legacy BBCode paragraphs. */
.text.cn-text.text--post {
  font-family: var(--ng-font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  padding-inline: 18px;
  overflow-wrap: anywhere;
}
.text.cn-text.text--post > p {
  font-size: 1em;
  line-height: inherit;
  margin: 0 0 1.2em;
}
.text.cn-text.text--post > .ng-paragraph-break {
  height: 1.2em;
}
.text.cn-text.text--post > h2,
.text.cn-text.text--post > h3,
.text.cn-text.text--post > h4 {
  margin: 24px 0 .7em;
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
}
.text.cn-text.text--post > h2 { font-size: 1.65em; }
.text.cn-text.text--post > h3 { font-size: 1.35em; }
.text.cn-text.text--post > h4 { font-size: 1.15em; }
.text.cn-text.text--post > :first-child { margin-top: 0; }
@media (max-width: 767px) {
  .text.cn-text.text--post {
    font-size: 16px;
    line-height: 1.6;
    padding-inline: 4px;
  }
}
/* NOWGAME 0.9.30: theme-aware BBCode [hr] divider. */
body.dark .text--post hr.hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, #22344e 0%, #477aa3 50%, #22344e 100%);
}
/* NOWGAME 0.9.31: avoid an extra paragraph gap before a TOC heading anchor. */
.text.cn-text.text--post > .ng-paragraph-break:has(+ a[id^="ng-heading-"] + h2),
.text.cn-text.text--post > .ng-paragraph-break:has(+ a[id^="ng-heading-"] + h3) {
  display: none;
}
/* NOWGAME 0.9.34: compact article links for [button] and legacy [b5]. */
.text--post a.ng-content-button,
body.dark .text--post a.ng-content-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-height: 38px;
  padding: 9px 18px;
  margin: 4px 0;
  border: 1px solid #2563ff;
  border-radius: 10px;
  background: #2563ff;
  color: #fff;
  font-family: var(--ng-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.text--post a.ng-content-button:hover,
body.dark .text--post a.ng-content-button:hover {
  background: #1d52dc;
  border-color: #1d52dc;
  color: #fff;
  text-decoration: none;
}
.text--post a.ng-content-button:focus-visible {
  outline: 3px solid #79adff;
  outline-offset: 3px;
}
.text--post a.ng-content-button:active { background: #1947be; }
@media (max-width: 767px) {
  .text--post a.ng-content-button { min-height: 44px; }
}
/* NOWGAME 0.9.35: right sidebar on news articles. */
.ng-news-sidebar {
  display: grid;
  gap: 22px;
  padding-top: 24px;
  min-width: 0;
}
.ng-news-sidebar-card {
  min-width: 0;
  padding: 20px 16px 10px;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8faff, #eff4fb);
  color: #0b1220;
}
.ng-news-sidebar-card__title {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #dbe4f0;
  font-family: var(--ng-font-sans);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 750;
  text-transform: none;
  color: inherit;
}
.ng-news-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: news-sidebar;
}
.ng-news-sidebar-list > li { margin: 0; padding: 0; }
.ng-news-sidebar-list > li + li { border-top: 1px solid #dbe4f0; }
.ng-news-sidebar-list > li > a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 0;
  color: #334155;
  font-family: var(--ng-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ng-news-sidebar-list > li > a::before {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: #2563ff;
}
.ng-news-sidebar-card--popular .ng-news-sidebar-list > li > a::before {
  counter-increment: news-sidebar;
  content: counter(news-sidebar, decimal-leading-zero);
  flex-basis: 24px;
  width: 24px;
  height: auto;
  margin-top: 1px;
  border-radius: 0;
  background: none;
  color: #2563ff;
  font-size: 13px;
  font-weight: 750;
}
.ng-news-sidebar-list > li > a:hover { color: #2563ff; }
.ng-news-sidebar-list > li > a:focus-visible { outline: 2px solid #2563ff; outline-offset: 3px; border-radius: 4px; }
body.dark .ng-news-sidebar-card { background: linear-gradient(145deg, #0e1929, #111e30); border-color: #263950; color: #e7edf7; }
body.dark .ng-news-sidebar-card__title,
body.dark .ng-news-sidebar-list > li + li { border-color: #263950; }
body.dark .ng-news-sidebar-list > li > a { color: #bac9dc; }
body.dark .ng-news-sidebar-list > li > a:hover,
body.dark .ng-news-sidebar-card--popular .ng-news-sidebar-list > li > a::before { color: #79adff; }

/* v0.9.39 — mobile fixed-header scroll restoration fix */
@media (max-width: 760px) { html { scroll-padding-top: 72px; } body { scroll-padding-top: 72px; } }

/* Compact semantic callouts */
.ng-callout{margin:16px 0;padding:14px 18px 15px 58px;border-radius:16px;box-shadow:0 4px 14px rgba(15,32,57,.05)}
.ng-callout::before{left:16px;top:15px;width:30px;height:30px;font-size:17px}
.ng-callout__title{margin-bottom:5px;font-size:18px;line-height:1.2}
.ng-callout__body{font-size:16px;line-height:1.45}
.ng-callout--note::before{font-size:17px}
@media(max-width:575px){.ng-callout{margin:14px 0;padding:13px 14px 14px 52px;border-radius:14px}.ng-callout::before{left:13px;top:14px;width:28px;height:28px}.ng-callout__title{font-size:17px}.ng-callout__body{font-size:15px;line-height:1.45}}

/* Stable spacing: paragraph -> semantic callout */
.text.cn-text.text--post > p + .ng-callout{margin-top:24px}
@media(max-width:575px){.text.cn-text.text--post > p + .ng-callout{margin-top:20px}}

/* Stable semantic callout spacing */
.text.cn-text.text--post > .ng-callout{margin-top:24px}
@media(max-width:575px){.text.cn-text.text--post > .ng-callout{margin-top:20px}}

/* NOWGAME article inline links */
.text.cn-text.text--post > a,.text.cn-text.text--post > p a,.text.cn-text.text--post > li a{color:#2563ff;text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-position:0 100%;background-repeat:no-repeat;background-size:100% 1px;transition:color .18s ease,background-size .18s ease,text-shadow .18s ease}
.text.cn-text.text--post > a:hover,.text.cn-text.text--post > p a:hover,.text.cn-text.text--post > li a:hover{color:#4f8cff;background-size:100% 2px;text-shadow:0 0 12px rgba(37,99,255,.22)}
body.dark .text.cn-text.text--post > a,body.dark .text.cn-text.text--post > p a,body.dark .text.cn-text.text--post > li a{color:#5f9cff}
body.dark .text.cn-text.text--post > a:hover,body.dark .text.cn-text.text--post > p a:hover,body.dark .text.cn-text.text--post > li a:hover{color:#8bb7ff;text-shadow:0 0 12px rgba(95,156,255,.28)}

/* NOWGAME article inline links v2 */
.text.cn-text.text--post > a,.text.cn-text.text--post > p a,.text.cn-text.text--post > li a,body.dark .text.cn-text.text--post > a,body.dark .text.cn-text.text--post > p a,body.dark .text.cn-text.text--post > li a{color:#4f8cff;background-image:none!important;text-decoration:none;text-shadow:none;transition:color .16s ease}
.text.cn-text.text--post > a:visited,.text.cn-text.text--post > p a:visited,.text.cn-text.text--post > li a:visited{color:#4f8cff}
.text.cn-text.text--post > a:hover,.text.cn-text.text--post > p a:hover,.text.cn-text.text--post > li a:hover,body.dark .text.cn-text.text--post > a:hover,body.dark .text.cn-text.text--post > p a:hover,body.dark .text.cn-text.text--post > li a:hover{color:#78a8ff;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-shadow:none}
/* v0.9.39 — accessibility touch targets */
.ng-related__dot{position:relative;width:44px;height:44px;flex:0 0 44px;background:transparent!important;transform:none!important}
.ng-related__dot::before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:999px;background:#c6d2df;transform:translate(-50%,-50%);transition:width .18s ease,background .18s ease,transform .18s ease}
.ng-related__dot:hover::before{transform:translate(-50%,-50%) scale(1.15)}
.ng-related__dot.is-active{width:44px;background:transparent!important}
.ng-related__dot.is-active::before{width:22px;background:#2563ff}
body.dark .ng-related__dot{background:transparent!important}
body.dark .ng-related__dot::before{background:#41536c}
body.dark .ng-related__dot.is-active::before{background:#2563ff}
/* v0.9.40 — related touch targets */
.ng-related__nav{grid-template-columns:48px minmax(0,1fr) 48px!important;gap:12px!important}
.ng-related__arrow{width:48px!important;height:48px!important}
.ng-related__dots{gap:4px!important;overflow:visible}
.ng-related__dot{width:24px!important;height:24px!important;flex:0 0 24px!important}
.ng-related__dot.is-active{width:24px!important}
