﻿:root {
  --bg: #f6f8f5;
  --bg-soft: #edf5f1;
  --surface: #ffffff;
  --surface-strong: #fdfefa;
  --ink: #17211f;
  --muted: #62706d;
  --line: #dce6e2;
  --brand: #126b5c;
  --brand-strong: #0d4f45;
  --accent: #f0a83a;
  --accent-soft: #fff2d9;
  --shadow: 0 18px 48px rgba(20, 65, 55, 0.11);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% -4%, rgba(18, 107, 92, 0.16), transparent 280px),
    radial-gradient(circle at 88% 8%, rgba(240, 168, 58, 0.18), transparent 260px),
    linear-gradient(180deg, #fbfdfb 0%, var(--bg) 42%, #eef5f3 100%);
  color: var(--ink);
}

.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;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  z-index: 20;
  border-bottom: 1px solid rgba(220, 230, 226, 0.86);
  background: rgba(246, 248, 245, 0.9);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(18, 107, 92, 0.22);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 65, 55, 0.22);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--brand-strong);
  outline: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  gap: 18px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand span {
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface);
  color: var(--brand);
  outline: none;
}

.main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 30px;
}

.hero-compact {
  display: block;
  margin-bottom: 16px;
}

.hero-copy {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(237,245,241,0.88));
  box-shadow: var(--shadow);
}

.hero-compact .hero-copy {
  min-height: 0;
  width: 100%;
  display: block;
  padding: clamp(24px, 3vw, 38px);
}

.home-intro {
  max-width: none;
  margin: 0 0 26px;
}

.home-intro h2 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.08;
  white-space: nowrap;
}

.home-intro p:last-child {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid rgba(18, 107, 92, 0.18);
  border-radius: 999px;
  background: rgba(18, 107, 92, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
}

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

h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-compact h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: none;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-compact .hero-copy p {
  max-width: none;
  margin-bottom: 18px;
}

.search-row {
  display: flex;
  width: min(680px, 100%);
  gap: 10px;
}

.hero-compact .hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 10px;
}

.hero-search-label {
  grid-column: 1 / -1;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 750;
}

.hero-search input {
  grid-column: 1;
  width: 100%;
}

.hero-search button {
  grid-column: 2;
}

.catalog-followup {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.list-search-panel {
  display: block;
  width: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 249, 246, 0.94));
  box-shadow: var(--shadow);
}

.list-search-panel .search-row {
  width: 100%;
  max-width: none;
  margin: 22px 0 0;
}

.list-search-title {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.list-search-desc {
  max-width: none;
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.search-row button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.search-row button:hover,
.primary-action:hover {
  background: var(--brand-strong);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.spotlight-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background: #10201e;
  box-shadow: var(--shadow);
}

.spotlight-section {
  margin-top: 22px;
}

.spotlight-wide {
  display: block;
  min-height: 280px;
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.72;
}

.spotlight-wide img {
  min-height: 280px;
}

.carousel-actions {
  display: inline-flex;
  gap: 8px;
}

.carousel-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.carousel-actions button:hover,
.carousel-actions button:focus-visible {
  border-color: rgba(18, 107, 92, 0.35);
  background: rgba(18, 107, 92, 0.08);
  outline: none;
}

.featured-carousel {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-slide {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  background: #10201e;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.featured-slide img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  opacity: 0.72;
}

.featured-slide .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.featured-slide h3 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.08;
}

.featured-slide p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spotlight-card .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 26px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.spotlight-card h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.section {
  margin-top: 32px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin-bottom: 4px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
}

.section-head p {
  max-width: none;
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-card {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 65, 55, 0.07);
}

.category-card strong {
  color: var(--ink);
  font-size: 16px;
}

.category-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 65, 55, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.game-card img {
  display: block;
  width: 100%;
  height: 240px;
  height: 75cqw;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
}

.game-card-body,
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.game-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.22;
}

.game-card p {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-card .meta {
  margin-top: auto;
}

.game-card .pill {
  background: var(--accent-soft);
  color: #845008;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.info-card,
.detail-panel,
.policy-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 65, 55, 0.08);
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}

.detail-layout.detail-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(237,245,241,0.88));
  box-shadow: var(--shadow);
}

.detail-hero-card .detail-media {
  order: 2;
  min-height: 0;
}

.detail-hero-card .detail-media img {
  height: auto;
}

.detail-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  order: 1;
}

.detail-hero-copy h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.02;
}

.detail-hero-copy > p:not(.eyebrow) {
  max-width: none;
  color: var(--muted);
  font-size: 16px;
}

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

.fact-card,
.detail-content-grid .copy-block {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(20, 65, 55, 0.06);
}

.fact-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-card p,
.detail-content-grid .copy-block p {
  margin: 0;
  color: var(--muted);
}

.fact-card-action .secondary-action {
  width: 100%;
  min-height: 44px;
}

@media (min-width: 1025px) {
  .fact-card-action {
    grid-column: 1 / -1;
  }

  .fact-card-action .secondary-action {
    max-width: none;
  }
}

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

.detail-content-grid .copy-block {
  padding-top: 18px;
}

.detail-single .editorial-card-grid {
  margin-top: 0;
}

.detail-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

@media (min-width: 1025px) {
  .detail-side {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }
}

.detail-media {
  overflow: hidden;
  border-radius: 28px;
  background: #10201e;
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-summary {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(20, 65, 55, 0.08);
}

.detail-summary h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.summary-list div {
  min-width: 0;
}

.summary-list dt {
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-list dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.detail-summary .secondary-action {
  width: 100%;
  margin-top: 18px;
}

.detail-support {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-support h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.support-list {
  display: grid;
  gap: 10px;
}

.support-list div {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(18, 107, 92, 0.06);
}

.support-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.detail-panel {
  padding: clamp(24px, 4vw, 42px);
}

.detail-panel h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-panel p {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 800;
}

.copy-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.copy-block h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.copy-block p {
  max-width: 68ch;
}

.editorial-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.editorial-card-grid .copy-block {
  margin-top: 0;
}

.editorial-extra,
.core-editorial-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(246, 248, 245, 0.72);
}

.editorial-extra h2,
.core-editorial-block h2 {
  font-size: 19px;
}

@media (min-width: 1025px) {
  .editorial-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .editorial-card-grid .copy-block:first-child:last-child,
  .editorial-card-grid .copy-block:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

}

.game-frame-page {
  width: 100%;
  min-height: 100vh;
  background: #0b1110;
}

.frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 16px;
  background: #111b19;
  color: #fff;
}

.frame-toolbar a {
  color: #b7f0e5;
  font-weight: 800;
}

.frame-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.frame-toolbar h1 {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-frame {
  width: 100%;
  height: calc(100vh - 64px);
  border: 0;
  background: #000;
}

.external-game-launch {
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  padding: 28px 16px;
  background: linear-gradient(135deg, #0b1110, #152522);
}

.external-game-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 440px);
  gap: 28px;
  align-items: center;
  width: min(880px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #f7faf4;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.external-game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.external-game-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.external-game-card p {
  margin-bottom: 20px;
  color: var(--muted);
}

.frame-note {
  padding: 18px 16px 22px;
  background: #111b19;
  color: #dfe9e6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.frame-note p {
  width: min(960px, 100%);
  margin: 0 auto 12px;
  color: #dfe9e6;
}

.frame-note .footer-links {
  justify-content: center;
}

.policy-panel {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
}

.policy-panel.editorial-page {
  width: 100%;
  margin-bottom: 34px;
}

.guide-intro {
  margin-bottom: 24px;
}

.guide-intro h1 {
  max-width: none;
}

.guide-intro p:not(.eyebrow) {
  max-width: none;
}

.guide-details {
  margin-top: 34px;
}

.category-hero {
  display: block;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 241, 0.88));
  box-shadow: 0 12px 30px rgba(20, 65, 55, 0.08);
}

.category-hero > div {
  max-width: none;
}

.category-hero .text-link {
  display: inline-flex;
  margin-top: 18px;
}

.category-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.02;
}

.category-hero p:not(.eyebrow) {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.category-games-section {
  margin-top: 42px;
}

.compact-game-grid .game-card h3 {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-game-card .game-card-body,
.category-game-card .card-body {
  min-height: 180px;
  gap: 14px;
  justify-content: flex-start;
  padding-top: 20px;
}

.category-game-card .meta {
  align-items: center;
  margin-top: 0;
}

.category-game-card .pill {
  min-height: 30px;
}

.category-game-card h3 {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-game-card p {
  display: -webkit-box;
  min-height: calc(3 * 1.38em);
  margin-top: 0;
  overflow: hidden;
  line-height: 1.38;
  align-self: stretch;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.category-game-card.title-two-line p {
  min-height: calc(2 * 1.38em);
  -webkit-line-clamp: 2;
}

.category-notes {
  margin-top: 30px;
}

.category-notes h2:first-child {
  margin-top: 0;
}

.compact-info-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 6px;
}

.compact-info-band .info-card {
  padding: 16px;
}

.compact-info-band .info-card h3 {
  font-size: 17px;
}

.editorial-extra p {
  margin-bottom: 0;
}

.faq-section {
  margin-top: 28px;
}

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

.compact-faq-grid {
  margin-top: 14px;
}

.faq-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(20, 65, 55, 0.06);
}

.faq-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
}

.feedback-note {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 107, 92, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(18, 107, 92, 0.06);
}

.feedback-note h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.feedback-note p {
  margin: 0;
  color: var(--muted);
}

.feedback-note a {
  color: var(--brand);
  font-weight: 750;
}

.policy-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 52px);
}

.policy-panel h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.policy-section {
  padding-top: 4px;
}

.policy-section + .policy-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-section h2:first-child {
  margin-top: 0;
}

.policy-panel p {
  max-width: none;
  color: var(--muted);
}

.policy-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-panel li + li {
  margin-top: 10px;
}

.policy-panel a {
  color: var(--brand);
  font-weight: 750;
  text-decoration: underline;
}

.empty-state {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--brand);
  font-weight: 750;
}

@media (max-width: 1024px) {
  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .hero-copy,
  .spotlight-card,
  .spotlight-card img {
    min-height: 300px;
  }

  .hero-compact .hero-copy,
  .list-search-panel,
  .category-hero {
    grid-template-columns: 1fr;
  }

  .hero-compact .search-row,
  .list-search-panel .search-row {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    max-width: 680px;
  }

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

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

  .compact-info-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-carousel {
    grid-auto-columns: calc((100% - 16px) / 2);
    gap: 16px;
    padding-bottom: 8px;
  }

  .featured-slide,
  .featured-slide img {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .home-intro h2 {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: center;
    flex-direction: column;
    min-height: 0;
    width: calc(100% - 22px);
    padding: 12px 0 14px;
    gap: 12px;
  }

  .brand {
    align-self: flex-start;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand span {
    font-size: 22px;
  }

  .site-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    min-width: 0;
    gap: 7px;
    overflow: visible;
    padding: 8px;
    border: 1px solid rgba(220, 230, 226, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(18, 107, 92, 0.055);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .site-nav a[href*="about"] {
    justify-self: center;
    width: 100%;
    grid-column: span 2;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(18, 107, 92, 0.11);
  }

  .main {
    width: min(100% - 24px, var(--max));
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .hero-copy {
    padding: 16px;
    border-radius: 18px;
  }

  .hero-compact {
    margin-bottom: 10px;
  }

  .hero-compact .hero-copy {
    padding: 14px;
  }

  .search-row {
    flex-direction: row;
    gap: 8px;
  }

  .search-row input {
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
  }

  .search-row button {
    width: auto;
    min-width: 78px;
    min-height: 48px;
    padding: 0 13px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .spotlight-section .section-head {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .spotlight-section .section-head > div:first-child {
    min-width: 0;
    flex: 1;
  }

  .spotlight-section .section-head p {
    font-size: 16px;
    line-height: 1.45;
  }

  .section {
    margin-top: 26px;
  }

  .section-head h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .section-head p {
    font-size: 15px;
    line-height: 1.45;
  }

  .category-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .category-hero .eyebrow {
    margin-bottom: 10px;
  }

  .category-hero h1 {
    margin-bottom: 6px;
    font-size: 30px;
    line-height: 1.08;
  }

  .category-hero p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.45;
  }

  .category-games-section {
    margin-top: 32px;
  }

  .category-games-section .section-head {
    margin-bottom: 12px;
  }

  .category-games-section .section-head h2 {
    font-size: 25px;
  }

  .category-games-section .section-head p {
    font-size: 14px;
  }

  .compact-game-grid .game-card img {
    aspect-ratio: 16 / 10;
  }

  .card-body,
  .game-card-body {
    gap: 8px;
    padding: 12px;
  }

  .compact-game-grid .game-card h3 {
    min-height: calc(2 * 1.18em);
    font-size: 20px;
    line-height: 1.18;
  }

  .category-game-card .game-card-body,
  .category-game-card .card-body {
    min-height: 190px;
    gap: 12px;
    padding-top: 18px;
  }

  .category-game-card h3 {
    min-height: 0;
    line-height: 1.18;
  }

  .category-game-card p {
    min-height: calc(3 * 1.45em);
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .category-game-card.title-two-line p {
    min-height: calc(2 * 1.45em);
    -webkit-line-clamp: 2;
  }

  .game-card h3 {
    font-size: 20px;
    line-height: 1.18;
  }

  .game-card p {
    font-size: 15px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .category-game-card p {
    min-height: calc(3 * 1.45em);
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .category-game-card.title-two-line p {
    min-height: calc(2 * 1.45em);
    -webkit-line-clamp: 2;
  }

.game-card img {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Original category artwork used in place of third-party game cover images. */
.game-art {
  position: relative;
  display: grid;
  min-height: 188px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(135deg, #1f2a44, #394f77);
}

.game-art::before,
.game-art::after {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .42);
  border-radius: 26% 74% 61% 39% / 42% 31% 69% 58%;
  content: "";
  transform: rotate(20deg);
}

.game-art::after {
  width: 27%;
  background: rgba(255, 255, 255, .22);
  transform: rotate(-28deg) translate(48%, -32%);
}

.game-art-arcade { background: linear-gradient(135deg, #6026bf, #f25080); }
.game-art-puzzles { background: linear-gradient(135deg, #0e7490, #36b899); }
.game-art-casual { background: linear-gradient(135deg, #3566b8, #75b9e6); }
.game-art-racing { background: linear-gradient(135deg, #b84020, #ef9d28); }
.game-art-sports { background: linear-gradient(135deg, #397f42, #9bc94f); }
.game-art-adventure { background: linear-gradient(135deg, #264f67, #6e9b7d); }
.game-art-creative { background: linear-gradient(135deg, #a44285, #f5a95f); }
.game-art-clicker { background: linear-gradient(135deg, #7050bf, #b79bea); }

.featured-slide .game-art {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.detail-media .game-art {
  min-height: 100%;
  border-radius: inherit;
}

  .category-notes {
    margin-top: 24px;
    padding: 20px;
  }

  .category-notes h2 {
    margin-top: 22px;
    font-size: 21px;
  }

  .compact-info-band .info-card {
    padding: 14px;
  }

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

  .carousel-actions button {
    width: 38px;
    height: 38px;
  }

  .spotlight-section .carousel-actions {
    flex-shrink: 0;
    padding-top: 2px;
  }

  .featured-carousel {
    grid-auto-columns: 100%;
    gap: 12px;
    padding-bottom: 6px;
  }

  .featured-slide,
  .featured-slide img {
    min-height: 220px;
  }

  .featured-slide .overlay {
    padding: 16px;
  }

  .featured-slide h3 {
    font-size: 23px;
  }

  .featured-slide p {
    -webkit-line-clamp: 2;
  }

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

  .category-card {
    min-height: 82px;
  }

  .game-grid,
  .info-band,
  .faq-grid,
  .detail-facts-grid,
  .detail-content-grid,
  .editorial-card-grid {
    grid-template-columns: 1fr;
  }

  .external-game-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
  }

  .detail-hero-card {
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
  }

  .detail-hero-card .detail-media {
    min-height: 0;
  }

  .detail-hero-copy h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  .detail-actions {
    gap: 10px;
    margin: 18px 0;
  }

  .detail-actions .primary-action,
  .detail-actions .secondary-action {
    flex: 1 1 140px;
    min-height: 48px;
  }

  .faq-card,
  .feedback-note {
    padding: 15px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .header-inner {
    width: calc(100% - 28px);
    gap: 14px;
  }

  .site-nav {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

  .category-hero {
    align-items: flex-start;
  }

  .compact-info-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .category-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    font-size: 12px;
  }
}

