@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --surface: #131f35;
  --surface-light: #1b2945;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #6c63ff;
  --accent-2: #1dd1a1;
  --accent-3: #ff9f1a;
  --text: #f5f7ff;
  --text-muted: rgba(245, 247, 255, 0.72);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(8, 14, 35, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  min-height: 100%;
}

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

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.95);
  border-bottom: 1px solid var(--border);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(19, 31, 53, 0.6);
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:focus-visible,
.menu-toggle:hover {
  outline: none;
  background: rgba(108, 99, 255, 0.16);
  border-color: rgba(108, 99, 255, 0.35);
  color: #fff;
}

.menu-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-toggle__icon span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.brand {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link.active,
.nav-link:focus-visible,
.nav-link:hover {
  background: rgba(108, 99, 255, 0.14);
  color: #fff;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-form {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 2.4rem 0.65rem 1rem;
  color: inherit;
  font-size: 0.95rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.search-form input:focus {
  outline: none;
  border-color: rgba(108, 99, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.bookmark-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(108, 99, 255, 0.16);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bookmark-button:hover {
  background: rgba(108, 99, 255, 0.28);
  border-color: rgba(108, 99, 255, 0.45);
  transform: translateY(-1px);
}

.bookmark-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.bookmark-button__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.search-close {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
}

.hero {
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.35), transparent 45%),
    linear-gradient(160deg, rgba(17, 26, 46, 0.9), rgba(11, 17, 29, 0.98));
  padding: 6.5rem 0 4.5rem;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3.2rem;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 1.2rem;
  line-height: 1.1;
}

.hero__text .lead {
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}
body[data-page="home"] .nav-hero {
  display: none;
}
.nav-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.95), rgba(11, 18, 32, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.nav-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at 18% 12%, rgba(108, 99, 255, 0.24), transparent);
}

.nav-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: stretch;
}

.nav-hero__content {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.nav-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.nav-hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-hero__stats li {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.25rem;
}

.nav-hero__stats strong {
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.nav-hero__panel {
  background: rgba(12, 20, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.8rem;
  display: grid;
  gap: 1.2rem;
  box-shadow: 0 16px 40px rgba(7, 12, 30, 0.32);
}

.nav-hero__panel-header h2 {
  margin: 0;
}

.nav-hero__panel-header p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nav-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.nav-hero__link:hover,
.nav-hero__link:focus-visible {
  background: rgba(108, 99, 255, 0.25);
  border-color: rgba(108, 99, 255, 0.55);
  transform: translateY(-2px);
}

.nav-hero__link:focus-visible {
  outline: 2px solid rgba(108, 99, 255, 0.6);
  outline-offset: 3px;
}

.nav-hero__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.nav-sections {
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.95), rgba(8, 13, 24, 0.98));
  padding: 3.8rem 0 4.6rem;
}

.nav-sections__stack {
  display: flex;
  flex-direction: column;
}

.nav-group {
  padding: 2.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: 110px;
}

.nav-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.nav-group__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.1rem;
}

.nav-group__header h2 {
  margin: 0;
}

.nav-group__header p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.nav-group__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.nav-group__cta::after {
  content: '→';
  font-size: 1em;
}

.nav-group__cta:hover {
  transform: translateY(-2px);
  background: rgba(108, 99, 255, 0.32);
  border-color: rgba(108, 99, 255, 0.55);
}

.nav-group__grid {
  margin-top: 1.9rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-outline {
  border: 1px solid rgba(108, 99, 255, 0.4);
  background: var(--surface-light);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(108, 99, 255, 0.16);
  border-color: rgba(108, 99, 255, 0.6);
}

.section {
  padding: 3.8rem 0;
}

.section--alt {
  background: var(--surface);
}

.classic-spotlight {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.8rem;
}

.classic-spotlight__intro p {
  max-width: 42rem;
  color: var(--text-muted);
}

.classic-spotlight__grid {
  margin-top: 0.4rem;
}

.iframe-hub {
  position: relative;
  background: radial-gradient(120% 120% at 0% 0%, rgba(108, 99, 255, 0.18), transparent),
    radial-gradient(120% 120% at 100% 0%, rgba(29, 209, 161, 0.12), transparent),
    var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.iframe-hub__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 2.8rem;
}

.iframe-hub__header p {
  color: var(--text-muted);
  max-width: 38rem;
}

.iframe-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.iframe-hub-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1.1rem;
  padding: 2.1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  min-height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iframe-hub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: screen;
}

.iframe-hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.iframe-hub-card:hover,
.iframe-hub-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(8, 12, 30, 0.35);
}

.iframe-hub-card:hover::after,
.iframe-hub-card:focus-within::after {
  opacity: 0.85;
}

.iframe-hub-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.iframe-hub-card p {
  margin: 0;
  color: var(--text-muted);
}

.iframe-hub-card__header {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 1;
}

.iframe-hub-card__subtitle {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.iframe-hub-card__description {
  z-index: 1;
}

.iframe-hub-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.iframe-hub-card__rank {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.iframe-hub-card__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 1;
}

.iframe-hub-card__tags li {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.iframe-hub-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #f3f6ff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  z-index: 1;
}

.iframe-hub-card__cta span {
  transition: transform 0.2s ease;
}

.iframe-hub-card__cta:hover span,
.iframe-hub-card__cta:focus span {
  transform: translateX(4px);
}

.iframe-hub-card--violet {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.38), rgba(30, 26, 82, 0.9));
}

.iframe-hub-card--teal {
  background: linear-gradient(135deg, rgba(29, 209, 161, 0.32), rgba(9, 38, 43, 0.92));
}

.iframe-hub-card--amber {
  background: linear-gradient(135deg, rgba(255, 159, 26, 0.35), rgba(57, 31, 7, 0.92));
}

.iframe-hub-card--pink {
  background: linear-gradient(135deg, rgba(255, 99, 195, 0.36), rgba(52, 16, 45, 0.92));
}

.iframe-hub-card--blue {
  background: linear-gradient(135deg, rgba(74, 144, 255, 0.34), rgba(13, 33, 68, 0.92));
}

.iframe-hub-card--violet .iframe-hub-card__icon {
  background: rgba(255, 255, 255, 0.16);
}

.iframe-hub-card--teal .iframe-hub-card__icon {
  background: rgba(0, 0, 0, 0.22);
}

.iframe-hub-card--amber .iframe-hub-card__icon {
  background: rgba(0, 0, 0, 0.22);
}

.iframe-hub-card--pink .iframe-hub-card__icon {
  background: rgba(255, 255, 255, 0.18);
}

.iframe-hub-card--blue .iframe-hub-card__icon {
  background: rgba(0, 0, 0, 0.24);
}

@media (max-width: 960px) {
  .site-header.has-menu-toggle .menu-toggle {
    display: inline-flex;
  }

  .site-header.has-menu-toggle .main-nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(11, 18, 32, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .site-header.has-menu-toggle .main-nav.is-open {
    display: flex;
  }

  .site-header.has-menu-toggle .nav-link {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
  }

  .site-header.has-menu-toggle .nav-link.active,
  .site-header.has-menu-toggle .nav-link:focus-visible,
  .site-header.has-menu-toggle .nav-link:hover {
    background: rgba(108, 99, 255, 0.22);
  }

  .site-header:not(.has-menu-toggle) .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .menu-toggle__label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .header-actions {
    order: 2;
    width: 100%;
    margin-left: 0;
  }

  .header-actions .search-form {
    flex: 1;
  }

  .header-actions .bookmark-button {
    flex-shrink: 0;
  }

  .nav-hero__layout {
    grid-template-columns: 1fr;
  }

  .nav-hero__panel {
    order: 2;
  }

  .nav-hero__content {
    order: 1;
  }

  .nav-hero__stats {
    gap: 0.8rem;
  }

  .nav-hero__stats li {
    flex: 1 1 150px;
  }

  .nav-group {
    padding: 2.2rem 0;
  }

  .search-panel {
    top: 120px;
  }
}

@media (max-width: 720px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .header-actions .bookmark-button {
    width: 100%;
    justify-content: center;
  }

  .nav-hero__stats li {
    min-width: 100%;
  }

  .nav-hero__links {
    gap: 0.45rem;
  }

  .nav-group__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-group__cta {
    align-self: stretch;
    justify-content: center;
  }

  .home-updates__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 820px) {
  .iframe-hub__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .iframe-hub__grid {
    gap: 1.4rem;
  }
}

@media (max-width: 520px) {
  .iframe-hub-card {
    padding: 1.6rem;
  }

  .iframe-hub-card__icon {
    width: 50px;
    height: 50px;
  }

  .nav-hero__link {
    width: 100%;
    justify-content: center;
  }
}


.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__header p {
  color: var(--text-muted);
  max-width: 28rem;
}

.section__subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pop-section {
  background: linear-gradient(180deg, rgba(19, 31, 53, 0.65), rgba(11, 18, 32, 0.95));
  padding-top: 3.5rem;
  padding-bottom: 3.2rem;
}

.pop-section__header {
  align-items: flex-start;
}

.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.15rem;
}

.pop-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-light);
  aspect-ratio: 16 / 10;
  box-shadow: 0 12px 30px rgba(6, 12, 28, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pop-card__link {
  display: block;
  height: 100%;
  position: relative;
  color: inherit;
}

.pop-card__media,
.pop-card__overlay {
  position: absolute;
  inset: 0;
}

.pop-card__media {
  overflow: hidden;
  z-index: 0;
}

.pop-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease;
  display: block;
}

.pop-card__overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(7, 12, 26, 0.05) 0%, rgba(7, 12, 26, 0.85) 82%);
  transition: background 0.3s ease;
  z-index: 1;
}

.pop-card__tag {
  align-self: flex-start;
  background: rgba(8, 13, 28, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(4, 6, 18, 0.35);
}

.pop-card__info {
  display: grid;
  gap: 0.35rem;
}

.pop-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 10px 25px rgba(6, 8, 22, 0.6);
}

.pop-card__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.22);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease;
  box-shadow: 0 8px 20px rgba(13, 16, 40, 0.45);
}

.pop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(8, 14, 35, 0.45);
}

.pop-card:hover .pop-card__img {
  transform: scale(1.08);
}

.pop-card:hover .pop-card__overlay {
  background: linear-gradient(180deg, rgba(7, 12, 26, 0.2) 0%, rgba(7, 12, 26, 0.95) 88%);
}

.pop-card:hover .pop-card__cta {
  background: var(--accent);
}

.pop-grid__status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pop-grid__status--error {
  color: #ff8080;
}

.section__link {
  font-size: 0.9rem;
  color: var(--accent-2);
}

.new-games-list {
  display: grid;
  gap: 2.5rem;
}

.game-feature {
  background: var(--surface-light);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 16px 36px rgba(8, 14, 35, 0.26);
}

.game-feature__copy h2 {
  margin: 0 0 0.6rem;
}

.game-feature__publisher {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.game-feature__description {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
}

.game-feature__instructions h3 {
  margin: 0 0 0.6rem;
}

.game-feature__instructions-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
}

.game-feature__instructions-text {
  margin: 0;
  color: var(--text-muted);
}

.game-feature__embed {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-feature__embed iframe {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #000;
  min-height: 320px;
}

.new-games-note {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 960px) {
  .game-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .new-games-list {
    gap: 2rem;
  }

  .game-feature {
    padding: 1.35rem;
  }

  .game-feature__embed iframe {
    min-height: 260px;
  }

  .browsergames-hero {
    padding: 3.4rem 0 2.6rem;
  }

  .browsergames-feature {
    padding: 1.4rem;
  }
}

.card-grid,
.tool-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.game-card,
.tool-card {
  background: var(--surface-light);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(6, 12, 26, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.game-card__media {
  display: block;
}

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.game-card__body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.game-card:hover,
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card img {
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.tool-card__thumb {
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.game-card__meta,
.tool-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.game-card__cta {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.game-card__cta::after {
  content: '→';
  font-size: 0.95em;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 0;
}

.hero-stats div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.hero__media {
  display: grid;
  gap: 1.2rem;
}

.hero-card {
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 12px 30px rgba(7, 12, 30, 0.38);
}

.hero--navigator {
  position: relative;
  overflow: hidden;
}

.hero__layout {
  align-items: stretch;
}

.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__metrics li {
  min-width: 150px;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.2rem;
}

.hero__metrics strong {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.hero__media--navigator {
  align-self: stretch;
}

.hero-card--highlight {
  background: linear-gradient(150deg, rgba(108, 99, 255, 0.3), rgba(29, 209, 161, 0.16));
  border-color: rgba(108, 99, 255, 0.45);
}

.navigator {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.95), rgba(9, 14, 26, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4.5rem 0;
}

.navigator::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 60% at 12% 8%, rgba(108, 99, 255, 0.18), transparent);
}

.navigator__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
  position: relative;
  z-index: 1;
}

.navigator__sidebar {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 2rem;
}

.category-nav,
.category-nav__note {
  background: rgba(13, 20, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 18px 42px rgba(7, 12, 30, 0.32);
  backdrop-filter: blur(12px);
}

.category-nav__list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.category-nav__link {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: rgba(245, 247, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.category-nav__link:hover,
.category-nav__link:focus-visible {
  color: #fff;
  background: rgba(108, 99, 255, 0.22);
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateX(4px);
  text-decoration: none;
}

.category-nav__link:focus-visible {
  outline: 2px solid rgba(108, 99, 255, 0.35);
  outline-offset: 3px;
}

.category-nav__note h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.category-nav__note ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.category-nav__note ul li {
  display: flex;
  gap: 0.45rem;
  line-height: 1.55;
}

.category-nav__note ul li::before {
  content: '•';
  color: rgba(108, 99, 255, 0.65);
  font-size: 0.7rem;
  line-height: 1.9;
}

.category-nav__note a {
  color: var(--accent-2);
}

.navigator__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-group {
  padding: 2.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: 110px;
}

.nav-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.nav-group__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.2rem;
}

.nav-group__header h2 {
  margin: 0;
}

.nav-group__header p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.nav-group__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  background: rgba(108, 99, 255, 0.22);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 99, 255, 0.38);
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.nav-group__cta::after {
  content: '→';
  font-size: 1em;
}

.nav-group__cta:hover {
  transform: translateY(-2px);
  background: rgba(108, 99, 255, 0.32);
  border-color: rgba(108, 99, 255, 0.55);
}

.nav-group__grid {
  margin-top: 1.9rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border-radius: 22px;
  background: rgba(12, 20, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
}

.nav-card:hover,
.nav-card:focus-visible {
  transform: translateY(-4px);
  background: rgba(18, 28, 48, 0.95);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 18px 40px rgba(7, 12, 30, 0.35);
}

.nav-card:focus-visible {
  outline: 2px solid rgba(108, 99, 255, 0.5);
  outline-offset: 3px;
}

.nav-card--accent {
  background: linear-gradient(150deg, rgba(108, 99, 255, 0.28), rgba(29, 209, 161, 0.16));
  border-color: rgba(108, 99, 255, 0.45);
}

.nav-card__icon {
  font-size: 1.8rem;
}

.nav-card__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.nav-card__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.nav-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(245, 247, 255, 0.72);
}

.nav-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(108, 99, 255, 0.22);
  border: 1px solid rgba(108, 99, 255, 0.4);
}

.nav-card__badge:empty {
  display: none;
}

.nav-card__cta {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-card__cta::after {
  content: '→';
  font-size: 1em;
}

.home-updates {
  background: radial-gradient(120% 160% at 0% 0%, rgba(108, 99, 255, 0.18), transparent),
    linear-gradient(180deg, rgba(14, 22, 40, 0.95), rgba(8, 13, 24, 0.98));
  padding: 4.2rem 0 5rem;
}

.home-updates__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-updates__panel {
  background: rgba(12, 20, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.9rem;
  box-shadow: 0 18px 42px rgba(7, 12, 30, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  backdrop-filter: blur(12px);
}

.home-updates__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.home-updates__panel h2 {
  margin: 0;
}

.home-updates__panel > p {
  margin: 0;
  color: var(--text-muted);
}

.mini-card-grid {
  display: grid;
  gap: 1.1rem;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mini-card:hover,
.mini-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(108, 99, 255, 0.4);
  background: rgba(108, 99, 255, 0.16);
}

.mini-card:focus-visible {
  outline: 2px solid rgba(108, 99, 255, 0.5);
  outline-offset: 3px;
}

.mini-card__title,
.mini-card strong {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.mini-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(245, 247, 255, 0.65);
}

.mini-card__meta span.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mini-card__meta span.rating::before {
  content: '⭐';
}

.mini-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.collection-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.collection-list li {
  display: grid;
  gap: 0.35rem;
}

.collection-list a {
  font-weight: 600;
}

.collection-list span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chip--soft {
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.35);
  color: #fff;
}

.chip--soft::before {
  content: '●';
  font-size: 0.6rem;
  margin-right: 0.35rem;
}

.browsergames-hero {
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.28), transparent 45%),
    linear-gradient(150deg, rgba(17, 26, 46, 0.92), rgba(10, 14, 26, 0.98));
  padding: 4.8rem 0 3.6rem;
}

.browsergames-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.browsergames-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.browsergames-hero__content h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.browsergames-hero__content p {
  margin: 0;
  color: var(--text-muted);
}

.browsergames-meta {
  font-size: 0.85rem;
  color: rgba(245, 247, 255, 0.65);
}

.browsergames-feature {
  background: rgba(12, 19, 32, 0.95);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 100%;
}

.browsergames-feature__placeholder {
  color: rgba(245, 247, 255, 0.6);
  font-size: 0.9rem;
}

.browsergames-feature__media {
  border-radius: 18px;
  overflow: hidden;
}

.browsergames-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.browsergames-feature__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.browsergames-feature__body h2 {
  margin: 0;
  font-size: 1.6rem;
}

.browsergames-feature__body p {
  margin: 0;
  color: var(--text-muted);
}

.browsergames-feature__intro {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 247, 255, 0.75);
}

.browsergames-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.browsergames-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.browsergames-feature__actions .btn-primary,
.browsergames-feature__actions .btn-secondary {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.browsergames-empty {
  color: rgba(245, 247, 255, 0.6);
  text-align: center;
}

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

.category-tile {
  border-radius: 20px;
  padding: 1.6rem;
  background: linear-gradient(160deg, rgba(108, 99, 255, 0.18), rgba(45, 197, 253, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 160px;
}

.category-tile p {
  color: var(--text-muted);
}

.tool-card {
  position: relative;
}

.tool-card strong {
  font-size: 1.05rem;
}

.tool-card a {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--accent-3);
}

.rankings-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.rankings-preview__list ol,
.rankings-preview__list ul,
.rankings-preview__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rankings-preview__list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer {
  background: #080c19;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer__grid p,
.footer__grid ul {
  margin: 0;
  color: var(--text-muted);
}

.footer__grid ul {
  list-style: none;
  padding: 0;
}

.footer__grid li + li {
  margin-top: 0.45rem;
}

.footer__note {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.search-panel {
  background: rgba(10, 15, 26, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0 2.4rem;
  position: sticky;
  top: 74px;
  z-index: 19;
}

.search-panel[hidden] {
  display: none;
}

.search-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px;
  padding: 1rem 1.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1.2rem;
}

.search-result__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result__title {
  font-weight: 600;
  font-size: 1rem;
}

.search-result__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-result__type {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-empty {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .site-header.has-menu-toggle .menu-toggle {
    display: inline-flex;
  }

  .site-header.has-menu-toggle .main-nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(11, 18, 32, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .site-header.has-menu-toggle .main-nav.is-open {
    display: flex;
  }

  .site-header.has-menu-toggle .nav-link {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
  }

  .site-header.has-menu-toggle .nav-link.active,
  .site-header.has-menu-toggle .nav-link:focus-visible,
  .site-header.has-menu-toggle .nav-link:hover {
    background: rgba(108, 99, 255, 0.22);
  }

  .site-header:not(.has-menu-toggle) .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .menu-toggle__label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .header-actions {
    order: 2;
    width: 100%;
    margin-left: 0;
  }

  .header-actions .search-form {
    flex: 1;
  }

  .header-actions .bookmark-button {
    flex-shrink: 0;
  }

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

  .navigator__sidebar {
    position: static;
  }

  .nav-group {
    padding: 2rem 0;
  }

  .hero__metrics {
    gap: 0.8rem;
  }

  .hero__metrics li {
    flex: 1 1 140px;
  }

  .search-panel {
    top: 120px;
  }
}

@media (max-width: 720px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .header-actions .bookmark-button {
    width: 100%;
    justify-content: center;
  }

  .hero__metrics li {
    min-width: 100%;
  }

  .hero__media--navigator {
    grid-template-columns: 1fr;
  }

  .nav-group__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-group__cta {
    align-self: stretch;
    justify-content: center;
  }

  .home-updates__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 520px) {
  .search-form {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .search-result {
    flex-direction: column;
    align-items: flex-start;
  }
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.lead {
  font-size: 1.05rem;
}

.filter-chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
  margin: 0.25rem;
}

.filter-chip:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.5);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: rgba(108, 99, 255, 0.35);
  border-color: rgba(108, 99, 255, 0.6);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

#game-summary,
#tool-summary {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

#load-more-games {
  display: none;
  margin: 2rem auto 0;
}

.sentinel {
  height: 1px;
}

.game-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(45, 197, 253, 0.1));
  padding: 2.8rem;
  border-radius: 28px;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-hero__text h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.game-hero__meta {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.4rem;
  color: var(--text-muted);
}

.game-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.5rem;
}

.game-hero__media img {
  border-radius: 22px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.play-section {
  margin-bottom: 3rem;
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #050810;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.iframe-wrapper iframe {
  width: 100%;
  height: 560px;
  border: none;
}

.play-tip {
  margin-top: 0.8rem;
  color: var(--text-muted);
}

.details-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.details-copy {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.details-copy h2,
.details-copy h3 {
  margin-top: 0;
}

.details-copy h3 {
  margin-top: 1.8rem;
}

.details-aside {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.detail-list li {
  color: var(--text-muted);
}

.recommendations {
  margin-bottom: 3rem;
}

.recommendations h3 {
  margin-bottom: 1.5rem;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.ranking-list li {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-list a {
  font-weight: 600;
}

.ranking-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .iframe-wrapper iframe {
    height: 420px;
  }
}

@media (max-width: 480px) {
  .iframe-wrapper iframe {
    height: 360px;
  }
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.rankings-grid section {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rankings-grid h2 {
  margin: 0;
}

.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}

.directory-search input,
.directory-select select {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  min-width: 240px;
  outline: none;
  box-shadow: none;
}

.directory-search input::placeholder {
  color: var(--text-muted);
}

.directory-select select {
  cursor: pointer;
}

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

.directory-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.directory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.directory-card__media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.directory-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.directory-card__body h3 {
  margin: 0;
  font-size: 1.25rem;
}

.directory-card__summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.directory-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.directory-card__meta .chip {
  text-transform: none;
  background: rgba(255, 255, 255, 0.08);
}

.directory-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.directory-card__developer {
  color: var(--text-muted);
}

.directory-card__links {
  display: flex;
  gap: 0.6rem;
}

.directory-card__links a {
  font-weight: 600;
  color: var(--accent);
}

.directory-card__links a:hover {
  color: var(--accent-2);
}

.directory-guide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.directory-guide ol {
  margin: 0;
  padding-left: 1.2rem;
}

.directory-editor {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.directory-editor__top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.directory-editor__intro {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 640px;
}

.directory-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.directory-editor__actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

#directory-json-editor {
  width: 100%;
  min-height: 360px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  padding: 1rem 1.25rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#directory-json-editor:focus {
  outline: none;
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.18);
}

.directory-editor__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.directory-editor__status[data-tone='success'] {
  color: var(--accent-2);
}

.directory-editor__status[data-tone='error'] {
  color: #ff6b81;
}

@media (max-width: 600px) {
  .directory-card__media img {
    height: 140px;
  }

  .directory-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .directory-card__links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .directory-editor__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .directory-editor__actions .btn {
    width: 100%;
  }
}

/* Marketing page */
.promo-hero {
  padding: 5rem 0 3.5rem;
  background: radial-gradient(circle at top left, rgba(108, 99, 255, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(17, 26, 46, 0.95), rgba(11, 18, 32, 0.9));
}

.promo-hero__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.promo-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.promo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.promo-hero__metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.promo-hero__metrics li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.35rem;
  min-width: 160px;
}

.promo-hero__metrics strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
}

.promo-hero__metrics span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.promo-hero__panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.promo-hero__panel h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}

.promo-hero__list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-muted);
}

.promo-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.promo-copy-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.promo-copy-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.promo-copy-card p {
  margin: 0;
}

.promo-copy-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.promo-inline-link {
  color: var(--accent-2);
  font-weight: 600;
}

.promo-share-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.promo-share-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.promo-share-card:hover,
.promo-share-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 22px 40px rgba(8, 14, 35, 0.45);
  outline: none;
}

button.promo-share-card {
  border: none;
  cursor: pointer;
  font: inherit;
}

.promo-share-card__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.promo-share-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.promo-share-card__body strong {
  font-size: 1.05rem;
}

.promo-share-card__subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.promo-share-tip {
  margin-top: 2.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.promo-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.promo-scenario {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.promo-scenario h3 {
  margin: 0;
}

.promo-scenario p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .promo-hero__layout {
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  .promo-hero__metrics {
    gap: 1rem;
  }

  .promo-hero__metrics li {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 540px) {
  .promo-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .promo-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-share-card {
    padding: 1.2rem 1.3rem;
  }
}
