/* 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: 26px 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; }
}

/* v0.8.3 — public tags / topics directory and tag landing pages */
.ng-tags-wrap {
  --ng-tags-card: #fff;
  --ng-tags-card-soft: #f7f9fc;
  --ng-tags-text: #0f1d31;
  --ng-tags-muted: #6b7f94;
  --ng-tags-border: #e1e9f3;
  --ng-tags-blue: #2563ff;
  --ng-tags-blue-soft: #edf4ff;
  color: var(--ng-tags-text);
}
.ng-tags-speedbar {
  padding-bottom: 0;
}
.ng-tags-section {
  padding-top: 22px;
}
.ng-tags-section > .cn-container {
  max-width: 1320px;
}
.ng-tags-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 46px;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid var(--ng-tags-border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 255, .16), transparent 31%),
    radial-gradient(circle at 70% 110%, rgba(0, 195, 252, .09), transparent 35%),
    linear-gradient(145deg, #fff 0%, #f6f9fd 100%);
  box-shadow: 0 18px 48px rgba(15, 32, 57, .07);
}
.ng-tags-hero::after {
  content: "#";
  position: absolute;
  right: 38px;
  top: -46px;
  font: 900 250px/1 Arial, sans-serif;
  color: rgba(37, 99, 255, .045);
  pointer-events: none;
  transform: rotate(7deg);
}
.ng-tags-hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.ng-tags-eyebrow,
.ng-tags-block__kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--ng-tags-blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .12em;
}
.ng-tags-hero h1 {
  margin: 0 0 16px;
  color: var(--ng-tags-text);
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.045em;
}
.ng-tags-hero p {
  max-width: 760px;
  margin: 0;
  color: #52677d;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.62;
}
.ng-tags-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.ng-tags-hero__meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 13px;
  border: 1px solid #dbe7f6;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #60758b;
  font-size: 13px;
  font-weight: 700;
}
.ng-tags-hero__meta strong {
  color: var(--ng-tags-text);
  font-size: 15px;
  font-weight: 900;
}
.ng-tags-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #61758a !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}
.ng-tags-back:hover {
  color: var(--ng-tags-blue) !important;
}
.ng-tags-back span {
  font-size: 18px;
}
.ng-tags-search {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 390px);
  flex: 0 0 390px;
}
.ng-tags-search__label {
  display: block;
  margin: 0 0 9px 4px;
  color: #576d83;
  font-size: 13px;
  font-weight: 800;
}
.ng-tags-search__field {
  position: relative;
}
.ng-tags-search__field input {
  width: 100%;
  height: 60px;
  padding: 0 52px 0 50px;
  border: 1px solid #d6e2ef;
  border-radius: 18px;
  outline: none;
  background: rgba(255,255,255,.94);
  color: var(--ng-tags-text);
  box-shadow: 0 9px 26px rgba(15, 32, 57, .06);
  font: 700 15px/1.2 inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ng-tags-search__field input:focus {
  border-color: #83aefb;
  box-shadow: 0 0 0 4px rgba(37,99,255,.08), 0 9px 26px rgba(15, 32, 57, .07);
}
.ng-tags-search__field input::placeholder {
  color: #95a5b6;
  font-weight: 500;
}
.ng-tags-search__icon {
  position: absolute;
  z-index: 1;
  left: 20px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #7289a0;
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}
.ng-tags-search__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #7289a0;
  transform: rotate(45deg);
}
.ng-tags-search__clear {
  position: absolute;
  right: 12px;
  top: 50%;
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f8;
  color: #63768b;
  cursor: pointer;
  font: 500 23px/30px Arial, sans-serif;
  transform: translateY(-50%);
}
.ng-tags-search__clear.is-visible {
  display: block;
}
.ng-tags-block {
  margin: 0 0 46px;
  padding: 30px;
  border: 1px solid var(--ng-tags-border);
  border-radius: 28px;
  background: var(--ng-tags-card);
}
.ng-tags-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.ng-tags-block__head h2 {
  margin: 0;
  color: var(--ng-tags-text);
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -.025em;
}
.ng-tags-block__head p {
  max-width: 440px;
  margin: 0;
  color: var(--ng-tags-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}
.ng-tags-popular {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ng-topic-card {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 88px;
  padding: 15px 16px;
  border: 1px solid #e3eaf3;
  border-radius: 20px;
  background: #f8fafc;
  color: var(--ng-tags-text) !important;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ng-topic-card:hover {
  transform: translateY(-2px);
  border-color: #b8d1fa;
  background: #fff;
  box-shadow: 0 10px 25px rgba(20, 55, 105, .08);
}
.ng-topic-card__index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-right: 13px;
  border-radius: 13px;
  background: #e9f1ff;
  color: #3d70c9;
  font-size: 12px;
  font-weight: 900;
}
.ng-topic-card:nth-child(-n+3) .ng-topic-card__index {
  background: linear-gradient(145deg, #2b72ff, #138fea);
  color: #fff;
  box-shadow: 0 6px 15px rgba(37,99,255,.2);
}
.ng-topic-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ng-topic-card__body strong {
  overflow: hidden;
  color: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-topic-card__body small {
  color: #7b8da0;
  font-size: 12px;
  font-weight: 600;
}
.ng-topic-card__arrow,
.ng-tag-row__arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-left: auto;
  border-top: 2px solid #8da0b2;
  border-right: 2px solid #8da0b2;
  transform: rotate(45deg);
}
.ng-tags-block__head--catalog {
  align-items: center;
}
.ng-tags-result-count {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5fa;
  color: #718397;
  font-size: 13px;
  font-weight: 800;
}
.ng-tags-alphabet {
  display: flex;
  gap: 7px;
  margin: 0 -3px 22px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ng-tags-alphabet button {
  min-width: 39px;
  height: 39px;
  padding: 0 11px;
  flex: 0 0 auto;
  border: 1px solid #dfe7f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #64798e;
  cursor: pointer;
  font: 800 13px/1 inherit;
  transition: .16s ease;
}
.ng-tags-alphabet button:hover {
  border-color: #bcd0eb;
  background: #fff;
  color: #315f9d;
}
.ng-tags-alphabet button.is-active {
  border-color: var(--ng-tags-blue);
  background: var(--ng-tags-blue);
  color: #fff;
  box-shadow: 0 6px 15px rgba(37,99,255,.2);
}
.ng-tags-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.ng-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 55px;
  padding: 11px 13px 11px 16px;
  border: 1px solid #e8edf4;
  border-radius: 15px;
  background: #fff;
  color: var(--ng-tags-text) !important;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.ng-tag-row:hover {
  z-index: 1;
  border-color: #c2d6f3;
  background: #f8fbff;
  transform: translateX(2px);
}
.ng-tag-row__title {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-tag-row__count {
  flex: 0 0 auto;
  color: #8a9bad;
  font-size: 11px;
  font-weight: 700;
}
.ng-tags-empty,
.ng-tag-feed-empty {
  padding: 48px 24px;
  border: 1px dashed #cfdae7;
  border-radius: 20px;
  background: #f8fafc;
  text-align: center;
}
.ng-tags-empty strong,
.ng-tag-feed-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ng-tags-text);
  font-size: 19px;
  font-weight: 900;
}
.ng-tags-empty span,
.ng-tag-feed-empty p {
  margin: 0;
  color: #7c8ea1;
  font-size: 14px;
}

/* Tags directory hero: compact like the individual topic header */
.ng-tags-hero--directory {
  min-height: 0;
  align-items: center;
  gap: 34px;
  margin-bottom: 30px;
  padding: 28px 36px 30px;
  border-radius: 26px;
}
.ng-tags-hero--directory .ng-tags-hero__content {
  max-width: 720px;
}
.ng-tags-hero--directory .ng-tags-eyebrow {
  margin-bottom: 8px;
}
.ng-tags-hero--directory h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 4.4vw, 56px);
}
.ng-tags-hero--directory p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.5;
}
.ng-tags-hero--directory .ng-tags-hero__meta {
  margin-top: 16px;
}
.ng-tags-hero--directory .ng-tags-search {
  flex-basis: 360px;
  width: 360px;
}

/* Filtering must win over the card display rules. */
.ng-tag-row[hidden],
.ng-tag-row.is-filtered-out,
.ng-tags-block.is-filtered-out {
  display: none !important;
}

/* Individual topic page */
.ng-tags-hero--topic {
  min-height: 0;
  align-items: center;
  margin-bottom: 30px;
  padding: 28px 36px 30px;
  border-radius: 26px;
}
.ng-tags-hero--topic .ng-tags-hero__content {
  max-width: 980px;
}
.ng-tags-hero--topic .ng-tags-back {
  margin-bottom: 15px;
}
.ng-tags-hero--topic .ng-tags-eyebrow {
  margin-bottom: 8px;
}
.ng-tags-hero--topic h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 4.4vw, 56px);
}
.ng-tags-hero--topic p {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.5;
}
.ng-tags-hero--topic .ng-tags-hero__meta {
  margin-top: 16px;
}
.ng-tag-feed {
  margin-bottom: 46px;
}
.ng-tag-feed__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--ng-tags-border);
  border-radius: 20px;
  background: #fff;
}
.ng-tag-feed__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ng-tag-feed__filters a,
.ng-tag-feed__sort a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  background: #f8fafc;
  color: #5c7187 !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  transition: .16s ease;
}
.ng-tag-feed__filters a:hover,
.ng-tag-feed__sort a:hover {
  border-color: #b9ceed;
  background: #fff;
  color: #315f9d !important;
}
.ng-tag-feed__filters a.is-active,
.ng-tag-feed__sort a.is-active {
  border-color: var(--ng-tags-blue);
  background: var(--ng-tags-blue);
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(37,99,255,.18);
}
.ng-tag-feed__filters a span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(105,126,148,.11);
  text-align: center;
  font-size: 10px;
}
.ng-tag-feed__filters a.is-active span {
  background: rgba(255,255,255,.17);
}
.ng-tag-feed__sort {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.ng-tag-feed__sort > span {
  margin-right: 3px;
  color: #8a9aac;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ng-tag-feed__summary {
  margin: 0 2px 17px;
  color: #788b9f;
  font-size: 13px;
  font-weight: 600;
}
.ng-tag-feed__summary strong {
  color: var(--ng-tags-text);
  font-weight: 900;
}
.ng-tag-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ng-tag-material-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e8f2;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(15, 32, 57, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ng-tag-material-card:hover {
  transform: translateY(-3px);
  border-color: #bfd1eb;
  box-shadow: 0 15px 32px rgba(15, 32, 57, .09);
}
.ng-tag-material-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eaf0f7;
}
.ng-tag-material-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}
.ng-tag-material-card:hover .ng-tag-material-card__media img {
  transform: scale(1.025);
}
.ng-tag-material-card__media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e9f2ff, #f4f8fc);
  color: #6b8cb3;
  font-size: 52px;
  font-weight: 900;
  text-decoration: none !important;
}
.ng-tag-material-card__type {
  position: absolute;
  left: 13px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(11, 18, 32, .83);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ng-tag-material-card__body {
  padding: 20px 22px 18px;
}
.ng-tag-material-card h2 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--ng-tags-text);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.015em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ng-tag-material-card h2 a {
  color: inherit !important;
  text-decoration: none !important;
}
.ng-tag-material-card h2 a:hover {
  color: var(--ng-tags-blue) !important;
}
.ng-tag-material-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 66px;
  margin: 0 0 17px;
  color: #6e8195;
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.ng-tag-material-card__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 13px;
  border-top: 1px solid #edf1f6;
  color: #8a9aac;
  font-size: 11px;
  font-weight: 700;
}
.ng-tag-material-card__date {
  margin-right: auto;
}
.ng-tag-material-card__comments,
.ng-tag-material-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.ng-tag-material-card__comments svg,
.ng-tag-material-card__metric svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-tag-material-card__admin-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid #e4eaf1;
}
.ng-tag-material-card__metric--like {
  color: #4e8a6c;
}
.ng-tag-material-card__metric--dislike {
  color: #a46a72;
}
.ng-tag-material-card__metric--dislike svg {
  transform: rotate(180deg);
}
.ng-tag-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.ng-tag-pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ng-tag-pagination a,
.ng-tag-pagination__pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #dde6ef;
  border-radius: 11px;
  background: #fff;
  color: #61768c !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}
.ng-tag-pagination a:hover {
  border-color: #b8ccea;
  color: #2f68b4 !important;
}
.ng-tag-pagination a.is-active {
  border-color: var(--ng-tags-blue);
  background: var(--ng-tags-blue);
  color: #fff !important;
}
.ng-tag-pagination__pages span {
  border-color: transparent;
  background: transparent;
}
.ng-tag-pagination__nav {
  min-width: 92px !important;
}
.ng-tag-feed-empty a {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--ng-tags-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.ng-related-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ng-related-tags__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px 9px 15px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #f8fafc;
  color: #4e647a !important;
  text-decoration: none !important;
  transition: .16s ease;
}
.ng-related-tags__list a:hover {
  border-color: #bcd1ee;
  background: #fff;
  color: #245aa5 !important;
}
.ng-related-tags__list strong {
  font-size: 13px;
  font-weight: 800;
}
.ng-related-tags__list span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eaf0f7;
  color: #8091a2;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* 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;
}

/* Search page */
.ng-search-page {
  --ng-search-blue: #2563ff;
  --ng-search-text: #142235;
  --ng-search-muted: #718399;
}
.ng-search-section { padding: 0 0 72px; }
.ng-search-hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 44px;
  margin: 18px 0 32px;
  padding: 30px 34px;
  border: 1px solid #dce6f1;
  border-radius: 26px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f6ff 100%);
  box-shadow: 0 10px 30px rgba(15,32,57,.045);
  overflow: hidden;
  position: relative;
}
.ng-search-hero::after {
  content: "?";
  position: absolute;
  right: 22px;
  top: -40px;
  color: rgba(37,99,255,.045);
  font-size: 180px;
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}
.ng-search-hero__copy,
.ng-search-form { position: relative; z-index: 1; }
.ng-search-eyebrow {
  margin-bottom: 8px;
  color: var(--ng-search-blue);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ng-search-hero h1 {
  margin: 0 0 10px;
  color: var(--ng-search-text);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.035em;
}
.ng-search-hero p {
  max-width: 520px;
  margin: 0;
  color: var(--ng-search-muted);
  font-size: 15px;
  line-height: 1.55;
}
.ng-search-form label {
  display: block;
  margin: 0 0 8px;
  color: #55708d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ng-search-form__row {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 5px;
  border: 1px solid #cbd8e8;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15,32,57,.055);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ng-search-form__row:focus-within {
  border-color: var(--ng-search-blue);
  box-shadow: 0 0 0 3px rgba(37,99,255,.10), 0 10px 25px rgba(15,32,57,.075);
}
.ng-search-form__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex: 0 0 42px;
  color: #6f879f;
}
.ng-search-form__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.ng-search-form input[type="search"] {
  min-width: 0;
  flex: 1 1 auto;
  height: 46px;
  padding: 0 12px 0 0;
  border: 0 !important;
  background: transparent !important;
  color: #16263a;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none !important;
}
.ng-search-form input[type="search"]::placeholder { color: #93a3b5; }
.ng-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.ng-search-form button {
  flex: 0 0 auto;
  min-width: 100px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: var(--ng-search-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(37,99,255,.20);
}
.ng-search-form button:hover { background: #1756e4; transform: translateY(-1px); }

.ng-search-results {
  margin-top: 0;
  padding: 26px;
  border: 1px solid #dce6f1;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15,32,57,.04);
}
.ng-search-results__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}
.ng-search-results__head h2 {
  margin: 0;
  color: var(--ng-search-text);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
}
.ng-search-results__count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef4fb;
  color: #72869b;
  font-size: 11px;
  font-weight: 800;
}
.ng-search-results__count strong { color: #203854; font-size: 13px; }
.ng-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid #e2eaf3;
  border-radius: 17px;
  background: #f8fafc;
}
.ng-search-filters a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dce6f0;
  border-radius: 11px;
  background: #fff;
  color: #31506e !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
}
.ng-search-filters a:hover { border-color: #b8cce6; color: #1f5bb8 !important; }
.ng-search-filters a span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf2f7;
  color: #75899e;
  font-size: 10px;
  text-align: center;
}
.ng-search-filters a.is-active {
  border-color: var(--ng-search-blue);
  background: var(--ng-search-blue);
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(37,99,255,.17);
}
.ng-search-filters a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.ng-search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ng-search-results-grid .ng-tag-material-card__body { padding: 20px 22px 18px; }
.ng-search-results-grid .ng-tag-material-card h2 { min-height: 52px; font-size: 20px; }
.ng-search-results-grid .ng-tag-material-card p { min-height: 66px; -webkit-line-clamp: 3; }
.ng-search-pagination { margin-top: 28px; text-align: center; }
.ng-search-message,
.ng-search-start,
.ng-search-empty {
  border: 1px solid #dce6f1;
  border-radius: 20px;
  background: #fff;
  color: #6c8197;
}
.ng-search-message {
  padding: 18px 22px;
  font-weight: 800;
}
.ng-search-message--error { border-color: #f0c8cd; background: #fff7f8; color: #b84451; }
.ng-search-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}
.ng-search-start strong { color: #27415e; }
.ng-search-start span { font-size: 12px; }
.ng-search-empty {
  padding: 52px 24px;
  text-align: center;
  background: #f9fbfd;
}
.ng-search-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #eaf2ff;
  color: #2563ff;
  font-size: 23px;
  font-weight: 900;
}
.ng-search-empty h3 { margin: 0 0 7px; color: #263d56; font-size: 21px; font-weight: 900; }
.ng-search-empty p { margin: 0; color: #7f91a4; font-size: 13px; }

body.dark .ng-search-page { --ng-search-text: #eef5ff; --ng-search-muted: #91a6ba; }
body.dark .ng-search-hero {
  border-color: #223a55;
  background: linear-gradient(135deg, #101d2c 0%, #10233b 100%);
  box-shadow: none;
}
body.dark .ng-search-hero::after { color: rgba(61,137,255,.055); }
body.dark .ng-search-form label { color: #8ea6be; }
body.dark .ng-search-form__row {
  border-color: #29415c;
  background: #0d1927;
  box-shadow: none;
}
body.dark .ng-search-form__row:focus-within { border-color: #357ee0; box-shadow: 0 0 0 3px rgba(37,99,255,.13); }
body.dark .ng-search-form input[type="search"] { color: #eef5ff; }
body.dark .ng-search-form input[type="search"]::placeholder { color: #657c93; }
body.dark .ng-search-results,
body.dark .ng-search-message,
body.dark .ng-search-start,
body.dark .ng-search-empty {
  border-color: #22384f;
  background: #0f1b2a;
  box-shadow: none;
}
body.dark .ng-search-results__count { background: #17283a; color: #8ca1b7; }
body.dark .ng-search-results__count strong { color: #dbe9f7; }
body.dark .ng-search-filters {
  border-color: #22384f;
  background: #0c1724;
}
body.dark .ng-search-filters a {
  border-color: #2a4057;
  background: #122235;
  color: #b8c9db !important;
}
body.dark .ng-search-filters a span { background: #1d3044; color: #8fa5ba; }
body.dark .ng-search-filters a:hover { border-color: #3f6590; color: #fff !important; }
body.dark .ng-search-filters a.is-active { border-color: #2563ff; background: #2563ff; color: #fff !important; }
body.dark .ng-search-filters a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
body.dark .ng-search-start strong,
body.dark .ng-search-empty h3 { color: #dce8f5; }
body.dark .ng-search-empty { background: #0d1927; }
body.dark .ng-search-empty__icon { background: #142b49; color: #5ca8ff; }
body.dark .ng-search-message--error { border-color: #5b3038; background: #25171b; color: #ff949d; }

@media (max-width: 991px) {
  .s-head .e-search__stripe { width: min(560px, calc(100vw - 130px)); }
  .ng-search-hero { grid-template-columns: 1fr; gap: 23px; padding: 26px; }
  .ng-search-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .s-head .e-search__stripe { width: calc(100vw - 100px); right: 0; }
  .ng-search-section { padding-bottom: 42px; }
  .ng-search-hero { margin-top: 10px; padding: 22px 18px; border-radius: 20px; }
  .ng-search-hero h1 { font-size: 34px; }
  .ng-search-form__row { min-height: 54px; }
  .ng-search-form button { min-width: 82px; padding: 0 14px; }
  .ng-search-results { padding: 18px; border-radius: 20px; }
  .ng-search-results__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ng-search-results__head h2 { font-size: 23px; }
  .ng-search-filters { flex-wrap: nowrap; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .ng-search-filters::-webkit-scrollbar { display: none; }
  .ng-search-filters a { flex: 0 0 auto; }
  .ng-search-results-grid { grid-template-columns: 1fr; }
  .ng-search-start { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .ng-search-form__row { display: grid; grid-template-columns: 38px 1fr; padding: 5px; }
  .ng-search-form__icon { width: 38px; }
  .ng-search-form input[type="search"] { width: 100%; }
  .ng-search-form button { grid-column: 1 / -1; width: 100%; margin-top: 5px; }
}


/* v0.8.75 — public user profiles in site search */
.ng-search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 13px;
}
.ng-search-group-head h3 {
  margin: 0;
  color: var(--ng-search-text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}
.ng-search-users-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ng-search-users-grid:last-child { margin-bottom: 0; }
.ng-search-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dfe8f2;
  border-radius: 18px;
  background: #f9fbfd;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ng-search-user-card:hover {
  border-color: #bfd2e8;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15,32,57,.055);
}
.ng-search-user-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border: 2px solid #d8e4f0;
  border-radius: 22px;
  background: linear-gradient(135deg, #e9f3ff, #dceaff);
  color: #2563ff !important;
  text-decoration: none !important;
}
.ng-search-user-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ng-search-user-card__avatar > span {
  position: relative;
  z-index: 1;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}
.ng-search-user-card__body {
  min-width: 0;
  flex: 1 1 auto;
}
.ng-search-user-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #8192a4;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ng-search-user-card__meta b {
  padding: 3px 6px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #2563ff;
  font-size: 9px;
  letter-spacing: .03em;
}
.ng-search-user-card h3 {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0 0 6px;
  color: #203854;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}
.ng-search-user-card h3 > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #203854;
  text-decoration: none !important;
}
.ng-search-user-card p {
  display: -webkit-box;
  min-height: 38px;
  margin: 0 0 9px;
  overflow: hidden;
  color: #6f8296;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ng-search-user-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8394a7;
  font-size: 10px;
  font-weight: 750;
}
.ng-search-user-card__footer > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ng-search-user-card__footer > a {
  flex: 0 0 auto;
  color: #2563ff !important;
  font-weight: 900;
  text-decoration: none !important;
}
.ng-search-user-card__footer > a:hover { text-decoration: underline !important; }

body.dark .ng-search-group-head h3 { color: #dce8f5; }
body.dark .ng-search-user-card {
  border-color: #233a52;
  background: #0d1927;
}
body.dark .ng-search-user-card:hover {
  border-color: #36597d;
  box-shadow: none;
}
body.dark .ng-search-user-card__avatar {
  border-color: #2c4661;
  background: linear-gradient(135deg, #142840, #172f4d);
  color: #67b5ff !important;
}
body.dark .ng-search-user-card__meta { color: #758ca3; }
body.dark .ng-search-user-card__meta b { background: #152c49; color: #66b1ff; }
body.dark .ng-search-user-card h3,
body.dark .ng-search-user-card h3 > a { color: #e7f0fa; }
body.dark .ng-search-user-card p { color: #8fa3b7; }
body.dark .ng-search-user-card__footer { color: #768ba0; }
body.dark .ng-search-user-card__footer > a { color: #65adff !important; }

@media (max-width: 767px) {
  .ng-search-users-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ng-search-user-card { align-items: flex-start; gap: 13px; padding: 14px; }
  .ng-search-user-card__avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; }
  .ng-search-user-card__avatar > span { font-size: 21px; }
  .ng-search-user-card h3 { font-size: 16px; }
  .ng-search-user-card p { min-height: 0; }
  .ng-search-user-card__footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}


/* 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; }
}

/* v0.8.24 — public login page recovery */
.ng-auth-page {
  min-height: calc(100vh - 150px);
  padding: 72px 0 90px;
}

.ng-auth-page > .cn-container {
  display: flex;
  justify-content: center;
}

.ng-auth-card {
  width: min(100%, 560px);
  padding: 34px;
  border: 1px solid #d9e2ee;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(18, 40, 70, .10);
}

.ng-auth-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #2563ff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .12em;
}

.ng-auth-card__head h1 {
  margin: 0 0 10px;
  color: #101827;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.ng-auth-card__head p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.ng-auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.ng-auth-field {
  display: grid;
  gap: 8px;
}

.ng-auth-field > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ng-auth-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ng-auth-field input:focus {
  border-color: #2563ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,255,.12);
}

.ng-auth-recaptcha {
  min-height: 78px;
}

.ng-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ng-auth-submit {
  min-width: 150px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: #2563ff;
  color: #fff;
  font: inherit;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.ng-auth-submit:hover { background: #1d4ed8; transform: translateY(-1px); }
.ng-auth-submit:disabled { cursor: default; opacity: .6; transform: none; }

.ng-auth-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(37,99,255,.2);
  border-top-color: #2563ff;
  border-radius: 50%;
  opacity: 0;
  animation: ng-auth-spin .7s linear infinite;
}
.ng-auth-loader.is-active { opacity: 1; }
@keyframes ng-auth-spin { to { transform: rotate(360deg); } }

.ng-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.ng-auth-links a {
  color: #2563ff;
  font-size: 13px;
  font-weight: 700;
}

body.dark .ng-auth-card {
  border-color: #22334c;
  background: linear-gradient(180deg, #101a28 0%, #0e1724 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,.30);
}
body.dark .ng-auth-card__head h1 { color: #e7edf7; }
body.dark .ng-auth-card__head p { color: #9eb0c7; }
body.dark .ng-auth-field > span { color: #b9c8da; }
body.dark .ng-auth-field input {
  border-color: #2a3d59;
  background: #0b1421;
  color: #e7edf7;
}
body.dark .ng-auth-field input:focus {
  border-color: #2563ff;
  background: #0d1827;
}
body.dark .ng-auth-links { border-top-color: #22334c; }

@media (max-width: 640px) {
  .ng-auth-page { padding: 34px 0 60px; }
  .ng-auth-card { padding: 24px 18px; border-radius: 18px; }
  .ng-auth-recaptcha { overflow-x: auto; }
}

/* v0.8.26 — registration and password recovery auth pages */
.ng-auth-card--wide {
  width: min(100%, 640px);
}

.ng-auth-grid {
  display: grid;
  gap: 18px;
}

.ng-auth-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-auth-hint {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.ng-auth-result {
  display: none;
  margin-top: 24px;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.ng-auth-result.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

.ng-auth-result.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ng-auth-result__actions {
  margin-top: 14px;
}

.ng-auth-inline-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  background: #2563ff;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
}

.ng-auth-result__note {
  margin-top: 10px;
  opacity: .78;
  font-size: 12px;
}

.ng-auth-local-link {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px 15px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
}

.ng-auth-local-link a {
  color: #2563ff;
  font-weight: 800;
}

body.dark .ng-auth-hint { color: #71839b; }
body.dark .ng-auth-result.is-error {
  border-color: #5d2632;
  background: #2a151c;
  color: #fda4af;
}
body.dark .ng-auth-result.is-success,
body.dark .ng-auth-local-link {
  border-color: #22543a;
  background: #10251b;
  color: #86efac;
}

@media (max-width: 640px) {
  .ng-auth-grid--two { grid-template-columns: 1fr; }
  .ng-auth-submit { width: 100%; }
  .ng-auth-actions { align-items: center; }
}

/* v0.8.27 — e-mail confirmation auth page */
.ng-auth-card--status {
  text-align: center;
}

.ng-auth-card__head--status {
  max-width: 470px;
  margin: 0 auto;
}

.ng-auth-status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 18px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.ng-auth-status-icon.is-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
}

.ng-auth-status-icon.is-error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #e11d48;
}

.ng-auth-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.ng-auth-primary-link,
.ng-auth-secondary-link {
  display: inline-flex;
  min-height: 46px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.ng-auth-primary-link {
  border: 1px solid #2563ff;
  background: #2563ff;
  color: #fff !important;
}

.ng-auth-primary-link:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.ng-auth-secondary-link {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155 !important;
}

.ng-auth-secondary-link:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

body.dark .ng-auth-status-icon.is-success {
  border-color: #22543a;
  background: #10251b;
  color: #86efac;
}

body.dark .ng-auth-status-icon.is-error {
  border-color: #5d2632;
  background: #2a151c;
  color: #fda4af;
}

body.dark .ng-auth-secondary-link {
  border-color: #2a3d59;
  background: #0b1421;
  color: #b9c8da !important;
}

body.dark .ng-auth-secondary-link:hover {
  border-color: #3a5272;
  background: #0d1827;
}

@media (max-width: 640px) {
  .ng-auth-status-actions {
    display: grid;
  }

  .ng-auth-primary-link,
  .ng-auth-secondary-link {
    width: 100%;
  }
}


/* NOWGAME profile / progression foundation */
.ng-profile-page .s-content {
  padding-top: 22px;
  padding-bottom: 56px;
}

.ng-profile-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
  min-height: 280px;
  padding: 36px 38px;
  border: 1px solid #22344e;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 255, .24), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #0d192a 58%, #101f35 100%);
  box-shadow: 0 24px 70px rgba(11, 18, 32, .18);
  color: #e7edf7;
}

.ng-profile-hero.has-custom-cover {
  background-image:
    linear-gradient(90deg, rgba(7, 14, 26, .90) 0%, rgba(8, 17, 31, .68) 52%, rgba(8, 18, 34, .58) 100%),
    var(--ng-profile-cover-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ng-profile-hero.has-custom-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 18, 32, .04), rgba(10, 18, 32, .22));
}

.ng-profile-hero.has-custom-cover > * { z-index: 1; }

.ng-profile-hero__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -110px;
  top: -180px;
  border-radius: 50%;
  background: rgba(37, 99, 255, .16);
  filter: blur(12px);
  pointer-events: none;
}

.ng-profile-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.ng-profile-avatar {
  flex: 0 0 118px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 167, 225, .35);
  border-radius: 32px;
  background: linear-gradient(145deg, #16263d, #0d1727);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.025), 0 16px 40px rgba(0,0,0,.25);
}

.ng-profile-avatar span {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #68b8ff;
}

.ng-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-profile-identity__body { min-width: 0; }
.ng-profile-kicker,
.ng-profile-panel__eyebrow,
.ng-profile-progress-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  color: #6f8cad;
}

.ng-profile-identity h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #f4f8ff;
}

.ng-profile-rank-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.ng-profile-level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(74, 141, 255, .48);
  border-radius: 999px;
  background: rgba(37, 99, 255, .16);
  color: #8fc0ff;
  font-size: 12px;
  font-weight: 800;
}

.ng-profile-rank {
  color: #a9bacf;
  font-size: 13px;
  font-weight: 700;
}

.ng-profile-bio {
  max-width: 620px;
  margin: 17px 0 0;
  color: #a9b9cd;
  font-size: 14px;
  line-height: 1.6;
}
.ng-profile-bio--muted { color: #6f8198; }

.ng-profile-progress-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(126, 167, 225, .18);
  border-radius: 18px;
  background: rgba(7, 14, 25, .58);
  backdrop-filter: blur(8px);
}

.ng-profile-progress-card__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.ng-profile-progress-card__head strong {
  display: block;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.ng-profile-progress-card__head > span {
  max-width: 145px;
  color: #7f93ad;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.ng-profile-xpbar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #17253a;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

.ng-profile-xpbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563ff, #2ba8ff);
  box-shadow: 0 0 16px rgba(43, 168, 255, .42);
}

.ng-profile-progress-card__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #61758e;
  font-size: 10px;
}

.ng-profile-system-note {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #61738b;
  font-size: 12px;
  line-height: 1.5;
}

.ng-profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ng-profile-stat {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.ng-profile-stat strong {
  display: block;
  margin-bottom: 5px;
  color: #0b1220;
  font-size: 22px;
  line-height: 1;
}
.ng-profile-stat span {
  color: #738197;
  font-size: 11px;
  font-weight: 700;
}

.ng-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 18px;
  margin-top: 18px;
}

.ng-profile-panel {
  padding: 24px;
  border: 1px solid #e1e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}

.ng-profile-panel--collection { margin-top: 18px; }
.ng-profile-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.ng-profile-panel__head h2 {
  margin: 0;
  color: #0b1220;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}
.ng-profile-panel__meta {
  max-width: 420px;
  color: #8390a3;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.ng-profile-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ng-profile-showcase-item,
.ng-profile-showcase-empty {
  min-height: 132px;
  border-radius: 16px;
}

.ng-profile-showcase-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dde6f0;
  background: #f8fbff;
}
.ng-profile-showcase-item::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--achievement-accent, #94a3b8);
}
.ng-profile-showcase-item img {
  width: 86px;
  height: 92px;
  object-fit: contain;
}
.ng-profile-showcase-item strong {
  display: block;
  color: #142033;
  font-size: 13px;
  line-height: 1.3;
}
.ng-profile-showcase-item span {
  display: block;
  margin-top: 5px;
  color: #7d8ba0;
  font-size: 10px;
}

.ng-profile-showcase-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border: 1px dashed #cfd9e6;
  background: #fafcff;
  text-align: center;
}
.ng-profile-showcase-empty__plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #edf4ff;
  color: #2563ff;
  font-size: 21px;
  line-height: 1;
}
.ng-profile-showcase-empty strong {
  color: #3f4d61;
  font-size: 12px;
}
.ng-profile-showcase-empty > span:last-child {
  max-width: 160px;
  margin-top: 4px;
  color: #93a0b1;
  font-size: 9px;
  line-height: 1.4;
}

.ng-profile-about-list { margin: 0; }
.ng-profile-about-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}
.ng-profile-about-list > div:last-child { border-bottom: 0; }
.ng-profile-about-list dt {
  color: #8b98a9;
  font-size: 11px;
}
.ng-profile-about-list dd {
  margin: 0;
  color: #223047;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.ng-profile-achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ng-profile-achievement {
  --achievement-accent: #94a3b8;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  min-height: 148px;
  padding: 13px;
  border: 1px solid #e0e7ef;
  border-radius: 17px;
  background: #fbfdff;
}

.rarity-common { --achievement-accent: #94a3b8; }
.rarity-uncommon { --achievement-accent: #37a66a; }
.rarity-rare { --achievement-accent: #2f7de1; }
.rarity-epic { --achievement-accent: #8a5bd6; }
.rarity-legendary { --achievement-accent: #d69d2d; }
.rarity-hidden { --achievement-accent: #4f6f9d; }

.ng-profile-achievement__icon {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 13px;
  background: linear-gradient(160deg, #edf4fb, #f8fbff);
}
.ng-profile-achievement__icon::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--achievement-accent);
  opacity: .75;
}
.ng-profile-achievement__icon img {
  width: 96px;
  height: 108px;
  object-fit: contain;
}
.ng-profile-achievement.is-locked .ng-profile-achievement__icon img {
  filter: grayscale(.82) saturate(.35);
  opacity: .42;
}
.ng-profile-achievement__lock {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11, 18, 32, .78);
  color: #9fb0c5;
  font-size: 13px;
}
.ng-profile-achievement__body {
  min-width: 0;
  padding: 3px 2px 2px;
}
.ng-profile-achievement__category {
  display: block;
  margin-bottom: 6px;
  color: var(--achievement-accent);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ng-profile-achievement__body strong {
  display: block;
  overflow: hidden;
  color: #172235;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.ng-profile-achievement__body p {
  min-height: 34px;
  margin: 6px 0 10px;
  color: #7b899d;
  font-size: 10px;
  line-height: 1.45;
}
.ng-profile-achievement__progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}
.ng-profile-achievement__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--achievement-accent);
}
.ng-profile-achievement__body small {
  display: block;
  margin-top: 5px;
  color: #8794a5;
  font-size: 9px;
}
.ng-profile-achievement__body small.is-complete {
  color: var(--achievement-accent);
  font-weight: 800;
}

.ng-profile-empty-state {
  padding: 30px;
  border: 1px dashed #ccd7e5;
  border-radius: 16px;
  background: #fafcff;
  text-align: center;
}
.ng-profile-empty-state strong {
  display: block;
  color: #243247;
  font-size: 14px;
}
.ng-profile-empty-state span {
  display: block;
  max-width: 680px;
  margin: 7px auto 0;
  color: #8795a8;
  font-size: 11px;
  line-height: 1.55;
}

body.dark .ng-profile-system-note {
  border-color: #24364e;
  background: #0d1827;
  color: #7890aa;
}
body.dark .ng-profile-stat,
body.dark .ng-profile-panel {
  border-color: #203047;
  background: #0d1827;
  box-shadow: none;
}
body.dark .ng-profile-stat strong,
body.dark .ng-profile-panel__head h2 { color: #e7edf7; }
body.dark .ng-profile-stat span,
body.dark .ng-profile-panel__meta { color: #71859d; }
body.dark .ng-profile-showcase-item,
body.dark .ng-profile-achievement {
  border-color: #22334a;
  background: #0b1523;
}
body.dark .ng-profile-showcase-item strong,
body.dark .ng-profile-achievement__body strong,
body.dark .ng-profile-about-list dd,
body.dark .ng-profile-empty-state strong { color: #dce7f4; }
body.dark .ng-profile-showcase-item span,
body.dark .ng-profile-achievement__body p,
body.dark .ng-profile-achievement__body small,
body.dark .ng-profile-about-list dt { color: #7489a1; }
body.dark .ng-profile-showcase-empty,
body.dark .ng-profile-empty-state {
  border-color: #2b3c53;
  background: #0b1522;
}
body.dark .ng-profile-showcase-empty__plus {
  background: #132745;
  color: #66a8ff;
}
body.dark .ng-profile-showcase-empty strong { color: #aab9cb; }
body.dark .ng-profile-about-list > div { border-bottom-color: #1d2c40; }
body.dark .ng-profile-achievement__icon { background: linear-gradient(160deg, #101d2c, #0c1623); }
body.dark .ng-profile-achievement__progress { background: #1c2b3e; }
body.dark .ng-profile-empty-state span { color: #74879e; }

@media (max-width: 1100px) {
  .ng-profile-hero { grid-template-columns: 1fr; }
  .ng-profile-progress-card { max-width: 520px; }
  .ng-profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-profile-achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .ng-profile-hero { padding: 28px; border-radius: 20px; }
  .ng-profile-grid { grid-template-columns: 1fr; }
  .ng-profile-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ng-profile-page .s-content { padding-top: 12px; }
  .ng-profile-hero { padding: 22px 18px; gap: 24px; }
  .ng-profile-identity { align-items: flex-start; gap: 16px; }
  .ng-profile-avatar { flex-basis: 78px; width: 78px; height: 78px; border-radius: 23px; }
  .ng-profile-avatar span { font-size: 24px; }
  .ng-profile-identity h1 { font-size: 28px; }
  .ng-profile-bio { font-size: 12px; }
  .ng-profile-progress-card { padding: 17px; }
  .ng-profile-progress-card__head { align-items: flex-start; }
  .ng-profile-progress-card__head strong { font-size: 21px; }
  .ng-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-profile-stat { padding: 15px; }
  .ng-profile-panel { padding: 18px; border-radius: 17px; }
  .ng-profile-panel__head { display: block; }
  .ng-profile-panel__meta { display: block; margin-top: 8px; text-align: left; }
  .ng-profile-showcase { grid-template-columns: 1fr; }
  .ng-profile-achievement-grid { grid-template-columns: 1fr; }
  .ng-profile-achievement { grid-template-columns: 92px minmax(0, 1fr); }
  .ng-profile-achievement__icon img { width: 84px; height: 100px; }
}

/* NOWGAME profile editor + secret achievements · 0.8.29 */
.ng-profile-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.ng-profile-title-row h1 { margin-right: auto; }
.ng-profile-edit-button,
.ng-profile-primary-button,
.ng-profile-secondary-button,
.ng-profile-file-button {
  appearance: none;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}
.ng-profile-edit-button {
  padding: 10px 13px;
  border: 1px solid rgba(108, 166, 255, .28);
  background: rgba(37, 99, 255, .12);
  color: #75b4ff;
}
.ng-profile-edit-button:hover,
.ng-profile-primary-button:hover,
.ng-profile-secondary-button:hover,
.ng-profile-file-button:hover { transform: translateY(-1px); }

.ng-profile-edit-panel {
  margin-top: 18px;
  scroll-margin-top: 18px;
}
.ng-profile-edit-panel[hidden] { display: none !important; }
.ng-profile-edit-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #f7faff;
  color: #66768b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ng-profile-edit-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
}
.ng-profile-edit-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e3e9f1;
  border-radius: 17px;
  background: #f9fbfe;
}
.ng-profile-edit-avatar-preview {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid #d8e3ef;
  border-radius: 34px;
  background: linear-gradient(145deg, #eef4fb, #dfe8f3);
  color: #2563ff;
  font-size: 34px;
  font-weight: 900;
}
.ng-profile-edit-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ng-profile-file-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  background: #2563ff;
  color: #fff;
  text-align: center;
}
.ng-profile-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ng-profile-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: #69798d;
  font-size: 10px;
  cursor: pointer;
}
.ng-profile-check.is-disabled { opacity: .45; cursor: default; }
.ng-profile-check input { accent-color: #2563ff; }
.ng-profile-edit-avatar-block > small {
  color: #96a2b2;
  font-size: 9px;
  text-align: center;
}
.ng-profile-edit-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ng-profile-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}
.ng-profile-field--wide { grid-column: 1 / -1; }
.ng-profile-field > span,
.ng-profile-edit-section-title strong {
  color: #344258;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.ng-profile-field input[type="text"],
.ng-profile-field textarea,
.ng-profile-field select,
.ng-profile-slug-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  background: #fbfdff;
  color: #172235;
  font: inherit;
  font-size: 12px;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ng-profile-field input[type="text"],
.ng-profile-field select { height: 42px; padding: 0 12px; }
.ng-profile-field textarea { min-height: 116px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.ng-profile-field input[type="text"]:focus,
.ng-profile-field textarea:focus,
.ng-profile-field select:focus,
.ng-profile-slug-input:focus-within {
  border-color: #5b8dff;
  box-shadow: 0 0 0 3px rgba(37,99,255,.09);
}
.ng-profile-field small,
.ng-profile-edit-section-title span,
.ng-profile-edit-hint {
  color: #909dad;
  font-size: 9px;
  line-height: 1.45;
}
.ng-profile-slug-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
}
.ng-profile-slug-input > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid #e3e9f1;
  background: #f1f5fa;
  color: #8b98a9;
  font-size: 11px;
  font-weight: 800;
}
.ng-profile-slug-input input {
  flex: 1;
  min-width: 0;
  height: 100% !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ng-profile-cover-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .85fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #e3e9f1;
  border-radius: 16px;
  background: #f9fbfe;
}
.ng-profile-cover-editor__preview {
  min-height: 156px;
  border: 1px solid #d8e3ef;
  border-radius: 13px;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 99, 255, .24), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #0d192a 58%, #101f35 100%);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.ng-profile-cover-editor__preview.has-image {
  background-image:
    linear-gradient(90deg, rgba(7, 14, 26, .52), rgba(8, 18, 34, .24)),
    var(--ng-profile-cover-preview);
}
.ng-profile-cover-editor__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}
.ng-profile-cover-editor__controls > strong {
  color: #344258;
  font-size: 11px;
}
.ng-profile-cover-editor__controls > span,
.ng-profile-cover-editor__controls > small {
  color: #909dad;
  font-size: 9px;
  line-height: 1.45;
}
.ng-profile-file-button--cover { width: auto; min-width: 145px; }

body.dark .ng-profile-cover-editor {
  border-color: #203047;
  background: #0b1523;
}
body.dark .ng-profile-cover-editor__preview { border-color: #263951; }
body.dark .ng-profile-cover-editor__controls > strong { color: #b9c8da; }

.ng-profile-edit-showcase {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #edf1f5;
}
.ng-profile-edit-section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.ng-profile-edit-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ng-profile-edit-hint { margin-top: 10px; }
.ng-profile-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.ng-profile-primary-button,
.ng-profile-secondary-button { padding: 12px 16px; }
.ng-profile-primary-button { background: #2563ff; color: #fff; }
.ng-profile-primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.ng-profile-secondary-button {
  border: 1px solid #dce4ed;
  background: #f7f9fc;
  color: #53657a;
}
.ng-profile-edit-message {
  margin-right: auto;
  font-size: 10px;
  font-weight: 700;
}
.ng-profile-edit-message.is-success { color: #2f9c63; }
.ng-profile-edit-message.is-error { color: #d65454; }

.ng-profile-panel--secrets { margin-top: 18px; }
.ng-profile-secret-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ng-profile-secret {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 17px;
  background: #fbfdff;
}
.ng-profile-secret__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(160deg, #edf4fb, #f8fbff);
}
.ng-profile-secret__art img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform .22s ease, filter .22s ease, opacity .22s ease;
}
.ng-profile-secret.is-locked .ng-profile-secret__art img { opacity: .95; }
.ng-profile-secret__mystery {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 12, 24, .72);
  color: #e7edf7;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .16em;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  text-shadow: 0 0 24px rgba(37, 99, 255, .55);
}
.ng-profile-secret.is-locked:hover .ng-profile-secret__mystery,
.ng-profile-secret.is-locked:focus-within .ng-profile-secret__mystery { opacity: 1; }
.ng-profile-secret.is-locked:hover .ng-profile-secret__art img { transform: scale(1.025); filter: brightness(.72); }
.ng-profile-secret__body {
  min-height: 72px;
  padding: 13px 14px 15px;
  border-top: 1px solid #e8edf3;
}
.ng-profile-secret__body strong {
  display: block;
  color: #172235;
  font-size: 12px;
  line-height: 1.3;
}
.ng-profile-secret__body span {
  display: block;
  margin-top: 5px;
  color: #8190a3;
  font-size: 9px;
  line-height: 1.45;
}
.ng-profile-secret.is-unlocked { box-shadow: inset 0 -2px 0 #2563ff; }

body.dark .ng-profile-edit-close,
body.dark .ng-profile-secondary-button {
  border-color: #263850;
  background: #101d2d;
  color: #8ea1b8;
}
body.dark .ng-profile-edit-avatar-block {
  border-color: #203047;
  background: #0b1523;
}
body.dark .ng-profile-edit-avatar-preview {
  border-color: #263951;
  background: linear-gradient(145deg, #142238, #0d1725);
}
body.dark .ng-profile-field > span,
body.dark .ng-profile-edit-section-title strong { color: #b9c8da; }
body.dark .ng-profile-field input[type="text"],
body.dark .ng-profile-field textarea,
body.dark .ng-profile-field select,
body.dark .ng-profile-slug-input {
  border-color: #263850;
  background: #0a1421;
  color: #e7edf7;
}
body.dark .ng-profile-slug-input > span {
  border-right-color: #263850;
  background: #111f30;
  color: #70859d;
}
body.dark .ng-profile-edit-showcase { border-top-color: #1d2c40; }
body.dark .ng-profile-secret {
  border-color: #22334a;
  background: #0b1523;
}
body.dark .ng-profile-secret__art { background: linear-gradient(160deg, #101d2c, #0c1623); }
body.dark .ng-profile-secret__body { border-top-color: #1d2c40; }
body.dark .ng-profile-secret__body strong { color: #dce7f4; }
body.dark .ng-profile-secret__body span { color: #7489a1; }

@media (max-width: 1000px) {
  .ng-profile-secret-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ng-profile-edit-layout { grid-template-columns: 1fr; }
  .ng-profile-cover-editor { grid-template-columns: 1fr; }
  .ng-profile-cover-editor__preview { min-height: 132px; }
  .ng-profile-edit-avatar-block { align-items: flex-start; }
  .ng-profile-edit-avatar-preview { width: 112px; height: 112px; }
  .ng-profile-file-button { width: auto; }
  .ng-profile-edit-showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ng-profile-title-row { display: block; }
  .ng-profile-edit-button { margin-top: 12px; }
  .ng-profile-edit-fields { grid-template-columns: 1fr; }
  .ng-profile-field--wide { grid-column: auto; }
  .ng-profile-edit-section-title { display: block; }
  .ng-profile-edit-section-title span { display: block; margin-top: 5px; }
  .ng-profile-edit-actions { flex-wrap: wrap; }
  .ng-profile-edit-message { width: 100%; margin: 0 0 4px; }
  .ng-profile-secret-grid { grid-template-columns: 1fr; }
  .ng-profile-secret__art,
  .ng-profile-secret__art img { height: 200px; min-height: 200px; }
}

/* NOWGAME profile avatars + compact secrets + avatar cropper · 0.8.30 */
.b-user__toggle.has-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: 2px solid rgba(89, 178, 255, .72);
  border-radius: 50%;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, .08);
}
.b-user__toggle.has-avatar::before,
.b-user__toggle.has-avatar::after { display: none !important; }

.ng-article-hero__author-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(188, 218, 244, .55);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.ng-article-hero__author { gap: 12px; }

.ng-profile-cropper {
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  background: #f4f8fd;
}
.ng-profile-cropper[hidden] { display: none !important; }
.ng-profile-cropper__stage {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 10px;
  overflow: hidden;
  border: 2px solid #2563ff;
  border-radius: 50%;
  background: #0b1220;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 255, .08);
}
.ng-profile-cropper__stage:active { cursor: grabbing; }
.ng-profile-cropper__stage img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
}
.ng-profile-cropper__zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #617289;
  font-size: 9px;
  font-weight: 800;
}
.ng-profile-cropper__zoom input {
  width: 100%;
  accent-color: #2563ff;
}
.ng-profile-cropper > small {
  display: block;
  margin-top: 7px;
  color: #8c9aac;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

/* Secret achievements intentionally use the same card geometry as normal achievements. */
.ng-profile-panel--secrets { margin-top: 18px; }
.ng-profile-secret-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ng-profile-secret {
  min-height: 148px;
  overflow: hidden;
}
.ng-profile-secret__art {
  min-height: 120px;
  overflow: hidden;
}
.ng-profile-secret__art img {
  width: 96px;
  height: 108px;
  object-fit: contain;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.ng-profile-secret__body {
  min-height: 0;
  padding: 3px 2px 2px;
  border: 0;
}
.ng-profile-secret__mystery {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(5, 12, 24, .72);
  color: #e7edf7;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .12em;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(37, 99, 255, .65);
}
.ng-profile-secret.is-locked:hover .ng-profile-secret__mystery,
.ng-profile-secret.is-locked:focus-within .ng-profile-secret__mystery { opacity: 1; }
.ng-profile-secret.is-locked:hover .ng-profile-secret__art img {
  transform: scale(1.03);
  filter: brightness(.7);
}
.ng-profile-secret.is-unlocked { box-shadow: inset 0 -2px 0 #2563ff; }

body.dark .ng-profile-cropper {
  border-color: #253850;
  background: #0a1421;
}
body.dark .ng-profile-cropper__zoom { color: #8ea1b8; }
body.dark .ng-profile-cropper > small { color: #70849c; }

@media (max-width: 1000px) {
  .ng-profile-secret-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ng-profile-secret-grid { grid-template-columns: 1fr; }
  .ng-profile-secret__art,
  .ng-profile-secret__art img { min-height: 0; }
  .ng-profile-secret__art img { width: 84px; height: 100px; }
}
.b-user__toggle.has-avatar::after { display: none !important; }
.b-user__toggle.has-avatar::before {
  display: block !important;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%) scale(.82);
}
.b-user.open .b-user__toggle.has-avatar,
.b-user__toggle.has-avatar:hover { background-color: transparent !important; }


/* NOWGAME public profiles + header spacing · 0.8.31 */
.s-head .b-user { margin-left: 14px; }
.ng-article-hero__author-link {
  color: inherit;
  text-decoration: none;
  transition: opacity .16s ease;
}
.ng-article-hero__author-link:hover { opacity: .82; }
.b-comment .elem-img-hover[href^="/u/"],
.b-comment .typo-cresc[href^="/u/"] { cursor: pointer; }
@media (max-width: 991px) {
  .s-head .b-user { margin-left: 8px; }
}

/* NOWGAME profile posts + stats placement · 0.8.36 */
.ng-profile-stats--after-achievements {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.ng-profile-stats--after-achievements.ng-profile-stats--own {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.ng-profile-stats--after-achievements .ng-profile-stat {
  padding: 12px 12px;
  border-radius: 13px;
}
.ng-profile-stats--after-achievements .ng-profile-stat strong {
  margin-bottom: 4px;
  font-size: 18px;
}
.ng-profile-stats--after-achievements .ng-profile-stat span {
  display: block;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ng-profile-stat--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ng-profile-stat--link:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 255, .48);
  box-shadow: 0 12px 28px rgba(37, 99, 255, .12);
}
.ng-profile-stat--link:hover strong,
.ng-profile-stat--link:hover span {
  color: #2563ff;
}

.ng-profile-panel--posts {
  margin-top: 18px;
}
.ng-profile-panel--posts .ng-section-material-grid,
.ng-profile-panel--bookmarks .ng-section-material-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ng-profile-posts-close {
  color: #6f829a;
  text-decoration: none;
  transition: color .18s ease;
}
.ng-profile-posts-close:hover {
  color: #2563ff;
}
.ng-profile-posts-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 800;
}
.ng-profile-posts-pagination a {
  color: #2563ff;
  text-decoration: none;
}
.ng-profile-posts-pagination span {
  color: #718096;
}

body.dark .ng-profile-stat--link:hover {
  border-color: rgba(72, 137, 255, .58);
  background: #0d1b2c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
body.dark .ng-profile-stat--link:hover strong,
body.dark .ng-profile-stat--link:hover span,
body.dark .ng-profile-posts-close:hover {
  color: #66a8ff;
}

@media (max-width: 1100px) {
  .ng-profile-stats--after-achievements,
  .ng-profile-stats--after-achievements.ng-profile-stats--own { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-profile-panel--posts .ng-section-material-grid,
  .ng-profile-panel--bookmarks .ng-section-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ng-profile-stats--after-achievements,
  .ng-profile-stats--after-achievements.ng-profile-stats--own { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-profile-panel--posts .ng-section-material-grid,
  .ng-profile-panel--bookmarks .ng-section-material-grid { grid-template-columns: 1fr; }
}

/* 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 profile cover fixed desktop stage · 0.8.47 */
@media (min-width: 1101px) {
  .ng-profile-hero {
    display: block;
    height: 500px;
    min-height: 500px;
    padding: 0;
  }

  .ng-profile-identity {
    position: absolute;
    top: 44px;
    left: 34px;
    right: auto;
    width: 560px;
    max-width: calc(100% - 68px);
    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 {
    display: -webkit-box;
    max-width: 390px;
    max-height: 89px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .ng-profile-progress-card {
    position: absolute;
    left: 34px;
    bottom: 30px;
    width: 560px;
    max-width: calc(100% - 500px);
    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}}

/* === NOWGAME homepage prototype v0.8.82 === */
.ng-home {
  --ng-home-bg: #d9e8ff;
  --ng-home-card: #fff;
  --ng-home-card-soft: #f8faff;
  --ng-home-text: #0b1220;
  --ng-home-muted: #697b91;
  --ng-home-line: #dfe7f1;
  --ng-home-blue: #2563ff;
  background: transparent;
  padding: 0;
  color: var(--ng-home-text);
}
.ng-home__container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 84px 15px 64px;
  background: var(--ng-home-bg);
}
.ng-home__layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.ng-home__layout--single { grid-template-columns: minmax(0, 1fr); }
.ng-home__main { min-width: 0; }
.ng-home__aside { display: grid; gap: 16px; min-width: 0; }

@media (min-width: 761px) and (max-width: 991px) {
  .ng-home__container { max-width: 720px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .ng-home__container { max-width: 960px; }
}

.ng-home-hero {
  position: relative;
  height: 510px;
  min-height: 510px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--ng-home-line);
  border-radius: 20px;
  background: #111827;
  box-shadow: 0 18px 46px rgba(32, 52, 76, .10);
}
.ng-home-hero__track { position: relative; height: 100%; min-height: 0; }
.ng-home-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility .5s ease; }
.ng-home-hero__slide.is-active { position: absolute; inset: 0; opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.ng-home-hero__media { position: absolute; inset: 0; display: block; }
.ng-home-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 6.5s ease; }
.ng-home-hero__slide.is-active .ng-home-hero__media img { transform: scale(1.025); }
.ng-home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 12, 23, .91) 0%, rgba(5, 12, 23, .74) 38%, rgba(5, 12, 23, .28) 70%, rgba(5, 12, 23, .10) 100%),
              linear-gradient(0deg, rgba(5, 12, 23, .42), transparent 52%);
  pointer-events: none;
}
.ng-home-hero__content {
  position: relative;
  z-index: 2;
  width: min(650px, 68%);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 38px 44px 38px;
  color: #fff;
}
.ng-home-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; background: var(--ng-home-blue); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(37, 99, 255, .25); }
.ng-home-hero__title { margin: 13px 0 18px; font-size: clamp(32px, 2.25vw, 43px); line-height: 1.03; font-weight: 850; letter-spacing: -.04em; }
.ng-home-hero__title a { color: #fff !important; text-decoration: none !important; }
.ng-home-hero__content > p { margin: 0; max-width: 590px; color: #cbd7e5; font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ng-home-hero__footer { width: 100%; margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 18px; flex: 0 0 auto; flex-wrap: wrap; }
.ng-home-primary { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border-radius: 12px; background: #fff; color: #111827 !important; font-size: 14px; font-weight: 800; text-decoration: none !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.ng-home-primary:hover { background: #eaf2ff; color: var(--ng-home-blue) !important; transform: translateY(-1px); }
.ng-home-meta { display: flex; align-items: center; gap: 14px; color: #a9b8c9; font-size: 13px; font-weight: 600; }
.ng-home-meta__comments { display: inline-flex; align-items: center; gap: 5px; }
.ng-home-meta__comments::before { content: ""; width: 13px; height: 10px; border: 1.7px solid currentColor; border-radius: 4px; box-sizing: border-box; }
.ng-home-hero__controls { position: absolute; z-index: 5; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ng-home-hero__arrow { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.20); border-radius: 50%; background: rgba(5,12,23,.58); color: #fff; font: 400 25px/1 Arial,sans-serif; cursor: pointer; backdrop-filter: blur(8px); transition: background .18s ease, border-color .18s ease; }
.ng-home-hero__arrow:hover { background: rgba(37,99,255,.92); border-color: rgba(255,255,255,.28); }
.ng-home-hero__dots { display: flex; align-items: center; gap: 6px; }
.ng-home-hero__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.38); cursor: pointer; transition: width .22s ease, background .22s ease; }
.ng-home-hero__dot.is-active { width: 24px; background: #fff; }
.ng-home-hero__counter { min-width: 44px; color: rgba(255,255,255,.70); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.ng-home-hero__counter b { color: #fff; }

.ng-home-section { margin-top: 28px; }
.ng-home-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 15px; }
.ng-home-section__head > div { position: relative; padding-left: 16px; }
.ng-home-section__head > div::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 1px; width: 4px; border-radius: 4px; background: var(--ng-home-blue); }
.ng-home-section__eyebrow { display: block; margin-bottom: 3px; color: var(--ng-home-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.ng-home-section__head h2 { color: var(--ng-home-text); font-size: 25px; line-height: 1.1; font-weight: 850; letter-spacing: -.025em; }
.ng-home-section__head > a { color: var(--ng-home-blue) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.ng-home-section__head > a span { margin-left: 5px; }

.ng-home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ng-home-news-card { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); box-shadow: 0 8px 24px rgba(32, 52, 76, .045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ng-home-news-card:hover { transform: translateY(-2px); border-color: #c5d6ea; box-shadow: 0 12px 28px rgba(32, 52, 76, .08); }
.ng-home-news-card__image { position: relative; display: block; aspect-ratio: 16 / 6.5; overflow: hidden; background: #dfe7f1; }
.ng-home-news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ng-home-news-card:hover .ng-home-news-card__image img { transform: scale(1.025); }
.ng-home-news-card__image > span { position: absolute; left: 10px; top: 10px; padding: 5px 7px; border-radius: 7px; background: rgba(11, 18, 32, .82); color: #fff; font-size: 8px; line-height: 1; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.ng-home-news-card__body { min-height: 88px; box-sizing: border-box; display: flex; flex-direction: column; padding: 12px 13px 11px; }
.ng-home-news-card h3 { min-height: 36px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; font-weight: 750; }
.ng-home-news-card h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-news-card h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-news-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; color: var(--ng-home-muted); font-size: 10px; }

.ng-home-trending,
.ng-home-support,
.ng-home-ad { border: 1px solid var(--ng-home-line); border-radius: 20px; background: var(--ng-home-card); box-shadow: 0 8px 24px rgba(32, 52, 76, .045); }
.ng-home-trending { height: 510px; min-height: 510px; box-sizing: border-box; padding: 18px; display: flex; flex-direction: column; }
.ng-home-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--ng-home-line); }
.ng-home-aside-head > div { display: flex; align-items: center; gap: 9px; }
.ng-home-aside-head__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: #eaf1ff; color: var(--ng-home-blue); font-weight: 900; }
.ng-home-aside-head h2 { font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.ng-home-aside-head > a { color: var(--ng-home-blue) !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.ng-home-trending__list { flex: 1; display: grid; grid-template-rows: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 4px 0 0; }
.ng-home-trending__list > li { display: grid; grid-template-columns: 28px 68px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f6; min-height: 0; }
.ng-home-trending__list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.ng-home-trending__number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 10px; background: var(--ng-home-card-soft); color: #718399; font-size: 12px; font-weight: 850; }
.ng-home-trending__list > li:first-child .ng-home-trending__number { background: var(--ng-home-blue); color: #fff; }
.ng-home-trending__thumb { display: block; width: 68px; height: 52px; border-radius: 10px; overflow: hidden; background: #e6edf6; }
.ng-home-trending__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ng-home-trending__body { min-width: 0; }
.ng-home-trending__body > a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ng-home-text) !important; font-size: 13px; line-height: 1.35; font-weight: 750; text-decoration: none !important; }
.ng-home-trending__body > a:hover { color: var(--ng-home-blue) !important; }
.ng-home-trending__body > span { display: block; margin-top: 4px; color: var(--ng-home-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.ng-home-support { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 66px; min-height: 196px; margin-top: 12px; padding: 24px 20px; color: var(--ng-home-text); }
.ng-home-support::after { content: ""; position: absolute; right: -40px; top: -52px; width: 132px; height: 132px; border-radius: 50%; background: rgba(37, 99, 255, .10); pointer-events: none; }
.ng-home-support > div:not(.ng-home-support__mark) { position: relative; z-index: 2; grid-column: 1; grid-row: 1; min-width: 0; align-self: center; }
.ng-home-support__eyebrow { color: #6f9fff; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.ng-home-support h2 { margin-top: 5px; font-size: 20px; line-height: 1.1; font-weight: 850; }
.ng-home-support p { margin-top: 10px; max-width: 225px; color: var(--ng-home-muted); font-size: 12px; line-height: 1.5; }
.ng-home-support a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 13px; border-radius: 10px; background: var(--ng-home-blue); color: #fff !important; font-size: 11px; font-weight: 800; text-decoration: none !important; }
.ng-home-support a:hover { background: #3974ff; }
.ng-home-support__mark { position: relative; z-index: 2; grid-column: 2; grid-row: 1; align-self: center; justify-self: end; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card-soft); color: var(--ng-home-text); font-size: 16px; font-weight: 900; letter-spacing: -.04em; }
.ng-home-ad { position: relative; min-height: 108px; padding: 18px 20px; overflow: hidden; background: var(--ng-home-card-soft); color: var(--ng-home-text); }
.ng-home-ad::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 4px; background: var(--ng-home-blue); opacity: .42; }
.ng-home-ad--alt { background: var(--ng-home-card-soft); }
.ng-home-ad--alt::after { opacity: .24; }
.ng-home-ad span, .ng-home-ad strong, .ng-home-ad small { position: relative; z-index: 2; display: block; max-width: 230px; }
.ng-home-ad span { color: var(--ng-home-muted); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ng-home-ad strong { margin-top: 7px; font-size: 16px; line-height: 1.18; font-weight: 850; }
.ng-home-ad small { margin-top: 7px; color: var(--ng-home-muted); font-size: 10px; }
.ng-home-empty, .ng-home-aside-empty { padding: 24px; border: 1px dashed var(--ng-home-line); border-radius: 16px; background: var(--ng-home-card-soft); color: var(--ng-home-muted); font-size: 13px; }
.ng-home-aside-empty { margin-top: 14px; padding: 18px; }

/* Rendering slot for future Admin 2.0 managed homepage content sections. */
.ng-home-custom { display: grid; gap: 30px; margin-top: 30px; }
.ng-home-custom:empty { display: none; }
.ng-home-custom-section { min-width: 0; }
.ng-home-custom-section__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }


/* === Homepage content-section model v0.8.92 === */
.ng-home-model { display: grid; gap: 42px; margin-top: 42px; }
.ng-home-model-section { min-width: 0; }
.ng-home-model-section__head { margin-bottom: 18px; }
.ng-home-model-section__actions { display: flex; align-items: center; gap: 12px; }
.ng-home-model-section__actions > a { color: var(--ng-home-blue) !important; font-size: 13px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.ng-home-model-section__actions > a span { margin-left: 5px; }
.ng-home-model-section + .ng-home-model-section { padding-top: 2px; }
.ng-home-model-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 7px; background: rgba(8,17,31,.82); color: #fff; font-size: 8px; line-height: 1; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.ng-home-model-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ng-home-muted); font-size: 10px; }

.ng-home-feature-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; min-height: 438px; }
.ng-home-feature-main { position: relative; min-height: 438px; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 20px; background: var(--ng-home-card); }
.ng-home-feature-main__media { position: absolute; inset: 0; display: block; }
.ng-home-feature-main__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ng-home-feature-main:hover .ng-home-feature-main__media img { transform: scale(1.025); }
.ng-home-feature-main__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,23,.94) 0%, rgba(5,12,23,.58) 48%, rgba(5,12,23,.08) 82%); pointer-events: none; }
.ng-home-feature-main__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px 30px; color: #fff; }
.ng-home-feature-main__body h3 { margin-top: 11px; max-width: 760px; font-size: clamp(25px, 2.1vw, 34px); line-height: 1.08; font-weight: 850; letter-spacing: -.03em; }
.ng-home-feature-main__body h3 a { color: #fff !important; text-decoration: none !important; }
.ng-home-feature-main__body p { margin: 10px 0 16px; max-width: 660px; color: #c6d2df; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ng-home-feature-main .ng-home-model-meta { justify-content: flex-start; gap: 16px; color: #b5c3d2; }
.ng-home-feature-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ng-home-feature-small { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); transition: transform .2s ease, border-color .2s ease; }
.ng-home-feature-small:hover { transform: translateY(-2px); border-color: #315173; }
.ng-home-feature-small__media { position: relative; display: block; aspect-ratio: 16 / 8.7; overflow: hidden; background: var(--ng-home-card-soft); }
.ng-home-feature-small__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ng-home-feature-small:hover img { transform: scale(1.025); }
.ng-home-feature-small__media .ng-home-model-badge { position: absolute; left: 10px; top: 10px; }
.ng-home-feature-small__body { min-height: 94px; box-sizing: border-box; display: flex; flex-direction: column; padding: 11px 12px; }
.ng-home-feature-small h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; font-weight: 780; }
.ng-home-feature-small h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-feature-small h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-feature-small .ng-home-model-meta { margin-top: auto; padding-top: 8px; }

.ng-home-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ng-home-content-card { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); transition: transform .2s ease, border-color .2s ease; }
.ng-home-content-card:hover { transform: translateY(-2px); border-color: #315173; }
.ng-home-content-card__media { position: relative; display: block; aspect-ratio: 16 / 8.6; overflow: hidden; background: var(--ng-home-card-soft); }
.ng-home-content-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.ng-home-content-card:hover .ng-home-content-card__media img { transform: scale(1.025); }
.ng-home-content-card__media .ng-home-model-badge { position: absolute; left: 11px; top: 11px; }
.ng-home-content-card__body { min-height: 142px; box-sizing: border-box; display: flex; flex-direction: column; padding: 14px 15px 13px; }
.ng-home-content-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; line-height: 1.32; font-weight: 800; }
.ng-home-content-card h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-content-card h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-content-card p { margin: 8px 0 12px; color: var(--ng-home-muted); font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ng-home-content-card .ng-home-model-meta { margin-top: auto; }

.ng-home-strip-shell { min-width: 0; overflow: hidden; }
.ng-home-strip-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 42px) / 4); gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.ng-home-strip-grid::-webkit-scrollbar { display: none; }
.ng-home-strip-card { scroll-snap-align: start; }
.ng-home-strip-controls { display: flex; align-items: center; gap: 7px; }
.ng-home-strip-controls button { width: 34px; height: 34px; border: 1px solid var(--ng-home-line); border-radius: 10px; background: var(--ng-home-card); color: var(--ng-home-text); font-size: 23px; line-height: 1; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease; }
.ng-home-strip-controls button:hover:not(:disabled) { border-color: var(--ng-home-blue); color: #fff; background: var(--ng-home-blue); }
.ng-home-strip-controls button:disabled { opacity: .35; cursor: default; }
.ng-home-strip-card { min-width: 0; overflow: hidden; border: 1px solid var(--ng-home-line); border-radius: 18px; background: var(--ng-home-card); transition: transform .2s ease, border-color .2s ease; }
.ng-home-strip-card:hover { transform: translateY(-2px); border-color: #315173; }
.ng-home-strip-card__media { position: relative; display: block; aspect-ratio: 16 / 9.2; overflow: hidden; background: var(--ng-home-card-soft); }
.ng-home-strip-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.ng-home-strip-card:hover .ng-home-strip-card__media img { transform: scale(1.025); }
.ng-home-strip-card__media .ng-home-model-badge { position: absolute; left: 10px; top: 10px; }
.ng-home-strip-card__body { min-height: 106px; box-sizing: border-box; display: flex; flex-direction: column; padding: 12px 13px; }
.ng-home-strip-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; line-height: 1.35; font-weight: 780; }
.ng-home-strip-card h3 a { color: var(--ng-home-text) !important; text-decoration: none !important; }
.ng-home-strip-card h3 a:hover { color: var(--ng-home-blue) !important; }
.ng-home-strip-card .ng-home-model-meta { margin-top: auto; padding-top: 10px; }

body.dark .ng-home { --ng-home-bg: radial-gradient(circle at 50% 0%, rgba(37, 99, 255, .10), transparent 38%), linear-gradient(180deg, #0c162e 0%, #0d1729 52%, #0c1627 100%); --ng-home-card: #101a27; --ng-home-card-soft: #132131; --ng-home-text: #e7edf7; --ng-home-muted: #91a6ba; --ng-home-line: #23364a; background: transparent; }
body.dark .ng-home__container { border-left: 1px solid #262b2e; border-right: 1px solid #262b2e; }
body.dark .ng-home-hero { border-color: #26394f; box-shadow: none; }
body.dark .ng-home-news-card, body.dark .ng-home-trending, body.dark .ng-home-support, body.dark .ng-home-ad { box-shadow: none; }
body.dark .ng-home-news-card:hover { border-color: #315173; box-shadow: none; }
body.dark .ng-home-trending__list > li { border-bottom-color: #17283b; }
body.dark .ng-home-aside-head__icon { background: #142b49; color: #63a7ff; }
body.dark .ng-home-news-card__image, body.dark .ng-home-trending__thumb { background: #17283b; }

@media (max-width: 1240px) {
  .ng-home__layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .ng-home-hero__content { width: 72%; padding-left: 38px; padding-right: 34px; }
  .ng-home-trending__list > li { grid-template-columns: 26px 58px minmax(0,1fr); gap: 8px; }
  .ng-home-trending__thumb { width: 58px; height: 46px; }
}
@media (max-width: 1040px) {
  .ng-home-strip-grid { grid-auto-columns: calc((100% - 28px) / 3); }
  .ng-home__container { padding-top: 78px; }
  .ng-home__layout { grid-template-columns: 1fr; }
  .ng-home__aside { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
  .ng-home-trending { grid-row: span 2; height: auto; min-height: auto; }
  .ng-home-support { margin-top: 0; }
  .ng-home-trending__list { display: block; }
  .ng-home-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-home-custom-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ng-home {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: var(--ng-home-bg);
  }
  .ng-home__container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 72px 12px 42px;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .ng-home__layout {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .ng-home__main,
  .ng-home__aside,
  .ng-home-model,
  .ng-home-custom,
  .ng-home-model-section,
  .ng-home-custom-section,
  .ng-home-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .ng-home__aside,
  .ng-home-feature-side,
  .ng-home-content-grid,
  .ng-home-news-grid,
  .ng-home-custom-section__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ng-home-trending { grid-row: auto; }
  .ng-home-model { gap: 32px; margin-top: 32px; }
  .ng-home-model-section__actions { gap: 8px; }

  .ng-home-hero {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: clamp(420px, 115vw, 520px);
    min-height: 0;
    border-radius: 18px;
  }
  .ng-home-hero__track { height: 100%; min-height: 0; }
  .ng-home-hero__shade { background: linear-gradient(0deg, rgba(5,12,23,.94) 0%, rgba(5,12,23,.72) 58%, rgba(5,12,23,.20) 100%); }
  .ng-home-hero__content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    justify-content: flex-end;
    padding: clamp(18px, 5vw, 26px) clamp(16px, 5vw, 24px) 66px;
  }
  .ng-home-hero__title {
    max-width: 100%;
    margin: 11px 0 13px;
    font-size: clamp(25px, 7.4vw, 32px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }
  .ng-home-hero__content > p {
    max-width: 100%;
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }
  .ng-home-hero__footer { width: 100%; margin-top: auto; padding-top: 14px; gap: 12px; }
  .ng-home-primary { max-width: 100%; min-height: 44px; padding: 0 16px; }
  .ng-home-meta { width: 100%; gap: 12px; }
  .ng-home-hero__controls { left: 16px; right: 16px; bottom: 16px; justify-content: flex-start; gap: 8px; }
  .ng-home-hero__counter { min-width: 38px; margin-right: auto; }
  .ng-home-hero__arrow { flex: 0 0 32px; width: 32px; height: 32px; }

  .ng-home-section { margin-top: 26px; }
  .ng-home-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }
  .ng-home-section__head > div { min-width: 0; padding-left: 14px; }
  .ng-home-section__eyebrow { display: none; }
  .ng-home-section__head h2 {
    min-width: 0;
    font-size: clamp(20px, 5.8vw, 24px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .ng-home-section__head > a {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(10px, 3vw, 12px);
    white-space: nowrap;
  }

  .ng-home-news-card,
  .ng-home-feature-main,
  .ng-home-feature-small,
  .ng-home-content-card,
  .ng-home-strip-card,
  .ng-home-trending,
  .ng-home-support,
  .ng-home-ad {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .ng-home-news-card__image { aspect-ratio: 16 / 8.6; }
  .ng-home-news-card__body { min-width: 0; padding: 12px; }
  .ng-home-news-card h3,
  .ng-home-news-card h3 a,
  .ng-home-feature-main h3,
  .ng-home-feature-main h3 a,
  .ng-home-feature-small h3,
  .ng-home-feature-small h3 a,
  .ng-home-content-card h3,
  .ng-home-content-card h3 a,
  .ng-home-strip-card h3,
  .ng-home-strip-card h3 a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .ng-home-news-card h3 { min-height: 0; font-size: 14px; }

  .ng-home-feature-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ng-home-feature-main { min-height: 0; }
  .ng-home-feature-main__body { padding: 22px 18px; }
  .ng-home-feature-main__body h3 { font-size: clamp(22px, 6vw, 28px); }
  .ng-home-strip-grid { grid-auto-columns: min(86%, 360px); }
  .ng-home-seo { margin-top: 32px; padding: 24px 18px 26px; }
}
@media (max-width: 380px) {
  .ng-home__container { padding-left: 10px; padding-right: 10px; }
  .ng-home-hero__content { padding-left: 16px; padding-right: 16px; }
  .ng-home-section__head { gap: 8px; }
  .ng-home-section__head > a { font-size: 10px; }
  .ng-home-primary { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-home-hero__slide, .ng-home-hero__media img { transition: none; }
}


/* v0.8.96 — SEO copy at the bottom of the homepage; one-way expand. */
.ng-home-seo {
  margin-top: 42px;
  padding: 30px 32px 32px;
  border-top: 1px solid var(--ng-home-line);
  background: color-mix(in srgb, var(--ng-home-card) 72%, transparent);
}
.ng-home-seo__inner { max-width: 980px; }
.ng-home-seo__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--ng-home-blue);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ng-home-seo h2 {
  margin: 0 0 16px;
  color: var(--ng-home-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.02em;
}
.ng-home-seo p {
  margin: 0 0 14px;
  color: var(--ng-home-muted);
  font-size: 14px;
  line-height: 1.72;
}
.ng-home-seo p:last-child { margin-bottom: 0; }
.ng-home-seo a {
  color: var(--ng-home-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.ng-home-seo a:hover { text-decoration: underline !important; }
.ng-home-seo__details { margin-top: 2px; }
.ng-home-seo__details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 2px;
  padding: 0;
  color: var(--ng-home-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ng-home-seo__details summary::-webkit-details-marker { display: none; }
.ng-home-seo__summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ng-home-line);
  border-radius: 50%;
  font-size: 12px;
  transition: transform .2s ease, border-color .2s ease;
}
.ng-home-seo__details[open] summary { display: none; }
.ng-home-seo__rest { padding-top: 8px; }

@media (max-width: 760px) {
  .ng-home-seo { margin-top: 32px; padding: 24px 20px 26px; }
  .ng-home-seo h2 { font-size: 21px; }
  .ng-home-seo p { font-size: 13px; line-height: 1.65; }
}

/* ========================================================================== 
   v0.8.98 — Articles / Reviews navigation group
   ========================================================================== */
.s-head,
.s-head .b-head,
.s-head .e-menu--main,
.s-head .e-menu--main > li {
  overflow: visible;
}

.s-head .e-menu--main > li.ng-nav-dropdown-item {
  position: relative;
}

.ng-nav-dropdown {
  position: relative;
  height: 62px;
}

.ng-nav-dropdown > summary {
  list-style: none;
  cursor: pointer;
  gap: 8px;
  user-select: none;
}

.ng-nav-dropdown > summary::-webkit-details-marker,
.ng-mobile-nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.ng-nav-dropdown > summary::marker,
.ng-mobile-nav-dropdown > summary::marker {
  content: '';
}

.ng-nav-dropdown__chevron {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .72;
  transition: transform .16s ease, margin .16s ease;
}

.ng-nav-dropdown[open] > summary .ng-nav-dropdown__chevron,
.ng-mobile-nav-dropdown[open] > summary .ng-nav-dropdown__chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.ng-nav-dropdown__panel {
  position: absolute;
  z-index: 1300;
  top: 56px;
  left: 50%;
  width: 246px;
  padding: 8px;
  border: 1px solid rgba(15, 32, 57, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 32, 57, .18);
  transform: translateX(-50%);
}

.ng-nav-dropdown__panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: #172235 !important;
  line-height: 1.3;
}

.ng-nav-dropdown__panel a + a {
  margin-top: 3px;
}

.ng-nav-dropdown__panel a:hover,
.ng-nav-dropdown__panel a.is-active {
  background: rgba(37, 99, 255, .08);
  color: #2563ff !important;
}

.ng-nav-dropdown__panel strong,
.ng-nav-dropdown__panel small {
  display: block;
}

.ng-nav-dropdown__panel strong {
  font-size: 13px;
  font-weight: 800;
}

.ng-nav-dropdown__panel small {
  margin-top: 3px;
  color: #728197;
  font-size: 10px;
  font-weight: 600;
}

body.dark .ng-nav-dropdown__panel {
  border-color: #24374d;
  background: #0f1b2c;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .42);
}

body.dark .ng-nav-dropdown__panel a {
  color: #d6e1ee !important;
}

body.dark .ng-nav-dropdown__panel a:hover,
body.dark .ng-nav-dropdown__panel a.is-active {
  background: #162842;
  color: #fff !important;
}

body.dark .ng-nav-dropdown__panel small {
  color: #7890aa;
}

.ng-mobile-nav-dropdown > summary {
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}

.ng-mobile-nav-dropdown__panel {
  display: grid;
  gap: 4px;
  margin: 2px 8px 8px 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(37, 99, 255, .34);
}

.ng-mobile-nav-dropdown__panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #d3dfed;
  font-size: 13px;
  font-weight: 700;
}

.ng-mobile-nav-dropdown__panel a:hover,
.ng-mobile-nav-dropdown__panel a:active {
  background: #142237;
  color: #fff;
}

/* 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;
  }
}

/* v0.9.08 — SEO copy blocks at the bottom of public section pages. */
.ng-section-seo-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px 52px;
  background: #fff;
}
.ng-section-seo {
  --ng-section-seo-text: #0b1220;
  --ng-section-seo-muted: #60758d;
  --ng-section-seo-line: #dfe7f1;
  --ng-section-seo-card: #f8faff;
  --ng-section-seo-blue: #2563ff;
  padding: 30px 32px 32px;
  border-top: 1px solid var(--ng-section-seo-line);
  background: var(--ng-section-seo-card);
}
.ng-section-seo__inner { max-width: 980px; }
.ng-section-seo__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--ng-section-seo-blue);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ng-section-seo h2 {
  margin: 0 0 16px;
  color: var(--ng-section-seo-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.02em;
}
.ng-section-seo p {
  margin: 0 0 14px;
  color: var(--ng-section-seo-muted);
  font-size: 14px;
  line-height: 1.72;
}
.ng-section-seo p:last-child { margin-bottom: 0; }
.ng-section-seo a {
  color: var(--ng-section-seo-blue) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.ng-section-seo a:hover { text-decoration: underline !important; }
.ng-section-seo__details { margin-top: 2px; }
.ng-section-seo__details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 2px;
  padding: 0;
  color: var(--ng-section-seo-blue);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ng-section-seo__details summary::-webkit-details-marker { display: none; }
.ng-section-seo__summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ng-section-seo-line);
  border-radius: 50%;
  font-size: 12px;
}
.ng-section-seo__details[open] summary { display: none; }
.ng-section-seo__rest { padding-top: 8px; }

body.dark .ng-section-seo-wrap { background: #0d1624; }
body.dark .ng-section-seo {
  --ng-section-seo-text: #e7edf7;
  --ng-section-seo-muted: #91a6ba;
  --ng-section-seo-line: #23364a;
  --ng-section-seo-card: rgba(16, 26, 39, .72);
}

@media (max-width: 760px) {
  .ng-section-seo-wrap { padding: 0 0 36px; }
  .ng-section-seo { padding: 24px 20px 26px; }
  .ng-section-seo h2 { font-size: 21px; }
  .ng-section-seo p { font-size: 13px; line-height: 1.65; }
}

/* 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 {
  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 — contacts page refresh. */
.ng-contact-page {
  padding: 56px 20px 8px;
}
.ng-contact-page__inner {
  width: min(1170px, 100%);
  margin: 0 auto;
}
.ng-contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #d9e3ef;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(37,99,255,.16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f3f7fc 100%);
  box-shadow: 0 22px 70px rgba(15,23,42,.08);
}
.ng-contact-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(37,99,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(37,99,255,.035), 0 0 0 82px rgba(37,99,255,.025);
  pointer-events: none;
}
.ng-contact-hero__eyebrow,
.ng-contact-card__head > span,
.ng-contact-info__kicker {
  display: block;
  color: #2563ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ng-contact-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-top: 12px;
  color: #0f172a;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}
.ng-contact-hero p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-top: 20px;
  color: #64748b;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
}
.ng-contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  margin-top: 22px;
}
.ng-contact-info,
.ng-contact-card {
  border: 1px solid #d9e3ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15,23,42,.06);
}
.ng-contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3.5vw, 40px);
}
.ng-contact-info__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid rgba(37,99,255,.22);
  border-radius: 17px;
  background: #edf4ff;
  color: #2563ff;
}
.ng-contact-info__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ng-contact-info h2 {
  margin-top: 8px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.ng-contact-info > div > p {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}
.ng-contact-info__points {
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 34px;
}
.ng-contact-info__points > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid #e6edf5;
}
.ng-contact-info__points > div > span {
  color: #2563ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}
.ng-contact-info__points p {
  display: grid;
  gap: 4px;
}
.ng-contact-info__points strong {
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
}
.ng-contact-info__points small {
  color: #7b899d;
  font-size: 12px;
  line-height: 1.55;
}
.ng-contact-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 44px);
}
.ng-contact-card__head {
  margin-bottom: 28px;
}
.ng-contact-card__head h2 {
  margin-top: 8px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.ng-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ng-contact-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.ng-contact-field:nth-of-type(3) {
  grid-column: 1 / -1;
}
.ng-contact-field > span {
  color: #344256;
  font-size: 13px;
  font-weight: 700;
}
.ng-contact-field input,
.ng-contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d6e0ec;
  border-radius: 14px;
  background: #f8fafc;
  color: #172033;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ng-contact-field input {
  height: 52px;
  padding: 0 16px;
}
.ng-contact-field textarea {
  min-height: 168px;
  padding: 15px 16px;
  resize: vertical;
}
.ng-contact-field input::placeholder,
.ng-contact-field textarea::placeholder {
  color: #9aa7b8;
}
.ng-contact-field input:hover,
.ng-contact-field textarea:hover {
  border-color: #b8c8da;
}
.ng-contact-field input:focus,
.ng-contact-field textarea:focus {
  border-color: #2563ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,255,.11);
}
.ng-contact-captcha {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
}
.ng-contact-form__footer {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 54px;
  margin-top: 2px;
}
.ng-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 172px;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: #2563ff;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37,99,255,.22);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.ng-contact-submit:hover {
  background: #174fd7;
  box-shadow: 0 12px 30px rgba(37,99,255,.28);
  transform: translateY(-1px);
}
.ng-contact-submit:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
}
.ng-contact-form__loader.cssload-loader {
  position: absolute;
  left: auto;
  right: 188px;
  width: 34px;
  height: 34px;
  margin: 0;
  perspective: 260px;
}
.ng-contact-form__loader .cssload-inner.cssload-one { border-bottom-color: #2563ff; }
.ng-contact-form__loader .cssload-inner.cssload-two { border-right-color: #7aa5ff; }
.ng-contact-form__loader .cssload-inner.cssload-three { border-top-color: #bfdbfe; }

body.dark .ng-contact-hero {
  border-color: #1d2e45;
  background:
    radial-gradient(circle at 92% 12%, rgba(37,99,255,.2), transparent 34%),
    linear-gradient(135deg, #0b1728 0%, #0a1321 100%);
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
body.dark .ng-contact-hero h1,
body.dark .ng-contact-info h2,
body.dark .ng-contact-card__head h2 { color: #f2f6fc; }
body.dark .ng-contact-hero p,
body.dark .ng-contact-info > div > p { color: #91a2b8; }
body.dark .ng-contact-info,
body.dark .ng-contact-card {
  border-color: #1d2e45;
  background: #0b1626;
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
}
body.dark .ng-contact-info__icon {
  border-color: rgba(67,119,255,.3);
  background: #102442;
}
body.dark .ng-contact-info__points > div { border-top-color: #1d2e45; }
body.dark .ng-contact-info__points strong { color: #e7edf7; }
body.dark .ng-contact-info__points small { color: #7f91a8; }
body.dark .ng-contact-field > span { color: #c5d0df; }
body.dark .ng-contact-field input,
body.dark .ng-contact-field textarea {
  border-color: #25364d;
  background: #0d1b2d;
  color: #ecf2fa;
}
body.dark .ng-contact-field input::placeholder,
body.dark .ng-contact-field textarea::placeholder { color: #60738c; }
body.dark .ng-contact-field input:hover,
body.dark .ng-contact-field textarea:hover { border-color: #355276; }
body.dark .ng-contact-field input:focus,
body.dark .ng-contact-field textarea:focus {
  border-color: #2563ff;
  background: #0e1d31;
}

/* 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;
  }
}
