/* =========================
   BASE
========================= */

.docs-page {
  padding-top: 110px;
  min-height: 100vh;
}

.docs-section-head {
  margin-bottom: 1.5rem;
}

.docs-section-head h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.docs-section-head p {
  opacity: .7;
  line-height: 1.8;
}

/* =========================
   HERO
========================= */

.docs-hero {
  padding: 2rem 0 2.5rem;
}

.docs-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.docs-title {
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 900;
  margin: 1rem 0;

  text-shadow:
    0 0 20px rgba(255,140,0,.18),
    0 0 60px rgba(255,140,0,.08);
}

.docs-subtitle {
  max-width: 760px;
  margin: 0 auto;
  opacity: .78;
  line-height: 1.9;
}

.docs-search-wrap {
  margin-top: 2rem;
}

.docs-search {
  width: 100%;
  max-width: 620px;
  height: 64px;
  padding-inline: 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.04);
  color: white;
  font-size: 1rem;
  outline: none;
}

.docs-search::placeholder {
  color: rgba(255,255,255,.45);
}

.hero-actions {
  margin-top: 1.5rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;

  height: 54px;
  padding-inline: 1.4rem;

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      #ff9d2f,
      #ff8500
    );

  color: #111;
  font-weight: 800;
  text-decoration: none;

  transition: .25s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
}

/* =========================
   QUICK START
========================= */

.quick-start-section {
  padding: 1rem 0 3rem;
}

.quick-start-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  gap: 1rem;
}

.quick-start-card {
  display: block;

  padding: 1.5rem;

  border-radius: 24px;

  text-decoration: none;
  color: inherit;

  transition: .25s ease;
}

.quick-start-card:hover {
  transform: translateY(-4px);
}

.quick-start-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.quick-start-card h3 {
  margin-bottom: .75rem;
}

.quick-start-card p {
  opacity: .72;
  line-height: 1.8;
}

/* =========================
   THE LAB
========================= */

.docs-lab {
  padding: 1rem 0 3rem;
}

.lab-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(140px, 1fr));

  gap: 1rem;
}

.lab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 1rem;

  min-height: 160px;

  padding: 1.5rem 1rem;

  border-radius: 24px;

  text-decoration: none;
  color: inherit;

  transition: .25s ease;
}

.lab-card:hover {
  transform: translateY(-4px);
}

.lab-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.lab-card span {
  font-weight: 700;
}

.hidden-emulator {
  display: none;
}

.expand-emulators-btn {
  margin-top: 1.5rem;

  height: 48px;
  padding-inline: 1.2rem;

  border: 0;
  border-radius: 14px;

  background: rgba(255,255,255,.05);

  color: white;
  cursor: pointer;

  transition: .25s ease;
}

.expand-emulators-btn:hover {
  background: rgba(255,255,255,.08);
}

/* =========================
   TOUR
========================= */

.docs-tour {
  padding: 1rem 0 3rem;
}

.tour-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 1rem;
}

.tour-card {
  position: relative;

  overflow: hidden;

  min-height: 320px;

  border-radius: 28px;

  text-decoration: none;
  color: white;
}

.tour-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

.tour-overlay {
  position: absolute;

  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 2rem;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.88),
      rgba(0,0,0,.2)
    );
}

.tour-badge {
  width: fit-content;

  padding: .35rem .8rem;

  border-radius: 999px;

  background: rgba(255,140,0,.15);

  color: #ff9d2f;

  font-size: .85rem;
  font-weight: 700;

  margin-bottom: 1rem;
}

.tour-overlay h3 {
  margin-bottom: .6rem;
  font-size: 1.4rem;
}

.tour-overlay p {
  opacity: .8;
  line-height: 1.8;
}

/* =========================
   FAQ
========================= */

.docs-trending {
  padding: 1rem 0 3rem;
}

.trending-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 1rem;
}

.trending-card {
  display: flex;
  align-items: center;
  gap: .75rem;

  min-height: 76px;

  padding-inline: 1.25rem;

  border-radius: 20px;

  text-decoration: none;
  color: inherit;

  transition: .25s ease;
}

.trending-card:hover {
  transform: translateY(-3px);
}

/* =========================
   UPDATES
========================= */

.docs-updates {
  padding: 0 0 3rem;
}

.updates-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  min-height: 72px;

  padding-inline: 1.5rem;

  border-radius: 20px;
}

.updates-mini a {
  color: #ff9d2f;
  text-decoration: none;
  font-weight: 700;
}

/* =========================
   ARTICLE LAYOUT
========================= */

.docs-layout {
  display: grid;

  grid-template-columns:
    280px 1fr;

  gap: 2rem;

  padding:
    120px 2rem 4rem;
}

.docs-sidebar {
  position: sticky;
  top: 100px;

  height: fit-content;

  padding: 1.5rem;

  border-radius: 24px;
}

.docs-sidebar-title {
  margin-bottom: 1rem;
  font-weight: 700;
}

.docs-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.docs-sidebar-nav a {
  color: inherit;
  text-decoration: none;
  opacity: .75;
}

.docs-sidebar-nav a:hover {
  opacity: 1;
}

.docs-content {
  max-width: 900px;
}

.docs-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.docs-content p {
  opacity: .85;
  line-height: 1.9;
}

.docs-note {
  margin-top: 2rem;

  padding: 1rem 1.25rem;

  border-radius: 18px;
}

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;

  margin-bottom: 1.5rem;

  opacity: .7;
}

/* =========================
   RTL
========================= */

html[dir="rtl"] .docs-subtitle,
html[dir="rtl"] .docs-search,
html[dir="rtl"] .quick-start-card,
html[dir="rtl"] .tour-overlay,
html[dir="rtl"] .trending-card,
html[dir="rtl"] .updates-mini {
  direction: rtl;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 960px) {

  .docs-layout {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
  }

  .docs-title {
    font-size: 3rem;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .updates-mini {
    flex-direction: column;
    align-items: flex-start;

    padding-block: 1rem;
  }
}
/* =========================================
   DOCS PAGE LAYOUT
========================================= */

.docs-layout {
  padding-bottom: 80px;
}

/* =========================================
   HERO
========================================= */

.docs-page-hero {
  padding: 70px 0 40px;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;

  font-size: 14px;
  color: var(--text-muted);
}

.docs-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;

  transition: 0.2s ease;
}

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

.docs-page-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;

  margin-bottom: 16px;
}

.docs-page-description {
  max-width: 780px;

  font-size: 18px;
  line-height: 1.8;

  color: var(--text-muted);
}

/* =========================================
   CONTENT GRID
========================================= */

.docs-content-area {
  padding-top: 20px;
}

.docs-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;

  align-items: start;
}

/* =========================================
   SIDEBAR
========================================= */

.docs-sidebar {
  position: sticky;
  top: 110px;

  padding: 22px;
  border-radius: 24px;
}

.sidebar-group + .sidebar-group {
  margin-top: 28px;
}

.sidebar-title {
  display: block;

  margin-bottom: 12px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--text-muted);
}

.docs-sidebar a {
  display: flex;
  align-items: center;

  min-height: 42px;

  padding: 10px 14px;
  border-radius: 14px;

  color: var(--text-color);
  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.docs-sidebar a:hover {
  background: rgba(255,255,255,0.04);

  transform: translateX(-2px);
}

.docs-sidebar a.active {
  background: rgba(255,255,255,0.08);

  color: var(--accent);
  font-weight: 700;
}

/* =========================================
   MAIN CONTENT
========================================= */

.docs-main-content {
  min-width: 0;
}

.docs-block {
  margin-bottom: 42px;
}

.docs-block h2 {
  font-size: 28px;
  font-weight: 800;

  margin-bottom: 18px;
}

.docs-block p,
.docs-block li {
  font-size: 17px;
  line-height: 1.9;

  color: var(--text-muted);
}

/* =========================================
   STEPS
========================================= */

.docs-steps {
  padding-inline-start: 24px;
}

.docs-steps li + li {
  margin-top: 14px;
}

/* =========================================
   NOTE
========================================= */

.docs-note {
  margin-bottom: 42px;

  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;

  background: rgba(255,255,255,0.03);

  line-height: 1.8;
  color: var(--text-muted);
}

.docs-note strong {
  color: var(--text-color);
}

/* =========================================
   IMAGES
========================================= */

.docs-image {
  width: 100%;

  border-radius: 22px;

  display: block;
}

/* =========================================
   FAQ
========================================= */

.docs-faq {
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 22px;
  border-radius: 20px;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 700;

  margin-bottom: 12px;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* =========================================
   RELATED
========================================= */

.docs-related {
  margin-top: 60px;
}

.docs-related h2 {
  font-size: 26px;
  font-weight: 800;

  margin-bottom: 22px;
}

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

.related-card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 90px;

  padding: 18px;
  border-radius: 22px;

  text-align: center;
  text-decoration: none;

  color: var(--text-color);
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
  }

}

@media (max-width: 640px) {

  .docs-page-hero {
    padding: 50px 0 24px;
  }

  .docs-page-description {
    font-size: 16px;
  }

  .docs-block h2 {
    font-size: 24px;
  }

  .docs-block p,
  .docs-block li {
    font-size: 16px;
  }

  .related-card {
    min-height: 76px;
  }

}
/* =========================================
   VIDEO
========================================= */

.docs-video-wrap {
  position: relative;

  width: 100%;
  overflow: hidden;

  border-radius: 24px;

  aspect-ratio: 16 / 9;

  background: rgba(255,255,255,0.03);
}

.docs-video-wrap iframe {
  width: 100%;
  height: 100%;

  border: 0;

  display: block;
}
/* =========================================
   DOCS LINKS
========================================= */

.docs-main-content a {
  color: #ff9800;

  text-decoration: none;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.docs-main-content a:hover {
  color: #ffb547;

  text-decoration: underline;
}
/* =========================================
   PLATFORM STEPS
========================================= */

.platform-steps {
  margin-top: 22px;
}

.platform-steps li {
  display: flex;
  align-items: center;

  margin-bottom: 16px;
}

/* =========================================
   PLATFORM TAGS
========================================= */

.platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  padding: 8px 16px;
  border-radius: 999px;

  font-size: 15px;
  font-weight: 700;

  line-height: 1;

  border: 1px solid transparent;
}

/* Steam */

.platform.steam {
  background: rgba(27, 40, 56, 0.30);
  color: #66c0f4;
  border-color: rgba(102, 192, 244, 0.22);
}

/* Epic Games */

.platform.epic {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border-color: rgba(255,255,255,0.08);
}

/* GOG */

.platform.gog {
  background: rgba(134, 76, 191, 0.20);
  color: #d39cff;
  border-color: rgba(211, 156, 255, 0.22);
}

/* EA */

.platform.ea {
  background: rgba(0, 195, 255, 0.14);
  color: #79deff;
  border-color: rgba(121, 222, 255, 0.20);
}

/* Rockstar */

.platform.rockstar {
  background: rgba(255, 170, 0, 0.16);
  color: #ffb300;
  border-color: rgba(255, 179, 0, 0.22);
}

/* Xbox */

.platform.xbox {
  background: rgba(16, 124, 16, 0.20);
  color: #8cff8c;
  border-color: rgba(140, 255, 140, 0.20);
}

/* Ubisoft */

.platform.ubisoft {
  background: rgba(0, 119, 255, 0.16);
  color: #7fc0ff;
  border-color: rgba(127, 192, 255, 0.22);
}
/* =========================================
   PLATFORM WIDTHS
========================================= */
/* =========================================
   PLATFORM SIZE
========================================= */

.platform {
  width: 190px;
}
box-shadow: 0 0 20px rgba(255,152,0,0.15);