/* Точка входу стилів. Порядок: токени → база → макет → компоненти → сторінки. */
/* montserrat-latin-800-normal */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src:
    url(/assets/fonts/montserrat-latin-800-normal.axpkC1rd.woff2) format("woff2"),
    url(/assets/fonts/montserrat-latin-800-normal.C3dfDxXV.woff) format("woff");
}

/* Дизайн-токени: кольори, шрифти, розміри. */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f4fb;
  --surface: #ffffff;
  --text: #1d1530;
  --muted: #625a75;
  --border: #ece6f3;
  --accent: #c81e63; /* рожевий з логотипа гри, контраст 5.5:1 */
  --accent-2: #6a35d0; /* фіолетовий */
  --night: #1d1530; /* шапка, футер */
  --sunset: linear-gradient(100deg, #ff9a3c 0%, #ff4f8b 45%, #7b3fe4 100%);
  --sky: linear-gradient(160deg, #7fd3e0 0%, #b9a6f2 55%, #ff9fc3 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(29 21 48 / 6%), 0 6px 20px rgb(29 21 48 / 7%);
  --font-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
/* Базові стилі: скидання, типографіка, утиліти. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font-body);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-2);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
}
h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
}
h3 {
  font-size: 1.15rem;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.icon {
  flex: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.page {
  max-width: 760px;
  padding-top: 28px;
}
.empty {
  color: var(--muted);
}
@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* атрибут hidden завжди ховає, навіть якщо клас задає display */
[hidden] {
  display: none !important;
}

/* Шапка: логотип, пошук, меню категорій. */
.site-header {
  background: var(--night);
  color: #fff;
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--sunset);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}
.logo {
  display: block;
  flex: none;
  line-height: 0;
}
.logo img {
  display: block;
}
.header-top {
  padding-top: 8px;
  padding-bottom: 8px;
}
.site-footer .logo {
  margin-bottom: 6px;
}
.header-search {
  margin-left: auto;
  display: flex;
  flex: 0 1 360px;
}
.header-search input {
  width: 100%;
  border: 0;
  border-radius: 999px 0 0 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 15px;
  background: #2c2244;
  color: #fff;
}
.header-search input::placeholder {
  color: #b7aecb;
}
.header-search button {
  border: 0;
  border-radius: 0 999px 999px 0;
  padding: 0 14px;
  background: #2c2244;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 14px 10px;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #e7e2f1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: #2c2244;
  color: #fff;
}
.nav a[aria-current="page"] .icon {
  color: #ff7aa8;
}
/* «Більше»: пункти, що не влазять у рядок на ПК, переносяться сюди скриптом nav-more */
.nav-more {
  position: relative;
  flex: none;
}
.nav-more > button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #e7e2f1;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.nav-more > button:hover,
.nav-more > button[aria-expanded="true"],
.nav-more.has-current > button {
  background: #2c2244;
  color: #fff;
}
.nav-more > button .icon {
  transition: transform 0.15s;
}
.nav-more > button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.nav-more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: var(--night);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
}
.nav-more > button[aria-expanded="true"] + .nav-more-menu {
  display: grid;
}
.nav-more-menu a {
  padding: 9px 12px;
}
.nav.is-measured {
  overflow: visible;
}

@media (max-width: 640px) {
  .header-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-header .logo img {
    height: 48px;
    width: auto;
  }
  .header-search {
    flex: 1 1 100%;
  }
}
/* Футер. */
.site-footer {
  background: var(--night);
  color: #cfc6e0;
  margin-top: 60px;
  padding: 34px 0;
  font-size: 14px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--sunset);
}
.site-footer a {
  color: #fff;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0;
}
.footer-links a {
  text-decoration: none;
}
.disclaimer {
  max-width: 80ch;
  line-height: 1.6;
}
/* Секції та їх заголовки. */
.section {
  margin: 44px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  position: relative;
  padding-bottom: 8px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--sunset);
}
.section-head a {
  font-weight: 600;
  font-size: 15px;
}
/* Бічна колонка зі списком останніх статей. */
.aside-box {
  position: sticky;
  top: 16px;
}
.aside-box h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--sunset);
  padding: 10px 14px;
  border-radius: 10px;
}
.mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.mini:hover {
  color: var(--accent);
}
.mini-img {
  width: 84px;
  flex: none;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sky);
}
.mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.mini-cat {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

/* Мітки типів контенту і рядок над заголовком: тип · категорія · дата. */
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.kicker time {
  font-weight: 400;
}
.kicker time::before {
  content: "·";
  margin-right: 8px;
}

.type {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--type-fg);
  background: var(--type-bg);
}
.type-guide {
  --type-fg: #5b2bb8;
  --type-bg: #efe8fc;
}
.type-news {
  --type-fg: #0b6b78;
  --type-bg: #e1f4f6;
}
.type-patch {
  --type-fg: #a8370b;
  --type-bg: #fdebe1;
}
.type-article {
  --type-fg: #a8174f;
  --type-bg: #fbe6ee;
}
.type-list {
  --type-fg: #1d1530;
  --type-bg: #ebe9f0;
}
/* на темному тлі (картка Top story) — суцільна заливка */
.top-story .type {
  --type-fg: #fff;
  --type-bg: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  background: #f1ebfd;
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none;
  width: fit-content;
}
a.chip:hover {
  color: var(--accent);
}
/* Картки статей. */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}
.card-media {
  aspect-ratio: 16 / 9;
  background: var(--sky);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-title {
  font: 800 0.98rem/1.3 var(--font-display);
  margin: 0;
}
.card-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgb(255 255 255 / 90%);
  background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / 18%), transparent 55%), var(--sunset);
}
.mini-img .thumb-fallback .icon {
  width: 22px;
  height: 22px;
}
/* Плитки категорій. */
.tiles {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #3a2463, #1d1530);
  isolation: isolate;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.3s;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(29 21 48 / 0%) 30%, rgb(29 21 48 / 88%) 100%);
}
.tile:hover {
  color: #fff;
}
.tile:hover img {
  transform: scale(1.04);
}
.tile-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 0.92rem/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tile-label .icon {
  color: #ff7aa8;
}
.tile-count {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 700;
  background: rgb(29 21 48 / 70%);
  padding: 3px 9px;
  border-radius: 999px;
}
/* Зображення з підписами, галерея, полегшене відео. */
figure {
  margin: 0 0 22px;
}
.figure img {
  border-radius: var(--radius);
  width: 100%;
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
figcaption a {
  color: var(--muted);
}
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery figure {
  margin: 0;
}
.gallery img {
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video button {
  all: unset;
  cursor: pointer;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.video .play {
  position: relative;
  width: 72px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgb(0 0 0 / 35%);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Оцінка сторінки. */
.rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.rate-title {
  font-weight: 700;
  margin: 0;
}
.rate-stars {
  display: flex;
}
.rate-stars button {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #d9d2e6;
  cursor: pointer;
  padding: 2px;
}
.rate-stars button.on,
.rate-stars:hover button {
  color: #f5a524;
}
.rate-stars button:hover ~ button {
  color: #d9d2e6;
}
.rate-stars[aria-disabled="true"] {
  pointer-events: none;
}
.rate-status {
  font-size: 14px;
  color: var(--muted);
}
/* Кнопка «Поділитися» і її список. */
.share {
  position: relative;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.share-btn::-webkit-details-marker {
  display: none;
}
.share-btn:hover,
.share[open] > .share-btn {
  border-color: #d6cce6;
  background: var(--bg-soft);
}
.share-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: grid;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.share-menu a,
.share-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.share-menu a:hover,
.share-menu button:hover {
  background: var(--bg-soft);
}
.share-dot {
  width: 10px;
  height: 10px;
  margin: 0 3px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
/* у рядку мета — компактна, на висоту бейджів */
.meta .share {
  margin-left: auto;
}
.meta .share-btn {
  padding: 5px 12px;
  font-size: 14px;
}
.share-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.share-end p {
  margin: 0;
  font-weight: 700;
}

/* телефон: у рядку мета лише іконка (кнопка не переноситься окремим рядком), без слова «Updated» */
@media (max-width: 640px) {
  .meta .updated-label {
    display: none;
  }
  .meta .share-btn {
    padding: 0;
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 50%;
  }
  .meta .share-label {
    display: none;
  }
}
/* Блок «Cite this page» під джерелами статті. */
.cite {
  margin-top: 16px;
}
.cite-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.cite-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.cite-head span {
  color: var(--muted);
  font-size: 14px;
}
.cite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cite-row code {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cite-btn {
  flex: none;
  min-width: 64px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cite-btn:hover {
  background: var(--bg-soft);
}
/* Збільшення зображень: значок лупи на мініатюрі і повноекранний перегляд. */
.zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
  border-radius: inherit;
}
.zoom-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(29 21 48 / 70%);
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.15s,
    transform 0.15s;
  pointer-events: none;
}
.zoom:hover .zoom-icon,
.zoom:focus-visible .zoom-icon {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .zoom-icon {
    opacity: 0.85;
    transform: none;
    width: 32px;
    height: 32px;
  }
}
.figure .zoom img {
  border-radius: var(--radius);
}
.gallery .zoom img {
  border-radius: 10px;
}

html.lb-open {
  overflow: hidden;
}
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(14 10 24 / 97%);
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgb(14 10 24 / 60%);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
}
.lb-stage {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 0 20px;
  min-width: 0;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 45%);
}
.lb-caption {
  max-width: 900px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #d9d2e8;
}
.lb-alt {
  display: block;
  color: #fff;
}
.lb-alt:empty {
  display: none;
}
.lb-meta {
  color: #b7aecb;
}
.lb-credit {
  color: #b7aecb;
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: auto;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
}
.lb-btn:hover,
.lb-btn:focus-visible {
  background: rgb(255 255 255 / 22%);
}
.lb-prev {
  grid-column: 1;
  grid-row: 1;
}
.lb-next {
  grid-column: 3;
  grid-row: 1;
}
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next,
.lightbox.is-single .lb-count {
  visibility: hidden;
}

@media (max-width: 640px) {
  .lightbox[open] {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }
  .lb-prev,
  .lb-next {
    position: absolute;
    bottom: 18px;
    z-index: 2;
  }
  .lb-prev {
    left: 18px;
  }
  .lb-next {
    right: 18px;
  }
  .lb-stage {
    padding: 56px 8px 80px;
  }
  .lb-img {
    max-height: calc(100dvh - 190px);
    border-radius: 4px;
  }
}
/* Блок-контейнер і список джерел. */
.box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg-soft);
}
.sources ol {
  margin: 8px 0 0;
  padding-left: 1.3em;
  font-size: 15px;
}
.sources li {
  margin: 4px 0;
}
.sources .site {
  color: var(--muted);
}
.sources {
  margin-top: 20px;
}
.sources h2 {
  font-size: 1.15rem;
  margin: 0;
}
.sources .updated {
  margin: 10px 0 0;
}

/* Головна: перший екран, стрічка, категорії. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--night);
  border-radius: 0 0 28px 28px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(29 21 48 / 94%) 0%, rgb(29 21 48 / 78%) 48%, rgb(29 21 48 / 35%) 100%),
    linear-gradient(0deg, rgb(200 30 99 / 35%) 0%, transparent 45%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  padding-top: 56px;
  padding-bottom: 52px;
}
.hero-main,
.top-story {
  min-width: 0;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    min-height: 420px;
  }
}
.hero-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb3cd;
}
.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem);
}
.hero h1 {
  background: linear-gradient(100deg, #fff 0%, #fff 55%, #ffc3d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-intro {
  margin: 0 0 22px;
  max-width: 56ch;
  color: #e7e2f1;
  font-size: 1.05rem;
}
.hero-search {
  display: flex;
  max-width: 580px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 30%);
}
.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 15px 22px;
  font: inherit;
  border-radius: 999px;
  min-width: 0;
  color: var(--text);
}
.hero-search button {
  border: 0;
  margin: 5px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-search button:hover {
  background: #a8164f;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 18%);
}
.hero-chips a:hover {
  background: rgb(255 255 255 / 22%);
  color: #fff;
}
.top-story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  background: rgb(29 21 48 / 62%);
  border: 1px solid rgb(255 255 255 / 16%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}
.top-story:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 35%);
}
.top-story .kicker span:last-child {
  color: #e7e2f1;
}
.top-title {
  font: 800 1.35rem/1.25 var(--font-display);
}
.top-desc {
  color: #e7e2f1;
  font-size: 15px;
  line-height: 1.5;
}
.top-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #ffb3cd;
}
.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 8px;
  margin: 0;
  font-size: 12px;
  color: rgb(255 255 255 / 70%);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 36px;
}
@media (min-width: 1000px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
.feed-wrap .section-head {
  flex-wrap: wrap;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filters button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 5px 13px;
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}
.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.feed-item:first-child {
  padding-top: 0;
}
.feed-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sky);
}
.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.feed-body .kicker a {
  color: var(--muted);
  text-decoration: none;
}
.feed-body .kicker a:hover {
  color: var(--accent);
}
.feed-body time {
  color: var(--muted);
  font-weight: 400;
}
.feed-title {
  font: 800 1.05rem/1.3 var(--font-display);
  color: var(--text);
  text-decoration: none;
}
.feed-title:hover {
  color: var(--accent);
}
.feed-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .feed-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }
  .feed-title {
    font-size: 0.98rem;
  }
  .feed-desc {
    display: none;
  }
}
.cat-box h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.cat-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-box a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.cat-box li:last-child a {
  border-bottom: 0;
}
.cat-box a:hover {
  color: var(--accent);
}
.cat-box .icon {
  color: var(--accent-2);
}
.cat-box .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  padding: 1px 9px;
}
.home-aside .box {
  position: sticky;
  top: 16px;
}

/* «Load more» під стрічкою */
.feed-more {
  display: block;
  margin: 20px auto 0;
  padding: 11px 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.feed-more:hover {
  background: var(--bg-soft);
  border-color: #d6cce6;
}
/* Сторінка статті: сітка, хлібні крихти, мета, текст. */
.layout {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 22px;
  padding-bottom: 40px;
}
@media (min-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
}
.crumbs a {
  color: var(--muted);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.stars {
  color: #f5a524;
  letter-spacing: 1px;
}
.prose {
  max-width: 72ch;
}
.prose > p:first-child {
  font-size: 1.12rem;
}
.prose h2 {
  margin-top: 1.8em;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin: 0.3em 0;
}
.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 15px;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--bg-soft);
}
.prose blockquote {
  margin: 1.2em 0;
  padding: 4px 18px;
  border-left: 4px solid var(--accent-2);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
}
.updated {
  font-size: 14px;
  color: var(--muted);
}
.category-page {
  padding-top: 22px;
}
.category-page .lead {
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 24px;
}

/* Значок «#» біля підзаголовка: посилання на розділ (на ПК видно при наведенні) */
.prose h2,
.prose h3 {
  position: relative;
  scroll-margin-top: 16px;
}
.h-anchor {
  margin-left: 0.35em;
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
  opacity: 0.35;
  transition: opacity 0.15s;
}
.h-anchor:hover,
.h-anchor:focus-visible,
.prose :is(h2, h3):hover .h-anchor {
  opacity: 1;
}
.h-anchor.is-copied::after {
  content: attr(data-copied);
  position: absolute;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--night);
  color: #fff;
  font: 600 12px/1.4 var(--font-body);
  white-space: nowrap;
}
@media (hover: hover) {
  .h-anchor {
    opacity: 0;
  }
}

/* «Quick answer» / «In short» — перший рядок-цитата статті: коротка пряма відповідь */
.prose > blockquote:first-child {
  margin: 0 0 1.4em;
  padding: 14px 18px;
  border: 1px solid #e6dcf5;
  border-left: 4px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(100deg, #fff6ef 0%, #fbf3ff 100%);
  font-size: 1.06rem;
}
.prose > blockquote:first-child p {
  margin: 0;
}
.prose > blockquote:first-child strong:first-child {
  color: var(--accent-2);
}
.prose > blockquote:first-child + p {
  font-size: inherit;
}
/* Сторінка пошуку (Pagefind UI). */
#search {
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-border: var(--border);
  --pagefind-ui-tag: #f1ebfd;
  --pagefind-ui-border-radius: 12px;
  --pagefind-ui-font: var(--font-body);
}
