:root {
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #007aff;
  --color-border: #d2d2d7;
  --color-live: #34c759;
  --color-featured: #ff9500;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-brand {
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav__link {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav__link--active,
.site-nav__link:hover {
  color: var(--color-accent);
}

.hero,
.page-hero,
.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px clamp(16px, 5vw, 56px);
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  justify-content: space-between;
}

.hero__content {
  max-width: 560px;
}

.hero__media {
  background: linear-gradient(145deg, #ffffff, #f1f1f3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);
  flex: 1 1 440px;
  margin: 0;
  max-width: 520px;
  overflow: hidden;
  padding: 14px;
}

.hero__media img {
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 2px);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.hero__media figcaption {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 2px;
}

.hero__media figcaption span {
  color: var(--color-featured);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__media figcaption strong {
  font-size: 1rem;
}

.page-hero {
  max-width: 760px;
}

.game-hero__thumbnail {
  aspect-ratio: 1;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  display: block;
  height: 128px;
  margin-bottom: 18px;
  object-fit: cover;
  width: 128px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.04;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 10px;
}

.hero p,
.page-hero p,
.section__heading p,
.prose p,
.game-card p,
.category-card small {
  color: var(--color-text-secondary);
}

.section--surface {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  max-width: none;
}

.section--surface > * {
  max-width: 1068px;
  margin-left: auto;
  margin-right: auto;
}

.section__heading {
  margin-bottom: 24px;
}

.layout-shell {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1360px;
  padding: 24px clamp(16px, 4vw, 40px) 56px;
}

.sidebar-nav {
  align-self: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 12px;
  position: sticky;
  top: 82px;
}

.sidebar-nav__home,
.sidebar-nav nav a {
  align-items: center;
  border-radius: 6px;
  color: var(--color-text-secondary);
  display: flex;
  font-size: 0.93rem;
  gap: 8px;
  justify-content: space-between;
  min-height: 34px;
  padding: 7px 8px;
  text-decoration: none;
}

.sidebar-nav__home {
  color: var(--color-text-primary);
  font-weight: 800;
  margin-bottom: 6px;
}

.sidebar-nav nav a:hover,
.sidebar-nav nav a[aria-current="page"] {
  background: #eef5ff;
  color: var(--color-accent);
}

.sidebar-nav nav a span {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
}

.sidebar-nav__all {
  border-top: 1px solid var(--color-border);
  font-weight: 800;
  margin-top: 8px;
  padding-top: 12px;
}

.catalog-content {
  min-width: 0;
}

.catalog-hero,
.catalog-section {
  padding: 0 0 28px;
}

.catalog-hero {
  max-width: 760px;
  padding-top: 8px;
}

.catalog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.catalog-hero p,
.tag-page-hero p {
  color: var(--color-text-secondary);
}

.dense-game-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.dense-game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

.dense-game-card__link {
  display: grid;
  gap: 8px;
  padding: 8px;
  text-decoration: none;
}

.dense-game-card img {
  aspect-ratio: 1 / 1;
  background: #e8e8ed;
  border-radius: 6px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.dense-game-card span {
  display: -webkit-box;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  min-height: 2.4em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list-section {
  padding-top: 0;
}

.tag-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.tag-list__item {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  gap: 4px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
  text-decoration: none;
}

.tag-list__item--curated {
  border-color: color-mix(in srgb, var(--color-accent) 32%, var(--color-border));
}

.tag-list__item span {
  font-weight: 800;
}

.tag-list__item small {
  color: var(--color-text-secondary);
  grid-column: 1;
}

.tag-list__item strong {
  color: var(--color-accent);
  grid-column: 2;
  grid-row: 1 / span 2;
}

.game-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card,
.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card--featured {
  border-color: color-mix(in srgb, var(--color-featured) 44%, var(--color-border));
}

.card--coming-soon .game-card__body {
  opacity: 0.7;
}

.game-card__media {
  aspect-ratio: 16 / 9;
  background: #e8e8ed;
  position: relative;
}

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

.game-card__overlay {
  align-items: center;
  background: rgba(29, 29, 31, 0.58);
  color: #ffffff;
  display: flex;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
}

.badge--featured {
  background: #fff4e3;
  color: var(--color-featured);
}

.badge--live {
  background: #e9f9ee;
  color: var(--color-live);
}

.badge--soon {
  background: #f1f1f3;
  color: #6e6e73;
}

.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.button--primary {
  background: #007aff;
  color: #ffffff;
}

.button--disabled {
  background: transparent;
  border: 1px solid #6e6e73;
  color: #6e6e73;
  cursor: not-allowed;
}

.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
}

.category-card span {
  font-weight: 800;
}

.breadcrumb {
  align-items: center;
  color: var(--color-text-secondary);
  display: flex;
  gap: 8px;
  margin: 24px auto 0;
  max-width: 1180px;
  padding: 0 clamp(16px, 5vw, 56px);
}

.breadcrumb__mobile {
  display: none;
}

.game-play-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.game-frame {
  aspect-ratio: 16 / 9;
  background: #111111;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.game-frame:fullscreen,
.game-frame:-webkit-full-screen {
  border-radius: 0;
  height: 100%;
  width: 100%;
}

.game-frame__loading {
  align-items: center;
  color: #ffffff;
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 0;
}

.game-frame__fullscreen {
  align-items: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
  height: 38px;
  justify-content: center;
  min-width: 132px;
  padding: 0 12px;
}

.game-frame__fullscreen-icon {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.game-frame__fullscreen:hover,
.game-frame__fullscreen:focus-visible {
  background: rgba(16, 28, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.58);
  outline: none;
}

.game-frame__fullscreen:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.game-frame iframe {
  border: 0;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.feature-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-list span {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
}

.prose {
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.game-guide {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1180px;
  padding-top: 24px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  color: var(--color-ink-on-dark);
  min-width: 0;
  padding: clamp(18px, 3vw, 24px);
}

.guide-card--wide {
  grid-column: 1 / -1;
}

.guide-card h2 {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: 0;
  margin-bottom: 14px;
}

.guide-card h3 {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.guide-card p,
.guide-card li,
.control-list dd,
.faq-list p {
  color: var(--color-muted-on-dark);
}

.editorial-meta {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.category-facts,
.category-tips,
.source-list {
  line-height: 1.65;
}

.category-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.category-facts li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.category-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
}

.category-table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

.category-table caption {
  font-weight: 700;
  padding: 0 0 12px;
  text-align: left;
}

.category-table th,
.category-table td {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.category-table thead th {
  background: var(--color-bg);
}

.source-list cite {
  font-style: normal;
  font-weight: 700;
}

.guide-card p:last-child,
.guide-card ul:last-child,
.guide-card ol:last-child,
.guide-card dl:last-child {
  margin-bottom: 0;
}

.control-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.control-list__item {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr);
}

.control-list dt,
.control-list dd {
  margin: 0;
  min-width: 0;
}

.control-key {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #ffffff;
  display: inline-block;
  font-weight: 800;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 7px 9px;
}

.how-to-list,
.tips-list,
.instruction-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.how-to-list li,
.tips-list li,
.instruction-list li {
  padding-left: 4px;
}

.how-to-list p {
  margin-bottom: 0;
}

.related-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-search-list span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.guide-feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-feature-list span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list .faq-item {
  border-color: rgba(255, 255, 255, 0.11);
}

.faq-list .faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-list h3 {
  margin-bottom: 6px;
}

.accordion-group {
  display: grid;
  gap: 10px;
  max-width: 1180px;
}

.content-accordion {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.content-accordion summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
  padding: 14px 18px;
}

.content-accordion summary::-webkit-details-marker {
  display: none;
}

.content-accordion summary::after {
  content: ">";
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.content-accordion[open] summary::after {
  transform: rotate(90deg);
}

.content-accordion > p,
.content-accordion > ul,
.content-accordion > .feature-list,
.content-accordion > .faq-item {
  margin: 0;
  padding: 0 18px 18px;
}

.content-accordion > .faq-item + .faq-item {
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 32px clamp(16px, 5vw, 56px);
  text-align: center;
}

.footer-social,
.footer-nav,
.footer-legal {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-social {
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-nav {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.footer-nav a,
.footer-social a,
.footer-legal a {
  color: var(--color-text-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-nav a,
.footer-social a {
  text-decoration: none;
}

.footer-legal {
  margin: 0;
}

@media (max-width: 900px) {
  .layout-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    max-height: none;
    position: static;
  }

  .sidebar-nav nav {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-grid,
  .game-grid--featured,
  .category-grid,
  .feature-list,
  .game-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__media {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .hero,
  .page-hero,
  .section {
    padding-block: 36px;
  }

  .game-grid,
  .game-grid--featured,
  .category-grid,
  .feature-list,
  .game-guide,
  .guide-feature-list {
    grid-template-columns: 1fr;
  }

  .control-list__item {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .layout-shell {
    padding-block: 18px 36px;
  }

  .sidebar-nav nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dense-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .breadcrumb {
    display: none;
  }

  .breadcrumb__mobile {
    display: flex;
  }

  .game-play-header {
    justify-content: center;
  }

  .footer-social,
  .footer-nav,
  .footer-legal {
    gap: 12px;
  }
}

:root {
  /* Primitive tokens */
  --color-navy-950: #070b10;
  --color-navy-900: #071018;
  --color-navy-850: #0b1420;
  --color-navy-800: #101c2a;
  --color-navy-700: #17283a;
  --color-blue-500: #0b7bff;
  --color-blue-600: #007aff;
  --color-green-500: #34c759;
  --color-amber-500: #ff9500;
  --color-slate-50: #f5f7fb;
  --color-slate-300: #c9d3e2;
  --color-slate-400: #a7b1c2;
  --color-slate-500: #6e6e73;
  --color-slate-900: #171c24;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --shadow-card: 0 14px 32px rgba(0, 0, 0, 0.24);
  --shadow-card-hover: 0 22px 46px rgba(0, 0, 0, 0.34);
  --shadow-surface: 0 20px 60px rgba(0, 0, 0, 0.28);

  /* Semantic tokens */
  --color-bg: #071018;
  --color-surface: #ffffff;
  --color-text-primary: #171c24;
  --color-text-secondary: #6e6e73;
  --color-accent: #007aff;
  --color-border: #d7dde7;
  --color-live: #34c759;
  --color-featured: #ff9500;
  --color-ink-on-dark: #f5f7fb;
  --color-muted-on-dark: #a7b1c2;
  --color-sidebar: #0b1420;
  --color-sidebar-active: #17283a;
  --color-page-bg: var(--color-navy-900);
  --color-page-bg-deep: var(--color-navy-950);
  --color-panel: rgba(255, 255, 255, 0.06);
  --color-panel-strong: rgba(255, 255, 255, 0.1);
  --color-panel-border: rgba(255, 255, 255, 0.1);
  --color-focus-ring: rgba(11, 123, 255, 0.36);
  --spacing-page-x: clamp(12px, 2vw, 28px);
  --spacing-card: var(--space-4);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Component tokens */
  --button-bg: var(--color-blue-500);
  --button-bg-hover: #0066d6;
  --button-fg: #ffffff;
  --card-bg: #ffffff;
  --card-border: rgba(215, 221, 231, 0.88);
  --card-radius: var(--radius-md);
  --catalog-panel-bg: rgba(255, 255, 255, 0.055);
  --catalog-panel-border: rgba(255, 255, 255, 0.075);
  --pill-bg: rgba(255, 255, 255, 0.085);
  --pill-bg-hover: rgba(255, 255, 255, 0.14);
}

body {
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.04) 1px, transparent 1.5px) 0 0 / 36px 36px,
    linear-gradient(135deg, rgba(11, 123, 255, 0.12), transparent 34%),
    linear-gradient(180deg, var(--color-navy-800) 0%, var(--color-page-bg) 38%, var(--color-page-bg-deep) 100%);
  color: var(--color-ink-on-dark);
  min-height: 100vh;
}

body.has-sidebar-open {
  overflow: hidden;
}

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

.site-header {
  background: rgba(8, 15, 24, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  gap: 18px;
  padding: 10px clamp(14px, 3vw, 36px);
}

.site-brand {
  color: #ffffff;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav__link {
  color: var(--color-muted-on-dark);
}

.site-nav__link--active,
.site-nav__link:hover {
  color: #ffffff;
}

.mobile-menu-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  display: none;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.mobile-menu-button__bar {
  background: currentColor;
  border-radius: 2px;
  display: block;
  height: 2px;
  position: absolute;
  width: 18px;
}

.mobile-menu-button__bar:nth-child(1) {
  transform: translateY(-6px);
}

.mobile-menu-button__bar:nth-child(3) {
  transform: translateY(6px);
}

.global-search {
  flex: 0 1 420px;
  margin-left: auto;
  max-width: 420px;
  min-width: 0;
  position: relative;
  width: min(38vw, 420px);
}

.header-auth-slot {
  flex: 0 0 clamp(132px, 14vw, 192px);
  min-height: 40px;
}

.language-switcher {
  flex: 0 0 auto;
  position: relative;
}

.language-switcher summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  list-style: none;
  min-width: 46px;
  padding: 0 10px;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher__menu {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  min-width: 150px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
}

.language-switcher__menu a {
  border-radius: 6px;
  color: var(--color-text-primary);
  display: block;
  font-size: 0.92rem;
  padding: 8px 10px;
  white-space: nowrap;
}

.language-switcher__menu a:hover,
.language-switcher__menu a[aria-current="true"] {
  background: #eef4ff;
  color: #0c4fb3;
}

.global-search input {
  background: #f7f9fc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #17202c;
  font: inherit;
  min-height: 40px;
  padding: 9px 82px 9px 14px;
  width: 100%;
}

.global-search__button {
  background: #121d2b;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  min-height: 30px;
  padding: 0 10px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.search-panel {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  color: var(--color-text-primary);
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
}

.search-result {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 9px 10px;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus {
  background: #eef5ff;
}

.search-result img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  width: 46px;
}

.search-result__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.search-result__body strong,
.search-result__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result__body small,
.search-panel__empty {
  color: var(--color-text-secondary);
}

.search-panel__empty {
  margin: 0;
  padding: 14px;
}

.sidebar-scrim {
  background: rgba(0, 0, 0, 0.56);
  inset: 0;
  position: fixed;
  z-index: 35;
}

.layout-shell--catalog {
  align-items: start;
  gap: 22px;
  grid-template-columns: 104px minmax(0, 1fr);
  max-width: none;
  padding: 18px clamp(12px, 2vw, 28px) 48px;
}

.sidebar-nav__rail {
  background: #07172b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  color: var(--color-muted-on-dark);
  max-height: calc(100vh - 82px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: none;
  top: 66px;
  transition: width 160ms ease, box-shadow 160ms ease;
  width: 92px;
  z-index: 25;
}

.sidebar-nav__rail::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.sidebar-nav__rail:hover,
.sidebar-nav__rail:focus-within {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  width: 320px;
}

.sidebar-nav__home,
.sidebar-nav nav a {
  color: var(--color-muted-on-dark);
  display: grid;
  gap: 14px;
  grid-template-columns: 58px 1fr auto;
  min-height: 68px;
  padding: 5px 10px;
  width: 302px;
}

.sidebar-nav__home {
  background: linear-gradient(135deg, #0b7bff, #07316c);
  clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
  color: #ffffff;
  margin-bottom: 10px;
}

.sidebar-nav__icon {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.sidebar-nav__icon svg {
  display: block;
  fill: currentColor;
  height: 42px;
  width: 42px;
}

.sidebar-nav__label,
.sidebar-nav__count {
  opacity: 0;
  transition: opacity 120ms ease;
}

.sidebar-nav__label {
  font-size: 1.28rem;
  font-weight: 700;
}

.sidebar-nav__rail .sidebar-nav__label {
  font-size: 1.28rem;
  font-weight: 800;
}

.sidebar-nav__count {
  font-size: 0.9rem;
  font-weight: 700;
}

.sidebar-nav__rail:hover .sidebar-nav__label,
.sidebar-nav__rail:hover .sidebar-nav__count,
.sidebar-nav__rail:focus-within .sidebar-nav__label,
.sidebar-nav__rail:focus-within .sidebar-nav__count {
  opacity: 1;
}

.sidebar-nav nav a:hover,
.sidebar-nav nav a[aria-current="page"],
.sidebar-nav__home[aria-current="page"] {
  background: var(--color-sidebar-active);
  color: #ffffff;
}

.sidebar-nav nav a span,
.sidebar-nav__count {
  color: inherit;
}

.sidebar-nav__all {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.catalog-content {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  min-height: calc(100vh - 126px);
  padding: clamp(14px, 2vw, 24px);
}

.catalog-hero {
  color: #ffffff;
  max-width: 720px;
  padding: 0 0 18px;
}

.catalog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.catalog-hero p,
.tag-page-hero p {
  color: var(--color-muted-on-dark);
}

.section__heading h2 {
  color: #ffffff;
}

.section__heading p {
  color: var(--color-muted-on-dark);
}

.homepage-seo {
  padding-top: 8px;
}

.homepage-seo__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.homepage-seo__card {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 18px;
}

.homepage-seo h3 {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.homepage-seo p {
  color: var(--color-muted-on-dark);
  margin-bottom: 0;
}

.dense-game-grid {
  gap: 18px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.dense-game-grid--home {
  gap: 22px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dense-game-card {
  border: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.dense-game-card:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
  transform: translateY(-6px) scale(1.02);
}

.dense-game-card__link {
  gap: 7px;
  padding: 7px;
}

.dense-game-grid--home .dense-game-card__link {
  gap: 10px;
  padding: 10px;
}

.dense-game-card img {
  transition: transform 220ms ease;
}

.dense-game-card:hover img {
  transform: scale(1.06);
}

.dense-game-card span {
  color: var(--color-text-primary);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.dense-game-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.dense-game-card span.dense-game-card__meta,
.dense-game-card span.dense-game-card__tag,
.dense-game-card span.dense-game-card__signal {
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
  display: inline-flex;
  min-height: 0;
}

.dense-game-card__tag,
.dense-game-card__signal {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.dense-game-card__tag {
  background: #eef4ff;
  color: #0c4fb3;
}

.dense-game-card__signal--hot {
  background: #fff1df;
  color: #bd5b00;
}

.dense-game-card__signal--popular {
  background: #e9f9ee;
  color: #177c37;
}

.page-hero,
.section,
.breadcrumb {
  color: var(--color-ink-on-dark);
}

.page-hero p,
.breadcrumb,
.breadcrumb a {
  color: var(--color-muted-on-dark);
}

.game-card,
.category-card,
.tag-list__item,
.content-accordion,
.feature-list span {
  color: var(--color-text-primary);
}

.guide-card,
.guide-feature-list span {
  color: var(--color-ink-on-dark);
}

.site-footer {
  background: rgba(4, 8, 13, 0.72);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.back-to-top {
  align-items: center;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  bottom: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 24px;
  width: 58px;
  z-index: 70;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #0b7bff;
  outline: 3px solid rgba(255, 255, 255, 0.26);
  outline-offset: 3px;
}

.back-to-top svg {
  height: 30px;
  width: 30px;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.button--play {
  background: #0b7bff;
  box-shadow: 0 10px 22px rgba(0, 122, 255, 0.28);
}

.catalog-hero {
  max-width: 940px;
  padding-bottom: 22px;
}

.catalog-hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.catalog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button--hero-primary {
  box-shadow: 0 14px 30px rgba(0, 122, 255, 0.36);
  min-width: 154px;
}

.button--hero-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--color-ink-on-dark);
}

.trust-bar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  max-width: 820px;
}

.trust-bar span,
.mood-tags a,
.quick-facts span {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 9px 12px;
}

.trust-bar__icon,
.mood-tags__icon {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.mood-tags a {
  color: var(--color-ink-on-dark);
  text-decoration: none;
}

.mood-tags a:hover,
.mood-tags a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.scroll-hook {
  color: var(--color-muted-on-dark);
  font-weight: 800;
  margin: 0 0 18px;
}

.page-hero {
  max-width: 920px;
}

.page-hero__tagline {
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.quick-facts span {
  align-items: start;
  border-radius: 8px;
  display: grid;
  gap: 2px;
}

.quick-facts strong {
  color: #ffffff;
  display: block;
}

.guide-note {
  border-left: 3px solid #61dafb;
  padding-left: 12px;
}

.benefit-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-list section,
.guide-feature-list section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #ffffff;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px;
}

.benefit-list p,
.guide-feature-list p {
  margin-bottom: 0;
}

.related-game-grid {
  align-items: stretch;
}

.related-game-card {
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.related-game-card__label {
  background: rgba(11, 123, 255, 0.94);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  padding: 5px 9px;
  position: absolute;
  text-overflow: ellipsis;
  top: 12px;
  white-space: nowrap;
}

.related-game-card__body {
  gap: 12px;
}

.related-game-card h3 {
  font-size: 1.04rem;
  line-height: 1.22;
  margin: 0;
}

.related-game-card p {
  display: -webkit-box;
  line-height: 1.35;
  margin: 0;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-game-card__button {
  margin-top: auto;
  min-height: 46px;
}

.badge--new {
  background: #eef2ff;
  color: #4f46e5;
}

.badge--similar {
  background: #f1f5f9;
  color: #334155;
}

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
}

.site-header {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(7, 13, 21, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.site-brand {
  font-size: 1.06rem;
}

.site-nav__link {
  border-radius: var(--radius-sm);
  padding: 7px 8px;
}

.site-nav__link--active,
.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.global-search input {
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(11, 26, 43, 0.1);
}

.global-search input:focus {
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 3px rgba(11, 123, 255, 0.2);
  outline: none;
}

.global-search__button,
.button--primary,
.button--play {
  background: var(--button-bg);
  color: var(--button-fg);
}

.global-search__button:hover,
.button--primary:hover,
.button--play:hover {
  background: var(--button-bg-hover);
}

.catalog-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04)),
    var(--catalog-panel-bg);
  border-color: var(--catalog-panel-border);
  box-shadow: var(--shadow-surface);
}

.catalog-hero {
  position: relative;
}

.catalog-hero h1,
.page-hero h1 {
  max-width: 32ch;
  text-wrap: balance;
}

.catalog-hero p,
.page-hero p,
.section__heading p {
  max-width: 68ch;
}

.button {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.button--hero-primary {
  min-height: 46px;
}

.button--hero-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.trust-bar span,
.mood-tags a,
.quick-facts span {
  background: var(--pill-bg);
  border-color: var(--color-panel-border);
}

.mood-tags a {
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mood-tags a:hover,
.mood-tags a:focus-visible {
  background: var(--pill-bg-hover);
  transform: translateY(-1px);
}

.dense-game-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  contain: paint;
}

.dense-game-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px) scale(1.015);
}

.dense-game-card__link:focus-visible {
  outline: none;
}

.dense-game-card:focus-within {
  box-shadow: 0 0 0 3px var(--color-focus-ring), var(--shadow-card-hover);
}

.dense-game-card img {
  background: #dce4ef;
}

.dense-game-card span {
  letter-spacing: 0;
}

.dense-game-card__tag,
.dense-game-card__signal,
.badge {
  letter-spacing: 0;
}

.page-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-hero__thumbnail {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.game-detail-hero {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 1180px;
}

.game-detail-hero .game-hero__thumbnail {
  grid-row: span 4;
  margin-bottom: 0;
}

.game-detail-hero h1,
.game-detail-hero p,
.game-detail-hero .quick-facts {
  grid-column: 2;
}

.game-detail-hero h1 {
  max-width: 100%;
}

.quick-facts span {
  min-width: min(100%, 168px);
}

.game-play-section {
  padding-top: 28px;
}

.game-play-header {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px;
}

.game-frame {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.game-frame__loading {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    #0a0f17;
  font-weight: 800;
}

.guide-card,
.benefit-list section,
.guide-feature-list section,
.homepage-seo__card {
  background: var(--color-panel);
  border-color: var(--color-panel-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.guide-card h2,
.section__heading h2,
.homepage-seo h3 {
  text-wrap: balance;
}

.related-game-card,
.game-card,
.category-card,
.tag-list__item {
  border-color: var(--card-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.game-card,
.category-card,
.tag-list__item {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.game-card:hover,
.category-card:hover,
.tag-list__item:hover {
  border-color: color-mix(in srgb, var(--color-accent) 28%, var(--card-border));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.content-accordion,
.homepage-seo__card,
.guide-card {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .dense-game-card:hover,
  .dense-game-card:hover img,
  .button:hover,
  .game-card:hover,
  .category-card:hover,
  .tag-list__item:hover,
  .mood-tags a:hover {
    transform: none;
  }
}

@media (max-width: 1280px) {
  .layout-shell--catalog {
    gap: 18px;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .dense-game-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .dense-game-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 12px;
  }

  .dense-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dense-game-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
    display: grid;
    grid-template-columns: 40px auto minmax(160px, 1fr) auto;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .global-search {
    justify-self: end;
    max-width: none;
    width: min(52vw, 360px);
  }

  .header-auth-slot {
    display: none;
  }

  .layout-shell--catalog {
    display: block;
    padding-top: 14px;
  }

  .catalog-content {
    max-width: 100%;
    overflow: hidden;
  }

  .sidebar-nav__rail {
    border-radius: 0 8px 8px 0;
    bottom: 0;
    left: 0;
    max-height: none;
    position: fixed;
    top: 0;
    transform: translateX(-104%);
    transition: transform 180ms ease;
    width: min(86vw, 320px);
    z-index: 45;
  }

  .sidebar-nav__rail:hover,
  .sidebar-nav__rail:focus-within,
  .sidebar-nav__rail.sidebar-nav--open {
    width: min(86vw, 320px);
  }

  .sidebar-nav__rail.sidebar-nav--open {
    transform: translateX(0);
  }

  .sidebar-nav__home,
  .sidebar-nav nav a {
    width: 100%;
  }

  .sidebar-nav__label,
  .sidebar-nav__count {
    opacity: 1;
  }

  .sidebar-nav nav {
    display: block;
  }

  .homepage-seo__grid {
    grid-template-columns: 1fr;
  }

  .trust-bar,
  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .site-brand {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-switcher {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .global-search input {
    min-width: 0;
    padding-right: 82px;
  }

  .catalog-content {
    padding: 12px;
  }

  .dense-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dense-game-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-hero__actions .button {
    width: 100%;
  }

  .game-frame {
    min-height: 220px;
  }

  .catalog-hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .trust-bar span,
  .mood-tags a,
  .quick-facts span {
    border-radius: var(--radius-md);
    justify-content: flex-start;
  }

  .mood-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mood-tags a {
    min-height: 44px;
  }

  .game-play-header {
    align-items: stretch;
  }

  .game-frame__fullscreen {
    width: 100%;
  }

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

  .game-detail-hero .game-hero__thumbnail,
  .game-detail-hero h1,
  .game-detail-hero p,
  .game-detail-hero .quick-facts {
    grid-column: 1;
  }

  .game-detail-hero .game-hero__thumbnail {
    height: 96px;
    width: 96px;
  }

  .trust-bar,
  .benefit-list,
  .category-facts {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 16px;
    height: 54px;
    right: 16px;
    width: 54px;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .global-search {
    display: grid;
    gap: 8px;
  }

  .global-search input {
    padding-right: 14px;
  }

  .global-search__button {
    position: static;
    width: 100%;
  }

  .dense-game-grid {
    grid-template-columns: 1fr;
  }

  .mood-tags {
    grid-template-columns: 1fr;
  }

  .game-card__body,
  .category-card,
  .tag-list__item,
  .guide-card {
    overflow-wrap: anywhere;
  }

  .footer-legal {
    align-items: stretch;
    flex-direction: column;
  }
}
