:root {
  color-scheme: dark;
  --bg: #171717;
  --surface-0: #202020;
  --surface-1: #292929;
  --surface-2: #323232;
  --surface-3: #3a3a3a;
  --hairline: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.54);
  --accent: #4fb0ff;
  --accent-soft: rgba(79, 176, 255, 0.18);
  --success: #35d282;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 10px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(79, 176, 255, 0.16), transparent 28%),
    radial-gradient(circle at left bottom, rgba(53, 210, 130, 0.14), transparent 24%),
    var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font: 16px/1.55 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.page-shell {
  min-height: 100vh;
}

.site-header,
.page-content,
.site-footer {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 0 12px;
  backdrop-filter: blur(18px);
}

.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(25, 25, 25, 0.76);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  display: block;
  width: auto;
  height: 42px;
  flex: 0 0 auto;
}

.brand__suffix {
  color: var(--text-soft);
  font-size: 31px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.site-header__links,
.pill-links,
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-header__links a,
.pill-link,
.inline-link,
.pager-card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-0);
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.site-header__links a {
  padding: 8px 12px;
  color: var(--text-soft);
}

.site-header__links a:hover,
.pill-link:hover,
.inline-link:hover,
.pager-card:hover {
  border-color: rgba(79, 176, 255, 0.28);
  background: var(--surface-1);
  transform: translateY(-1px);
}

.page-content {
  padding: 10px 0 56px;
}

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--text-soft);
}

.hero,
.section-block,
.language-notice,
.site-footer {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(31, 31, 31, 0.88);
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
  margin-bottom: 18px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 176, 255, 0.24), transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
}

h2 {
  font-size: clamp(24px, 3vw, 30px);
}

h3 {
  font-size: 20px;
}

p,
li {
  color: var(--text-soft);
}

ul {
  margin: 0;
  padding-left: 18px;
}

.section-block {
  padding: 26px;
  margin-bottom: 18px;
}

.section-block__header {
  margin-bottom: 20px;
}

.section-grid,
.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.focus-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.section-card,
.article-card {
  height: 100%;
  padding: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(47, 47, 47, 0.86), rgba(31, 31, 31, 0.96));
}

.article-card--full {
  width: 100%;
}

.focus-card {
  height: 100%;
  padding: 22px;
  border: 1px solid rgba(79, 176, 255, 0.18);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at top right, rgba(79, 176, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(47, 47, 47, 0.88), rgba(29, 29, 29, 0.98));
}

.section-card__eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-card h3 {
  color: var(--success);
}

.section-card__footer {
  margin-top: 18px;
}

.inline-link,
.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text-soft);
}

.article--single .article-card {
  width: 100%;
}

.guidance-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.empty-note {
  margin: 0;
  color: var(--text-muted);
}

.screenshot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shot-placeholder {
  display: grid;
  gap: 10px;
}

.shot-placeholder h3 {
  margin: 0;
  font-size: 17px;
}

.shot-placeholder p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.shot-placeholder__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(79, 176, 255, 0.08), rgba(53, 210, 130, 0.08)),
    rgba(20, 20, 20, 0.72);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-align: center;
}

.shot-placeholder__frame--image {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: rgba(20, 20, 20, 0.72);
  aspect-ratio: 16 / 9;
}

.shot-placeholder__frame--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(92vw, 1600px);
  max-height: calc(100vh - 48px);
  margin: 0;
}

.lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 110px);
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

.lightbox__caption {
  color: var(--text-soft);
  text-align: center;
  font-size: 14px;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(16, 16, 16, 0.88);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pager {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pager-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  color: var(--text-soft);
}

.pager-card__label {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.language-notice {
  margin-bottom: 18px;
  padding: 14px 18px;
  color: var(--text-soft);
  background: rgba(79, 176, 255, 0.1);
}

.site-footer {
  margin-bottom: 24px;
  padding: 22px 26px;
}

.site-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--text-soft);
}

.footer-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer-languages a {
  color: var(--text-muted);
}

.footer-languages a:hover {
  color: var(--text-soft);
}

.footer-languages .is-current {
  color: var(--text-soft);
}

@media (max-width: 820px) {
  .site-header__main,
  .site-footer__main {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 28px 22px;
  }

  .section-block {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .page-content,
  .site-footer {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .site-header__links,
  .pill-links,
  .pager {
    width: 100%;
  }

  .site-header__links a,
  .pill-link,
  .inline-link,
  .pager-card {
    width: 100%;
    justify-content: center;
  }

  .brand {
    flex-wrap: wrap;
  }

  .brand__logo {
    height: 34px;
  }

  .brand__suffix {
    font-size: 24px;
  }

  .footer-languages {
    gap: 8px 12px;
  }
}
